You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Question__OjProblem__ind...

224 lines
1.2 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(self.webpackChunk=self.webpackChunk||[]).push([[7460],{89489:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},59477:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},81953:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},49198:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},87169:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},52671:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},8657:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},10906:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},56082:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},33853:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},15075:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},43531:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},76618:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},38819:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},ie=ge.forwardRef(fe),de=ie},74501:function(mt,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"}},55797:function(mt,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"}},21385:function(){"use strict"},89978:function(mt,Ke,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,fe=(le,me,ae)=>me in le?ge(le,me,{enumerable:!0,configurable:!0,writable:!0,value:ae}):le[me]=ae,ie=(le,me)=>{for(var ae in me||(me={}))pe.call(me,ae)&&fe(le,ae,me[ae]);if(be)for(var ae of be(me))Se.call(me,ae)&&fe(le,ae,me[ae]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),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="},43347:function(mt,Ke,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,fe=(le,me,ae)=>me in le?ge(le,me,{enumerable:!0,configurable:!0,writable:!0,value:ae}):le[me]=ae,ie=(le,me)=>{for(var ae in me||(me={}))pe.call(me,ae)&&fe(le,ae,me[ae]);if(be)for(var ae of be(me))Se.call(me,ae)&&fe(le,ae,me[ae]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),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=="},42287:function(){"use strict";function mt(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(mt.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(mt.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(mt.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(mt.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 mt))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 te(ne,a){var y=Ke.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ee(){var ne=Ke.pop();return ne===void 0?new go.Point:ne}function ge(ne){Ke.push(ne)}function be(ne,a,y,E,b,x,z,re,se){se||(se=new go.Point);var ce=ne-y,_e=b-z,ye=NaN,De=NaN;if(ce===0)if(_e===0)ne===y&&(ye=ne,De=a);else{var Ee=(x-re)/_e,je=x-Ee*b;ye=ne,De=Ee*ye+je}else if(_e===0){var Le=(a-E)/ce,ht=a-Le*ne;ye=b,De=Le*ye+ht}else{var Le=(a-E)/ce,Ee=(x-re)/_e,ht=a-Le*ne,je=x-Ee*b;ye=(je-ht)/(Le-Ee),De=Le*ye+ht}return se.x=ye,se.y=De,se}function pe(ne,a,y,E,b,x,z,re,se,ce,_e,ye,De,Ee){var je=1-se,Le=se,ht=ne*je+y*Le,Ye=a*je+E*Le,vt=y*je+b*Le,we=E*je+x*Le,Fe=b*je+z*Le,He=x*je+re*Le,at=ht*je+vt*Le,We=Ye*je+we*Le,pt=vt*je+Fe*Le,Pt=we*je+He*Le,At=at*je+pt*Le,Bt=We*je+Pt*Le;ce.x=ht,ce.y=Ye,_e.x=at,_e.y=We,ye.x=At,ye.y=Bt,De.x=pt,De.y=Pt,Ee.x=Fe,Ee.y=He}var Se=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new mt("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=Se,b.spot2=fe,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 mt("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 mt("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 mt("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 mt("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 mt("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 de=[];function le(){var ne=de.pop();return ne===void 0?[]:ne}function me(ne){ne.length=0,de.push(ne)}function ae(ne){for(var a=le(),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 he(ne){var a=oe(ne),y=le();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=ae(ne),y=le(),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],se=a[z+1],ce=a[(E+z-1)%b],_e=a[(E+z+x)%b];y[z*2]=re,y[z*2+1]=be(re.x,re.y,ce.x,ce.y,se.x,se.y,_e.x,_e.y,new go.Point)}return y[y.length]=y[0],me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=ae(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=ae(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=ae(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=ae(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=ae(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=ae(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=ae(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=he(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=he(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=he(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=he(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=he(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=he(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 mt("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new mt("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 mt("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=Se,x.spot2=fe,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 mt("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new mt("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 mt("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 mt("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 mt("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),se=E-Math.min(Math.cos(re)*E/2,x),ce=E-Math.min(Math.sin(re)*E/2,z),b=new go.Geometry,_e=new go.PathFigure(se,0,!0);return b.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),_e.add(new go.PathSegment(go.PathSegment.Line,a-se,0)),_e.add(new go.PathSegment(go.PathSegment.Line,a,ce)),_e.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),_e.add(new go.PathSegment(go.PathSegment.Line,a-se,y)),_e.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),_e.add(new go.PathSegment(go.PathSegment.Line,se,y)),_e.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new mt("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 mt("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 mt("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,se=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-se+re)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z+.05)*a,(.5-se+re-.02)*y)),x=.2,z=0,re=-.3,se=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-se+re)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),x=.2,z=-.3,re=0,se=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z-.05)*a,(.5-se+re-.02)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+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,se=new go.PathFigure(z*a,(re-x)*y);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.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 ce=ee(),_e=ee(),ye=ee(),De=ee();pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.42,ce,_e,ye,De,De);var Ee=ee(),je=ee(),Le=ee();pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.58,De,De,Le,Ee,je);var ht=ee(),Ye=ee(),vt=ee();pe(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.42,ht,Ye,vt,De,De);var we=ee(),Fe=ee(),He=ee();return pe(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.58,De,De,He,we,Fe),se.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,we.x*a,we.y*y,Fe.x*a,Fe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ye.x*a,ye.y*y,ce.x*a,ce.y*y,_e.x*a,_e.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y).close()),se.add(new go.PathSegment(go.PathSegment.Move,vt.x*a,vt.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,Ee.x*a,Ee.y*y,je.x*a,je.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,vt.x*a,vt.y*y,ht.x*a,ht.y*y,Ye.x*a,Ye.y*y).close()),ge(ce),ge(_e),ge(ye),ge(De),ge(Ee),ge(je),ge(Le),ge(ht),ge(Ye),ge(vt),ge(we),ge(Fe),ge(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 mt("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,se=ee(),ce=ee(),_e=ee(),ye=ee(),De=new go.PathFigure((z-x)*a,re*y,!1);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)),pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.44,_e,ye,ce,se,se),De.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y));var Ee=te(ce.x,ce.y);pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.56,se,se,ce,_e,ye);var je=te(ce.x,ce.y);De.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.95*.9)*a,Ee.y*.1*y)),De.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ee.y*.1*y)),De.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),De.add(new go.PathSegment(go.PathSegment.Line,a,0)),De.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),De.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*a,.15*y)),De.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*a,(je.y*.1+.05*.9)*y)),De.add(new go.PathSegment(go.PathSegment.Line,je.x*a,je.y*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,_e.x*a,_e.y*y,ye.x*a,ye.y*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)),x=.35,b=ie*.35;var Le=new go.PathFigure(z*a,(re-x)*y,!1);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));var ht=new go.PathFigure((z-x)*a,re*y,!1);return E.add(ht),ge(se),ge(ce),ge(_e),ge(ye),ge(Ee),ge(je),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,se=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(se),se.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)),se.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)),se.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)),se.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)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,re=b*ie;var se=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(se),se.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)),se.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)),se.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)),se.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 se=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(se),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 mt("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new mt("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,se=new go.Geometry,ce=new go.PathFigure(0,z,!0);se.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,z/y);var _e=be(0,re/y,1,re/y,x/a,1,1,.5,ee());return se.spot2=new go.Spot(_e.x,_e.y),ge(_e),se}),go.Shape.setFigureParameter("Arrow2",0,new mt("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new mt("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,se=new go.Geometry,ce=new go.PathFigure(0,z,!0);se.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,z/y);var _e=be(0,re/y,1,re/y,x/a,1,1,.5,ee());return se.spot2=new go.Spot(_e.x,_e.y),ge(_e),se}),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 mt("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 se=be(0,.5,.3,0,0,b/y,.1,b/y,ee());return z.spot1=new go.Spot(se.x,se.y),se=be(.7,1,1,.5,0,x/y,1,x/y,se),z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new mt("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new mt("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,se=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,se=y):(x=0,z=y,re=0,se=y));var ce=new go.Geometry,_e=new go.PathFigure(a,.5*y,!0);ce.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,re)),_e.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close());var ye=be(0,.5,.3,re/y,0,x/y,1,x/y,ee());return ce.spot1=new go.Spot(ye.x,ye.y),ye=be(.7,se/y,1,.5,0,z/y,1,z/y,ye),ce.spot2=new go.Spot(ye.x,ye.y),ge(ye),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new mt("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 se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new mt("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new mt("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,se=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,se=y):(x=0,z=y,re=0,se=y));var ce=new go.Geometry,_e=new go.PathFigure(a,.5*y,!0);ce.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,se)),_e.add(new go.PathSegment(go.PathSegment.Line,0,se)),_e.add(new go.PathSegment(go.PathSegment.Line,0,re)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,re)),_e.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),_e.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close()),ce.spot1=new go.Spot(0,x/y);var ye=be(.7,se/y,1,.5,0,z/y,1,z/y,ee());return ce.spot2=new go.Spot(ye.x,ye.y),ge(ye),ce}),go.Shape.setFigureParameter("Pointer",0,new mt("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,ee());return b.spot2=new go.Spot(z.x,z.y),ge(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new mt("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,ee());return b.spot2=new go.Spot(z.x,z.y),ge(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new mt("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 se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new mt("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 se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("SquareArrow",0,new mt("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,se=.5,ce=.1,_e=new go.PathFigure(se*a,(ce+x)*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se-b)*a,ce*y,(se-z)*a,(ce+x)*y,(se-b)*a,(ce+re)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-x)*y,(se-b)*a,(ce-re)*y,(se-z)*a,(ce-x)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se+b)*a,ce*y,(se+z)*a,(ce-x)*y,(se+b)*a,(ce-re)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+x)*y,(se+b)*a,(ce+re)*y,(se+z)*a,(ce+x)*y));var ye=.05,De=ie*ye;se=.05,ce=.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)),se=.95,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ye)*a,ce*y,(se+De)*a,(ce-ye)*y,(se+ye)*a,(ce-De)*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)),ye=.025,De=ie*ye,se=.825,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y,(se+De)*a,(ce-ye)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ye)*a,ce*y,(se-De)*a,(ce-ye)*y,(se-ye)*a,(ce-De)*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)),ye=.05,De=ie*ye,se=.5,ce=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y,(se+De)*a,(ce-ye)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ye)*a,ce*y,(se-De)*a,(ce-ye)*y,(se-ye)*a,(ce-De)*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)),ye=.025,De=ie*ye,se=.175,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se+ye)*a,(ce-De)*y,(se+De)*a,(ce-ye)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ye)*a,ce*y,(se-De)*a,(ce-ye)*y,(se-ye)*a,(ce-De)*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)),ye=.05,De=ie*ye,se=.05,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-ye)*y,(se-ye)*a,(ce-De)*y,(se-De)*a,(ce-ye)*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 mt("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,se=new go.PathFigure(a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,y,a,(re+z)*y,(re+z)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,re*y,(re-z)*a,y,0,(re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,0,0,(re-z)*y,(re-z)*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,a,re*y,(re+z)*a,0,a,(re-z)*y));var ce=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ce.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ce.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 se=new go.PathFigure(.8*a,.75*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),se.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,se=new go.PathFigure(.8*a,.5*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ce=new go.PathFigure((z+x)*a,re*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),ce.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,se=.9,ce=.5,_e=new go.PathFigure(.8*a,.5*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),_e.add(new go.PathSegment(go.PathSegment.Line,0,y)),_e.add(new go.PathSegment(go.PathSegment.Line,0,0)),_e.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),_e.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ye=new go.PathFigure((se+re)*a,ce*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+re)*y,(se+re)*a,(ce+z)*y,(se+z)*a,(ce+re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,ce*y,(se-z)*a,(ce+re)*y,(se-re)*a,(ce+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-re)*y,(se-re)*a,(ce-z)*y,(se-z)*a,(ce-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,ce*y,(se+z)*a,(ce-re)*y,(se+re)*a,(ce-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,se=new go.PathFigure(.8*a,.5*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),se.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 ce=new go.PathFigure((z-b)*a,re*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.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,se=new go.PathFigure(0,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(re-b)*y,.8*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(re+x)*y,(z+x+x)*a,(re+b)*y)),se.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,se=new go.PathFigure(.1*a,0,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.8*a,.5*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ce.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 _e=new go.PathFigure((z-b)*a,re*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),_e.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.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),_e.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,se=new go.PathFigure(.1*a,0,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.2*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(re-b)*y,.9*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.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,se=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,se.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,se=new go.PathFigure((z-x)*a,re*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,re*y)),se.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,se=0,ce=.5,_e=(b-a)/2,ye=(x-y)/2,De=new go.PathFigure(se*a+_e,(ce+re)*y+ye,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+_e,ce*y+ye,(se-z)*a+_e,(ce+re)*y+ye,(se-re)*a+_e,(ce+z)*y+ye)),De.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se-re)*a+_e,(ce-z)*y+ye,(se-z)*a+_e,(ce-re)*y+ye)),De.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+z*.5)*a+_e,ce*y+ye,se*a+_e,(ce-re)*y+ye,(se-re+z*.5)*a+_e,(ce-z)*y+ye)),De.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se-re+z*.5)*a+_e,(ce+z)*y+ye,se*a+_e,(ce+re)*y+ye).close()),z=ie*.4,re=.4,se=.2,ce=.5;var Ee=new go.PathFigure(se*a+_e,(ce+re)*y+ye,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+_e,ce*y+ye,(se-z)*a+_e,(ce+re)*y+ye,(se-re)*a+_e,(ce+z)*y+ye)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se-re)*a+_e,(ce-z)*y+ye,(se-z)*a+_e,(ce-re)*y+ye)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+z*.5)*a+_e,ce*y+ye,se*a+_e,(ce-re)*y+ye,(se-re+z*.5)*a+_e,(ce-z)*y+ye)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se-re+z*.5)*a+_e,(ce+z)*y+ye,se*a+_e,(ce+re)*y+ye).close()),z=ie*.2,re=.2,se=.5,ce=.5;var je=new go.PathFigure((se-re)*a+_e,ce*y+ye,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se-re)*a+_e,(ce-z)*y+ye,(se-z)*a+_e,(ce-re)*y+ye)),je.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+_e,ce*y+ye,(se+z)*a+_e,(ce-re)*y+ye,(se+re)*a+_e,(ce-z)*y+ye)),je.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se+re)*a+_e,(ce+z)*y+ye,(se+z)*a+_e,(ce+re)*y+ye)),je.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+_e,ce*y+ye,(se-z)*a+_e,(ce+re)*y+ye,(se-re)*a+_e,(ce+z)*y+ye)),z=ie*.4,re=.4,se=.8,ce=.5;var Le=new go.PathFigure(se*a+_e,(ce-re)*y+ye,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+_e,ce*y+ye,(se+z)*a+_e,(ce-re)*y+ye,(se+re)*a+_e,(ce-z)*y+ye)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se+re)*a+_e,(ce+z)*y+ye,(se+z)*a+_e,(ce+re)*y+ye)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-z*.5)*a+_e,ce*y+ye,se*a+_e,(ce+re)*y+ye,(se+re-z*.5)*a+_e,(ce+z)*y+ye)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se+re-z*.5)*a+_e,(ce-z)*y+ye,se*a+_e,(ce-re)*y+ye).close()),z=ie*.8,re=.8,se=1,ce=.5;var ht=new go.PathFigure(se*a+_e,(ce-re)*y+ye,!0);return E.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+_e,ce*y+ye,(se+z)*a+_e,(ce-re)*y+ye,(se+re)*a+_e,(ce-z)*y+ye)),ht.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce+re)*y+ye,(se+re)*a+_e,(ce+z)*y+ye,(se+z)*a+_e,(ce+re)*y+ye)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-z*.5)*a+_e,ce*y+ye,se*a+_e,(ce+re)*y+ye,(se+re-z*.5)*a+_e,(ce+z)*y+ye)),ht.add(new go.PathSegment(go.PathSegment.Bezier,se*a+_e,(ce-re)*y+ye,(se+re-z*.5)*a+_e,(ce-z)*y+ye,se*a+_e,(ce-re)*y+ye).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,se=ee(),ce=ee(),_e=ee(),ye=ee();pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,se,se,ce,_e,ye);var De=te(ce.x,ce.y),Ee=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,_e.x*a,_e.y*y,ye.x*a,ye.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)),pe(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,_e,ye,ce,se,se),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),b=ie*.3,x=.3,pe(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,_e,ye,ce,se,se),Ee.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,ye.x*a,ye.y*y,_e.x*a,_e.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)),pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,se,se,ce,_e,ye),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,ye.x*a,ye.y*y,_e.x*a,_e.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()),ge(se),ge(ce),ge(_e),ge(ye),ge(De),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,se){z.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*a,(.8+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*a,(.5+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*a,(.5+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*a,(.8+se)*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,se=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,_e=1,ye=.5,De=.5,Ee=0,je=new go.PathFigure(se*a,(1-ce)*y,!1);return E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,ye*y,_e*a,.7*y,_e*a,ye*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(De+x)*a,(Ee+x)*y,(.5+b+x)*a,(.5-re+x)*y,(.5+re+x)*a,(.5-b+x)*y)),je.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)),je.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)),je.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),je.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),je.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,se=z,ce=Math.PI/4,_e=4*(1-Math.cos(ce))/(3*Math.sin(ce)),ye=_e*.5,De=z,Ee=z,je=_e*De,Le=_e*Ee;x.add(new go.PathSegment(go.PathSegment.Bezier,(re-De)*a,se*y,(re-(je+De)/2)*a,(se+(Ee+Le)/2)*y,(re-De)*a,(se+Le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(se-Ee)*y,(re-De)*a,(se-Le)*y,(re-je)*a,(se-Ee)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(re+De)*a,se*y,(re+je)*a,(se-Ee)*y,(re+De)*a,(se-Le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(re+De)*a,(se+Le)*y,(re+(je+De)/2)*a,(se+(Ee+Le)/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 ht=new go.PathFigure(.2*a,y,!1);E.add(ht),ht.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,se=.2,ce=.9,_e=new go.PathFigure((se-z)*a,ce*y,!0);E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-z)*y,(se-z)*a,(ce-re)*y,(se-re)*a,(ce-z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se+z)*a,ce*y,(se+re)*a,(ce-z)*y,(se+z)*a,(ce-re)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+z)*y,(se+z)*a,(ce+re)*y,(se+re)*a,(ce+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(se-z)*a,ce*y,(se-re)*a,(ce+z)*y,(se-z)*a,(ce+re)*y).close()),z=.1,re=ie*.1,se=.8,ce=.9;var ye=new go.PathFigure((se-z)*a,ce*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-z)*y,(se-z)*a,(ce-re)*y,(se-re)*a,(ce-z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+z)*a,ce*y,(se+re)*a,(ce-z)*y,(se+z)*a,(ce-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+z)*y,(se+z)*a,(ce+re)*y,(se+re)*a,(ce+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se-z)*a,ce*y,(se-re)*a,(ce+z)*y,(se-z)*a,(ce+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 se=.1,ce=ie*.1,_e=.1,ye=.9,De=new go.PathFigure((_e-se)*a,ye*y,!0);E.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye-se)*y,(_e-se)*a,(ye-ce)*y,(_e-ce)*a,(ye-se)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(_e+se)*a,ye*y,(_e+ce)*a,(ye-se)*y,(_e+se)*a,(ye-ce)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye+se)*y,(_e+se)*a,(ye+ce)*y,(_e+ce)*a,(ye+se)*y)),De.add(new go.PathSegment(go.PathSegment.Bezier,(_e-se)*a,ye*y,(_e-ce)*a,(ye+se)*y,(_e-se)*a,(ye+ce)*y)),se=.1,ce=ie*.1,_e=.4,ye=.9;var Ee=new go.PathFigure((_e-se)*a,ye*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye-se)*y,(_e-se)*a,(ye-ce)*y,(_e-ce)*a,(ye-se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(_e+se)*a,ye*y,(_e+ce)*a,(ye-se)*y,(_e+se)*a,(ye-ce)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,_e*a,(ye+se)*y,(_e+se)*a,(ye+ce)*y,(_e+ce)*a,(ye+se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(_e-se)*a,ye*y,(_e-ce)*a,(ye+se)*y,(_e-se)*a,(ye+ce)*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 _e=.05,ye=ie*.05,De=.175,Ee=.95,re=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y));var _e=.05,ye=ie*.05,De=.375,Ee=.95,se=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y));var _e=.05,ye=ie*.05,De=.625,Ee=.95,ce=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y));var _e=.05,ye=ie*.05,De=.825,Ee=.95,je=new go.PathFigure((De-_e)*a,Ee*y,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee-_e)*y,(De-_e)*a,(Ee-ye)*y,(De-ye)*a,(Ee-_e)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(De+_e)*a,Ee*y,(De+ye)*a,(Ee-_e)*y,(De+_e)*a,(Ee-ye)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,De*a,(Ee+_e)*y,(De+_e)*a,(Ee+ye)*y,(De+ye)*a,(Ee+_e)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(De-_e)*a,Ee*y,(De-ye)*a,(Ee+_e)*y,(De-_e)*a,(Ee+ye)*y).close());var Le=new go.PathFigure(0,y,!1);return E.add(Le),Le.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,se=ie*.05,ce=.35,_e=.775,ye=new go.PathFigure((ce-re)*a,_e*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(_e-re)*y,(ce-re)*a,(_e-se)*y,(ce-se)*a,(_e-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,_e*y,(ce+se)*a,(_e-re)*y,(ce+re)*a,(_e-se)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(_e+re)*y,(ce+re)*a,(_e+se)*y,(ce+se)*a,(_e+re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,_e*y,(ce-se)*a,(_e+re)*y,(ce-re)*a,(_e+se)*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,se=new go.PathFigure((z-b)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.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 ce=new go.PathFigure(0,.7*y,!1);return E.add(ce),ce.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,se=new go.PathFigure((z-b)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.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 ce=new go.PathFigure(.15*a,.5*y,!1);return E.add(ce),ce.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,se=new go.PathFigure((z-b)*a,re*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.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 ce=new go.PathFigure((z-b)*a,re*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.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()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ce.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 se=new go.PathFigure(.5*a,.1*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),se.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 se=new go.PathFigure(a*.816,y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),se.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 se=new go.PathFigure(a*1,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),se.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 se=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),se.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 se=new go.PathFigure(a*.83,y*1,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ce=new go.PathFigure(a*.78,y*.05,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ce.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")},84915: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 mt={},Ke="5.0",te={},ee=null,ge=!1,be=!1,pe=null,Se=!1,fe=null,ie=null,de=0;de<arguments.length;de++){var le=arguments[de];if(le!==null)switch(typeof le){case"number":Ke=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ke=le:pe=le;break;case"object":typeof le.is3D!="undefined"?ee=le:te=le;break;case"boolean":ge=le,be=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!be&&(ge=!0)),pe!==null&&te.id===void 0&&(te.id=pe);var me="",ae="",he=!1,oe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,re=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var se=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};mt.setHTML5Codebase=function(rt,Xe){ie=rt,Pt(rt,Xe)},mt.setJavaCodebase=mt.setJavaCodebaseVersion=mt.isCompiledInstalled=mt.setPreCompiledScriptPath=mt.setPreCompiledResourcePath=function(){},mt.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}fe=rt,pt(rt,Xe)},mt.getHTML5CodebaseVersion=function(){return ne},mt.getParameters=function(){return te},mt.setFontsCSSURL=function(rt){z=rt},mt.setGiacJSURL=function(rt){},mt.setJNLPFile=function(rt){me=rt},mt.setJNLPBaseDir=function(rt){},mt.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",Ct=te.id,zt,Et=!1,an=0;an<arguments.length;an++){var $e=arguments[an];typeof $e=="string"?($e=$e.toLowerCase(),$e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=$e:Ct=arguments[an]):typeof $e=="boolean"?Et=$e:$e instanceof HTMLElement&&(zt=$e)}yt();function yt(){if(!Se){setTimeout(yt,200);return}Xe=at(Xe);var Lt=zt||document.getElementById(Ct);if(!Lt){console.log("possibly bug on ajax loading? ");return}if(mt.removeExistingApplet(Lt,!1),te.width===void 0&&Lt.clientWidth&&(te.width=Lt.clientWidth),te.height===void 0&&Lt.clientHeight&&(te.height=Lt.clientHeight),!(te.width&&te.height)&&Xe==="html5"&&(delete te.width,delete te.height),oe=Xe,Xe==="screenshot")Ye(Lt,te);else{var on=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?on=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(on=(!ce()||rt())&&_e()),on?(oe="screenshot",we(Lt,te,Et,Xe)):ht(Lt,te,Et)}}};function ce(){try{return window.self!==window.top}catch(rt){return!0}}function _e(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}mt.getViews=function(){return ee},mt.isJavaInstalled=function(){return!1};var ye=function(rt){var Xe=function(an){var $e=JSON.parse(an),yt=function($t){return $t.type=="G"||$t.type=="E"},Lt=$e.elements?$e.elements.filter(yt)[0]:$e;if(!Lt||!Lt.url){Ct();return}te.fileName=Lt.url,De(Lt.settings||{}),ee.is3D=!0;var on="https://www.geogebra.org/images/";mt.setPreviewImage(E||Lt.previewUrl,on+"GeoGebra_loading.png",on+"applet_play.png"),rt()},Ct=function(){te.onError&&te.onError(),At("Error: Fetching material (id "+te.material_id+") failed.",te)},zt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Et="/materials/"+te.material_id+"?scope=basic";Ee("https://"+zt+"/api/proxy.php?path="+encodeURIComponent(Et),Xe,Ct)};function De(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){te[Ct]===void 0&&rt[Ct]!==void 0&&(te[Ct]=rt[Ct])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function Ee(rt,Xe,Ct){var zt=new XMLHttpRequest;zt.open("GET",rt),zt.onload=function(){Xe(zt.responseText)},zt.onerror=Ct,zt.send()}mt.isHTML5Installed=function(){return!0},mt.getLoadedAppletType=function(){return oe},mt.setPreviewImage=function(rt,Xe,Ct){E=rt,b=Xe,x=Ct},mt.removeExistingApplet=function(rt,Xe){var Ct;typeof rt=="string"&&(rt=document.getElementById(rt)),oe=null;var zt=null;for(Ct=0;Ct<rt.childNodes.length;Ct++){var Et=rt.childNodes[Ct],an=Et.className;an==="applet_screenshot"?Xe?(Et.style.display="block",oe="screenshot"):Et.style.display="none":an!=="applet_scaler prerender"&&(rt.removeChild(Et),zt=an&&an.indexOf("appletParameters")!=-1?Et.id:null,Ct--)}var $e=te.id!==void 0?te.id:zt,yt=window[$e];yt&&typeof yt.getBase64=="function"&&(yt.remove(),window[$e]=null)},mt.refreshHitPoints=function(){if(se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=mt.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},mt.startAnimation=function(){var rt=mt.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},mt.stopAnimation=function(){var rt=mt.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},mt.getAppletObject=function(){var rt=te.id!==void 0?te.id:"ggbApplet";return window[rt]},mt.resize=function(){};var je=function(rt,Xe,Ct){var zt=document.createElement("param");zt.setAttribute("name",Xe),zt.setAttribute("value",Ct),rt.appendChild(zt)},Le=function(rt){return rt&&rt!=="false"},ht=function(rt,Xe,Ct){se(ne)<=4.2&&(Ct=!0);var zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var an=Xe.width,$e=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(se(ne)<=4.4)Le(Xe.showToolBar)&&(Xe.height-=7),Le(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&Le(Xe.showToolBar)&&(Xe.width=605,an=605);else{var yt=100;(Le(Xe.showToolBar)||Le(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),yt=Le(Xe.showMenuBar)?245:155),an<yt&&(Xe.width=yt,an=yt)}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),mt.resize=function(){GGBAppletUtils.responsiveResize(rt,Xe)},window.addEventListener("resize",function(ze){mt.resize()});var on=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!Ct&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||Et.setAttribute("data-param-showSplash","false");var $t=rt.querySelector(".applet_scaler.prerender"),st=$t!==null;if(st)var lt=$t.querySelector(".ggb_preview");else{var lt=He(an,$e,Xe.borderColor,!1);$t=document.createElement("div"),$t.className="applet_scaler",$t.style.position="relative",$t.style.display="block",$t.style.width=an+"px",$t.style.height=$e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($t,"66%"),se(ne)>=5?(Xe.appletOnLoad=function(ze){var ot=rt.querySelector(".ggb_preview");ot&&ot.parentNode.removeChild(ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner($t),window.GGBT_wsf_view&&$(window).trigger("resize"),on(ze)},st||$t.appendChild(lt)):Et.appendChild(lt),$t.appendChild(Et),st||rt.appendChild($t),setTimeout(function(){mt.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){mt.resize(),on(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 et(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(It){Ne(It.article,It.params)}),html5AppletsToProcess=null)},se(ne)<5&&(ze.className+=" geogebraweb")):Ne(ze,ot)}if(zt){scriptLoadStarted=!0;for(var xt=0;xt<Et.childNodes.length;xt++){var Ie=Et.childNodes[xt].tagName;Ie==="TABLE"&&(Et.removeChild(Et.childNodes[xt]),xt--)}if(ggbHTML5LoadedScript!==null){var Re=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Re!=null&&Re.parentNode.removeChild(Re)}var Ze=document.createElement("script"),Be=function(){et(Et,Xe)};Ze.src=ae+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ze.src,At("GeoGebra HTML5 codebase loaded: '"+ae+"'.",Xe),!ie&&(!fe||fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Be()):ae.requirejs?__webpack_require__.e(4510).then(function(){var ze=[__webpack_require__(4510)];Be.apply(null,ze)}.bind(this)).catch(__webpack_require__.oe):(Ze.onload=Be,rt.appendChild(Ze))}else et(Et,Xe);Xe.height=$e,Xe.width=an},Ye=function(rt,Xe,Ct){var zt=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(zt);var an=GGBAppletUtils.getScale(Xe,rt,Ct);Ct?(rt.appendChild(Fe()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),rt.appendChild(Et),an!==1&&!isNaN(an)&&(GGBAppletUtils.scaleElement(Et,an),Et.style.width=Xe.width+"px",Et.style.height=Xe.height+"px",Et.parentNode.style.width=Xe.width*an+"px",Et.parentNode.style.height=Xe.height*an+"px"),mt.resize=function(){vt(rt,zt,Et,Ct)},window.addEventListener("resize",function($e){mt.resize()}),mt.resize()};function vt(rt,Xe,Ct,zt){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(te,rt,zt);Ct.parentNode!==null&&(!isNaN(Et)&&Et!==1?(GGBAppletUtils.scaleElement(Ct,Et),Ct.parentNode.style.width=te.width*Et+"px",Ct.parentNode.style.height=te.height*Et+"px"):(GGBAppletUtils.scaleElement(Ct,1),Ct.parentNode.style.width=te.width+"px",Ct.parentNode.style.height=te.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()}}mt.onExitFullscreen=function(rt,Xe){Xe.appendChild(rt)};var we=function(rt,Xe,Ct,zt){Ye(rt,Xe,!0);for(var Et=function(){var yt=[];for($e=0;$e<rt.childNodes.length;$e++)yt.push(rt.childNodes[$e]);if(window.GGBT_wsf_view){var Lt=window.GGBT_wsf_view.renderFullScreen(rt,Xe.id),on=document.getElementById("fullscreencontainer"),$t=jQuery(rt).find(".fullscreencontent");$t.length>0?(Lt.remove(),$t.attr("id","fullscreencontent").show(),jQuery(on).append($t),window.dispatchEvent(new Event("resize"))):ht(Lt,Xe,!1),window.GGBT_wsf_view.launchFullScreen(on)}else oe=zt,ht(rt,Xe,!1);if(!window.GGBT_wsf_view)for($e=0;$e<yt.length;$e++)rt.removeChild(yt[$e])},an=rt.getElementsByClassName("ggb_preview_play"),$e=0;$e<an.length;$e++)an[$e].addEventListener("click",Et,!1),an[$e].addEventListener("ontouchstart",Et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),_e()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Fe=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,zt){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 an="lightgrey";Ct!==void 0&&(Ct==="none"?an="transparent":an=Ct),Et.style.border="1px solid "+an;var $e=document.createElement("img");if($e.style.position="relative",$e.style.zIndex="1000",$e.style.top="-1px",$e.style.left="-1px",E!==null&&$e.setAttribute("src",E),$e.style.opacity=.7,b!==null){var yt,Lt,on;if(!zt){yt=document.createElement("img"),yt.style.position="absolute",yt.style.zIndex="1001",yt.style.opacity=1,$e.style.opacity=.3,Lt=360,Lt>rt/4*3&&(Lt=rt/4*3),on=Lt/5.8,yt.setAttribute("src",b),yt.setAttribute("width",Lt),yt.setAttribute("height",on);var $t=(rt-Lt)/2,st=(Xe-on)/2;yt.style.left=$t+"px",yt.style.top=st+"px",Et.appendChild(yt)}}return Et.appendChild($e),Et},at=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},We=["web","webSimple","web3d","tablet","tablet3d","phone"],pt=function(rt,Xe){if(ne=rt,Xe){Pt(ne,!0);return}var Ct=!ge;if(Ct){var zt=se(ne);!isNaN(zt)&&zt<4.4&&(Ct=!1)}var Et,an;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var $e=ne.indexOf("//");$e>0?an=ne:$e===0?an=Et+ne:an="https://www.geogebra.org/apps/5.2.814.0/";for(var yt in We)if(ne.slice(We[yt].length*-1)===We[yt]||ne.slice((We[yt].length+1)*-1)===We[yt]+"/"){Pt(an,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ct&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Le(te.showToolBar)&&!Le(te.showMenuBar)&&!Le(te.showAlgebraInput)&&!Le(te.enableRightClick)&&(!te.appName||te.appName=="classic")?an+="webSimple/":an+="web3d/",Pt(an,!1)},Pt=function(rt,Xe){if(rt.requirejs){ae=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),ae=rt,Xe===null&&(Xe=rt.indexOf("http")===-1),he=Xe,a="web.nocache.js",y=!1;var Ct=ae.split("/");Ct.length>1&&(!Xe&&Ct[Ct.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):We.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 zt=parseFloat(ne);zt!==NaN&&zt<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zt+" is deprecated. Using version latest instead."),pt("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)};te.material_id!==void 0?ye(Bt):Bt();function Bt(){var rt=Ke;fe!==null?rt=fe:parseFloat(rt)<5&&(rt="5.0"),pt(rt,!1),ie!==null&&Pt(ie,he),Se=!0}return mt},GGBAppletUtils=function(){"use strict";function mt(){return window.GGBT_wsf_edit!==void 0}function Ke(Se,fe){fe!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+fe+","+fe+")",Se.style.webkitTransform="scale("+fe+","+fe+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function te(Se,fe,ie,de,le,me){var ae=null;if(me!=null&&me!="")for(var he=Se.parentNode;he!=null;)if((" "+he.className+" ").indexOf(" "+me+" ")>-1){ae=he;break}else he=he.parentNode;var oe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ae)oe=ae.offsetWidth,ne=Math.max(de?ae.offsetWidth:0,ae.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),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=oe&&(le===void 0||!le)&&(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(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((ie===void 0||!ie)&&fe>0&&fe+y<oe?oe=fe:oe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:oe,height:ne}}function ee(Se,fe,ie,de,le){if(Se.isScreenshoGenerator)return 1;var me=de!==void 0&&de,ae=Se.noScaleMargin!=null&&Se.noScaleMargin,he=function(re){return re&&re!=="false"},oe=he(Se.autoHeight),ne=te(fe,Se.width,ie,oe,me&&window.GGBT_wsf_view||ae,le),a=parseInt(ne.width),y=Se.width,E=Se.height;if(y===void 0){var b=fe.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 ge(Se,fe,ie){var de=1,le,me=!1;if(Se.hasOwnProperty("allowUpscale")&&(me=Se.allowUpscale),Se.hasOwnProperty("scale")&&(de=parseFloat(Se.scale),(isNaN(de)||de===null||de===0)&&(de=1),de>1&&(me=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))le=ee(Se,fe,me,ie,Se.scaleContainerClass);else return de;return me&&(!Se.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function be(Se){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),de=Se.getBoundingClientRect(),le=(fe-de.width)/2,me=(ie-de.height)/2;me<0&&(me=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?Se.style.left="40px":Se.style.left=le+"px",Se.style.top=me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(me<40?Se.style.top="40px":Se.style.top=me+"px",Se.style.left=le+"px")}function pe(Se,fe){var ie=Se.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var de=ge(fe,Se);mt()&&ie.setAttribute("data-param-scale",de);for(var le=null,me=0;me<Se.childNodes.length;me++)if(Se.childNodes[me].className!==void 0&&Se.childNodes[me].className.match(/^applet_scaler/)){le=Se.childNodes[me];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var ae=fe.id!==void 0?fe.id:"ggbApplet",he=window[ae];(he==null||!he.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(de)&&de!==1?(le.parentNode.style.width=fe.width*de+"px",le.parentNode.style.height=fe.height*de+"px",Ke(le,de)):(Ke(le,1),le.parentNode.style.width=fe.width+"px",le.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:pe,isFlexibleWorksheetEditor:mt,positionCenter:be,getScale:ge,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 mt=n.location.search;return mt.indexOf(J)!=-1||mt.indexOf(K)!=-1}function q(mt,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(mt){var Ke=s[L].bindings;s[L].bindings=function(){for(var te=Ke?Ke():{},ee=mt[webModule.__softPermutationId],ge=O;ge<ee.length;ge++){var be=ee[ge];te[be[O]]=be[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var mt=o.createElement(Q);if(mt.id=L,mt.style.cssText=R+S,mt.tabIndex=-1,o.body.appendChild(mt),t=mt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ke=document.compatMode==U?V:W;t.write(Ke+X),t.close()}}}function w(mt){function Ke(ee){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=ge();if(be){ee();return}function pe(){if(!be){if(!ge())return;be=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,pe,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,pe,!1);var Se=setInterval(function(){pe()},$)}function te(ee){var ge=u(),be=ge.body,pe=ge.createElement(_);pe.language=ab,pe.crossOrigin=W,pe.src=ee,webModule.__errFn&&(pe.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),be.appendChild(pe)}Ke(function(){te(mt)})}webModule.__startLoadingFragment=function(mt){return C(mt)},webModule.__installRunAsyncCode=function(mt){var Ke=u(),te=Ke.body,ee=Ke.createElement(_);ee.language=ab,ee.text=mt,te.appendChild(ee),te.removeChild(ee)};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(mt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(mt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(mt){var Ke=c[mt];return Ke==null?null:Ke},r=d,webModule.__errFn=e}function B(){function mt(Se){var fe=Se.lastIndexOf(rb);fe==-1&&(fe=Se.length);var ie=Se.indexOf(sb);ie==-1&&(ie=Se.length);var de=Se.lastIndexOf(tb,Math.min(ie,fe));return de>=O?Se.substring(O,de+P):W}function Ke(Se){if(!Se.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=Se+vb,Se=mt(fe.src)}return Se}function te(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ee(){for(var Se=o.getElementsByTagName(_),fe=O;fe<Se.length;++fe)if(Se[fe].src.indexOf(xb)!=-1)return mt(Se[fe].src);return W}function ge(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function be(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var pe=te();return pe==W&&(pe=ee()),pe==W&&(pe=ge()),pe==W&&be()&&(pe=mt(o.location.href)),pe=Ke(pe),pe}function C(mt){return mt.match(/^\//)||mt.match(/^[a-zA-Z]+:\/\//)?mt:webModule.__moduleBase+mt}function D(){var mt=[],Ke=O,te=[],ee=[];function ge(Se){var fe=ee[Se](),ie=te[Se];if(fe in ie)return fe;var de=[];for(var le in ie)de[ie[le]]=le;throw r&&r(Se,de,fe),null}if(__gwt_isKnownPropertyValue=function(Se,fe){return fe in te[Se]},webModule.__getPropMap=function(){var Se={};for(var fe in te)te.hasOwnProperty(fe)&&(Se[fe]=ge(fe));return Se},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var pe=be.indexOf(Db);pe!=-1&&(Ke=parseInt(be.substring(pe+P),$),be=be.substring(O,pe))}catch(Se){}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})()},23216:function(mt,Ke,te){"use strict";te.d(Ke,{Ax:function(){return pe},Ds:function(){return Se},KI:function(){return ie},SI:function(){return be},f1:function(){return ge}});var ee=te(14185);function ge(de){let le=!0;if(de.length>0){for(let me=0;me<de.length;me++)if(de[me].compile_success==0||!de[me].compile_success){le=!1;break}}else le=!1;return le}function be(de,le=""){let me=[];for(let ae=0;ae<de.length;ae++){let he=de[ae],oe=le?`${le}/${he.name}`:`${he.name}`;me.push({title:he.name,type:he.type,isLeaf:he.type!=="tree",key:oe})}return me}function pe(de,le,me){for(let ae=0;ae<de.length;ae++){let he=de[ae];if(he.key===le){he.children=me;break}he.children&&pe(he.children,le,me)}return de}function Se(de,le,me){let ae;return function(){let he=this,oe=arguments,ne=function(){ae=null,me||de.apply(he,oe)},a=me&&!ae;clearTimeout(ae),ae=setTimeout(ne,le),a&&de.apply(he,oe)}}const fe=!0,ie=ee.Z.API_SERVER},13946:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return b}});var ee=te(59301),ge=te(49317),be=te(1012),pe=te(92310),Se=te.n(pe),fe={upload:"upload___jpwPD"},ie=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,he=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={}))ae.call(z,re)&&oe(x,re,z[re]);if(me)for(var re of me(z))he.call(z,re)&&oe(x,re,z[re]);return x},a=(x,z)=>de(x,le(z)),y=(x,z,re)=>new Promise((se,ce)=>{var _e=Ee=>{try{De(re.next(Ee))}catch(je){ce(je)}},ye=Ee=>{try{De(re.throw(Ee))}catch(je){ce(je)}},De=Ee=>Ee.done?se(Ee.value):Promise.resolve(Ee.value).then(_e,ye);De((re=re.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:re,onComplete:se,onError:ce,onProgress:_e,onBefore:ye,onBeginInitFile:De,children:Ee,accept:je,className:Le,style:ht={},concurrency:Ye=4},vt)=>{let[we,Fe]=(0,ee.useState)("ready");const[He,at]=(0,ee.useState)(0),[We,pt]=(0,ee.useState)(""),[Pt,At]=(0,ee.useState)(null),Bt=(0,ee.useRef)(null),rt=(0,ee.useRef)((0,be.Z)()),Xe=(0,ee.useRef)(!1);(0,ee.useImperativeHandle)(vt,()=>({cancel:Et,file:Pt,uploadStatus:we}));const Ct=()=>{const $e=document.getElementById(rt.current);$e&&($e.value="")},zt=$e=>y(void 0,null,function*(){var yt;if(we==="uploading")return;De&&De($e);const Lt=$e.size,on=Math.ceil(Lt/x);Xe.current=!1,Fe("uploading"),at(0),pt("");try{const $t=yield(0,ge.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:$e.name,chunkCount:on},z)});if(Xe.current||($t==null?void 0:$t.status)!==0)throw new Error;const{upload_id:st}=$t;Bt.current=new AbortController;const lt=[];let Ge=0;for(let Ie=0;Ie<on;Ie++){const Re=Ie*x,Ze=Math.min(Re+x,Lt),Be=$e.slice(Re,Ze),ze=new FormData;ze.append("chunk",Be),ze.append("fileName",$e.name),ze.append("chunkIndex",(Ie+1).toString()),ze.append("uploadId",st);for(const ot in z)Object.prototype.hasOwnProperty.call(z,ot)&&ze.append(ot,z[ot]);lt.push(()=>(0,ge.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ze,signal:Bt.current.signal},!0).then(ot=>{console.log(ot,444),Ge++;const It=Math.round(Ge/on*100);at(It),_e&&_e(a(ne({},ot),{file:$e,percent:It}))}))}let Ne=0,et=Ye;for(console.log(lt,"promises");Ne<lt.length;){const Ie=(yt=lt.slice(Ne,Ne+et))==null?void 0:yt.map(Re=>Re());if(Ie.length>0){const Re=yield Promise.all(Ie);Ne+=et}}const xt=yield(0,ge.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:$e.name,chunkCount:on,uploadId:st},z)});xt.object?(Fe("success"),Ct(),se&&se(a(ne({},xt),{file:$e,percent:100}))):(Fe("error"),pt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce($e.name))}catch($t){Fe("error"),pt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce($e.name)}}),Et=(0,ee.useCallback)(()=>{Xe.current=!0,Bt.current&&(Bt.current.abort(),re&&re())},[re]),an=$e=>{var yt,Lt;const on=(Lt=(yt=$e==null?void 0:$e.target)==null?void 0:yt.files)==null?void 0:Lt[0];if(At(on),we="ready",!!on){if(ye){ye(on)||zt(on),Ct();return}zt(on)}};return ee.createElement(ee.Fragment,null,ee.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:an,accept:je}),ee.createElement("label",{className:Se()(fe.upload,Le),htmlFor:rt.current,style:ht},Ee))};var b=(0,ee.forwardRef)(E)},40254:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ae}});var ee=te(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=te(92310),pe=te.n(be),Se=te(71418),fe=te(2859),ie=te(49317),de=te(76406),le=(he,oe,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(re){y(re)}},b=z=>{try{x(ne.throw(z))}catch(re){y(re)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(he,oe)).next())}),ae=({data:he,className:oe,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ee.useRef)(null),re=(0,ee.useRef)(null),se=(0,ee.useRef)(null),ce=(0,ee.useRef)(null),[_e,ye]=(0,ee.useState)(!1),[De,Ee]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{se.current||(se.current=document.createElement("style"),document.head.appendChild(se.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),se.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&je()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[he==null?void 0:he.visible]);const je=()=>le(void 0,null,function*(){ye(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const we=yield(0,de.ZJ)(he==null?void 0:he.src);z.current.src="",z.current.src=we,z.current.onload=function(){vt()},ye(!1),Ee("")}),Le=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",y()},ht=we=>le(void 0,null,function*(){ye(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Fe=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:we.dataUrl}});Fe!=null&&Fe.id&&!x?(yield(0,ie.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:Fe==null?void 0:Fe.id,settings:JSON.stringify(we.state)}})).status===0&&E():Fe!=null&&Fe.id&&E(Fe),document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",ye(!1),Ee("")}),Ye=()=>{const we=document.querySelector('a[href="https://markerjs.com/"]');we&&we.parentNode&&(we.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(He=>{const at=document.querySelector(He.name);at&&at.setAttribute("title",He.title)})},vt=()=>{re.current=new fe.hP(z.current),re.current.targetRoot=ce.current,re.current.addEventListener("render",ht),re.current.addEventListener("beforeclose",Le),b&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),he!=null&&he.snapshotData&&re.current.restoreState(he.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ye()},300)};return ee.createElement(ee.Fragment,null,(he==null?void 0:he.visible)&&ee.createElement(Se.Z,{spinning:_e,tip:De,style:{position:"absolute"}},ee.createElement("div",{ref:ce,className:pe()(ge.imageDimensions,oe,ne?ge.fullWidth:""),style:a},ee.createElement("img",{className:ge.img,ref:z}))))}},9057:function(mt,Ke,te){"use strict";var ee=te(59301),ge=te(95237),be=te(43604),pe=te(99313),Se=te(3113),fe=te(67153),ie=te(74501),de=te(48136),le=te(59301);const me=(0,ee.forwardRef)(({callback:ae,showSaveButton:he,value:oe=""},ne)=>{const a=(0,ee.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=re=>{a.current.setValue(a.current.getValue()+" "+re.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:`$$${re.value}$$`}),re.name),le.createElement("div",{className:ie.Z.children},re.children.map((ce,_e)=>le.createElement("div",{key:_e},le.createElement("h1",null,ce.name),le.createElement(ge.Z,{gutter:[10,10]},ce.data.map((ye,De)=>le.createElement(be.Z,{key:De,onClick:()=>b(ye),className:ie.Z.diamond},le.createElement(fe.Z,{value:"`$$"+ye.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}),re.name),le.createElement("div",{className:ie.Z.children},re.children.map((ce,_e)=>le.createElement("div",{key:_e},ce.name&&le.createElement("h1",null,ce.name),le.createElement(ge.Z,{gutter:[10,10]},ce.data.map((ye,De)=>le.createElement(be.Z,{key:De,onClick:()=>b(ye),className:ie.Z.diamond},le.createElement(fe.Z,{value:"`$$"+ye.value+"$$`"}))))))))))}],z=()=>{var re=document.createElement("div");re.innerHTML=a.current.getValue();var se=re.innerText;return ae&&ae(se),se};return(0,ee.useImperativeHandle)(ne,()=>({getData:z})),le.createElement("div",{className:ie.Z.mathWrap},le.createElement(pe.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},oe||""),he&&le.createElement("div",{className:ie.Z.button},le.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ke.Z=me},28010:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(44283),ge={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=te(59301),pe=({message:Se,className:fe,children:ie,style:de={}})=>be.createElement("div",{className:`custom-spinner ${ge.idsRingWrapper} ${fe}`},be.createElement("div",{className:ge.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),Se?be.createElement("p",{style:de},Se):null,ie,be.createElement(ee.Outlet,null))},22914:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(59301),ge=te(33156),be=te(59301),pe=({defaultX:Se="40%",leftChild:fe,rightChild:ie,className:de,hideResize:le=!1})=>{const[me,ae]=(0,ee.useState)(Se),he=(0,ee.useRef)();function oe(){he.current=!0}(0,ee.useEffect)(()=>{function y(b){he.current&&(ge.Z.publish("resize-move-bar",b),ae(b.pageX))}function E(){he.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`:Se,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${de}`},be.createElement("section",{style:{width:ne,display:me===.01?"none":""}},fe),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))}},16102:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return fe}});var ee=te(59301),ge={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=te(92310),pe=te.n(be),fe=({className:ie,style:de={},leftNode:le,leftTitle:me="\u81EA\u6D4B\u8F93\u5165",rightNode:ae,rightTitle:he="\u8FD0\u884C\u7ED3\u679C"})=>ee.createElement("div",{className:pe()(ge.result,ie),style:de},ee.createElement("div",{className:ge.left},ee.createElement("div",{className:ge.title},ee.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),ee.createElement("span",null,me)),ee.createElement("div",{className:ge.leftNode},le)),ee.createElement("div",{className:ge.right},ee.createElement("div",{className:ge.title},ee.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),ee.createElement("span",null,he)),ee.createElement("div",{className:ge.rightNode},ae)))},42524:function(mt,Ke,te){"use strict";var ee=te(59301);const ge=pe=>String(pe).length===1?`0${pe}`:pe,be=({className:pe="",onChange:Se,defaultValue:fe=0})=>{const[ie,de]=(0,ee.useState)(fe);(0,ee.useEffect)(()=>{const he=setTimeout(()=>{de(ie+1e3)},1e3);return Se(ie+1e3),()=>{clearInterval(he)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",me=parseInt(ie%(60*6e4)/6e4)||"00",ae=parseInt(ie%6e4/1e3)||"00";return ee.createElement("div",{className:pe},ge(le),":",ge(me),":",ge(ae))};Ke.Z=be},42972:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return a}});var ee=te(59301),ge=te(8591),be=te(38854),pe=te(72790),Se=te(16471),fe=te(15267),ie=te(56102),de=te(67195),le={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=_e=>{try{ce(b.next(_e))}catch(ye){z(ye)}},se=_e=>{try{ce(b.throw(_e))}catch(ye){z(ye)}},ce=_e=>_e.done?x(_e.value):Promise.resolve(_e.value).then(re,se);ce((b=b.apply(y,E)).next())});function ae(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 he(y,E){return y-E}function oe(y){y.sort(he);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,ee.forwardRef)(({allow_skip:y,src:E,toLog:b,videoId:x,logWatchHistory:z,courseId:re=null,startTime:se,handlePause:ce=()=>{},handlePlay:_e=()=>{},handlePlayEnded:ye=()=>{},autoPlay:De=!1,onPlayEnded:Ee=()=>{},isShowWaterMark:je=!0},Le)=>{var ht;const vt=((ht=E==null?void 0:E.split("."))==null?void 0:ht.pop())==="flv",we=(0,ee.useRef)(),Fe=(0,ee.useRef)(),He=(0,ee.useRef)(),at=(0,ee.useRef)(),We=(0,ee.useRef)(),pt=(0,ee.useRef)(),Pt=(0,ee.useRef)(),At=(0,ee.useRef)(),Bt=(0,ee.useRef)(),rt=(0,ee.useRef)(),Xe=(0,ee.useRef)(),Ct=(0,ee.useRef)(),zt=(0,ee.useRef)(),Et=(0,ee.useRef)(),an=navigator.userAgent.toLowerCase().match(ne),$e=an?an[0]:"pc",yt=(0,ee.useRef)(!1),Lt=(0,fe.eY)();let on=0,$t=0,st=0,lt=null,Ge=!1,Ne=20,et=1,xt=!1,Ie=!1,Re=[];(0,ee.useImperativeHandle)(Le,()=>({getLastUpdatedTime:()=>we.current.currentTime,getDuration:()=>we.current.duration})),ge.ZP.config({maxCount:1,getContainer:()=>He.current});const Ze=(0,ee.useCallback)((Dt,Ht=!1)=>{let bt={point:we.current.currentTime};lt?(bt.log_id=lt,bt.watch_duration=oe(Re),bt.total_duration=$t):(re?(bt.video_id=parseInt(x,10),bt.course_id=re):bt.video_id=x,bt.duration=on,bt.device=$e),Ht&&(bt.ed="1");function fn(){return me(this,null,function*(){xt=!0,lt=yield z==null?void 0:z(bt),xt=!1,Dt&&Dt()})}fn()},[x,re]);(0,ee.useEffect)(()=>{we.current&&(at.current.style.display="none",We.current.style.display="block"),ge.ZP.destroy();let Dt=null;return pe.Z.isSupported&&vt&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(Dt=pe.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),we.current&&(Dt.attachMediaElement(we.current),Dt.load())):we.current.setAttribute("src",E),ze(),()=>{Dt&&(Dt.unload(),Dt.pause(),Dt.destroy(),Dt=null)}},[we,vt,E]);function Be(){we.current.paused?(at.current.style.display="none",We.current.style.display="block"):(at.current.style.display="block",We.current.style.display="none")}function ze(){Xe.current.style.display="none",zt.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?zt.current.style.display="block":Ct.current.style.display="block"}(0,ee.useEffect)(()=>{const Dt=document.getElementById("play"),Ht=document.querySelectorAll(".playback-icons use");function bt(){_e(),se&&!yt.current&&(we.current.currentTime=se),yt.current=!0,Re.push(we.current.currentTime),Ge||(Ge=!0,b&&Ze())}function fn(){return me(this,null,function*(){Be(),Re.push(we.current.currentTime),b&&Ze(()=>{lt=null,st=0,Ge=!1,xt=!1,Ie=!1,Re=[],$t=0,et=1},!0),Ee()})}function cn(){pt.current.value=Math.round(we.current.currentTime),Pt.current.value=Math.round(we.current.currentTime)}function wt(){const sn=ae(Math.round(we.current.currentTime));Bt.current.innerText=`${sn.hour>0?sn.hour+":":""}${sn.minutes}:${sn.seconds}`,Bt.current.setAttribute("datetime",`${sn.hour>0?" "+sn.hour+" ":""}${sn.minutes}m ${sn.seconds}s`)}function yn(){var sn,Yn,ir,Zn,ar,Dr,Mr;const Er=Math.round((sn=we.current)==null?void 0:sn.duration);(ir=(Yn=pt.current)==null?void 0:Yn.setAttribute)==null||ir.call(Yn,"max",Er),(ar=(Zn=Pt.current)==null?void 0:Zn.setAttribute)==null||ar.call(Zn,"max",Er);const Br=ae(Er);At.current&&(At.current.innerText=`${Br.hour>0?Br.hour+":":""}${Br.minutes}:${Br.seconds}`,(Mr=(Dr=At.current).setAttribute)==null||Mr.call(Dr,"datetime",`${Br.hour>0?" "+Br.hour+" ":""}${Br.minutes}m ${Br.seconds}s`))}function vn(){try{const sn=Math.round(we.current.duration);pt.current.setAttribute("max",sn),Pt.current.setAttribute("max",sn);const Yn=ae(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`),cn(),wt();const{width:ir,height:Zn,x:ar,y:Dr}=Fe.current.getBoundingClientRect();if(ar<0||Dr<0||!ir)return;if(!Ie){let Mr=we.current.currentTime,Er=Mr-st;Math.abs(Er)<10?($t+=Math.abs(Er),st=Mr,xt||$t-et*Ne>=0&&(et++,Re.push(st),b&&Ze())):(st=Mr,b&&Ze())}}catch(sn){console.log(sn)}}function zn(){Ie=!0}function wn(){we.current.playing&&Re.push(we.current.currentTime,st),st=we.current.currentTime,Ie=!1}function Wn(){on=we.current.duration,on<=20&&(Ne=on/3),we.current.addEventListener("play",bt)}function qn(sn){sn.preventDefault(),(0,de.vp)()?(we.current.style.width="100%",we.current.style.height="100%"):we.current.style.cssText=""}function Kn(){ce()}function Vn(sn){if(!y){ge.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,pt.current.value=Yn}function vr(sn){const Yn=Math.round(sn.offsetX/sn.target.clientWidth*parseInt(sn.target.getAttribute("max"),10));pt.current.setAttribute("data-seek",Yn);const ir=ae(Yn);rt.current.textContent=`${ir.hour>0?ir.hour+":":""}${ir.minutes}:${ir.seconds}`;const Zn=we.current.getBoundingClientRect();rt.current.style.left=`${sn.pageX-Zn.left}px`}function lr(sn){switch(sn.code){case"Space":sn.preventDefault(),Mt();break;case"ArrowRight":if(sn.preventDefault(),!y){ge.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,cn();break;case"ArrowLeft":if(sn.preventDefault(),!y){ge.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,cn();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,de.gH)(),qn),we.current.addEventListener("canplay",Wn),we.current.addEventListener("ended",fn),we.current.addEventListener("seeking",zn),we.current.addEventListener("seeked",wn),we.current.addEventListener("loadedmetadata",yn),pt.current.addEventListener("mousemove",vr),pt.current.addEventListener("input",Vn),we.current.addEventListener("timeupdate",vn),we.current.addEventListener("pause",Kn),we.current.addEventListener("volumechange",ze),document.addEventListener("keydown",lr),()=>{var sn,Yn,ir,Zn,ar,Dr,Mr,Er,Br,sr,Kr,Ut;(sn=we.current)==null||sn.removeEventListener("canplay",Wn),(Yn=we.current)==null||Yn.removeEventListener("play",bt),(ir=we.current)==null||ir.removeEventListener("ended",fn),(Zn=we.current)==null||Zn.removeEventListener("seeking",zn),(ar=we.current)==null||ar.removeEventListener("seeked",wn),(Dr=pt.current)==null||Dr.removeEventListener("mousemove",vr),(Mr=pt.current)==null||Mr.removeEventListener("input",Vn),(Er=we.current)==null||Er.removeEventListener("timeupdate",vn),(Br=we.current)==null||Br.removeEventListener("pause",Kn),(sr=we.current)==null||sr.removeEventListener("loadedmetadata",yn),(Kr=we.current)==null||Kr.removeEventListener("volumechange",ze),document.removeEventListener("keydown",lr),(Ut=we.current)!=null&&Ut.playing&&(Re.push(st,we.current.currentTime),b&&Ze())}},[we,E]),(0,ee.useEffect)(()=>{if(we.current.onended=()=>{ye(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(Se.ZP.isSupported()){var Dt=new Se.ZP;Dt.loadSource(E),Dt.attachMedia(we.current)}}},[E]);const[ot,It]=(0,ee.useState)(1),Mt=()=>{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 ee.createElement("div",{style:{position:"relative"},ref:He},ee.createElement("div",{ref:Fe,className:`${le.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${le.animate__loop}`},je&&Lt?Lt.login:" "),ee.createElement("div",{className:le.container},ee.createElement("div",{className:le["video-container"],id:"video-container"},ee.createElement("div",{className:le["playback-animation"],id:"playback-animation"},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{className:"hidden",href:"#play-icon"}),ee.createElement("use",{href:"#pause"}))),ee.createElement("video",{className:le.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:we,autoPlay:De}),ee.createElement("div",{className:`${le["video-controls"]} `,id:"video-controls"},ee.createElement("div",{className:le["bottom-controls"]},ee.createElement("div",{className:le["left-controls"]},ee.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Mt},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{ref:We,href:"#play-icon"}),ee.createElement("use",{ref:at,style:{display:"none"},href:"#pause"}))),ee.createElement("div",{className:le.time},ee.createElement("time",{id:"time-elapsed",ref:Bt},"00:00"),ee.createElement("span",null," / "),ee.createElement("time",{id:"duration",ref:At},"00:00"))),ee.createElement("div",{className:le["right-controls"]},y&&ee.createElement(be.Z,{placement:"top",overlayClassName:le.rateOverlay,getPopupContainer:Dt=>Dt.parentNode,menu:{items:[{key:"1",label:ee.createElement("span",{onClick:()=>{It(1),we.current.playbackRate=1}},"1.0x")},{key:"2",label:ee.createElement("span",{onClick:()=>{It(1.5),we.current.playbackRate=1.5}},"1.5x")},{key:"3",label:ee.createElement("span",{onClick:()=>{It(2),we.current.playbackRate=2}},"2.0x")}]}},ee.createElement("div",{className:`${le.controlText} mr5`},"\u500D\u901F")),ee.createElement(ie.CopyToClipboard,{text:E,onCopy:()=>ge.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},ee.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),ee.createElement("div",{className:le["volume-controls"]},ee.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:le["volume-button"],id:"volume-button",onClick:jt},ee.createElement("i",{ref:Xe,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),ee.createElement("i",{ref:zt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),ee.createElement("i",{ref:Ct,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),ee.createElement("input",{className:le.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})),ee.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:le["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(He.current)}},ee.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),ee.createElement("div",{className:le["video-progress"]},ee.createElement("progress",{ref:Pt,value:"0",min:"0"}),ee.createElement("input",{className:le.seek,ref:pt,value:"0",min:"0",type:"range",step:"1"}),ee.createElement("div",{className:le["seek-tooltip"],ref:rt,id:"seek-tooltip"},"00:00"))))),ee.createElement("svg",{style:{display:"none"}},ee.createElement("defs",null,ee.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},ee.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),ee.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},ee.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),ee.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},ee.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"})))))})},11295:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(59301),ge=te(33156),be=te(11611),pe=()=>{const[Se,fe]=(0,ee.useState)(""),[ie,de]=(0,ee.useState)(0);let[le,me]=(0,ee.useState)(),[ae,he]=(0,ee.useState)();const[oe,ne]=(0,ee.useState)(!1),a=(0,ee.useRef)("");(0,ee.useEffect)(()=>ge.Z.subscribe("preview-image",De=>{fe(De),console.log(ce.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,ee.useEffect)(()=>{a.current=Se},[Se]);function y(ye){ye.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",me(void 0),he(void 0),de(0),fe("")}function b(){de(ie+90)}function x(){le=ce.current.width*1.1,ae=ce.current.height*1.1,he(ae),me(le)}function z(){le=ce.current.width/1.1,ae=ce.current.height/1.1,he(ae),me(le)}const re=(0,ee.useRef)(),se=(0,ee.useRef)(),ce=(0,ee.useRef)(),_e=ye=>{(ye.nativeEvent.target===re.current||ye.nativeEvent.target===se.current)&&E()};return ee.createElement(ee.Fragment,null,Se?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:se},ee.createElement(be.Z,{className:"image-preview",src:Se,style:{display:"none"},preview:{visible:!0,src:Se,movable:!1,onVisibleChange:ye=>{fe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},28267:function(mt,Ke,te){"use strict";te.d(Ke,{h:function(){return re}});var ee=te(59301),ge=te(57809),be=te(78241),pe=te(3113),Se=te(89780),fe=te.n(Se),ie=te(88319),de=te(94896),le=Object.defineProperty,me=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(se,ce,_e)=>ce in se?le(se,ce,{enumerable:!0,configurable:!0,writable:!0,value:_e}):se[ce]=_e,y=(se,ce)=>{for(var _e in ce||(ce={}))oe.call(ce,_e)&&a(se,_e,ce[_e]);if(he)for(var _e of he(ce))ne.call(ce,_e)&&a(se,_e,ce[_e]);return se},E=(se,ce)=>me(se,ae(ce));const b=ge.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={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:se,onCancel:ce})=>{const[_e,ye]=(0,ee.useState)("python");function De(je){ye(z[je][1])}function Ee(je){se(je)}return ee.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),ee.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(ge.default,{getPopupContainer:je=>je.parentNode,onChange:De},Object.keys(z).map(je=>ee.createElement(b,{key:je,value:je},z[je][0])))),ee.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(re,{mode:_e})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(pe.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function re({value:se,onChange:ce,mode:_e,options:ye={}}){const De=(0,ee.useRef)(),[Ee,je]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(Ee){let Le=function(ht){const Ye=ht.getValue();ce&&ce(Ye)};return Ee.on("change",Le),()=>{Ee.off("change",Le)}}},[Ee,ce]),(0,ee.useEffect)(()=>{Ee&&Ee.setOption("mode",_e)},[Ee,_e]),(0,ee.useEffect)(()=>{Ee&&(se!==Ee.getValue()||se==="")&&setTimeout(()=>{Ee.setValue(se||"")},300)},[Ee,se]),(0,ee.useEffect)(()=>{if(De.current&&!Ee){const Le=fe().fromTextArea(De.current,y({mode:_e,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ye));je(Le)}},[De.current,Ee]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:De}))}},18857:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ue}});var ee=te(59301),ge=te(89780),be=te.n(ge),pe=te(76374),Se=te(88319),fe=te(6313),ie=te(25717),de=te(99498),le=te(25419),me=te(67549),ae=te(67153),he=({value:ve="",className:Pe,showTextOnly:xe,showLines:ke,style:tt={}})=>{const dt=(0,ee.useMemo)(()=>"",[ve]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},oe=te(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ve,Pe,xe)=>Pe in ve?ne(ve,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[Pe]=xe,re=(ve,Pe)=>{for(var xe in Pe||(Pe={}))b.call(Pe,xe)&&z(ve,xe,Pe[xe]);if(E)for(var xe of E(Pe))x.call(Pe,xe)&&z(ve,xe,Pe[xe]);return ve},se=(ve,Pe)=>a(ve,y(Pe));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function _e({onActionCallback:ve,title:Pe,icon:xe,actionName:ke,className:tt="",children:dt}){function tn(){ve(ke)}return oe.createElement("a",{title:Pe,className:tt,onClick:tn},oe.createElement("i",{className:`${xe}`}),dt)}var ye=({watch:ve,showNullButton:Pe,showNullProgramButton:xe,onActionCallback:ke,fullScreen:tt,insertTemp:dt,hidetoolBar:tn,extraUse:Kt})=>{const _t=[...ce,{title:`${ve?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ve?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!tn&&_t.map((ft,Ft)=>oe.createElement("li",{key:Ft},ft.actionName?oe.createElement(_e,se(re({},ft),{onActionCallback:ke})):oe.createElement("span",{className:"v-line"}))),Pe?oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},oe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},oe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dt&&oe.createElement("li",null,oe.createElement(_e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dt}`,onActionCallback:ke},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kt&&oe.createElement("li",null,Kt),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(_e,{icon:`${tt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:tt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},De=te(88487),Ee=te(78241),je=te(92832),Le=te(3113),ht=Object.defineProperty,Ye=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,at=(ve,Pe,xe)=>Pe in ve?ht(ve,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[Pe]=xe,We=(ve,Pe)=>{for(var xe in Pe||(Pe={}))Fe.call(Pe,xe)&&at(ve,xe,Pe[xe]);if(we)for(var xe of we(Pe))He.call(Pe,xe)&&at(ve,xe,Pe[xe]);return ve},pt=(ve,Pe)=>Ye(ve,vt(Pe));const Pt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:ve,onCancel:Pe})=>{function xe(ke){ve(ke)}return ee.createElement(Ee.default,pt(We({},Pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),ee.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(je.default,null)),ee.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(je.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Le.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Bt=te(28267),rt=te(53332),Xe=te(43418),Ct=te(95237),zt=te(40254),Et=te(59301),an=({callback:ve,onCancel:Pe})=>{const xe=document.createElement("canvas"),ke=xe.getContext("2d");xe.width=1e3,xe.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,xe.width,xe.height);const tt=xe.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(zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:tt,visible:!0,title:String(Date.now())},onOk:dt=>{ve({src:dt.url})},onClose:Pe})))},$e=te(12378);function yt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(yt,go.CommandHandler),yt.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},yt.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var Pe=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.x,Pe))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe,xe.position.y))}),ve.commitTransaction("aligning left")},yt.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var Pe=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var ke=xe.actualBounds.x+xe.actualBounds.width;Pe=Math.max(ke,Pe)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe-xe.actualBounds.width,xe.position.y))}),ve.commitTransaction("aligning right")},yt.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var Pe=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.y,Pe))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,Pe))}),ve.commitTransaction("alignTop")},yt.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var Pe=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var ke=xe.actualBounds.y+xe.actualBounds.height;Pe=Math.max(ke,Pe)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,Pe-xe.actualBounds.height))}),ve.commitTransaction("aligning bottom")},yt.prototype.alignCenterX=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe){ve.startTransaction("aligning Center X");var xe=Pe.actualBounds.x+Pe.actualBounds.width/2;ve.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(xe-ke.actualBounds.width/2,ke.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},yt.prototype.alignCenterY=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe){ve.startTransaction("aligning Center Y");var xe=Pe.actualBounds.y+Pe.actualBounds.height/2;ve.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,xe-ke.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},yt.prototype.alignColumn=function(ve){var Pe=this.diagram;Pe.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var xe=new Array;Pe.selection.each(function(Kt){Kt instanceof go.Link||xe.push(Kt)});for(var ke=0;ke<xe.length-1;ke++){var tt=xe[ke],dt=tt.actualBounds.y+tt.actualBounds.height+ve,tn=xe[ke+1];tn.move(new go.Point(tt.actualBounds.x,dt))}Pe.commitTransaction("align Column")},yt.prototype.alignRow=function(ve){ve===void 0&&(ve=0),ve=parseFloat(ve);var Pe=this.diagram;Pe.startTransaction("align Row");var xe=new Array;Pe.selection.each(function(Kt){Kt instanceof go.Link||xe.push(Kt)});for(var ke=0;ke<xe.length-1;ke++){var tt=xe[ke],dt=tt.actualBounds.x+tt.actualBounds.width+ve,tn=xe[ke+1];tn.move(new go.Point(dt,tt.actualBounds.y))}Pe.commitTransaction("align Row")},yt.prototype.canRotate=function(ve){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},yt.prototype.rotate=function(ve){ve===void 0&&(ve=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ve.toString());var Pe=this.diagram;Pe.selection.each(function(xe){xe instanceof go.Link||xe instanceof go.Group||(xe.angle+=ve)}),Pe.commitTransaction("rotate "+ve.toString())},yt.prototype.pullToFront=function(){var ve=this.diagram;ve.startTransaction("pullToFront");var Pe=new go.Map;ve.selection.each(function(xe){Pe.set(xe.layer,0)}),Pe.iteratorKeys.each(function(xe){var ke=0;xe.parts.each(function(tt){if(!tt.isSelected){var dt=tt.zOrder;isNaN(dt)?tt.zOrder=0:ke=Math.max(ke,dt)}}),Pe.set(xe,ke)}),ve.selection.each(function(xe){yt._assignZOrder(xe,Pe.get(xe.layer)+1)}),ve.commitTransaction("pullToFront")},yt.prototype.pushToBack=function(){var ve=this.diagram;ve.startTransaction("pushToBack");var Pe=new go.Map;ve.selection.each(function(xe){Pe.set(xe.layer,0)}),Pe.iteratorKeys.each(function(xe){var ke=0;xe.parts.each(function(tt){if(!tt.isSelected){var dt=tt.zOrder;isNaN(dt)?tt.zOrder=0:ke=Math.min(ke,dt)}}),Pe.set(xe,ke)}),ve.selection.each(function(xe){yt._assignZOrder(xe,Pe.get(xe.layer)-1-yt._findGroupDepth(xe))}),ve.commitTransaction("pushToBack")},yt._assignZOrder=function(ve,Pe,xe){xe===void 0&&(xe=ve),ve.layer===xe.layer&&(ve.zOrder=Pe),ve instanceof go.Group&&ve.memberParts.each(function(ke){yt._assignZOrder(ke,Pe+1,xe)})},yt._findGroupDepth=function(ve){if(ve instanceof go.Group){var Pe=0;return ve.memberParts.each(function(xe){Pe=Math.max(Pe,yt._findGroupDepth(xe))}),Pe+1}else return 0},yt.prototype.doKeyDown=function(){var ve=this.diagram;if(ve!==null){var Pe=ve.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var xe=this.arrowKeyBehavior;if(xe==="none")return;if(xe==="select"){this._arrowKeySelect();return}else if(xe==="move"){this._arrowKeyMove();return}else if(xe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},yt.prototype._getAllParts=function(){var ve=new Array;return this.diagram.nodes.each(function(Pe){ve.push(Pe)}),this.diagram.parts.each(function(Pe){ve.push(Pe)}),ve},yt.prototype._arrowKeyMove=function(){var ve=this.diagram,Pe=ve.lastInput,xe=0,ke=0;if(Pe.control||Pe.meta)xe=1,ke=1;else if(ve.grid!==null){var tt=ve.grid.gridCellSize;ke=tt.width,xe=tt.height}ve.startTransaction("arrowKeyMove"),ve.selection.each(function(dt){Pe.key==="Up"?dt.move(new go.Point(dt.actualBounds.x,dt.actualBounds.y-xe)):Pe.key==="Down"?dt.move(new go.Point(dt.actualBounds.x,dt.actualBounds.y+xe)):Pe.key==="Left"?dt.move(new go.Point(dt.actualBounds.x-ke,dt.actualBounds.y)):Pe.key==="Right"&&dt.move(new go.Point(dt.actualBounds.x+ke,dt.actualBounds.y))}),ve.commitTransaction("arrowKeyMove")},yt.prototype._arrowKeySelect=function(){var ve=this.diagram,Pe=ve.lastInput,xe=null;Pe.key==="Up"?xe=this._findNearestPartTowards(270):Pe.key==="Down"?xe=this._findNearestPartTowards(90):Pe.key==="Left"?xe=this._findNearestPartTowards(180):Pe.key==="Right"&&(xe=this._findNearestPartTowards(0)),xe!==null&&(Pe.shift?xe.isSelected=!0:Pe.control||Pe.meta?xe.isSelected=!xe.isSelected:ve.select(xe))},yt.prototype._findNearestPartTowards=function(ve){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var xe=Pe.actualBounds.center,ke=this._getAllParts(),tt=1/0,dt=Pe,tn=0;tn<ke.length;tn++){var Kt=ke[tn];if(Kt!==Pe&&Kt.canSelect()){var _t=Kt.actualBounds.center,ft=xe.directionPoint(_t),Ft=this._angleCloseness(ft,ve);if(Ft<=45){var gt=xe.distanceSquaredPoint(_t);gt*=1+Math.sin(Ft*Math.PI/180),gt<tt&&(tt=gt,dt=Kt)}}}return dt},yt.prototype._angleCloseness=function(ve,Pe){return Math.min(Math.abs(Pe-ve),Math.min(Math.abs(Pe+360-ve),Math.abs(Pe-360-ve)))},yt.prototype._arrowKeyTree=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe instanceof go.Node){var xe=ve.lastInput;if(xe.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ve.commandHandler.canExpandTree(Pe)&&ve.commandHandler.expandTree(Pe);else{var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ve.select(ke)}}else if(xe.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ve.commandHandler.canCollapseTree(Pe)&&ve.commandHandler.collapseTree(Pe);else{var tt=Pe.findTreeParentNode();tt!==null&&ve.select(tt)}else if(xe.key==="Up"){var tt=Pe.findTreeParentNode();if(tt!==null){var dt=this._sortTreeChildrenByY(tt),tn=dt.indexOf(Pe);if(tn>0){for(var Kt=dt.elt(tn-1);Kt!==null&&Kt.isTreeExpanded&&!Kt.isTreeLeaf;){var _t=this._sortTreeChildrenByY(Kt);Kt=_t.last()}Kt!==null&&ve.select(Kt)}else ve.select(tt)}}else if(xe.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ve.select(ke)}else for(;Pe!==null;){var tt=Pe.findTreeParentNode();if(tt===null)break;var dt=this._sortTreeChildrenByY(tt),tn=dt.indexOf(Pe);if(tn<dt.length-1){ve.select(dt.elt(tn+1));break}else Pe=tt}var ft=ve.selection.first();ft!==null&&ve.scrollToRect(ft.actualBounds)}},yt.prototype._sortTreeChildrenByY=function(ve){var Pe=new go.List().addAll(ve.findTreeChildrenNodes());return Pe.sort(function(xe,ke){var tt=xe.location,dt=ke.location;return tt.y<dt.y?-1:tt.y>dt.y?1:tt.x<dt.x?-1:tt.x>dt.x?1:0}),Pe},yt.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},yt.prototype.pasteFromClipboard=function(){var ve=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ve,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ve},Object.defineProperty(yt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ve){if(ve!=="move"&&ve!=="select"&&ve!=="scroll"&&ve!=="tree"&&ve!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ve);this._arrowKeyBehavior=ve}}),Object.defineProperty(yt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ve){if(!(ve instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ve);this._pasteOffset.set(ve)}});var Lt=yt,on=te(42287),$t=te(43604),st=te(49317),lt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=te(59301),Ne=(ve,Pe,xe)=>new Promise((ke,tt)=>{var dt=_t=>{try{Kt(xe.next(_t))}catch(ft){tt(ft)}},tn=_t=>{try{Kt(xe.throw(_t))}catch(ft){tt(ft)}},Kt=_t=>_t.done?ke(_t.value):Promise.resolve(_t.value).then(dt,tn);Kt((xe=xe.apply(ve,Pe)).next())});function et({onCancel:ve,callback:Pe}){let xe=(0,ee.useRef)(),ke=(0,ee.useRef)(),tt=(0,ee.useRef)(),dt=(0,ee.useRef)(!1);const tn=(0,ee.useRef)(!1),[Kt,_t]=(0,ee.useState)(0);function ft(){const gt=$e.bx.make,Gt={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"};xe.current=new $e.S0(ke.current,{padding:20,grid:gt($e.s_,"Grid",gt($e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt($e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:un=>{var Sn=un.diagram.commandHandler.addTopLevelParts(un.diagram.selection,!0);Sn||un.diagram.currentTool.doCancel()},commandHandler:gt(Lt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:un=>{var Sn=un.subject;Sn.location=Sn.location.copy().snapToGridPoint(un.diagram.grid.gridOrigin,un.diagram.grid.gridCellSize),setTimeout(()=>{un.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:un=>{var Sn=un.subject;setTimeout(()=>{un.diagram.commandHandler.editTextBlock()})},LinkRelinked:un=>{var Sn=un.parameter.part;Sn.invalidateConnectedLinks();var Nn=un.subject;un.diagram.toolManager.linkingTool.isForwards?Nn.toNode.invalidateConnectedLinks():Nn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=gt($e.NB,"Auto",{locationSpot:$e.z6.Center,locationObjectName:"SHAPE",desiredSize:new $e.$u(120,60),minSize:new $e.$u(40,40),resizable:!0,resizeCellSize:new $e.$u(10,10),rotatable:!0},new $e.KX("location","loc",$e.E9.parse).makeTwoWay($e.E9.stringify),new $e.KX("desiredSize","size",$e.$u.parse).makeTwoWay($e.$u.stringify),gt($e.bn,{name:"SHAPE",fill:Gt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:$e.z6.AllSides,toSpot:$e.z6.AllSides},new $e.KX("figure"),new $e.KX("fill"),new $e.KX("stroke","borderColor"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),gt($e.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt($e.al,{margin:1,textAlign:"center",overflow:$e.al.OverflowEllipsis,editable:!0},new $e.KX("text").makeTwoWay(),new $e.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=gt("ToolTip",gt($e.s_,"Vertical",{maxSize:new $e.$u(200,NaN)},gt($e.al,{font:"bold 10pt sans-serif",textAlign:"center"},new $e.KX("text")),gt($e.al,{font:"10pt sans-serif",textAlign:"center"},new $e.KX("text","details"))));function Zt(un,Sn){var Nn=(pn,cr)=>{pn.handled=!0,pn.diagram.model.commit(fr=>{var Ar=cr.part.adornedPart,Ur=new $e.E9().setRectSpot(Ar.actualBounds,un);Ur.subtract(Ar.location),Ur.scale(2,2),Ur.x+=Math.sign(Ur.x)*130,Ur.y+=Math.sign(Ur.y)*130,Ur.add(Ar.location),Ur.snapToGridPoint(pn.diagram.grid.gridOrigin,pn.diagram.grid.gridCellSize);var to=fr.copyNodeData(Ar.data);fr.setGroupKeyForNodeData(to,fr.getGroupKeyForNodeData(Ar.data)),fr.addNodeData(to);var _o={from:Ar.key,to:fr.getKeyForNodeData(to)};fr.addLinkData(_o);var ho=pn.diagram.findNodeForData(to);ho.location=Ur,pn.diagram.select(ho),setTimeout(()=>{pn.diagram.commandHandler.editTextBlock()},20)})};return gt($e.bn,{figure:Sn,alignment:un,alignmentFocus:un.opposite(),width:un.equals($e.z6.Top)||un.equals($e.z6.Bottom)?25:18,height:un.equals($e.z6.Top)||un.equals($e.z6.Bottom)?18:25,fill:"orange",stroke:Gt.white,strokeWidth:4,mouseEnter:(pn,cr)=>cr.fill="dodgerblue",mouseLeave:(pn,cr)=>cr.fill="orange",isActionable:!0,click:Nn,contextClick:Nn})}function Tt(un){return gt($e.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:(Sn,Nn)=>Nn.fill="dodgerblue",mouseLeave:(Sn,Nn)=>Nn.fill="orange",click:(Sn,Nn)=>{Sn.diagram.commandHandler.showContextMenu(Nn.part.adornedPart)}},un||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=gt($e.uz,"Spot",gt($e.Vm,{padding:10}),Zt($e.z6.Top,"TriangleUp"),Zt($e.z6.Left,"TriangleLeft"),Zt($e.z6.Right,"TriangleRight"),Zt($e.z6.Bottom,"TriangleDown"),Tt({alignment:new $e.z6(.75,0)}));function kt(un,Sn){return(Nn,pn)=>{Nn.handled=!0,Nn.diagram.model.commit(cr=>{cr.set(pn.part.adornedPart.data,un,Sn)})}}function Xt(un,Sn){return Sn||(Sn="color"),gt($e.bn,{width:16,height:16,stroke:"lightgray",fill:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.stroke="dodgerblue",mouseLeave:(Nn,pn)=>pn.stroke="lightgray",click:kt(Sn,un),contextClick:kt(Sn,un)})}function dn(){return[gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.white,"fill"),Xt(Gt.beige,"fill"),Xt(Gt.extralightblue,"fill"),Xt(Gt.extralightred,"fill"))),gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.lightgray,"fill"),Xt(Gt.lightgreen,"fill"),Xt(Gt.lightblue,"fill"),Xt(Gt.lightred,"fill")))]}function xn(){return[gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.black),Xt(Gt.green),Xt(Gt.blue),Xt(Gt.red))),gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.white),Xt(Gt.magenta),Xt(Gt.purple),Xt(Gt.orange)))]}function Fn(un,Sn){return Sn||(Sn="thickness"),gt($e.bn,"LineH",{width:16,height:16,strokeWidth:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:kt(Sn,un),contextClick:kt(Sn,un)})}function Qn(un,Sn){return Sn||(Sn="dash"),gt($e.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:kt(Sn,un),contextClick:kt(Sn,un)})}function mn(){return[gt("ContextMenuButton",gt($e.s_,"Horizontal",Fn(1),Fn(2),Fn(3),Fn(4))),gt("ContextMenuButton",gt($e.s_,"Horizontal",Qn(null),Qn([2,4]),Qn([4,4])))]}function An(un,Sn){return Sn||(Sn="figure"),gt($e.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.fill="dodgerblue",mouseLeave:(Nn,pn)=>pn.fill="lightgray",click:kt(Sn,un),contextClick:kt(Sn,un)})}xe.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt($e.s_,"Horizontal",An("Rectangle"),An("RoundedRectangle"),An("Ellipse"),An("Diamond"))),gt("ContextMenuButton",gt($e.s_,"Horizontal",An("Parallelogram2"),An("ManualOperation"),An("Procedure"),An("Cylinder1"))),gt("ContextMenuButton",gt($e.s_,"Horizontal",An("Terminator"),An("CreateRequest"),An("Document"),An("TriangleDown"))),dn(),xn(),mn()),xe.current.groupTemplate=gt($e.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:$e.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(un,Sn)=>{var Nn=Sn.addMembers(Sn.diagram.selection,!0);Nn||Sn.diagram.currentTool.doCancel()},avoidable:!1},new $e.KX("location","loc",$e.E9.parse).makeTwoWay($e.E9.stringify),gt($e.s_,"Auto",{name:"BODY"},gt($e.bn,{parameter1:10,fill:Gt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:$e.z6.AllSides,toSpot:$e.z6.AllSides},new $e.KX("fill"),new $e.KX("stroke","color"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),gt($e.Vm,{background:"transparent",margin:20})),gt($e.al,{alignment:$e.z6.Top,alignmentFocus:$e.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new $e.KX("text"),new $e.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=gt($e.uz,"Spot",gt($e.s_,"Auto",gt($e.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt($e.Vm,{margin:1.5})),Tt({alignment:$e.z6.TopRight,alignmentFocus:$e.z6.BottomRight})),xe.current.groupTemplate.contextMenu=gt("ContextMenu",dn(),xn(),mn()),xe.current.linkTemplate=gt($e.rU,{layerName:"Foreground",routing:$e.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new $e.KX("fromSpot","fromSpot",$e.z6.parse),new $e.KX("toSpot","toSpot",$e.z6.parse),new $e.KX("fromShortLength","dir",un=>un>=1?10:0),new $e.KX("toShortLength","dir",un=>un>=1?10:0),new $e.KX("points").makeTwoWay(),gt($e.bn,{strokeWidth:2},new $e.KX("stroke","color"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),gt($e.bn,{segmentIndex:0,segmentOffset:new $e.E9(15,0),segmentOrientation:$e.rU.OrientAlong,alignmentFocus:$e.z6.Right,figure:"circle",width:10,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",un=>un===1)),gt($e.bn,{segmentIndex:-1,segmentOffset:new $e.E9(-10,6),segmentOrientation:$e.rU.OrientPlus90,alignmentFocus:$e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",un=>un>=1),new $e.KX("width","thickness",un=>7+3*un),new $e.KX("height","thickness",un=>7+3*un),new $e.KX("segmentOffset","thickness",un=>new $e.E9(-15,4+1.5*un))),gt($e.bn,{segmentIndex:0,segmentOffset:new $e.E9(15,-6),segmentOrientation:$e.rU.OrientMinus90,alignmentFocus:$e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",un=>un===2),new $e.KX("width","thickness",un=>7+3*un),new $e.KX("height","thickness",un=>7+3*un),new $e.KX("segmentOffset","thickness",un=>new $e.E9(-15,4+1.5*un))),gt($e.al,{alignmentFocus:new $e.z6(0,1,-4,0),editable:!0},new $e.KX("text").makeTwoWay(),new $e.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=gt($e.uz,gt($e.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ur(2)},new $e.KX("pathPattern","thickness",ur)),Tt({alignmentFocus:new $e.z6(0,0,-6,-4)}));function ur(un){return gt($e.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(un+4).toString()+" H3"})}function rr(un){var Sn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return un===0?Sn="M0 0 M16 16 M0 8 L16 8":un===2&&(Sn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt($e.bn,{geometryString:Sn,margin:2,background:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:kt("dir",un),contextClick:kt("dir",un)})}function or(un){var Sn=(Nn,pn)=>{Nn.handled=!0,Nn.diagram.model.commit(cr=>{var fr=pn.part.adornedPart;cr.set(fr.data,un?"toSpot":"fromSpot",$e.z6.stringify($e.z6.AllSides)),(un?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return gt($e.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:Sn,contextClick:Sn})}function Wt(un,Sn){var Nn=0,pn=$e.z6.RightSide;un.equals($e.z6.Top)?(Nn=270,pn=$e.z6.TopSide):un.equals($e.z6.Left)?(Nn=180,pn=$e.z6.LeftSide):un.equals($e.z6.Bottom)&&(Nn=90,pn=$e.z6.BottomSide),Sn||(Nn-=180);var cr=(fr,Ar)=>{fr.handled=!0,fr.diagram.model.commit(Ur=>{var to=Ar.part.adornedPart;Ur.set(to.data,Sn?"toSpot":"fromSpot",$e.z6.stringify(pn)),(Sn?to.toNode:to.fromNode).invalidateConnectedLinks()})};return gt($e.bn,{alignment:un,alignmentFocus:un.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nn,background:"transparent",mouseEnter:(fr,Ar)=>Ar.background="dodgerblue",mouseLeave:(fr,Ar)=>Ar.background="transparent",click:cr,contextClick:cr})}xe.current.linkTemplate.contextMenu=gt("ContextMenu",xn(),mn(),gt("ContextMenuButton",gt($e.s_,"Horizontal",rr(0),rr(1),rr(2))),gt("ContextMenuButton",gt($e.s_,"Horizontal",gt($e.s_,"Spot",or(!1),Wt($e.z6.Top,!1),Wt($e.z6.Left,!1),Wt($e.z6.Right,!1),Wt($e.z6.Bottom,!1)),gt($e.s_,"Spot",{margin:new $e.Zt(0,0,0,2)},or(!0),Wt($e.z6.Top,!0),Wt($e.z6.Left,!0),Wt($e.z6.Right,!0),Wt($e.z6.Bottom,!0)))));const io=`{ "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 wr=["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 Tr(un){return console.log("shapeName:",un),wr.indexOf(un)>=0}var kr=new $e.YI(tt.current,{maxSelectionCount:1,linkTemplate:gt($e.rU,{locationSpot:$e.z6.Center,selectionAdornmentTemplate:gt($e.uz,"Link",{locationSpot:$e.z6.Center},gt($e.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt($e.bn,{toArrow:"Standard",stroke:null}))},{routing:$e.rU.AvoidsNodes,curve:$e.rU.JumpOver,corner:5,toShortLength:4},new $e.KX("points"),gt($e.bn,{isPanelMain:!0,strokeWidth:2}),gt($e.bn,{toArrow:"Standard",stroke:null})),model:new $e.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...$e.bn.getFigureGenerators().toArray().map(un=>({text:"\u672A\u547D\u540D",size:"100 100",figure:un.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(un){var Sn;const Nn=un.subject.part;var pn=(Sn=document.activeElement)==null?void 0:Sn.value;typeof pn=="string"&&pn.trim()===""&&xe.current.model.commit(function(cr){cr.set(Nn.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),kr.nodeTemplate=gt($e.NB,"Auto",{locationSpot:$e.z6.Center},new $e.KX("location","location",$e.E9.parse).makeTwoWay($e.E9.stringify),gt($e.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 $e.KX("stroke").makeTwoWay(),new $e.KX("fill").makeTwoWay(),new $e.KX("figure")),gt($e.al,{margin:new $e.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new $e.$u(16,16),maxSize:new $e.$u(10,NaN),textAlign:"center",editable:!0},new $e.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=gt($e.s_,"Grid",gt($e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt($e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xe.current.grid.visible=!0,xe.current.grid.gridCellStroke="darkgray",xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xe.current,xe.current}const Ft=()=>Ne(this,null,function*(){var gt=xe.current.makeImage();const Gt=yield(0,st.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});Pe({src:Gt.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{ft()},500),_t(Kt+1),()=>{xe.current=null}),[]),Ge.createElement("div",{ref:tn,className:dt.current?`${lt.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Xe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Kt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Ct.Z,null,Ge.createElement($t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement($t.Z,{onClick:()=>{var gt,Gt,Zt=xe.current.selection.first();if(dt.current=!dt.current,document.activeElement&&Zt){let Tt=(Gt=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:Gt.trim();typeof Tt=="string"&&xe.current.model.commit(function(kt){kt.set(Zt.data,"text",Tt||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}_t(Kt+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ve},Ge.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:lt.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:lt.myPaletteDiv,ref:tt})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:ke,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(Le.ZP,{size:"large",onClick:Ft,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var xt=et,Ie=te(5112),Re=te(5871);const Ze=Ie.ZP.Group,Be={margin:"0 8px"};var ze=({callback:ve,onCancel:Pe})=>{function xe(ke){ve(ke)}return ee.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:Be},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:Be},"\u884C\u6570"),ee.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Re.Z,null)),ee.createElement("span",{style:Be},"\u5217\u6570"),ee.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Re.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:Be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(Ee.default.Item,{name:"align"},ee.createElement(Ze,null,ee.createElement(Ie.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(Ie.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(Ie.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(Ie.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Le.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},ot=te(78673),It=te(84915),Mt=te.n(It),Dt=(0,ee.forwardRef)(({use3d:ve,width:Pe,height:xe,callback:ke,showSaveButton:tt},dt)=>{const tn=(0,ee.useRef)(),Kt=(0,ee.useRef)(),[_t,ft]=(0,ee.useState)(!1),Ft=(0,ee.useRef)({id:tn,appName:"graphing",width:Pe||1e3,height:xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Kt.current=new(Mt())(Ft.current,!0),window.onload=function(){Kt.current.inject("applet_container")}},[]);const gt=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(Gt),Gt};return(0,ee.useEffect)(()=>{Ft.current.appName=_t?"3D":"graphing",Kt.current.inject("applet_container")},[_t]),(0,ee.useEffect)(()=>{ft(ve)},[ve]),(0,ee.useImperativeHandle)(dt,()=>({getImgData:gt})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:tn}),ee.createElement(Ct.Z,{align:"middle"},ee.createElement($t.Z,{flex:1},ee.createElement(ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_t,onChange:Gt=>ft(Gt)})),ee.createElement($t.Z,null,ee.createElement(Le.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=te(9057),bt=te(1012),fn=te(8591);const cn="link",wt="upload-image",yn="add-flowchart",vn="draw-image",zn="add-flowchart",wn="code-block",Wn="add-table",qn="------------",Kn={default:qn,left:`:${qn}`,center:`:${qn}:`,right:`${qn}:`};var Vn=te(79006),vr=(ve,Pe,xe)=>new Promise((ke,tt)=>{var dt=_t=>{try{Kt(xe.next(_t))}catch(ft){tt(ft)}},tn=_t=>{try{Kt(xe.throw(_t))}catch(ft){tt(ft)}},Kt=_t=>_t.done?ke(_t.value):Promise.resolve(_t.value).then(dt,tn);Kt((xe=xe.apply(ve,Pe)).next())});function lr(){}let sn=0;const Yn=1e4,ir="\u2581",Zn="@\u2581\u2581@",ar="@\u2581@",Dr=`
**\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`,Mr=["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 Er(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const sr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kr={[sr+"-B"]:"bold",[sr+"-I"]:"italic"},Ut={[cn]:"\u6DFB\u52A0\u94FE\u63A5",[wn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wt]:"\u6DFB\u52A0\u56FE\u7247",[vn]:"\u6DFB\u52A0\u753B\u56FE",[yn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ue=({defaultValue:ve="",onChange:Pe,width:xe="100%",height:ke=400,miniToolbar:tt=!1,isFocus:dt=!1,watch:tn,insertTemp:Kt,mode:_t="markdown",id:ft="markdown-editor-id",showResizeBar:Ft=!1,noStorage:gt=!1,showNullButton:Gt=!1,showNullProgramButton:Zt=!1,hidetoolBar:Tt=!1,fullScreen:kt=!1,onBlur:Xt,onCMBeforeChange:dn,onFullScreen:xn,className:Fn="",disablePaste:Qn=!1,disabled:mn=!1,disabledFill:An=!1,placeholder:ur="",values:rr="",extraUse:or})=>{const[Wt,io]=(0,ee.useState)(null),[wr,Tr]=(0,ee.useState)(ve),[kr,un]=(0,ee.useState)(tn),[Sn,Nn]=(0,ee.useState)(kt),[pn,cr]=(0,ee.useState)(""),[fr,Ar]=(0,ee.useState)(0),[Ur,to]=(0,ee.useState)(ke),[_o,ho]=(0,ee.useState)(!1),yo=(0,ee.useRef)((0,bt.Z)()),Io=(0,ee.useRef)(!1),bo=(0,ee.useRef)(),[Lo,Do]=(0,ee.useState)(0),[To,ao]=(0,ee.useState)(0),jr=(0,ee.useRef)(),$r=(0,ee.useRef)(),no=(0,ee.useRef)(),uo=(0,ee.useRef)(),No=()=>vr(void 0,null,function*(){var $n;const En=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:yo.current}});($n=En==null?void 0:En.attachments)!=null&&$n.length&&(console.log("cm:",Wt,jr),En.attachments.map(In=>{In.content_type.indexOf("image")>-1?Wt.replaceSelection(`![,](/api/attachments/${In.id}?type=${In.content_type})`):In.content_type.indexOf("video")>-1?Wt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):In.content_type.indexOf("pdf")>-1?Wt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type}&disposition=inline" target="_blank">${In.name}</a>`):Wt.replaceSelection(`[${In.name}](${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type})`)}))});(0,ee.useEffect)(()=>{const $n=window.scrollY||window.pageYOffset;Tr(rr),Wt==null||Wt.setValue(rr),window.scrollTo(0,$n)},[rr]),(0,ee.useEffect)(()=>{xn==null||xn(Sn)},[Sn]),(0,ee.useEffect)(()=>{if(jr.current){let $n=function(In,Bn){var gr;if(Qn){Bn.preventDefault();return}const Ir=Bn.clipboardData;if(Ir){const Xr=Ir.types.toString(),Qr=Ir.items;if(Xr==="Files"||Ir.types.indexOf("Files")>-1){if(Bn.preventDefault(),_t=="stex")return;try{let fo=Qr[1];((gr=Qr[0])==null?void 0:gr.kind)==="file"&&(fo=Qr[0]);const lo=fo.getAsFile(),Ho=lo.name.split(".").pop();(0,rt.I)(lo,xo=>{var di,ni,Jr;xo.id?((di=lo==null?void 0:lo.type)==null?void 0:di.indexOf("image"))>-1?En.replaceSelection(`<img width="100%" src="/api/attachments/${xo.id}?type=${xo.content_type})" alt="" />`):((ni=lo==null?void 0:lo.type)==null?void 0:ni.indexOf("video"))>-1?En.replaceSelection(`<video width="100%" controls src="/api/attachments/${xo.id}"></video>`):((Jr=lo==null?void 0:lo.type)==null?void 0:Jr.indexOf("pdf"))>-1?En.replaceSelection(`<a href="/api/attachments/${xo.id}?type=${lo.type}&disposition=inline" target="_blank">${lo.name}</a>`):Mr.includes(Ho)?En.replaceSelection(`<a href="/api/attachments/${xo.id}?type=office&disposition=inline" target="_blank">${lo.name}</a>`):En.replaceSelection(`[${lo.name}](/api/attachments/${xo.id}?type=${xo.content_type})`):(xo==null?void 0:xo.status)===401&&(fn.ZP.warning((xo==null?void 0:xo.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(fo){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const En=be().fromTextArea(jr.current,{mode:_t,lineNumbers:!tt,lineWrapping:!0,value:ve,autoCloseTags:!Zt,autoCloseBrackets:!0});return En.on("keyup",function(In,Bn){Bn.keyCode===8&&(In.getValue()==""?En.setOption("placeholder",ur):En.setOption("placeholder",null))}),En.on("keydown",function(In,Bn){if(Bn.keyCode===8){var gr=Uo(In);gr&&Bn.preventDefault()}}),dt&&En.focus(),En.on("paste",$n),En.on("dragleave",function(In,Bn){$r.current.classList.remove("mouse-hover-md")}),mn&&En.on("beforeChange",function(In,Bn){(Bn.origin==="paste"||Bn.origin==="+input")&&Bn.cancel()}),io(En),()=>{En.off("paste",$n)}}},[]);const zr=(0,ee.useCallback)(()=>{if($r.current)try{}catch($n){console.log($n,"---- to set md editor body height")}},[Ur,$r,Sn]);(0,ee.useEffect)(()=>{function $n(){let En=new pe.Z(In=>{for(let Bn of In)(Bn.target.offsetHeight>0||Bn.target.offsetWidth>0)&&(zr(),Wt.setSize("100%","100%"),Wt.refresh())});return En.observe(jr.current.parentElement),En}if(Wt){const En=$n();return()=>{var In,Bn;(In=jr.current)!=null&&In.parentElement&&En.unobserve((Bn=jr.current)==null?void 0:Bn.parentElement)}}},[Wt,zr]),(0,ee.useEffect)(()=>{if(Wt){let $n=[];for(const[En,In]of Object.entries(Kr)){let Bn={[En]:()=>{Co(In)}};$n.push(Bn),Wt.addKeyMap(Bn)}return bo.current=setInterval(()=>{Io.current&&No()},4e3),()=>{clearInterval(bo.current);for(let En of $n)Wt.removeKeyMap(En)}}},[Wt]),(0,ee.useEffect)(()=>{kt!==Sn&&Nn(kt)},[kt]),(0,Vn.Z)(()=>{if(!gt&&fr>0){let $n=new Date().getTime(),En=window.sessionStorage.getItem(ft);$n>=fr+Yn&&(!En||En!==wr)&&(window.sessionStorage.setItem(ft,wr),ho(!0))}},Yn),(0,ee.useEffect)(()=>{un(tn)},[Wt,tn]),(0,ee.useEffect)(()=>{Wt&&dt&&Wt.focus()},[Wt,dt]),(0,ee.useEffect)(()=>{if(kr&&Wt){let $n=function(In){let Bn=In.target;if(uo.current){let gr=Bn.scrollTop/Bn.scrollHeight;uo.current.scrollTop=uo.current.scrollHeight*gr}};const En=Wt.getScrollerElement();return En.addEventListener("scroll",$n),()=>{En.removeEventListener("scroll",$n)}}},[Wt,kr]),(0,ee.useEffect)(()=>{if(Wt&&dn){let $n=function(En,In){dn(En,In)};return Wt.on("beforeChange",$n),()=>{Wt.off("beforeChange",$n)}}},[Wt,dn]),(0,ee.useEffect)(()=>{if(Wt&&Xt){let $n=function(){Xt(Wt.getValue())};return Wt.on("blur",$n),()=>{Wt.off("blur",$n)}}},[Wt,Xt]);function Uo($n,En){var In=$n.getDoc(),Bn=In.getCursor(),gr=In.getLine(Bn.line),Ir=gr.charAt(Bn.ch-1),Xr=gr.lastIndexOf("@\u2581@",Bn.ch),Qr=gr.lastIndexOf("@\u2581\u2581@",Bn.ch),fo=Xr>Qr?Xr:Qr,lo=Xr>Qr?3:4;if(Zn.indexOf(Ir)===-1)return null;if(console.log("change1:",En,$n,gr,Bn,fo,Xr,Qr,Ir),fo>=0&&Bn.ch-fo<5){var Ho=fo+lo;return In.replaceRange("",{line:Bn.line,ch:fo},{line:Bn.line,ch:Ho}),{line:Bn.line,ch:Ho}}return null}(0,ee.useEffect)(()=>{if(Wt){let $n=function(En,In){const Bn=En.getValue();Tr(Bn),Ar(new Date().getTime()),En.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Zt?Pe(Bn,$o(Bn)):Pe(Bn))};return Wt.on("change",$n),()=>{Wt.off("change",$n)}}},[Wt,Pe]),(0,ee.useEffect)(()=>{if(Wt)if(ve==null)Wt.setValue(""),Tr("");else{const $n=window.scrollY||window.pageYOffset;ve!==Wt.getValue()&&(Wt.setValue(ve),Tr(ve),Wt.setCursor(mn?1:Wt.lineCount(),0),window.scrollTo(0,$n))}},[Wt,ve]);const Co=(0,ee.useCallback)($n=>{const En=Wt.getCursor(),In=Wt.getSelection();let Bn=In.split(`
`);switch($n){case"bold":return Wt.replaceSelection("**"+In+"**"),In===""&&Wt.setCursor(En.line,En.ch+2),Wt.focus();case"italic":return Wt.replaceSelection("*"+In+"*"),In===""&&Wt.setCursor(En.line,En.ch+1),Wt.focus();case"code":return Wt.replaceSelection("`"+In+"`"),In===""&&Wt.setCursor(En.line,En.ch+1),Wt.focus();case"inline-latex":return cr("inline-latex"),Wt.focus();case"latex":return Wt.replaceSelection("```latex\n"+In+"\n```"),Wt.setCursor(En.line+1,In.length+1),Wt.focus();case"line-break":return Wt.replaceSelection(`<br/>
`),Wt.focus();case"list-ul":return In===""?Wt.replaceSelection("- "+In):Wt.replaceSelection(Bn.map(gr=>gr===""?"":`- ${gr}`).join(`
`)),Wt.focus();case"list-ol":return In===""?Wt.replaceSelection("1. "+In):Wt.replaceSelection(Bn.map((gr,Ir)=>gr===""?"":`${Ir+1}. ${gr}`).join(`
`)),Wt.focus();case"add-null-ch":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(ir),Wt.focus();case"add-signal":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(ar),Wt.focus();case"add-multiple":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(Zn),Wt.focus();case"inster-template-1":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(Dr),Wt.focus();case"eraser":return Wt.setValue(""),Wt.focus();case"trigger-watch":return un(!kr),Wt.focus();case"trigger-full-screen":return Nn(!Sn),Wt.focus();case cn:cr(cn);return;case wn:cr(wn);return;case wt:cr(wt);return;case vn:cr(vn);return;case"maths-latex":cr("maths-latex");return;case yn:cr(yn);return;case Wn:cr(Wn);return;default:throw new Error}},[Wt,kr,Sn]),mo=(0,ee.useCallback)(($n,En)=>{var In,Bn,gr,Ir,Xr,Qr;switch(cr(""),pn){case cn:const{title:di,link:ni}=$n;return Wt.replaceSelection(`[${di}](${ni})`),Wt.focus();case wn:const{language:Jr,content:pr}=$n;return Wt.replaceSelection(["```"+Jr,pr,"```"].join(`
`)),Wt.focus();case"maths-latex":for(var fo=atob($n),lo=new Uint8Array(fo.length),Ho=0;Ho<fo.length;Ho++)lo[Ho]=fo.charCodeAt(Ho);var xo=new Blob([lo],{type:"image/png"});(0,rt.I)(xo,ko=>{ko.id?Wt.replaceSelection(`![,](/api/attachments/${ko.id}?type=${ko.content_type})`):(ko==null?void 0:ko.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Wt.replaceSelection("`$$"+$n+"$$`");break;case wt:case vn:case zn:const{src:Mo,alt:Zo}=$n,Or=En,so=(gr=(Bn=(In=Or==null?void 0:Or.name)==null?void 0:In.split("."))==null?void 0:Bn.pop)==null?void 0:gr.call(Bn);return((Ir=Or==null?void 0:Or.type)==null?void 0:Ir.indexOf("image"))>-1||!(Or!=null&&Or.type)?Or.align||Or.width?Wt.replaceSelection(`<p style="text-align:${Or.align||"initial"}"><img width="${Or.width?Or.width+"%":"initial"}" src="${Mo}" alt="${Zo||""}" /></p>`):Wt.replaceSelection(`<img width="100%" src="${Mo}" alt="${Zo||""}" />`):((Xr=Or==null?void 0:Or.type)==null?void 0:Xr.indexOf("video"))>-1?Wt.replaceSelection(`<video width="100%" controls src="${Mo}"></video>`):((Qr=Or==null?void 0:Or.type)==null?void 0:Qr.indexOf("pdf"))>-1?Wt.replaceSelection(`<a href="${Mo}?type=${Or.type}&disposition=inline" target="_blank">${Or.name}</a>`):Mr.includes(so)?Wt.replaceSelection(`<a href="${Mo}?type=office&disposition=inline" target="_blank">${Or.name}</a>`):Wt.replaceSelection(`[${Or.name}](${Mo})`),Wt.focus();case Wn:const{row:ri,col:ti,align:vi}=$n;let Si=`
`;for(let ko=0;ko<ri;ko++){let ui=[],Ri=[];for(let Ti=0;Ti<ti;Ti++)ko===1&&Ri.push(Kn[vi]),ui.push(" ");ko===1&&(Si+=`| ${Ri.join(" | ")} |
`),Si+=`| ${ui.join(ti===1?"":" | ")} |
`}return Wt.replaceSelection(Si+`
`),Wt.focus();default:throw new Error}},[Wt,pn]),si=(0,ee.useMemo)(()=>{switch(pn){case cn:return ee.createElement(At,{callback:mo,onCancel:Eo});case wn:return ee.createElement(Bt.Z,{callback:mo,onCancel:Eo});case wt:return ee.createElement(rt.Z,{callback:mo,onCancel:Eo});case yn:return ee.createElement(xt,{callback:mo,onCancel:Eo});case Wn:return ee.createElement(ze,{callback:mo,onCancel:Eo});case"maths-latex":return ee.createElement(Dt,{showSaveButton:!0,callback:mo});case"inline-latex":return ee.createElement(Ht.Z,{showSaveButton:!0,callback:mo});default:return null}},[pn]);function Eo(){cr("")}(0,ee.useEffect)(()=>{if(no.current){let $n=function(Xr){gr=!0,Ir=Xr.pageY},En=function(){gr=!1},In=function(Xr){if(gr){let Qr=Xr.pageY-Ir;Qr<0&&(Qr=0),Qr>300&&(Qr=300);let fo=ke+Qr+"px";to(fo)}},Bn=no.current,gr=!1,Ir=0;return Bn.addEventListener("mousedown",$n),document.addEventListener("mousemove",In),document.addEventListener("mouseup",En),()=>{Bn.removeEventListener("mousedown",$n),document.removeEventListener("mousemove",In),document.removeEventListener("mouseup",En)}}},[Wt,no]),(0,ee.useEffect)(()=>{to(ke)},[ke]);const Xo=Er(xe),Bo=Er(Ur),wo={width:Xo,height:Bo},po=(0,ee.useMemo)(()=>{if(fr){let $n=new Date(fr),En=$n.getHours(),In=$n.getMinutes(),Bn=$n.getSeconds();return En=En<10?"0"+En:En,In=In<10?"0"+In:In,Bn=Bn<10?"0"+Bn:Bn,`${En}:${In}:${Bn}`}return 0},[fr]),$o=$n=>{const En=[];if(Zt){let In=-1;$n=$n.replace(/(@▁▁@|@▁@)/g,function(Bn,gr,Ir){En.push({multiLine:Bn!==ar})})}return En};function qo(){window.sessionStorage.removeItem(ft),ho(!1),Ar(0)}function bi(){ho(!1),Ar(0),Wt.setValue(window.sessionStorage.getItem(ft))}(0,ee.useEffect)(()=>{Ut[pn]&&pn!==vn&&pn!==yn&&setTimeout(()=>{const $n=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth/2-$n.offsetWidth/2,In=window.innerHeight/2-$n.offsetHeight/2;Do(En),ao(In)},0)},[pn]);const pi=$n=>{$n.preventDefault();const En=$n.clientX-Lo,In=$n.clientY-To;document.body.onmousemove=Bn=>{let gr=Bn.clientX-En,Ir=Bn.clientY-In;const Xr=document.getElementsByClassName("markdown-popup-form")[0],Qr=window.innerWidth-Xr.offsetWidth,fo=window.innerHeight-Xr.offsetHeight;gr=Math.max(0,Math.min(gr,Qr)),Ir=Math.max(0,Math.min(Ir,fo)),ei(Bn.clientX,Bn.clientY,En,In)&&(Do(gr),ao(Ir))},document.body.onmouseup=function(){document.body.onmousemove=null}},ei=($n,En,In,Bn)=>{const gr=document.body.clientHeight,Ir=document.body.clientWidth;return $n<20&&In>$n||$n>Ir-20&&In<$n||En<20&&Bn>En||En>gr-20&&Bn<En?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:$r},ee.createElement("div",{className:`markdown-editor-container ${Fn} ${kr?"on-preview":""} ${tt?"mini":""} ${Sn?"full-screen":""}`,style:wo},ee.createElement(ye,{insertTemp:Kt,watch:kr,fullScreen:Sn,showNullButton:Gt,showNullProgramButton:Zt,onActionCallback:Co,hidetoolBar:Tt,extraUse:or}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:jr,placeholder:ur})),kr?ee.createElement("div",{ref:uo,className:"preview-container"},_t==="stex"&&ee.createElement(he,{value:wr}),_t!=="stex"&&ee.createElement(ae.Z,{disabledFill:An,showProgramFill:Zt,value:wr})):null))),Ft?ee.createElement("a",{ref:no,className:"editor-resize"}):null,pn===vn&&ee.createElement(an,{callback:mo,onCancel:Eo}),pn===yn&&ee.createElement(xt,{callback:mo,onCancel:Eo}),ee.createElement(De.Z,null,Ut[pn]&&pn!==vn&&pn!==yn?ee.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Lo,top:To},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:pi},Ut[pn]),open:!0,onCancel:Eo,footer:null,destroyOnClose:!0,width:pn===yn?"1200px":null,height:pn===yn?"80vh":null,className:"markdown-popup-form"},si):null))}},53332:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return _e},I:function(){return De}});var ee=te(78241),ge=te(8591),be=te(92832),pe=te(81327),Se=te(5871),fe=te(5112),ie=te(3113),de=te(23216),le=te(59301),me=te(15267),ae=te(59301),he=Object.defineProperty,oe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(Ee,je,Le)=>je in Ee?he(Ee,je,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ee[je]=Le,x=(Ee,je)=>{for(var Le in je||(je={}))y.call(je,Le)&&b(Ee,Le,je[Le]);if(a)for(var Le of a(je))E.call(je,Le)&&b(Ee,Le,je[Le]);return Ee},z=(Ee,je)=>oe(Ee,ne(je));const{useForm:re}=ee.default,se={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var _e=({callback:Ee,onCancel:je})=>{const[Le]=re();let ht=(0,le.useRef)();function Ye(Fe){ht.current.width=Le.getFieldValue("width"),ht.current.align=Le.getFieldValue("align"),Ee(Fe,ht.current)}function vt(Fe,He){if(Fe.status===-1){ge.ZP.error(Fe.message);return}Le.setFieldsValue({src:`/api/attachments/${Fe.id}`,type:He.type})}function we(Fe){let He=Fe.target.files[0];ht.current=He,De(He,vt)}return ae.createElement(ee.default,z(x({form:Le},ce),{className:"upload-image-panel",onFinish:Ye,style:{width:470,overflow:"hidden"}}),ae.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ae.createElement("div",{className:"flex-container"},ae.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ae.createElement(be.default,{style:se})),ae.createElement(ye,{onFileChange:we}))),ae.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ae.createElement(be.default,{style:{width:264}})),ae.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ae.createElement(pe.Z,null,ae.createElement(ee.default.Item,{name:"width",style:{margin:0}},ae.createElement(Se.Z,{style:{width:264}})),ae.createElement("span",{className:"ml8"},"%"))),ae.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ae.createElement(fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ae.createElement("aside",null,ae.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ae.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ie.ZP,{type:"default",onClick:je},"\u53D6\u6D88"))))};function ye({onFileChange:Ee}){return ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ae.createElement("input",{type:"file",onChange:Ee}))}function De(Ee,je){if(!Ee)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,me.bg)())throw ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Ee),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var ht=new window.XMLHttpRequest;ht.withCredentials=!0,ht.addEventListener("load",function(Ye){je(JSON.parse(Ye.target.responseText),Ee)},!1),ht.addEventListener("error",function(Ye){console.error(Ye)},!1),ht.open("POST",`${de.KI}/api/attachments.json`),ht.send(Le)}},88487:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return be}});var ee=te(59301),ge=te(4676);class be extends ee.Component{constructor(Se){super(Se);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,ge.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},83078:function(mt,Ke,te){"use strict";var ee=te(21385),ge=te(57809),be=te(78673),pe=te(59301);const Se=ge.default.Option;Ke.Z=({isTheoretical:fe,onFontSizeChange:ie,cmFontSize:de,cmCodeMode:le,autoFormat:me,onCodeModeChange:ae,onTabToSpace:he,onAutoFormat:oe,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x,shixun_environment_id:z,shixun_environments:re})=>{var se;const ce={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},_e=(se=re==null?void 0:re.find(ye=>ye.shixun_environment_id===z))==null?void 0:se.program_language;return pe.createElement("div",{className:`tpi-code-setting ${a}`},pe.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),pe.createElement(ge.default,{bordered:!1,size:"small",value:le,onChange:ae},pe.createElement(Se,{value:"vs"},"\u767D\u8272\u80CC\u666F"),pe.createElement(Se,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),pe.createElement(ge.default,{bordered:!1,size:"small",value:de,onChange:ie},pe.createElement(Se,{value:12},"12px"),pe.createElement(Se,{value:14},"14px"),pe.createElement(Se,{value:16},"16px"),pe.createElement(Se,{value:18},"18px"),pe.createElement(Se,{value:20},"20px"),pe.createElement(Se,{value:22},"22px"))),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"Tab\u8F6C\u6362"),pe.createElement(be.Z,{checked:y,onChange:he})),pe.createElement("div",{className:"file-item",onClick:ne},pe.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),pe.createElement("span",null,"Ctrl + S")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),pe.createElement("span",null,"F1 / Alt + F1")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),pe.createElement("span",null,"Ctrl + ]/[")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),pe.createElement("span",null,"Ctrl + Shift + \\")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),pe.createElement("span",null,"Home")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),pe.createElement("span",null,"End"))),E),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,_e&&pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),pe.createElement("span",null,_e)),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),pe.createElement("span",null,ce[x==null?void 0:x.difficulty])),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),pe.createElement("span",null,b==null?void 0:b.name)),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),pe.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},79006:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ge}});var ee=te(59301);function ge(be,pe){const Se=(0,ee.useRef)();(0,ee.useEffect)(()=>{Se.current=be}),(0,ee.useEffect)(()=>{function fe(){Se.current()}if(pe!==null){let ie=setInterval(fe,pe);return()=>clearInterval(ie)}},[pe])}},44795:function(mt,Ke,te){"use strict";te.d(Ke,{Im:function(){return Ee},ZP:function(){return we},gZ:function(){return Ye}});var ee=te(59301),ge=te(92832),be=te(3113),pe=te(84105),Se=te(87395),fe=te(76726),ie=te(24334),de=te(28010),le=te(67153),me=te(76406),ae=te(16102),he=te(34376),oe=te(92310),ne=te.n(oe),a=te(59301),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,se=(Fe,He,at)=>He in Fe?y(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:at}):Fe[He]=at,ce=(Fe,He)=>{for(var at in He||(He={}))z.call(He,at)&&se(Fe,at,He[at]);if(x)for(var at of x(He))re.call(He,at)&&se(Fe,at,He[at]);return Fe},_e=(Fe,He)=>E(Fe,b(He));const{TextArea:ye}=ge.default,De={visible:!1,tabIndex:"0"},Ee={[fe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[fe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[fe.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 je=(Fe=>(Fe[Fe.SET_VISIBLE=0]="SET_VISIBLE",Fe[Fe.SET_TABINDEX=1]="SET_TABINDEX",Fe))(je||{});function Le(Fe,He){switch(He.type){case 0:return _e(ce({},Fe),{visible:He.payload});case 1:return _e(ce({},Fe),{tabIndex:He.payload});default:throw new Error}}function ht({value:Fe,className:He}){const[at,We]=(0,ee.useState)(!1),pt=(0,ee.useRef)(),Pt=(0,ee.useRef)();return(0,ee.useEffect)(()=>{at&&(Pt.current.reset(),Pt.current.write((0,me.pp)(Fe||"")))},[Fe,at]),(0,ee.useEffect)(()=>{var At,Bt,rt,Xe;if(pt.current){Pt.current=new he.Terminal({fontSize:14,disableStdin:!0}),Pt.current.open(pt.current);const Ct=pt.current.offsetWidth-14,zt=((Xe=(rt=(Bt=(At=Pt.current)==null?void 0:At._core)==null?void 0:Bt._renderService)==null?void 0:rt.dimensions)==null?void 0:Xe.actualCellWidth)||9.5,Et=Math.ceil(Ct/zt);Pt.current.resize(Et,8),We(!0)}},[]),a.createElement("div",{ref:pt,className:ne()("XtermText-valueRef",He)})}function Ye(Fe){const{status:He,error_msg:at,output:We,input:pt,expected_output:Pt,is_file:At,input_file_url:Bt,output_file_url:rt,expected_output_file_url:Xe}=Fe;let Ct=null;const zt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(He){case fe.h.NOMATCH:Ct=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!At&&a.createElement(ht,{className:"mb10",value:pt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Bt,pt)},pt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!At&&a.createElement(ht,{className:"mb10",value:We&&ie.Base64.decode(We)||""}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(rt,We)},We)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!At&&a.createElement(ht,{className:"mb10",value:Pt&&ie.Base64.decode(Pt)||""}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Xe,Pt)},Pt)));break;case fe.h.EXECUTEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(le.Z,{value:pt,style:zt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Bt,pt)},pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(at)));break;case fe.h.COMPILEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(le.Z,{value:pt,style:zt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Bt,pt)},pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(at)));break;case fe.h.PODFAILURE:Ct=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.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 vt(Fe){const{status:He,error_msg:at,execute_time:We,output:pt,input:Pt,expected_output:At,is_file:Bt,input_file_url:rt,output_file_url:Xe,expected_output_file_url:Ct}=Fe;let zt=null;switch(He){case fe.h.OK:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",We,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(pt)));break;case fe.h.NOMATCH:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Pt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",pt&&ie.Base64.decode(pt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",At&&ie.Base64.decode(At)));break;case fe.h.EXECUTEFAILURE:zt=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(at)));break;case fe.h.COMPILEFAILURE:zt=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(at)));break;case fe.h.PODFAILURE:zt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:zt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",zt," ")}var we=({id:Fe,is_file:He,input:at,debuging:We,submitting:pt,executingMessage:Pt,debugResult:At,onChangeInput:Bt,onDebugCode:rt,onSubmitCode:Xe})=>{const[Ct,zt]=(0,ee.useReducer)(Le,De),{visible:Et,tabIndex:an}=Ct;(0,ee.useEffect)(()=>{zt({type:0,payload:!1})},[Fe]);function $e($t){let st=$t.target.id;zt({type:1,payload:st})}function yt(){zt({type:0,payload:!Et})}const Lt=(0,ee.useMemo)(()=>{if(At){const{status:$t}=At;return a.createElement(a.Fragment,null,vt(At))}return null},[At]);function on(){zt({type:0,payload:!0}),zt({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(ae.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(ye,{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?"":at,onChange:Bt}),rightNode:We?a.createElement(de.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:yt},Et?a.createElement(pe.Z,null):a.createElement(Se.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:We,onClick:on},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:pt,disabled:pt,onClick:()=>{zt({type:0,payload:!1}),Xe()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},29452:function(mt,Ke,te){"use strict";te.r(Ke),te.d(Ke,{default:function(){return Ue}});var ee=te(59301),ge=te(10906),be=te(76618),pe=te(44283),Se=te(31797),fe=te(8591),ie=te(43418),de=te(71418),le=te(57809),me=te(80266),ae=te(22914),he=te(14185),oe=te(87169),ne=te(43428),a=te(34728),y=te(88487),E=te(83477),b=te(83078),x=te(59301),z=Object.defineProperty,re=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,De=(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={}))_e.call(Me,Oe)&&De(Ce,Oe,Me[Oe]);if(ce)for(var Oe of ce(Me))ye.call(Me,Oe)&&De(Ce,Oe,Me[Oe]);return Ce},je=(Ce,Me)=>re(Ce,se(Me));const Le={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var ht=(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))(ht||{});function Ye(Ce,Me){switch(Me.type){case 3:return je(Ee({},Ce),{showEditorSetting:Me.payload});case 1:return je(Ee({},Ce),{theme:Me.payload});case 0:return je(Ee({},Ce),{fontSize:Me.payload});case 2:return je(Ee({},Ce),{tabToSpace:Me.payload});default:throw new Error}}var vt=({isLoading:Ce,value:Me,onChange:Oe,language:Qe,onUpdateCode:Je,ActionBarRender:nt=qe=>x.createElement(we,{onShowCodeSetting:qe})})=>{const[qe,ct]=(0,ee.useReducer)(Ye,Le),{theme:ut,fontSize:St,showEditorSetting:Vt,tabToSpace:Nt}=qe,Yt=(0,ee.useRef)(),Ot=(0,ee.useRef)(),Qt={onFontSizeChange:_n=>{ct({type:0,payload:_n}),(0,E.t)("cmFontSize",_n)},tabToSpace:Nt,cmFontSize:St,className:"oj",cmCodeMode:ut,onTabToSpace:_n=>{ct({type:2,payload:_n}),(0,E.t)("cmTabToSpace",_n)},onCodeModeChange:_n=>{ct({type:1,payload:_n}),(0,E.t)("cmCodeMode",_n)}};function Jt(){ct({type:3,payload:!1})}function Pn(){ct({type:3,payload:!0})}const rn={value:Me,language:Qe,theme:ut,height:"calc(100% - 56px)",options:{fontSize:St,insertSpaces:Nt},onChange:_n=>{Oe(_n),Ot.current=_n,clearTimeout(Yt.current),Yt.current=setTimeout(()=>{Je(Ot.current)},1e4)},onEditBlur:_n=>{Ot.current&&Je(Ot.current)}};return x.createElement(ee.Fragment,null,x.createElement("div",{className:"code-panel-container"},nt(Pn),!Ce&&x.createElement(a.ZP,Ee({},rn))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Vt,onClose:Jt},x.createElement(b.Z,Ee({},Qt)))))};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 Fe=te(24334),He=te(55797),at=te(44795),We=te(92832),pt=te(78241),Pt=te(3113);const{TextArea:At}=We.default,Bt=5e3;var rt=({callback:Ce,onCancel:Me,notes:Oe})=>{function Qe(Je){Ce(Je)}return ee.createElement(pt.default,{className:"note-form-panel",onFinish:Qe,initialValues:{notes:Oe}},ee.createElement(pt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Bt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Bt}`}]},ee.createElement(At,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),ee.createElement(pt.default.Item,{style:{textAlign:"right"}},ee.createElement(Pt.ZP,{type:"ghost",onClick:Me,style:{marginRight:10}}," \u53D6\u6D88 "),ee.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"},zt=te(1710),Et=te(58421),an=te(58617),$e=te(81953),yt=te(76726),Lt=te(76406),on=te(66649),$t=te.n(on);const{Column:st}=zt.default;var lt=({submitResult:Ce,submitting:Me,submitRecords:Oe,page:Qe,onPageChange:Je,topicId:nt})=>{const{status:qe,id:ct,input:ut,output:St,expected_output:Vt,is_file:Nt,input_file_url:Yt,output_file_url:Ot,expected_output_file_url:Qt,error_msg:Jt}=Ce||{},{records:Pn,records_count:rn}=Oe||{},_n=(0,pe.useParams)();function On(){Nt?(0,Lt.vQ)(Fe.Base64.decode(Jt)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Lt.vQ)(Fe.Base64.decode(St)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return ee.createElement(de.Z,{spinning:Me,tip:"\u8BC4\u6D4B\u4E2D...",indicator:ee.createElement(an.Z,{style:{fontSize:24},spin:!0})},ct?ee.createElement(ee.Fragment,null,ee.createElement("ul",{className:Ct.info},ee.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",ee.createElement("span",{className:qe===yt.h.OK?"c-green":"c-red"},at.Im[qe])),ee.createElement("li",{className:Ct.error},ee.createElement("a",{onClick:On},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",ee.createElement($e.Z,null)," ")),ee.createElement("li",null,ee.createElement(pe.Link,{to:`/problems/${nt}/record-detail/${ct}?backId=${_n==null?void 0:_n.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),qe!==yt.h.OK?ee.createElement(ee.Fragment,null,ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),ee.createElement("pre",null,!Nt&&ut,Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Yt,ut)},ut)),ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,(qe===4||qe===5)&&Fe.Base64.decode(Jt),qe!=4&&qe!=5&&(Nt?ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Ot,St)},St):Fe.Base64.decode(St))),ee.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,!Nt&&Fe.Base64.decode(Vt),Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Qt,Vt)},Vt))):null):null,(Pn==null?void 0:Pn.length)>0?ee.createElement(zt.default,{dataSource:Pn,rowKey:"id",pagination:!1},ee.createElement(st,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(qt,hn)=>ee.createElement("span",null," ",$t()(qt).format("YYYY-MM-DD HH:mm:ss"))}),ee.createElement(st,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(qt,hn)=>{var Rt;return ee.createElement(pe.Link,{className:qt===0?"c-green":"c-red",to:`/problems/${nt}/record-detail/${hn.id}?backId=${_n==null?void 0:_n.save_identifier}`},(Rt=at.Im[qt])==null?void 0:Rt.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),ee.createElement(st,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),ee.createElement(st,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),ee.createElement(st,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,rn>15?ee.createElement(Et.Z,{className:Ct.pagination,current:Qe,pageSize:15,total:rn,onChange:Je}):null)},Ge=te(90736),Ne=te(12563),et=te(81327),xt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Ie=te(67153),Re=te(59301);const Ze={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:Je,time_limit:nt,username:qe,user_path:ct,user_praise:ut,comments_count:St,praises_count:Vt,description:Nt,pass_count:Yt,submit_count:Ot}=Ce,Qt=(0,pe.useLocation)();console.log(Ce.language,"language");const Jt=Ze[Je];return Re.createElement(Re.Fragment,null,Re.createElement("ul",{className:xt.info},Re.createElement("li",null,"\u96BE\u5EA6\uFF1A",Re.createElement(Ne.default,{color:Jt==null?void 0:Jt.color},Jt==null?void 0:Jt.name)),Re.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Re.createElement("b",null,nt,"\u79D2"))),Re.createElement(Ie.Z,{value:Nt,className:xt.desc}),Re.createElement("ul",{className:xt["commit-info"]},Re.createElement("li",null,Re.createElement(et.Z,{size:4},Re.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Re.createElement("b",null,Yt))),Re.createElement("li",null,Re.createElement(et.Z,{size:4},Re.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Re.createElement("b",null,Ot))," "),Re.createElement("li",{style:{flex:"1 0 0"}}),Re.createElement("li",null,Re.createElement(et.Z,{size:4},Re.createElement("i",{className:"iconfont icon-huifu1",onClick:Oe})," ",Re.createElement("b",null,St))," ")))},ze=te(33156),ot=Object.defineProperty,It=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Dt=(Ce,Me,Oe)=>Me in Ce?ot(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ht=(Ce,Me)=>{for(var Oe in Me||(Me={}))Mt.call(Me,Oe)&&Dt(Ce,Oe,Me[Oe]);if(It)for(var Oe of It(Me))jt.call(Me,Oe)&&Dt(Ce,Oe,Me[Oe]);return Ce};const bt=Ce=>React.createElement("svg",Ht({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=",cn=te(49317);function wt(Ce){return(0,cn.U2)("comments.json",Ce)}function yn(Ce){return(0,cn.v_)(`/discusses/${Ce}/plus.json`,{container_type:"Discuss",type:1})}function vn(Ce){return(0,cn.v_)("comments/reply.json",Ce)}function zn(Ce){return(0,cn.v_)("comments.json",Ce)}function wn(Ce){return(0,cn.v_)(`comments/${Ce==null?void 0:Ce.id}/hidden.json`,Ce)}function Wn(Ce){return(0,cn.IV)(`comments/${Ce==null?void 0:Ce.id}.json`)}var qn=te(74574),Kn=te(15267);function Vn({author:Ce}){return ee.createElement("a",{href:`/users/${Ce.login}`,target:"_blank"},ee.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${he.Z.IMG_SERVER}/images/${Ce.image_url}`,width:"50"}))}function vr({data:Ce,index:Me,parentDiscussIndex:Oe,user:Qe,onSetActionType:Je}){const{author:nt,can_delete:qe,content:ct,id:ut,time:St}=Ce;function Vt(){Je({id:ut,index:Me,type:"delete-discuss",parentDiscussIndex:Oe,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Nt=Qe.admin||qe||nt.user_id===Qe.user_id;return ee.createElement("div",{className:"discuss-item-container second-discuss "},ee.createElement(Vn,{author:nt}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${nt.login}`,target:"_blank"},nt.name),ee.createElement("span",{className:"grey"},St),ee.createElement("div",{className:"btn-group",style:{marginBottom:0}},Nt?ee.createElement("a",{onClick:Vt,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null)),ee.createElement(Ie.Z,{className:"discuss-content",value:ct})))}var lr=({user:Ce,data:Me,index:Oe,onPlusDiscuss:Qe,onSetActionType:Je,activeDiscussIndex:nt,onReplyDiscuss:qe,onSetActiveDiscussIndex:ct})=>{const{content:ut,children:St,hidden:Vt,id:Nt,praise_count:Yt,time:Ot,user_praise:Qt,can_delete:Jt,author:Pn}=Me;console.log(Jt&&(!St||St.length==0),"children22");function rn(){ct(Nt)}function _n(){Qe(Nt,!Qt,Oe)}function On(){Je({id:Nt,index:Oe,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function qt(){Je({id:Nt,index:Oe,params:{hidden:Vt?"0":"1"},type:"hidden-discuss",message:Vt?"\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===Pn.user_id;return ee.createElement("div",{className:"discuss-item-container",key:Nt},ee.createElement(Vn,{author:Pn}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${Pn.login}`,target:"_blank"}," ",Pn.name," "),ee.createElement("span",{className:"grey"},Ot)),ee.createElement(Ie.Z,{className:"discuss-content",value:ut}),St&&St.length>0?ee.createElement("div",{className:"reply-discuss-container"},St.map((Rt,nn)=>ee.createElement(vr,{key:Rt.id,data:Rt,index:nn,user:Ce,onSetActionType:Je,parentDiscussIndex:Oe}))):null,ee.createElement("div",{className:"btn-group"},(0,Kn.Ny)()?ee.createElement("a",{onClick:qt,title:Vt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},ee.createElement("i",{className:Vt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Jt&&(!St||St.length==0)?ee.createElement("a",{onClick:On,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null,ee.createElement("a",{onClick:rn,title:"\u56DE\u590D"}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," "),ee.createElement("a",{onClick:_n,className:Qt?"c-orange":""},ee.createElement("i",{className:Qt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),ee.createElement("span",null,Yt||""))),ee.createElement(qn.Z,{id:Nt,activeDiscussIndex:nt,onReplyDiscuss:qe})))},sn=te(11295),Yn=te(18857),ir=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),Zn=({user_praise:Ce,praise_count:Me,praisePlus:Oe,onCreateDiscuss:Qe,discuss_count:Je})=>{const[nt,qe]=(0,ee.useState)(!1),[ct,ut]=(0,ee.useState)("");function St(Ot){ut(Ot)}function Vt(){qe(!0)}function Nt(){qe(!1)}function Yt(){return ir(this,null,function*(){Qe(ct),ut(""),qe(!1)})}return ee.createElement("div",{className:`dis-input-editor-container ${nt?"active":""} `},ee.createElement("div",{className:nt?"text-area hide":"text-area"},ee.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Vt}),ee.createElement("a",{style:{alignItems:"center"}}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",Je," "),ee.createElement("a",{className:"c-light-black",onClick:Oe,style:{alignItems:"center"},title:Ce?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ee.createElement("i",{className:`mr3 ${Ce?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),Me?ee.createElement("span",null,Me):"")),nt?ee.createElement("div",{className:"input-mask",onClick:Nt}):null,ee.createElement("div",{className:nt?"md-container":"md-container hide"},ee.createElement(Yn.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:ct,height:240,onChange:St}),ee.createElement("div",{className:"tip-container",onClick:Nt},ee.createElement("a",{className:"btn-send",onClick:Yt}," \u53D1\u9001 "))))},ar=Object.defineProperty,Dr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,Kr=(Ce,Me,Oe)=>Me in Ce?ar(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ut=(Ce,Me)=>{for(var Oe in Me||(Me={}))Br.call(Me,Oe)&&Kr(Ce,Oe,Me[Oe]);if(Er)for(var Oe of Er(Me))sr.call(Me,Oe)&&Kr(Ce,Oe,Me[Oe]);return Ce},ue=(Ce,Me)=>Dr(Ce,Mr(Me)),ve=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var xe=(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))(xe||{});function ke(Ce,Me){switch(Me.type){case 6:return ue(Ut({},Ce),{loading:!0});case 0:return Ut(Ut({},Ce),Me.payload);case 1:return Ut(Ut({},Ce),Me.payload);case 4:return Ut(Ut({},Ce),Me.payload);case 3:return Ut(Ut({},Ce),Me.payload);case 5:return Ut(Ut({},Ce),Me.payload);case 2:return Ut(Ut({},Ce),Me.payload);default:throw new Error}}var tt=({user:Ce,identifier:Me,hack:Oe,onTriggerPraise:Qe,setDiscussTotal:Je})=>{const[nt,qe]=(0,ee.useReducer)(ke,Pe),{loading:ct,page:ut,data:St,count:Vt,actionType:Nt,activeDiscussIndex:Yt}=nt;console.log("---",nt);const Ot=(0,ee.useCallback)(()=>ve(void 0,null,function*(){qe({type:6});const Rt=yield wt({container_type:"Practice",container_identifier:Me,limit:10,page:ut}),{comments:nn,disscuss_count:ln}=Rt;qe({type:0,payload:{data:nn,count:ln,loading:!1}}),Je(ln)}),[ut,Me]);(0,ee.useEffect)(()=>{Ot()},[Me,ut]);function Qt(Rt){qe({type:5,payload:{page:Rt}})}function Jt(Rt){qe({type:4,payload:{actionType:Rt}})}function Pn(Rt){qe(Yt===Rt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Rt}})}function rn(Rt,nn,ln){return ve(this,null,function*(){try{const Ln=yield yn(Rt);St[ln].user_praise=nn,St[ln].praise_count=Ln.praise_count,qe({type:3,payload:{data:[...St]}})}catch(Ln){console.log(Ln)}})}function _n(){return ve(this,null,function*(){const{id:Rt,params:nn,type:ln,index:Ln,parentDiscussIndex:Jn}=Nt;ln==="hidden-discuss"&&(console.log(nn,"params"),yield wn(Ut({id:Rt,container_type:"Practice",container_identifier:Me},nn)),Jn?St[Jn].children[Ln].hidden=nn.hidden==1:St[Ln].hidden=nn.hidden==1,qe({type:4,payload:{actionType:null,data:[...St]}})),ln==="delete-discuss"&&(yield Wn({id:Rt,container_type:"Practice",container_identifier:Me}),qe({type:4,payload:{actionType:null}}),yield Ot())})}function On(){qe({type:4,payload:{actionType:null}})}function qt(Rt,nn){return ve(this,null,function*(){try{yield vn({container_type:"Practice",container_identifier:Me,comments:{content:nn,parent_id:Rt}}),Ot()}catch(ln){console.log(ln)}})}function hn(Rt){return ve(this,null,function*(){qe({type:6}),yield zn({comments:{content:Rt},container_type:"Practice",container_identifier:Me}),Ot()})}return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"discuss-panel"},St.length===0?ee.createElement(Ge.Z,null):ee.createElement(de.Z,{spinning:ct},St.map((Rt,nn)=>ee.createElement(lr,{onReplyDiscuss:qt,onPlusDiscuss:rn,onSetActiveDiscussIndex:Pn,onSetActionType:Jt,data:Rt,index:nn,user:Ce,activeDiscussIndex:Yt}))),Vt>10?ee.createElement("div",{className:"pagination-container mt10 mb10"},ee.createElement(Et.Z,{showQuickJumper:!0,onChange:Qt,current:ut,total:Vt,showTotal:Rt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Rt),"\u6761\u6570\u636E")})):null),ee.createElement(Zn,{user_praise:Oe.user_praise,praise_count:Oe.praises_count,praisePlus:Qe,discuss_count:Oe.comments_count,onCreateDiscuss:hn}),ee.createElement(y.Z,null,ee.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Nt,onOk:_n,onCancel:On},ee.createElement("p",null,Nt?Nt.message:"")),ee.createElement(sn.Z,null)))},dt={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"},tn={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"},Kt=Object.defineProperty,_t=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,gt=(Ce,Me,Oe)=>Me in Ce?Kt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Gt=(Ce,Me)=>{for(var Oe in Me||(Me={}))ft.call(Me,Oe)&&gt(Ce,Oe,Me[Oe]);if(_t)for(var Oe of _t(Me))Ft.call(Me,Oe)&&gt(Ce,Oe,Me[Oe]);return Ce};const Zt=Ce=>React.createElement("svg",Gt({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 Tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",kt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,Fn=(Ce,Me,Oe)=>Me in Ce?kt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Qn=(Ce,Me)=>{for(var Oe in Me||(Me={}))dn.call(Me,Oe)&&Fn(Ce,Oe,Me[Oe]);if(Xt)for(var Oe of Xt(Me))xn.call(Me,Oe)&&Fn(Ce,Oe,Me[Oe]);return Ce};const mn=Ce=>React.createElement("svg",Qn({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 An="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",ur=Object.defineProperty,rr=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,io=(Ce,Me,Oe)=>Me in Ce?ur(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,wr=(Ce,Me)=>{for(var Oe in Me||(Me={}))or.call(Me,Oe)&&io(Ce,Oe,Me[Oe]);if(rr)for(var Oe of rr(Me))Wt.call(Me,Oe)&&io(Ce,Oe,Me[Oe]);return Ce};const Tr=Ce=>React.createElement("svg",wr({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 kr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",un=Object.defineProperty,Sn=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,cr=(Ce,Me,Oe)=>Me in Ce?un(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,fr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Nn.call(Me,Oe)&&cr(Ce,Oe,Me[Oe]);if(Sn)for(var Oe of Sn(Me))pn.call(Me,Oe)&&cr(Ce,Oe,Me[Oe]);return Ce};const Ar=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 Ur="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",to=Object.defineProperty,_o=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Io=(Ce,Me,Oe)=>Me in Ce?to(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,bo=(Ce,Me)=>{for(var Oe in Me||(Me={}))ho.call(Me,Oe)&&Io(Ce,Oe,Me[Oe]);if(_o)for(var Oe of _o(Me))yo.call(Me,Oe)&&Io(Ce,Oe,Me[Oe]);return Ce};const Lo=Ce=>React.createElement("svg",bo({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 Do="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",ao=({style:Ce={},onClick:Me,onAssist:Oe,onHide:Qe,data:Je,active:nt,showLine:qe})=>ee.createElement(ee.Fragment,null,ee.createElement("div",{className:nt===(Je==null?void 0:Je.id)?`${tn.list} ${tn.active}`:tn.list,style:Ce,onClick:()=>Me(Je)},(Je==null?void 0:Je.video)&&ee.createElement("div",{className:tn.left},ee.createElement("img",{src:Je==null?void 0:Je.video_cover}),ee.createElement("div",null,ee.createElement("img",{src:Tt}),ee.createElement("span",null,Je==null?void 0:Je.video_duration)),ee.createElement("div",{className:tn.mask})),ee.createElement("div",{className:tn.right},ee.createElement("div",{className:tn.name},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Je==null?void 0:Je.image_url),width:30,height:30}),ee.createElement("div",{title:Je==null?void 0:Je.name,className:tn.title},Je==null?void 0:Je.name),(Je==null?void 0:Je.is_authority)&&ee.createElement("div",{className:tn.b},"\u5B98\u65B9"),(Je==null?void 0:Je.is_excellent)&&ee.createElement("div",{className:tn.a},"\u7CBE\u9009")),ee.createElement("div",{className:tn.des},ee.createElement(Ie.Z,{showLines:2,showTextOnly:!0,value:(Je==null?void 0:Je.content)||"\u6682\u65E0\u5185\u5BB9"})),ee.createElement("div",{className:tn.tag},ee.createElement("span",{className:"current",onClick:ct=>{ct.stopPropagation(),Oe(Je)}},ee.createElement("img",{src:Je!=null&&Je.user_liker?kr:An}),ee.createElement("span",{style:{color:Je!=null&&Je.user_liker?"#0152d9":"#656f87"}},Je==null?void 0:Je.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Ur}),ee.createElement("span",null,Je==null?void 0:Je.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:Do}),ee.createElement("span",null,Je==null?void 0:Je.viewed_count)),(0,Kn.Ny)()&&ee.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:ct=>{ct.stopPropagation(),Qe(Je)}},Je!=null&&Je.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),qe&&ee.createElement("div",{className:tn.line})),jr={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"},$r=te(6848),no=Object.defineProperty,uo=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Uo=(Ce,Me,Oe)=>Me in Ce?no(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Co=(Ce,Me)=>{for(var Oe in Me||(Me={}))No.call(Me,Oe)&&Uo(Ce,Oe,Me[Oe]);if(uo)for(var Oe of uo(Me))zr.call(Me,Oe)&&Uo(Ce,Oe,Me[Oe]);return Ce};const mo=Ce=>React.createElement("svg",Co({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 si="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Eo=Object.defineProperty,Xo=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,po=(Ce,Me,Oe)=>Me in Ce?Eo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,$o=(Ce,Me)=>{for(var Oe in Me||(Me={}))Bo.call(Me,Oe)&&po(Ce,Oe,Me[Oe]);if(Xo)for(var Oe of Xo(Me))wo.call(Me,Oe)&&po(Ce,Oe,Me[Oe]);return Ce};const qo=Ce=>React.createElement("svg",$o({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 bi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",pi=Object.defineProperty,ei=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,In=(Ce,Me,Oe)=>Me in Ce?pi(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Bn=(Ce,Me)=>{for(var Oe in Me||(Me={}))$n.call(Me,Oe)&&In(Ce,Oe,Me[Oe]);if(ei)for(var Oe of ei(Me))En.call(Me,Oe)&&In(Ce,Oe,Me[Oe]);return Ce};const gr=Ce=>React.createElement("svg",Bn({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 Ir="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Xr=te(13946),Qr=Object.defineProperty,fo=Object.defineProperties,lo=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,ni=(Ce,Me,Oe)=>Me in Ce?Qr(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Jr=(Ce,Me)=>{for(var Oe in Me||(Me={}))xo.call(Me,Oe)&&ni(Ce,Oe,Me[Oe]);if(Ho)for(var Oe of Ho(Me))di.call(Me,Oe)&&ni(Ce,Oe,Me[Oe]);return Ce},pr=(Ce,Me)=>fo(Ce,lo(Me)),Mo=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),Or=({onClose:Ce,onOk:Me,identifier:Oe,active:Qe})=>{var Je,nt;const[qe]=pt.default.useForm(),[ct,ut]=(0,ee.useState)({}),[St,Vt]=(0,ee.useState)(!1),[Nt,Yt]=(0,ee.useState)(!1),[Ot,Qt]=(0,ee.useState)([]),Jt=(0,Kn.eY)(),Pn=(0,pe.useParams)(),rn=(0,ee.useRef)();(0,ee.useEffect)(()=>{Qe&&_n()},[Qe]);const _n=()=>Mo(void 0,null,function*(){var gn,Tn,jn,Xn,Hr,er,Wr,Sr,Lr,Nr;const Hn=yield(0,me.M3)(Oe,{active:Qe});if((Hn==null?void 0:Hn.status)===0){const Cn={name:(gn=Hn==null?void 0:Hn.data)==null?void 0:gn.name,content:(Tn=Hn==null?void 0:Hn.data)==null?void 0:Tn.content};qe.setFieldsValue(Cn),ut(Cn),(Xn=(jn=Hn==null?void 0:Hn.data)==null?void 0:jn.videos)!=null&&Xn[0]&&Qt([{video_id:(Wr=(er=(Hr=Hn==null?void 0:Hn.data)==null?void 0:Hr.videos)==null?void 0:er[0])==null?void 0:Wr.video_id,name:(Nr=(Lr=(Sr=Hn==null?void 0:Hn.data)==null?void 0:Sr.videos)==null?void 0:Lr[0])==null?void 0:Nr.title,loaded:100}])}}),On=(gn,Tn)=>{ut(Jr({},Tn))},qt=gn=>Mo(void 0,null,function*(){const Tn={videos:Ot,articles:gn};Yt(!0);let jn;Qe?(Tn.active=Qe,jn=yield(0,me.gu)(Oe,Tn)):jn=yield(0,me.bx)(Oe,Tn),(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))),Yt(!1)}),hn=(gn,Tn)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ee.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Tn?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Tn?Qt([]):(rn.current.cancel(),Qt([]))}})},Rt=()=>ee.createElement(Xr.Z,pr(Jr({},bn),{ref:rn}),ee.createElement("div",{className:jr.main},ee.createElement("img",{src:si,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),nn=gn=>ee.createElement("div",{className:jr.mainLoading},ee.createElement("div",{className:jr.proWarp},ee.createElement("div",{className:jr.pro},ee.createElement("div",{style:{width:gn}})),ee.createElement("span",null,gn||0,"%")),ee.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),ee.createElement("div",{className:jr.tip},ee.createElement($r.Z,{getPopupContainer:Tn=>Tn.parentNode,title:ee.createElement("div",null,ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.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"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},ee.createElement("img",{src:Ir,alt:""})))),ln=gn=>ee.createElement("div",{className:jr.mainSucceed},ee.createElement("img",{src:bi,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),ee.createElement("div",{className:jr.tip},ee.createElement($r.Z,{getPopupContainer:Tn=>Tn.parentNode,title:ee.createElement("div",null,ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.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"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},ee.createElement("img",{src:Ir,alt:""}))),ee.createElement("div",{className:jr.del,onClick:()=>hn(gn.name,gn.loaded==100)},ee.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Ln=()=>ee.createElement(ee.Fragment,null,Ot==null?void 0:Ot.map((gn,Tn)=>ee.createElement(ee.Fragment,{key:Tn},gn.loaded==100?ln(gn):nn(gn.loaded)))),Jn=()=>{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})},bn={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?(fe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):gn.size>1024*1024*1024?(fe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Ot!=null&&Ot.find(Xn=>Xn.name===gn.name)?(fe.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=>{Qt([{name:gn.filename,loaded:0}])},onComplete:gn=>{Qt([{name:gn.filename,loaded:gn.percent,video_id:gn.id}])},onError:()=>{Qt([])},onProgress:gn=>{Qt([{name:gn.filename,loaded:gn.percent}])},chunkSize:1024*1024*2,options:{user_id:(Je=Jt==null?void 0:Jt.userInfo)==null?void 0:Je.user_id}},Dn=Ot==null?void 0:Ot.length;return ee.createElement("div",{className:jr.listForm},ee.createElement("header",null,Qe?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),ee.createElement("section",{className:jr.scroll,id:"sss"},ee.createElement("div",{className:jr.formWrap}," ",ee.createElement(pt.default,{form:qe,scrollToFirstError:!0,layout:"vertical",onValuesChange:On,onFinish:qt},ee.createElement(pt.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ee.createElement(We.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((nt=ct.name)==null?void 0:nt.length)||0}/60`})),ee.createElement(pt.default.Item,{name:"content",label:"\u5185\u5BB9:"},ee.createElement(Yn.Z,{defaultValue:ct.content||"",watch:!0})))),ee.createElement("div",{className:jr.upload},Dn?Ln():Rt())),ee.createElement("div",{className:jr.btns},ee.createElement(Pt.ZP,{onClick:Jn,type:"primary",ghost:!0},"\u5173\u95ED"),ee.createElement(Pt.ZP,{loading:Nt,disabled:St,onClick:()=>qe.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},so={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"},ri=te(61621),ti=Object.defineProperty,vi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,ui=(Ce,Me,Oe)=>Me in Ce?ti(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ri=(Ce,Me)=>{for(var Oe in Me||(Me={}))Si.call(Me,Oe)&&ui(Ce,Oe,Me[Oe]);if(vi)for(var Oe of vi(Me))ko.call(Me,Oe)&&ui(Ce,Oe,Me[Oe]);return Ce};const Ti=Ce=>React.createElement("svg",Ri({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 ta="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",wa=Object.defineProperty,xa=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,Ci=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))Ci.call(Me,Oe)&&na(Ce,Oe,Me[Oe]);return Ce};const Da=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 Ma="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Aa=Object.defineProperty,Ni=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Zi=(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)&&Zi(Ce,Oe,Me[Oe]);if(Ni)for(var Oe of Ni(Me))ia.call(Me,Oe)&&Zi(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=",Wi={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=te(95237),Bi=te(43604),oi={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,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())});const ca=({id:Ce,cb:Me})=>{const[Oe,Qe]=(0,ee.useState)("");return ee.createElement("aside",{className:"mt10"},ee.createElement(Yn.Z,{defaultValue:Oe,id:"writeForumsReviewId",onChange:Je=>{Qe(Je)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bi.Z,{flex:"1"}),ee.createElement(Bi.Z,null,ee.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>Ia(void 0,null,function*(){Oe===""?fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):Me(Ce,Oe)})},"\u53D1\u9001"))))},Oa=({data:Ce})=>{var Me;return ee.createElement("div",{className:oi.thirdlyLevelDiscuss},ee.createElement("span",{className:"c-grey-333"},ee.createElement("span",{className:"font 14 c-light-primary"},(Me=Ce==null?void 0:Ce.author)==null?void 0:Me.name),"@",ee.createElement("span",{className:"font 14 c-light-primary"},Ce==null?void 0:Ce.parent_name),":"),ee.createElement(Ie.Z,{value:Ce==null?void 0:Ce.content}))},Ra=({data:Ce,onReplyDiscuss:Me,thirdlyReply:Oe,setThirdlyReply:Qe})=>{var Je,nt,qe,ct;const ut=(0,Kn.eY)();return console.log(ut,"user"),ee.createElement("div",{className:oi.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((Je=Ce==null?void 0:Ce.author)==null?void 0:Je.image_url)}),ee.createElement("div",{className:oi.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333"},(nt=Ce==null?void 0:Ce.author)==null?void 0:nt.name),(ut==null?void 0:ut.login)!==((qe=Ce==null?void 0:Ce.author)==null?void 0:qe.login)&&ee.createElement("span",{onClick:()=>Qe(Ce==null?void 0:Ce.id),className:"c-grey-999 current",style:{float:"right"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),ee.createElement("span",null,"\u56DE\u590D"))),ee.createElement(Ie.Z,{value:Ce==null?void 0:Ce.content}),(ct=Ce==null?void 0:Ce.children)==null?void 0:ct.map(St=>ee.createElement(Oa,{key:St.id,data:St})),Oe===(Ce==null?void 0:Ce.id)&&ee.createElement("div",null,ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:Me}),ee.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Qe(null),className:"c-light-primary current"},ee.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),ee.createElement("div",{className:oi.line})))};var Ki=({data:Ce,onReplyDiscuss:Me,secondReply:Oe,setSecondReply:Qe,thirdlyReply:Je,setThirdlyReply:nt,onPlusDiscuss:qe})=>{var ct,ut,St,Vt;const[Nt,Yt]=(0,ee.useState)(!1);return console.log(Ce,"data"),ee.createElement("div",{className:oi.discussItem},ee.createElement("div",{className:oi.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((ct=Ce==null?void 0:Ce.author)==null?void 0:ct.image_url)}),ee.createElement("div",{className:oi.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333 mr30"},(ut=Ce==null?void 0:Ce.author)==null?void 0:ut.name),ee.createElement("span",{className:"c-grey-999"},Ce==null?void 0:Ce.time)),ee.createElement(Ie.Z,{value:Ce==null?void 0:Ce.content}),ee.createElement("div",{className:oi.btns},ee.createElement("div",{onClick:()=>qe(Ce==null?void 0:Ce.id),className:Ce!=null&&Ce.user_praise?"c-light-primary":"c-grey-999"},ee.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),ee.createElement("span",null,Ce==null?void 0:Ce.praise_count)),ee.createElement("div",{onClick:()=>{var Ot;((Ot=Ce==null?void 0:Ce.children)==null?void 0:Ot.length)!==0&&(Qe(null),Yt(!Nt))},style:{color:Nt?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),ee.createElement("span",null,Nt?"\u6536\u8D77\u8BC4\u8BBA":(St=Ce==null?void 0:Ce.children)==null?void 0:St.length)),ee.createElement("div",{onClick:()=>{Yt(!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"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3"}),ee.createElement("span",null,Oe===(Ce==null?void 0:Ce.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Oe===(Ce==null?void 0:Ce.id)&&ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:(Ot,Qt)=>{Me(Ot,Qt),Yt(!0)}}),Nt&&ee.createElement("div",{className:oi.secondLevelDiscuss},(Vt=Ce==null?void 0:Ce.children)==null?void 0:Vt.map(Ot=>ee.createElement(Ra,{thirdlyReply:Je,setThirdlyReply:nt,key:Ot.id,data:Ot,onReplyDiscuss:Me}))))))},ki=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),gi=({identifier:Ce,active:Me,onOk:Oe})=>{const[Qe,Je]=(0,ee.useState)(""),[nt,qe]=(0,ee.useState)(1),[ct,ut]=(0,ee.useState)([]),[St,Vt]=(0,ee.useState)(0),[Nt,Yt]=(0,ee.useState)(null),[Ot,Qt]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{Jt(1),qe(1)},[Me]);const Jt=qt=>ki(void 0,null,function*(){const hn=yield wt({container_type:"QuestionSolutionArticle",container_identifier:Me,limit:5,page:qt});hn!=null&&hn.comments&&(ut((hn==null?void 0:hn.comments)||[]),qe(qt),Vt(hn==null?void 0:hn.disscuss_count))}),Pn=()=>ki(void 0,null,function*(){if(Qe===""){fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const qt=yield zn({comments:{content:Qe},container_type:"QuestionSolutionArticle",container_identifier:Me});qt!=null&&qt.discuss&&(Je(""),Jt(nt),Oe())}),rn=(qt,hn,Rt)=>ki(void 0,null,function*(){const nn=yield vn({container_type:"QuestionSolutionArticle",container_identifier:Me,comments:{content:hn,parent_id:qt}});Yt(null),Qt(null),Jt(nt)}),_n=qt=>ki(void 0,null,function*(){const hn=yield yn(qt);Jt(nt)}),On=qt=>{qe(qt),Jt(qt)};return ee.createElement("div",{className:Wi.discuss},ee.createElement("aside",{className:Wi.reply,style:{borderWidth:St?1:0}},ee.createElement(Yn.Z,{defaultValue:Qe,id:"writeForumsReviewId",onChange:qt=>{Je(qt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bi.Z,{flex:"1"}),ee.createElement(Bi.Z,null,ee.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>Pn()},"\u53D1\u9001")))),ct==null?void 0:ct.map(qt=>ee.createElement(Ki,{secondReply:Nt,setSecondReply:Yt,thirdlyReply:Ot,setThirdlyReply:Qt,key:qt.id,data:qt,onReplyDiscuss:rn,onPlusDiscuss:_n})),ee.createElement(Et.Z,{className:Wi.pagination,showTotal:qt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},qt),"\u6761\u6570\u636E"),current:nt,onChange:On,total:St,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Vi=te(42972),Yi=Object.defineProperty,Fi=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,Na=(Ce,Me,Oe)=>Me in Ce?Yi(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(Fi)for(var Oe of Fi(Me))ua.call(Me,Oe)&&Na(Ce,Oe,Me[Oe]);return Ce},Xi=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),ka=({active:Ce,identifier:Me,onAssist:Oe,onEdit:Qe,onArticlesSkip:Je,onClose:nt,onOk:qe,onDelete:ct,detailsIndex:ut,btnShowStatus:St})=>{var Vt,Nt,Yt,Ot,Qt,Jt,Pn,rn,_n,On;const[qt,hn]=(0,ee.useState)(!0),[Rt,nn]=(0,ee.useState)({});(0,ee.useEffect)(()=>{Ce&&ln()},[Ce,ut]);const ln=(Dn=!0)=>Xi(void 0,null,function*(){Dn&&hn(!0);const gn=yield(0,me.wO)(Me,{active:Ce});(gn==null?void 0:gn.status)===0&&nn((gn==null?void 0:gn.data)||{}),hn(!1)}),Ln=Dn=>Xi(void 0,null,function*(){const gn=yield(0,me.qe)(Me,Ba({active:Ce},Dn));(gn==null?void 0:gn.status)===0&&(ln(!1),qe())}),Jn=Dn=>Xi(void 0,null,function*(){(yield(0,me.Rg)(Me,{active:Dn==null?void 0:Dn.id})).status===0&&(ln(!1),qe())}),en=Dn=>{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(Dn)})},bn=()=>{ln(!1),qe()};return ee.createElement("div",{className:so.listDetails},ee.createElement(ri.Z,{className:"pt20 pl20 pr20",loading:qt,active:!0,paragraph:{rows:5}},ee.createElement("div",{className:so.head},ee.createElement("div",{className:so.name},ee.createElement("div",{title:Rt==null?void 0:Rt.name,className:so.title},Rt==null?void 0:Rt.name),(Rt==null?void 0:Rt.is_authority)&&ee.createElement("div",{className:so.b},"\u5B98\u65B9"),(Rt==null?void 0:Rt.is_excellent)&&ee.createElement("div",{className:so.a},"\u7CBE\u9009")),ee.createElement("div",{className:so.tag},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Rt==null?void 0:Rt.image_url)}),ee.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Rt==null?void 0:Rt.username),ee.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",$t()(Rt==null?void 0:Rt.created_at).format("YYYY-MM-DD")),ee.createElement("span",null,ee.createElement("img",{src:An}),ee.createElement("span",null,Rt==null?void 0:Rt.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Ur}),ee.createElement("span",null,Rt==null?void 0:Rt.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:Do}),ee.createElement("span",null,Rt==null?void 0:Rt.viewed_count)),ee.createElement("div",{className:so.btn},((0,Kn.Ny)()||(Rt==null?void 0:Rt.is_self))&&ee.createElement(ee.Fragment,null,ee.createElement(Pt.ZP,{onClick:()=>en(Rt),type:"primary",ghost:!0},"\u5220\u9664"),ee.createElement(Pt.ZP,{onClick:()=>Qe(Rt),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Kn.Ny)()&&ee.createElement(Pt.ZP,{onClick:()=>Ln({is_authority:!(Rt!=null&&Rt.is_authority)}),type:"primary"},ee.createElement("img",{src:Ma}),Rt!=null&&Rt.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Kn.Ny)()&&ee.createElement(Pt.ZP,{onClick:()=>Ln({is_excellent:!(Rt!=null&&Rt.is_excellent)}),type:"primary"},ee.createElement("img",{src:ta}),Rt!=null&&Rt.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),ee.createElement("div",{className:so.scroll},((Nt=(Vt=Rt==null?void 0:Rt.videos)==null?void 0:Vt[0])==null?void 0:Nt.id)&&ee.createElement("div",{className:so.video},ee.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Ot=(Yt=Rt==null?void 0:Rt.videos)==null?void 0:Yt[0])!=null&&Ot.transcoded)},ee.createElement(Vi.Z,{poster:(Jt=(Qt=Rt==null?void 0:Rt.videos)==null?void 0:Qt[0])==null?void 0:Jt.cover_url,src:((rn=(Pn=Rt==null?void 0:Rt.videos)==null?void 0:Pn[0])==null?void 0:rn.play_url)||"",videoId:(On=(_n=Rt==null?void 0:Rt.videos)==null?void 0:_n[0])==null?void 0:On.id,logWatchHistory:()=>{}}))),ee.createElement(Ie.Z,{className:so.html,value:(Rt==null?void 0:Rt.content)||""}),ee.createElement("div",{onClick:()=>Jn(Rt),className:so.g},ee.createElement("img",{className:"mr10",src:(Rt!=null&&Rt.user_liker,sa)}),ee.createElement("span",null,Rt==null?void 0:Rt.praises_count)),ee.createElement(gi,{onOk:bn,active:Ce,identifier:Me})),ee.createElement("div",{className:so.btns},ee.createElement(Pt.ZP,{onClick:()=>nt(),type:"primary",ghost:!0},"\u5173\u95ED"),St[0]&&ee.createElement(Pt.ZP,{onClick:Dn=>Je(Dn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),St[1]&&ee.createElement(Pt.ZP,{onClick:Dn=>Je(Dn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},ji=Object.defineProperty,zi=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,fa=(Ce,Me,Oe)=>Me in Ce?ji(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Qi=(Ce,Me)=>{for(var Oe in Me||(Me={}))Hi.call(Me,Oe)&&fa(Ce,Oe,Me[Oe]);if(zi)for(var Oe of zi(Me))ga.call(Me,Oe)&&fa(Ce,Oe,Me[Oe]);return Ce};const Fa=Ce=>React.createElement("svg",Qi({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=te(59477),Ji=te(89489),ja=Object.defineProperty,pa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Mi=(Ce,Me,Oe)=>Me in Ce?ja(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Qo=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ha.call(Me,Oe)&&Mi(Ce,Oe,Me[Oe]);if(va)for(var Oe of va(Me))Di.call(Me,Oe)&&Mi(Ce,Oe,Me[Oe]);return Ce},Ga=(Ce,Me)=>pa(Ce,za(Me)),Ai=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),hs=({identifier:Ce,tabStatus:Me,setFilterListTotal:Oe,setListStatus:Qe})=>{const Je={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[nt,qe]=(0,ee.useState)(Qo({},Je));const[ct,ut]=(0,ee.useState)(!1),[St,Vt]=(0,ee.useState)(0),[Nt,Yt]=(0,ee.useState)(1),[Ot,Qt]=(0,ee.useState)(null),[Jt,Pn]=(0,ee.useState)([]),[rn,_n]=(0,ee.useState)([!0,!0]),[On,qt]=(0,ee.useState)(0),hn=(0,ee.useRef)(null);(0,ee.useEffect)(()=>{Tn()},[Me]),(0,ee.useEffect)(()=>{Rt()},[Ot]),(0,ee.useEffect)(()=>{ln(Qo({},Je)),Tn()},[Ce]),(0,ee.useEffect)(()=>(window.addEventListener("resize",nn),Qe(On),()=>{window.removeEventListener("resize",nn)}),[On]);const Rt=()=>Ai(void 0,null,function*(){if(!Ot){_n([!0,!0]);return}const Hn=[!0,!0],Cn=Jt==null?void 0:Jt.findIndex(kn=>kn.id===Ot);Cn===0&&nt.page===1&&(Hn[0]=!1),(nt.page-1)*nt.limit+(Cn+1)===nt.total&&(Hn[1]=!1),_n(Hn)}),nn=()=>{var Hn;if(On){const Cn=window.innerWidth-((Hn=hn.current)==null?void 0:Hn.clientWidth);Vt(Cn)}},ln=Hn=>Ai(void 0,null,function*(){var Cn,kn,Un;ut(!0);const Mn=yield(0,me.WH)(Ce,Hn);return(Mn==null?void 0:Mn.status)===0&&(Pn(((Cn=Mn==null?void 0:Mn.data)==null?void 0:Cn.articles)||[]),qe(Ga(Qo({},Hn),{total:(kn=Mn==null?void 0:Mn.data)==null?void 0:kn.articles_count})),Oe((Un=Mn==null?void 0:Mn.data)==null?void 0:Un.articles_count)),ut(!1),Mn}),Ln=()=>{(nt==null?void 0:nt.sort_direction)===null?nt.sort_direction="asc":(nt==null?void 0:nt.sort_direction)==="asc"?nt.sort_direction="desc":(nt==null?void 0:nt.sort_direction)==="desc"&&(nt.sort_direction=null),nt.page=1,Tn(),qe(Qo({},nt)),ln(nt)},Jn=()=>{nt.page=1,nt.search=nt==null?void 0:nt.save_search,Tn(),qe(Qo({},nt)),ln(nt)},en=()=>{var Hn;const Cn=document.getElementsByClassName("btn-resize");Cn[0].style.visibility="hidden";const kn=window.innerWidth-((Hn=hn.current)==null?void 0:Hn.clientWidth);Vt(kn)},bn=()=>{en(),qt(1)},Dn=Hn=>{en(),Qt(Hn==null?void 0:Hn.id),qt(3)},gn=Hn=>{en(),Qt(Hn==null?void 0:Hn.id),qt(2)},Tn=()=>{const Hn=document.getElementsByClassName("btn-resize");Hn[0].style.visibility="visible",Vt(0),qt(0),Qt(null)},jn=Hn=>{qt(3),Qt(Hn),nt.page=1,qe(Qo({},nt)),ln(nt)},Xn=Hn=>{qt(3),Qt(Hn),qe(Qo({},nt)),ln(nt)},Hr=Hn=>{qe(Qo({},nt)),ln(nt)},er=Hn=>Ai(void 0,null,function*(){(yield(0,me.Rg)(Ce,{active:Hn==null?void 0:Hn.id})).status===0&&(ln(nt),Yt(Nt+1))}),Wr=Hn=>Ai(void 0,null,function*(){(yield(0,me.rL)(Ce,{active:Hn==null?void 0:Hn.id})).status===0&&(ln(nt),Yt(Nt+1))}),Sr=Hn=>Ai(void 0,null,function*(){(yield(0,me.de)(Ce,{active:Hn==null?void 0:Hn.id})).status===0&&(Tn(),ln(nt))}),Lr=Hn=>{nt.page=Hn,qe(Qo({},nt)),ln(nt)},Nr=(Hn,Cn)=>Ai(void 0,null,function*(){var kn,Un,Mn,yr;const Rn=Jt==null?void 0:Jt.findIndex(Gn=>Gn.id===Ot);if(console.log(Rn,Cn,22),Cn==="prev"){if(Rn===void 0){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Rn===0){if(nt.page===1){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(nt.page!==1){nt.page=nt.page-1,qe(Qo({},nt));const Gn=yield ln(nt);if((Gn==null?void 0:Gn.status)===0){const hr=(Mn=Gn==null?void 0:Gn.data)==null?void 0:Mn.articles[((Un=(kn=Gn==null?void 0:Gn.data)==null?void 0:kn.articles)==null?void 0:Un.length)-1];Qt(hr==null?void 0:hr.id),console.log(Hn.target,555)}}}else{const Gn=Jt[Rn-1];Qt(Gn==null?void 0:Gn.id)}}if(Cn==="next"){if(Rn===void 0){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((nt.page-1)*nt.limit+(Rn+1)===nt.total){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Rn+1===nt.limit){nt.page=nt.page+1,qe(Qo({},nt));const Gn=yield ln(nt);if((Gn==null?void 0:Gn.status)===0){const hr=(yr=Gn==null?void 0:Gn.data)==null?void 0:yr.articles[0];Qt(hr==null?void 0:hr.id)}}else{const Gn=Jt[Rn+1];Qt(Gn==null?void 0:Gn.id)}}});return ee.createElement("div",{className:dt.wrap,ref:hn},ee.createElement("div",{className:dt.head},ee.createElement("div",{className:dt.sort,onClick:Ln},ee.createElement("span",null,"\u6700\u65B0"),ee.createElement("aside",null,ee.createElement(ma.Z,{style:{color:(nt==null?void 0:nt.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),ee.createElement(Ji.Z,{style:{color:(nt==null?void 0:nt.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),ee.createElement(We.default.Search,{value:nt.save_search,className:dt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Hn=>{nt.save_search=Hn.target.value,qe(Qo({},nt))},onSearch:Jn}),ee.createElement("div",{onClick:bn,className:dt.btn},ee.createElement("img",{src:ha}),"\u5199\u9898\u89E3")),ee.createElement("div",{className:dt.listWarp},ee.createElement(de.Z,{spinning:ct,className:"mt20"},Jt==null?void 0:Jt.map((Hn,Cn)=>{let kn=!0;return Cn+1===Jt.length&&Cn!==0&&(kn=!1),ee.createElement(ao,{active:Ot,key:Hn.id,data:Hn,showLine:kn,onClick:Dn,onAssist:er,onHide:Wr})}),(Jt==null?void 0:Jt.length)===0&&ee.createElement(Ge.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),ee.createElement(Et.Z,{className:dt.pagination,showTotal:Hn=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Hn),"\u6761\u6570\u636E"),total:nt.total,showSizeChanger:!1,current:nt==null?void 0:nt.page,onChange:Lr,hideOnSinglePage:!0,showQuickJumper:!0}),On>0&&ee.createElement("div",{className:dt.fixedRight,style:{width:St}},On===1&&ee.createElement(Or,{identifier:Ce,onClose:Tn,onOk:jn}),On===2&&ee.createElement(Or,{active:Ot,identifier:Ce,onClose:Tn,onOk:Xn}),On===3&&ee.createElement(ka,{btnShowStatus:rn,onArticlesSkip:Nr,detailsIndex:Nt,active:Ot,identifier:Ce,onClose:Tn,onOk:Hr,onEdit:gn,onAssist:er,onDelete:Sr})))},Ei={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},qi=(Ce,Me)=>Ua(Ce,$a(Me)),Gi=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),Ss=({visible:Ce,onVisible:Me,value:Oe,onChange:Qe,setIndex:Je})=>{var nt;const qe={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[ct,ut]=(0,ee.useState)(qe);const[St,Vt]=(0,ee.useState)([]),[Nt,Yt]=(0,ee.useState)([]),[Ot,Qt]=(0,ee.useState)(!1),Jt=(0,ee.useRef)([]),Pn=(0,ee.useRef)(null),rn=(0,pe.useParams)();(0,ee.useEffect)(()=>(rn!=null&&rn.id&&(Pn.current=setInterval(()=>{_n(30)},3e4)),()=>{clearInterval(Pn.current)}),[]);const _n=en=>Gi(void 0,null,function*(){const bn=yield(0,me.uc)(rn==null?void 0:rn.id,{practice_time:en})});(0,ee.useEffect)(()=>{ln(ct),Rt()},[]),(0,ee.useEffect)(()=>(window.addEventListener("click",qt),()=>{window.removeEventListener("click",qt)}),[rn==null?void 0:rn.save_identifier,Ce]),(0,ee.useEffect)(()=>{const en=Jt.current.findIndex(jn=>jn.identifier===(rn==null?void 0:rn.save_identifier)),bn=Jt.current[en-1],Dn=Jt.current[en+1],gn=document.getElementById("oj-prev"),Tn=document.getElementById("oj-next");bn?gn.style.display="block":gn.style.display="none",Dn?Tn.style.display="block":Tn.style.display="none"},[rn==null?void 0:rn.save_identifier,Jt.current]);const On=(en,bn)=>{if(en.id===bn)return en;for(let Dn=0,gn=en;gn=gn.parentNode;Dn++){if(gn.id===bn)return gn;if(gn==document.documentElement)return!1}},qt=en=>Gi(void 0,null,function*(){!On(en.target,"oj-drawer")&&Ce&&Me(!1);const bn=Jt.current.findIndex(Tn=>Tn.identifier===(rn==null?void 0:rn.save_identifier)),Dn=Jt.current[bn-1],gn=Jt.current[bn+1];if(en.target.id==="oj-prev"){if(!Dn||bn===-1){fe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Ln(Dn==null?void 0:Dn.identifier),Je("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(!gn||bn===-1){fe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Ln(gn==null?void 0:gn.identifier),Je("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}});(0,ee.useEffect)(()=>{Qe(rn==null?void 0:rn.save_identifier);const en=Nt.findIndex(bn=>bn.some(Dn=>Dn.identifier===(rn==null?void 0:rn.save_identifier)));ut(en===-1?qi(_i({},ct),{page:1}):qi(_i({},ct),{page:en+1}))},[rn==null?void 0:rn.save_identifier,Nt]);const hn=en=>{ct.page=1,ct.tag_discipline_id=en,ut(_i({},ct)),ln(ct)},Rt=()=>Gi(void 0,null,function*(){const en=yield(0,cn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Vt(en.tag_disciplines||[])}),nn=en=>{ct.page=1,ct.difficulty=typeof en=="number"?en:null,ut(_i({},ct)),ln(ct)},ln=en=>Gi(void 0,null,function*(){var bn,Dn;Qt(!0);const gn=yield(0,me.KC)(en);if(gn!=null&&gn.practices_list){for(var Tn=(bn=gn==null?void 0:gn.practices_list)==null?void 0:bn.length,jn=[],Xn=0;Xn<Tn;Xn+=ct==null?void 0:ct.per_page)jn.push((Dn=gn==null?void 0:gn.practices_list)==null?void 0:Dn.slice(Xn,Xn+(ct==null?void 0:ct.per_page)));ut(qi(_i({},ct),{total:gn==null?void 0:gn.practices_count})),Jt.current=(gn==null?void 0:gn.practices_list)||[],Yt(jn)}Qt(!1)}),Ln=(en,bn)=>Gi(void 0,null,function*(){const Dn=yield(0,cn.ZP)(`/api/practices/${en}/start`,{method:"get"});(Dn==null?void 0:Dn.status)===0&&pe.history.push(`/problems/${Dn==null?void 0:Dn.identifier}/oj/${en}`)}),Jn=en=>{ct.page=en,ut(_i({},ct))};return ee.createElement("div",{className:Ei.wrap,id:"oj-drawer",style:{left:Ce?0:-700}},ee.createElement("div",{className:Ei.head},ee.createElement("div",{className:Ei.title},"\u9898\u76EE\u5217\u8868"),ee.createElement(We.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,ut(_i({},ct))},onSearch:()=>{ct.page=1,ct.search=ct.save_search,ut(_i({},ct)),ln(ct)}}),ee.createElement(le.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},St.map(en=>ee.createElement(le.default.Option,{key:en.id,value:en.id},en.name))),ee.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:en=>en.parentNode,value:ct==null?void 0:ct.difficulty,onChange:nn},ee.createElement(le.default.Option,{value:1},"\u7B80\u5355"),ee.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),ee.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),ee.createElement("div",{className:Ei.content},ee.createElement(de.Z,{spinning:Ot},(nt=Nt==null?void 0:Nt[ct.page-1])==null?void 0:nt.map(en=>ee.createElement("div",{key:en.identifier,className:Ei.list,onClick:bn=>Ln(en.identifier,bn)},ee.createElement("i",{style:{visibility:Oe===en.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),ee.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&&ee.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(en==null?void 0:en.difficulty)===2&&ee.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(en==null?void 0:en.difficulty)===3&&ee.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),ee.createElement("div",{className:Ei.footer},ee.createElement(Et.Z,{showTotal:en=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.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:Jn,showQuickJumper:!0,hideOnSinglePage:!0})))},Ka=({hack:Ce,onTriggerPraise:Me,topicId:Oe,page:Qe,onPageChange:Je,user:nt,submitRecords:qe,submitting:ct,submitResult:ut})=>{const[St]=(0,pe.useSearchParams)(),Vt=(0,pe.useLocation)(),[Nt,Yt]=(0,ee.useState)(St.get("tab")||"0"),[Ot,Qt]=(0,ee.useState)(0),[Jt,Pn]=(0,ee.useState)(0),[rn,_n]=(0,ee.useState)(0),[On,qt]=(0,ee.useState)(),[hn,Rt]=(0,ee.useState)(!1);function nn(Ln){const Jn=Ln.target.id;if(Nt==="3"&&Jn!==Nt&&(Jt===1||Jt===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:()=>{Yt(Jn)}});return}Yt(Jn)}(0,ee.useEffect)(()=>ze.Z.subscribe("to-commit-info",()=>{Yt("1")}),[]);function ln(){Yt("2")}return ee.createElement("div",{className:Xe["left-panel"]},ee.createElement("ul",{className:`${Xe["s-navs"]} ${Xe["bg-white"]} ${Xe.b1}`},ee.createElement("li",{className:"mr40 current"},ee.createElement("img",{onClick:()=>Rt(!0),src:fn})),ee.createElement("li",{className:Xe["oj-mr"]},ee.createElement("a",{className:Nt==="0"?Xe.active:"",id:"0",onClick:nn},"\u4EFB\u52A1\u63CF\u8FF0")),ee.createElement("li",{className:Xe["oj-mr"]},ee.createElement("a",{className:Nt==="3"?Xe.active:"",id:"3",onClick:nn},"\u9898\u89E3",rn?`(${rn})`:"")),ee.createElement("li",{className:Xe["oj-mr"]},ee.createElement("a",{className:Nt==="2"?Xe.active:"",id:"2",onClick:nn},"\u8BC4\u8BBA",Ot?`(${Ot})`:"")),ee.createElement("li",null,ee.createElement("a",{className:Nt==="1"?Xe.active:"",id:"1",onClick:nn},"\u63D0\u4EA4\u8BB0\u5F55"))),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},ee.createElement(Be,{hack:Ce,onTriggerPraise:Me,toDiscuss:ln})),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="1"?"":"hide"}`},qe!=null&&qe.records_count?ee.createElement(lt,{page:Qe,onPageChange:Je,topicId:Oe,submitting:ct,submitRecords:qe,submitResult:ut}):ee.createElement(Ge.Z,null)),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="2"?"":"hide"}`,style:{padding:0}},ee.createElement(tt,{setDiscussTotal:Qt,user:nt,identifier:Ce.identifier,hack:Ce,onTriggerPraise:Me})),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="3"?"":"hide"}`,style:{padding:0}},ee.createElement(hs,{setListStatus:Pn,setFilterListTotal:_n,tabStatus:Nt,identifier:Ce.identifier})),ee.createElement(Ss,{visible:hn,setIndex:Yt,onVisible:Ln=>Rt(Ln),value:On,onChange:Ln=>qt(Ln)}))},_s=te(42524),Va=te(62522),ys=te(89978),Ya=te(43347),Ps=te(78267),Xa=te.n(Ps),bs=te(56102),nr=te(59301),Cs=Object.defineProperty,Qa=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Ii=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,Zr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ja.call(Me,Oe)&&ya(Ce,Oe,Me[Oe]);if(Ii)for(var Oe of Ii(Me))_a.call(Me,Oe)&&ya(Ce,Oe,Me[Oe]);return Ce},vo=(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&&Ii)for(var Qe of Ii(Ce))Me.indexOf(Qe)<0&&_a.call(Ce,Qe)&&(Oe[Qe]=Ce[Qe]);return Oe},Wo=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())});const{Countdown:ws}=Se.default,li={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 Ui(){return new Date().getTime()}const Ae={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 Zr(Zr({},Ce),Me.payload);case 3:return vo(Zr({},Ce),{data:Me.payload});case 0:return vo(Zr({},Ce),{loading:Me.payload});case 11:return vo(Zr({},Ce),{languageList:Me.payload});case 12:return vo(Zr({},Ce),{drawerData:Me.payload});case 9:return vo(Zr({},Ce),{showNote:Me.payload});case 4:return vo(Zr({},Ce),{debuging:Me.payload});case 5:return vo(Zr({},Ce),{submitting:Me.payload});case 2:return vo(Zr({},Ce),{submitRecords:Me.payload});case 10:return vo(Zr({},Ce),{submitRecordPage:Me.payload});case 6:return vo(Zr({},Ce),{executingMessage:Me.payload});case 7:return Zr(Zr({},Ce),Me.payload);case 8:return Zr(Zr({},Ce),Me.payload);default:throw new Error}}var Ue=({children:Ce})=>{var Me,Oe,Qe,Je;const[nt,qe]=(0,ee.useReducer)(Te,Ae),{id:ct}=(0,pe.useParams)(),ut=(0,pe.useLocation)(),[St]=(0,pe.useSearchParams)(),{languageValue:Vt,languageList:Nt,loading:Yt,data:Ot,debugResult:Qt,submitResult:Jt,submitRecords:Pn,submitRecordPage:rn,showNote:_n,debuging:On,submitting:qt,executingMessage:hn}=nt,[Rt,nn]=(0,ee.useState)("#FFF"),[ln,Ln]=(0,ee.useState)(null),[Jn,en]=(0,ee.useState)({}),[bn,Dn]=(0,ee.useState)(!1),gn=(0,ee.useRef)(null),Tn=(0,ee.useRef)(null),jn=Ot==null?void 0:Ot.user,Xn=Ot==null?void 0:Ot.hack;(0,ee.useEffect)(()=>((0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,ee.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,ee.useEffect)(()=>{var tr;if(bn){const mr=document.getElementById("oj-next"),qr=document.getElementById("oj-modal-next");((tr=mr==null?void 0:mr.style)==null?void 0:tr.display)==="none"?qr.style.display="none":qr.style.display="block"}},[bn]),(0,ee.useEffect)(()=>{function tr(){return Wo(this,null,function*(){var mr,qr,Rr;const br=yield(0,me.fu)(ct);if(br.status===401)document.location.href="/user/login";else{br.hack=br.practice,br.hack.code=Fe.Base64.decode((mr=br==null?void 0:br.hack)==null?void 0:mr.code);const Fo=`${jn==null?void 0:jn.login}-language`;localStorage.getItem(Fo)&&(br.hack.language=localStorage.getItem(Fo)),Tn.current=Xa().cloneDeep(br),Tn.current.language=(qr=br==null?void 0:br.hack)==null?void 0:qr.language,qe({type:1,payload:{loading:!1,data:br}}),qe({type:8,payload:{languageValue:(Rr=br==null?void 0:br.hack)==null?void 0:Rr.language}})}})}ct&&tr()},[ct]),(0,ee.useEffect)(()=>{qe({type:8,payload:{debugResult:void 0}}),Wr(),Dn(!1)},[ct]),(0,ee.useEffect)(()=>{clearTimeout(gn.current)},[ct]),(0,ee.useEffect)(()=>{er()},[ct,rn]);const Hr=()=>{window.parent.postMessage("backExercise","*")};function er(){return Wo(this,null,function*(){try{const tr=yield(0,me.zO)(ct,{limit:15,page:rn});qe({type:2,payload:tr})}catch(tr){console.log(tr)}})}function Wr(){return Wo(this,null,function*(){try{const tr=yield(0,me.dd)(ct);qe({type:11,payload:tr==null?void 0:tr.data})}catch(tr){console.log(tr)}})}function Sr(tr){qe({type:10,payload:tr})}function Lr(tr){return Wo(this,null,function*(){var mr,qr,Rr;const br=((Rr=(qr=(mr=window==null?void 0:window.location)==null?void 0:mr.pathname)==null?void 0:qr.split("/"))==null?void 0:Rr[2])||ct;return yield(0,me.n4)(br,tr||{code:Fe.Base64.encode(Xn.code),language:Vt})})}function Nr(){return Wo(this,null,function*(){var tr;if(!Xn.code||((tr=Xn.code)==null?void 0:tr.trim())===""){fe.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(!qt){qe({type:5,payload:!0});try{if(ze.Z.publish("to-commit-info"),(yield Lr()).status===0){let Cr=function(){return Wo(this,null,function*(){const{status:Gr,data:Vr}=yield(0,me.rX)(ct,"submit"),dr=Ui()-Pr>(br*Fo+3)*1e3;if(Gr!==0&&!dr&&setTimeout(Cr,1e3),dr){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),qe({type:5,payload:!1});return}if(Gr===0){Vr.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Oo=yield(0,me.zO)(ct,{limit:15,page:rn});qe({type:8,payload:vo(Zr({},nt),{submitResult:Vr,submitting:!1,submitRecords:Oo})}),(Vr==null?void 0:Vr.status)===0&&Dn(!0)}})},qr={};const Rr=yield(0,me.bM)(ct,qr);if(Rr.status===-1&&St.get("exercisesId")){window.parent.location.href=`/classrooms/${St.get("coursesId")}/exercise/${St.get("exercisesId")}/detail`;return}const{time_limit:br,test_case_size:Fo}=Xn,Pr=Ui();(Rr==null?void 0:Rr.status)>-1?Cr():qe({type:4,payload:!1})}}catch(mr){qe({type:5,payload:!1})}}})}function Hn(){return Wo(this,null,function*(){var tr;if(!Xn.code||((tr=Xn.code)==null?void 0:tr.trim())===""){fe.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}nt.debuging=!0,qe({type:4,payload:!0});try{if((yield Lr()).status===0){let Pr=function(){return Wo(this,null,function*(){const{status:Cr,message:Gr,data:Vr}=yield(0,me.rX)(ct,"debug"),dr=Ui()-Fo>(qr+3)*1e3;if(Cr!==0&&!dr&&(qe({type:6,payload:Gr}),setTimeout(Pr,1e3)),dr){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),qe({type:4,payload:!1});return}Cr===0&&(qe({type:4,payload:!1}),Vr.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),qe({type:7,payload:vo(Zr({},nt),{debugResult:Vr,debuging:!1})}))})};const{time_limit:qr}=Xn;let Rr={input:encodeURIComponent(Ot.test_case.input)};const br=yield(0,me.MU)(ct,Rr);if(br.status===-1&&St.get("exercisesId")){window.parent.location.href=`/classrooms/${St.get("coursesId")}/exercise/${St.get("exercisesId")}/detail`;return}const Fo=Ui();(br==null?void 0:br.status)>-1?Pr():qe({type:4,payload:!1})}else qe({type:4,payload:!1})}catch(mr){console.log(mr)}finally{}})}function Cn(tr){var mr;clearTimeout(gn.current),gn.current=setTimeout(()=>{var qr;Lr({code:Fe.Base64.encode(tr),language:(qr=Tn==null?void 0:Tn.current)==null?void 0:qr.language})},2e3),qe({type:3,payload:vo(Zr({},Tn==null?void 0:Tn.current),{hack:vo(Zr({},(mr=Tn==null?void 0:Tn.current)==null?void 0:mr.hack),{code:tr})})})}function kn(tr){let mr=tr.target.value;qe({type:3,payload:vo(Zr({},Ot),{test_case:{input:mr}})})}const Un=tr=>Wo(void 0,null,function*(){var mr;if(qe({type:0,payload:!0}),(yield Lr()).status===0){qe({type:8,payload:{languageValue:tr}}),Tn.current.language=tr;const Rr=`${jn==null?void 0:jn.login}-language`;localStorage.setItem(Rr,tr);const br=yield(0,me.dd)(ct);if(br.status===0){const Fo=(mr=br==null?void 0:br.data)==null?void 0:mr.find(Pr=>Pr.language===tr);Cn(Fe.Base64.decode(Fo.code))}setTimeout(()=>{qe({type:0,payload:!1})},300)}});function Mn(){return Wo(this,null,function*(){try{const tr=yield(0,me.H7)(ct,{language:Vt});tr.status===401?pe.history.replace("/login",{from:ut.pathname}):(Cn(Fe.Base64.decode(tr.code)),Wr())}catch(tr){console.log(tr)}})}function yr(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:nr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",nr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Wo(this,null,function*(){const tr=yield(0,me.fi)(ct,{language:Vt});tr.status===401?pe.history.replace("/login",{from:ut.pathname}):Cn(Fe.Base64.decode(tr.code))})}})}function Rn(){qe({type:9,payload:!0})}function Gn(){qe({type:9,payload:!1})}function hr(tr){return Wo(this,null,function*(){yield(0,me.MK)(ct,tr),qe({type:1,payload:{showNote:!1,data:vo(Zr({},Ot),{hack:vo(Zr({},Xn),{notes:tr.notes})})}})})}const _r={input:(Me=Ot==null?void 0:Ot.test_case)==null?void 0:Me.input,is_file:(Oe=Ot==null?void 0:Ot.test_case)==null?void 0:Oe.is_file,language:((Qe=Tn.current)==null?void 0:Qe.language)||(Xn==null?void 0:Xn.language),code:Xn==null?void 0:Xn.code,title:"main."+li[Xn==null?void 0:Xn.language],modify_code:Xn==null?void 0:Xn.modify_code,notes:Xn==null?void 0:Xn.notes,debugResult:Qt,debuging:On,submitting:qt,executingMessage:hn,id:ct,languageValue:Vt,languageList:Nt,onChangeLanguage:Un,onCancelNote:Gn,onAddNote:hr,showNote:_n,onShowNote:Rn,onSubmitCode:Nr,onChangeCode:Cn,onChangeInput:kn,onDebugCode:Hn,onResetCode:Mn,onSyncCode:yr,onUpdateCode:Lr};function Ao(){return Wo(this,null,function*(){const{praise_count:tr}=yield(0,me.vl)(Xn.id,{container_type:"Hack",type:1});let mr=vo(Zr({},Ot),{hack:vo(Zr({},Xn),{praises_count:tr,user_praise:!Xn.user_praise})});qe({type:3,payload:mr})})}const Po={topicId:ct,submitResult:Jt,submitRecords:Pn,submitting:qt,page:rn,onPageChange:Sr,hack:Xn,user:Ot==null?void 0:Ot.user,onTriggerPraise:Ao};return console.log(Ot,Tn==null?void 0:Tn.current,"data--------"),nr.createElement(nr.Fragment,null,nr.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Yt},Ot?nr.createElement("div",{className:"oj-custom-warp"},nr.createElement("header",{className:He.Z.header,style:{minWidth:1200}},nr.createElement("div",null,nr.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${jn.image_url}`,alt:"user",width:30}),nr.createElement("span",null,jn.name)),nr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},nr.createElement("div",null,Xn.name),nr.createElement(_s.Z,{onChange:tr=>{},className:"font12 c-grey-999"})),nr.createElement(bs.CopyToClipboard,{text:`${(Je=window.location)==null?void 0:Je.origin}/problems/${Xn.identifier}/share`,onCopy:()=>fe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},nr.createElement("span",{className:He.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",nr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Xn.edit_privilege?nr.createElement(pe.Link,{className:He.Z.btn_back,to:`/problems/${Xn.identifier}/ojedit`,style:{marginRight:10}}," ",nr.createElement(ge.Z,null)," \u7F16\u8F91"):null,nr.createElement(pe.Link,{className:He.Z.btn_back,onClick:()=>{},to:"/problems"}," ",nr.createElement(be.Z,null),"\u9000\u51FA")),nr.createElement(ae.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:nr.createElement(Ka,Zr({},Po)),rightChild:nr.createElement(it,Zr({},_r))})):null),nr.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:bn,className:"oj-modal"},nr.createElement("section",{className:"oj-modal-content"},nr.createElement("div",{className:"oj-modal-head"},nr.createElement("img",{src:Va,alt:""}),nr.createElement("i",{onClick:()=>Dn(!1),className:"iconfont icon-guanbi1"})),nr.createElement("aside",null,nr.createElement("img",{className:"mr30",src:Ya.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",nr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Jt==null?void 0:Jt.execute_time,"s"),"\u4F18\u4E8E",nr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Jt==null?void 0:Jt.time_better_than)||100,"%"),"\u7684\u7528\u6237"),nr.createElement("aside",{className:"mb50"},nr.createElement("img",{src:ys.Z,className:"mr30"}),nr.createElement("span",{className:"oj-modal-tt"},nr.createElement("span",null,nr.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),nr.createElement("span",{className:"c-light-primary"},Jt==null?void 0:Jt.execute_memory,"mb")),nr.createElement("span",null,nr.createElement("span",null))),"\u4F18\u4E8E",nr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Jt==null?void 0:Jt.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),nr.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:Je,onSyncCode:nt,onShowCodeSetting:qe,onResetCode:ct}){const ut=(0,pe.useLocation)(),St=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:nr.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 nr.createElement("div",{className:"action-bar"},nr.createElement(le.default,{className:"oj-select",value:Ce,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Oe},Me==null?void 0:Me.map(Vt=>nr.createElement(le.default.Option,{key:Vt.language,value:Vt.language},Vt.language))),nr.createElement("span",null),nr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:St},nr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),nr.createElement("a",{onClick:qe},nr.createElement("i",{className:"iconfont icon-shezhi"})))}function it(Ce){var Me=Ce,{id:Oe,input:Qe,is_file:Je,showNote:nt,onShowNote:qe,notes:ct,onCancelNote:ut,onAddNote:St,debugResult:Vt,language:Nt,debuging:Yt,submitting:Ot,executingMessage:Qt,code:Jt,onSubmitCode:Pn,onDebugCode:rn,onChangeCode:_n,onChangeInput:On,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 Rt(ln){return nr.createElement(Ve,vo(Zr({},hn),{onShowCodeSetting:ln}))}const nn={id:Oe,input:Qe,debugResult:Vt,debuging:Yt,is_file:Je,submitting:Ot,executingMessage:Qt,onDebugCode:rn,onChangeCode:_n,onSubmitCode:Pn,onChangeInput:On};return nr.createElement("div",{className:"right-panel"},nr.createElement(vt,{onUpdateCode:()=>{},language:Nt,value:Jt,onChange:_n,ActionBarRender:Rt}),nr.createElement("div",{className:`note-form-area ${nt?"active":""}`},nr.createElement(rt,{onCancel:ut,notes:ct,callback:St})),nr.createElement(at.ZP,Zr({},nn)))}},76726:function(mt,Ke,te){"use strict";te.d(Ke,{h:function(){return ee}});var ee=(ge=>(ge[ge.NOMATCH=-1]="NOMATCH",ge[ge.OK=0]="OK",ge[ge.TIMEOUT=2]="TIMEOUT",ge[ge.PODFAILURE=3]="PODFAILURE",ge[ge.COMPILEFAILURE=4]="COMPILEFAILURE",ge[ge.EXECUTEFAILURE=5]="EXECUTEFAILURE",ge[ge.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ge))(ee||{})},80266:function(mt,Ke,te){"use strict";te.d(Ke,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return pe},Rg:function(){return re},WH:function(){return a},X6:function(){return fe},bM:function(){return be},bx:function(){return y},dd:function(){return he},de:function(){return ce},fi:function(){return me},fu:function(){return ge},gu:function(){return E},n4:function(){return ae},qe:function(){return z},rL:function(){return se},rX:function(){return ie},uc:function(){return _e},vl:function(){return oe},wO:function(){return x},zO:function(){return Se}});var ee=te(49317);function ge(ye){return(0,ee.U2)(`mypractices/${ye}.json`,{hidePopLogin:!0})}function be(ye,De){return(0,ee.v_)(`mypractices/${ye}/code_submit.json`,De)}function pe(ye,De){return(0,ee.v_)(`mypractices/${ye}/code_debug.json`,De)}function Se(ye,De){return De.language&&(De.language=encodeURIComponent(De.language)),(0,ee.U2)(`mypractices/${ye}/submit_records.json`,De)}function fe(ye){return(0,ee.U2)("mypractices/record_detail.json",{id:ye})}function ie(ye,De){return(0,ee.U2)(`mypractices/${ye}/result.json`,{mode:De})}function de(ye,De){return(0,ee.v_)(`mypractices/${ye}/add_notes.json`,De)}function le(ye,De){return(0,ee.v_)(`mypractices/${ye}/restore_initial_code.json`,De)}function me(ye,De){return(0,ee.v_)(`mypractices/${ye}/sync_code.json`,De)}function ae(ye,De){return(0,ee.v_)(`mypractices/${ye}/update_code.json`,De)}function he(ye){return(0,ee.v_)(`mypractices/${ye}/initial_codes.json`)}function oe(ye,De){return(0,ee.v_)(`discusses/${ye}/plus.json`,De)}function ne(ye){return(0,ee.U2)("practices/practices_list.json",ye)}function a(ye,De){return(0,ee.U2)(`practices/${ye}/question_solution_articles`,De)}function y(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles`,De)}function E(ye,De){return(0,ee.gz)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}`,De)}function b(ye,De){return(0,ee.U2)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/edit`,De)}function x(ye,De){return(0,ee.U2)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}`,De)}function z(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/set_authority_or_excellent`,De)}function re(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/praise_or_treads`,De)}function se(ye,De){return(0,ee.v_)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}/hide`)}function ce(ye,De){return(0,ee.IV)(`practices/${ye}/question_solution_articles/${De==null?void 0:De.active}`,De)}function _e(ye,De){return(0,ee.v_)(`mypractices/${ye}/update_practice_time_sum`,De)}},74574:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return oe}});var ee=te(59301),ge=te(8591),be=te(6848),pe=te(71418),Se=te(95237),fe=te(43604),ie=te(58421),de=te(3113),le=te(18857),me=te(49317),ae=te(67153),he=(a,y,E)=>new Promise((b,x)=>{var z=ce=>{try{se(E.next(ce))}catch(_e){x(_e)}},re=ce=>{try{se(E.throw(ce))}catch(_e){x(_e)}},se=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(z,re);se((E=E.apply(a,y)).next())}),oe=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,z]=(0,ee.useState)(""),[re,se]=(0,ee.useState)(!1);function ce(ye){z(ye)}function _e(){if(!x){ge.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),z("")}return(0,ee.useEffect)(()=>{y!=a&&se(!1)},[y]),ee.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},ee.createElement(le.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ce,extraUse:b&&ee.createElement(be.Z,{color:"#fff",open:re,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:re,activeDiscussIndex:y,onChange:ce,setIsOpen:se}),overlayStyle:{maxWidth:600}},ee.createElement("a",{title:re?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>se(!re)},ee.createElement("i",{className:"iconfont icon-dianzan11"})))}),ee.createElement("a",{onClick:_e,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,ee.useState)(!1),[b,x]=(0,ee.useState)([]),[z,re]=(0,ee.useState)(1);(0,ee.useEffect)(()=>{a!=null&&a.isOpen?se():(re(1),x([]))},[a==null?void 0:a.isOpen]);const se=()=>he(void 0,null,function*(){E(!0);const ce=yield(0,me.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ce==null?void 0:ce.status)==0&&x(ce==null?void 0:ce.answer),E(!1)});return ee.createElement(pe.Z,{spinning:y},ee.createElement("div",{style:{color:"#000"}},ee.createElement(ae.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[z-1])||""}),ee.createElement(Se.Z,{justify:"end",align:"middle"},ee.createElement(fe.Z,null,ee.createElement(ie.Z,{simple:!0,current:z,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{re(ce)}})),ee.createElement(fe.Z,null,ee.createElement(de.ZP,{onClick:()=>he(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")))))}},67195:function(mt,Ke,te){"use strict";te.d(Ke,{BU:function(){return ge},Dj:function(){return ee},gH:function(){return be},vp:function(){return pe}});function ee(Se){try{Se.mozRequestFullScreen?Se.mozRequestFullScreen():Se.webkitRequestFullScreen&&Se.webkitRequestFullScreen()}catch(fe){console.log(fe,":e")}}function ge(){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 pe(){var Se=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,fe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Se),window.isFullScreen?window.isFullScreen:Se!=null}},83477:function(mt,Ke,te){"use strict";te.d(Ke,{G:function(){return Se},t:function(){return pe}});var ee=te(7062),ge=te.n(ee);const be=null;function pe(fe,ie){let de=ge().get("__ec");de||(de={}),de[fe]=ie,ge().set("__ec",de)}function Se(fe,ie){let de=ge().get("__ec");return de?de[fe]===void 0?ie:de[fe]:ie}},72790:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return Kr}});class ee{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ue,ve){return ue.__proto__=ve,ue},Object.assign=Object.assign||function(ue){if(ue==null)throw new TypeError("Cannot convert undefined or null to object");let ve=Object(ue);for(let Pe=1;Pe<arguments.length;Pe++){let xe=arguments[Pe];if(xe!=null)for(let ke in xe)xe.hasOwnProperty(ke)&&(ve[ke]=xe[ke])}return ve},typeof self.Promise!="function"&&te(3867).polyfill()}}ee.install();var ge=ee,be=te(86204),pe=te.n(be);class Se{static e(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","error",Pe),Se.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","info",Pe),Se.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","warn",Pe),Se.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","debug",Pe),Se.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","verbose",Pe),Se.ENABLE_VERBOSE&&console.log(Pe)}}Se.GLOBAL_TAG="flv.js",Se.FORCE_GLOBAL_TAG=!1,Se.ENABLE_ERROR=!0,Se.ENABLE_INFO=!0,Se.ENABLE_WARN=!0,Se.ENABLE_DEBUG=!0,Se.ENABLE_VERBOSE=!0,Se.ENABLE_CALLBACK=!1,Se.emitter=new(pe());var fe=Se;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(ue){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ue,this._totalBytes+=ue):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ue,this._totalBytes+=ue):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ue,this._totalBytes+=ue,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ue=(this._now()-this._lastCheckpoint)/1e3;return ue==0&&(ue=1),this._intervalBytes/ue/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ue=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ue/1024}}var de=ie;class le{constructor(ue){this._message=ue}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class me extends le{constructor(ue){super(ue)}get name(){return"IllegalStateException"}}class ae extends le{constructor(ue){super(ue)}get name(){return"InvalidArgumentException"}}class he extends le{constructor(ue){super(ue)}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(ue){this._type=ue||"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(ue){this._onContentLengthKnown=ue}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ue){this._onURLRedirect=ue}get onDataArrival(){return this._onDataArrival}set onDataArrival(ue){this._onDataArrival=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onComplete(){return this._onComplete}set onComplete(ue){this._onComplete=ue}open(ue,ve){throw new he("Unimplemented abstract function!")}abort(){throw new he("Unimplemented abstract function!")}}let y={};function E(){let Ut=self.navigator.userAgent.toLowerCase(),ue=/(edge)\/([\w.]+)/.exec(Ut)||/(opr)[\/]([\w.]+)/.exec(Ut)||/(chrome)[ \/]([\w.]+)/.exec(Ut)||/(iemobile)[\/]([\w.]+)/.exec(Ut)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ut)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ut)||/(webkit)[ \/]([\w.]+)/.exec(Ut)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Ut)||/(msie) ([\w.]+)/.exec(Ut)||Ut.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Ut)||Ut.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Ut)||[],ve=/(ipad)/.exec(Ut)||/(ipod)/.exec(Ut)||/(windows phone)/.exec(Ut)||/(iphone)/.exec(Ut)||/(kindle)/.exec(Ut)||/(android)/.exec(Ut)||/(windows)/.exec(Ut)||/(mac)/.exec(Ut)||/(linux)/.exec(Ut)||/(cros)/.exec(Ut)||[],Pe={browser:ue[5]||ue[3]||ue[1]||"",version:ue[2]||ue[4]||"0",majorVersion:ue[4]||ue[2]||"0",platform:ve[0]||""},xe={};if(Pe.browser){xe[Pe.browser]=!0;let ke=Pe.majorVersion.split(".");xe.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},ke.length>1&&(xe.version.minor=parseInt(ke[1],10)),ke.length>2&&(xe.version.build=parseInt(ke[2],10))}if(Pe.platform&&(xe[Pe.platform]=!0),(xe.chrome||xe.opr||xe.safari)&&(xe.webkit=!0),xe.rv||xe.iemobile){xe.rv&&delete xe.rv;let ke="msie";Pe.browser=ke,xe[ke]=!0}if(xe.edge){delete xe.edge;let ke="msedge";Pe.browser=ke,xe[ke]=!0}if(xe.opr){let ke="opera";Pe.browser=ke,xe[ke]=!0}if(xe.safari&&xe.android){let ke="android";Pe.browser=ke,xe[ke]=!0}xe.name=Pe.browser,xe.platform=Pe.platform;for(let ke in y)y.hasOwnProperty(ke)&&delete y[ke];Object.assign(y,xe)}E();var b=y;class x extends a{static isSupported(){try{let ue=b.msedge&&b.version.minor>=15048,ve=b.msedge?ue:!0;return self.fetch&&self.ReadableStream&&ve}catch(ue){return!1}}constructor(ue,ve){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ue,this._config=ve,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ue,ve){this._dataSource=ue,this._range=ve;let Pe=ue.url;this._config.reuseRedirectedURL&&ue.redirectedURL!=null&&(Pe=ue.redirectedURL);let xe=this._seekHandler.getConfig(Pe,ve),ke=new self.Headers;if(typeof xe.headers=="object"){let dt=xe.headers;for(let tn in dt)dt.hasOwnProperty(tn)&&ke.append(tn,dt[tn])}let tt={method:"GET",headers:ke,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let dt in this._config.headers)ke.append(dt,this._config.headers[dt]);ue.cors===!1&&(tt.mode="same-origin"),ue.withCredentials&&(tt.credentials="include"),ue.referrerPolicy&&(tt.referrerPolicy=ue.referrerPolicy),this._status=oe.kConnecting,self.fetch(xe.url,tt).then(dt=>{if(this._requestAbort){this._requestAbort=!1,this._status=oe.kIdle;return}if(dt.ok&&dt.status>=200&&dt.status<=299){if(dt.url!==xe.url&&this._onURLRedirect){let Kt=this._seekHandler.removeURLParameters(dt.url);this._onURLRedirect(Kt)}let tn=dt.headers.get("Content-Length");return tn!=null&&(this._contentLength=parseInt(tn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,dt.body.getReader())}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:dt.status,msg:dt.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+dt.status+" "+dt.statusText)}).catch(dt=>{if(this._status=oe.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:dt.message});else throw dt})}abort(){this._requestAbort=!0}_pump(ue){return ue.read().then(ve=>{if(ve.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=oe.kError;let Pe=ne.EARLY_EOF,xe={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,xe);else throw new le(xe.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,ue.cancel();this._status=oe.kBuffering;let Pe=ve.value.buffer,xe=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,xe,this._receivedLength),this._pump(ue)}}).catch(ve=>{if(ve.code===11&&b.msedge)return;this._status=oe.kError;let Pe=0,xe=null;if((ve.code===19||ve.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,xe={code:ve.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,xe={code:ve.code,msg:ve.message}),this._onError)this._onError(Pe,xe);else throw new le(xe.msg)})}}var z=x;class re extends a{static isSupported(){try{let ue=new XMLHttpRequest;return ue.open("GET","https://example.com",!0),ue.responseType="moz-chunked-arraybuffer",ue.responseType==="moz-chunked-arraybuffer"}catch(ue){return fe.w("MozChunkedLoader",ue.message),!1}}constructor(ue,ve){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=ue,this._config=ve,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(ue,ve){this._dataSource=ue,this._range=ve;let Pe=ue.url;this._config.reuseRedirectedURL&&ue.redirectedURL!=null&&(Pe=ue.redirectedURL);let xe=this._seekHandler.getConfig(Pe,ve);this._requestURL=xe.url;let ke=this._xhr=new XMLHttpRequest;if(ke.open("GET",xe.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),ue.withCredentials&&(ke.withCredentials=!0),typeof xe.headers=="object"){let tt=xe.headers;for(let dt in tt)tt.hasOwnProperty(dt)&&ke.setRequestHeader(dt,tt[dt])}if(typeof this._config.headers=="object"){let tt=this._config.headers;for(let dt in tt)tt.hasOwnProperty(dt)&&ke.setRequestHeader(dt,tt[dt])}this._status=oe.kConnecting,ke.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=oe.kComplete}_onReadyStateChange(ue){let ve=ue.target;if(ve.readyState===2){if(ve.responseURL!=null&&ve.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(ve.responseURL);this._onURLRedirect(Pe)}if(ve.status!==0&&(ve.status<200||ve.status>299))if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+ve.status+" "+ve.statusText);else this._status=oe.kBuffering}}_onProgress(ue){if(this._status===oe.kError)return;this._contentLength===null&&ue.total!==null&&ue.total!==0&&(this._contentLength=ue.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ve=ue.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=ve.byteLength,this._onDataArrival&&this._onDataArrival(ve,Pe,this._receivedLength)}_onLoadEnd(ue){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(ue){this._status=oe.kError;let ve=0,Pe=null;if(this._contentLength&&ue.loaded<this._contentLength?(ve=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(ve=ne.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type}),this._onError)this._onError(ve,Pe);else throw new le(Pe.msg)}}var se=re;class ce extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let ue=new XMLHttpRequest;return ue.open("GET","https://example.com",!0),ue.responseType="ms-stream",ue.responseType==="ms-stream"}catch(ue){return Log.w("MSStreamLoader",ue.message),!1}}constructor(ue,ve){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=ue,this._config=ve,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(ue,ve){this._internalOpen(ue,ve,!1)}_internalOpen(ue,ve,Pe){this._dataSource=ue,Pe?this._currentRange=ve:this._totalRange=ve;let xe=ue.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?xe=this._currentRedirectedURL:ue.redirectedURL!=null&&(xe=ue.redirectedURL));let ke=this._seekHandler.getConfig(xe,ve);this._currentRequestURL=ke.url;let tt=this._reader=new self.MSStreamReader;tt.onprogress=this._msrOnProgress.bind(this),tt.onload=this._msrOnLoad.bind(this),tt.onerror=this._msrOnError.bind(this);let dt=this._xhr=new XMLHttpRequest;if(dt.open("GET",ke.url,!0),dt.responseType="ms-stream",dt.onreadystatechange=this._xhrOnReadyStateChange.bind(this),dt.onerror=this._xhrOnError.bind(this),ue.withCredentials&&(dt.withCredentials=!0),typeof ke.headers=="object"){let tn=ke.headers;for(let Kt in tn)tn.hasOwnProperty(Kt)&&dt.setRequestHeader(Kt,tn[Kt])}if(typeof this._config.headers=="object"){let tn=this._config.headers;for(let Kt in tn)tn.hasOwnProperty(Kt)&&dt.setRequestHeader(Kt,tn[Kt])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,dt.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(ue){let ve=ue.target;if(ve.readyState===2)if(ve.status>=200&&ve.status<=299){if(this._status=LoaderStatus.kBuffering,ve.responseURL!=null){let xe=this._seekHandler.removeURLParameters(ve.responseURL);ve.responseURL!==this._currentRequestURL&&xe!==this._currentRedirectedURL&&(this._currentRedirectedURL=xe,this._onURLRedirect&&this._onURLRedirect(xe))}let Pe=ve.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let xe=parseInt(Pe);xe>0&&(this._contentLength=xe,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ve.status+" "+ve.statusText);else if(ve.readyState===3&&ve.status>=200&&ve.status<=299){this._status=LoaderStatus.kBuffering;let Pe=ve.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(ue){this._status=LoaderStatus.kError;let ve=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type};if(this._onError)this._onError(ve,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ue){let Pe=ue.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let xe=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let ke=this._totalRange.from+this._receivedLength;this._receivedLength+=xe.byteLength,this._onDataArrival&&this._onDataArrival(xe,ke,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${ke+xe.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let ue={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,ue,!0)}}_msrOnLoad(ue){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(ue){this._status=LoaderStatus.kError;let ve=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(ve=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(ve=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:ue.constructor.name+" "+ue.type}),this._onError)this._onError(ve,Pe);else throw new RuntimeException(Pe.msg)}}var _e=null;class ye extends a{static isSupported(){try{let ue=new XMLHttpRequest;return ue.open("GET","https://example.com",!0),ue.responseType="arraybuffer",ue.responseType==="arraybuffer"}catch(ue){return fe.w("RangeLoader",ue.message),!1}}constructor(ue,ve){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=ue,this._config=ve,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 de,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(ue,ve){this._dataSource=ue,this._range=ve,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 ue=this._currentChunkSizeKB*1024,ve=this._range.from+this._receivedLength,Pe=ve+ue;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:ve,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ue,ve){this._lastTimeLoaded=0;let Pe=ue.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ue.redirectedURL!=null&&(Pe=ue.redirectedURL));let xe=this._seekHandler.getConfig(Pe,ve);this._currentRequestURL=xe.url;let ke=this._xhr=new XMLHttpRequest;if(ke.open("GET",xe.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),ue.withCredentials&&(ke.withCredentials=!0),typeof xe.headers=="object"){let tt=xe.headers;for(let dt in tt)tt.hasOwnProperty(dt)&&ke.setRequestHeader(dt,tt[dt])}if(typeof this._config.headers=="object"){let tt=this._config.headers;for(let dt in tt)tt.hasOwnProperty(dt)&&ke.setRequestHeader(dt,tt[dt])}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(ue){let ve=ue.target;if(ve.readyState===2){if(ve.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(ve.responseURL);ve.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(ve.status>=200&&ve.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:ve.status,msg:ve.statusText});else throw new le("RangeLoader: Http code invalid, "+ve.status+" "+ve.statusText)}}_onProgress(ue){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 xe=ue.total;this._internalAbort(),xe!=null&xe!==0&&(this._totalLength=xe)}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 ve=ue.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ue.loaded,this._speedSampler.addBytes(ve)}_normalizeSpeed(ue){let ve=this._chunkSizeKBList,Pe=ve.length-1,xe=0,ke=0,tt=Pe;if(ue<ve[0])return ve[0];for(;ke<=tt;){if(xe=ke+Math.floor((tt-ke)/2),xe===Pe||ue>=ve[xe]&&ue<ve[xe+1])return ve[xe];ve[xe]<ue?ke=xe+1:tt=xe-1}}_onLoad(ue){if(this._status===oe.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let ve=this._speedSampler.lastSecondKBps;if(ve===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(ve=this._speedSampler.currentKBps)),ve!==0){let tt=this._normalizeSpeed(ve);this._currentSpeedNormalized!==tt&&(this._currentSpeedNormalized=tt,this._currentChunkSizeKB=tt)}let Pe=ue.target.response,xe=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,xe,this._receivedLength),ke&&(this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(ue){this._status=oe.kError;let ve=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(ve=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(ve=ne.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type}),this._onError)this._onError(ve,Pe);else throw new le(Pe.msg)}}var De=ye;class Ee extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(ue){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(ue){try{let ve=this._ws=new self.WebSocket(ue.url);ve.binaryType="arraybuffer",ve.onopen=this._onWebSocketOpen.bind(this),ve.onclose=this._onWebSocketClose.bind(this),ve.onmessage=this._onWebSocketMessage.bind(this),ve.onerror=this._onWebSocketError.bind(this),this._status=oe.kConnecting}catch(ve){this._status=oe.kError;let Pe={code:ve.code,msg:ve.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new le(Pe.msg)}}abort(){let ue=this._ws;ue&&(ue.readyState===0||ue.readyState===1)&&(this._requestAbort=!0,ue.close()),this._ws=null,this._status=oe.kComplete}_onWebSocketOpen(ue){this._status=oe.kBuffering}_onWebSocketClose(ue){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=oe.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(ue){if(ue.data instanceof ArrayBuffer)this._dispatchArrayBuffer(ue.data);else if(ue.data instanceof Blob){let ve=new FileReader;ve.onload=()=>{this._dispatchArrayBuffer(ve.result)},ve.readAsArrayBuffer(ue.data)}else{this._status=oe.kError;let ve={code:-1,msg:"Unsupported WebSocket message type: "+ue.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ve);else throw new le(ve.msg)}}_dispatchArrayBuffer(ue){let ve=ue,Pe=this._receivedLength;this._receivedLength+=ve.byteLength,this._onDataArrival&&this._onDataArrival(ve,Pe,this._receivedLength)}_onWebSocketError(ue){this._status=oe.kError;let ve={code:ue.code,msg:ue.message};if(this._onError)this._onError(ne.EXCEPTION,ve);else throw new le(ve.msg)}}var je=Ee;class Le{constructor(ue){this._zeroStart=ue||!1}getConfig(ue,ve){let Pe={};if(ve.from!==0||ve.to!==-1){let xe;ve.to!==-1?xe=`bytes=${ve.from.toString()}-${ve.to.toString()}`:xe=`bytes=${ve.from.toString()}-`,Pe.Range=xe}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:ue,headers:Pe}}removeURLParameters(ue){return ue}}var ht=Le;class Ye{constructor(ue,ve){this._startName=ue,this._endName=ve}getConfig(ue,ve){let Pe=ue;if(ve.from!==0||ve.to!==-1){let xe=!0;Pe.indexOf("?")===-1&&(Pe+="?",xe=!1),xe&&(Pe+="&"),Pe+=`${this._startName}=${ve.from.toString()}`,ve.to!==-1&&(Pe+=`&${this._endName}=${ve.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(ue){let ve=ue.split("?")[0],Pe,xe=ue.indexOf("?");xe!==-1&&(Pe=ue.substring(xe+1));let ke="";if(Pe!=null&&Pe.length>0){let tt=Pe.split("&");for(let dt=0;dt<tt.length;dt++){let tn=tt[dt].split("="),Kt=dt>0;tn[0]!==this._startName&&tn[0]!==this._endName&&(Kt&&(ke+="&"),ke+=tt[dt])}}return ke.length===0?ve:ve+"?"+ke}}var vt=Ye;class we{constructor(ue,ve,Pe){this.TAG="IOController",this._config=ve,this._extraData=Pe,this._stashInitialSize=1024*384,ve.stashInitialSize!=null&&ve.stashInitialSize>0&&(this._stashInitialSize=ve.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,ve.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ue,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ue.url),this._refTotalLength=ue.filesize?ue.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new de,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(ue){this._extraData=ue}get onDataArrival(){return this._onDataArrival}set onDataArrival(ue){this._onDataArrival=ue}get onSeeked(){return this._onSeeked}set onSeeked(ue){this._onSeeked=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onComplete(){return this._onComplete}set onComplete(ue){this._onComplete=ue}get onRedirect(){return this._onRedirect}set onRedirect(ue){this._onRedirect=ue}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ue){this._onRecoveredEarlyEof=ue}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===De?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let ue=this._config;if(ue.seekType==="range")this._seekHandler=new ht(this._config.rangeLoadZeroStart);else if(ue.seekType==="param"){let ve=ue.seekParamStart||"bstart",Pe=ue.seekParamEnd||"bend";this._seekHandler=new vt(ve,Pe)}else if(ue.seekType==="custom"){if(typeof ue.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ue.customSeekHandler}else throw new ae(`Invalid seekType in config: ${ue.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=je;else if(z.isSupported())this._loaderClass=z;else if(se.isSupported())this._loaderClass=se;else if(De.isSupported())this._loaderClass=De;else throw new le("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(ue){this._currentRange={from:0,to:-1},ue&&(this._currentRange.from=ue),this._speedSampler.reset(),ue||(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 ue=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ue,!0)}}seek(ue){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ue,!0)}_internalSeek(ue,ve){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ve),this._loader.destroy(),this._loader=null;let Pe={from:ue,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(ue){if(!ue||typeof ue!="string"||ue.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=ue}_expandBuffer(ue){let ve=this._stashSize;for(;ve+1024*1024*1<ue;)ve*=2;if(ve+=1024*1024*1,ve===this._bufferSize)return;let Pe=new ArrayBuffer(ve);if(this._stashUsed>0){let xe=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,ve).set(xe,0)}this._stashBuffer=Pe,this._bufferSize=ve}_normalizeSpeed(ue){let ve=this._speedNormalizeList,Pe=ve.length-1,xe=0,ke=0,tt=Pe;if(ue<ve[0])return ve[0];for(;ke<=tt;){if(xe=ke+Math.floor((tt-ke)/2),xe===Pe||ue>=ve[xe]&&ue<ve[xe+1])return ve[xe];ve[xe]<ue?ke=xe+1:tt=xe-1}}_adjustStashSize(ue){let ve=0;this._config.isLive||ue<512?ve=ue:ue>=512&&ue<=1024?ve=Math.floor(ue*1.5):ve=ue*2,ve>8192&&(ve=8192);let Pe=ve*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=ve*1024}_dispatchChunks(ue,ve){return this._currentRange.to=ve+ue.byteLength-1,this._onDataArrival(ue,ve)}_onURLRedirect(ue){this._redirectedURL=ue,this._onRedirect&&this._onRedirect(ue)}_onContentLengthKnown(ue){ue&&this._fullRequestFlag&&(this._totalLength=ue,this._fullRequestFlag=!1)}_onLoaderChunkArrival(ue,ve,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(ue.byteLength);let xe=this._speedSampler.lastSecondKBps;if(xe!==0){let ke=this._normalizeSpeed(xe);this._speedNormalized!==ke&&(this._speedNormalized=ke,this._adjustStashSize(ke))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ve),this._stashUsed+ue.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength;else{let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let tt=this._stashBuffer.slice(0,this._stashUsed),dt=this._dispatchChunks(tt,this._stashByteStart);if(dt<tt.byteLength){if(dt>0){let tn=new Uint8Array(tt,dt);ke.set(tn,0),this._stashUsed=tn.byteLength,this._stashByteStart+=dt}}else this._stashUsed=0,this._stashByteStart+=dt;this._stashUsed+ue.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ue.byteLength),ke=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ke.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength}else{let tt=this._dispatchChunks(ue,ve);if(tt<ue.byteLength){let dt=ue.byteLength-tt;dt>this._bufferSize&&(this._expandBuffer(dt),ke=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ke.set(new Uint8Array(ue,tt),0),this._stashUsed+=dt,this._stashByteStart=ve+tt}}}else if(this._stashUsed===0){let ke=this._dispatchChunks(ue,ve);if(ke<ue.byteLength){let tt=ue.byteLength-ke;tt>this._bufferSize&&this._expandBuffer(tt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ue,ke),0),this._stashUsed+=tt,this._stashByteStart=ve+ke}}else{this._stashUsed+ue.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ue.byteLength);let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize);ke.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength;let tt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(tt<this._stashUsed&&tt>0){let dt=new Uint8Array(this._stashBuffer,tt);ke.set(dt,0)}this._stashUsed-=tt,this._stashByteStart+=tt}}_flushStashBuffer(ue){if(this._stashUsed>0){let ve=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(ve,this._stashByteStart),xe=ve.byteLength-Pe;if(Pe<ve.byteLength)if(ue)fe.w(this.TAG,`${xe} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize),tt=new Uint8Array(ve,Pe);ke.set(tt,0),this._stashUsed=tt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,xe}return 0}_onLoaderComplete(ue,ve){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ue,ve){switch(fe.e(this.TAG,`Loader error, code = ${ve.code}, msg = ${ve.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ue=ne.UNRECOVERABLE_EARLY_EOF),ue){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(fe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}ue=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(ue,ve);else throw new le("IOException: "+ve.msg)}}var Fe=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 at(){return Object.assign({},He)}class We{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let ue=new Fe({},at()),ve=ue.loaderType;return ue.destroy(),ve=="fetch-stream-loader"||ve=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let ue=new Fe({},at()),ve=ue.loaderType;return ue.destroy(),ve}static supportNativeMediaPlayback(ue){We.videoElement==null&&(We.videoElement=window.document.createElement("video"));let ve=We.videoElement.canPlayType(ue);return ve==="probably"||ve=="maybe"}static getFeatureList(){let ue={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ue.mseFlvPlayback=We.supportMSEH264Playback(),ue.networkStreamIO=We.supportNetworkStreamIO(),ue.networkLoaderName=We.getNetworkLoaderTypeName(),ue.mseLiveFlvPlayback=ue.mseFlvPlayback&&ue.networkStreamIO,ue.nativeMP4H264Playback=We.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ue.nativeWebmVP8Playback=We.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ue.nativeWebmVP9Playback=We.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ue}}var pt=We,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 Bt{static get forceGlobalTag(){return fe.FORCE_GLOBAL_TAG}static set forceGlobalTag(ue){fe.FORCE_GLOBAL_TAG=ue,Bt._notifyChange()}static get globalTag(){return fe.GLOBAL_TAG}static set globalTag(ue){fe.GLOBAL_TAG=ue,Bt._notifyChange()}static get enableAll(){return fe.ENABLE_VERBOSE&&fe.ENABLE_DEBUG&&fe.ENABLE_INFO&&fe.ENABLE_WARN&&fe.ENABLE_ERROR}static set enableAll(ue){fe.ENABLE_VERBOSE=ue,fe.ENABLE_DEBUG=ue,fe.ENABLE_INFO=ue,fe.ENABLE_WARN=ue,fe.ENABLE_ERROR=ue,Bt._notifyChange()}static get enableDebug(){return fe.ENABLE_DEBUG}static set enableDebug(ue){fe.ENABLE_DEBUG=ue,Bt._notifyChange()}static get enableVerbose(){return fe.ENABLE_VERBOSE}static set enableVerbose(ue){fe.ENABLE_VERBOSE=ue,Bt._notifyChange()}static get enableInfo(){return fe.ENABLE_INFO}static set enableInfo(ue){fe.ENABLE_INFO=ue,Bt._notifyChange()}static get enableWarn(){return fe.ENABLE_WARN}static set enableWarn(ue){fe.ENABLE_WARN=ue,Bt._notifyChange()}static get enableError(){return fe.ENABLE_ERROR}static set enableError(ue){fe.ENABLE_ERROR=ue,Bt._notifyChange()}static getConfig(){return{globalTag:fe.GLOBAL_TAG,forceGlobalTag:fe.FORCE_GLOBAL_TAG,enableVerbose:fe.ENABLE_VERBOSE,enableDebug:fe.ENABLE_DEBUG,enableInfo:fe.ENABLE_INFO,enableWarn:fe.ENABLE_WARN,enableError:fe.ENABLE_ERROR,enableCallback:fe.ENABLE_CALLBACK}}static applyConfig(ue){fe.GLOBAL_TAG=ue.globalTag,fe.FORCE_GLOBAL_TAG=ue.forceGlobalTag,fe.ENABLE_VERBOSE=ue.enableVerbose,fe.ENABLE_DEBUG=ue.enableDebug,fe.ENABLE_INFO=ue.enableInfo,fe.ENABLE_WARN=ue.enableWarn,fe.ENABLE_ERROR=ue.enableError,fe.ENABLE_CALLBACK=ue.enableCallback}static _notifyChange(){let ue=Bt.emitter;if(ue.listenerCount("change")>0){let ve=Bt.getConfig();ue.emit("change",ve)}}static registerListener(ue){Bt.emitter.addListener("change",ue)}static removeListener(ue){Bt.emitter.removeListener("change",ue)}static addLogListener(ue){fe.emitter.addListener("log",ue),fe.emitter.listenerCount("log")>0&&(fe.ENABLE_CALLBACK=!0,Bt._notifyChange())}static removeLogListener(ue){fe.emitter.removeListener("log",ue),fe.emitter.listenerCount("log")===0&&(fe.ENABLE_CALLBACK=!1,Bt._notifyChange())}}Bt.emitter=new(pe());var rt=Bt;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 ue=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ve=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&&ue&&ve}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ue){if(this.keyframesIndex==null)return null;let ve=this.keyframesIndex,Pe=this._search(ve.times,ue);return{index:Pe,milliseconds:ve.times[Pe],fileposition:ve.filepositions[Pe]}}_search(ue,ve){let Pe=0,xe=ue.length-1,ke=0,tt=0,dt=xe;for(ve<ue[0]&&(Pe=0,tt=dt+1);tt<=dt;)if(ke=tt+Math.floor((dt-tt)/2),ke===xe||ve>=ue[ke]&&ve<ue[ke+1]){Pe=ke;break}else ue[ke]<ve?tt=ke+1:dt=ke-1;return Pe}}var Ct=Xe;function zt(Ut,ue,ve){let Pe=Ut;if(ue+ve<Pe.length){for(;ve--;)if((Pe[++ue]&192)!==128)return!1;return!0}else return!1}function Et(Ut){let ue=[],ve=Ut,Pe=0,xe=Ut.length;for(;Pe<xe;){if(ve[Pe]<128){ue.push(String.fromCharCode(ve[Pe])),++Pe;continue}else if(!(ve[Pe]<192)){if(ve[Pe]<224){if(zt(ve,Pe,1)){let ke=(ve[Pe]&31)<<6|ve[Pe+1]&63;if(ke>=128){ue.push(String.fromCharCode(ke&65535)),Pe+=2;continue}}}else if(ve[Pe]<240){if(zt(ve,Pe,2)){let ke=(ve[Pe]&15)<<12|(ve[Pe+1]&63)<<6|ve[Pe+2]&63;if(ke>=2048&&(ke&63488)!==55296){ue.push(String.fromCharCode(ke&65535)),Pe+=3;continue}}}else if(ve[Pe]<248&&zt(ve,Pe,3)){let ke=(ve[Pe]&7)<<18|(ve[Pe+1]&63)<<12|(ve[Pe+2]&63)<<6|ve[Pe+3]&63;if(ke>65536&&ke<1114112){ke-=65536,ue.push(String.fromCharCode(ke>>>10|55296)),ue.push(String.fromCharCode(ke&1023|56320)),Pe+=4;continue}}}ue.push("\uFFFD"),++Pe}return ue.join("")}var an=Et;let $e=function(){let Ut=new ArrayBuffer(2);return new DataView(Ut).setInt16(0,256,!0),new Int16Array(Ut)[0]===256}();class yt{static parseScriptData(ue,ve,Pe){let xe={};try{let ke=yt.parseValue(ue,ve,Pe),tt=yt.parseValue(ue,ve+ke.size,Pe-ke.size);xe[ke.data]=tt.data}catch(ke){fe.e("AMF",ke.toString())}return xe}static parseObject(ue,ve,Pe){if(Pe<3)throw new me("Data not enough when parse ScriptDataObject");let xe=yt.parseString(ue,ve,Pe),ke=yt.parseValue(ue,ve+xe.size,Pe-xe.size),tt=ke.objectEnd;return{data:{name:xe.data,value:ke.data},size:xe.size+ke.size,objectEnd:tt}}static parseVariable(ue,ve,Pe){return yt.parseObject(ue,ve,Pe)}static parseString(ue,ve,Pe){if(Pe<2)throw new me("Data not enough when parse String");let ke=new DataView(ue,ve,Pe).getUint16(0,!$e),tt;return ke>0?tt=an(new Uint8Array(ue,ve+2,ke)):tt="",{data:tt,size:2+ke}}static parseLongString(ue,ve,Pe){if(Pe<4)throw new me("Data not enough when parse LongString");let ke=new DataView(ue,ve,Pe).getUint32(0,!$e),tt;return ke>0?tt=an(new Uint8Array(ue,ve+4,ke)):tt="",{data:tt,size:4+ke}}static parseDate(ue,ve,Pe){if(Pe<10)throw new me("Data size invalid when parse Date");let xe=new DataView(ue,ve,Pe),ke=xe.getFloat64(0,!$e),tt=xe.getInt16(8,!$e);return ke+=tt*60*1e3,{data:new Date(ke),size:10}}static parseValue(ue,ve,Pe){if(Pe<1)throw new me("Data not enough when parse Value");let xe=new DataView(ue,ve,Pe),ke=1,tt=xe.getUint8(0),dt,tn=!1;try{switch(tt){case 0:dt=xe.getFloat64(1,!$e),ke+=8;break;case 1:{dt=!!xe.getUint8(1),ke+=1;break}case 2:{let Kt=yt.parseString(ue,ve+1,Pe-1);dt=Kt.data,ke+=Kt.size;break}case 3:{dt={};let Kt=0;for((xe.getUint32(Pe-4,!$e)&16777215)===9&&(Kt=3);ke<Pe-4;){let _t=yt.parseObject(ue,ve+ke,Pe-ke-Kt);if(_t.objectEnd)break;dt[_t.data.name]=_t.data.value,ke+=_t.size}ke<=Pe-3&&(xe.getUint32(ke-1,!$e)&16777215)===9&&(ke+=3);break}case 8:{dt={},ke+=4;let Kt=0;for((xe.getUint32(Pe-4,!$e)&16777215)===9&&(Kt=3);ke<Pe-8;){let _t=yt.parseVariable(ue,ve+ke,Pe-ke-Kt);if(_t.objectEnd)break;dt[_t.data.name]=_t.data.value,ke+=_t.size}ke<=Pe-3&&(xe.getUint32(ke-1,!$e)&16777215)===9&&(ke+=3);break}case 9:dt=void 0,ke=1,tn=!0;break;case 10:{dt=[];let Kt=xe.getUint32(1,!$e);ke+=4;for(let _t=0;_t<Kt;_t++){let ft=yt.parseValue(ue,ve+ke,Pe-ke);dt.push(ft.data),ke+=ft.size}break}case 11:{let Kt=yt.parseDate(ue,ve+1,Pe-1);dt=Kt.data,ke+=Kt.size;break}case 12:{let Kt=yt.parseString(ue,ve+1,Pe-1);dt=Kt.data,ke+=Kt.size;break}default:ke=Pe,fe.w("AMF","Unsupported AMF value type "+tt)}}catch(Kt){fe.e("AMF",Kt.toString())}return{data:dt,size:ke,objectEnd:tn}}}var Lt=yt;class on{constructor(ue){this.TAG="ExpGolomb",this._buffer=ue,this._buffer_index=0,this._total_bytes=ue.byteLength,this._total_bits=ue.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let ue=this._total_bytes-this._buffer_index;if(ue<=0)throw new me("ExpGolomb: _fillCurrentWord() but no bytes available");let ve=Math.min(4,ue),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ve)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=ve,this._current_word_bits_left=ve*8}readBits(ue){if(ue>32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(ue<=this._current_word_bits_left){let tt=this._current_word>>>32-ue;return this._current_word<<=ue,this._current_word_bits_left-=ue,tt}let ve=this._current_word_bits_left?this._current_word:0;ve=ve>>>32-this._current_word_bits_left;let Pe=ue-this._current_word_bits_left;this._fillCurrentWord();let xe=Math.min(Pe,this._current_word_bits_left),ke=this._current_word>>>32-xe;return this._current_word<<=xe,this._current_word_bits_left-=xe,ve=ve<<xe|ke,ve}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let ue;for(ue=0;ue<this._current_word_bits_left;ue++)if(this._current_word&2147483648>>>ue)return this._current_word<<=ue,this._current_word_bits_left-=ue,ue;return this._fillCurrentWord(),ue+this._skipLeadingZero()}readUEG(){let ue=this._skipLeadingZero();return this.readBits(ue+1)-1}readSEG(){let ue=this.readUEG();return ue&1?ue+1>>>1:-1*(ue>>>1)}}var $t=on;class st{static _ebsp2rbsp(ue){let ve=ue,Pe=ve.byteLength,xe=new Uint8Array(Pe),ke=0;for(let tt=0;tt<Pe;tt++)tt>=2&&ve[tt]===3&&ve[tt-1]===0&&ve[tt-2]===0||(xe[ke]=ve[tt],ke++);return new Uint8Array(xe.buffer,0,ke)}static parseSPS(ue){let ve=st._ebsp2rbsp(ue),Pe=new $t(ve);Pe.readByte();let xe=Pe.readByte();Pe.readByte();let ke=Pe.readByte();Pe.readUEG();let tt=st.getProfileString(xe),dt=st.getLevelString(ke),tn=1,Kt=420,_t=[0,420,422,444],ft=8;if((xe===100||xe===110||xe===122||xe===244||xe===44||xe===83||xe===86||xe===118||xe===128||xe===138||xe===144)&&(tn=Pe.readUEG(),tn===3&&Pe.readBits(1),tn<=3&&(Kt=_t[tn]),ft=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Nn=tn!==3?8:12;for(let pn=0;pn<Nn;pn++)Pe.readBool()&&(pn<6?st._skipScalingList(Pe,16):st._skipScalingList(Pe,64))}Pe.readUEG();let Ft=Pe.readUEG();if(Ft===0)Pe.readUEG();else if(Ft===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let Nn=Pe.readUEG();for(let pn=0;pn<Nn;pn++)Pe.readSEG()}let gt=Pe.readUEG();Pe.readBits(1);let Gt=Pe.readUEG(),Zt=Pe.readUEG(),Tt=Pe.readBits(1);Tt===0&&Pe.readBits(1),Pe.readBits(1);let kt=0,Xt=0,dn=0,xn=0;Pe.readBool()&&(kt=Pe.readUEG(),Xt=Pe.readUEG(),dn=Pe.readUEG(),xn=Pe.readUEG());let Qn=1,mn=1,An=0,ur=!0,rr=0,or=0;if(Pe.readBool()){if(Pe.readBool()){let Nn=Pe.readByte(),pn=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],cr=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Nn>0&&Nn<16?(Qn=pn[Nn-1],mn=cr[Nn-1]):Nn===255&&(Qn=Pe.readByte()<<8|Pe.readByte(),mn=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 Nn=Pe.readBits(32),pn=Pe.readBits(32);ur=Pe.readBool(),rr=pn,or=Nn*2,An=rr/or}}let io=1;(Qn!==1||mn!==1)&&(io=Qn/mn);let wr=0,Tr=0;if(tn===0)wr=1,Tr=2-Tt;else{let Nn=tn===3?1:2,pn=tn===1?2:1;wr=Nn,Tr=pn*(2-Tt)}let kr=(Gt+1)*16,un=(2-Tt)*((Zt+1)*16);kr-=(kt+Xt)*wr,un-=(dn+xn)*Tr;let Sn=Math.ceil(kr*io);return Pe.destroy(),Pe=null,{profile_string:tt,level_string:dt,bit_depth:ft,ref_frames:gt,chroma_format:Kt,chroma_format_string:st.getChromaFormatString(Kt),frame_rate:{fixed:ur,fps:An,fps_den:or,fps_num:rr},sar_ratio:{width:Qn,height:mn},codec_size:{width:kr,height:un},present_size:{width:Sn,height:un}}}static _skipScalingList(ue,ve){let Pe=8,xe=8,ke=0;for(let tt=0;tt<ve;tt++)xe!==0&&(ke=ue.readSEG(),xe=(Pe+ke+256)%256),Pe=xe===0?Pe:xe}static getProfileString(ue){switch(ue){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(ue){return(ue/10).toFixed(1)}static getChromaFormatString(ue){switch(ue){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var lt=st,Ne={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function et(Ut){return Ut>>>8&255|(Ut&255)<<8}function xt(Ut){return(Ut&4278190080)>>>24|(Ut&16711680)>>>8|(Ut&65280)<<8|(Ut&255)<<24}function Ie(Ut,ue){return Ut[ue]<<24|Ut[ue+1]<<16|Ut[ue+2]<<8|Ut[ue+3]}class Re{constructor(ue,ve){this.TAG="FLVDemuxer",this._config=ve,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ue.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ue.hasAudioTrack,this._hasVideo=ue.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(ue){let ve=new Uint8Array(ue),Pe={match:!1};if(ve[0]!==70||ve[1]!==76||ve[2]!==86||ve[3]!==1)return Pe;let xe=(ve[4]&4)>>>2!==0,ke=(ve[4]&1)!==0,tt=Ie(ve,5);return tt<9?Pe:{match:!0,consumed:tt,dataOffset:tt,hasAudioTrack:xe,hasVideoTrack:ke}}bindDataSource(ue){return ue.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ue){this._onTrackMetadata=ue}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ue){this._onMediaInfo=ue}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ue){this._onMetaDataArrived=ue}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ue){this._onScriptDataArrived=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ue){this._onDataAvailable=ue}get timestampBase(){return this._timestampBase}set timestampBase(ue){this._timestampBase=ue}get overridedDuration(){return this._duration}set overridedDuration(ue){this._durationOverrided=!0,this._duration=ue,this._mediaInfo.duration=ue}set overridedHasAudio(ue){this._hasAudioFlagOverrided=!0,this._hasAudio=ue,this._mediaInfo.hasAudio=ue}set overridedHasVideo(ue){this._hasVideoFlagOverrided=!0,this._hasVideo=ue,this._mediaInfo.hasVideo=ue}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(ue,ve){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new me("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,xe=this._littleEndian;if(ve===0)if(ue.byteLength>13)Pe=Re.probe(ue).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ve+Pe!==this._dataOffset&&fe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ue,Pe).getUint32(0,!xe)!==0&&fe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<ue.byteLength;){this._dispatch=!0;let ke=new DataView(ue,Pe);if(Pe+11+4>ue.byteLength)break;let tt=ke.getUint8(0),dt=ke.getUint32(0,!xe)&16777215;if(Pe+11+dt+4>ue.byteLength)break;if(tt!==8&&tt!==9&&tt!==18){fe.w(this.TAG,`Unsupported tag type ${tt}, skipped`),Pe+=11+dt+4;continue}let tn=ke.getUint8(4),Kt=ke.getUint8(5),_t=ke.getUint8(6),ft=ke.getUint8(7),Ft=_t|Kt<<8|tn<<16|ft<<24;(ke.getUint32(7,!xe)&16777215)!==0&&fe.w(this.TAG,"Meet tag which has StreamID != 0!");let Gt=Pe+11;switch(tt){case 8:this._parseAudioData(ue,Gt,dt,Ft);break;case 9:this._parseVideoData(ue,Gt,dt,Ft,ve+Pe);break;case 18:this._parseScriptData(ue,Gt,dt);break}let Zt=ke.getUint32(11+dt,!xe);Zt!==11+dt&&fe.w(this.TAG,`Invalid PrevTagSize ${Zt}`),Pe+=11+dt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ue,ve,Pe){let xe=Lt.parseScriptData(ue,ve,Pe);if(xe.hasOwnProperty("onMetaData")){if(xe.onMetaData==null||typeof xe.onMetaData!="object"){fe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&fe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=xe;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 tt=Math.floor(ke.duration*this._timescale);this._duration=tt,this._mediaInfo.duration=tt}}else this._mediaInfo.duration=0;if(typeof ke.framerate=="number"){let tt=Math.floor(ke.framerate*1e3);if(tt>0){let dt=tt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=dt,this._referenceFrameRate.fps_num=tt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=dt}}if(typeof ke.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let tt=ke.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(tt),ke.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ke,fe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(xe).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},xe))}_parseKeyframesIndex(ue){let ve=[],Pe=[];for(let xe=1;xe<ue.times.length;xe++){let ke=this._timestampBase+Math.floor(ue.times[xe]*1e3);ve.push(ke),Pe.push(ue.filepositions[xe])}return{times:ve,filepositions:Pe}}_parseAudioData(ue,ve,Pe,xe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let ke=this._littleEndian,dt=new DataView(ue,ve,Pe).getUint8(0),tn=dt>>>4;if(tn!==2&&tn!==10){this._onError(Ne.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+tn);return}let Kt=0,_t=(dt&12)>>>2;if(_t>=0&&_t<=4)Kt=this._flvSoundRateTable[_t];else{this._onError(Ne.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+_t);return}let ft=(dt&2)>>>1,Ft=dt&1,gt=this._audioMetadata,Gt=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=Gt.id,gt.timescale=this._timescale,gt.duration=this._duration,gt.audioSampleRate=Kt,gt.channelCount=Ft===0?1:2),tn===10){let Zt=this._parseAACAudioData(ue,ve+1,Pe-1);if(Zt==null)return;if(Zt.packetType===0){gt.config&&fe.w(this.TAG,"Found another AudioSpecificConfig!");let Tt=Zt.data;gt.audioSampleRate=Tt.samplingRate,gt.channelCount=Tt.channelCount,gt.codec=Tt.codec,gt.originalCodec=Tt.originalCodec,gt.config=Tt.config,gt.refSampleDuration=1024/gt.audioSampleRate*gt.timescale,fe.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(Zt.packetType===1){let Tt=this._timestampBase+xe,kt={unit:Zt.data,length:Zt.data.byteLength,dts:Tt,pts:Tt};Gt.samples.push(kt),Gt.length+=Zt.data.length}else fe.e(this.TAG,`Flv: Unsupported AAC data type ${Zt.packetType}`)}else if(tn===2){if(!gt.codec){let Xt=this._parseMP3AudioData(ue,ve+1,Pe-1,!0);if(Xt==null)return;gt.audioSampleRate=Xt.samplingRate,gt.channelCount=Xt.channelCount,gt.codec=Xt.codec,gt.originalCodec=Xt.originalCodec,gt.refSampleDuration=1152/gt.audioSampleRate*gt.timescale,fe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",gt);let dn=this._mediaInfo;dn.audioCodec=gt.codec,dn.audioSampleRate=gt.audioSampleRate,dn.audioChannelCount=gt.channelCount,dn.audioDataRate=Xt.bitRate,dn.hasVideo?dn.videoCodec!=null&&(dn.mimeType='video/x-flv; codecs="'+dn.videoCodec+","+dn.audioCodec+'"'):dn.mimeType='video/x-flv; codecs="'+dn.audioCodec+'"',dn.isComplete()&&this._onMediaInfo(dn)}let Zt=this._parseMP3AudioData(ue,ve+1,Pe-1,!1);if(Zt==null)return;let Tt=this._timestampBase+xe,kt={unit:Zt,length:Zt.byteLength,dts:Tt,pts:Tt};Gt.samples.push(kt),Gt.length+=Zt.length}}_parseAACAudioData(ue,ve,Pe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let xe={},ke=new Uint8Array(ue,ve,Pe);return xe.packetType=ke[0],ke[0]===0?xe.data=this._parseAACAudioSpecificConfig(ue,ve+1,Pe-1):xe.data=ke.subarray(1),xe}_parseAACAudioSpecificConfig(ue,ve,Pe){let xe=new Uint8Array(ue,ve,Pe),ke=null,tt=0,dt=0,tn=null,Kt=0,_t=null;if(tt=dt=xe[0]>>>3,Kt=(xe[0]&7)<<1|xe[1]>>>7,Kt<0||Kt>=this._mpegSamplingRates.length){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let ft=this._mpegSamplingRates[Kt],Ft=(xe[1]&120)>>>3;if(Ft<0||Ft>=8){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}tt===5&&(_t=(xe[1]&7)<<1|xe[2]>>>7,tn=(xe[2]&124)>>>2);let gt=self.navigator.userAgent.toLowerCase();return gt.indexOf("firefox")!==-1?Kt>=6?(tt=5,ke=new Array(4),_t=Kt-3):(tt=2,ke=new Array(2),_t=Kt):gt.indexOf("android")!==-1?(tt=2,ke=new Array(2),_t=Kt):(tt=5,_t=Kt,ke=new Array(4),Kt>=6?_t=Kt-3:Ft===1&&(tt=2,ke=new Array(2),_t=Kt)),ke[0]=tt<<3,ke[0]|=(Kt&15)>>>1,ke[1]=(Kt&15)<<7,ke[1]|=(Ft&15)<<3,tt===5&&(ke[1]|=(_t&15)>>>1,ke[2]=(_t&1)<<7,ke[2]|=8,ke[3]=0),{config:ke,samplingRate:ft,channelCount:Ft,codec:"mp4a.40."+tt,originalCodec:"mp4a.40."+dt}}_parseMP3AudioData(ue,ve,Pe,xe){if(Pe<4){fe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let ke=this._littleEndian,tt=new Uint8Array(ue,ve,Pe),dt=null;if(xe){if(tt[0]!==255)return;let tn=tt[1]>>>3&3,Kt=(tt[1]&6)>>1,_t=(tt[2]&240)>>>4,ft=(tt[2]&12)>>>2,gt=(tt[3]>>>6&3)!==3?2:1,Gt=0,Zt=0,Tt=34,kt="mp3";switch(tn){case 0:Gt=this._mpegAudioV25SampleRateTable[ft];break;case 2:Gt=this._mpegAudioV20SampleRateTable[ft];break;case 3:Gt=this._mpegAudioV10SampleRateTable[ft];break}switch(Kt){case 1:Tt=34,_t<this._mpegAudioL3BitRateTable.length&&(Zt=this._mpegAudioL3BitRateTable[_t]);break;case 2:Tt=33,_t<this._mpegAudioL2BitRateTable.length&&(Zt=this._mpegAudioL2BitRateTable[_t]);break;case 3:Tt=32,_t<this._mpegAudioL1BitRateTable.length&&(Zt=this._mpegAudioL1BitRateTable[_t]);break}dt={bitRate:Zt,samplingRate:Gt,channelCount:gt,codec:kt,originalCodec:kt}}else dt=tt;return dt}_parseVideoData(ue,ve,Pe,xe,ke){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let tt=new Uint8Array(ue,ve,Pe)[0],dt=(tt&240)>>>4,tn=tt&15;if(tn!==7){this._onError(Ne.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${tn}`);return}this._parseAVCVideoPacket(ue,ve+1,Pe-1,xe,ke,dt)}_parseAVCVideoPacket(ue,ve,Pe,xe,ke,tt){if(Pe<4){fe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let dt=this._littleEndian,tn=new DataView(ue,ve,Pe),Kt=tn.getUint8(0),ft=(tn.getUint32(0,!dt)&16777215)<<8>>8;if(Kt===0)this._parseAVCDecoderConfigurationRecord(ue,ve+4,Pe-4);else if(Kt===1)this._parseAVCVideoData(ue,ve+4,Pe-4,xe,ke,tt,ft);else if(Kt!==2){this._onError(Ne.FORMAT_ERROR,`Flv: Invalid video packet type ${Kt}`);return}}_parseAVCDecoderConfigurationRecord(ue,ve,Pe){if(Pe<7){fe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let xe=this._videoMetadata,ke=this._videoTrack,tt=this._littleEndian,dt=new DataView(ue,ve,Pe);xe?typeof xe.avcc!="undefined"&&fe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),xe=this._videoMetadata={},xe.type="video",xe.id=ke.id,xe.timescale=this._timescale,xe.duration=this._duration);let tn=dt.getUint8(0),Kt=dt.getUint8(1),_t=dt.getUint8(2),ft=dt.getUint8(3);if(tn!==1||Kt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(dt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ne.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Ft=dt.getUint8(5)&31;if(Ft===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Ft>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Ft}`);let gt=6;for(let Zt=0;Zt<Ft;Zt++){let Tt=dt.getUint16(gt,!tt);if(gt+=2,Tt===0)continue;let kt=new Uint8Array(ue,ve+gt,Tt);gt+=Tt;let Xt=lt.parseSPS(kt);if(Zt!==0)continue;xe.codecWidth=Xt.codec_size.width,xe.codecHeight=Xt.codec_size.height,xe.presentWidth=Xt.present_size.width,xe.presentHeight=Xt.present_size.height,xe.profile=Xt.profile_string,xe.level=Xt.level_string,xe.bitDepth=Xt.bit_depth,xe.chromaFormat=Xt.chroma_format,xe.sarRatio=Xt.sar_ratio,xe.frameRate=Xt.frame_rate,(Xt.frame_rate.fixed===!1||Xt.frame_rate.fps_num===0||Xt.frame_rate.fps_den===0)&&(xe.frameRate=this._referenceFrameRate);let dn=xe.frameRate.fps_den,xn=xe.frameRate.fps_num;xe.refSampleDuration=xe.timescale*(dn/xn);let Fn=kt.subarray(1,4),Qn="avc1.";for(let An=0;An<3;An++){let ur=Fn[An].toString(16);ur.length<2&&(ur="0"+ur),Qn+=ur}xe.codec=Qn;let mn=this._mediaInfo;mn.width=xe.codecWidth,mn.height=xe.codecHeight,mn.fps=xe.frameRate.fps,mn.profile=xe.profile,mn.level=xe.level,mn.refFrames=Xt.ref_frames,mn.chromaFormat=Xt.chroma_format_string,mn.sarNum=xe.sarRatio.width,mn.sarDen=xe.sarRatio.height,mn.videoCodec=Qn,mn.hasAudio?mn.audioCodec!=null&&(mn.mimeType='video/x-flv; codecs="'+mn.videoCodec+","+mn.audioCodec+'"'):mn.mimeType='video/x-flv; codecs="'+mn.videoCodec+'"',mn.isComplete()&&this._onMediaInfo(mn)}let Gt=dt.getUint8(gt);if(Gt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Gt>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Gt}`);gt++;for(let Zt=0;Zt<Gt;Zt++){let Tt=dt.getUint16(gt,!tt);gt+=2,Tt!==0&&(gt+=Tt)}xe.avcc=new Uint8Array(Pe),xe.avcc.set(new Uint8Array(ue,ve,Pe),0),fe.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",xe)}_parseAVCVideoData(ue,ve,Pe,xe,ke,tt,dt){let tn=this._littleEndian,Kt=new DataView(ue,ve,Pe),_t=[],ft=0,Ft=0;const gt=this._naluLengthSize;let Gt=this._timestampBase+xe,Zt=tt===1;for(;Ft<Pe;){if(Ft+4>=Pe){fe.w(this.TAG,`Malformed Nalu near timestamp ${Gt}, offset = ${Ft}, dataSize = ${Pe}`);break}let Tt=Kt.getUint32(Ft,!tn);if(gt===3&&(Tt>>>=8),Tt>Pe-gt){fe.w(this.TAG,`Malformed Nalus near timestamp ${Gt}, NaluSize > DataSize!`);return}let kt=Kt.getUint8(Ft+gt)&31;kt===5&&(Zt=!0);let Xt=new Uint8Array(ue,ve+Ft,gt+Tt),dn={type:kt,data:Xt};_t.push(dn),ft+=Xt.byteLength,Ft+=gt+Tt}if(_t.length){let Tt=this._videoTrack,kt={units:_t,length:ft,isKeyframe:Zt,dts:Gt,cts:dt,pts:Gt+dt};Zt&&(kt.fileposition=ke),Tt.samples.push(kt),Tt.length+=ft}}}var Ze=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 ve in Be.types)Be.types.hasOwnProperty(ve)&&(Be.types[ve]=[ve.charCodeAt(0),ve.charCodeAt(1),ve.charCodeAt(2),ve.charCodeAt(3)]);let ue=Be.constants={};ue.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ue.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ue.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ue.STSC=ue.STCO=ue.STTS,ue.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ue.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]),ue.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]),ue.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ue.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ue.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ue){let ve=8,Pe=null,xe=Array.prototype.slice.call(arguments,1),ke=xe.length;for(let dt=0;dt<ke;dt++)ve+=xe[dt].byteLength;Pe=new Uint8Array(ve),Pe[0]=ve>>>24&255,Pe[1]=ve>>>16&255,Pe[2]=ve>>>8&255,Pe[3]=ve&255,Pe.set(ue,4);let tt=8;for(let dt=0;dt<ke;dt++)Pe.set(xe[dt],tt),tt+=xe[dt].byteLength;return Pe}static generateInitSegment(ue){let ve=Be.box(Be.types.ftyp,Be.constants.FTYP),Pe=Be.moov(ue),xe=new Uint8Array(ve.byteLength+Pe.byteLength);return xe.set(ve,0),xe.set(Pe,ve.byteLength),xe}static moov(ue){let ve=Be.mvhd(ue.timescale,ue.duration),Pe=Be.trak(ue),xe=Be.mvex(ue);return Be.box(Be.types.moov,ve,Pe,xe)}static mvhd(ue,ve){return Be.box(Be.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&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(ue){return Be.box(Be.types.trak,Be.tkhd(ue),Be.mdia(ue))}static tkhd(ue){let ve=ue.id,Pe=ue.duration,xe=ue.presentWidth,ke=ue.presentHeight;return Be.box(Be.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&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,xe>>>8&255,xe&255,0,0,ke>>>8&255,ke&255,0,0]))}static mdia(ue){return Be.box(Be.types.mdia,Be.mdhd(ue),Be.hdlr(ue),Be.minf(ue))}static mdhd(ue){let ve=ue.timescale,Pe=ue.duration;return Be.box(Be.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(ue){let ve=null;return ue.type==="audio"?ve=Be.constants.HDLR_AUDIO:ve=Be.constants.HDLR_VIDEO,Be.box(Be.types.hdlr,ve)}static minf(ue){let ve=null;return ue.type==="audio"?ve=Be.box(Be.types.smhd,Be.constants.SMHD):ve=Be.box(Be.types.vmhd,Be.constants.VMHD),Be.box(Be.types.minf,ve,Be.dinf(),Be.stbl(ue))}static dinf(){return Be.box(Be.types.dinf,Be.box(Be.types.dref,Be.constants.DREF))}static stbl(ue){return Be.box(Be.types.stbl,Be.stsd(ue),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(ue){return ue.type==="audio"?ue.codec==="mp3"?Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.mp3(ue)):Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.mp4a(ue)):Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.avc1(ue))}static mp3(ue){let ve=ue.channelCount,Pe=ue.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ve,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Be.box(Be.types[".mp3"],xe)}static mp4a(ue){let ve=ue.channelCount,Pe=ue.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ve,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Be.box(Be.types.mp4a,xe,Be.esds(ue))}static esds(ue){let ve=ue.config||[],Pe=ve.length,xe=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(ve).concat([6,1,2]));return Be.box(Be.types.esds,xe)}static avc1(ue){let ve=ue.avcc,Pe=ue.codecWidth,xe=ue.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,xe>>>8&255,xe&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,ve))}static mvex(ue){return Be.box(Be.types.mvex,Be.trex(ue))}static trex(ue){let ve=ue.id,Pe=new Uint8Array([0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&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(ue,ve){return Be.box(Be.types.moof,Be.mfhd(ue.sequenceNumber),Be.traf(ue,ve))}static mfhd(ue){let ve=new Uint8Array([0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255]);return Be.box(Be.types.mfhd,ve)}static traf(ue,ve){let Pe=ue.id,xe=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,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255])),tt=Be.sdtp(ue),dt=Be.trun(ue,tt.byteLength+16+16+8+16+8+8);return Be.box(Be.types.traf,xe,ke,dt,tt)}static sdtp(ue){let ve=ue.samples||[],Pe=ve.length,xe=new Uint8Array(4+Pe);for(let ke=0;ke<Pe;ke++){let tt=ve[ke].flags;xe[ke+4]=tt.isLeading<<6|tt.dependsOn<<4|tt.isDependedOn<<2|tt.hasRedundancy}return Be.box(Be.types.sdtp,xe)}static trun(ue,ve){let Pe=ue.samples||[],xe=Pe.length,ke=12+16*xe,tt=new Uint8Array(ke);ve+=8+ke,tt.set([0,0,15,1,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255],0);for(let dt=0;dt<xe;dt++){let tn=Pe[dt].duration,Kt=Pe[dt].size,_t=Pe[dt].flags,ft=Pe[dt].cts;tt.set([tn>>>24&255,tn>>>16&255,tn>>>8&255,tn&255,Kt>>>24&255,Kt>>>16&255,Kt>>>8&255,Kt&255,_t.isLeading<<2|_t.dependsOn,_t.isDependedOn<<6|_t.hasRedundancy<<4|_t.isNonSync,0,0,ft>>>24&255,ft>>>16&255,ft>>>8&255,ft&255],12+16*dt)}return Be.box(Be.types.trun,tt)}static mdat(ue){return Be.box(Be.types.mdat,ue)}}Be.init();var ze=Be;class ot{static getSilentFrame(ue,ve){if(ue==="mp4a.40.2"){if(ve===1)return new Uint8Array([0,200,0,128,35,128]);if(ve===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ve===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ve===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ve===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(ve===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(ve===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(ve===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(ve===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 It=ot;class Mt{constructor(ue,ve,Pe,xe,ke){this.dts=ue,this.pts=ve,this.duration=Pe,this.originalDts=xe,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(ue){ue.isSyncPoint=!0,this.syncPoints.push(ue)}}class Dt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ue){let ve=this._list;ue.length!==0&&(ve.length>0&&ue[0].originalDts<ve[ve.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ve,ue))}getLastSyncPointBeforeDts(ue){if(this._list.length==0)return null;let ve=this._list,Pe=0,xe=ve.length-1,ke=0,tt=0,dt=xe;for(ue<ve[0].dts&&(Pe=0,tt=dt+1);tt<=dt;)if(ke=tt+Math.floor((dt-tt)/2),ke===xe||ue>=ve[ke].dts&&ue<ve[ke+1].dts){Pe=ke;break}else ve[ke].dts<ue?tt=ke+1:dt=ke-1;return this._list[Pe]}}class Ht{constructor(ue){this._type=ue,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(ue){let ve=this._list;if(ve.length===0)return-2;let Pe=ve.length-1,xe=0,ke=0,tt=Pe,dt=0;if(ue<ve[0].originalBeginDts)return dt=-1,dt;for(;ke<=tt;)if(xe=ke+Math.floor((tt-ke)/2),xe===Pe||ue>ve[xe].lastSample.originalDts&&ue<ve[xe+1].originalBeginDts){dt=xe;break}else ve[xe].originalBeginDts<ue?ke=xe+1:tt=xe-1;return dt}_searchNearestSegmentAfter(ue){return this._searchNearestSegmentBefore(ue)+1}append(ue){let ve=this._list,Pe=ue,xe=this._lastAppendLocation,ke=0;xe!==-1&&xe<ve.length&&Pe.originalBeginDts>=ve[xe].lastSample.originalDts&&(xe===ve.length-1||xe<ve.length-1&&Pe.originalBeginDts<ve[xe+1].originalBeginDts)?ke=xe+1:ve.length>0&&(ke=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=ke,this._list.splice(ke,0,Pe)}getLastSegmentBefore(ue){let ve=this._searchNearestSegmentBefore(ue);return ve>=0?this._list[ve]:null}getLastSampleBefore(ue){let ve=this.getLastSegmentBefore(ue);return ve!=null?ve.lastSample:null}getLastSyncPointBefore(ue){let ve=this._searchNearestSegmentBefore(ue),Pe=this._list[ve].syncPoints;for(;Pe.length===0&&ve>0;)ve--,Pe=this._list[ve].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class bt{constructor(ue){this.TAG="MP4Remuxer",this._config=ue,this._isLive=ue.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 Ht("audio"),this._videoSegmentInfoList=new Ht("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(ue){return ue.onDataAvailable=this.remux.bind(this),ue.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ue){this._onInitSegment=ue}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ue){this._onMediaSegment=ue}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ue){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ue,ve){if(!this._onMediaSegment)throw new me("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ue,ve),this._remuxVideo(ve),this._remuxAudio(ue)}_onTrackMetadataReceived(ue,ve){let Pe=null,xe="mp4",ke=ve.codec;if(ue==="audio")this._audioMeta=ve,ve.codec==="mp3"&&this._mp3UseMpegAudio?(xe="mpeg",ke="",Pe=new Uint8Array):Pe=ze.generateInitSegment(ve);else if(ue==="video")this._videoMeta=ve,Pe=ze.generateInitSegment(ve);else return;if(!this._onInitSegment)throw new me("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ue,{type:ue,data:Pe.buffer,codec:ke,container:`${ue}/${xe}`,mediaDuration:ve.duration})}_calculateDtsBase(ue,ve){this._dtsBaseInited||(ue.samples&&ue.samples.length&&(this._audioDtsBase=ue.samples[0].dts),ve.samples&&ve.samples.length&&(this._videoDtsBase=ve.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ue=this._videoStashedLastSample,ve=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ue!=null&&(Pe.samples.push(ue),Pe.length=ue.length);let xe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ve!=null&&(xe.samples.push(ve),xe.length=ve.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(xe,!0)}_remuxAudio(ue,ve){if(this._audioMeta==null)return;let Pe=ue,xe=Pe.samples,ke,tt=-1,dt=-1,tn=-1,Kt=this._audioMeta.refSampleDuration,_t=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,ft=this._dtsBaseInited&&this._audioNextDts===void 0,Ft=!1;if(!xe||xe.length===0||xe.length===1&&!ve)return;let gt=0,Gt=null,Zt=0;_t?(gt=0,Zt=Pe.length):(gt=8,Zt=8+Pe.length);let Tt=null;if(xe.length>1&&(Tt=xe.pop(),Zt-=Tt.length),this._audioStashedLastSample!=null){let mn=this._audioStashedLastSample;this._audioStashedLastSample=null,xe.unshift(mn),Zt+=mn.length}Tt!=null&&(this._audioStashedLastSample=Tt);let kt=xe[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"&&(Ft=!0);else{let mn=this._audioSegmentInfoList.getLastSampleBefore(kt);if(mn!=null){let An=kt-(mn.originalDts+mn.duration);An<=3&&(An=0);let ur=mn.dts+mn.duration+An;ke=kt-ur}else ke=0}if(Ft){let mn=kt-ke,An=this._videoSegmentInfoList.getLastSegmentBefore(kt);if(An!=null&&An.beginDts<mn){let ur=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(ur){let rr=An.beginDts,or=mn-An.beginDts;fe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${rr}, duration: ${or}`),xe.unshift({unit:ur,dts:rr,pts:rr}),Zt+=ur.byteLength}}else Ft=!1}let Xt=[];for(let mn=0;mn<xe.length;mn++){let An=xe[mn],ur=An.unit,rr=An.dts-this._dtsBase,or=rr-ke;tt===-1&&(tt=or);let Wt=0;mn!==xe.length-1?Wt=xe[mn+1].dts-this._dtsBase-ke-or:Tt!=null?Wt=Tt.dts-this._dtsBase-ke-or:Xt.length>=1?Wt=Xt[Xt.length-1].duration:Wt=Math.floor(Kt);let io=!1,wr=null;if(Wt>Kt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){io=!0;let Tr=Math.abs(Wt-Kt),kr=Math.ceil(Tr/Kt),un=or+Kt;fe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${or+Wt} ms, expected: ${or+Math.round(Kt)} ms, delta: ${Math.round(Tr)} ms, generate: ${kr} frames`);let Sn=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Sn==null&&(fe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Sn=ur),wr=[];for(let pn=0;pn<kr;pn++){let cr=Math.round(un);if(wr.length>0){let Ar=wr[wr.length-1];Ar.duration=cr-Ar.dts}let fr={dts:cr,pts:cr,cts:0,unit:Sn,size:Sn.byteLength,duration:0,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};wr.push(fr),Zt+=fr.size,un+=Kt}let Nn=wr[wr.length-1];Nn.duration=or+Wt-Nn.dts,Wt=Math.round(Kt)}Xt.push({dts:or,pts:or,cts:0,unit:An.unit,size:An.unit.byteLength,duration:Wt,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),io&&Xt.push.apply(Xt,wr)}_t?Gt=new Uint8Array(Zt):(Gt=new Uint8Array(Zt),Gt[0]=Zt>>>24&255,Gt[1]=Zt>>>16&255,Gt[2]=Zt>>>8&255,Gt[3]=Zt&255,Gt.set(ze.types.mdat,4));for(let mn=0;mn<Xt.length;mn++){let An=Xt[mn].unit;Gt.set(An,gt),gt+=An.byteLength}let dn=Xt[Xt.length-1];dt=dn.dts+dn.duration,this._audioNextDts=dt;let xn=new jt;xn.beginDts=tt,xn.endDts=dt,xn.beginPts=tt,xn.endPts=dt,xn.originalBeginDts=Xt[0].originalDts,xn.originalEndDts=dn.originalDts+dn.duration,xn.firstSample=new Mt(Xt[0].dts,Xt[0].pts,Xt[0].duration,Xt[0].originalDts,!1),xn.lastSample=new Mt(dn.dts,dn.pts,dn.duration,dn.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(xn),Pe.samples=Xt,Pe.sequenceNumber++;let Fn=null;_t?Fn=new Uint8Array:Fn=ze.moof(Pe,tt),Pe.samples=[],Pe.length=0;let Qn={type:"audio",data:this._mergeBoxes(Fn,Gt).buffer,sampleCount:Xt.length,info:xn};_t&&ft&&(Qn.timestampOffset=tt),this._onMediaSegment("audio",Qn)}_remuxVideo(ue,ve){if(this._videoMeta==null)return;let Pe=ue,xe=Pe.samples,ke,tt=-1,dt=-1,tn=-1,Kt=-1;if(!xe||xe.length===0||xe.length===1&&!ve)return;let _t=8,ft=null,Ft=8+ue.length,gt=null;if(xe.length>1&&(gt=xe.pop(),Ft-=gt.length),this._videoStashedLastSample!=null){let dn=this._videoStashedLastSample;this._videoStashedLastSample=null,xe.unshift(dn),Ft+=dn.length}gt!=null&&(this._videoStashedLastSample=gt);let Gt=xe[0].dts-this._dtsBase;if(this._videoNextDts)ke=Gt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())ke=0;else{let dn=this._videoSegmentInfoList.getLastSampleBefore(Gt);if(dn!=null){let xn=Gt-(dn.originalDts+dn.duration);xn<=3&&(xn=0);let Fn=dn.dts+dn.duration+xn;ke=Gt-Fn}else ke=0}let Zt=new jt,Tt=[];for(let dn=0;dn<xe.length;dn++){let xn=xe[dn],Fn=xn.dts-this._dtsBase,Qn=xn.isKeyframe,mn=Fn-ke,An=xn.cts,ur=mn+An;tt===-1&&(tt=mn,tn=ur);let rr=0;if(dn!==xe.length-1?rr=xe[dn+1].dts-this._dtsBase-ke-mn:gt!=null?rr=gt.dts-this._dtsBase-ke-mn:Tt.length>=1?rr=Tt[Tt.length-1].duration:rr=Math.floor(this._videoMeta.refSampleDuration),Qn){let or=new Mt(mn,ur,rr,xn.dts,!0);or.fileposition=xn.fileposition,Zt.appendSyncPoint(or)}Tt.push({dts:mn,pts:ur,cts:An,units:xn.units,size:xn.length,isKeyframe:Qn,duration:rr,originalDts:Fn,flags:{isLeading:0,dependsOn:Qn?2:1,isDependedOn:Qn?1:0,hasRedundancy:0,isNonSync:Qn?0:1}})}ft=new Uint8Array(Ft),ft[0]=Ft>>>24&255,ft[1]=Ft>>>16&255,ft[2]=Ft>>>8&255,ft[3]=Ft&255,ft.set(ze.types.mdat,4);for(let dn=0;dn<Tt.length;dn++){let xn=Tt[dn].units;for(;xn.length;){let Qn=xn.shift().data;ft.set(Qn,_t),_t+=Qn.byteLength}}let kt=Tt[Tt.length-1];if(dt=kt.dts+kt.duration,Kt=kt.pts+kt.duration,this._videoNextDts=dt,Zt.beginDts=tt,Zt.endDts=dt,Zt.beginPts=tn,Zt.endPts=Kt,Zt.originalBeginDts=Tt[0].originalDts,Zt.originalEndDts=kt.originalDts+kt.duration,Zt.firstSample=new Mt(Tt[0].dts,Tt[0].pts,Tt[0].duration,Tt[0].originalDts,Tt[0].isKeyframe),Zt.lastSample=new Mt(kt.dts,kt.pts,kt.duration,kt.originalDts,kt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Zt),Pe.samples=Tt,Pe.sequenceNumber++,this._forceFirstIDR){let dn=Tt[0].flags;dn.dependsOn=2,dn.isNonSync=0}let Xt=ze.moof(Pe,tt);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Xt,ft).buffer,sampleCount:Tt.length,info:Zt})}_mergeBoxes(ue,ve){let Pe=new Uint8Array(ue.byteLength+ve.byteLength);return Pe.set(ue,0),Pe.set(ve,ue.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(ue,ve){this.TAG="TransmuxingController",this._emitter=new(pe()),this._config=ve,ue.segments||(ue.segments=[{duration:ue.duration,filesize:ue.filesize,url:ue.url}]),typeof ue.cors!="boolean"&&(ue.cors=!0),typeof ue.withCredentials!="boolean"&&(ue.withCredentials=!1),this._mediaDataSource=ue,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(xe=>{xe.timestampBase=Pe,Pe+=xe.duration,xe.cors=ue.cors,xe.withCredentials=ue.withCredentials,ve.referrerPolicy&&(xe.referrerPolicy=ve.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(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ue,ve){this._currentSegmentIndex=ue;let Pe=this._mediaDataSource.segments[ue],xe=this._ioctl=new Fe(Pe,this._config,ue);xe.onError=this._onIOException.bind(this),xe.onSeeked=this._onIOSeeked.bind(this),xe.onComplete=this._onIOComplete.bind(this),xe.onRedirect=this._onIORedirect.bind(this),xe.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ve?this._demuxer.bindDataSource(this._ioctl):xe.onDataArrival=this._onInitChunkArrival.bind(this),xe.open(ve)}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(ue){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ve=this._searchSegmentIndexContains(ue);if(ve===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[ve];if(Pe==null)this._pendingSeekTime=ue;else{let xe=Pe.getNearestKeyframe(ue);this._remuxer.seek(xe.milliseconds),this._ioctl.seek(xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds}}else{let Pe=this._mediaInfo.segments[ve];if(Pe==null)this._pendingSeekTime=ue,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ve);else{let xe=Pe.getNearestKeyframe(ue);this._internalAbort(),this._remuxer.seek(ue),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ve].timestampBase,this._loadSegment(ve,xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds,this._reportSegmentMediaInfo(ve)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ue){let ve=this._mediaDataSource.segments,Pe=ve.length-1;for(let xe=0;xe<ve.length;xe++)if(ue<ve[xe].timestampBase){Pe=xe-1;break}return Pe}_onInitChunkArrival(ue,ve){let Pe=null,xe=0;if(ve>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,xe=this._demuxer.parseChunks(ue,ve);else if((Pe=Ze.probe(ue)).match){this._demuxer=new Ze(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),xe=this._demuxer.parseChunks(ue,ve)}else Pe=null,fe.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"),xe=0;return xe}_onMediaInfo(ue){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ue),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ct.prototype));let ve=Object.assign({},ue);Object.setPrototypeOf(ve,Ct.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ve,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(ue){this._emitter.emit(wt.METADATA_ARRIVED,ue)}_onScriptDataArrived(ue){this._emitter.emit(wt.SCRIPTDATA_ARRIVED,ue)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ue){let Pe=ue+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(ue){let ve=this._ioctl.extraData;this._mediaDataSource.segments[ve].redirectedURL=ue}_onIORecoveredEarlyEof(){this._emitter.emit(wt.RECOVERED_EARLY_EOF)}_onIOException(ue,ve){fe.e(this.TAG,`IOException: type = ${ue}, code = ${ve.code}, msg = ${ve.msg}`),this._emitter.emit(wt.IO_ERROR,ue,ve),this._disableStatisticsReporter()}_onDemuxException(ue,ve){fe.e(this.TAG,`DemuxException: type = ${ue}, info = ${ve}`),this._emitter.emit(wt.DEMUX_ERROR,ue,ve)}_onRemuxerInitSegmentArrival(ue,ve){this._emitter.emit(wt.INIT_SEGMENT,ue,ve)}_onRemuxerMediaSegmentArrival(ue,ve){if(this._pendingSeekTime==null&&(this._emitter.emit(wt.MEDIA_SEGMENT,ue,ve),this._pendingResolveSeekPoint!=null&&ue==="video")){let Pe=ve.info.syncPoints,xe=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===xe&&(xe=Pe[0].pts),this._emitter.emit(wt.RECOMMEND_SEEKPOINT,xe)}}_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(ue){let ve=this._mediaInfo.segments[ue],Pe=Object.assign({},ve);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 ue={};ue.url=this._ioctl.currentURL,ue.hasRedirect=this._ioctl.hasRedirect,ue.hasRedirect&&(ue.redirectedURL=this._ioctl.currentRedirectedURL),ue.speed=this._ioctl.currentSpeed,ue.loaderType=this._ioctl.loaderType,ue.currentSegmentIndex=this._currentSegmentIndex,ue.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(wt.STATISTICS_INFO,ue)}}var vn=yn,wn=function(Ut){let ue="TransmuxingWorker",ve=null,Pe=Zt.bind(this);ge.install(),Ut.addEventListener("message",function(Tt){switch(Tt.data.cmd){case"init":ve=new vn(Tt.data.param[0],Tt.data.param[1]),ve.on(wt.IO_ERROR,Ft.bind(this)),ve.on(wt.DEMUX_ERROR,gt.bind(this)),ve.on(wt.INIT_SEGMENT,xe.bind(this)),ve.on(wt.MEDIA_SEGMENT,ke.bind(this)),ve.on(wt.LOADING_COMPLETE,tt.bind(this)),ve.on(wt.RECOVERED_EARLY_EOF,dt.bind(this)),ve.on(wt.MEDIA_INFO,tn.bind(this)),ve.on(wt.METADATA_ARRIVED,Kt.bind(this)),ve.on(wt.SCRIPTDATA_ARRIVED,_t.bind(this)),ve.on(wt.STATISTICS_INFO,ft.bind(this)),ve.on(wt.RECOMMEND_SEEKPOINT,Gt.bind(this));break;case"destroy":ve&&(ve.destroy(),ve=null),Ut.postMessage({msg:"destroyed"});break;case"start":ve.start();break;case"stop":ve.stop();break;case"seek":ve.seek(Tt.data.param);break;case"pause":ve.pause();break;case"resume":ve.resume();break;case"logging_config":{let kt=Tt.data.param;rt.applyConfig(kt),kt.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function xe(Tt,kt){let Xt={msg:wt.INIT_SEGMENT,data:{type:Tt,data:kt}};Ut.postMessage(Xt,[kt.data])}function ke(Tt,kt){let Xt={msg:wt.MEDIA_SEGMENT,data:{type:Tt,data:kt}};Ut.postMessage(Xt,[kt.data])}function tt(){let Tt={msg:wt.LOADING_COMPLETE};Ut.postMessage(Tt)}function dt(){let Tt={msg:wt.RECOVERED_EARLY_EOF};Ut.postMessage(Tt)}function tn(Tt){let kt={msg:wt.MEDIA_INFO,data:Tt};Ut.postMessage(kt)}function Kt(Tt){let kt={msg:wt.METADATA_ARRIVED,data:Tt};Ut.postMessage(kt)}function _t(Tt){let kt={msg:wt.SCRIPTDATA_ARRIVED,data:Tt};Ut.postMessage(kt)}function ft(Tt){let kt={msg:wt.STATISTICS_INFO,data:Tt};Ut.postMessage(kt)}function Ft(Tt,kt){Ut.postMessage({msg:wt.IO_ERROR,data:{type:Tt,info:kt}})}function gt(Tt,kt){Ut.postMessage({msg:wt.DEMUX_ERROR,data:{type:Tt,info:kt}})}function Gt(Tt){Ut.postMessage({msg:wt.RECOMMEND_SEEKPOINT,data:Tt})}function Zt(Tt,kt){Ut.postMessage({msg:"logcat_callback",data:{type:Tt,logcat:kt}})}};class Wn{constructor(ue,ve){if(this.TAG="Transmuxer",this._emitter=new(pe()),ve.enableWorker&&typeof Worker!="undefined")try{let Pe=te(82059);this._worker=Pe(wn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ue,ve]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},rt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:rt.getConfig()})}catch(Pe){fe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new vn(ue,ve)}else this._controller=new vn(ue,ve);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(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}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(ue){this._worker?this._worker.postMessage({cmd:"seek",param:ue}):this._controller.seek(ue)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.INIT_SEGMENT,ue,ve)})}_onMediaSegment(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_SEGMENT,ue,ve)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(wt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_INFO,ue)})}_onMetaDataArrived(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.METADATA_ARRIVED,ue)})}_onScriptDataArrived(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.SCRIPTDATA_ARRIVED,ue)})}_onStatisticsInfo(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.STATISTICS_INFO,ue)})}_onIOError(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.IO_ERROR,ue,ve)})}_onDemuxError(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.DEMUX_ERROR,ue,ve)})}_onRecommendSeekpoint(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOMMEND_SEEKPOINT,ue)})}_onLoggingConfigChanged(ue){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ue})}_onWorkerMessage(ue){let ve=ue.data,Pe=ve.data;if(ve.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ve.msg){case wt.INIT_SEGMENT:case wt.MEDIA_SEGMENT:this._emitter.emit(ve.msg,Pe.type,Pe.data);break;case wt.LOADING_COMPLETE:case wt.RECOVERED_EARLY_EOF:this._emitter.emit(ve.msg);break;case wt.MEDIA_INFO:Object.setPrototypeOf(Pe,Ct.prototype),this._emitter.emit(ve.msg,Pe);break;case wt.METADATA_ARRIVED:case wt.SCRIPTDATA_ARRIVED:case wt.STATISTICS_INFO:this._emitter.emit(ve.msg,Pe);break;case wt.IO_ERROR:case wt.DEMUX_ERROR:this._emitter.emit(ve.msg,Pe.type,Pe.info);break;case wt.RECOMMEND_SEEKPOINT:this._emitter.emit(ve.msg,Pe);break;case"logcat_callback":fe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var qn=Wn,Vn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class vr{constructor(ue){this.TAG="MSEController",this._config=ue,this._emitter=new(pe()),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 Dt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaSource)throw new me("MediaSource has been attached to an HTMLMediaElement!");let ve=this._mediaSource=new window.MediaSource;ve.addEventListener("sourceopen",this.e.onSourceOpen),ve.addEventListener("sourceended",this.e.onSourceEnded),ve.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ue,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ue.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ue=this._mediaSource;for(let ve in this._sourceBuffers){let Pe=this._pendingSegments[ve];Pe.splice(0,Pe.length),this._pendingSegments[ve]=null,this._pendingRemoveRanges[ve]=null,this._lastInitSegments[ve]=null;let xe=this._sourceBuffers[ve];if(xe){if(ue.readyState!=="closed"){try{ue.removeSourceBuffer(xe)}catch(ke){fe.e(this.TAG,ke.message)}xe.removeEventListener("error",this.e.onSourceBufferError),xe.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ve]=null,this._sourceBuffers[ve]=null}}if(ue.readyState==="open")try{ue.endOfStream()}catch(ve){fe.e(this.TAG,ve.message)}ue.removeEventListener("sourceopen",this.e.onSourceOpen),ue.removeEventListener("sourceended",this.e.onSourceEnded),ue.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(ue,ve){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ue),this._pendingSegments[ue.type].push(ue);return}let Pe=ue,xe=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(xe+=`;codecs=${Pe.codec}`);let ke=!1;if(fe.v(this.TAG,"Received Initialization Segment, mimeType: "+xe),this._lastInitSegments[Pe.type]=Pe,xe!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])fe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${xe}`);else{ke=!0;try{let tt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(xe);tt.addEventListener("error",this.e.onSourceBufferError),tt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(tt){fe.e(this.TAG,tt.message),this._emitter.emit(Vn.ERROR,{code:tt.code,msg:tt.message});return}}this._mimeTypes[Pe.type]=xe}ve||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(ue){let ve=ue;this._pendingSegments[ve.type].push(ve),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[ve.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ue){for(let ve in this._sourceBuffers){if(!this._sourceBuffers[ve])continue;let Pe=this._sourceBuffers[ve];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(ke){fe.e(this.TAG,ke.message)}this._idrList.clear();let xe=this._pendingSegments[ve];if(xe.splice(0,xe.length),this._mediaSource.readyState!=="closed"){for(let ke=0;ke<Pe.buffered.length;ke++){let tt=Pe.buffered.start(ke),dt=Pe.buffered.end(ke);this._pendingRemoveRanges[ve].push({start:tt,end:dt})}if(Pe.updating||this._doRemoveRanges(),b.safari){let ke=this._lastInitSegments[ve];ke&&(this._pendingSegments[ve].push(ke),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let ue=this._mediaSource,ve=this._sourceBuffers;if(!ue||ue.readyState!=="open"){ue&&ue.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ve.video&&ve.video.updating||ve.audio&&ve.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ue.endOfStream())}getNearestKeyframe(ue){return this._idrList.getLastSyncPointBeforeDts(ue)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let ue=this._mediaElement.currentTime;for(let ve in this._sourceBuffers){let Pe=this._sourceBuffers[ve];if(Pe){let xe=Pe.buffered;if(xe.length>=1&&ue-xe.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ue=this._mediaElement.currentTime;for(let ve in this._sourceBuffers){let Pe=this._sourceBuffers[ve];if(Pe){let xe=Pe.buffered,ke=!1;for(let tt=0;tt<xe.length;tt++){let dt=xe.start(tt),tn=xe.end(tt);if(dt<=ue&&ue<tn+3){if(ue-dt>=this._config.autoCleanupMaxBackwardDuration){ke=!0;let Kt=ue-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ve].push({start:dt,end:Kt})}}else tn<ue&&(ke=!0,this._pendingRemoveRanges[ve].push({start:dt,end:tn}))}ke&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let ue=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||ue.video&&ue.video.updating||ue.audio&&ue.audio.updating)return;let ve=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(ve)||Pe>ve)&&(fe.v(this.TAG,`Update MediaSource duration from ${ve} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ue in this._pendingRemoveRanges){if(!this._sourceBuffers[ue]||this._sourceBuffers[ue].updating)continue;let ve=this._sourceBuffers[ue],Pe=this._pendingRemoveRanges[ue];for(;Pe.length&&!ve.updating;){let xe=Pe.shift();ve.remove(xe.start,xe.end)}}}_doAppendSegments(){let ue=this._pendingSegments;for(let ve in ue)if(!(!this._sourceBuffers[ve]||this._sourceBuffers[ve].updating)&&ue[ve].length>0){let Pe=ue[ve].shift();if(Pe.timestampOffset){let xe=this._sourceBuffers[ve].timestampOffset,ke=Pe.timestampOffset/1e3;Math.abs(xe-ke)>.1&&(fe.v(this.TAG,`Update MPEG audio timestampOffset from ${xe} to ${ke}`),this._sourceBuffers[ve].timestampOffset=ke),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[ve].appendBuffer(Pe.data),this._isBufferFull=!1,ve==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(xe){this._pendingSegments[ve].unshift(Pe),xe.code===22?(this._isBufferFull||this._emitter.emit(Vn.BUFFER_FULL),this._isBufferFull=!0):(fe.e(this.TAG,xe.message),this._emitter.emit(Vn.ERROR,{code:xe.code,msg:xe.message}))}}}_onSourceOpen(){if(fe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let ue=this._pendingSourceBufferInit;for(;ue.length;){let ve=ue.shift();this.appendInitSegment(ve,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Vn.SOURCE_OPEN)}_onSourceEnded(){fe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){fe.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 ue=this._pendingSegments;return ue.video.length>0||ue.audio.length>0}_hasPendingRemoveRanges(){let ue=this._pendingRemoveRanges;return ue.video.length>0||ue.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(ue){fe.e(this.TAG,`SourceBuffer Error: ${ue}`)}}var lr=vr;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 ir{constructor(ue,ve){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(pe()),this._config=at(),typeof ve=="object"&&Object.assign(this._config,ve),ue.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");ue.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=ue,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(ue,ve){ue===At.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):ue===At.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ue.addEventListener("seeking",this.e.onvSeeking),ue.addEventListener("canplay",this.e.onvCanPlay),ue.addEventListener("stalled",this.e.onvStalled),ue.addEventListener("progress",this.e.onvProgress),this._msectl=new lr(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,ve=>{this._emitter.emit(At.ERROR,sn.MEDIA_ERROR,Yn.MEDIA_MSE_ERROR,ve)}),this._msectl.attachMediaElement(ue),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ve){}}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 qn(this._mediaDataSource,this._config),this._transmuxer.on(wt.INIT_SEGMENT,(ue,ve)=>{this._msectl.appendInitSegment(ve)}),this._transmuxer.on(wt.MEDIA_SEGMENT,(ue,ve)=>{if(this._msectl.appendMediaSegment(ve),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;ve.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(fe.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,(ue,ve)=>{this._emitter.emit(At.ERROR,sn.NETWORK_ERROR,ue,ve)}),this._transmuxer.on(wt.DEMUX_ERROR,(ue,ve)=>{this._emitter.emit(At.ERROR,sn.MEDIA_ERROR,ue,{code:-1,msg:ve})}),this._transmuxer.on(wt.MEDIA_INFO,ue=>{this._mediaInfo=ue,this._emitter.emit(At.MEDIA_INFO,Object.assign({},ue))}),this._transmuxer.on(wt.METADATA_ARRIVED,ue=>{this._emitter.emit(At.METADATA_ARRIVED,ue)}),this._transmuxer.on(wt.SCRIPTDATA_ARRIVED,ue=>{this._emitter.emit(At.SCRIPTDATA_ARRIVED,ue)}),this._transmuxer.on(wt.STATISTICS_INFO,ue=>{this._statisticsInfo=this._fillStatisticsInfo(ue),this._emitter.emit(At.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(wt.RECOMMEND_SEEKPOINT,ue=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue/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(ue){this._mediaElement.volume=ue}get muted(){return this._mediaElement.muted}set muted(ue){this._mediaElement.muted=ue}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ue){this._mediaElement?this._internalSeek(ue):this._pendingSeekTime=ue}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(ue){if(ue.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ue;let ve=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let ke=this._mediaElement.getVideoPlaybackQuality();Pe=ke.totalVideoFrames,xe=ke.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):ve=!1;return ve&&(ue.decodedFrames=Pe,ue.droppedFrames=xe),ue}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ue=this._mediaElement.buffered,ve=this._mediaElement.currentTime,Pe=0,xe=0;for(let ke=0;ke<ue.length;ke++){let tt=ue.start(ke),dt=ue.end(ke);if(tt<=ve&&ve<dt){Pe=tt,xe=dt;break}}xe>=ve+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){fe.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 ue=this._mediaElement.currentTime,ve=this._mediaElement.buffered,Pe=!1;for(let xe=0;xe<ve.length;xe++){let ke=ve.start(xe),tt=ve.end(xe);if(ue>=ke&&ue<tt){ue>=tt-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(fe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ue){let ve=this._mediaElement.buffered;for(let Pe=0;Pe<ve.length;Pe++){let xe=ve.start(Pe),ke=ve.end(Pe);if(ue>=xe&&ue<ke)return!0}return!1}_internalSeek(ue){let ve=this._isTimepointBuffered(ue),Pe=!1,xe=0;if(ue<1&&this._mediaElement.buffered.length>0){let ke=this._mediaElement.buffered.start(0);(ke<1&&ue<ke||b.safari)&&(Pe=!0,xe=b.safari?.1:ke)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=xe;else if(ve){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ue;else{let ke=this._msectl.getNearestKeyframe(Math.floor(ue*1e3));this._requestSetTime=!0,ke!=null?this._mediaElement.currentTime=ke.dts/1e3:this._mediaElement.currentTime=ue}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ue),this._transmuxer.seek(Math.floor(ue*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let ue=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ue)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ue),this._transmuxer.seek(Math.floor(ue*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(ue){let ve=this._mediaElement;if(ue||!this._receivedCanPlay||ve.readyState<2){let Pe=ve.buffered;Pe.length>0&&ve.currentTime<Pe.start(0)&&(fe.w(this.TAG,`Playback seems stuck at ${ve.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(ue){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(ue){let ve=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ve<1&&Pe.length>0){let xe=Pe.start(0);if(xe<1&&ve<xe||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:xe;return}}if(this._isTimepointBuffered(ve)){if(this._alwaysSeekKeyframe){let xe=this._msectl.getNearestKeyframe(Math.floor(ve*1e3));xe!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=xe.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ve,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(ue){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(ue){this._checkAndResumeStuckPlayback(!0)}_onvProgress(ue){this._checkAndResumeStuckPlayback()}}var Zn=ir;class ar{constructor(ue,ve){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(pe()),this._config=at(),typeof ve=="object"&&Object.assign(this._config,ve),ue.type.toLowerCase()==="flv")throw new ae("NativePlayer does't support flv MediaDataSource input!");if(ue.hasOwnProperty("segments"))throw new ae(`NativePlayer(${ue.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ue,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ue,ve){ue===At.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):ue===At.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ve){}}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(ue){this._mediaElement.volume=ue}get muted(){return this._mediaElement.muted}set muted(ue){this._mediaElement.muted=ue}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ue){this._mediaElement?this._mediaElement.currentTime=ue:this._pendingSeekTime=ue}get mediaInfo(){let ve={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ve.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ve.width=this._mediaElement.videoWidth,ve.height=this._mediaElement.videoHeight)),ve}get statisticsInfo(){let ue={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ue;let ve=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let ke=this._mediaElement.getVideoPlaybackQuality();Pe=ke.totalVideoFrames,xe=ke.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):ve=!1;return ve&&(ue.decodedFrames=Pe,ue.droppedFrames=xe),ue}_onvLoadedMetadata(ue){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 Dr=ar;ge.install();function Mr(Ut,ue){let ve=Ut;if(ve==null||typeof ve!="object")throw new ae("MediaDataSource must be an javascript object!");if(!ve.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(ve.type){case"flv":return new Zn(ve,ue);default:return new Dr(ve,ue)}}function Er(){return pt.supportMSEH264Playback()}function Br(){return pt.getFeatureList()}let sr={};sr.createPlayer=Mr,sr.isSupported=Er,sr.getFeatureList=Br,sr.BaseLoader=a,sr.LoaderStatus=oe,sr.LoaderErrors=ne,sr.Events=At,sr.ErrorTypes=sn,sr.ErrorDetails=Yn,sr.FlvPlayer=Zn,sr.NativePlayer=Dr,sr.LoggingControl=rt,Object.defineProperty(sr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Kr=sr},50371:function(mt,Ke){"use strict";function te(){const ee=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge<arguments.length;ge++){const be=ge<0||arguments.length<=ge?void 0:arguments[ge];be&&Object.keys(be).forEach(pe=>{const Se=be[pe];Se!==void 0&&(ee[pe]=Se)})}return ee}Ke.Z=te},13845:function(mt,Ke,te){"use strict";te.d(Ke,{F:function(){return ee},Z:function(){return ge}});function ee(be){return be!=null&&be===be.window}function ge(be,pe){var Se,fe;if(typeof window=="undefined")return 0;const ie=pe?"scrollTop":"scrollLeft";let de=0;return ee(be)?de=be[pe?"pageYOffset":"pageXOffset"]:be instanceof Document?de=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(de=be[ie]),be&&!ee(be)&&typeof de!="number"&&(de=(fe=((Se=be.ownerDocument)!==null&&Se!==void 0?Se:be).documentElement)===null||fe===void 0?void 0:fe[ie]),de}},56762:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ge}});var ee=te(59301);function ge(){const[,be]=ee.useReducer(pe=>pe+1,0);return be}},68031:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(16089);function ge(Se,fe,ie,de){const le=ie-fe;return Se/=de/2,Se<1?le/2*Se*Se*Se+fe:le/2*((Se-=2)*Se*Se+2)+fe}var be=te(13845);function pe(Se){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:de,duration:le=450}=fe,me=ie(),ae=(0,be.Z)(me,!0),he=Date.now(),oe=()=>{const a=Date.now()-he,y=ge(a>le?le:a,ae,Se,le);(0,be.F)(me)?me.scrollTo(window.pageXOffset,y):me instanceof Document||me.constructor.name==="HTMLDocument"?me.documentElement.scrollTop=y:me.scrollTop=y,a<le?(0,ee.Z)(oe):typeof de=="function"&&de()};(0,ee.Z)(oe)}},24905:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return _e}});var ee=te(92310),ge=te.n(ee),be=te(5630),pe=te(59301),Se=te(36355),fe=te(1684),ie=te(32441),le=pe.createContext(null),me=te(98447),ae=te(14088),he=te(4572),oe=function(ye,De){var Ee={};for(var je in ye)Object.prototype.hasOwnProperty.call(ye,je)&&De.indexOf(je)<0&&(Ee[je]=ye[je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,je=Object.getOwnPropertySymbols(ye);Le<je.length;Le++)De.indexOf(je[Le])<0&&Object.prototype.propertyIsEnumerable.call(ye,je[Le])&&(Ee[je[Le]]=ye[je[Le]]);return Ee};const ne=(ye,De)=>{var Ee;const{prefixCls:je,className:Le,rootClassName:ht,children:Ye,indeterminate:vt=!1,style:we,onMouseEnter:Fe,onMouseLeave:He,skipGroup:at=!1,disabled:We}=ye,pt=oe(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Pt,direction:At,checkbox:Bt}=pe.useContext(Se.E_),rt=pe.useContext(le),{isFormItemInput:Xe}=pe.useContext(ie.aM),Ct=pe.useContext(fe.Z),zt=(Ee=(rt==null?void 0:rt.disabled)||We)!==null&&Ee!==void 0?Ee:Ct,Et=pe.useRef(pt.value);pe.useEffect(()=>{rt==null||rt.registerValue(pt.value)},[]),pe.useEffect(()=>{if(!at)return pt.value!==Et.current&&(rt==null||rt.cancelValue(Et.current),rt==null||rt.registerValue(pt.value),Et.current=pt.value),()=>rt==null?void 0:rt.cancelValue(pt.value)},[pt.value]);const an=Pt("checkbox",je),[$e,yt]=(0,me.ZP)(an),Lt=Object.assign({},pt);rt&&!at&&(Lt.onChange=function(){pt.onChange&&pt.onChange.apply(pt,arguments),rt.toggleOption&&rt.toggleOption({label:Ye,value:pt.value})},Lt.name=rt.name,Lt.checked=rt.value.includes(pt.value));const on=ge()(`${an}-wrapper`,{[`${an}-rtl`]:At==="rtl",[`${an}-wrapper-checked`]:Lt.checked,[`${an}-wrapper-disabled`]:zt,[`${an}-wrapper-in-form-item`]:Xe},Bt==null?void 0:Bt.className,Le,ht,yt),$t=ge()({[`${an}-indeterminate`]:vt},he.A,yt),st=vt?"mixed":void 0;return $e(pe.createElement(ae.Z,{component:"Checkbox",disabled:zt},pe.createElement("label",{className:on,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),we),onMouseEnter:Fe,onMouseLeave:He},pe.createElement(be.Z,Object.assign({"aria-checked":st},Lt,{prefixCls:an,className:$t,disabled:zt,ref:De})),Ye!==void 0&&pe.createElement("span",null,Ye))))};var y=pe.forwardRef(ne),E=te(77654),b=te(2738),x=function(ye,De){var Ee={};for(var je in ye)Object.prototype.hasOwnProperty.call(ye,je)&&De.indexOf(je)<0&&(Ee[je]=ye[je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,je=Object.getOwnPropertySymbols(ye);Le<je.length;Le++)De.indexOf(je[Le])<0&&Object.prototype.propertyIsEnumerable.call(ye,je[Le])&&(Ee[je[Le]]=ye[je[Le]]);return Ee};const z=(ye,De)=>{const{defaultValue:Ee,children:je,options:Le=[],prefixCls:ht,className:Ye,rootClassName:vt,style:we,onChange:Fe}=ye,He=x(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:We}=pe.useContext(Se.E_),[pt,Pt]=pe.useState(He.value||Ee||[]),[At,Bt]=pe.useState([]);pe.useEffect(()=>{"value"in He&&Pt(He.value||[])},[He.value]);const rt=pe.useMemo(()=>Le.map(lt=>typeof lt=="string"||typeof lt=="number"?{label:lt,value:lt}:lt),[Le]),Xe=lt=>{Bt(Ge=>Ge.filter(Ne=>Ne!==lt))},Ct=lt=>{Bt(Ge=>[].concat((0,E.Z)(Ge),[lt]))},zt=lt=>{const Ge=pt.indexOf(lt.value),Ne=(0,E.Z)(pt);Ge===-1?Ne.push(lt.value):Ne.splice(Ge,1),"value"in He||Pt(Ne),Fe==null||Fe(Ne.filter(et=>At.includes(et)).sort((et,xt)=>{const Ie=rt.findIndex(Ze=>Ze.value===et),Re=rt.findIndex(Ze=>Ze.value===xt);return Ie-Re}))},Et=at("checkbox",ht),an=`${Et}-group`,[$e,yt]=(0,me.ZP)(Et),Lt=(0,b.Z)(He,["value","disabled"]),on=Le.length?rt.map(lt=>pe.createElement(y,{prefixCls:Et,key:lt.value.toString(),disabled:"disabled"in lt?lt.disabled:He.disabled,value:lt.value,checked:pt.includes(lt.value),onChange:lt.onChange,className:`${an}-item`,style:lt.style,title:lt.title},lt.label)):je,$t={toggleOption:zt,value:pt,disabled:He.disabled,name:He.name,registerValue:Ct,cancelValue:Xe},st=ge()(an,{[`${an}-rtl`]:We==="rtl"},Ye,vt,yt);return $e(pe.createElement("div",Object.assign({className:st,style:we},Lt,{ref:De}),pe.createElement(le.Provider,{value:$t},on)))},re=pe.forwardRef(z);var se=pe.memo(re);const ce=y;ce.Group=se,ce.__ANT_CHECKBOX=!0;var _e=ce},98447:function(mt,Ke,te){"use strict";te.d(Ke,{C2:function(){return Se}});var ee=te(17313),ge=te(37613),be=te(83116);const pe=fe=>{const{checkboxCls:ie}=fe,de=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,ee.oN)(fe))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:fe.checkboxSize,height:fe.checkboxSize,direction:"ltr",backgroundColor:fe.colorBgContainer,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:fe.checkboxSize/14*5,height:fe.checkboxSize/14*8,border:`${fe.lineWidthBold}px solid ${fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${fe.motionDurationFast} ${fe.motionEaseInBack}, opacity ${fe.motionDurationFast}`}},"& + span":{paddingInlineStart:fe.paddingXS,paddingInlineEnd:fe.paddingXS}})},{[`
${de}:not(${de}-disabled),
${ie}:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{borderColor:fe.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:fe.colorPrimary,borderColor:fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${fe.motionDurationMid} ${fe.motionEaseOutBack} ${fe.motionDurationFast}`}}},[`
${de}-checked:not(${de}-disabled),
${ie}-checked:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:fe.colorBgContainer,borderColor:fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:fe.fontSizeLG/2,height:fe.fontSizeLG/2,backgroundColor:fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:fe.colorTextDisabled}}}]};function Se(fe,ie){const de=(0,ge.TS)(ie,{checkboxCls:`.${fe}`,checkboxSize:ie.controlInteractiveSize});return[pe(de)]}Ke.ZP=(0,be.Z)("Checkbox",(fe,ie)=>{let{prefixCls:de}=ie;return[Se(de,fe)]})},43428:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return $e}});var ee=te(92310),ge=te.n(ee),be=te(85899),pe=te(72190),Se=te(43403),fe=te(34280),ie=te(59301),de=ie.createContext(null),le=ie.createContext({}),me=de,ae=te(18642),he=te(60499),oe=te(77900),ne=te(10228),a=te(26112),y=te(70425),E=function(Lt){var on=Lt.prefixCls,$t=Lt.className,st=Lt.style,lt=Lt.children,Ge=Lt.containerRef,Ne=Lt.id,et=Lt.onMouseEnter,xt=Lt.onMouseOver,Ie=Lt.onMouseLeave,Re=Lt.onClick,Ze=Lt.onKeyDown,Be=Lt.onKeyUp,ze={onMouseEnter:et,onMouseOver:xt,onMouseLeave:Ie,onClick:Re,onKeyDown:Ze,onKeyUp:Be},ot=ie.useContext(le),It=ot.panel,Mt=(0,y.useComposeRef)(It,Ge);return ie.createElement(ie.Fragment,null,ie.createElement("div",(0,he.Z)({id:Ne,className:ge()("".concat(on,"-content"),$t),style:(0,be.Z)({},st),"aria-modal":"true",role:"dialog",ref:Mt},ze),lt))},b=E,x=te(48736);function z(yt){return typeof yt=="string"&&String(Number(yt))===yt?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(yt)):yt}function re(yt){warning(!("wrapperClassName"in yt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!yt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var se={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ce(yt,Lt){var on,$t,st,lt,Ge=yt.prefixCls,Ne=yt.open,et=yt.placement,xt=yt.inline,Ie=yt.push,Re=yt.forceRender,Ze=yt.autoFocus,Be=yt.keyboard,ze=yt.rootClassName,ot=yt.rootStyle,It=yt.zIndex,Mt=yt.className,jt=yt.id,Dt=yt.style,Ht=yt.motion,bt=yt.width,fn=yt.height,cn=yt.children,wt=yt.contentWrapperStyle,yn=yt.mask,vn=yt.maskClosable,zn=yt.maskMotion,wn=yt.maskClassName,Wn=yt.maskStyle,qn=yt.afterOpenChange,Kn=yt.onClose,Vn=yt.onMouseEnter,vr=yt.onMouseOver,lr=yt.onMouseLeave,sn=yt.onClick,Yn=yt.onKeyDown,ir=yt.onKeyUp,Zn=ie.useRef(),ar=ie.useRef(),Dr=ie.useRef();ie.useImperativeHandle(Lt,function(){return Zn.current});var Mr=function(ft){var Ft=ft.keyCode,gt=ft.shiftKey;switch(Ft){case ne.Z.TAB:{if(Ft===ne.Z.TAB){if(!gt&&document.activeElement===Dr.current){var Gt;(Gt=ar.current)===null||Gt===void 0||Gt.focus({preventScroll:!0})}else if(gt&&document.activeElement===ar.current){var Zt;(Zt=Dr.current)===null||Zt===void 0||Zt.focus({preventScroll:!0})}}break}case ne.Z.ESC:{Kn&&Be&&(ft.stopPropagation(),Kn(ft));break}}};ie.useEffect(function(){if(Ne&&Ze){var _t;(_t=Zn.current)===null||_t===void 0||_t.focus({preventScroll:!0})}},[Ne]);var Er=ie.useState(!1),Br=(0,pe.Z)(Er,2),sr=Br[0],Kr=Br[1],Ut=ie.useContext(me),ue;Ie===!1?ue={distance:0}:Ie===!0?ue={}:ue=Ie||{};var ve=(on=($t=(st=ue)===null||st===void 0?void 0:st.distance)!==null&&$t!==void 0?$t:Ut==null?void 0:Ut.pushDistance)!==null&&on!==void 0?on:180,Pe=ie.useMemo(function(){return{pushDistance:ve,push:function(){Kr(!0)},pull:function(){Kr(!1)}}},[ve]);ie.useEffect(function(){if(Ne){var _t;Ut==null||(_t=Ut.push)===null||_t===void 0||_t.call(Ut)}else{var ft;Ut==null||(ft=Ut.pull)===null||ft===void 0||ft.call(Ut)}},[Ne]),ie.useEffect(function(){return function(){var _t;Ut==null||(_t=Ut.pull)===null||_t===void 0||_t.call(Ut)}},[]);var xe=yn&&ie.createElement(oe.default,(0,he.Z)({key:"mask"},zn,{visible:Ne}),function(_t,ft){var Ft=_t.className,gt=_t.style;return ie.createElement("div",{className:ge()("".concat(Ge,"-mask"),Ft,wn),style:(0,be.Z)((0,be.Z)({},gt),Wn),onClick:vn&&Ne?Kn:void 0,ref:ft})}),ke=typeof Ht=="function"?Ht(et):Ht,tt={};if(sr&&ve)switch(et){case"top":tt.transform="translateY(".concat(ve,"px)");break;case"bottom":tt.transform="translateY(".concat(-ve,"px)");break;case"left":tt.transform="translateX(".concat(ve,"px)");break;default:tt.transform="translateX(".concat(-ve,"px)");break}et==="left"||et==="right"?tt.width=z(bt):tt.height=z(fn);var dt={onMouseEnter:Vn,onMouseOver:vr,onMouseLeave:lr,onClick:sn,onKeyDown:Yn,onKeyUp:ir},tn=ie.createElement(oe.default,(0,he.Z)({key:"panel"},ke,{visible:Ne,forceRender:Re,onVisibleChanged:function(ft){qn==null||qn(ft)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(_t,ft){var Ft=_t.className,gt=_t.style;return ie.createElement("div",(0,he.Z)({className:ge()("".concat(Ge,"-content-wrapper"),Ft),style:(0,be.Z)((0,be.Z)((0,be.Z)({},tt),gt),wt)},(0,a.Z)(yt,{data:!0})),ie.createElement(b,(0,he.Z)({id:jt,containerRef:ft,prefixCls:Ge,className:Mt,style:Dt},dt),cn))}),Kt=(0,be.Z)({},ot);return It&&(Kt.zIndex=It),ie.createElement(me.Provider,{value:Pe},ie.createElement("div",{className:ge()(Ge,"".concat(Ge,"-").concat(et),ze,(lt={},(0,ae.Z)(lt,"".concat(Ge,"-open"),Ne),(0,ae.Z)(lt,"".concat(Ge,"-inline"),xt),lt)),style:Kt,tabIndex:-1,ref:Zn,onKeyDown:Mr},xe,ie.createElement("div",{tabIndex:0,ref:ar,style:se,"aria-hidden":"true","data-sentinel":"start"}),tn,ie.createElement("div",{tabIndex:0,ref:Dr,style:se,"aria-hidden":"true","data-sentinel":"end"})))}var _e=ie.forwardRef(ce),ye=_e,De=function(Lt){var on=Lt.open,$t=on===void 0?!1:on,st=Lt.prefixCls,lt=st===void 0?"rc-drawer":st,Ge=Lt.placement,Ne=Ge===void 0?"right":Ge,et=Lt.autoFocus,xt=et===void 0?!0:et,Ie=Lt.keyboard,Re=Ie===void 0?!0:Ie,Ze=Lt.width,Be=Ze===void 0?378:Ze,ze=Lt.mask,ot=ze===void 0?!0:ze,It=Lt.maskClosable,Mt=It===void 0?!0:It,jt=Lt.getContainer,Dt=Lt.forceRender,Ht=Lt.afterOpenChange,bt=Lt.destroyOnClose,fn=Lt.onMouseEnter,cn=Lt.onMouseOver,wt=Lt.onMouseLeave,yn=Lt.onClick,vn=Lt.onKeyDown,zn=Lt.onKeyUp,wn=Lt.panelRef,Wn=ie.useState(!1),qn=(0,pe.Z)(Wn,2),Kn=qn[0],Vn=qn[1],vr=ie.useState(!1),lr=(0,pe.Z)(vr,2),sn=lr[0],Yn=lr[1];(0,fe.Z)(function(){Yn(!0)},[]);var ir=sn?$t:!1,Zn=ie.useRef(),ar=ie.useRef();(0,fe.Z)(function(){ir&&(ar.current=document.activeElement)},[ir]);var Dr=function(Kr){var Ut;if(Vn(Kr),Ht==null||Ht(Kr),!Kr&&ar.current&&!((Ut=Zn.current)!==null&&Ut!==void 0&&Ut.contains(ar.current))){var ue;(ue=ar.current)===null||ue===void 0||ue.focus({preventScroll:!0})}},Mr=ie.useMemo(function(){return{panel:wn}},[wn]);if(!Dt&&!Kn&&!ir&&bt)return null;var Er={onMouseEnter:fn,onMouseOver:cn,onMouseLeave:wt,onClick:yn,onKeyDown:vn,onKeyUp:zn},Br=(0,be.Z)((0,be.Z)({},Lt),{},{open:ir,prefixCls:lt,placement:Ne,autoFocus:xt,keyboard:Re,width:Be,mask:ot,maskClosable:Mt,inline:jt===!1,afterOpenChange:Dr,ref:Zn},Er);return ie.createElement(le.Provider,{value:Mr},ie.createElement(Se.Z,{open:ir||Dt||Kn,autoDestroy:!1,getContainer:jt,autoLock:ot&&(ir||Kn)},ie.createElement(ye,Br)))},Ee=De,je=Ee,Le=te(62892),ht=te(36355),Ye=te(32441),vt=te(47729),Fe=yt=>{const{prefixCls:Lt,title:on,footer:$t,extra:st,closeIcon:lt,closable:Ge,onClose:Ne,headerStyle:et,drawerStyle:xt,bodyStyle:Ie,footerStyle:Re,children:Ze}=yt,Be=ie.useCallback(jt=>ie.createElement("button",{type:"button",onClick:Ne,"aria-label":"Close",className:`${Lt}-close`},jt),[Ne]),[ze,ot]=(0,vt.Z)(Ge,lt,Be,void 0,!0),It=ie.useMemo(()=>!on&&!ze?null:ie.createElement("div",{style:et,className:ge()(`${Lt}-header`,{[`${Lt}-header-close-only`]:ze&&!on&&!st})},ie.createElement("div",{className:`${Lt}-header-title`},ot,on&&ie.createElement("div",{className:`${Lt}-title`},on)),st&&ie.createElement("div",{className:`${Lt}-extra`},st)),[ze,ot,st,et,Lt,on]),Mt=ie.useMemo(()=>{if(!$t)return null;const jt=`${Lt}-footer`;return ie.createElement("div",{className:jt,style:Re},$t)},[$t,Re,Lt]);return ie.createElement("div",{className:`${Lt}-wrapper-body`,style:xt},It,ie.createElement("div",{className:`${Lt}-body`,style:Ie},Ze),Mt)},He=te(33234),at=te(83116),We=te(37613),Pt=yt=>{const{componentCls:Lt,motionDurationSlow:on}=yt,$t={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${on}`}}};return{[Lt]:{[`${Lt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${on}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Lt}-panel-motion`]:{"&-left":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const At=yt=>{const{componentCls:Lt,zIndexPopup:on,colorBgMask:$t,colorBgElevated:st,motionDurationSlow:lt,motionDurationMid:Ge,padding:Ne,paddingLG:et,fontSizeLG:xt,lineHeightLG:Ie,lineWidth:Re,lineType:Ze,colorSplit:Be,marginSM:ze,colorIcon:ot,colorIconHover:It,colorText:Mt,fontWeightStrong:jt,footerPaddingBlock:Dt,footerPaddingInline:Ht}=yt,bt=`${Lt}-content-wrapper`;return{[Lt]:{position:"fixed",inset:0,zIndex:on,pointerEvents:"none","&-pure":{position:"relative",background:st,[`&${Lt}-left`]:{boxShadow:yt.boxShadowDrawerLeft},[`&${Lt}-right`]:{boxShadow:yt.boxShadowDrawerRight},[`&${Lt}-top`]:{boxShadow:yt.boxShadowDrawerUp},[`&${Lt}-bottom`]:{boxShadow:yt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Lt}-mask`]:{position:"absolute",inset:0,zIndex:on,background:$t,pointerEvents:"auto"},[bt]:{position:"absolute",zIndex:on,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:yt.boxShadowDrawerLeft},[`&-right > ${bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:yt.boxShadowDrawerRight},[`&-top > ${bt}`]:{top:0,insetInline:0,boxShadow:yt.boxShadowDrawerUp},[`&-bottom > ${bt}`]:{bottom:0,insetInline:0,boxShadow:yt.boxShadowDrawerDown},[`${Lt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:st,pointerEvents:"auto"},[`${Lt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Lt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ne}px ${et}px`,fontSize:xt,lineHeight:Ie,borderBottom:`${Re}px ${Ze} ${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:It,textDecoration:"none"}},[`${Lt}-title`]:{flex:1,margin:0,color:Mt,fontWeight:yt.fontWeightStrong,fontSize:xt,lineHeight:Ie},[`${Lt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:et,overflow:"auto"},[`${Lt}-footer`]:{flexShrink:0,padding:`${Dt}px ${Ht}px`,borderTop:`${Re}px ${Ze} ${Be}`},"&-rtl":{direction:"rtl"}}}};var Bt=(0,at.Z)("Drawer",yt=>{const Lt=(0,We.TS)(yt,{});return[At(Lt),Pt(Lt)]},yt=>({zIndexPopup:yt.zIndexPopupBase,footerPaddingBlock:yt.paddingXS,footerPaddingInline:yt.padding})),rt=te(11575),Xe=function(yt,Lt){var on={};for(var $t in yt)Object.prototype.hasOwnProperty.call(yt,$t)&&Lt.indexOf($t)<0&&(on[$t]=yt[$t]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,$t=Object.getOwnPropertySymbols(yt);st<$t.length;st++)Lt.indexOf($t[st])<0&&Object.prototype.propertyIsEnumerable.call(yt,$t[st])&&(on[$t[st]]=yt[$t[st]]);return on};const Ct=null,zt={distance:180},Et=yt=>{var Lt;const{rootClassName:on,width:$t,height:st,size:lt="default",mask:Ge=!0,push:Ne=zt,open:et,afterOpenChange:xt,onClose:Ie,prefixCls:Re,getContainer:Ze,style:Be,className:ze,visible:ot,afterVisibleChange:It}=yt,Mt=Xe(yt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:Dt,direction:Ht,drawer:bt}=ie.useContext(ht.E_),fn=Dt("drawer",Re),[cn,wt]=Bt(fn),yn=Ze===void 0&&jt?()=>jt(document.body):Ze,vn=ge()({"no-mask":!Ge,[`${fn}-rtl`]:Ht==="rtl"},on,wt),zn=ie.useMemo(()=>$t!=null?$t:lt==="large"?736:378,[$t,lt]),wn=ie.useMemo(()=>st!=null?st:lt==="large"?736:378,[st,lt]),Wn={motionName:(0,Le.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},qn=Vn=>({motionName:(0,Le.m)(fn,`panel-motion-${Vn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Kn=(0,rt.H)();return cn(ie.createElement(He.BR,null,ie.createElement(Ye.Ux,{status:!0,override:!0},ie.createElement(je,Object.assign({prefixCls:fn,onClose:Ie,maskMotion:Wn,motion:qn},Mt,{open:et!=null?et:ot,mask:Ge,push:Ne,width:zn,height:wn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Be),className:ge()(bt==null?void 0:bt.className,ze),rootClassName:vn,getContainer:yn,afterOpenChange:xt!=null?xt:It,panelRef:Kn}),ie.createElement(Fe,Object.assign({prefixCls:fn},Mt,{onClose:Ie}))))))},an=yt=>{const{prefixCls:Lt,style:on,className:$t,placement:st="right"}=yt,lt=Xe(yt,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=ie.useContext(ht.E_),Ne=Ge("drawer",Lt),[et,xt]=Bt(Ne),Ie=ge()(Ne,`${Ne}-pure`,`${Ne}-${st}`,xt,$t);return et(ie.createElement("div",{className:Ie,style:on},ie.createElement(Fe,Object.assign({prefixCls:Ne},lt))))};Et._InternalPanelDoNotUseOrYouWillBeFired=an;var $e=Et},91857:function(mt,Ke,te){"use strict";var ee=te(59301),ge=te(38819),be=te(92310),pe=te.n(be),Se=te(31561),fe=te(70425),ie=te(18929),de=te(2738),le=te(79676),me=te(53487),ae=te(92343),he=te(36355),oe=te(20834),ne=te(40875),a=te(88088),y=te(47211);const E=null,b=se=>{const{menu:ce,arrow:_e,prefixCls:ye,children:De,trigger:Ee,disabled:je,dropdownRender:Le,getPopupContainer:ht,overlayClassName:Ye,rootClassName:vt,open:we,onOpenChange:Fe,visible:He,onVisibleChange:at,mouseEnterDelay:We=.15,mouseLeaveDelay:pt=.1,autoAdjustOverflow:Pt=!0,placement:At="",overlay:Bt,transitionName:rt}=se,{getPopupContainer:Xe,getPrefixCls:Ct,direction:zt}=ee.useContext(he.E_),Et=ee.useMemo(()=>{const ze=Ct();return rt!==void 0?rt:At.includes("top")?`${ze}-slide-down`:`${ze}-slide-up`},[Ct,At,rt]),an=ee.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:zt==="rtl"?"bottomRight":"bottomLeft",[At,zt]),$e=Ct("dropdown",ye),[yt,Lt]=(0,y.Z)($e),[,on]=(0,a.Z)(),$t=ee.Children.only(De),st=(0,ae.Tm)($t,{className:pe()(`${$e}-trigger`,{[`${$e}-rtl`]:zt==="rtl"},$t.props.className),disabled:je}),lt=je?[]:Ee;let Ge;lt&&lt.includes("contextMenu")&&(Ge=!0);const[Ne,et]=(0,ie.Z)(!1,{value:we!=null?we:He}),xt=(0,fe.useEvent)(ze=>{Fe==null||Fe(ze),at==null||at(ze),et(ze)}),Ie=pe()(Ye,vt,Lt,{[`${$e}-rtl`]:zt==="rtl"}),Re=(0,le.Z)({arrowPointAtCenter:typeof _e=="object"&&_e.pointAtCenter,autoAdjustOverflow:Pt,offset:on.marginXXS,arrowWidth:_e?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Ze=ee.useCallback(()=>{et(!1)},[]),Be=()=>{let ze;return ce!=null&&ce.items?ze=ee.createElement(oe.default,Object.assign({},ce)):typeof Bt=="function"?ze=Bt():ze=Bt,Le&&(ze=Le(ze)),ze=ee.Children.only(typeof ze=="string"?ee.createElement("span",null,ze):ze),ee.createElement(ne.J,{prefixCls:`${$e}-menu`,expandIcon:ee.createElement("span",{className:`${$e}-menu-submenu-arrow`},ee.createElement(ge.Z,{className:`${$e}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ze,validator:ot=>{let{mode:It}=ot}},ze)};return yt(ee.createElement(Se.Z,Object.assign({alignPoint:Ge},(0,de.Z)(se,["rootClassName"]),{mouseEnterDelay:We,mouseLeaveDelay:pt,visible:Ne,builtinPlacements:Re,arrow:!!_e,overlayClassName:Ie,prefixCls:$e,getPopupContainer:ht||Xe,transitionName:Et,trigger:lt,overlay:Be,placement:an,onVisibleChange:xt}),st))};function x(se){return Object.assign(Object.assign({},se),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,me.Z)(b,"dropdown",se=>se,x),re=se=>ee.createElement(z,Object.assign({},se),ee.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=re,Ke.Z=b},38854:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return a}});var ee=te(91857),ge=te(92310),be=te.n(ge),pe=te(59301),Se=te(18785),fe=te(3113),ie=te(36355),de=te(81327),le=te(33234),me=te(47211),ae=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 he=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=pe.useContext(ie.E_),{prefixCls:z,type:re="default",danger:se,disabled:ce,loading:_e,onClick:ye,htmlType:De,children:Ee,className:je,menu:Le,arrow:ht,autoFocus:Ye,overlay:vt,trigger:we,align:Fe,open:He,onOpenChange:at,placement:We,getPopupContainer:pt,href:Pt,icon:At=pe.createElement(Se.Z,null),title:Bt,buttonsRender:rt=Be=>Be,mouseEnterDelay:Xe,mouseLeaveDelay:Ct,overlayClassName:zt,overlayStyle:Et,destroyPopupOnHide:an,dropdownRender:$e}=y,yt=ae(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),on=`${Lt}-button`,[$t,st]=(0,me.Z)(Lt),lt={menu:Le,arrow:ht,autoFocus:Ye,align:Fe,disabled:ce,trigger:ce?[]:we,onOpenChange:at,getPopupContainer:pt||E,mouseEnterDelay:Xe,mouseLeaveDelay:Ct,overlayClassName:zt,overlayStyle:Et,destroyPopupOnHide:an,dropdownRender:$e},{compactSize:Ge,compactItemClassnames:Ne}=(0,le.ri)(Lt,x),et=be()(on,Ne,je,st);"overlay"in y&&(lt.overlay=vt),"open"in y&&(lt.open=He),"placement"in y?lt.placement=We:lt.placement=x==="rtl"?"bottomLeft":"bottomRight";const xt=pe.createElement(fe.ZP,{type:re,danger:se,disabled:ce,loading:_e,onClick:ye,htmlType:De,href:Pt,title:Bt},Ee),Ie=pe.createElement(fe.ZP,{type:re,danger:se,icon:At}),[Re,Ze]=rt([xt,Ie]);return $t(pe.createElement(de.Z.Compact,Object.assign({className:et,size:Ge,block:!0},yt),Re,pe.createElement(ee.Z,Object.assign({},lt),Ze)))};he.__ANT_BUTTON=!0;var oe=he;const ne=ee.Z;ne.Button=oe;var a=ne},47211:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ae}});var ee=te(17313),ge=te(13826),be=te(92899),pe=te(29878),Se=te(19447),fe=te(83116),ie=te(37613),le=he=>{const{componentCls:oe,menuCls:ne,colorError:a,colorTextLightSolid:y}=he,E=`${ne}-item`;return{[`${oe}, ${oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const me=he=>{const{componentCls:oe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:re,fontSize:se,dropdownEdgeChildPadding:ce,colorTextDisabled:_e,fontSizeIcon:ye,controlPaddingHorizontal:De,colorBgElevated:Ee}=he;return[{[oe]:Object.assign(Object.assign({},(0,ee.Wf)(he)),{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:ye}},[`${oe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ye},[`${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:ge.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:ge.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:ge.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:ge.ly}})},(0,Se.ZP)(he,{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:ce,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary},(0,ee.Qy)(he)),{[`${ne}-item-group-title`]:{padding:`${re}px ${De}px`,color:he.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:se,marginInlineEnd:he.marginXS,fontSize:he.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 ${De}px`,color:he.colorText,fontWeight:"normal",fontSize:se,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:he.borderRadiusSM,"&:hover, &-active":{backgroundColor:he.controlItemBgHover}},(0,ee.Qy)(he)),{"&-selected":{color:he.colorPrimary,backgroundColor:he.controlItemBgActive,"&:hover, &-active":{backgroundColor:he.controlItemBgActiveHover}},"&-disabled":{color:_e,cursor:"not-allowed","&:hover":{color:_e,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${he.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:he.colorSplit},[`${oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${oe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:he.colorTextDescription,fontSize:ye,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${he.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:De+he.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${oe}-menu-submenu-title`]:{[`&, ${oe}-menu-submenu-arrow-icon`]:{color:_e,backgroundColor:Ee,cursor:"not-allowed"}},[`${ne}-submenu-selected ${oe}-menu-submenu-title`]:{color:he.colorPrimary}})}},[(0,ge.oN)(he,"slide-up"),(0,ge.oN)(he,"slide-down"),(0,be.Fm)(he,"move-up"),(0,be.Fm)(he,"move-down"),(0,pe._y)(he,"zoom-big")]]};var ae=(0,fe.Z)("Dropdown",(he,oe)=>{let{rootPrefixCls:ne}=oe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:re,borderRadiusLG:se}=he,ce=(E-b*x)/2,{dropdownArrowOffset:_e}=(0,Se.fS)({contentRadius:se}),ye=(0,ie.TS)(he,{menuCls:`${re}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:_e,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:z});return[me(ye),le(ye)]},he=>({zIndexPopup:he.zIndexPopupBase+50}))},8628:function(mt,Ke,te){"use strict";var ee=te(59301),ge=te(34280),be=te(56762),pe=te(69507);function Se(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,ee.useRef)({}),de=(0,be.Z)(),le=(0,pe.ZP)();return(0,ge.Z)(()=>{const me=le.subscribe(ae=>{ie.current=ae,fe&&de()});return()=>le.unsubscribe(me)},[]),ie.current}Ke.Z=Se},11611:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return Kt}});var ee=te(59301),ge=te(15277),be=te(92310),pe=te.n(be),Se=te(60499),fe=te(85899),ie=te(18642),de=te(72190),le=te(43749),me=te(42244),ae=te(55468),he=te(18929),oe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ne=ee.createContext(null),a=0;function y(_t,ft){var Ft=ee.useState(function(){return a+=1,String(a)}),gt=(0,de.Z)(Ft,1),Gt=gt[0],Zt=ee.useContext(ne),Tt={data:ft,canPreview:_t};return ee.useEffect(function(){if(Zt)return Zt.register(Gt,Tt)},[]),ee.useEffect(function(){Zt&&Zt.register(Gt,Tt)},[_t,ft]),Gt}function E(_t){return new Promise(function(ft){var Ft=document.createElement("img");Ft.onerror=function(){return ft(!1)},Ft.onload=function(){return ft(!0)},Ft.src=_t})}function b(_t){var ft=_t.src,Ft=_t.isCustomPlaceholder,gt=_t.fallback,Gt=(0,ee.useState)(Ft?"loading":"normal"),Zt=(0,de.Z)(Gt,2),Tt=Zt[0],kt=Zt[1],Xt=(0,ee.useRef)(!1),dn=Tt==="error";(0,ee.useEffect)(function(){E(ft).then(function(mn){mn||kt("error")})},[ft]),(0,ee.useEffect)(function(){Ft&&!Xt.current?kt("loading"):dn&&kt("normal")},[ft]);var xn=function(){kt("normal")},Fn=function(An){Xt.current=!1,Tt==="loading"&&An!=null&&An.complete&&(An.naturalWidth||An.naturalHeight)&&(Xt.current=!0,xn())},Qn=dn&&gt?{src:gt}:{onLoad:xn,src:ft};return[Fn,Qn,Tt]}var x=te(86923),z=te(8224),re=te(10228),se=te(48736);function ce(_t,ft,Ft,gt){var Gt=ft+Ft,Zt=(Ft-gt)/2;if(Ft>gt){if(ft>0)return(0,ie.Z)({},_t,Zt);if(ft<0&&Gt<gt)return(0,ie.Z)({},_t,-Zt)}else if(ft<0||Gt>gt)return(0,ie.Z)({},_t,ft<0?Zt:-Zt);return{}}function _e(_t,ft,Ft,gt){var Gt=(0,ae.g1)(),Zt=Gt.width,Tt=Gt.height,kt=null;return _t<=Zt&&ft<=Tt?kt={x:0,y:0}:(_t>Zt||ft>Tt)&&(kt=(0,fe.Z)((0,fe.Z)({},ce("x",Ft,_t,Zt)),ce("y",gt,ft,Tt))),kt}var ye=te(13697),De=te(16089),Ee={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function je(_t,ft,Ft,gt){var Gt=(0,ee.useRef)(null),Zt=(0,ee.useRef)([]),Tt=(0,ee.useState)(Ee),kt=(0,de.Z)(Tt,2),Xt=kt[0],dn=kt[1],xn=function(An){dn(Ee),gt&&!(0,ye.Z)(Ee,Xt)&&gt({transform:Ee,action:An})},Fn=function(An,ur){Gt.current===null&&(Zt.current=[],Gt.current=(0,De.Z)(function(){dn(function(rr){var or=rr;return Zt.current.forEach(function(Wt){or=(0,fe.Z)((0,fe.Z)({},or),Wt)}),Gt.current=null,gt==null||gt({transform:or,action:ur}),or})})),Zt.current.push((0,fe.Z)((0,fe.Z)({},Xt),An))},Qn=function(An,ur,rr,or){var Wt=_t.current,io=Wt.width,wr=Wt.height,Tr=Wt.offsetWidth,kr=Wt.offsetHeight,un=Wt.offsetLeft,Sn=Wt.offsetTop,Nn=An,pn=Xt.scale*An;pn>Ft?(Nn=Ft/Xt.scale,pn=Ft):pn<ft&&(Nn=ft/Xt.scale,pn=ft);var cr=rr!=null?rr:innerWidth/2,fr=or!=null?or:innerHeight/2,Ar=Nn-1,Ur=Ar*io*.5,to=Ar*wr*.5,_o=Ar*(cr-Xt.x-un),ho=Ar*(fr-Xt.y-Sn),yo=Xt.x-(_o-Ur),Io=Xt.y-(ho-to);if(An<1&&pn===1){var bo=Tr*pn,Lo=kr*pn,Do=(0,ae.g1)(),To=Do.width,ao=Do.height;bo<=To&&Lo<=ao&&(yo=0,Io=0)}Fn({x:yo,y:Io,scale:pn},ur)};return{transform:Xt,resetTransform:xn,updateTransform:Fn,dispatchZoomChange:Qn}}var Le=te(43403),ht=te(77900),Ye=function(ft){var Ft=ft.visible,gt=ft.maskTransitionName,Gt=ft.getContainer,Zt=ft.prefixCls,Tt=ft.rootClassName,kt=ft.icons,Xt=ft.countRender,dn=ft.showSwitch,xn=ft.showProgress,Fn=ft.current,Qn=ft.transform,mn=ft.count,An=ft.scale,ur=ft.minScale,rr=ft.maxScale,or=ft.closeIcon,Wt=ft.onSwitchLeft,io=ft.onSwitchRight,wr=ft.onClose,Tr=ft.onZoomIn,kr=ft.onZoomOut,un=ft.onRotateRight,Sn=ft.onRotateLeft,Nn=ft.onFlipX,pn=ft.onFlipY,cr=ft.toolbarRender,fr=(0,ee.useContext)(ne),Ar=kt.rotateLeft,Ur=kt.rotateRight,to=kt.zoomIn,_o=kt.zoomOut,ho=kt.close,yo=kt.left,Io=kt.right,bo=kt.flipX,Lo=kt.flipY,Do="".concat(Zt,"-operations-operation");ee.useEffect(function(){var $r=function(uo){uo.keyCode===re.Z.ESC&&wr()};return Ft&&window.addEventListener("keydown",$r),function(){window.removeEventListener("keydown",$r)}},[Ft]);var To=[{icon:Lo,onClick:pn,type:"flipY"},{icon:bo,onClick:Nn,type:"flipX"},{icon:Ar,onClick:Sn,type:"rotateLeft"},{icon:Ur,onClick:un,type:"rotateRight"},{icon:_o,onClick:kr,type:"zoomOut",disabled:An===ur},{icon:to,onClick:Tr,type:"zoomIn",disabled:An===rr}],ao=To.map(function($r){var no,uo=$r.icon,No=$r.onClick,zr=$r.type,Uo=$r.disabled;return ee.createElement("div",{className:pe()(Do,(no={},(0,ie.Z)(no,"".concat(Zt,"-operations-operation-").concat(zr),!0),(0,ie.Z)(no,"".concat(Zt,"-operations-operation-disabled"),!!Uo),no)),onClick:No,key:zr},uo)}),jr=ee.createElement("div",{className:"".concat(Zt,"-operations")},ao);return ee.createElement(ht.default,{visible:Ft,motionName:gt},function($r){var no=$r.className,uo=$r.style;return ee.createElement(Le.Z,{open:!0,getContainer:Gt!=null?Gt:document.body},ee.createElement("div",{className:pe()("".concat(Zt,"-operations-wrapper"),no,Tt),style:uo},or===null?null:ee.createElement("button",{className:"".concat(Zt,"-close"),onClick:wr},or||ho),dn&&ee.createElement(ee.Fragment,null,ee.createElement("div",{className:pe()("".concat(Zt,"-switch-left"),(0,ie.Z)({},"".concat(Zt,"-switch-left-disabled"),Fn===0)),onClick:Wt},yo),ee.createElement("div",{className:pe()("".concat(Zt,"-switch-right"),(0,ie.Z)({},"".concat(Zt,"-switch-right-disabled"),Fn===mn-1)),onClick:io},Io)),ee.createElement("div",{className:"".concat(Zt,"-footer")},xn&&ee.createElement("div",{className:"".concat(Zt,"-progress")},Xt?Xt(Fn+1,mn):"".concat(Fn+1," / ").concat(mn)),cr?cr(jr,(0,fe.Z)({icons:{flipYIcon:ao[0],flipXIcon:ao[1],rotateLeftIcon:ao[2],rotateRightIcon:ao[3],zoomOutIcon:ao[4],zoomInIcon:ao[5]},actions:{onFlipY:pn,onFlipX:Nn,onRotateLeft:Sn,onRotateRight:un,onZoomOut:kr,onZoomIn:Tr},transform:Qn},fr?{current:Fn,total:mn}:{})):jr)))})},vt=Ye,we=1,Fe=1,He=["fallback","src","imgRef"],at=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],We=function(ft){var Ft=ft.fallback,gt=ft.src,Gt=ft.imgRef,Zt=(0,me.Z)(ft,He),Tt=b({src:gt,fallback:Ft}),kt=(0,de.Z)(Tt,2),Xt=kt[0],dn=kt[1];return ee.createElement("img",(0,Se.Z)({ref:function(Fn){Gt.current=Fn,Xt(Fn)}},Zt,dn))},pt=function(ft){var Ft=ft.prefixCls,gt=ft.src,Gt=ft.alt,Zt=ft.fallback,Tt=ft.movable,kt=Tt===void 0?!0:Tt,Xt=ft.onClose,dn=ft.visible,xn=ft.icons,Fn=xn===void 0?{}:xn,Qn=ft.rootClassName,mn=ft.closeIcon,An=ft.getContainer,ur=ft.current,rr=ur===void 0?0:ur,or=ft.count,Wt=or===void 0?1:or,io=ft.countRender,wr=ft.scaleStep,Tr=wr===void 0?.5:wr,kr=ft.minScale,un=kr===void 0?1:kr,Sn=ft.maxScale,Nn=Sn===void 0?50:Sn,pn=ft.transitionName,cr=pn===void 0?"zoom":pn,fr=ft.maskTransitionName,Ar=fr===void 0?"fade":fr,Ur=ft.imageRender,to=ft.imgCommonProps,_o=ft.toolbarRender,ho=ft.onTransform,yo=ft.onChange,Io=(0,me.Z)(ft,at),bo=(0,ee.useRef)(),Lo=(0,ee.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Do=(0,ee.useState)(!1),To=(0,de.Z)(Do,2),ao=To[0],jr=To[1],$r=(0,ee.useContext)(ne),no=$r&&Wt>1,uo=$r&&Wt>=1,No=je(bo,un,Nn,ho),zr=No.transform,Uo=No.resetTransform,Co=No.updateTransform,mo=No.dispatchZoomChange,si=(0,ee.useState)(!0),Eo=(0,de.Z)(si,2),Xo=Eo[0],Bo=Eo[1],wo=zr.rotate,po=zr.scale,$o=zr.x,qo=zr.y,bi=pe()((0,ie.Z)({},"".concat(Ft,"-moving"),ao));(0,ee.useEffect)(function(){Xo||Bo(!0)},[Xo]);var pi=function(){Uo("close")},ei=function(){mo(we+Tr,"zoomIn")},$n=function(){mo(we/(we+Tr),"zoomOut")},En=function(){Co({rotate:wo+90},"rotateRight")},In=function(){Co({rotate:wo-90},"rotateLeft")},Bn=function(){Co({flipX:!zr.flipX},"flipX")},gr=function(){Co({flipY:!zr.flipY},"flipY")},Ir=function(pr){pr==null||pr.preventDefault(),pr==null||pr.stopPropagation(),rr>0&&(Bo(!1),Uo("prev"),yo==null||yo(rr-1,rr))},Xr=function(pr){pr==null||pr.preventDefault(),pr==null||pr.stopPropagation(),rr<Wt-1&&(Bo(!1),Uo("next"),yo==null||yo(rr+1,rr))},Qr=function(){if(dn&&ao){jr(!1);var pr=Lo.current,Mo=pr.transformX,Zo=pr.transformY,Or=$o!==Mo&&qo!==Zo;if(!Or)return;var so=bo.current.offsetWidth*po,ri=bo.current.offsetHeight*po,ti=bo.current.getBoundingClientRect(),vi=ti.left,Si=ti.top,ko=wo%180!==0,ui=_e(ko?ri:so,ko?so:ri,vi,Si);ui&&Co((0,fe.Z)({},ui),"dragRebound")}},fo=function(pr){!kt||pr.button!==0||(pr.preventDefault(),pr.stopPropagation(),Lo.current={deltaX:pr.pageX-zr.x,deltaY:pr.pageY-zr.y,transformX:zr.x,transformY:zr.y},jr(!0))},lo=function(pr){dn&&ao&&Co({x:pr.pageX-Lo.current.deltaX,y:pr.pageY-Lo.current.deltaY},"move")},Ho=function(pr){if(!(!dn||pr.deltaY==0)){var Mo=Math.abs(pr.deltaY/100),Zo=Math.min(Mo,Fe),Or=we+Zo*Tr;pr.deltaY>0&&(Or=we/Or),mo(Or,"wheel",pr.clientX,pr.clientY)}},xo=function(pr){!dn||!no||(pr.keyCode===re.Z.LEFT?Ir():pr.keyCode===re.Z.RIGHT&&Xr())},di=function(pr){dn&&(po!==1?Co({x:0,y:0,scale:1},"doubleClick"):mo(we+Tr,"doubleClick",pr.clientX,pr.clientY))};(0,ee.useEffect)(function(){var Jr,pr,Mo,Zo;if(kt){Mo=(0,z.Z)(window,"mouseup",Qr,!1),Zo=(0,z.Z)(window,"mousemove",lo,!1);try{window.top!==window.self&&(Jr=(0,z.Z)(window.top,"mouseup",Qr,!1),pr=(0,z.Z)(window.top,"mousemove",lo,!1))}catch(Or){(0,se.Kp)(!1,"[rc-image] ".concat(Or))}}return function(){var Or,so,ri,ti;(Or=Mo)===null||Or===void 0||Or.remove(),(so=Zo)===null||so===void 0||so.remove(),(ri=Jr)===null||ri===void 0||ri.remove(),(ti=pr)===null||ti===void 0||ti.remove()}},[dn,ao,$o,qo,wo,kt]),(0,ee.useEffect)(function(){var Jr=(0,z.Z)(window,"keydown",xo,!1);return function(){Jr.remove()}},[dn,no,rr]);var ni=ee.createElement(We,(0,Se.Z)({},to,{width:ft.width,height:ft.height,imgRef:bo,className:"".concat(Ft,"-img"),alt:Gt,style:{transform:"translate3d(".concat(zr.x,"px, ").concat(zr.y,"px, 0) scale3d(").concat(zr.flipX?"-":"").concat(po,", ").concat(zr.flipY?"-":"").concat(po,", 1) rotate(").concat(wo,"deg)"),transitionDuration:!Xo&&"0s"},fallback:Zt,src:gt,onWheel:Ho,onMouseDown:fo,onDoubleClick:di}));return ee.createElement(ee.Fragment,null,ee.createElement(x.Z,(0,Se.Z)({transitionName:cr,maskTransitionName:Ar,closable:!1,keyboard:!0,prefixCls:Ft,onClose:Xt,visible:dn,wrapClassName:bi,rootClassName:Qn,getContainer:An},Io,{afterClose:pi}),ee.createElement("div",{className:"".concat(Ft,"-img-wrapper")},Ur?Ur(ni,(0,fe.Z)({transform:zr},$r?{current:rr}:{})):ni)),ee.createElement(vt,{visible:dn,transform:zr,maskTransitionName:Ar,closeIcon:mn,getContainer:An,prefixCls:Ft,rootClassName:Qn,icons:Fn,countRender:io,showSwitch:no,showProgress:uo,current:rr,count:Wt,scale:po,minScale:un,maxScale:Nn,toolbarRender:_o,onSwitchLeft:Ir,onSwitchRight:Xr,onZoomIn:ei,onZoomOut:$n,onRotateRight:En,onRotateLeft:In,onFlipX:Bn,onFlipY:gr,onClose:Xt}))},Pt=pt,At=te(77654);function Bt(_t){var ft=ee.useState({}),Ft=(0,de.Z)(ft,2),gt=Ft[0],Gt=Ft[1],Zt=ee.useCallback(function(kt,Xt){return Gt(function(dn){return(0,fe.Z)((0,fe.Z)({},dn),{},(0,ie.Z)({},kt,Xt))}),function(){Gt(function(dn){var xn=(0,fe.Z)({},dn);return delete xn[kt],xn})}},[]),Tt=ee.useMemo(function(){return _t?_t.map(function(kt){if(typeof kt=="string")return{data:{src:kt}};var Xt={};return Object.keys(kt).forEach(function(dn){["src"].concat((0,At.Z)(oe)).includes(dn)&&(Xt[dn]=kt[dn])}),{data:Xt}}):Object.keys(gt).reduce(function(kt,Xt){var dn=gt[Xt],xn=dn.canPreview,Fn=dn.data;return xn&&kt.push({data:Fn,id:Xt}),kt},[])},[_t,gt]);return[Tt,Zt]}var rt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xe=["src"],Ct=function(ft){var Ft,gt=ft.previewPrefixCls,Gt=gt===void 0?"rc-image-preview":gt,Zt=ft.children,Tt=ft.icons,kt=Tt===void 0?{}:Tt,Xt=ft.items,dn=ft.preview,xn=ft.fallback,Fn=(0,le.Z)(dn)==="object"?dn:{},Qn=Fn.visible,mn=Fn.onVisibleChange,An=Fn.getContainer,ur=Fn.current,rr=Fn.movable,or=Fn.minScale,Wt=Fn.maxScale,io=Fn.countRender,wr=Fn.closeIcon,Tr=Fn.onChange,kr=Fn.onTransform,un=Fn.toolbarRender,Sn=Fn.imageRender,Nn=(0,me.Z)(Fn,rt),pn=Bt(Xt),cr=(0,de.Z)(pn,2),fr=cr[0],Ar=cr[1],Ur=(0,he.Z)(0,{value:ur}),to=(0,de.Z)(Ur,2),_o=to[0],ho=to[1],yo=(0,ee.useState)(!1),Io=(0,de.Z)(yo,2),bo=Io[0],Lo=Io[1],Do=((Ft=fr[_o])===null||Ft===void 0?void 0:Ft.data)||{},To=Do.src,ao=(0,me.Z)(Do,Xe),jr=(0,he.Z)(!!Qn,{value:Qn,onChange:function(wo,po){mn==null||mn(wo,po,_o)}}),$r=(0,de.Z)(jr,2),no=$r[0],uo=$r[1],No=(0,ee.useState)(null),zr=(0,de.Z)(No,2),Uo=zr[0],Co=zr[1],mo=ee.useCallback(function(Bo,wo,po){var $o=fr.findIndex(function(qo){return qo.id===Bo});uo(!0),Co({x:wo,y:po}),ho($o<0?0:$o),Lo(!0)},[fr]);ee.useEffect(function(){no?bo||ho(0):Lo(!1)},[no]);var si=function(wo,po){ho(wo),Tr==null||Tr(wo,po)},Eo=function(){uo(!1),Co(null)},Xo=ee.useMemo(function(){return{register:Ar,onPreview:mo}},[Ar,mo]);return ee.createElement(ne.Provider,{value:Xo},Zt,ee.createElement(Pt,(0,Se.Z)({"aria-hidden":!no,movable:rr,visible:no,prefixCls:Gt,closeIcon:wr,onClose:Eo,mousePosition:Uo,imgCommonProps:ao,src:To,fallback:xn,icons:kt,minScale:or,maxScale:Wt,getContainer:An,current:_o,count:fr.length,countRender:io,onTransform:kr,toolbarRender:un,imageRender:Sn,onChange:si},Nn)))},zt=Ct,Et=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],an=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],$e=function(ft){var Ft=ft.src,gt=ft.alt,Gt=ft.onPreviewClose,Zt=ft.prefixCls,Tt=Zt===void 0?"rc-image":Zt,kt=ft.previewPrefixCls,Xt=kt===void 0?"".concat(Tt,"-preview"):kt,dn=ft.placeholder,xn=ft.fallback,Fn=ft.width,Qn=ft.height,mn=ft.style,An=ft.preview,ur=An===void 0?!0:An,rr=ft.className,or=ft.onClick,Wt=ft.onError,io=ft.wrapperClassName,wr=ft.wrapperStyle,Tr=ft.rootClassName,kr=(0,me.Z)(ft,Et),un=dn&&dn!==!0,Sn=(0,le.Z)(ur)==="object"?ur:{},Nn=Sn.src,pn=Sn.visible,cr=pn===void 0?void 0:pn,fr=Sn.onVisibleChange,Ar=fr===void 0?Gt:fr,Ur=Sn.getContainer,to=Ur===void 0?void 0:Ur,_o=Sn.mask,ho=Sn.maskClassName,yo=Sn.movable,Io=Sn.icons,bo=Sn.scaleStep,Lo=Sn.minScale,Do=Sn.maxScale,To=Sn.imageRender,ao=Sn.toolbarRender,jr=(0,me.Z)(Sn,an),$r=Nn!=null?Nn:Ft,no=(0,he.Z)(!!cr,{value:cr,onChange:Ar}),uo=(0,de.Z)(no,2),No=uo[0],zr=uo[1],Uo=b({src:Ft,isCustomPlaceholder:un,fallback:xn}),Co=(0,de.Z)(Uo,3),mo=Co[0],si=Co[1],Eo=Co[2],Xo=(0,ee.useState)(null),Bo=(0,de.Z)(Xo,2),wo=Bo[0],po=Bo[1],$o=(0,ee.useContext)(ne),qo=!!ur,bi=function(){zr(!1),po(null)},pi=pe()(Tt,io,Tr,(0,ie.Z)({},"".concat(Tt,"-error"),Eo==="error")),ei=(0,ee.useMemo)(function(){var Bn={};return oe.forEach(function(gr){ft[gr]!==void 0&&(Bn[gr]=ft[gr])}),Bn},oe.map(function(Bn){return ft[Bn]})),$n=(0,ee.useMemo)(function(){return(0,fe.Z)((0,fe.Z)({},ei),{},{src:$r})},[$r,ei]),En=y(qo,$n),In=function(gr){var Ir=(0,ae.os)(gr.target),Xr=Ir.left,Qr=Ir.top;$o?$o.onPreview(En,Xr,Qr):(po({x:Xr,y:Qr}),zr(!0)),or==null||or(gr)};return ee.createElement(ee.Fragment,null,ee.createElement("div",(0,Se.Z)({},kr,{className:pi,onClick:qo?In:or,style:(0,fe.Z)({width:Fn,height:Qn},wr)}),ee.createElement("img",(0,Se.Z)({},ei,{className:pe()("".concat(Tt,"-img"),(0,ie.Z)({},"".concat(Tt,"-img-placeholder"),dn===!0),rr),style:(0,fe.Z)({height:Qn},mn),ref:mo},si,{width:Fn,height:Qn,onError:Wt})),Eo==="loading"&&ee.createElement("div",{"aria-hidden":"true",className:"".concat(Tt,"-placeholder")},dn),_o&&qo&&ee.createElement("div",{className:pe()("".concat(Tt,"-mask"),ho),style:{display:(mn==null?void 0:mn.display)==="none"?"none":void 0}},_o)),!$o&&qo&&ee.createElement(Pt,(0,Se.Z)({"aria-hidden":!No,visible:No,prefixCls:Xt,onClose:bi,mousePosition:wo,src:$r,alt:gt,fallback:xn,getContainer:to,icons:Io,movable:yo,scaleStep:bo,minScale:Lo,maxScale:Do,rootClassName:Tr,imageRender:To,imgCommonProps:ei,toolbarRender:ao},jr)))};$e.PreviewGroup=zt,$e.displayName="Image";var yt=$e,Lt=yt,on=te(62892),$t=te(36355),st=te(31724),lt=te(99267),Ge=te(33853),Ne=te(38819),et={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=et,Ie=te(7657),Re=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:xt}))},Ze=ee.forwardRef(Re),Be=Ze,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,It=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:ot}))},Mt=ee.forwardRef(It),jt=Mt,Dt={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"},Ht=Dt,bt=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:Ht}))},fn=ee.forwardRef(bt),cn=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,vn=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:yn}))},zn=ee.forwardRef(vn),wn=zn,Wn={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"},qn=Wn,Kn=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:qn}))},Vn=ee.forwardRef(Kn),vr=Vn,lr=te(64993),sn=te(73819),Yn=te(17313),ir=te(29878),Zn=te(1950),ar=te(83116),Dr=te(37613);const Mr=_t=>({position:_t||"absolute",inset:0}),Er=_t=>{const{iconCls:ft,motionDurationSlow:Ft,paddingXXS:gt,marginXXS:Gt,prefixCls:Zt,colorTextLightSolid:Tt}=_t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Tt,background:new lr.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ft}`,[`.${Zt}-mask-info`]:Object.assign(Object.assign({},Yn.vS),{padding:`0 ${gt}px`,[ft]:{marginInlineEnd:Gt,svg:{verticalAlign:"baseline"}}})}},Br=_t=>{const{previewCls:ft,modalMaskBg:Ft,paddingSM:gt,marginXL:Gt,margin:Zt,paddingLG:Tt,previewOperationColorDisabled:kt,previewOperationHoverColor:Xt,motionDurationSlow:dn,iconCls:xn,colorTextLightSolid:Fn}=_t,Qn=new lr.C(Ft).setAlpha(.1),mn=Qn.clone().setAlpha(.2);return{[`${ft}-footer`]:{position:"fixed",bottom:Gt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:_t.previewOperationColor},[`${ft}-progress`]:{marginBottom:Zt},[`${ft}-close`]:{position:"fixed",top:Gt,right:{_skip_check_:!0,value:Gt},display:"flex",color:Fn,backgroundColor:Qn.toRgbString(),borderRadius:"50%",padding:gt,outline:0,border:0,cursor:"pointer",transition:`all ${dn}`,"&:hover":{backgroundColor:mn.toRgbString()},[`& > ${xn}`]:{fontSize:_t.previewOperationSize}},[`${ft}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Tt}px`,backgroundColor:Qn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:gt,padding:gt,cursor:"pointer",transition:`all ${dn}`,userSelect:"none",[`&:not(${ft}-operations-operation-disabled):hover > ${xn}`]:{color:Xt},"&-disabled":{color:kt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${xn}`]:{fontSize:_t.previewOperationSize}}}}},sr=_t=>{const{modalMaskBg:ft,iconCls:Ft,previewOperationColorDisabled:gt,previewCls:Gt,zIndexPopup:Zt,motionDurationSlow:Tt}=_t,kt=new lr.C(ft).setAlpha(.1),Xt=kt.clone().setAlpha(.2);return{[`${Gt}-switch-left, ${Gt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Zt+1,display:"flex",alignItems:"center",justifyContent:"center",width:_t.imagePreviewSwitchSize,height:_t.imagePreviewSwitchSize,marginTop:-_t.imagePreviewSwitchSize/2,color:_t.previewOperationColor,background:kt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Tt}`,userSelect:"none","&:hover":{background:Xt.toRgbString()},"&-disabled":{"&, &:hover":{color:gt,background:"transparent",cursor:"not-allowed",[`> ${Ft}`]:{cursor:"not-allowed"}}},[`> ${Ft}`]:{fontSize:_t.previewOperationSize}},[`${Gt}-switch-left`]:{insetInlineStart:_t.marginSM},[`${Gt}-switch-right`]:{insetInlineEnd:_t.marginSM}}},Kr=_t=>{const{motionEaseOut:ft,previewCls:Ft,motionDurationSlow:gt,componentCls:Gt}=_t;return[{[`${Gt}-preview-root`]:{[Ft]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ft}-body`]:Object.assign(Object.assign({},Mr()),{overflow:"hidden"}),[`${Ft}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${gt} ${ft} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Mr()),{transition:`transform ${gt} ${ft} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ft}-moving`]:{[`${Ft}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Gt}-preview-root`]:{[`${Ft}-wrap`]:{zIndex:_t.zIndexPopup}}},{[`${Gt}-preview-operations-wrapper`]:{position:"fixed",zIndex:_t.zIndexPopup+1},"&":[Br(_t),sr(_t)]}]},Ut=_t=>{const{componentCls:ft}=_t;return{[ft]:{position:"relative",display:"inline-block",[`${ft}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ft}-img-placeholder`]:{backgroundColor:_t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ft}-mask`]:Object.assign({},Er(_t)),[`${ft}-mask:hover`]:{opacity:1},[`${ft}-placeholder`]:Object.assign({},Mr())}}},ue=_t=>{const{previewCls:ft}=_t;return{[`${ft}-root`]:(0,ir._y)(_t,"zoom"),"&":(0,Zn.J$)(_t,!0)}};var ve=(0,ar.Z)("Image",_t=>{const ft=`${_t.componentCls}-preview`,Ft=(0,Dr.TS)(_t,{previewCls:ft,modalMaskBg:new lr.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:_t.controlHeightLG});return[Ut(Ft),Kr(Ft),(0,sn.QA)((0,Dr.TS)(Ft,{componentCls:ft})),ue(Ft)]},_t=>({zIndexPopup:_t.zIndexPopupBase+80,previewOperationColor:new lr.C(_t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new lr.C(_t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new lr.C(_t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:_t.fontSizeIcon*1.5})),Pe=function(_t,ft){var Ft={};for(var gt in _t)Object.prototype.hasOwnProperty.call(_t,gt)&&ft.indexOf(gt)<0&&(Ft[gt]=_t[gt]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,gt=Object.getOwnPropertySymbols(_t);Gt<gt.length;Gt++)ft.indexOf(gt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(_t,gt[Gt])&&(Ft[gt[Gt]]=_t[gt[Gt]]);return Ft};const xe={rotateLeft:ee.createElement(Be,null),rotateRight:ee.createElement(jt,null),zoomIn:ee.createElement(wn,null),zoomOut:ee.createElement(vr,null),close:ee.createElement(lt.Z,null),left:ee.createElement(Ge.Z,null),right:ee.createElement(Ne.Z,null),flipX:ee.createElement(cn,null),flipY:ee.createElement(cn,{rotate:90})};var tt=_t=>{var{previewPrefixCls:ft,preview:Ft}=_t,gt=Pe(_t,["previewPrefixCls","preview"]);const{getPrefixCls:Gt}=ee.useContext($t.E_),Zt=Gt("image",ft),Tt=`${Zt}-preview`,kt=Gt(),[Xt,dn]=ve(Zt),xn=ee.useMemo(()=>{var Fn;if(Ft===!1)return Ft;const Qn=typeof Ft=="object"?Ft:{},mn=pe()(dn,(Fn=Qn.rootClassName)!==null&&Fn!==void 0?Fn:"");return Object.assign(Object.assign({},Qn),{transitionName:(0,on.m)(kt,"zoom",Qn.transitionName),maskTransitionName:(0,on.m)(kt,"fade",Qn.maskTransitionName),rootClassName:mn})},[Ft]);return Xt(ee.createElement(Lt.PreviewGroup,Object.assign({preview:xn,previewPrefixCls:Tt,icons:xe},gt)))},dt=function(_t,ft){var Ft={};for(var gt in _t)Object.prototype.hasOwnProperty.call(_t,gt)&&ft.indexOf(gt)<0&&(Ft[gt]=_t[gt]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,gt=Object.getOwnPropertySymbols(_t);Gt<gt.length;Gt++)ft.indexOf(gt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(_t,gt[Gt])&&(Ft[gt[Gt]]=_t[gt[Gt]]);return Ft};const tn=_t=>{const{prefixCls:ft,preview:Ft,className:gt,rootClassName:Gt,style:Zt}=_t,Tt=dt(_t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:kt,locale:Xt=st.Z,getPopupContainer:dn,image:xn}=ee.useContext($t.E_),Fn=kt("image",ft),Qn=kt(),mn=Xt.Image||st.Z.Image,[An,ur]=ve(Fn),rr=pe()(Gt,ur),or=pe()(gt,ur,xn==null?void 0:xn.className),Wt=ee.useMemo(()=>{if(Ft===!1)return Ft;const wr=typeof Ft=="object"?Ft:{},{getContainer:Tr}=wr,kr=dt(wr,["getContainer"]);return Object.assign(Object.assign({mask:ee.createElement("div",{className:`${Fn}-mask-info`},ee.createElement(ge.Z,null),mn==null?void 0:mn.preview),icons:xe},kr),{getContainer:Tr||dn,transitionName:(0,on.m)(Qn,"zoom",wr.transitionName),maskTransitionName:(0,on.m)(Qn,"fade",wr.maskTransitionName)})},[Ft,mn]),io=Object.assign(Object.assign({},xn==null?void 0:xn.style),Zt);return An(ee.createElement(Lt,Object.assign({prefixCls:Fn,preview:Wt,rootClassName:rr,className:or,style:io},Tt)))};tn.PreviewGroup=tt;var Kt=tn},45818:function(mt,Ke,te){"use strict";te.d(Ke,{D:function(){return z},Z:function(){return ce}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(ye,De){return ge.createElement(Se.Z,(0,ee.Z)({},ye,{ref:De,icon:pe}))},ie=ge.forwardRef(fe),de=ie,le=te(33853),me=te(38819),ae=te(92310),he=te.n(ae),oe=te(2738),a=_e=>!isNaN(parseFloat(_e))&&isFinite(_e),y=te(36355),E=te(84966),b=function(_e,ye){var De={};for(var Ee in _e)Object.prototype.hasOwnProperty.call(_e,Ee)&&ye.indexOf(Ee)<0&&(De[Ee]=_e[Ee]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ee=Object.getOwnPropertySymbols(_e);je<Ee.length;je++)ye.indexOf(Ee[je])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ee[je])&&(De[Ee[je]]=_e[Ee[je]]);return De};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ge.createContext({}),re=(()=>{let _e=0;return function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _e+=1,`${ye}${_e}`}})();var ce=ge.forwardRef((_e,ye)=>{const{prefixCls:De,className:Ee,trigger:je,children:Le,defaultCollapsed:ht=!1,theme:Ye="dark",style:vt={},collapsible:we=!1,reverseArrow:Fe=!1,width:He=200,collapsedWidth:at=80,zeroWidthTriggerStyle:We,breakpoint:pt,onCollapse:Pt,onBreakpoint:At}=_e,Bt=b(_e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,ge.useContext)(E.Gs),[Xe,Ct]=(0,ge.useState)("collapsed"in _e?_e.collapsed:ht),[zt,Et]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in _e&&Ct(_e.collapsed)},[_e.collapsed]);const an=(st,lt)=>{"collapsed"in _e||Ct(st),Pt==null||Pt(st,lt)},$e=(0,ge.useRef)();$e.current=st=>{Et(st.matches),At==null||At(st.matches),Xe!==st.matches&&an(st.matches,"responsive")},(0,ge.useEffect)(()=>{function st(Ge){return $e.current(Ge)}let lt;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&pt&&pt in x){lt=Ge(`(max-width: ${x[pt]})`);try{lt.addEventListener("change",st)}catch(Ne){lt.addListener(st)}st(lt)}}return()=>{try{lt==null||lt.removeEventListener("change",st)}catch(Ge){lt==null||lt.removeListener(st)}}},[pt]),(0,ge.useEffect)(()=>{const st=re("ant-sider-");return rt.addSider(st),()=>rt.removeSider(st)},[]);const yt=()=>{an(!Xe,"clickTrigger")},{getPrefixCls:Lt}=(0,ge.useContext)(y.E_),on=()=>{const st=Lt("layout-sider",De),lt=(0,oe.Z)(Bt,["collapsed"]),Ge=Xe?at:He,Ne=a(Ge)?`${Ge}px`:String(Ge),et=parseFloat(String(at||0))===0?ge.createElement("span",{onClick:yt,className:he()(`${st}-zero-width-trigger`,`${st}-zero-width-trigger-${Fe?"right":"left"}`),style:We},je||ge.createElement(de,null)):null,Re={expanded:Fe?ge.createElement(me.Z,null):ge.createElement(le.Z,null),collapsed:Fe?ge.createElement(le.Z,null):ge.createElement(me.Z,null)}[Xe?"collapsed":"expanded"],Ze=je!==null?et||ge.createElement("div",{className:`${st}-trigger`,onClick:yt,style:{width:Ne}},je||Re):null,Be=Object.assign(Object.assign({},vt),{flex:`0 0 ${Ne}`,maxWidth:Ne,minWidth:Ne,width:Ne}),ze=he()(st,`${st}-${Ye}`,{[`${st}-collapsed`]:!!Xe,[`${st}-has-trigger`]:we&&je!==null&&!et,[`${st}-below`]:!!zt,[`${st}-zero-width`]:parseFloat(Ne)===0},Ee);return ge.createElement("aside",Object.assign({className:ze},lt,{style:Be,ref:ye}),ge.createElement("div",{className:`${st}-children`},Le),we||zt&&et?Ze:null)},$t=ge.useMemo(()=>({siderCollapsed:Xe}),[Xe]);return ge.createElement(z.Provider,{value:$t},on())})},84966:function(mt,Ke,te){"use strict";te.d(Ke,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return oe},ZP:function(){return re}});var ee=te(77654),ge=te(92310),be=te.n(ge),pe=te(2738),Se=te(59301),fe=te(36355),ie=te(83116),le=se=>{const{componentCls:ce,bodyBg:_e,lightSiderBg:ye,lightTriggerBg:De,lightTriggerColor:Ee}=se;return{[`${ce}-sider-light`]:{background:ye,[`${ce}-sider-trigger`]:{color:Ee,background:De},[`${ce}-sider-zero-width-trigger`]:{color:Ee,background:De,border:`1px solid ${_e}`,borderInlineStart:0}}}};const me=se=>{const{antCls:ce,componentCls:_e,colorText:ye,triggerColor:De,footerBg:Ee,triggerBg:je,headerHeight:Le,headerPadding:ht,headerColor:Ye,footerPadding:vt,triggerHeight:we,zeroTriggerHeight:Fe,zeroTriggerWidth:He,motionDurationMid:at,motionDurationSlow:We,fontSize:pt,borderRadius:Pt,bodyBg:At,headerBg:Bt,siderBg:rt}=se;return{[_e]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${_e}-has-sider`]:{flexDirection:"row",[`> ${_e}, > ${_e}-content`]:{width:0}},[`${_e}-header, &${_e}-footer`]:{flex:"0 0 auto"},[`${_e}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${at}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:De,lineHeight:`${we}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${at}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Le,insetInlineEnd:-He,zIndex:1,width:He,height:Fe,color:De,fontSize:se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:Pt,borderEndEndRadius:Pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${We} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${We}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:Pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Pt}}}}},le(se)),{"&-rtl":{direction:"rtl"}}),[`${_e}-header`]:{height:Le,padding:ht,color:Ye,lineHeight:`${Le}px`,background:Bt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${_e}-footer`]:{padding:vt,color:ye,fontSize:pt,background:Ee},[`${_e}-content`]:{flex:"auto",minHeight:0}}};var ae=(0,ie.Z)("Layout",se=>[me(se)],se=>{const{colorBgLayout:ce,controlHeight:_e,controlHeightLG:ye,colorText:De,controlHeightSM:Ee,marginXXS:je,colorTextLightSolid:Le,colorBgContainer:ht}=se,Ye=ye*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:_e*2,headerPadding:`0 ${Ye}px`,headerColor:De,footerPadding:`${Ee}px ${Ye}px`,footerBg:ce,siderBg:"#001529",triggerHeight:ye+je*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:ye,zeroTriggerHeight:ye,lightSiderBg:ht,lightTriggerBg:ht,lightTriggerColor:De}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),he=function(se,ce){var _e={};for(var ye in se)Object.prototype.hasOwnProperty.call(se,ye)&&ce.indexOf(ye)<0&&(_e[ye]=se[ye]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ye=Object.getOwnPropertySymbols(se);De<ye.length;De++)ce.indexOf(ye[De])<0&&Object.prototype.propertyIsEnumerable.call(se,ye[De])&&(_e[ye[De]]=se[ye[De]]);return _e};const oe=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(se){let{suffixCls:ce,tagName:_e,displayName:ye}=se;return De=>Se.forwardRef((je,Le)=>Se.createElement(De,Object.assign({ref:Le,suffixCls:ce,tagName:_e},je)))}const a=Se.forwardRef((se,ce)=>{const{prefixCls:_e,suffixCls:ye,className:De,tagName:Ee}=se,je=he(se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Le}=Se.useContext(fe.E_),ht=Le("layout",_e),[Ye,vt]=ae(ht),we=ye?`${ht}-${ye}`:ht;return Ye(Se.createElement(Ee,Object.assign({className:be()(_e||we,De,vt),ref:ce},je)))}),y=Se.forwardRef((se,ce)=>{const{direction:_e}=Se.useContext(fe.E_),[ye,De]=Se.useState([]),{prefixCls:Ee,className:je,rootClassName:Le,children:ht,hasSider:Ye,tagName:vt,style:we}=se,Fe=he(se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,pe.Z)(Fe,["suffixCls"]),{getPrefixCls:at,layout:We}=Se.useContext(fe.E_),pt=at("layout",Ee),[Pt,At]=ae(pt),Bt=be()(pt,{[`${pt}-has-sider`]:typeof Ye=="boolean"?Ye:ye.length>0,[`${pt}-rtl`]:_e==="rtl"},We==null?void 0:We.className,je,Le,At),rt=Se.useMemo(()=>({siderHook:{addSider:Xe=>{De(Ct=>[].concat((0,ee.Z)(Ct),[Xe]))},removeSider:Xe=>{De(Ct=>Ct.filter(zt=>zt!==Xe))}}}),[]);return Pt(Se.createElement(oe.Provider,{value:rt},Se.createElement(vt,Object.assign({ref:ce,className:Bt,style:Object.assign(Object.assign({},We==null?void 0:We.style),we)},He),ht)))}),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(mt,Ke,te){"use strict";te.d(Ke,{J:function(){return fe}});var ee=te(59301),ge=te(33234),be=te(70425),pe=function(ie,de){var le={};for(var me in ie)Object.prototype.hasOwnProperty.call(ie,me)&&de.indexOf(me)<0&&(le[me]=ie[me]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,me=Object.getOwnPropertySymbols(ie);ae<me.length;ae++)de.indexOf(me[ae])<0&&Object.prototype.propertyIsEnumerable.call(ie,me[ae])&&(le[me[ae]]=ie[me[ae]]);return le};const Se=ee.createContext(null),fe=ee.forwardRef((ie,de)=>{const{children:le}=ie,me=pe(ie,["children"]),ae=ee.useContext(Se),he=ee.useMemo(()=>Object.assign(Object.assign({},ae),me),[ae,me.prefixCls,me.mode,me.selectable]);return ee.createElement(Se.Provider,{value:he},ee.createElement(ge.BR,null,(0,be.supportNodeRef)(le)?ee.cloneElement(le,{ref:de}):le))});Ke.Z=Se},20834:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return $t}});var ee=te(15285),ge=te(59301),be=te(45818),pe=te(92310),Se=te.n(pe),fe=te(36355),ie=function(st,lt){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&&lt.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ne=Object.getOwnPropertySymbols(st);et<Ne.length;et++)lt.indexOf(Ne[et])<0&&Object.prototype.propertyIsEnumerable.call(st,Ne[et])&&(Ge[Ne[et]]=st[Ne[et]]);return Ge},le=st=>{const{prefixCls:lt,className:Ge,dashed:Ne}=st,et=ie(st,["prefixCls","className","dashed"]),{getPrefixCls:xt}=ge.useContext(fe.E_),Ie=xt("menu",lt),Re=Se()({[`${Ie}-item-divider-dashed`]:!!Ne},Ge);return ge.createElement(ee.iz,Object.assign({className:Re},et))},me=te(11592),ae=te(2738),he=te(6848),oe=te(92343),a=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=st=>{var lt;const{className:Ge,children:Ne,icon:et,title:xt,danger:Ie}=st,{prefixCls:Re,firstLevel:Ze,direction:Be,disableMenuItemTitleTooltip:ze,inlineCollapsed:ot}=ge.useContext(a),It=fn=>{const cn=ge.createElement("span",{className:`${Re}-title-content`},Ne);return(!et||(0,oe.l$)(Ne)&&Ne.type==="span")&&Ne&&fn&&Ze&&typeof Ne=="string"?ge.createElement("div",{className:`${Re}-inline-collapsed-noicon`},Ne.charAt(0)):cn},{siderCollapsed:Mt}=ge.useContext(be.D);let jt=xt;typeof xt=="undefined"?jt=Ze?Ne:"":xt===!1&&(jt="");const Dt={title:jt};!Mt&&!ot&&(Dt.title=null,Dt.open=!1);const Ht=(0,me.Z)(Ne).length;let bt=ge.createElement(ee.ck,Object.assign({},(0,ae.Z)(st,["title","icon","danger"]),{className:Se()({[`${Re}-item-danger`]:Ie,[`${Re}-item-only-child`]:(et?Ht+1:Ht)===1},Ge),title:typeof xt=="string"?xt:void 0}),(0,oe.Tm)(et,{className:Se()((0,oe.l$)(et)?(lt=et.props)===null||lt===void 0?void 0:lt.className:"",`${Re}-item-icon`)}),It(ot));return ze||(bt=ge.createElement(he.Z,Object.assign({},Dt,{placement:Be==="rtl"?"left":"right",overlayClassName:`${Re}-inline-collapsed-tooltip`}),bt)),bt},x=st=>{var lt;const{popupClassName:Ge,icon:Ne,title:et,theme:xt}=st,Ie=ge.useContext(a),{prefixCls:Re,inlineCollapsed:Ze,theme:Be}=Ie,ze=(0,ee.Xl)();let ot;if(!Ne)ot=Ze&&!ze.length&&et&&typeof et=="string"?ge.createElement("div",{className:`${Re}-inline-collapsed-noicon`},et.charAt(0)):ge.createElement("span",{className:`${Re}-title-content`},et);else{const Mt=(0,oe.l$)(et)&&et.type==="span";ot=ge.createElement(ge.Fragment,null,(0,oe.Tm)(Ne,{className:Se()((0,oe.l$)(Ne)?(lt=Ne.props)===null||lt===void 0?void 0:lt.className:"",`${Re}-item-icon`)}),Mt?et:ge.createElement("span",{className:`${Re}-title-content`},et))}const It=ge.useMemo(()=>Object.assign(Object.assign({},Ie),{firstLevel:!1}),[Ie]);return ge.createElement(a.Provider,{value:It},ge.createElement(ee.Wd,Object.assign({},(0,ae.Z)(st,["icon"]),{title:ot,popupClassName:Se()(Re,Ge,`${Re}-${xt||Be}`)})))},z=te(18785),re=te(70425),se=te(62892),ce=te(40875),_e=function(st,lt){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&&lt.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ne=Object.getOwnPropertySymbols(st);et<Ne.length;et++)lt.indexOf(Ne[et])<0&&Object.prototype.propertyIsEnumerable.call(st,Ne[et])&&(Ge[Ne[et]]=st[Ne[et]]);return Ge};function ye(st){return(st||[]).map((lt,Ge)=>{if(lt&&typeof lt=="object"){const Ne=lt,{label:et,children:xt,key:Ie,type:Re}=Ne,Ze=_e(Ne,["label","children","key","type"]),Be=Ie!=null?Ie:`tmp-${Ge}`;return xt||Re==="group"?Re==="group"?ge.createElement(ee.BW,Object.assign({key:Be},Ze,{title:et}),ye(xt)):ge.createElement(x,Object.assign({key:Be},Ze,{title:et}),ye(xt)):Re==="divider"?ge.createElement(le,Object.assign({key:Be},Ze)):ge.createElement(E,Object.assign({key:Be},Ze),et)}return null}).filter(lt=>lt)}function De(st){return ge.useMemo(()=>st&&ye(st),[st])}var Ee=te(64993),je=te(17313),Le=te(8378),ht=te(13826),Ye=te(29878),vt=te(83116),we=te(37613),He=st=>{const{componentCls:lt,motionDurationSlow:Ge,horizontalLineHeight:Ne,colorSplit:et,lineWidth:xt,lineType:Ie,itemPaddingInline:Re}=st;return{[`${lt}-horizontal`]:{lineHeight:Ne,border:0,borderBottom:`${xt}px ${Ie} ${et}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${lt}-item, ${lt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Re},[`> ${lt}-item:hover,
> ${lt}-item-active,
> ${lt}-submenu ${lt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${lt}-item, ${lt}-submenu-title`]:{transition:[`border-color ${Ge}`,`background ${Ge}`].join(",")},[`${lt}-submenu-arrow`]:{display:"none"}}}},We=st=>{let{componentCls:lt,menuArrowOffset:Ge}=st;return{[`${lt}-rtl`]:{direction:"rtl"},[`${lt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${lt}-rtl${lt}-vertical,
${lt}-submenu-rtl ${lt}-vertical`]:{[`${lt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(45deg) translateY(${Ge})`}}}}};const pt=st=>Object.assign({},(0,je.oN)(st));var At=(st,lt)=>{const{componentCls:Ge,itemColor:Ne,itemSelectedColor:et,groupTitleColor:xt,itemBg:Ie,subMenuItemBg:Re,itemSelectedBg:Ze,activeBarHeight:Be,activeBarWidth:ze,activeBarBorderWidth:ot,motionDurationSlow:It,motionEaseInOut:Mt,motionEaseOut:jt,itemPaddingInline:Dt,motionDurationMid:Ht,itemHoverColor:bt,lineType:fn,colorSplit:cn,itemDisabledColor:wt,dangerItemColor:yn,dangerItemHoverColor:vn,dangerItemSelectedColor:zn,dangerItemActiveBg:wn,dangerItemSelectedBg:Wn,itemHoverBg:qn,itemActiveBg:Kn,menuSubMenuBg:Vn,horizontalItemSelectedColor:vr,horizontalItemSelectedBg:lr,horizontalItemBorderRadius:sn,horizontalItemHoverBg:Yn,popupBg:ir}=st;return{[`${Ge}-${lt}, ${Ge}-${lt} > ${Ge}`]:{color:Ne,background:Ie,[`&${Ge}-root:focus-visible`]:Object.assign({},pt(st)),[`${Ge}-item-group-title`]:{color:xt},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:et}},[`${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:qn},"&:active":{backgroundColor:Kn}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:qn},"&:active":{backgroundColor:Kn}}},[`${Ge}-item-danger`]:{color:yn,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:vn}},[`&${Ge}-item:active`]:{background:wn}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:et,[`&${Ge}-item-danger`]:{color:zn},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:Ze,[`&${Ge}-item-danger`]:{backgroundColor:Wn}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},pt(st))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:Vn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:ir},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},lt==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:ot,marginTop:-ot,marginBottom:0,borderRadius:sn,"&::after":{position:"absolute",insetInline:Dt,bottom:0,borderBottom:`${Be}px solid transparent`,transition:`border-color ${It} ${Mt}`,content:'""'},"&:hover, &-active, &-open":{background:Yn,"&::after":{borderBottomWidth:Be,borderBottomColor:vr}},"&-selected":{color:vr,backgroundColor:lr,"&:hover":{backgroundColor:lr},"&::after":{borderBottomWidth:Be,borderBottomColor:vr}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${ot}px ${fn} ${cn}`}},[`&${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 ${et}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${jt}`,`opacity ${Ht} ${jt}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:zn}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${Mt}`,`opacity ${Ht} ${Mt}`].join(",")}}}}}};const Bt=st=>{const{componentCls:lt,itemHeight:Ge,itemMarginInline:Ne,padding:et,menuArrowSize:xt,marginXS:Ie,itemMarginBlock:Re}=st,Ze=et+xt+Ie;return{[`${lt}-item`]:{position:"relative",overflow:"hidden"},[`${lt}-item, ${lt}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:et,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ne,marginBlock:Re,width:`calc(100% - ${Ne*2}px)`},[`> ${lt}-item,
> ${lt}-submenu > ${lt}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`},[`${lt}-item-group-list ${lt}-submenu-title,
${lt}-submenu-title`]:{paddingInlineEnd:Ze}}};var Xe=st=>{const{componentCls:lt,iconCls:Ge,itemHeight:Ne,colorTextLightSolid:et,dropdownWidth:xt,controlHeightLG:Ie,motionDurationMid:Re,motionEaseOut:Ze,paddingXL:Be,itemMarginInline:ze,fontSizeLG:ot,motionDurationSlow:It,paddingXS:Mt,boxShadowSecondary:jt,collapsedWidth:Dt,collapsedIconSize:Ht}=st,bt={height:Ne,lineHeight:`${Ne}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[lt]:{"&-inline, &-vertical":Object.assign({[`&${lt}-root`]:{boxShadow:"none"}},Bt(st))},[`${lt}-submenu-popup`]:{[`${lt}-vertical`]:Object.assign(Object.assign({},Bt(st)),{boxShadow:jt})}},{[`${lt}-submenu-popup ${lt}-vertical${lt}-sub`]:{minWidth:xt,maxHeight:`calc(100vh - ${Ie*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${lt}-inline`]:{width:"100%",[`&${lt}-root`]:{[`${lt}-item, ${lt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${It}`,`background ${It}`,`padding ${Re} ${Ze}`].join(","),[`> ${lt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${lt}-sub${lt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${lt}-submenu > ${lt}-submenu-title`]:bt,[`& ${lt}-item-group-title`]:{paddingInlineStart:Be}},[`${lt}-item`]:bt}},{[`${lt}-inline-collapsed`]:{width:Dt,[`&${lt}-root`]:{[`${lt}-item, ${lt}-submenu ${lt}-submenu-title`]:{[`> ${lt}-inline-collapsed-noicon`]:{fontSize:ot,textAlign:"center"}}},[`> ${lt}-item,
> ${lt}-item-group > ${lt}-item-group-list > ${lt}-item,
> ${lt}-item-group > ${lt}-item-group-list > ${lt}-submenu > ${lt}-submenu-title,
> ${lt}-submenu > ${lt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ot/2}px - ${ze}px)`,textOverflow:"clip",[`
${lt}-submenu-arrow,
${lt}-submenu-expand-icon
`]:{opacity:0},[`${lt}-item-icon, ${Ge}`]:{margin:0,fontSize:Ht,lineHeight:`${Ne}px`,"+ span":{display:"inline-block",opacity:0}}},[`${lt}-item-icon, ${Ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${lt}-item-icon, ${Ge}`]:{display:"none"},"a, a:hover":{color:et}},[`${lt}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:Mt})}}]};const Ct=st=>{const{componentCls:lt,motionDurationSlow:Ge,motionDurationMid:Ne,motionEaseInOut:et,motionEaseOut:xt,iconCls:Ie,iconSize:Re,iconMarginInlineEnd:Ze}=st;return{[`${lt}-item, ${lt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${Ge} ${et}`].join(","),[`${lt}-item-icon, ${Ie}`]:{minWidth:Re,fontSize:Re,transition:[`font-size ${Ne} ${xt}`,`margin ${Ge} ${et}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${Ge} ${et}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${lt}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${lt}-item-only-child`]:{[`> ${Ie}, > ${lt}-item-icon`]:{marginInlineEnd:0}}},[`${lt}-item-disabled, ${lt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${lt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zt=st=>{const{componentCls:lt,motionDurationSlow:Ge,motionEaseInOut:Ne,borderRadius:et,menuArrowSize:xt,menuArrowOffset:Ie}=st;return{[`${lt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:st.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:et,transition:[`background ${Ge} ${Ne}`,`transform ${Ge} ${Ne}`,`top ${Ge} ${Ne}`,`color ${Ge} ${Ne}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ie})`},"&::after":{transform:`rotate(-45deg) translateY(${Ie})`}}}}},Et=st=>{const{antCls:lt,componentCls:Ge,fontSize:Ne,motionDurationSlow:et,motionDurationMid:xt,motionEaseInOut:Ie,paddingXS:Re,padding:Ze,colorSplit:Be,lineWidth:ze,zIndexPopup:ot,borderRadiusLG:It,subMenuItemBorderRadius:Mt,menuArrowSize:jt,menuArrowOffset:Dt,lineType:Ht,menuPanelMaskInset:bt,groupTitleLineHeight:fn,groupTitleFontSize:cn}=st;return[{"":{[`${Ge}`]:Object.assign(Object.assign({},(0,je.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,je.Wf)(st)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${et} 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:st.itemBorderRadius},[`${Ge}-item-group-title`]:{padding:`${Re}px ${Ze}px`,fontSize:cn,lineHeight:fn,transition:`all ${et}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${et} ${Ie}`,`background ${et} ${Ie}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${et} ${Ie}`,`background ${et} ${Ie}`,`padding ${xt} ${Ie}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${et} ${Ie}`,`padding ${et} ${Ie}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${et}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Be,borderStyle:Ht,borderWidth:0,borderTopWidth:ze,marginBlock:ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(st)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${Ne*2}px ${Ze}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ot,borderRadius:It,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:st.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:st.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:st.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:st.paddingXS},[`> ${Ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:It},Ct(st)),zt(st)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:Mt},[`${Ge}-submenu-title::after`]:{transition:`transform ${et} ${Ie}`}})}}),zt(st)),{[`&-inline-collapsed ${Ge}-submenu-arrow,
&-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dt})`},"&::after":{transform:`rotate(45deg) translateX(-${Dt})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dt})`},"&::before":{transform:`rotate(45deg) translateX(${Dt})`}}})},{[`${lt}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var an=(st,lt)=>(0,vt.Z)("Menu",Ne=>{if(lt===!1)return[];const{colorBgElevated:et,colorPrimary:xt,colorTextLightSolid:Ie,controlHeightLG:Re,fontSize:Ze,darkItemColor:Be,darkDangerItemColor:ze,darkItemBg:ot,darkSubMenuItemBg:It,darkItemSelectedColor:Mt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Dt,darkItemHoverBg:Ht,darkGroupTitleColor:bt,darkItemHoverColor:fn,darkItemDisabledColor:cn,darkDangerItemHoverColor:wt,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:vn}=Ne,zn=Ze/7*5,wn=(0,we.TS)(Ne,{menuArrowSize:zn,menuHorizontalHeight:Re*1.15,menuArrowOffset:`${zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:et}),Wn=(0,we.TS)(wn,{itemColor:Be,itemHoverColor:fn,groupTitleColor:bt,itemSelectedColor:Mt,itemBg:ot,popupBg:ot,subMenuItemBg:It,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ht,itemDisabledColor:cn,dangerItemColor:ze,dangerItemHoverColor:wt,dangerItemSelectedColor:yn,dangerItemActiveBg:vn,dangerItemSelectedBg:Dt,menuSubMenuBg:It,horizontalItemSelectedColor:Ie,horizontalItemSelectedBg:xt});return[Et(wn),He(wn),Xe(wn),At(wn,"light"),At(Wn,"dark"),We(wn),(0,Le.Z)(wn),(0,ht.oN)(wn,"slide-up"),(0,ht.oN)(wn,"slide-down"),(0,Ye._y)(wn,"zoom-big")]},Ne=>{const{colorPrimary:et,colorError:xt,colorTextDisabled:Ie,colorErrorBg:Re,colorText:Ze,colorTextDescription:Be,colorBgContainer:ze,colorFillAlter:ot,colorFillContent:It,lineWidth:Mt,lineWidthBold:jt,controlItemBgActive:Dt,colorBgTextHover:Ht,controlHeightLG:bt,lineHeight:fn,colorBgElevated:cn,marginXXS:wt,padding:yn,fontSize:vn,controlHeightSM:zn,fontSizeLG:wn,colorTextLightSolid:Wn,colorErrorHover:qn}=Ne,Kn=new Ee.C(Wn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ne.zIndexPopupBase+50,radiusItem:Ne.borderRadiusLG,itemBorderRadius:Ne.borderRadiusLG,radiusSubMenuItem:Ne.borderRadiusSM,subMenuItemBorderRadius:Ne.borderRadiusSM,colorItemText:Ze,itemColor:Ze,colorItemTextHover:Ze,itemHoverColor:Ze,colorItemTextHoverHorizontal:et,horizontalItemHoverColor:et,colorGroupTitle:Be,groupTitleColor:Be,colorItemTextSelected:et,itemSelectedColor:et,colorItemTextSelectedHorizontal:et,horizontalItemSelectedColor:et,colorItemBg:ze,itemBg:ze,colorItemBgHover:Ht,itemHoverBg:Ht,colorItemBgActive:It,itemActiveBg:Dt,colorSubItemBg:ot,subMenuItemBg:ot,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Mt,activeBarBorderWidth:Mt,colorItemTextDisabled:Ie,itemDisabledColor:Ie,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:cn,itemMarginBlock:wt,itemPaddingInline:yn,horizontalLineHeight:`${bt*1.15}px`,iconSize:vn,iconMarginInlineEnd:zn-vn,collapsedIconSize:wn,groupTitleFontSize:vn,darkItemDisabledColor:new Ee.C(Wn).setAlpha(.25).toRgbString(),darkItemColor:Kn,darkDangerItemColor:xt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wn,darkItemSelectedBg:et,darkDangerItemSelectedBg:xt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kn,darkItemHoverColor:Wn,darkDangerItemHoverColor:qn,darkDangerItemSelectedColor:Wn,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"]]})(st),$e=function(st,lt){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&&lt.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ne=Object.getOwnPropertySymbols(st);et<Ne.length;et++)lt.indexOf(Ne[et])<0&&Object.prototype.propertyIsEnumerable.call(st,Ne[et])&&(Ge[Ne[et]]=st[Ne[et]]);return Ge},Lt=(0,ge.forwardRef)((st,lt)=>{var Ge,Ne;const et=ge.useContext(ce.Z),xt=et||{},{getPrefixCls:Ie,getPopupContainer:Re,direction:Ze,menu:Be}=ge.useContext(fe.E_),ze=Ie(),{prefixCls:ot,className:It,style:Mt,theme:jt="light",expandIcon:Dt,_internalDisableMenuItemTitleTooltip:Ht,inlineCollapsed:bt,siderCollapsed:fn,items:cn,children:wt,rootClassName:yn,mode:vn,selectable:zn,onClick:wn,overflowedIndicatorPopupClassName:Wn}=st,qn=$e(st,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kn=(0,ae.Z)(qn,["collapsedWidth"]),Vn=De(cn)||wt;(Ge=xt.validator)===null||Ge===void 0||Ge.call(xt,{mode:vn});const vr=(0,re.useEvent)(function(){var sr;wn==null||wn.apply(void 0,arguments),(sr=xt.onClick)===null||sr===void 0||sr.call(xt)}),lr=xt.mode||vn,sn=zn!=null?zn:xt.selectable,Yn=ge.useMemo(()=>fn!==void 0?fn:bt,[bt,fn]),ir={horizontal:{motionName:`${ze}-slide-up`},inline:(0,se.Z)(ze),other:{motionName:`${ze}-zoom-big`}},Zn=Ie("menu",ot||xt.prefixCls),[ar,Dr]=an(Zn,!et),Mr=Se()(`${Zn}-${jt}`,Be==null?void 0:Be.className,It);let Er;if(typeof Dt=="function")Er=Dt;else if(Dt===null||Dt===!1)Er=null;else if(xt.expandIcon===null||xt.expandIcon===!1)Er=null;else{const sr=Dt!=null?Dt:xt.expandIcon;Er=(0,oe.Tm)(sr,{className:Se()(`${Zn}-submenu-expand-icon`,(0,oe.l$)(sr)?(Ne=sr.props)===null||Ne===void 0?void 0:Ne.className:"")})}const Br=ge.useMemo(()=>({prefixCls:Zn,inlineCollapsed:Yn||!1,direction:Ze,firstLevel:!0,theme:jt,mode:lr,disableMenuItemTitleTooltip:Ht}),[Zn,Yn,Ze,Ht,jt]);return ar(ge.createElement(ce.Z.Provider,{value:null},ge.createElement(a.Provider,{value:Br},ge.createElement(ee.ZP,Object.assign({getPopupContainer:Re,overflowedIndicator:ge.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Zn,`${Zn}-${jt}`,Wn),mode:lr,selectable:sn,onClick:vr},Kn,{inlineCollapsed:Yn,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),Mt),className:Mr,prefixCls:Zn,direction:Ze,defaultMotions:ir,expandIcon:Er,ref:lt,rootClassName:Se()(yn,Dr)}),Vn))))});const on=(0,ge.forwardRef)((st,lt)=>{const Ge=(0,ge.useRef)(null),Ne=ge.useContext(be.D);return(0,ge.useImperativeHandle)(lt,()=>({menu:Ge.current,focus:et=>{var xt;(xt=Ge.current)===null||xt===void 0||xt.focus(et)}})),ge.createElement(Lt,Object.assign({ref:Ge},st,Ne))});on.Item=E,on.SubMenu=x,on.Divider=le,on.ItemGroup=ee.BW;var $t=on},58421:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return xt}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(Re,Ze){return ge.createElement(Se.Z,(0,ee.Z)({},Re,{ref:Ze,icon:pe}))},ie=ge.forwardRef(fe),de=ie,le=te(49198),me=te(33853),ae=te(38819),he=te(92310),oe=te.n(he),ne=te(18642),a=te(85899),y=te(38705),E=te(17212),b=te(39153),x=te(55401),z=te(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},se=re,ce=te(91735),_e=function(Ie){(0,b.Z)(Ze,Ie);var Re=(0,x.Z)(Ze);function Ze(){var Be;(0,y.Z)(this,Ze);for(var ze=arguments.length,ot=new Array(ze),It=0;It<ze;It++)ot[It]=arguments[It];return Be=Re.call.apply(Re,[this].concat(ot)),Be.state={goInputText:""},Be.getValidValue=function(){var Mt=Be.state.goInputText;return!Mt||Number.isNaN(Mt)?void 0:Number(Mt)},Be.buildOptionText=function(Mt){return"".concat(Mt," ").concat(Be.props.locale.items_per_page)},Be.changeSize=function(Mt){Be.props.changeSize(Number(Mt))},Be.handleChange=function(Mt){Be.setState({goInputText:Mt.target.value})},Be.handleBlur=function(Mt){var jt=Be.props,Dt=jt.goButton,Ht=jt.quickGo,bt=jt.rootPrefixCls,fn=Be.state.goInputText;Dt||fn===""||(Be.setState({goInputText:""}),!(Mt.relatedTarget&&(Mt.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Mt.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&Ht(Be.getValidValue()))},Be.go=function(Mt){var jt=Be.state.goInputText;jt!==""&&(Mt.keyCode===se.ENTER||Mt.type==="click")&&(Be.setState({goInputText:""}),Be.props.quickGo(Be.getValidValue()))},Be}return(0,E.Z)(Ze,[{key:"getPageSizeOptions",value:function(){var ze=this.props,ot=ze.pageSize,It=ze.pageSizeOptions;return It.some(function(Mt){return Mt.toString()===ot.toString()})?It:It.concat([ot.toString()]).sort(function(Mt,jt){var Dt=Number.isNaN(Number(Mt))?0:Number(Mt),Ht=Number.isNaN(Number(jt))?0:Number(jt);return Dt-Ht})}},{key:"render",value:function(){var ze=this,ot=this.props,It=ot.pageSize,Mt=ot.locale,jt=ot.rootPrefixCls,Dt=ot.changeSize,Ht=ot.quickGo,bt=ot.goButton,fn=ot.selectComponentClass,cn=ot.buildOptionText,wt=ot.selectPrefixCls,yn=ot.disabled,vn=this.state.goInputText,zn="".concat(jt,"-options"),wn=fn,Wn=null,qn=null,Kn=null;if(!Dt&&!Ht)return null;var Vn=this.getPageSizeOptions();if(Dt&&wn){var vr=Vn.map(function(lr,sn){return ge.createElement(wn.Option,{key:sn,value:lr.toString()},(cn||ze.buildOptionText)(lr))});Wn=ge.createElement(wn,{disabled:yn,prefixCls:wt,showSearch:!1,className:"".concat(zn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(It||Vn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(sn){return sn.parentNode},"aria-label":Mt.page_size,defaultOpen:!1},vr)}return Ht&&(bt&&(Kn=typeof bt=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:yn,className:"".concat(zn,"-quick-jumper-button")},Mt.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),qn=ge.createElement("div",{className:"".concat(zn,"-quick-jumper")},Mt.jump_to,ge.createElement("input",{disabled:yn,type:"text",value:vn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Mt.page}),Mt.page,Kn)),ge.createElement("li",{className:"".concat(zn)},Wn,qn)}}]),Ze}(ge.Component);_e.defaultProps={pageSizeOptions:["10","20","50","100"]};var ye=_e,De=function(Re){var Ze,Be=Re.rootPrefixCls,ze=Re.page,ot=Re.active,It=Re.className,Mt=Re.showTitle,jt=Re.onClick,Dt=Re.onKeyPress,Ht=Re.itemRender,bt="".concat(Be,"-item"),fn=oe()(bt,"".concat(bt,"-").concat(ze),(Ze={},(0,ne.Z)(Ze,"".concat(bt,"-active"),ot),(0,ne.Z)(Ze,"".concat(bt,"-disabled"),!ze),(0,ne.Z)(Ze,Re.className,It),Ze)),cn=function(){jt(ze)},wt=function(zn){Dt(zn,jt,ze)},yn=Ht(ze,"page",ge.createElement("a",{rel:"nofollow"},ze));return yn?ge.createElement("li",{title:Mt?ze.toString():null,className:fn,onClick:cn,onKeyPress:wt,tabIndex:0},yn):null},Ee=De;function je(){}function Le(Ie){var Re=Number(Ie);return typeof Re=="number"&&!Number.isNaN(Re)&&isFinite(Re)&&Math.floor(Re)===Re}var ht=function(Re,Ze,Be){return Be};function Ye(Ie,Re,Ze){var Be=typeof Ie=="undefined"?Re.pageSize:Ie;return Math.floor((Ze.total-1)/Be)+1}var vt=function(Ie){(0,b.Z)(Ze,Ie);var Re=(0,x.Z)(Ze);function Ze(Be){var ze;(0,y.Z)(this,Ze),ze=Re.call(this,Be),ze.paginationNode=ge.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(Dt,Ht){var bt=ze.props.prefixCls,fn=Dt||ge.createElement("button",{type:"button","aria-label":Ht,className:"".concat(bt,"-item-link")});return typeof Dt=="function"&&(fn=ge.createElement(Dt,(0,a.Z)({},ze.props))),fn},ze.isValid=function(Dt){var Ht=ze.props.total;return Le(Dt)&&Dt!==ze.state.current&&Le(Ht)&&Ht>0},ze.shouldDisplayQuickJumper=function(){var Dt=ze.props,Ht=Dt.showQuickJumper,bt=Dt.total,fn=ze.state.pageSize;return bt<=fn?!1:Ht},ze.handleKeyDown=function(Dt){(Dt.keyCode===se.ARROW_UP||Dt.keyCode===se.ARROW_DOWN)&&Dt.preventDefault()},ze.handleKeyUp=function(Dt){var Ht=ze.getValidValue(Dt),bt=ze.state.currentInputValue;Ht!==bt&&ze.setState({currentInputValue:Ht}),Dt.keyCode===se.ENTER?ze.handleChange(Ht):Dt.keyCode===se.ARROW_UP?ze.handleChange(Ht-1):Dt.keyCode===se.ARROW_DOWN&&ze.handleChange(Ht+1)},ze.handleBlur=function(Dt){var Ht=ze.getValidValue(Dt);ze.handleChange(Ht)},ze.changePageSize=function(Dt){var Ht=ze.state.current,bt=Ye(Dt,ze.state,ze.props);Ht=Ht>bt?bt:Ht,bt===0&&(Ht=ze.state.current),typeof Dt=="number"&&("pageSize"in ze.props||ze.setState({pageSize:Dt}),"current"in ze.props||ze.setState({current:Ht,currentInputValue:Ht})),ze.props.onShowSizeChange(Ht,Dt),"onChange"in ze.props&&ze.props.onChange&&ze.props.onChange(Ht,Dt)},ze.handleChange=function(Dt){var Ht=ze.props,bt=Ht.disabled,fn=Ht.onChange,cn=ze.state,wt=cn.pageSize,yn=cn.current,vn=cn.currentInputValue;if(ze.isValid(Dt)&&!bt){var zn=Ye(void 0,ze.state,ze.props),wn=Dt;return Dt>zn?wn=zn:Dt<1&&(wn=1),"current"in ze.props||ze.setState({current:wn}),wn!==vn&&ze.setState({currentInputValue:wn}),fn(wn,wt),wn}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(Dt,Ht){if(Dt.key==="Enter"||Dt.charCode===13){for(var bt=arguments.length,fn=new Array(bt>2?bt-2:0),cn=2;cn<bt;cn++)fn[cn-2]=arguments[cn];Ht.apply(void 0,fn)}},ze.runIfEnterPrev=function(Dt){ze.runIfEnter(Dt,ze.prev)},ze.runIfEnterNext=function(Dt){ze.runIfEnter(Dt,ze.next)},ze.runIfEnterJumpPrev=function(Dt){ze.runIfEnter(Dt,ze.jumpPrev)},ze.runIfEnterJumpNext=function(Dt){ze.runIfEnter(Dt,ze.jumpNext)},ze.handleGoTO=function(Dt){(Dt.keyCode===se.ENTER||Dt.type==="click")&&ze.handleChange(ze.state.currentInputValue)},ze.renderPrev=function(Dt){var Ht=ze.props,bt=Ht.prevIcon,fn=Ht.itemRender,cn=fn(Dt,"prev",ze.getItemIcon(bt,"prev page")),wt=!ze.hasPrev();return(0,ge.isValidElement)(cn)?(0,ge.cloneElement)(cn,{disabled:wt}):cn},ze.renderNext=function(Dt){var Ht=ze.props,bt=Ht.nextIcon,fn=Ht.itemRender,cn=fn(Dt,"next",ze.getItemIcon(bt,"next page")),wt=!ze.hasNext();return(0,ge.isValidElement)(cn)?(0,ge.cloneElement)(cn,{disabled:wt}):cn};var ot=Be.onChange!==je,It="current"in Be;It&&!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 Mt=Be.defaultCurrent;"current"in Be&&(Mt=Be.current);var jt=Be.defaultPageSize;return"pageSize"in Be&&(jt=Be.pageSize),Mt=Math.min(Mt,Ye(jt,void 0,Be)),ze.state={current:Mt,currentInputValue:Mt,pageSize:jt},ze}return(0,E.Z)(Ze,[{key:"componentDidUpdate",value:function(ze,ot){var It=this.props.prefixCls;if(ot.current!==this.state.current&&this.paginationNode.current){var Mt=this.paginationNode.current.querySelector(".".concat(It,"-item-").concat(ot.current));if(Mt&&document.activeElement===Mt){var jt;Mt==null||(jt=Mt.blur)===null||jt===void 0||jt.call(Mt)}}}},{key:"getValidValue",value:function(ze){var ot=ze.target.value,It=Ye(void 0,this.state,this.props),Mt=this.state.currentInputValue,jt;return ot===""?jt=ot:Number.isNaN(Number(ot))?jt=Mt:ot>=It?jt=It:jt=Number(ot),jt}},{key:"getShowSizeChanger",value:function(){var ze=this.props,ot=ze.showSizeChanger,It=ze.total,Mt=ze.totalBoundaryShowSizeChanger;return typeof ot!="undefined"?ot:It>Mt}},{key:"render",value:function(){var ze=this.props,ot=ze.prefixCls,It=ze.className,Mt=ze.style,jt=ze.disabled,Dt=ze.hideOnSinglePage,Ht=ze.total,bt=ze.locale,fn=ze.showQuickJumper,cn=ze.showLessItems,wt=ze.showTitle,yn=ze.showTotal,vn=ze.simple,zn=ze.itemRender,wn=ze.showPrevNextJumpers,Wn=ze.jumpPrevIcon,qn=ze.jumpNextIcon,Kn=ze.selectComponentClass,Vn=ze.selectPrefixCls,vr=ze.pageSizeOptions,lr=this.state,sn=lr.current,Yn=lr.pageSize,ir=lr.currentInputValue;if(Dt===!0&&Ht<=Yn)return null;var Zn=Ye(void 0,this.state,this.props),ar=[],Dr=null,Mr=null,Er=null,Br=null,sr=null,Kr=fn&&fn.goButton,Ut=cn?1:2,ue=sn-1>0?sn-1:0,ve=sn+1<Zn?sn+1:Zn,Pe=(0,z.Z)(this.props,{aria:!0,data:!0}),xe=yn&&ge.createElement("li",{className:"".concat(ot,"-total-text")},yn(Ht,[Ht===0?0:(sn-1)*Yn+1,sn*Yn>Ht?Ht:sn*Yn]));if(vn){Kr&&(typeof Kr=="boolean"?sr=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):sr=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Kr),sr=ge.createElement("li",{title:wt?"".concat(bt.jump_to).concat(sn,"/").concat(Zn):null,className:"".concat(ot,"-simple-pager")},sr));var ke=this.renderPrev(ue);return ge.createElement("ul",(0,ee.Z)({className:oe()(ot,"".concat(ot,"-simple"),(0,ne.Z)({},"".concat(ot,"-disabled"),jt),It),style:Mt,ref:this.paginationNode},Pe),xe,ke?ge.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,ge.createElement("li",{title:wt?"".concat(sn,"/").concat(Zn):null,className:"".concat(ot,"-simple-pager")},ge.createElement("input",{type:"text",value:ir,disabled:jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(ot,"-slash")},"/"),Zn),ge.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(ve)),sr)}if(Zn<=3+Ut*2){var tt={locale:bt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:wt,itemRender:zn};Zn||ar.push(ge.createElement(Ee,(0,ee.Z)({},tt,{key:"noPager",page:1,className:"".concat(ot,"-item-disabled")})));for(var dt=1;dt<=Zn;dt+=1){var tn=sn===dt;ar.push(ge.createElement(Ee,(0,ee.Z)({},tt,{key:dt,page:dt,active:tn})))}}else{var Kt=cn?bt.prev_3:bt.prev_5,_t=cn?bt.next_3:bt.next_5,ft=zn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Wn,"prev page")),Ft=zn(this.getJumpNextPage(),"jump-next",this.getItemIcon(qn,"next page"));wn&&(Dr=ft?ge.createElement("li",{title:wt?Kt: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"),!!Wn))},ft):null,Mr=Ft?ge.createElement("li",{title:wt?_t: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"),!!qn))},Ft):null),Br=ge.createElement(Ee,{locale:bt,last:!0,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Zn,page:Zn,active:!1,showTitle:wt,itemRender:zn}),Er=ge.createElement(Ee,{locale:bt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:wt,itemRender:zn});var gt=Math.max(1,sn-Ut),Gt=Math.min(sn+Ut,Zn);sn-1<=Ut&&(Gt=1+Ut*2),Zn-sn<=Ut&&(gt=Zn-Ut*2);for(var Zt=gt;Zt<=Gt;Zt+=1){var Tt=sn===Zt;ar.push(ge.createElement(Ee,{locale:bt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Zt,page:Zt,active:Tt,showTitle:wt,itemRender:zn}))}sn-1>=Ut*2&&sn!==3&&(ar[0]=(0,ge.cloneElement)(ar[0],{className:"".concat(ot,"-item-after-jump-prev")}),ar.unshift(Dr)),Zn-sn>=Ut*2&&sn!==Zn-2&&(ar[ar.length-1]=(0,ge.cloneElement)(ar[ar.length-1],{className:"".concat(ot,"-item-before-jump-next")}),ar.push(Mr)),gt!==1&&ar.unshift(Er),Gt!==Zn&&ar.push(Br)}var kt=!this.hasPrev()||!Zn,Xt=!this.hasNext()||!Zn,dn=this.renderPrev(ue),xn=this.renderNext(ve);return ge.createElement("ul",(0,ee.Z)({className:oe()(ot,It,(0,ne.Z)({},"".concat(ot,"-disabled"),jt)),style:Mt,ref:this.paginationNode},Pe),xe,dn?ge.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},dn):null,ar,xn?ge.createElement("li",{title:wt?bt.next_page:null,onClick:this.next,tabIndex:Xt?null:0,onKeyPress:this.runIfEnterNext,className:oe()("".concat(ot,"-next"),(0,ne.Z)({},"".concat(ot,"-disabled"),Xt)),"aria-disabled":Xt},xn):null,ge.createElement(ye,{disabled:jt,locale:bt,rootPrefixCls:ot,selectComponentClass:Kn,selectPrefixCls:Vn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:sn,pageSize:Yn,pageSizeOptions:vr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Kr}))}}],[{key:"getDerivedStateFromProps",value:function(ze,ot){var It={};if("current"in ze&&(It.current=ze.current,ze.current!==ot.current&&(It.currentInputValue=It.current)),"pageSize"in ze&&ze.pageSize!==ot.pageSize){var Mt=ot.current,jt=Ye(ze.pageSize,ot,ze);Mt=Mt>jt?jt:Mt,"current"in ze||(It.current=Mt,It.currentInputValue=Mt),It.pageSize=ze.pageSize}return It}}]),Ze}(ge.Component);vt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:ce.Z,style:{},itemRender:ht,totalBoundaryShowSizeChanger:50};var we=vt,Fe=te(22075),He=te(36355),at=te(19716),We=te(8628),pt=te(9763),Pt=te(57809);const At=Ie=>ge.createElement(Pt.default,Object.assign({},Ie,{showSearch:!0,size:"small"})),Bt=Ie=>ge.createElement(Pt.default,Object.assign({},Ie,{showSearch:!0,size:"middle"}));At.Option=Pt.default.Option,Bt.Option=Pt.default.Option;var rt=te(9937),Xe=te(17313),Ct=te(83116),zt=te(37613);const Et=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}}},[`&${Re}-disabled`]:{cursor:"not-allowed",[`${Re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ie.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ie.colorBorder,backgroundColor:Ie.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ie.itemActiveBgDisabled},a:{color:Ie.itemActiveColorDisabled}}},[`${Re}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Re}-simple-pager`]:{color:Ie.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"}}}}}},an=Ie=>{const{componentCls:Re}=Ie;return{[`&${Re}-mini ${Re}-total-text, &${Re}-mini ${Re}-simple-pager`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`},[`&${Re}-mini ${Re}-item`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM-2}px`},[`&${Re}-mini:not(${Re}-disabled) ${Re}-item:not(${Re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},[`&${Re}-mini ${Re}-prev, &${Re}-mini ${Re}-next`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Re}-mini:not(${Re}-disabled)`]:{[`${Re}-prev, ${Re}-next`]:{[`&:hover ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ie.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:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}},[`&${Re}-mini ${Re}-jump-prev, &${Re}-mini ${Re}-jump-next`]:{height:Ie.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Re}-mini ${Re}-options`]:{marginInlineStart:Ie.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ie.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(Ie)),{width:Ie.paginationMiniQuickJumperInputWidth,height:Ie.controlHeightSM})}}}},$e=Ie=>{const{componentCls:Re}=Ie;return{[`
&${Re}-simple ${Re}-prev,
&${Re}-simple ${Re}-next
`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,verticalAlign:"top",[`${Re}-item-link`]:{height:Ie.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive},"&::after":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}}},[`&${Re}-simple ${Re}-simple-pager`]:{display:"inline-block",height:Ie.itemSizeSM,marginInlineEnd:Ie.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ie.marginXS,padding:`0 ${Ie.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ie.itemInputBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadius,outline:"none",transition:`border-color ${Ie.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ie.colorPrimary},"&:focus":{borderColor:Ie.colorPrimaryHover,boxShadow:`${Ie.inputOutlineOffset}px 0 ${Ie.controlOutlineWidth}px ${Ie.controlOutline}`},"&[disabled]":{color:Ie.colorTextDisabled,backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,cursor:"not-allowed"}}}}},yt=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}-jump-prev, ${Re}-jump-next`]:{outline:0,[`${Re}-item-container`]:{position:"relative",[`${Re}-item-link-icon`]:{color:Ie.colorPrimary,fontSize:Ie.fontSizeSM,opacity:0,transition:`all ${Ie.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:Ie.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ie.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ie.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ie.motionDurationMid}`}},"&:hover":{[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}}},[`
${Re}-prev,
${Re}-jump-prev,
${Re}-jump-next
`]:{marginInlineEnd:Ie.marginXS},[`
${Re}-prev,
${Re}-next,
${Re}-jump-prev,
${Re}-jump-next
`]:{display:"inline-block",minWidth:Ie.itemSize,height:Ie.itemSize,color:Ie.colorText,fontFamily:Ie.fontFamily,lineHeight:`${Ie.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}`},[`${Re}-prev, ${Re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ie.colorText,cursor:"pointer",userSelect:"none"},[`${Re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ie.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,borderRadius:Ie.borderRadius,outline:"none",transition:`all ${Ie.motionDurationMid}`},[`&:hover ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Re}-disabled:hover`]:{[`${Re}-item-link`]:{backgroundColor:"transparent"}}},[`${Re}-slash`]:{marginInlineEnd:Ie.paginationSlashMarginInlineEnd,marginInlineStart:Ie.paginationSlashMarginInlineStart},[`${Re}-options`]:{display:"inline-block",marginInlineStart:Ie.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ie.controlHeight,marginInlineStart:Ie.marginXS,lineHeight:`${Ie.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(Ie)),{width:Ie.controlHeightLG*1.25,height:Ie.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ie.marginXS,marginInlineEnd:Ie.marginXS})}}}},Lt=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}-item`]:{display:"inline-block",minWidth:Ie.itemSize,height:Ie.itemSize,marginInlineEnd:Ie.marginXS,fontFamily:Ie.fontFamily,lineHeight:`${Ie.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,borderRadius:Ie.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ie.paginationItemPaddingInline}px`,color:Ie.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Re}-item-active)`]:{"&:hover":{transition:`all ${Ie.motionDurationMid}`,backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},"&-active":{fontWeight:Ie.fontWeightStrong,backgroundColor:Ie.itemActiveBg,borderColor:Ie.colorPrimary,a:{color:Ie.colorPrimary},"&:hover":{borderColor:Ie.colorPrimaryHover},"&:hover a":{color:Ie.colorPrimaryHover}}}}},on=Ie=>{const{componentCls:Re}=Ie;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(Ie)),{"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:Ie.itemSize,marginInlineEnd:Ie.marginXS,lineHeight:`${Ie.itemSize-2}px`,verticalAlign:"middle"}}),Lt(Ie)),yt(Ie)),$e(Ie)),an(Ie)),Et(Ie)),{[`@media only screen and (max-width: ${Ie.screenLG}px)`]:{[`${Re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ie.screenSM}px)`]:{[`${Re}-options`]:{display:"none"}}}),[`&${Ie.componentCls}-rtl`]:{direction:"rtl"}}},$t=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}${Re}-disabled:not(${Re}-mini)`]:{"&, &:hover":{[`${Re}-item-link`]:{borderColor:Ie.colorBorder}},"&:focus-visible":{[`${Re}-item-link`]:{borderColor:Ie.colorBorder}},[`${Re}-item, ${Re}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,[`&:hover:not(${Re}-item-active)`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,a:{color:Ie.colorTextDisabled}},[`&${Re}-item-active`]:{backgroundColor:Ie.itemActiveBgDisabled}},[`${Re}-prev, ${Re}-next`]:{"&:hover button":{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,color:Ie.colorTextDisabled},[`${Re}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder}}},[`${Re}:not(${Re}-mini)`]:{[`${Re}-prev, ${Re}-next`]:{"&:hover button":{borderColor:Ie.colorPrimaryHover,backgroundColor:Ie.itemBg},[`${Re}-item-link`]:{backgroundColor:Ie.itemLinkBg,borderColor:Ie.colorBorder},[`&:hover ${Re}-item-link`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,color:Ie.colorPrimary},[`&${Re}-disabled`]:{[`${Re}-item-link`]:{borderColor:Ie.colorBorder,color:Ie.colorTextDisabled}}},[`${Re}-item`]:{backgroundColor:Ie.itemBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,[`&:hover:not(${Re}-item-active)`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,a:{color:Ie.colorPrimary}},"&-active":{borderColor:Ie.colorPrimary}}}}},st=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}:not(${Re}-disabled)`]:{[`${Re}-item`]:Object.assign({},(0,Xe.Qy)(Ie)),[`${Re}-jump-prev, ${Re}-jump-next`]:{"&:focus-visible":Object.assign({[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}},(0,Xe.oN)(Ie))},[`${Re}-prev, ${Re}-next`]:{[`&:focus-visible ${Re}-item-link`]:Object.assign({},(0,Xe.oN)(Ie))}}}};var lt=(0,Ct.Z)("Pagination",Ie=>{const Re=(0,zt.TS)(Ie,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ie.marginXXS/2,paginationMiniQuickJumperInputWidth:Ie.controlHeightLG*1.1,paginationItemPaddingInline:Ie.marginXXS*1.5,paginationEllipsisLetterSpacing:Ie.marginXXS/2,paginationSlashMarginInlineStart:Ie.marginXXS,paginationSlashMarginInlineEnd:Ie.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(Ie),(0,rt.TM)(Ie));return[on(Re),st(Re),Ie.wireframe&&$t(Re)]},Ie=>({itemBg:Ie.colorBgContainer,itemSize:Ie.controlHeight,itemSizeSM:Ie.controlHeightSM,itemActiveBg:Ie.colorBgContainer,itemLinkBg:Ie.colorBgContainer,itemActiveColorDisabled:Ie.colorTextDisabled,itemActiveBgDisabled:Ie.controlItemBgActiveDisabled,itemInputBg:Ie.colorBgContainer,miniOptionsSizeChangerTop:0})),Ge=function(Ie,Re){var Ze={};for(var Be in Ie)Object.prototype.hasOwnProperty.call(Ie,Be)&&Re.indexOf(Be)<0&&(Ze[Be]=Ie[Be]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(Ie);ze<Be.length;ze++)Re.indexOf(Be[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Be[ze])&&(Ze[Be[ze]]=Ie[Be[ze]]);return Ze},et=Ie=>{const{prefixCls:Re,selectPrefixCls:Ze,className:Be,rootClassName:ze,style:ot,size:It,locale:Mt,selectComponentClass:jt,responsive:Dt,showSizeChanger:Ht}=Ie,bt=Ge(Ie,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:fn}=(0,We.Z)(Dt),{getPrefixCls:cn,direction:wt,pagination:yn={}}=ge.useContext(He.E_),vn=cn("pagination",Re),[zn,wn]=lt(vn),Wn=Ht!=null?Ht:yn.showSizeChanger,qn=ge.useMemo(()=>{const Zn=ge.createElement("span",{className:`${vn}-item-ellipsis`},"\u2022\u2022\u2022"),ar=ge.createElement("button",{className:`${vn}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?ge.createElement(ae.Z,null):ge.createElement(me.Z,null)),Dr=ge.createElement("button",{className:`${vn}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?ge.createElement(me.Z,null):ge.createElement(ae.Z,null)),Mr=ge.createElement("a",{className:`${vn}-item-link`},ge.createElement("div",{className:`${vn}-item-container`},wt==="rtl"?ge.createElement(le.Z,{className:`${vn}-item-link-icon`}):ge.createElement(de,{className:`${vn}-item-link-icon`}),Zn)),Er=ge.createElement("a",{className:`${vn}-item-link`},ge.createElement("div",{className:`${vn}-item-container`},wt==="rtl"?ge.createElement(de,{className:`${vn}-item-link-icon`}):ge.createElement(le.Z,{className:`${vn}-item-link-icon`}),Zn));return{prevIcon:ar,nextIcon:Dr,jumpPrevIcon:Mr,jumpNextIcon:Er}},[wt,vn]),[Kn]=(0,pt.Z)("Pagination",Fe.Z),Vn=Object.assign(Object.assign({},Kn),Mt),vr=(0,at.Z)(It),lr=vr==="small"||!!(fn&&!vr&&Dt),sn=cn("select",Ze),Yn=oe()({[`${vn}-mini`]:lr,[`${vn}-rtl`]:wt==="rtl"},yn==null?void 0:yn.className,Be,ze,wn),ir=Object.assign(Object.assign({},yn==null?void 0:yn.style),ot);return zn(ge.createElement(we,Object.assign({},qn,bt,{style:ir,prefixCls:vn,selectPrefixCls:sn,className:Yn,selectComponentClass:jt||(lr?At:Bt),locale:Vn,showSizeChanger:Wn})))},xt=et},61621:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return lt}});var ee=te(92310),ge=te.n(ee),be=te(59301),pe=te(36355),Se=te(2738),ie=Ge=>{const{prefixCls:Ne,className:et,style:xt,size:Ie,shape:Re}=Ge,Ze=ge()({[`${Ne}-lg`]:Ie==="large",[`${Ne}-sm`]:Ie==="small"}),Be=ge()({[`${Ne}-circle`]:Re==="circle",[`${Ne}-square`]:Re==="square",[`${Ne}-round`]:Re==="round"}),ze=be.useMemo(()=>typeof Ie=="number"?{width:Ie,height:Ie,lineHeight:`${Ie}px`}:{},[Ie]);return be.createElement("span",{className:ge()(Ne,Ze,Be,et),style:Object.assign(Object.assign({},ze),xt)})},de=te(36237),le=te(83116),me=te(37613);const ae=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),he=Ge=>({height:Ge,lineHeight:`${Ge}px`}),oe=Ge=>Object.assign({width:Ge},he(Ge)),ne=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ae,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},he(Ge)),y=Ge=>{const{skeletonAvatarCls:Ne,gradientFromColor:et,controlHeight:xt,controlHeightLG:Ie,controlHeightSM:Re}=Ge;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:et},oe(xt)),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}${Ne}-lg`]:Object.assign({},oe(Ie)),[`${Ne}${Ne}-sm`]:Object.assign({},oe(Re))}},E=Ge=>{const{controlHeight:Ne,borderRadiusSM:et,skeletonInputCls:xt,controlHeightLG:Ie,controlHeightSM:Re,gradientFromColor:Ze}=Ge;return{[`${xt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze,borderRadius:et},a(Ne)),[`${xt}-lg`]:Object.assign({},a(Ie)),[`${xt}-sm`]:Object.assign({},a(Re))}},b=Ge=>Object.assign({width:Ge},he(Ge)),x=Ge=>{const{skeletonImageCls:Ne,imageSizeBase:et,gradientFromColor:xt,borderRadiusSM:Ie}=Ge;return{[`${Ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:xt,borderRadius:Ie},b(et*2)),{[`${Ne}-path`]:{fill:"#bfbfbf"},[`${Ne}-svg`]:Object.assign(Object.assign({},b(et)),{maxWidth:et*4,maxHeight:et*4}),[`${Ne}-svg${Ne}-svg-circle`]:{borderRadius:"50%"}}),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"}}},z=(Ge,Ne,et)=>{const{skeletonButtonCls:xt}=Ge;return{[`${et}${xt}-circle`]:{width:Ne,minWidth:Ne,borderRadius:"50%"},[`${et}${xt}-round`]:{borderRadius:Ne}}},re=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},he(Ge)),se=Ge=>{const{borderRadiusSM:Ne,skeletonButtonCls:et,controlHeight:xt,controlHeightLG:Ie,controlHeightSM:Re,gradientFromColor:Ze}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze,borderRadius:Ne,width:xt*2,minWidth:xt*2},re(xt))},z(Ge,xt,et)),{[`${et}-lg`]:Object.assign({},re(Ie))}),z(Ge,Ie,`${et}-lg`)),{[`${et}-sm`]:Object.assign({},re(Re))}),z(Ge,Re,`${et}-sm`))},ce=Ge=>{const{componentCls:Ne,skeletonAvatarCls:et,skeletonTitleCls:xt,skeletonParagraphCls:Ie,skeletonButtonCls:Re,skeletonInputCls:Ze,skeletonImageCls:Be,controlHeight:ze,controlHeightLG:ot,controlHeightSM:It,gradientFromColor:Mt,padding:jt,marginSM:Dt,borderRadius:Ht,titleHeight:bt,blockRadius:fn,paragraphLiHeight:cn,controlHeightXS:wt,paragraphMarginTop:yn}=Ge;return{[`${Ne}`]:{display:"table",width:"100%",[`${Ne}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Mt},oe(ze)),[`${et}-circle`]:{borderRadius:"50%"},[`${et}-lg`]:Object.assign({},oe(ot)),[`${et}-sm`]:Object.assign({},oe(It))},[`${Ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${xt}`]:{width:"100%",height:bt,background:Mt,borderRadius:fn,[`+ ${Ie}`]:{marginBlockStart:It}},[`${Ie}`]:{padding:0,"> li":{width:"100%",height:cn,listStyle:"none",background:Mt,borderRadius:fn,"+ li":{marginBlockStart:wt}}},[`${Ie}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ne}-content`]:{[`${xt}, ${Ie} > li`]:{borderRadius:Ht}}},[`${Ne}-with-avatar ${Ne}-content`]:{[`${xt}`]:{marginBlockStart:Dt,[`+ ${Ie}`]:{marginBlockStart:yn}}},[`${Ne}${Ne}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},se(Ge)),y(Ge)),E(Ge)),x(Ge)),[`${Ne}${Ne}-block`]:{width:"100%",[`${Re}`]:{width:"100%"},[`${Ze}`]:{width:"100%"}},[`${Ne}${Ne}-active`]:{[`
${xt},
${Ie} > li,
${et},
${Re},
${Ze},
${Be}
`]:Object.assign({},ne(Ge))}}};var _e=(0,le.Z)("Skeleton",Ge=>{const{componentCls:Ne}=Ge,et=(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[ce(et)]},Ge=>{const{colorFillContent:Ne,colorFill:et}=Ge,xt=Ne,Ie=et;return{color:xt,colorGradientEnd:Ie,gradientFromColor:xt,gradientToColor:Ie,titleHeight:Ge.controlHeight/2,blockRadius:Ge.borderRadiusSM,paragraphMarginTop:Ge.marginLG+Ge.marginXXS,paragraphLiHeight:Ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),De=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,active:Ie,shape:Re="circle",size:Ze="default"}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[ot,It]=_e(ze),Mt=(0,Se.Z)(Ge,["prefixCls","className"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie},et,xt,It);return ot(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-avatar`,shape:Re,size:Ze},Mt))))},je=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,active:Ie,block:Re=!1,size:Ze="default"}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[ot,It]=_e(ze),Mt=(0,Se.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie,[`${ze}-block`]:Re},et,xt,It);return ot(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-button`,size:Ze},Mt))))};const Le="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:et,rootClassName:xt,style:Ie,active:Re}=Ge,{getPrefixCls:Ze}=be.useContext(pe.E_),Be=Ze("skeleton",Ne),[ze,ot]=_e(Be),It=ge()(Be,`${Be}-element`,{[`${Be}-active`]:Re},et,xt,ot);return ze(be.createElement("div",{className:It},be.createElement("div",{className:ge()(`${Be}-image`,et),style:Ie},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Be}-image-svg`},be.createElement("path",{d:Le,className:`${Be}-image-path`})))))},we=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,active:Ie,block:Re,size:Ze="default"}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[ot,It]=_e(ze),Mt=(0,Se.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie,[`${ze}-block`]:Re},et,xt,It);return ot(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-input`,size:Ze},Mt))))},Fe=te(60499),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"},at=He,We=te(7657),pt=function(Ne,et){return be.createElement(We.Z,(0,Fe.Z)({},Ne,{ref:et,icon:at}))},Pt=be.forwardRef(pt),At=Pt,rt=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,style:Ie,active:Re,children:Ze}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[ot,It]=_e(ze),Mt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Re},It,et,xt),jt=Ze!=null?Ze:be.createElement(At,null);return ot(be.createElement("div",{className:Mt},be.createElement("div",{className:ge()(`${ze}-image`,et),style:Ie},jt)))},Xe=te(77654),zt=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:et,className:xt,style:Ie,rows:Re}=Ge,Ze=(0,Xe.Z)(Array(Re)).map((Be,ze)=>be.createElement("li",{key:ze,style:{width:Ne(ze)}}));return be.createElement("ul",{className:ge()(et,xt),style:Ie},Ze)},an=Ge=>{let{prefixCls:Ne,className:et,width:xt,style:Ie}=Ge;return be.createElement("h3",{className:ge()(Ne,et),style:Object.assign({width:xt},Ie)})};function $e(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function yt(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 on(Ge,Ne){const et={};return(!Ge||!Ne)&&(et.width="61%"),!Ge&&Ne?et.rows=3:et.rows=2,et}const $t=Ge=>{const{prefixCls:Ne,loading:et,className:xt,rootClassName:Ie,style:Re,children:Ze,avatar:Be=!1,title:ze=!0,paragraph:ot=!0,active:It,round:Mt}=Ge,{getPrefixCls:jt,direction:Dt,skeleton:Ht}=be.useContext(pe.E_),bt=jt("skeleton",Ne),[fn,cn]=_e(bt);if(et||!("loading"in Ge)){const wt=!!Be,yn=!!ze,vn=!!ot;let zn;if(wt){const qn=Object.assign(Object.assign({prefixCls:`${bt}-avatar`},yt(yn,vn)),$e(Be));zn=be.createElement("div",{className:`${bt}-header`},be.createElement(ie,Object.assign({},qn)))}let wn;if(yn||vn){let qn;if(yn){const Vn=Object.assign(Object.assign({prefixCls:`${bt}-title`},Lt(wt,vn)),$e(ze));qn=be.createElement(an,Object.assign({},Vn))}let Kn;if(vn){const Vn=Object.assign(Object.assign({prefixCls:`${bt}-paragraph`},on(wt,yn)),$e(ot));Kn=be.createElement(zt,Object.assign({},Vn))}wn=be.createElement("div",{className:`${bt}-content`},qn,Kn)}const Wn=ge()(bt,{[`${bt}-with-avatar`]:wt,[`${bt}-active`]:It,[`${bt}-rtl`]:Dt==="rtl",[`${bt}-round`]:Mt},Ht==null?void 0:Ht.className,xt,Ie,cn);return fn(be.createElement("div",{className:Wn,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Re)},zn,wn))}return typeof Ze!="undefined"?Ze:null};$t.Button=je,$t.Avatar=De,$t.Input=we,$t.Image=Ye,$t.Node=rt;var st=$t,lt=st},31797:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return _e}});var ee=te(59301),ge=te(56762),be=te(92343),pe=te(92310),Se=te.n(pe),fe=te(36355),ie=te(61621),le=ye=>{const{value:De,formatter:Ee,precision:je,decimalSeparator:Le,groupSeparator:ht="",prefixCls:Ye}=ye;let vt;if(typeof Ee=="function")vt=Ee(De);else{const we=String(De),Fe=we.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Fe||we==="-")vt=we;else{const He=Fe[1];let at=Fe[2]||"0",We=Fe[4]||"";at=at.replace(/\B(?=(\d{3})+(?!\d))/g,ht),typeof je=="number"&&(We=We.padEnd(je,"0").slice(0,je>0?je:0)),We&&(We=`${Le}${We}`),vt=[ee.createElement("span",{key:"int",className:`${Ye}-content-value-int`},He,at),We&&ee.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},We)]}}return ee.createElement("span",{className:`${Ye}-content-value`},vt)},me=te(17313),ae=te(83116),he=te(37613);const oe=ye=>{const{componentCls:De,marginXXS:Ee,padding:je,colorTextDescription:Le,titleFontSize:ht,colorTextHeading:Ye,contentFontSize:vt,fontFamily:we}=ye;return{[`${De}`]:Object.assign(Object.assign({},(0,me.Wf)(ye)),{[`${De}-title`]:{marginBottom:Ee,color:Le,fontSize:ht},[`${De}-skeleton`]:{paddingTop:je},[`${De}-content`]:{color:Ye,fontSize:vt,fontFamily:we,[`${De}-content-value`]:{display:"inline-block",direction:"ltr"},[`${De}-content-prefix, ${De}-content-suffix`]:{display:"inline-block"},[`${De}-content-prefix`]:{marginInlineEnd:Ee},[`${De}-content-suffix`]:{marginInlineStart:Ee}}})}};var ne=(0,ae.Z)("Statistic",ye=>{const De=(0,he.TS)(ye,{});return[oe(De)]},ye=>{const{fontSizeHeading3:De,fontSize:Ee}=ye;return{titleFontSize:Ee,contentFontSize:De}}),y=ye=>{const{prefixCls:De,className:Ee,rootClassName:je,style:Le,valueStyle:ht,value:Ye=0,title:vt,valueRender:we,prefix:Fe,suffix:He,loading:at=!1,onMouseEnter:We,onMouseLeave:pt,decimalSeparator:Pt=".",groupSeparator:At=","}=ye,{getPrefixCls:Bt,direction:rt,statistic:Xe}=ee.useContext(fe.E_),Ct=Bt("statistic",De),[zt,Et]=ne(Ct),an=ee.createElement(le,Object.assign({decimalSeparator:Pt,groupSeparator:At,prefixCls:Ct},ye,{value:Ye})),$e=Se()(Ct,{[`${Ct}-rtl`]:rt==="rtl"},Xe==null?void 0:Xe.className,Ee,je,Et);return zt(ee.createElement("div",{className:$e,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Le),onMouseEnter:We,onMouseLeave:pt},vt&&ee.createElement("div",{className:`${Ct}-title`},vt),ee.createElement(ie.Z,{paragraph:!1,loading:at,className:`${Ct}-skeleton`},ee.createElement("div",{style:ht,className:`${Ct}-content`},Fe&&ee.createElement("span",{className:`${Ct}-content-prefix`},Fe),we?we(an):an,He&&ee.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(ye,De){let Ee=ye;const je=/\[[^\]]*]/g,Le=(De.match(je)||[]).map(we=>we.slice(1,-1)),ht=De.replace(je,"[]"),Ye=E.reduce((we,Fe)=>{let[He,at]=Fe;if(we.includes(He)){const We=Math.floor(Ee/at);return Ee-=We*at,we.replace(new RegExp(`${He}+`,"g"),pt=>{const Pt=pt.length;return We.toString().padStart(Pt,"0")})}return we},ht);let vt=0;return Ye.replace(je,()=>{const we=Le[vt];return vt+=1,we})}function x(ye,De){const{format:Ee=""}=De,je=new Date(ye).getTime(),Le=Date.now(),ht=Math.max(je-Le,0);return b(ht,Ee)}const z=1e3/30;function re(ye){return new Date(ye).getTime()}const se=ye=>{const{value:De,format:Ee="HH:mm:ss",onChange:je,onFinish:Le}=ye,ht=(0,ge.Z)(),Ye=ee.useRef(null),vt=()=>{Le==null||Le(),Ye.current&&(clearInterval(Ye.current),Ye.current=null)},we=()=>{const at=re(De);at>=Date.now()&&(Ye.current=setInterval(()=>{ht(),je==null||je(at-Date.now()),at<Date.now()&&vt()},z))};ee.useEffect(()=>(we(),()=>{Ye.current&&(clearInterval(Ye.current),Ye.current=null)}),[De]);const Fe=(at,We)=>x(at,Object.assign(Object.assign({},We),{format:Ee})),He=at=>(0,be.Tm)(at,{title:void 0});return ee.createElement(y,Object.assign({},ye,{valueRender:He,formatter:Fe}))};var ce=ee.memo(se);y.Countdown=ce;var _e=y},15969:function(mt,Ke,te){"use strict";te.d(Ke,{N:function(){return ee}});const ee=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},1710:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return Ui}});var ee={},ge="rc-table-internal-hook",be=te(72190),pe=te(6089),Se=te(34280),fe=te(13697),ie=te(59301),de=te(4676);function le(Ae){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}}),Je=(0,be.Z)(Qe,1),nt=Je[0];return(0,Se.Z)(function(){(0,de.unstable_batchedUpdates)(function(){nt.listeners.forEach(function(qe){qe(Ce)})})},[Ce]),ie.createElement(Te.Provider,{value:nt},Me)};return{Context:Te,Provider:Ue,defaultValue:Ae}}function me(Ae,Te){var Ue=(0,pe.Z)(typeof Te=="function"?Te:function(qe){if(Te===void 0)return qe;if(!Array.isArray(Te))return qe[Te];var ct={};return Te.forEach(function(ut){ct[ut]=qe[ut]}),ct}),Ve=ie.useContext(Ae==null?void 0:Ae.Context),it=Ve||{},Ce=it.listeners,Me=it.getValue,Oe=ie.useRef();Oe.current=Ue(Ve?Me():Ae==null?void 0:Ae.defaultValue);var Qe=ie.useState({}),Je=(0,be.Z)(Qe,2),nt=Je[1];return(0,Se.Z)(function(){if(!Ve)return;function qe(ct){var ut=Ue(ct);(0,fe.Z)(Oe.current,ut,!0)||nt({})}return Ce.add(qe),function(){Ce.delete(qe)}},[Ve]),Oe.current}var ae=te(60499),he=te(8654);function oe(){var Ae=ie.createContext(null);function Te(){return ie.useContext(Ae)}function Ue(it,Ce){var Me=(0,he.Yr)(it),Oe=function(Je,nt){var qe=Me?{ref:nt}:{},ct=ie.useRef(0),ut=ie.useRef(Je),St=Te();return St!==null?ie.createElement(it,(0,ae.Z)({},Je,qe)):((!Ce||Ce(ut.current,Je))&&(ct.current+=1),ut.current=Je,ie.createElement(Ae.Provider,{value:ct.current},ie.createElement(it,(0,ae.Z)({},Je,qe))))};return Me?ie.forwardRef(Oe):Oe}function Ve(it,Ce){var Me=(0,he.Yr)(it),Oe=function(Je,nt){var qe=Me?{ref:nt}:{};return Te(),ie.createElement(it,(0,ae.Z)({},Je,qe))};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,se=le(),ce=se;function _e(Ae,Te){var Ue=ie.useRef(0);Ue.current+=1;var Ve=ie.useRef(Ae),it=[];Object.keys(Ae||{}).map(function(Me){var Oe;(Ae==null?void 0:Ae[Me])!==((Oe=Ve.current)===null||Oe===void 0?void 0:Oe[Me])&&it.push(Me)}),Ve.current=Ae;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 ye=null,De=ie.memo(function(){var Ae=_e();return ie.createElement("h1",null,"Render Times: ",Ae)});De.displayName="RenderBlock";var Ee=te(43749),je=te(85899),Le=te(18642),ht=te(92310),Ye=te.n(ht),vt=te(80547),we=te(97938),Fe=te(48736),He=ie.createContext({renderWithProps:!1}),at=He,We="RC_TABLE_KEY";function pt(Ae){return Ae==null?[]:Array.isArray(Ae)?Ae:[Ae]}function Pt(Ae){var Te=[],Ue={};return Ae.forEach(function(Ve){for(var it=Ve||{},Ce=it.key,Me=it.dataIndex,Oe=Ce||pt(Me).join("-")||We;Ue[Oe];)Oe="".concat(Oe,"_next");Ue[Oe]=!0,Te.push(Oe)}),Te}function At(Ae){return Ae!=null}function Bt(Ae){return Ae&&(0,Ee.Z)(Ae)==="object"&&!Array.isArray(Ae)&&!ie.isValidElement(Ae)}function rt(Ae,Te,Ue,Ve,it,Ce){var Me=ie.useContext(at),Oe=re(),Qe=(0,vt.Z)(function(){if(At(Ve))return[Ve];var Je=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],nt=(0,we.Z)(Ae,Je),qe=nt,ct=void 0;if(it){var ut=it(nt,Ae,Ue);Bt(ut)?(qe=ut.children,ct=ut.props,Me.renderWithProps=!0):qe=ut}return[qe,ct]},[Oe,Ae,Ve,Te,it,Ue],function(Je,nt){if(Ce){var qe=(0,be.Z)(Je,2),ct=qe[1],ut=(0,be.Z)(nt,2),St=ut[1];return Ce(St,ct)}return Me.renderWithProps?!0:!(0,fe.Z)(Je,nt,!0)});return Qe}function Xe(Ae,Te,Ue,Ve){var it=Ae+Te-1;return Ae<=Ve&&it>=Ue}function Ct(Ae,Te){return me(ce,function(Ue){var Ve=Xe(Ae,Te||1,Ue.hoverStartRow,Ue.hoverEndRow);return[Ve,Ue.onHover]})}var zt=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(Ae){var Te,Ue,Ve,it,Ce,Me,Oe,Qe,Je=Ae.component,nt=Ae.children,qe=Ae.ellipsis,ct=Ae.scope,ut=Ae.prefixCls,St=Ae.className,Vt=Ae.align,Nt=Ae.record,Yt=Ae.render,Ot=Ae.dataIndex,Qt=Ae.renderIndex,Jt=Ae.shouldCellUpdate,Pn=Ae.index,rn=Ae.rowType,_n=Ae.colSpan,On=Ae.rowSpan,qt=Ae.fixLeft,hn=Ae.fixRight,Rt=Ae.firstFixLeft,nn=Ae.lastFixLeft,ln=Ae.firstFixRight,Ln=Ae.lastFixRight,Jn=Ae.appendNode,en=Ae.additionalProps,bn=en===void 0?{}:en,Dn=Ae.isSticky,gn="".concat(ut,"-cell"),Tn=me(ce,["supportSticky","allColumnsFixedLeft"]),jn=Tn.supportSticky,Xn=Tn.allColumnsFixedLeft,Hr=rt(Nt,Ot,Qt,nt,Yt,Jt),er=(0,be.Z)(Hr,2),Wr=er[0],Sr=er[1],Lr={},Nr=typeof qt=="number"&&jn,Hn=typeof hn=="number"&&jn;Nr&&(Lr.position="sticky",Lr.left=qt),Hn&&(Lr.position="sticky",Lr.right=hn);var Cn=(Te=(Ue=(Ve=Sr==null?void 0:Sr.colSpan)!==null&&Ve!==void 0?Ve:bn.colSpan)!==null&&Ue!==void 0?Ue:_n)!==null&&Te!==void 0?Te:1,kn=(it=(Ce=(Me=Sr==null?void 0:Sr.rowSpan)!==null&&Me!==void 0?Me:bn.rowSpan)!==null&&Ce!==void 0?Ce:On)!==null&&it!==void 0?it:1,Un=Ct(Pn,kn),Mn=(0,be.Z)(Un,2),yr=Mn[0],Rn=Mn[1],Gn=function(Rr){var br;Nt&&Rn(Pn,Pn+kn-1),bn==null||(br=bn.onMouseEnter)===null||br===void 0||br.call(bn,Rr)},hr=function(Rr){var br;Nt&&Rn(-1,-1),bn==null||(br=bn.onMouseLeave)===null||br===void 0||br.call(bn,Rr)};if(Cn===0||kn===0)return null;var _r=(Oe=bn.title)!==null&&Oe!==void 0?Oe:zt({rowType:rn,ellipsis:qe,children:Wr}),Ao=Ye()(gn,St,(Qe={},(0,Le.Z)(Qe,"".concat(gn,"-fix-left"),Nr&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-left-first"),Rt&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-left-last"),nn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-left-all"),nn&&Xn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-right"),Hn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-right-first"),ln&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-right-last"),Ln&&jn),(0,Le.Z)(Qe,"".concat(gn,"-ellipsis"),qe),(0,Le.Z)(Qe,"".concat(gn,"-with-append"),Jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-sticky"),(Nr||Hn)&&Dn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-row-hover"),!Sr&&yr),Qe),bn.className,Sr==null?void 0:Sr.className),Po={};Vt&&(Po.textAlign=Vt);var tr=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Lr),bn.style),Po),Sr==null?void 0:Sr.style),mr=Wr;return(0,Ee.Z)(mr)==="object"&&!Array.isArray(mr)&&!ie.isValidElement(mr)&&(mr=null),qe&&(nn||ln)&&(mr=ie.createElement("span",{className:"".concat(gn,"-content")},mr)),ie.createElement(Je,(0,ae.Z)({},Sr,bn,{className:Ao,style:tr,title:_r,scope:ct,onMouseEnter:Gn,onMouseLeave:hr,colSpan:Cn!==1?Cn:null,rowSpan:kn!==1?kn:null}),Jn,mr)}var an=ie.memo(Et);function $e(Ae,Te,Ue,Ve,it,Ce){var Me=Ue[Ae]||{},Oe=Ue[Te]||{},Qe,Je;Me.fixed==="left"?Qe=Ve.left[it==="rtl"?Te:Ae]:Oe.fixed==="right"&&(Je=Ve.right[it==="rtl"?Ae:Te]);var nt=!1,qe=!1,ct=!1,ut=!1,St=Ue[Te+1],Vt=Ue[Ae-1],Nt=!(Ce!=null&&Ce.children);if(it==="rtl"){if(Qe!==void 0){var Yt=Vt&&Vt.fixed==="left";ut=!Yt&&Nt}else if(Je!==void 0){var Ot=St&&St.fixed==="right";ct=!Ot&&Nt}}else if(Qe!==void 0){var Qt=St&&St.fixed==="left";nt=!Qt&&Nt}else if(Je!==void 0){var Jt=Vt&&Vt.fixed==="right";qe=!Jt&&Nt}return{fixLeft:Qe,fixRight:Je,lastFixLeft:nt,firstFixRight:qe,lastFixRight:ct,firstFixLeft:ut,isSticky:Ve.isSticky}}var yt=ie.createContext({}),Lt=yt;function on(Ae){var Te=Ae.className,Ue=Ae.index,Ve=Ae.children,it=Ae.colSpan,Ce=it===void 0?1:it,Me=Ae.rowSpan,Oe=Ae.align,Qe=me(ce,["prefixCls","direction"]),Je=Qe.prefixCls,nt=Qe.direction,qe=ie.useContext(Lt),ct=qe.scrollColumnIndex,ut=qe.stickyOffsets,St=qe.flattenColumns,Vt=qe.columns,Nt=Ue+Ce-1,Yt=Nt+1===ct?Ce+1:Ce,Ot=$e(Ue,Ue+Yt-1,St,ut,nt,Vt==null?void 0:Vt[Ue]);return ie.createElement(an,(0,ae.Z)({className:Te,index:Ue,component:"td",prefixCls:Je,record:null,dataIndex:null,align:Oe,colSpan:Yt,rowSpan:Me,render:function(){return Ve}},Ot))}var $t=te(42244),st=["children"];function lt(Ae){var Te=Ae.children,Ue=(0,$t.Z)(Ae,st);return ie.createElement("tr",Ue,Te)}function Ge(Ae){var Te=Ae.children;return Te}Ge.Row=lt,Ge.Cell=on;var Ne=Ge;function et(Ae){var Te=Ae.children,Ue=Ae.stickyOffsets,Ve=Ae.flattenColumns,it=Ae.columns,Ce=me(ce,"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(et),Ie=Ne,Re=te(70425),Ze=te(29301),Be=te(29194),ze=te(24514),ot=te(75152),It=te(26112);function Mt(Ae,Te,Ue,Ve,it,Ce,Me){Ae.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 Je=0;Je<Te[Ve].length;Je+=1)Mt(Ae,Te[Ve][Je],Ue+1,Ve,it,Ce,Je)}function jt(Ae,Te,Ue,Ve){var it=ie.useMemo(function(){if(Ue!=null&&Ue.size){for(var Ce=[],Me=0;Me<(Ae==null?void 0:Ae.length);Me+=1){var Oe=Ae[Me];Mt(Ce,Oe,0,Te,Ue,Ve,Me)}return Ce}return Ae==null?void 0:Ae.map(function(Qe,Je){return{record:Qe,indent:0,index:Je}})},[Ae,Te,Ue,Ve]);return it}function Dt(Ae){var Te=Ae.prefixCls,Ue=Ae.children,Ve=Ae.component,it=Ae.cellComponent,Ce=Ae.className,Me=Ae.expanded,Oe=Ae.colSpan,Qe=Ae.isEmpty,Je=me(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),nt=Je.scrollbarSize,qe=Je.fixHeader,ct=Je.fixColumn,ut=Je.componentWidth,St=Je.horizonScroll,Vt=Ue;return(Qe?St&&ut:ct)&&(Vt=ie.createElement("div",{style:{width:ut-(qe?nt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Te,"-expanded-row-fixed")},Vt)),ie.createElement(Ve,{className:Ce,style:{display:Me?null:"none"}},ie.createElement(an,{component:it,prefixCls:Te,colSpan:Oe},Vt))}var Ht=Dt;function bt(Ae,Te,Ue,Ve){var it=me(ce,["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,Je=it.onTriggerExpand,nt=it.rowExpandable,qe=it.onRow,ct=it.expandRowByClick,ut=it.rowClassName,St=Me==="nest",Vt=Me==="row"&&(!nt||nt(Ae)),Nt=Vt||St,Yt=Oe&&Oe.has(Te),Ot=Qe&&Ae&&Ae[Qe],Qt=(0,Re.useEvent)(Je),Jt=qe==null?void 0:qe(Ae,Ue),Pn=Jt==null?void 0:Jt.onClick,rn=function(hn){ct&&Nt&&Je(Ae,hn);for(var Rt=arguments.length,nn=new Array(Rt>1?Rt-1:0),ln=1;ln<Rt;ln++)nn[ln-1]=arguments[ln];Pn==null||Pn.apply(void 0,[hn].concat(nn))},_n;typeof ut=="string"?_n=ut:typeof ut=="function"&&(_n=ut(Ae,Ue,Ve));var On=Pt(Ce);return(0,je.Z)((0,je.Z)({},it),{},{columnsKey:On,nestExpandable:St,expanded:Yt,hasNestChildren:Ot,record:Ae,onTriggerExpand:Qt,rowSupportExpand:Vt,expandable:Nt,rowProps:(0,je.Z)((0,je.Z)({},Jt),{},{className:Ye()(_n,Jt==null?void 0:Jt.className),onClick:rn})})}function fn(Ae,Te,Ue,Ve,it){var Ce=Ae.record,Me=Ae.prefixCls,Oe=Ae.columnsKey,Qe=Ae.fixedInfoList,Je=Ae.expandIconColumnIndex,nt=Ae.nestExpandable,qe=Ae.indentSize,ct=Ae.expandIcon,ut=Ae.expanded,St=Ae.hasNestChildren,Vt=Ae.onTriggerExpand,Nt=Oe[Ue],Yt=Qe[Ue],Ot;Ue===(Je||0)&&nt&&(Ot=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(qe*Ve,"px")},className:"".concat(Me,"-row-indent indent-level-").concat(Ve)}),ct({prefixCls:Me,expanded:ut,expandable:St,record:Ce,onExpand:Vt})));var Qt;return Te.onCell&&(Qt=Te.onCell(Ce,it)),{key:Nt,fixedInfo:Yt,appendCellNode:Ot,additionalCellProps:Qt||{}}}function cn(Ae){var Te=Ae.className,Ue=Ae.style,Ve=Ae.record,it=Ae.index,Ce=Ae.renderIndex,Me=Ae.rowKey,Oe=Ae.indent,Qe=Oe===void 0?0:Oe,Je=Ae.rowComponent,nt=Ae.cellComponent,qe=Ae.scopeCellComponent,ct=bt(Ve,Me,it,Qe),ut=ct.prefixCls,St=ct.flattenColumns,Vt=ct.expandedRowClassName,Nt=ct.expandedRowRender,Yt=ct.rowProps,Ot=ct.expanded,Qt=ct.rowSupportExpand,Jt=ie.useState(!1),Pn=(0,be.Z)(Jt,2),rn=Pn[0],_n=Pn[1];ie.useEffect(function(){Ot&&_n(!0)},[Ot]);var On=ie.createElement(Je,(0,ae.Z)({},Yt,{"data-row-key":Me,className:Ye()(Te,"".concat(ut,"-row"),"".concat(ut,"-row-level-").concat(Qe),Yt==null?void 0:Yt.className),style:(0,je.Z)((0,je.Z)({},Ue),Yt==null?void 0:Yt.style)}),St.map(function(nn,ln){var Ln=nn.render,Jn=nn.dataIndex,en=nn.className,bn=fn(ct,nn,ln,Qe,it),Dn=bn.key,gn=bn.fixedInfo,Tn=bn.appendCellNode,jn=bn.additionalCellProps;return ie.createElement(an,(0,ae.Z)({className:en,ellipsis:nn.ellipsis,align:nn.align,scope:nn.rowScope,component:nn.rowScope?qe:nt,prefixCls:ut,key:Dn,record:Ve,index:it,renderIndex:Ce,dataIndex:Jn,render:Ln,shouldCellUpdate:nn.shouldCellUpdate},gn,{appendNode:Tn,additionalProps:jn}))})),qt;if(Qt&&(rn||Ot)){var hn=Nt(Ve,it,Qe+1,Ot),Rt=Vt&&Vt(Ve,it,Qe);qt=ie.createElement(Ht,{expanded:Ot,className:Ye()("".concat(ut,"-expanded-row"),"".concat(ut,"-expanded-row-level-").concat(Qe+1),Rt),prefixCls:ut,component:Je,cellComponent:nt,colSpan:St.length,isEmpty:!1},hn)}return ie.createElement(ie.Fragment,null,On,qt)}cn.displayName="BodyRow";var wt=z(cn);function yn(Ae){var Te=Ae.columnKey,Ue=Ae.onColumnResize,Ve=ie.useRef();return ie.useEffect(function(){Ve.current&&Ue(Te,Ve.current.offsetWidth)},[]),ie.createElement(Ze.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 vn(Ae){var Te=Ae.prefixCls,Ue=Ae.columnsKey,Ve=Ae.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(Te,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(Ze.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 zn(Ae){var Te=Ae.data,Ue=Ae.measureColumnWidth,Ve=me(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),it=Ve.prefixCls,Ce=Ve.getComponent,Me=Ve.onColumnResize,Oe=Ve.flattenColumns,Qe=Ve.getRowKey,Je=Ve.expandedKeys,nt=Ve.childrenColumnName,qe=Ve.emptyNode,ct=jt(Te,nt,Je,Qe),ut=ie.useRef({renderWithProps:!1}),St=Ce(["body","wrapper"],"tbody"),Vt=Ce(["body","row"],"tr"),Nt=Ce(["body","cell"],"td"),Yt=Ce(["body","cell"],"th"),Ot;Te.length?Ot=ct.map(function(Jt,Pn){var rn=Jt.record,_n=Jt.indent,On=Jt.index,qt=Qe(rn,Pn);return ie.createElement(wt,{key:qt,rowKey:qt,record:rn,index:Pn,renderIndex:On,rowComponent:Vt,cellComponent:Nt,scopeCellComponent:Yt,getRowKey:Qe,indent:_n})}):Ot=ie.createElement(Ht,{expanded:!0,className:"".concat(it,"-placeholder"),prefixCls:it,component:Vt,cellComponent:Nt,colSpan:Oe.length,isEmpty:!0},qe);var Qt=Pt(Oe);return ie.createElement(at.Provider,{value:ut.current},ie.createElement(St,{className:"".concat(it,"-tbody")},Ue&&ie.createElement(vn,{prefixCls:it,columnsKey:Qt,onColumnResize:Me}),Ot))}zn.displayName="Body";var wn=z(zn),Wn=["expandable"],qn="RC_TABLE_INTERNAL_COL_DEFINE";function Kn(Ae){var Te=Ae.expandable,Ue=(0,$t.Z)(Ae,Wn),Ve;return"expandable"in Ae?Ve=(0,je.Z)((0,je.Z)({},Ue),Te):Ve=Ue,Ve.showExpandColumn===!1&&(Ve.expandIconColumnIndex=-1),Ve}var Vn=["columnType"];function vr(Ae){for(var Te=Ae.colWidths,Ue=Ae.columns,Ve=Ae.columCount,it=[],Ce=Ve||Ue.length,Me=!1,Oe=Ce-1;Oe>=0;Oe-=1){var Qe=Te[Oe],Je=Ue&&Ue[Oe],nt=Je&&Je[qn];if(Qe||nt||Me){var qe=nt||{},ct=qe.columnType,ut=(0,$t.Z)(qe,Vn);it.unshift(ie.createElement("col",(0,ae.Z)({key:Oe,style:{width:Qe}},ut))),Me=!0}}return ie.createElement("colgroup",null,it)}var lr=vr,sn=te(77654),Yn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ir(Ae,Te){return(0,ie.useMemo)(function(){for(var Ue=[],Ve=0;Ve<Te;Ve+=1){var it=Ae[Ve];if(it!==void 0)Ue[Ve]=it;else return null}return Ue},[Ae.join("_"),Te])}var Zn=ie.forwardRef(function(Ae,Te){var Ue=Ae.className,Ve=Ae.noData,it=Ae.columns,Ce=Ae.flattenColumns,Me=Ae.colWidths,Oe=Ae.columCount,Qe=Ae.stickyOffsets,Je=Ae.direction,nt=Ae.fixHeader,qe=Ae.stickyTopOffset,ct=Ae.stickyBottomOffset,ut=Ae.stickyClassName,St=Ae.onScroll,Vt=Ae.maxContentScroll,Nt=Ae.children,Yt=(0,$t.Z)(Ae,Yn),Ot=me(ce,["prefixCls","scrollbarSize","isSticky"]),Qt=Ot.prefixCls,Jt=Ot.scrollbarSize,Pn=Ot.isSticky,rn=Pn&&!nt?0:Jt,_n=ie.useRef(null),On=ie.useCallback(function(en){(0,he.mH)(Te,en),(0,he.mH)(_n,en)},[]);ie.useEffect(function(){var en;function bn(Dn){var gn=Dn,Tn=gn.currentTarget,jn=gn.deltaX;jn&&(St({currentTarget:Tn,scrollLeft:Tn.scrollLeft+jn}),Dn.preventDefault())}return(en=_n.current)===null||en===void 0||en.addEventListener("wheel",bn),function(){var Dn;(Dn=_n.current)===null||Dn===void 0||Dn.removeEventListener("wheel",bn)}},[]);var qt=ie.useMemo(function(){return Ce.every(function(en){return en.width})},[Ce]),hn=Ce[Ce.length-1],Rt={fixed:hn?hn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Qt,"-cell-scrollbar")}}},nn=(0,ie.useMemo)(function(){return rn?[].concat((0,sn.Z)(it),[Rt]):it},[rn,it]),ln=(0,ie.useMemo)(function(){return rn?[].concat((0,sn.Z)(Ce),[Rt]):Ce},[rn,Ce]),Ln=(0,ie.useMemo)(function(){var en=Qe.right,bn=Qe.left;return(0,je.Z)((0,je.Z)({},Qe),{},{left:Je==="rtl"?[].concat((0,sn.Z)(bn.map(function(Dn){return Dn+rn})),[0]):bn,right:Je==="rtl"?en:[].concat((0,sn.Z)(en.map(function(Dn){return Dn+rn})),[0]),isSticky:Pn})},[rn,Qe,Pn]),Jn=ir(Me,Oe);return ie.createElement("div",{style:(0,je.Z)({overflow:"hidden"},Pn?{top:qe,bottom:ct}:{}),ref:On,className:Ye()(Ue,(0,Le.Z)({},ut,!!ut))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Ve||Jn?null:"hidden"}},(!Ve||!Vt||qt)&&ie.createElement(lr,{colWidths:Jn?[].concat((0,sn.Z)(Jn),[rn]):[],columCount:Oe+1,columns:ln}),Nt((0,je.Z)((0,je.Z)({},Yt),{},{stickyOffsets:Ln,columns:nn,flattenColumns:ln}))))});Zn.displayName="FixedHolder";var ar=ie.memo(Zn);function Dr(Ae){var Te=Ae.cells,Ue=Ae.stickyOffsets,Ve=Ae.flattenColumns,it=Ae.rowComponent,Ce=Ae.cellComponent,Me=Ae.tdCellComponent,Oe=Ae.onHeaderRow,Qe=Ae.index,Je=me(ce,["prefixCls","direction"]),nt=Je.prefixCls,qe=Je.direction,ct;Oe&&(ct=Oe(Te.map(function(St){return St.column}),Qe));var ut=Pt(Te.map(function(St){return St.column}));return ie.createElement(it,ct,Te.map(function(St,Vt){var Nt=St.column,Yt=$e(St.colStart,St.colEnd,Ve,Ue,qe,Nt),Ot;return Nt&&Nt.onHeaderCell&&(Ot=St.column.onHeaderCell(Nt)),ie.createElement(an,(0,ae.Z)({},St,{scope:Nt.title?St.colSpan>1?"colgroup":"col":null,ellipsis:Nt.ellipsis,align:Nt.align,component:Nt.title?Ce:Me,prefixCls:nt,key:ut[Vt]},Yt,{additionalProps:Ot,rowType:"header"}))}))}Dr.displayName="HeaderRow";var Mr=Dr;function Er(Ae){var Te=[];function Ue(Me,Oe){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[Qe]=Te[Qe]||[];var Je=Oe,nt=Me.filter(Boolean).map(function(qe){var ct={key:qe.key,className:qe.className||"",children:qe.title,column:qe,colStart:Je},ut=1,St=qe.children;return St&&St.length>0&&(ut=Ue(St,Je,Qe+1).reduce(function(Vt,Nt){return Vt+Nt},0),ct.hasSubColumns=!0),"colSpan"in qe&&(ut=qe.colSpan),"rowSpan"in qe&&(ct.rowSpan=qe.rowSpan),ct.colSpan=ut,ct.colEnd=ct.colStart+ut-1,Te[Qe].push(ct),Je+=ut,ut});return nt}Ue(Ae,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 Br(Ae){var Te=Ae.stickyOffsets,Ue=Ae.columns,Ve=Ae.flattenColumns,it=Ae.onHeaderRow,Ce=me(ce,["prefixCls","getComponent"]),Me=Ce.prefixCls,Oe=Ce.getComponent,Qe=ie.useMemo(function(){return Er(Ue)},[Ue]),Je=Oe(["header","wrapper"],"thead"),nt=Oe(["header","row"],"tr"),qe=Oe(["header","cell"],"th"),ct=Oe(["header","cell"],"td");return ie.createElement(Je,{className:"".concat(Me,"-thead")},Qe.map(function(ut,St){var Vt=ie.createElement(Mr,{key:St,flattenColumns:Ve,cells:ut,stickyOffsets:Te,rowComponent:nt,cellComponent:qe,tdCellComponent:ct,onHeaderRow:it,index:St});return Vt}))}var sr=z(Br),Kr=te(11592);function Ut(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ae*parseFloat(Te)/100:null}function ue(Ae,Te){return ie.useMemo(function(){if(Te&&Te>0){var Ue=0,Ve=0;Ae.forEach(function(Je){var nt=Ut(Te,Je.width);nt?Ue+=nt:Ve+=1});var it=Te-Ue,Ce=Ve,Me=it/Ve,Oe=0,Qe=Ae.map(function(Je){var nt=(0,je.Z)({},Je),qe=Ut(Te,nt.width);if(qe)nt.width=qe;else{var ct=Math.floor(Me);nt.width=Ce===1?it:ct,it-=ct,Ce-=1}return Oe+=nt.width,nt});return[Qe,Oe]}return[Ae,Te]},[Ae,Te])}var ve=["children"],Pe=["fixed"];function xe(Ae){return(0,Kr.Z)(Ae).filter(function(Te){return ie.isValidElement(Te)}).map(function(Te){var Ue=Te.key,Ve=Te.props,it=Ve.children,Ce=(0,$t.Z)(Ve,ve),Me=(0,je.Z)({key:Ue},Ce);return it&&(Me.children=xe(it)),Me})}function ke(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.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(Je){return(0,je.Z)({fixed:Me},Je)}))):[].concat((0,sn.Z)(Ue),[(0,je.Z)((0,je.Z)({key:Oe},Ve),{},{fixed:Me})])},[])}function tt(Ae){for(var Te=!0,Ue=0;Ue<Ae.length;Ue+=1){var Ve=Ae[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=Ae.length-1;Ce>=0;Ce-=1){var Me=Ae[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 dt(Ae){return Ae.map(function(Te){var Ue=Te.fixed,Ve=(0,$t.Z)(Te,Pe),it=Ue;return Ue==="left"?it="right":Ue==="right"&&(it="left"),(0,je.Z)({fixed:it},Ve)})}function tn(Ae,Te){var Ue=Ae.prefixCls,Ve=Ae.columns,it=Ae.children,Ce=Ae.expandable,Me=Ae.expandedKeys,Oe=Ae.columnTitle,Qe=Ae.getRowKey,Je=Ae.onTriggerExpand,nt=Ae.expandIcon,qe=Ae.rowExpandable,ct=Ae.expandIconColumnIndex,ut=Ae.direction,St=Ae.expandRowByClick,Vt=Ae.columnWidth,Nt=Ae.fixed,Yt=Ae.scrollWidth,Ot=ie.useMemo(function(){return Ve||xe(it)},[Ve,it]),Qt=ie.useMemo(function(){if(Ce){var hn,Rt=Ot.slice();if(!Rt.includes(ee)){var nn=ct||0;nn>=0&&Rt.splice(nn,0,ee)}var ln=Rt.indexOf(ee);Rt=Rt.filter(function(bn,Dn){return bn!==ee||Dn===ln});var Ln=Ot[ln],Jn;(Nt==="left"||Nt)&&!ct?Jn="left":(Nt==="right"||Nt)&&ct===Ot.length?Jn="right":Jn=Ln?Ln.fixed:null;var en=(hn={},(0,Le.Z)(hn,qn,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Le.Z)(hn,"title",Oe),(0,Le.Z)(hn,"fixed",Jn),(0,Le.Z)(hn,"className","".concat(Ue,"-row-expand-icon-cell")),(0,Le.Z)(hn,"width",Vt),(0,Le.Z)(hn,"render",function(Dn,gn,Tn){var jn=Qe(gn,Tn),Xn=Me.has(jn),Hr=qe?qe(gn):!0,er=nt({prefixCls:Ue,expanded:Xn,expandable:Hr,record:gn,onExpand:Je});return St?ie.createElement("span",{onClick:function(Sr){return Sr.stopPropagation()}},er):er}),hn);return Rt.map(function(bn){return bn===ee?en:bn})}return Ot.filter(function(bn){return bn!==ee})},[Ce,Ot,Qe,Me,nt,ut]),Jt=ie.useMemo(function(){var hn=Qt;return Te&&(hn=Te(hn)),hn.length||(hn=[{render:function(){return null}}]),hn},[Te,Qt,ut]),Pn=ie.useMemo(function(){return ut==="rtl"?dt(ke(Jt)):ke(Jt)},[Jt,ut,Yt]),rn=ue(Pn,Yt),_n=(0,be.Z)(rn,2),On=_n[0],qt=_n[1];return[Jt,On,qt]}var Kt=tn;function _t(Ae){var Te,Ue=Ae.prefixCls,Ve=Ae.record,it=Ae.onExpand,Ce=Ae.expanded,Me=Ae.expandable,Oe="".concat(Ue,"-row-expand-icon");if(!Me)return ie.createElement("span",{className:Ye()(Oe,"".concat(Ue,"-row-spaced"))});var Qe=function(nt){it(Ve,nt),nt.stopPropagation()};return ie.createElement("span",{className:Ye()(Oe,(Te={},(0,Le.Z)(Te,"".concat(Ue,"-row-expanded"),Ce),(0,Le.Z)(Te,"".concat(Ue,"-row-collapsed"),!Ce),Te)),onClick:Qe})}function ft(Ae,Te,Ue){var Ve=[];function it(Ce){(Ce||[]).forEach(function(Me,Oe){Ve.push(Te(Me,Oe)),it(Me[Ue])})}return it(Ae),Ve}function Ft(Ae,Te,Ue){var Ve=Kn(Ae),it=Ve.expandIcon,Ce=Ve.expandedRowKeys,Me=Ve.defaultExpandedRowKeys,Oe=Ve.defaultExpandAllRows,Qe=Ve.expandedRowRender,Je=Ve.onExpand,nt=Ve.onExpandedRowsChange,qe=Ve.childrenColumnName,ct=it||_t,ut=qe||"children",St=ie.useMemo(function(){return Qe?"row":Ae.expandable&&Ae.internalHooks===ge&&Ae.expandable.__PARENT_RENDER_ICON__||Te.some(function(Pn){return Pn&&(0,Ee.Z)(Pn)==="object"&&Pn[ut]})?"nest":!1},[!!Qe,Te]),Vt=ie.useState(function(){return Me||(Oe?ft(Te,Ue,ut):[])}),Nt=(0,be.Z)(Vt,2),Yt=Nt[0],Ot=Nt[1],Qt=ie.useMemo(function(){return new Set(Ce||Yt||[])},[Ce,Yt]),Jt=ie.useCallback(function(Pn){var rn=Ue(Pn,Te.indexOf(Pn)),_n,On=Qt.has(rn);On?(Qt.delete(rn),_n=(0,sn.Z)(Qt)):_n=[].concat((0,sn.Z)(Qt),[rn]),Ot(_n),Je&&Je(!On,Pn),nt&&nt(_n)},[Ue,Qt,Te,Je,nt]);return[Ve,St,Qt,ct,ut,Jt]}function gt(Ae,Te,Ue,Ve){var it=Ae.map(function(Ce,Me){return $e(Me,Me,Ae,Te,Ue,Ve==null?void 0:Ve[Me])});return(0,vt.Z)(function(){return it},[it],function(Ce,Me){return!(0,fe.Z)(Ce,Me)})}function Gt(Ae){var Te=(0,ie.useRef)(Ae),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 Je=Promise.resolve();Ce.current=Je,Je.then(function(){if(Ce.current===Je){var nt=Me.current,qe=Te.current;Me.current=[],nt.forEach(function(ct){Te.current=ct(Te.current)}),Ce.current=null,qe!==Te.current&&it({})}})}return(0,ie.useEffect)(function(){return function(){Ce.current=null}},[]),[Te.current,Oe]}function Zt(Ae){var Te=(0,ie.useRef)(Ae||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 Tt(){var Ae=ie.useState(-1),Te=(0,be.Z)(Ae,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(Je,nt){Ve(Je),Oe(nt)},[]);return[Ue,Me,Qe]}var kt=te(47273),Xt=(0,kt.Z)()?window:null;function dn(Ae,Te){var Ue=(0,Ee.Z)(Ae)==="object"?Ae:{},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,Je=Ue.getContainer,nt=Je===void 0?function(){return Xt}:Je,qe=nt()||Xt;return ie.useMemo(function(){var ct=!!Ae;return{isSticky:ct,stickyClassName:ct?"".concat(Te,"-sticky-holder"):"",offsetHeader:it,offsetSummary:Me,offsetScroll:Qe,container:qe}},[Qe,it,Me,Te,qe])}function xn(Ae,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+=Ae[Qe]||0;var Je=Te-Qe-1;it[Je]=Me,Me+=Ae[Je]||0}else{it[Qe]=Me,Me+=Ae[Qe]||0;var nt=Te-Qe-1;Ce[nt]=Oe,Oe+=Ae[nt]||0}return{left:it,right:Ce}},[Ae,Te,Ue]);return Ve}var Fn=xn;function Qn(Ae){var Te=Ae.className,Ue=Ae.children;return ie.createElement("div",{className:Te},Ue)}var mn=Qn,An=te(8224),ur=te(55468),rr=function(Te,Ue){var Ve,it,Ce=Te.scrollBodyRef,Me=Te.onScroll,Oe=Te.offsetScroll,Qe=Te.container,Je=me(ce,"prefixCls"),nt=((Ve=Ce.current)===null||Ve===void 0?void 0:Ve.scrollWidth)||0,qe=((it=Ce.current)===null||it===void 0?void 0:it.clientWidth)||0,ct=nt&&qe*(qe/nt),ut=ie.useRef(),St=Gt({scrollLeft:0,isHiddenScrollBar:!1}),Vt=(0,be.Z)(St,2),Nt=Vt[0],Yt=Vt[1],Ot=ie.useRef({delta:0,x:0}),Qt=ie.useState(!1),Jt=(0,be.Z)(Qt,2),Pn=Jt[0],rn=Jt[1],_n=function(){rn(!1)},On=function(ln){ln.persist(),Ot.current.delta=ln.pageX-Nt.scrollLeft,Ot.current.x=0,rn(!0),ln.preventDefault()},qt=function(ln){var Ln,Jn=ln||((Ln=window)===null||Ln===void 0?void 0:Ln.event),en=Jn.buttons;if(!Pn||en===0){Pn&&rn(!1);return}var bn=Ot.current.x+ln.pageX-Ot.current.x-Ot.current.delta;bn<=0&&(bn=0),bn+ct>=qe&&(bn=qe-ct),Me({scrollLeft:bn/qe*(nt+2)}),Ot.current.x=ln.pageX},hn=function(){if(Ce.current){var ln=(0,ur.os)(Ce.current).top,Ln=ln+Ce.current.offsetHeight,Jn=Qe===window?document.documentElement.scrollTop+window.innerHeight:(0,ur.os)(Qe).top+Qe.clientHeight;Ln-(0,ot.Z)()<=Jn||ln>=Jn-Oe?Yt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!0})}):Yt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!1})})}},Rt=function(ln){Yt(function(Ln){return(0,je.Z)((0,je.Z)({},Ln),{},{scrollLeft:ln/nt*qe||0})})};return ie.useImperativeHandle(Ue,function(){return{setScrollLeft:Rt}}),ie.useEffect(function(){var nn=(0,An.Z)(document.body,"mouseup",_n,!1),ln=(0,An.Z)(document.body,"mousemove",qt,!1);return hn(),function(){nn.remove(),ln.remove()}},[ct,Pn]),ie.useEffect(function(){var nn=(0,An.Z)(Qe,"scroll",hn,!1),ln=(0,An.Z)(window,"resize",hn,!1);return function(){nn.remove(),ln.remove()}},[Qe]),ie.useEffect(function(){Nt.isHiddenScrollBar||Yt(function(nn){var ln=Ce.current;return ln?(0,je.Z)((0,je.Z)({},nn),{},{scrollLeft:ln.scrollLeft/ln.scrollWidth*ln.clientWidth}):nn})},[Nt.isHiddenScrollBar]),nt<=qe||!ct||Nt.isHiddenScrollBar?null:ie.createElement("div",{style:{height:(0,ot.Z)(),width:qe,bottom:Oe},className:"".concat(Je,"-sticky-scroll")},ie.createElement("div",{onMouseDown:On,ref:ut,className:Ye()("".concat(Je,"-sticky-scroll-bar"),(0,Le.Z)({},"".concat(Je,"-sticky-scroll-bar-active"),Pn)),style:{width:"".concat(ct,"px"),transform:"translate3d(".concat(Nt.scrollLeft,"px, 0, 0)")}}))},or=ie.forwardRef(rr);function Wt(Ae){return null}var io=Wt;function wr(Ae){return null}var Tr=wr,kr="rc-table",un=[],Sn={};function Nn(){return"No Data"}function pn(Ae){var Te,Ue=(0,je.Z)({rowKey:"key",prefixCls:kr,emptyText:Nn},Ae),Ve=Ue.prefixCls,it=Ue.className,Ce=Ue.rowClassName,Me=Ue.style,Oe=Ue.data,Qe=Ue.rowKey,Je=Ue.scroll,nt=Ue.tableLayout,qe=Ue.direction,ct=Ue.title,ut=Ue.footer,St=Ue.summary,Vt=Ue.caption,Nt=Ue.id,Yt=Ue.showHeader,Ot=Ue.components,Qt=Ue.emptyText,Jt=Ue.onRow,Pn=Ue.onHeaderRow,rn=Ue.internalHooks,_n=Ue.transformColumns,On=Ue.internalRefs,qt=Ue.tailor,hn=Ue.sticky,Rt=Oe||un,nn=!!Rt.length,ln=rn===ge,Ln=ie.useCallback(function(Fr,eo){return(0,we.Z)(Ot,Fr)||eo},[Ot]),Jn=ie.useMemo(function(){return typeof Qe=="function"?Qe:function(Fr){var eo=Fr&&Fr[Qe];return eo}},[Qe]),en=Ln(["body"]),bn=Tt(),Dn=(0,be.Z)(bn,3),gn=Dn[0],Tn=Dn[1],jn=Dn[2],Xn=Ft(Ue,Rt,Jn),Hr=(0,be.Z)(Xn,6),er=Hr[0],Wr=Hr[1],Sr=Hr[2],Lr=Hr[3],Nr=Hr[4],Hn=Hr[5],Cn=Je==null?void 0:Je.x,kn=ie.useState(0),Un=(0,be.Z)(kn,2),Mn=Un[0],yr=Un[1],Rn=Kt((0,je.Z)((0,je.Z)((0,je.Z)({},Ue),er),{},{expandable:!!er.expandedRowRender,columnTitle:er.columnTitle,expandedKeys:Sr,getRowKey:Jn,onTriggerExpand:Hn,expandIcon:Lr,expandIconColumnIndex:er.expandIconColumnIndex,direction:qe,scrollWidth:ln&&qt&&typeof Cn=="number"?Cn:null}),ln?_n:null),Gn=(0,be.Z)(Rn,3),hr=Gn[0],_r=Gn[1],Ao=Gn[2],Po=Ao!=null?Ao:Cn,tr=ie.useMemo(function(){return{columns:hr,flattenColumns:_r}},[hr,_r]),mr=ie.useRef(),qr=ie.useRef(),Rr=ie.useRef(),br=ie.useRef(),Fo=ie.useRef(),Pr=ie.useState(!1),Cr=(0,be.Z)(Pr,2),Gr=Cr[0],Vr=Cr[1],co=ie.useState(!1),dr=(0,be.Z)(co,2),Oo=dr[0],jo=dr[1],Jo=Gt(new Map),fi=(0,be.Z)(Jo,2),ci=fi[0],ea=fi[1],yi=Pt(_r),ii=yi.map(function(Fr){return ci.get(Fr)}),Ko=ie.useMemo(function(){return ii},[ii.join("_")]),Go=Fn(Ko,_r.length,qe),So=Je&&At(Je.y),ro=Je&&At(Po)||!!er.fixed,hi=ro&&_r.some(function(Fr){var eo=Fr.fixed;return eo}),Oi=ie.useRef(),wi=dn(hn,Ve),mi=wi.isSticky,Pa=wi.offsetHeader,ts=wi.offsetSummary,xr=wi.offsetScroll,Yr=wi.stickyClassName,Ro=wi.container,oo=ie.useMemo(function(){return St==null?void 0:St(Rt)},[St,Rt]),zo=(So||mi)&&ie.isValidElement(oo)&&oo.type===Ne&&oo.props.fixed,Vo,Yo,Pi;So&&(Yo={overflowY:"scroll",maxHeight:Je.y}),ro&&(Vo={overflowX:"auto"},So||(Yo={overflowY:"hidden"}),Pi={width:Po===!0?"auto":Po,minWidth:"100%"});var xs=ie.useCallback(function(Fr,eo){(0,Be.Z)(mr.current)&&ea(function(ai){if(ai.get(Fr)!==eo){var xi=new Map(ai);return xi.set(Fr,eo),xi}return ai})},[]),$s=Zt(null),Ls=(0,be.Z)($s,2),Zs=Ls[0],Ds=Ls[1];function ba(Fr,eo){eo&&(typeof eo=="function"?eo(Fr):eo.scrollLeft!==Fr&&(eo.scrollLeft=Fr,eo.scrollLeft!==Fr&&setTimeout(function(){eo.scrollLeft=Fr},0)))}var $i=(0,pe.Z)(function(Fr){var eo=Fr.currentTarget,ai=Fr.scrollLeft,xi=qe==="rtl",Li=typeof ai=="number"?ai:eo.scrollLeft,Us=eo||Sn;if(!Ds()||Ds()===Us){var as;Zs(Us),ba(Li,qr.current),ba(Li,Rr.current),ba(Li,Fo.current),ba(Li,(as=Oi.current)===null||as===void 0?void 0:as.setScrollLeft)}var ss=eo||qr.current;if(ss){var ls=ss.scrollWidth,cs=ss.clientWidth;if(ls===cs){Vr(!1),jo(!1);return}xi?(Vr(-Li<ls-cs),jo(-Li>0)):(Vr(Li>0),jo(Li<ls-cs))}}),Ms=function(){ro&&Rr.current?$i({currentTarget:Rr.current}):(Vr(!1),jo(!1))},Ws=function(eo){var ai=eo.width;ai!==Mn&&(Ms(),yr(mr.current?mr.current.offsetWidth:ai))},As=ie.useRef(!1);ie.useEffect(function(){As.current&&Ms()},[ro,Oe,hr.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||!ln)&&(Rr.current instanceof Element?Os((0,ot.o)(Rr.current).width):Os((0,ot.o)(br.current).width)),Ys((0,ze.G)("position","sticky"))},[]),ie.useEffect(function(){ln&&On&&(On.body.current=Rr.current)});var Xs=ie.useCallback(function(Fr){return ie.createElement(ie.Fragment,null,ie.createElement(sr,Fr),zo==="top"&&ie.createElement(xt,Fr,oo))},[zo,oo]),Qs=ie.useCallback(function(Fr){return ie.createElement(xt,Fr,oo)},[oo]),Ns=Ln(["table"],"table"),Ea=ie.useMemo(function(){return nt||(hi?Po==="max-content"?"auto":"fixed":So||mi||_r.some(function(Fr){var eo=Fr.ellipsis;return eo})?"fixed":"auto")},[So,hi,_r,nt,mi]),ns,rs={colWidths:Ko,columCount:_r.length,stickyOffsets:Go,onHeaderRow:Pn,fixHeader:So,scroll:Je},Bs=ie.useMemo(function(){return nn?null:typeof Qt=="function"?Qt():Qt},[nn,Qt]),ks=ie.createElement(wn,{data:Rt,measureColumnWidth:So||ro||mi}),Fs=ie.createElement(lr,{colWidths:_r.map(function(Fr){var eo=Fr.width;return eo}),columns:_r}),js=Vt!=null?ie.createElement("caption",{className:"".concat(Ve,"-caption")},Vt):void 0,Js=(0,It.Z)(Ue,{data:!0}),zs=(0,It.Z)(Ue,{aria:!0});if(So||mi){var os;typeof en=="function"?(os=en(Rt,{scrollbarSize:Ca,ref:Rr,onScroll:$i}),rs.colWidths=_r.map(function(Fr,eo){var ai=Fr.width,xi=eo===_r.length-1?ai-Ca:ai;return typeof xi=="number"&&!Number.isNaN(xi)?xi:0})):os=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Vo),Yo),onScroll:$i,ref:Rr,className:Ye()("".concat(Ve,"-body"))},ie.createElement(Ns,(0,ae.Z)({style:(0,je.Z)((0,je.Z)({},Pi),{},{tableLayout:Ea})},zs),js,Fs,ks,!zo&&oo&&ie.createElement(xt,{stickyOffsets:Go,flattenColumns:_r,columns:hr},oo)));var Hs=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Rt.length,maxContentScroll:ro&&Po==="max-content"},rs),tr),{},{direction:qe,stickyClassName:Yr,onScroll:$i});ns=ie.createElement(ie.Fragment,null,Yt!==!1&&ie.createElement(ar,(0,ae.Z)({},Hs,{stickyTopOffset:Pa,className:"".concat(Ve,"-header"),ref:qr}),Xs),os,zo&&zo!=="top"&&ie.createElement(ar,(0,ae.Z)({},Hs,{stickyBottomOffset:ts,className:"".concat(Ve,"-summary"),ref:Fo}),Qs),mi&&ie.createElement(or,{ref:Oi,offsetScroll:xr,scrollBodyRef:Rr,onScroll:$i,container:Ro}))}else ns=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Vo),Yo),className:Ye()("".concat(Ve,"-content")),onScroll:$i,ref:Rr},ie.createElement(Ns,(0,ae.Z)({style:(0,je.Z)((0,je.Z)({},Pi),{},{tableLayout:Ea})},zs),js,Fs,Yt!==!1&&ie.createElement(sr,(0,ae.Z)({},rs,tr)),ks,oo&&ie.createElement(xt,{stickyOffsets:Go,flattenColumns:_r,columns:hr},oo)));var is=ie.createElement("div",(0,ae.Z)({className:Ye()(Ve,it,(Te={},(0,Le.Z)(Te,"".concat(Ve,"-rtl"),qe==="rtl"),(0,Le.Z)(Te,"".concat(Ve,"-ping-left"),Gr),(0,Le.Z)(Te,"".concat(Ve,"-ping-right"),Oo),(0,Le.Z)(Te,"".concat(Ve,"-layout-fixed"),nt==="fixed"),(0,Le.Z)(Te,"".concat(Ve,"-fixed-header"),So),(0,Le.Z)(Te,"".concat(Ve,"-fixed-column"),hi),(0,Le.Z)(Te,"".concat(Ve,"-scroll-horizontal"),ro),(0,Le.Z)(Te,"".concat(Ve,"-has-fix-left"),_r[0]&&_r[0].fixed),(0,Le.Z)(Te,"".concat(Ve,"-has-fix-right"),_r[_r.length-1]&&_r[_r.length-1].fixed==="right"),Te)),style:Me,id:Nt,ref:mr},Js),ct&&ie.createElement(mn,{className:"".concat(Ve,"-title")},ct(Rt)),ie.createElement("div",{ref:br,className:"".concat(Ve,"-container")},ns),ut&&ie.createElement(mn,{className:"".concat(Ve,"-footer")},ut(Rt)));ro&&(is=ie.createElement(Ze.Z,{onResize:Ws},is));var Gs=gt(_r,Go,qe,hr),qs=ie.useMemo(function(){return{scrollX:Po,prefixCls:Ve,getComponent:Ln,scrollbarSize:Ca,direction:qe,fixedInfoList:Gs,isSticky:mi,supportSticky:Ts,componentWidth:Mn,fixHeader:So,fixColumn:hi,horizonScroll:ro,tableLayout:Ea,rowClassName:Ce,expandedRowClassName:er.expandedRowClassName,expandIcon:Lr,expandableType:Wr,expandRowByClick:er.expandRowByClick,expandedRowRender:er.expandedRowRender,onTriggerExpand:Hn,expandIconColumnIndex:er.expandIconColumnIndex,indentSize:er.indentSize,allColumnsFixedLeft:_r.every(function(Fr){return Fr.fixed==="left"}),emptyNode:Bs,columns:hr,flattenColumns:_r,onColumnResize:xs,hoverStartRow:gn,hoverEndRow:Tn,onHover:jn,rowExpandable:er.rowExpandable,onRow:Jt,getRowKey:Jn,expandedKeys:Sr,childrenColumnName:Nr}},[Po,Ve,Ln,Ca,qe,Gs,mi,Ts,Mn,So,hi,ro,Ea,Ce,er.expandedRowClassName,Lr,Wr,er.expandRowByClick,er.expandedRowRender,Hn,er.expandIconColumnIndex,er.indentSize,Bs,hr,_r,xs,gn,Tn,jn,er.rowExpandable,Jt,Jn,Sr,Nr]);return ie.createElement(ce.Provider,{value:qs},is)}function cr(Ae){return x(pn,Ae)}var fr=cr();fr.EXPAND_COLUMN=ee,fr.INTERNAL_HOOKS=ge,fr.Column=io,fr.ColumnGroup=Tr,fr.Summary=Ie;var Ar=fr,Ur=te(48911),to=le(null),_o=le(null);function ho(Ae,Te,Ue){var Ve=Te||1;return Ue[Ae+Ve]-(Ue[Ae]||0)}function yo(Ae){var Te=Ae.rowInfo,Ue=Ae.column,Ve=Ae.colIndex,it=Ae.indent,Ce=Ae.index,Me=Ae.renderIndex,Oe=Ae.record,Qe=Ae.style,Je=Ae.className,nt=Ae.inverse,qe=Ae.getHeight,ct=Ue.render,ut=Ue.dataIndex,St=Ue.className,Vt=Ue.width,Nt=me(_o,["columnsOffset"]),Yt=Nt.columnsOffset,Ot=fn(Te,Ue,Ve,it,Ce),Qt=Ot.key,Jt=Ot.fixedInfo,Pn=Ot.appendCellNode,rn=Ot.additionalCellProps,_n=rn.style,On=rn.colSpan,qt=On===void 0?1:On,hn=rn.rowSpan,Rt=hn===void 0?1:hn,nn=Ve-1,ln=ho(nn,qt,Yt),Ln=qt>1?Vt-ln:0,Jn=(0,je.Z)((0,je.Z)((0,je.Z)({},_n),Qe),{},{flex:"0 0 ".concat(ln,"px"),width:"".concat(ln,"px"),marginRight:Ln,pointerEvents:"auto"}),en=ie.useMemo(function(){return nt?Rt<=1:qt===0||Rt===0||Rt>1},[Rt,qt,nt]);en?Jn.visibility="hidden":nt&&(Jn.height=qe==null?void 0:qe(Rt));var bn=en?function(){return null}:ct,Dn={};return(Rt===0||qt===0)&&(Dn.rowSpan=1,Dn.colSpan=1),ie.createElement(an,(0,ae.Z)({className:Ye()(St,Je),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Te.prefixCls,key:Qt,record:Oe,index:Ce,renderIndex:Me,dataIndex:ut,render:bn,shouldCellUpdate:Ue.shouldCellUpdate},Jt,{appendNode:Pn,additionalProps:(0,je.Z)((0,je.Z)({},rn),{},{style:Jn},Dn)}))}var Io=yo,bo=["data","index","className","rowKey","style","extra","getHeight"],Lo=ie.forwardRef(function(Ae,Te){var Ue=Ae.data,Ve=Ae.index,it=Ae.className,Ce=Ae.rowKey,Me=Ae.style,Oe=Ae.extra,Qe=Ae.getHeight,Je=(0,$t.Z)(Ae,bo),nt=Ue.record,qe=Ue.indent,ct=Ue.index,ut=me(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),St=ut.scrollX,Vt=ut.flattenColumns,Nt=ut.prefixCls,Yt=ut.fixColumn,Ot=ut.componentWidth,Qt=bt(nt,Ce,Ve,qe),Jt=Qt.rowSupportExpand,Pn=Qt.expanded,rn=Qt.rowProps,_n=Qt.expandedRowRender,On=Qt.expandedRowClassName,qt;if(Jt&&Pn){var hn=_n(nt,Ve,qe+1,Pn),Rt=On==null?void 0:On(nt,Ve,qe),nn={};Yt&&(nn={style:(0,Le.Z)({},"--virtual-width","".concat(Ot,"px"))});var ln="".concat(Nt,"-expanded-row-cell");qt=ie.createElement("div",{className:Ye()("".concat(Nt,"-expanded-row"),"".concat(Nt,"-expanded-row-level-").concat(qe+1),Rt)},ie.createElement(an,{component:"div",prefixCls:Nt,className:Ye()(ln,(0,Le.Z)({},"".concat(ln,"-fixed"),Yt)),additionalProps:nn},hn))}var Ln=(0,je.Z)((0,je.Z)({},Me),{},{width:St});Oe&&(Ln.position="absolute",Ln.pointerEvents="none");var Jn=ie.createElement("div",(0,ae.Z)({},rn,Je,{ref:Jt?null:Te,className:Ye()(it,"".concat(Nt,"-row"),rn==null?void 0:rn.className,(0,Le.Z)({},"".concat(Nt,"-row-extra"),Oe)),style:(0,je.Z)((0,je.Z)({},Ln),rn==null?void 0:rn.style)}),Vt.map(function(en,bn){return ie.createElement(Io,{key:bn,rowInfo:Qt,column:en,colIndex:bn,indent:qe,index:Ve,renderIndex:ct,record:nt,inverse:Oe,getHeight:Qe})}));return Jt?ie.createElement("div",{ref:Te},Jn,qt):Jn}),Do=z(Lo),To=Do,ao=ie.forwardRef(function(Ae,Te){var Ue=Ae.data,Ve=Ae.onScroll,it=me(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ce=it.flattenColumns,Me=it.onColumnResize,Oe=it.getRowKey,Qe=it.expandedKeys,Je=it.prefixCls,nt=it.childrenColumnName,qe=it.emptyNode,ct=it.scrollX,ut=me(to),St=ut.scrollY,Vt=ut.listItemHeight,Nt=ie.useRef(),Yt=jt(Ue,nt,Qe,Oe),Ot=ie.useMemo(function(){var qt=0;return Ce.map(function(hn){var Rt=hn.width,nn=hn.key;return qt+=Rt,[nn,Rt,qt]})},[Ce]),Qt=ie.useMemo(function(){return Ot.map(function(qt){return qt[2]})},[Ot]);ie.useEffect(function(){Ot.forEach(function(qt){var hn=(0,be.Z)(qt,2),Rt=hn[0],nn=hn[1];Me(Rt,nn)})},[Ot]),ie.useImperativeHandle(Te,function(){var qt={};return Object.defineProperty(qt,"scrollLeft",{get:function(){var Rt;return((Rt=Nt.current)===null||Rt===void 0?void 0:Rt.getScrollInfo().x)||0},set:function(Rt){var nn;(nn=Nt.current)===null||nn===void 0||nn.scrollTo({left:Rt})}}),qt});var Jt=function(hn,Rt){var nn,ln=(nn=Yt[Rt])===null||nn===void 0?void 0:nn.record,Ln=hn.onCell;if(Ln){var Jn,en=Ln(ln,Rt);return(Jn=en==null?void 0:en.rowSpan)!==null&&Jn!==void 0?Jn:1}return 1},Pn=function(hn){var Rt=hn.start,nn=hn.end,ln=hn.getSize,Ln=hn.offsetY;if(nn<0)return null;for(var Jn=Ce.filter(function(Cn){return Jt(Cn,Rt)===0}),en=Rt,bn=function(kn){if(Jn=Jn.filter(function(Un){return Jt(Un,kn)===0}),!Jn.length)return en=kn,"break"},Dn=Rt;Dn>=0;Dn-=1){var gn=bn(Dn);if(gn==="break")break}for(var Tn=Ce.filter(function(Cn){return Jt(Cn,nn)!==1}),jn=nn,Xn=function(kn){if(Tn=Tn.filter(function(Un){return Jt(Un,kn)!==1}),!Tn.length)return jn=Math.max(kn-1,nn),"break"},Hr=nn;Hr<Yt.length;Hr+=1){var er=Xn(Hr);if(er==="break")break}for(var Wr=[],Sr=function(kn){var Un=Yt[kn];if(!Un)return"continue";Ce.some(function(Mn){return Jt(Mn,kn)>1})&&Wr.push(kn)},Lr=en;Lr<=jn;Lr+=1)var Nr=Sr(Lr);var Hn=Wr.map(function(Cn){var kn=Yt[Cn],Un=Oe(kn.record,Cn),Mn=function(Gn){var hr=Cn+Gn-1,_r=Oe(Yt[hr].record,hr),Ao=ln(Un,_r);return Ao.bottom-Ao.top},yr=ln(Un);return ie.createElement(To,{key:Cn,data:kn,rowKey:Un,index:Cn,style:{top:-Ln+yr.top},extra:!0,getHeight:Mn})});return Hn},rn=ie.useMemo(function(){return{columnsOffset:Qt}},[Qt]),_n="".concat(Je,"-tbody"),On;return Yt.length?On=ie.createElement(Ur.Z,{fullHeight:!1,ref:Nt,className:Ye()(_n,"".concat(_n,"-virtual")),height:St,itemHeight:Vt||24,data:Yt,itemKey:function(hn){return Oe(hn.record)},scrollWidth:ct,onVirtualScroll:function(hn){var Rt=hn.x;Ve({scrollLeft:Rt})},extraRender:Pn},function(qt,hn,Rt){var nn=Oe(qt.record,hn);return ie.createElement(To,(0,ae.Z)({data:qt,rowKey:nn,index:hn},Rt))}):On=ie.createElement("div",{className:Ye()("".concat(Je,"-placeholder"))},ie.createElement(an,{component:"div",prefixCls:Je},qe)),ie.createElement(_o.Provider,{value:rn},On)}),jr=z(ao),$r=jr,no=function(Te,Ue){var Ve=Ue.ref,it=Ue.onScroll;return ie.createElement($r,{ref:Ve,data:Te,onScroll:it})},uo=100;function No(Ae){var Te=Ae.columns,Ue=Ae.scroll,Ve=Ae.prefixCls,it=Ve===void 0?kr:Ve,Ce=Ae.className,Me=Ae.listItemHeight,Oe=Ue||{},Qe=Oe.x,Je=Oe.y;typeof Qe!="number"&&(Qe=((Te||[]).length+1)*uo),typeof Je!="number"&&(Je=500);var nt=ie.useMemo(function(){return{scrollY:Je,listItemHeight:Me}},[Je,Me]);return ie.createElement(to.Provider,{value:nt},ie.createElement(Ar,(0,ae.Z)({},Ae,{className:Ye()(Ce,"".concat(it,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Ue),{},{x:Qe}),components:{body:no},columns:Te,internalHooks:ge,tailor:!0})))}function zr(Ae){return x(No,Ae)}var Uo=zr(),Co=null;function mo(Ae){return null}var si=mo;function Eo(Ae){return null}var Xo=Eo,Bo=te(2738),wo=te(68031),po=te(36355),$o=te(93891),qo=te(19716),bi=te(8628),pi=te(31724),ei=te(58421),$n=te(71418),En=te(88088);function In(Ae){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:Je=>{it(Ce,Je),Je.stopPropagation()},className:Ye()(Qe,{[`${Qe}-spaced`]:!Oe,[`${Qe}-expanded`]:Oe&&Me,[`${Qe}-collapsed`]:Oe&&!Me}),"aria-label":Me?Ae.collapse:Ae.expand,"aria-expanded":Me})}}var Bn=In;function gr(Ae,Te){return"key"in Ae&&Ae.key!==void 0&&Ae.key!==null?Ae.key:Ae.dataIndex?Array.isArray(Ae.dataIndex)?Ae.dataIndex.join("."):Ae.dataIndex:Te}function Ir(Ae,Te){return Te?`${Te}-${Ae}`:`${Ae}`}function Xr(Ae,Te){return typeof Ae=="function"?Ae(Te):Ae}function Qr(Ae,Te){const Ue=Xr(Ae,Te);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var fo={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"},lo=fo,Ho=te(7657),xo=function(Te,Ue){return ie.createElement(Ho.Z,(0,ae.Z)({},Te,{ref:Ue,icon:lo}))},di=ie.forwardRef(xo),ni=di,Jr=te(56762);function pr(Ae){const Te=ie.useRef(Ae),Ue=(0,Jr.Z)();return[()=>Te.current,Ve=>{Te.current=Ve,Ue()}]}var Mo=te(3113),Zo=te(24905),Or=te(38854),so=te(64165),ri=te(20834),ti=te(40875),vi=te(5112),Si=te(17574),ko=te(47472),ui=te(92832);function Ri(Ae){let{value:Te,onChange:Ue,filterSearch:Ve,tablePrefixCls:it,locale:Ce}=Ae;return Ve?ie.createElement("div",{className:`${it}-filter-dropdown-search`},ie.createElement(ui.default,{prefix:ie.createElement(ko.Z,null),placeholder:Ce.filterSearchPlaceholder,onChange:Ue,value:Te,htmlSize:1,className:`${it}-filter-dropdown-search-input`})):null}var Ti=Ri,ta=te(10228);const wa=Ae=>{const{keyCode:Te}=Ae;Te===ta.Z.ENTER&&Ae.stopPropagation()};var La=ie.forwardRef((Ae,Te)=>ie.createElement("div",{className:Ae.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:wa,ref:Te},Ae.children));function Ci(Ae){let Te=[];return(Ae||[]).forEach(Ue=>{let{value:Ve,children:it}=Ue;Te.push(Ve),it&&(Te=[].concat((0,sn.Z)(Te),(0,sn.Z)(Ci(it))))}),Te}function na(Ae){return Ae.some(Te=>{let{children:Ue}=Te;return Ue})}function ra(Ae,Te){return typeof Te=="string"||typeof Te=="number"?Te==null?void 0:Te.toString().toLowerCase().includes(Ae.trim().toLowerCase()):!1}function Da(Ae){let{filters:Te,prefixCls:Ue,filteredKeys:Ve,filterMultiple:it,searchValue:Ce,filterSearch:Me}=Ae;return Te.map((Oe,Qe)=>{const Je=String(Oe.value);if(Oe.children)return{key:Je||Qe,label:Oe.text,popupClassName:`${Ue}-dropdown-submenu`,children:Da({filters:Oe.children,prefixCls:Ue,filteredKeys:Ve,filterMultiple:it,searchValue:Ce,filterSearch:Me})};const nt=it?Zo.default:vi.ZP,qe={key:Oe.value!==void 0?Je:Qe,label:ie.createElement(ie.Fragment,null,ie.createElement(nt,{checked:Ve.includes(Je)}),ie.createElement("span",null,Oe.text))};return Ce.trim()?typeof Me=="function"?Me(Ce,Oe)?qe:null:ra(Ce,Oe.text)?qe:null:qe})}function Ma(Ae){var Te,Ue;const{tablePrefixCls:Ve,prefixCls:it,column:Ce,dropdownPrefixCls:Me,columnKey:Oe,filterMultiple:Qe,filterMode:Je="menu",filterSearch:nt=!1,filterState:qe,triggerFilter:ct,locale:ut,children:St,getPopupContainer:Vt}=Ae,{filterDropdownOpen:Nt,onFilterDropdownOpenChange:Yt,filterResetToDefaultFilteredValue:Ot,defaultFilteredValue:Qt,filterDropdownVisible:Jt,onFilterDropdownVisibleChange:Pn}=Ce,[rn,_n]=ie.useState(!1),On=!!(qe&&(!((Te=qe.filteredKeys)===null||Te===void 0)&&Te.length||qe.forceFiltered)),qt=Rn=>{_n(Rn),Yt==null||Yt(Rn),Pn==null||Pn(Rn)},hn=(Ue=Nt!=null?Nt:Jt)!==null&&Ue!==void 0?Ue:rn,Rt=qe==null?void 0:qe.filteredKeys,[nn,ln]=pr(Rt||[]),Ln=Rn=>{let{selectedKeys:Gn}=Rn;ln(Gn)},Jn=(Rn,Gn)=>{let{node:hr,checked:_r}=Gn;Ln(Qe?{selectedKeys:Rn}:{selectedKeys:_r&&hr.key?[hr.key]:[]})};ie.useEffect(()=>{rn&&Ln({selectedKeys:Rt||[]})},[Rt]);const[en,bn]=ie.useState([]),Dn=Rn=>{bn(Rn)},[gn,Tn]=ie.useState(""),jn=Rn=>{const{value:Gn}=Rn.target;Tn(Gn)};ie.useEffect(()=>{rn||Tn("")},[rn]);const Xn=Rn=>{const Gn=Rn&&Rn.length?Rn:null;if(Gn===null&&(!qe||!qe.filteredKeys)||(0,fe.Z)(Gn,qe==null?void 0:qe.filteredKeys,!0))return null;ct({column:Ce,key:Oe,filteredKeys:Gn})},Hr=()=>{qt(!1),Xn(nn())},er=function(){let{confirm:Rn,closeDropdown:Gn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Rn&&Xn([]),Gn&&qt(!1),Tn(""),ln(Ot?(Qt||[]).map(hr=>String(hr)):[])},Wr=function(){let{closeDropdown:Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Rn&&qt(!1),Xn(nn())},Sr=Rn=>{Rn&&Rt!==void 0&&ln(Rt||[]),qt(Rn),!Rn&&!Ce.filterDropdown&&Hr()},Lr=Ye()({[`${Me}-menu-without-submenu`]:!na(Ce.filters||[])}),Nr=Rn=>{if(Rn.target.checked){const Gn=Ci(Ce==null?void 0:Ce.filters).map(hr=>String(hr));ln(Gn)}else ln([])},Hn=Rn=>{let{filters:Gn}=Rn;return(Gn||[]).map((hr,_r)=>{const Ao=String(hr.value),Po={title:hr.text,key:hr.value!==void 0?Ao:_r};return hr.children&&(Po.children=Hn({filters:hr.children})),Po})},Cn=Rn=>{var Gn;return Object.assign(Object.assign({},Rn),{text:Rn.title,value:Rn.key,children:((Gn=Rn.children)===null||Gn===void 0?void 0:Gn.map(hr=>Cn(hr)))||[]})};let kn;if(typeof Ce.filterDropdown=="function")kn=Ce.filterDropdown({prefixCls:`${Me}-custom`,setSelectedKeys:Rn=>Ln({selectedKeys:Rn}),selectedKeys:nn(),confirm:Wr,clearFilters:er,filters:Ce.filters,visible:hn,close:()=>{qt(!1)}});else if(Ce.filterDropdown)kn=Ce.filterDropdown;else{const Rn=nn()||[],Gn=()=>(Ce.filters||[]).length===0?ie.createElement(so.Z,{image:so.Z.PRESENTED_IMAGE_SIMPLE,description:ut.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Je==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(Ti,{filterSearch:nt,value:gn,onChange:jn,tablePrefixCls:Ve,locale:ut}),ie.createElement("div",{className:`${Ve}-filter-dropdown-tree`},Qe?ie.createElement(Zo.default,{checked:Rn.length===Ci(Ce.filters).length,indeterminate:Rn.length>0&&Rn.length<Ci(Ce.filters).length,className:`${Ve}-filter-dropdown-checkall`,onChange:Nr},ut.filterCheckall):null,ie.createElement(Si.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Qe,checkStrictly:!Qe,className:`${Me}-menu`,onCheck:Jn,checkedKeys:Rn,selectedKeys:Rn,showIcon:!1,treeData:Hn({filters:Ce.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:gn.trim()?_r=>typeof nt=="function"?nt(gn,Cn(_r)):ra(gn,_r.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(Ti,{filterSearch:nt,value:gn,onChange:jn,tablePrefixCls:Ve,locale:ut}),ie.createElement(ri.default,{selectable:!0,multiple:Qe,prefixCls:`${Me}-menu`,className:Lr,onSelect:Ln,onDeselect:Ln,selectedKeys:Rn,getPopupContainer:Vt,openKeys:en,onOpenChange:Dn,items:Da({filters:Ce.filters||[],filterSearch:nt,prefixCls:it,filteredKeys:nn(),filterMultiple:Qe,searchValue:gn})})),hr=()=>Ot?(0,fe.Z)((Qt||[]).map(_r=>String(_r)),Rn,!0):Rn.length===0;kn=ie.createElement(ie.Fragment,null,Gn(),ie.createElement("div",{className:`${it}-dropdown-btns`},ie.createElement(Mo.ZP,{type:"link",size:"small",disabled:hr(),onClick:()=>er()},ut.filterReset),ie.createElement(Mo.ZP,{type:"primary",size:"small",onClick:Hr},ut.filterConfirm)))}Ce.filterDropdown&&(kn=ie.createElement(ti.J,{selectable:void 0},kn));const Un=()=>ie.createElement(La,{className:`${it}-dropdown`},kn);let Mn;typeof Ce.filterIcon=="function"?Mn=Ce.filterIcon(On):Ce.filterIcon?Mn=Ce.filterIcon:Mn=ie.createElement(ni,null);const{direction:yr}=ie.useContext(po.E_);return ie.createElement("div",{className:`${it}-column`},ie.createElement("span",{className:`${Ve}-column-title`},St),ie.createElement(Or.Z,{dropdownRender:Un,trigger:["click"],open:hn,onOpenChange:Sr,getPopupContainer:Vt,placement:yr==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Ye()(`${it}-trigger`,{active:On}),onClick:Rn=>{Rn.stopPropagation()}},Mn)))}var Aa=Ma;function Ni(Ae,Te,Ue){let Ve=[];return(Ae||[]).forEach((it,Ce)=>{var Me;const Oe=Ir(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:gr(it,Oe),filteredKeys:Qe,forceFiltered:it.filtered})}else Ve.push({column:it,key:gr(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)(Ni(it.children,Te,Oe))))}),Ve}function oa(Ae,Te,Ue,Ve,it,Ce,Me,Oe){return Ue.map((Qe,Je)=>{const nt=Ir(Je,Oe),{filterMultiple:qe=!0,filterMode:ct,filterSearch:ut}=Qe;let St=Qe;if(St.filters||St.filterDropdown){const Vt=gr(St,nt),Nt=Ve.find(Yt=>{let{key:Ot}=Yt;return Vt===Ot});St=Object.assign(Object.assign({},St),{title:Yt=>ie.createElement(Aa,{tablePrefixCls:Ae,prefixCls:`${Ae}-filter`,dropdownPrefixCls:Te,column:St,columnKey:Vt,filterState:Nt,filterMultiple:qe,filterMode:ct,filterSearch:ut,triggerFilter:Ce,locale:it,getPopupContainer:Me},Xr(Qe.title,Yt))})}return"children"in St&&(St=Object.assign(Object.assign({},St),{children:oa(Ae,Te,St.children,Ve,it,Ce,Me,nt)})),St})}function ia(Ae){const Te={};return Ae.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=Ci(Me);Te[Ve]=Qe.filter(Je=>it.includes(String(Je)))}else Te[Ve]=null}),Te}function Zi(Ae,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 Je=Ci(Ce),nt=Je.findIndex(ct=>String(ct)===String(Qe)),qe=nt!==-1?Je[nt]:Qe;return it(qe,Oe)})):Ue},Ae)}const aa=Ae=>Ae.flatMap(Te=>"children"in Te?[Te].concat((0,sn.Z)(aa(Te.children||[]))):[Te]);function ds(Ae){let{prefixCls:Te,dropdownPrefixCls:Ue,mergedColumns:Ve,onFilterChange:it,getPopupContainer:Ce,locale:Me}=Ae;const Oe=ie.useMemo(()=>aa(Ve||[]),[Ve]),[Qe,Je]=ie.useState(()=>Ni(Oe,!0)),nt=ie.useMemo(()=>{const St=Ni(Oe,!1);if(St.length===0)return St;let Vt=!0,Nt=!0;if(St.forEach(Yt=>{let{filteredKeys:Ot}=Yt;Ot!==void 0?Vt=!1:Nt=!1}),Vt){const Yt=(Oe||[]).map((Ot,Qt)=>gr(Ot,Ir(Qt)));return Qe.filter(Ot=>{let{key:Qt}=Ot;return Yt.includes(Qt)}).map(Ot=>{const Qt=Oe[Yt.findIndex(Jt=>Jt===Ot.key)];return Object.assign(Object.assign({},Ot),{column:Object.assign(Object.assign({},Ot.column),Qt),forceFiltered:Qt.filtered})})}return St},[Oe,Qe]),qe=ie.useMemo(()=>ia(nt),[nt]),ct=St=>{const Vt=nt.filter(Nt=>{let{key:Yt}=Nt;return Yt!==St.key});Vt.push(St),Je(Vt),it(ia(Vt),Vt)};return[St=>oa(Te,Ue,St,nt,Me,ct,Ce),nt,qe]}var sa=ds;function Wi(Ae,Te,Ue){const Ve=ie.useRef({});function it(Ce){if(!Ve.current||Ve.current.data!==Ae||Ve.current.childrenColumnName!==Te||Ve.current.getRowKey!==Ue){let Oe=function(Qe){Qe.forEach((Je,nt)=>{const qe=Ue(Je,nt);Me.set(qe,Je),Je&&typeof Je=="object"&&Te in Je&&Oe(Je[Te]||[])})};const Me=new Map;Oe(Ae),Ve.current={data:Ae,childrenColumnName:Te,kvMap:Me,getRowKey:Ue}}return Ve.current.kvMap.get(Ce)}return[it]}var la=te(50371),Bi=function(Ae,Te){var Ue={};for(var Ve in Ae)Object.prototype.hasOwnProperty.call(Ae,Ve)&&Te.indexOf(Ve)<0&&(Ue[Ve]=Ae[Ve]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ve=Object.getOwnPropertySymbols(Ae);it<Ve.length;it++)Te.indexOf(Ve[it])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Ve[it])&&(Ue[Ve[it]]=Ae[Ve[it]]);return Ue};const oi=10;function Ia(Ae,Te){const Ue={current:Ae.current,pageSize:Ae.pageSize};return Object.keys(Te&&typeof Te=="object"?Te:{}).forEach(it=>{const Ce=Ae[it];typeof Ce!="function"&&(Ue[it]=Ce)}),Ue}function ca(Ae,Te,Ue){const Ve=Ue&&typeof Ue=="object"?Ue:{},{total:it=0}=Ve,Ce=Bi(Ve,["total"]),[Me,Oe]=(0,ie.useState)(()=>({current:"defaultCurrent"in Ce?Ce.defaultCurrent:1,pageSize:"defaultPageSize"in Ce?Ce.defaultPageSize:oi})),Qe=(0,la.Z)(Me,Ce,{total:it>0?it:Ae}),Je=Math.ceil((it||Ae)/Qe.pageSize);Qe.current>Je&&(Qe.current=Je||1);const nt=(ct,ut)=>{Oe({current:ct!=null?ct:1,pageSize:ut||Qe.pageSize})},qe=(ct,ut)=>{var St;Ue&&((St=Ue.onChange)===null||St===void 0||St.call(Ue,ct,ut)),nt(ct,ut),Te(ct,ut||(Qe==null?void 0:Qe.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},Qe),{onChange:qe}),nt]}var Oa=ca,Ra=te(84105),Ta=te(35654),Ki=te(90782),ki=te(71430),us=te(18929);const gi={},Vi="SELECT_ALL",Yi="SELECT_INVERT",Fi="SELECT_NONE",da=[],ua=(Ae,Te)=>{let Ue=[];return(Te||[]).forEach(Ve=>{Ue.push(Ve),Ve&&typeof Ve=="object"&&Ae in Ve&&(Ue=[].concat((0,sn.Z)(Ue),(0,sn.Z)(ua(Ae,Ve[Ae]))))}),Ue};var Ba=(Ae,Te)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:Ve,defaultSelectedRowKeys:it,getCheckboxProps:Ce,onChange:Me,onSelect:Oe,onSelectAll:Qe,onSelectInvert:Je,onSelectNone:nt,onSelectMultiple:qe,columnWidth:ct,type:ut,selections:St,fixed:Vt,renderCell:Nt,hideSelectAll:Yt,checkStrictly:Ot=!0}=Te||{},{prefixCls:Qt,data:Jt,pageData:Pn,getRecordByKey:rn,getRowKey:_n,expandType:On,childrenColumnName:qt,locale:hn,getPopupContainer:Rt}=Ae,[nn,ln]=(0,us.Z)(Ve||it||da,{value:Ve}),Ln=ie.useRef(new Map),Jn=(0,ie.useCallback)(Cn=>{if(Ue){const kn=new Map;Cn.forEach(Un=>{let Mn=rn(Un);!Mn&&Ln.current.has(Un)&&(Mn=Ln.current.get(Un)),kn.set(Un,Mn)}),Ln.current=kn}},[rn,Ue]);ie.useEffect(()=>{Jn(nn)},[nn]);const{keyEntities:en}=(0,ie.useMemo)(()=>{if(Ot)return{keyEntities:null};let Cn=Jt;if(Ue){const kn=new Set(Jt.map((Mn,yr)=>_n(Mn,yr))),Un=Array.from(Ln.current).reduce((Mn,yr)=>{let[Rn,Gn]=yr;return kn.has(Rn)?Mn:Mn.concat(Gn)},[]);Cn=[].concat((0,sn.Z)(Cn),(0,sn.Z)(Un))}return(0,ki.I8)(Cn,{externalGetKey:_n,childrenPropName:qt})},[Jt,_n,Ot,qt,Ue]),bn=(0,ie.useMemo)(()=>ua(qt,Pn),[qt,Pn]),Dn=(0,ie.useMemo)(()=>{const Cn=new Map;return bn.forEach((kn,Un)=>{const Mn=_n(kn,Un),yr=(Ce?Ce(kn):null)||{};Cn.set(Mn,yr)}),Cn},[bn,_n,Ce]),gn=(0,ie.useCallback)(Cn=>{var kn;return!!(!((kn=Dn.get(_n(Cn)))===null||kn===void 0)&&kn.disabled)},[Dn,_n]),[Tn,jn]=(0,ie.useMemo)(()=>{if(Ot)return[nn||[],[]];const{checkedKeys:Cn,halfCheckedKeys:kn}=(0,Ki.S)(nn,!0,en,gn);return[Cn||[],kn]},[nn,Ot,en,gn]),Xn=(0,ie.useMemo)(()=>{const Cn=ut==="radio"?Tn.slice(0,1):Tn;return new Set(Cn)},[Tn,ut]),Hr=(0,ie.useMemo)(()=>ut==="radio"?new Set:new Set(jn),[jn,ut]),[er,Wr]=(0,ie.useState)(null);ie.useEffect(()=>{Te||ln(da)},[!!Te]);const Sr=(0,ie.useCallback)((Cn,kn)=>{let Un,Mn;Jn(Cn),Ue?(Un=Cn,Mn=Cn.map(yr=>Ln.current.get(yr))):(Un=[],Mn=[],Cn.forEach(yr=>{const Rn=rn(yr);Rn!==void 0&&(Un.push(yr),Mn.push(Rn))})),ln(Un),Me==null||Me(Un,Mn,{type:kn})},[ln,rn,Me,Ue]),Lr=(0,ie.useCallback)((Cn,kn,Un,Mn)=>{if(Oe){const yr=Un.map(Rn=>rn(Rn));Oe(rn(Cn),kn,yr,Mn)}Sr(Un,"single")},[Oe,rn,Sr]),Nr=(0,ie.useMemo)(()=>!St||Yt?null:(St===!0?[Vi,Yi,Fi]:St).map(kn=>kn===Vi?{key:"all",text:hn.selectionAll,onSelect(){Sr(Jt.map((Un,Mn)=>_n(Un,Mn)).filter(Un=>{const Mn=Dn.get(Un);return!(Mn!=null&&Mn.disabled)||Xn.has(Un)}),"all")}}:kn===Yi?{key:"invert",text:hn.selectInvert,onSelect(){const Un=new Set(Xn);Pn.forEach((yr,Rn)=>{const Gn=_n(yr,Rn),hr=Dn.get(Gn);hr!=null&&hr.disabled||(Un.has(Gn)?Un.delete(Gn):Un.add(Gn))});const Mn=Array.from(Un);Je&&Je(Mn),Sr(Mn,"invert")}}:kn===Fi?{key:"none",text:hn.selectNone,onSelect(){nt==null||nt(),Sr(Array.from(Xn).filter(Un=>{const Mn=Dn.get(Un);return Mn==null?void 0:Mn.disabled}),"none")}}:kn).map(kn=>Object.assign(Object.assign({},kn),{onSelect:function(){for(var Un,Mn,yr=arguments.length,Rn=new Array(yr),Gn=0;Gn<yr;Gn++)Rn[Gn]=arguments[Gn];(Mn=kn.onSelect)===null||Mn===void 0||(Un=Mn).call.apply(Un,[kn].concat(Rn)),Wr(null)}})),[St,Xn,Pn,_n,Je,Sr]);return[(0,ie.useCallback)(Cn=>{var kn;if(!Te)return Cn.filter(Pr=>Pr!==gi);let Un=(0,sn.Z)(Cn);const Mn=new Set(Xn),yr=bn.map(_n).filter(Pr=>!Dn.get(Pr).disabled),Rn=yr.every(Pr=>Mn.has(Pr)),Gn=yr.some(Pr=>Mn.has(Pr)),hr=()=>{const Pr=[];Rn?yr.forEach(Gr=>{Mn.delete(Gr),Pr.push(Gr)}):yr.forEach(Gr=>{Mn.has(Gr)||(Mn.add(Gr),Pr.push(Gr))});const Cr=Array.from(Mn);Qe==null||Qe(!Rn,Cr.map(Gr=>rn(Gr)),Pr.map(Gr=>rn(Gr))),Sr(Cr,"all"),Wr(null)};let _r;if(ut!=="radio"){let Pr;if(Nr){const dr={getPopupContainer:Rt,items:Nr.map((Oo,jo)=>{const{key:Jo,text:fi,onSelect:ci}=Oo;return{key:Jo!=null?Jo:jo,onClick:()=>{ci==null||ci(yr)},label:fi}})};Pr=ie.createElement("div",{className:`${Qt}-selection-extra`},ie.createElement(Or.Z,{menu:dr,getPopupContainer:Rt},ie.createElement("span",null,ie.createElement(Ra.Z,null))))}const Cr=bn.map((dr,Oo)=>{const jo=_n(dr,Oo),Jo=Dn.get(jo)||{};return Object.assign({checked:Mn.has(jo)},Jo)}).filter(dr=>{let{disabled:Oo}=dr;return Oo}),Gr=!!Cr.length&&Cr.length===bn.length,Vr=Gr&&Cr.every(dr=>{let{checked:Oo}=dr;return Oo}),co=Gr&&Cr.some(dr=>{let{checked:Oo}=dr;return Oo});_r=!Yt&&ie.createElement("div",{className:`${Qt}-selection`},ie.createElement(Zo.default,{checked:Gr?Vr:!!bn.length&&Rn,indeterminate:Gr?!Vr&&co:!Rn&&Gn,onChange:hr,disabled:bn.length===0||Gr,"aria-label":Pr?"Custom selection":"Select all",skipGroup:!0}),Pr)}let Ao;ut==="radio"?Ao=(Pr,Cr,Gr)=>{const Vr=_n(Cr,Gr),co=Mn.has(Vr);return{node:ie.createElement(vi.ZP,Object.assign({},Dn.get(Vr),{checked:co,onClick:dr=>dr.stopPropagation(),onChange:dr=>{Mn.has(Vr)||Lr(Vr,!0,[Vr],dr.nativeEvent)}})),checked:co}}:Ao=(Pr,Cr,Gr)=>{var Vr;const co=_n(Cr,Gr),dr=Mn.has(co),Oo=Hr.has(co),jo=Dn.get(co);let Jo;return On==="nest"?Jo=Oo:Jo=(Vr=jo==null?void 0:jo.indeterminate)!==null&&Vr!==void 0?Vr:Oo,{node:ie.createElement(Zo.default,Object.assign({},jo,{indeterminate:Jo,checked:dr,skipGroup:!0,onClick:fi=>fi.stopPropagation(),onChange:fi=>{let{nativeEvent:ci}=fi;const{shiftKey:ea}=ci;let yi=-1,ii=-1;if(ea&&Ot){const Ko=new Set([er,co]);yr.some((Go,So)=>{if(Ko.has(Go))if(yi===-1)yi=So;else return ii=So,!0;return!1})}if(ii!==-1&&yi!==ii&&Ot){const Ko=yr.slice(yi,ii+1),Go=[];dr?Ko.forEach(ro=>{Mn.has(ro)&&(Go.push(ro),Mn.delete(ro))}):Ko.forEach(ro=>{Mn.has(ro)||(Go.push(ro),Mn.add(ro))});const So=Array.from(Mn);qe==null||qe(!dr,So.map(ro=>rn(ro)),Go.map(ro=>rn(ro))),Sr(So,"multiple")}else{const Ko=Tn;if(Ot){const Go=dr?(0,Ta._5)(Ko,co):(0,Ta.L0)(Ko,co);Lr(co,!dr,Go,ci)}else{const Go=(0,Ki.S)([].concat((0,sn.Z)(Ko),[co]),!0,en,gn),{checkedKeys:So,halfCheckedKeys:ro}=Go;let hi=So;if(dr){const Oi=new Set(So);Oi.delete(co),hi=(0,Ki.S)(Array.from(Oi),{checked:!1,halfCheckedKeys:ro},en,gn).checkedKeys}Lr(co,!dr,hi,ci)}}Wr(dr?null:co)}})),checked:dr}};const Po=(Pr,Cr,Gr)=>{const{node:Vr,checked:co}=Ao(Pr,Cr,Gr);return Nt?Nt(co,Cr,Gr,Vr):Vr};if(!Un.includes(gi))if(Un.findIndex(Pr=>{var Cr;return((Cr=Pr[qn])===null||Cr===void 0?void 0:Cr.columnType)==="EXPAND_COLUMN"})===0){const[Pr,...Cr]=Un;Un=[Pr,gi].concat((0,sn.Z)(Cr))}else Un=[gi].concat((0,sn.Z)(Un));const tr=Un.indexOf(gi);Un=Un.filter((Pr,Cr)=>Pr!==gi||Cr===tr);const mr=Un[tr-1],qr=Un[tr+1];let Rr=Vt;Rr===void 0&&((qr==null?void 0:qr.fixed)!==void 0?Rr=qr.fixed:(mr==null?void 0:mr.fixed)!==void 0&&(Rr=mr.fixed)),Rr&&mr&&((kn=mr[qn])===null||kn===void 0?void 0:kn.columnType)==="EXPAND_COLUMN"&&mr.fixed===void 0&&(mr.fixed=Rr);const br=Ye()(`${Qt}-selection-col`,{[`${Qt}-selection-col-with-dropdown`]:St&&ut==="checkbox"}),Fo={fixed:Rr,width:ct,className:`${Qt}-selection-column`,title:Te.columnTitle||_r,render:Po,onCell:Te.onCell,[qn]:{className:br}};return Un.map(Pr=>Pr===gi?Fo:Pr)},[_n,bn,Te,Tn,Xn,Hr,ct,Nr,On,er,Dn,qe,Lr,gn]),Xn]},Xi=te(89489),gs=te(59477),ka=te(6848);const ji="ascend",zi="descend";function Hi(Ae){return typeof Ae.sorter=="object"&&typeof Ae.sorter.multiple=="number"?Ae.sorter.multiple:!1}function ga(Ae){return typeof Ae=="function"?Ae:Ae&&typeof Ae=="object"&&Ae.compare?Ae.compare:!1}function fa(Ae,Te){return Te?Ae[Ae.indexOf(Te)+1]:Ae[0]}function Qi(Ae,Te,Ue){let Ve=[];function it(Ce,Me){Ve.push({column:Ce,key:gr(Ce,Me),multiplePriority:Hi(Ce),sortOrder:Ce.sortOrder})}return(Ae||[]).forEach((Ce,Me)=>{const Oe=Ir(Me,Ue);Ce.children?("sortOrder"in Ce&&it(Ce,Oe),Ve=[].concat((0,sn.Z)(Ve),(0,sn.Z)(Qi(Ce.children,Te,Oe)))):Ce.sorter&&("sortOrder"in Ce?it(Ce,Oe):Te&&Ce.defaultSortOrder&&Ve.push({column:Ce,key:gr(Ce,Oe),multiplePriority:Hi(Ce),sortOrder:Ce.defaultSortOrder}))}),Ve}function Fa(Ae,Te,Ue,Ve,it,Ce,Me,Oe){return(Te||[]).map((Qe,Je)=>{const nt=Ir(Je,Oe);let qe=Qe;if(qe.sorter){const ct=qe.sortDirections||it,ut=qe.showSorterTooltip===void 0?Me:qe.showSorterTooltip,St=gr(qe,nt),Vt=Ue.find(On=>{let{key:qt}=On;return qt===St}),Nt=Vt?Vt.sortOrder:null,Yt=fa(ct,Nt);let Ot;if(Qe.sortIcon)Ot=Qe.sortIcon({sortOrder:Nt});else{const On=ct.includes(ji)&&ie.createElement(gs.Z,{className:Ye()(`${Ae}-column-sorter-up`,{active:Nt===ji})}),qt=ct.includes(zi)&&ie.createElement(Xi.Z,{className:Ye()(`${Ae}-column-sorter-down`,{active:Nt===zi})});Ot=ie.createElement("span",{className:Ye()(`${Ae}-column-sorter`,{[`${Ae}-column-sorter-full`]:!!(On&&qt)})},ie.createElement("span",{className:`${Ae}-column-sorter-inner`,"aria-hidden":"true"},On,qt))}const{cancelSort:Qt,triggerAsc:Jt,triggerDesc:Pn}=Ce||{};let rn=Qt;Yt===zi?rn=Pn:Yt===ji&&(rn=Jt);const _n=typeof ut=="object"?ut:{title:rn};qe=Object.assign(Object.assign({},qe),{className:Ye()(qe.className,{[`${Ae}-column-sort`]:Nt}),title:On=>{const qt=ie.createElement("div",{className:`${Ae}-column-sorters`},ie.createElement("span",{className:`${Ae}-column-title`},Xr(Qe.title,On)),Ot);return ut?ie.createElement(ka.Z,Object.assign({},_n),qt):qt},onHeaderCell:On=>{const qt=Qe.onHeaderCell&&Qe.onHeaderCell(On)||{},hn=qt.onClick,Rt=qt.onKeyDown;qt.onClick=Ln=>{Ve({column:Qe,key:St,sortOrder:Yt,multiplePriority:Hi(Qe)}),hn==null||hn(Ln)},qt.onKeyDown=Ln=>{Ln.keyCode===ta.Z.ENTER&&(Ve({column:Qe,key:St,sortOrder:Yt,multiplePriority:Hi(Qe)}),Rt==null||Rt(Ln))};const nn=Qr(Qe.title,{}),ln=nn==null?void 0:nn.toString();return Nt?qt["aria-sort"]=Nt==="ascend"?"ascending":"descending":qt["aria-label"]=ln||"",qt.className=Ye()(qt.className,`${Ae}-column-has-sorters`),qt.tabIndex=0,Qe.ellipsis&&(qt.title=(nn!=null?nn:"").toString()),qt}})}return"children"in qe&&(qe=Object.assign(Object.assign({},qe),{children:Fa(Ae,qe.children,Ue,Ve,it,Ce,Me,nt)})),qe})}function ha(Ae){const{column:Te,sortOrder:Ue}=Ae;return{column:Te,order:Ue,field:Te.dataIndex,columnKey:Te.key}}function ma(Ae){const Te=Ae.filter(Ue=>{let{sortOrder:Ve}=Ue;return Ve}).map(ha);return Te.length===0&&Ae.length?Object.assign(Object.assign({},ha(Ae[Ae.length-1])),{column:void 0}):Te.length<=1?Te[0]||{}:Te}function Ji(Ae,Te,Ue){const Ve=Te.slice().sort((Me,Oe)=>Oe.multiplePriority-Me.multiplePriority),it=Ae.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 Je=Ce[Qe],{column:{sorter:nt},sortOrder:qe}=Je,ct=ga(nt);if(ct&&qe){const ut=ct(Me,Oe,qe);if(ut!==0)return qe===ji?ut:-ut}}return 0}).map(Me=>{const Oe=Me[Ue];return Oe?Object.assign(Object.assign({},Me),{[Ue]:Ji(Oe,Te,Ue)}):Me}):it}function ja(Ae){let{prefixCls:Te,mergedColumns:Ue,onSorterChange:Ve,sortDirections:it,tableLocale:Ce,showSorterTooltip:Me}=Ae;const[Oe,Qe]=ie.useState(Qi(Ue,!0)),Je=ie.useMemo(()=>{let St=!0;const Vt=Qi(Ue,!1);if(!Vt.length)return Oe;const Nt=[];function Yt(Qt){St?Nt.push(Qt):Nt.push(Object.assign(Object.assign({},Qt),{sortOrder:null}))}let Ot=null;return Vt.forEach(Qt=>{Ot===null?(Yt(Qt),Qt.sortOrder&&(Qt.multiplePriority===!1?St=!1:Ot=!0)):(Ot&&Qt.multiplePriority!==!1||(St=!1),Yt(Qt))}),Nt},[Ue,Oe]),nt=ie.useMemo(()=>{const St=Je.map(Vt=>{let{column:Nt,sortOrder:Yt}=Vt;return{column:Nt,order:Yt}});return{sortColumns:St,sortColumn:St[0]&&St[0].column,sortOrder:St[0]&&St[0].order}},[Je]);function qe(St){let Vt;St.multiplePriority===!1||!Je.length||Je[0].multiplePriority===!1?Vt=[St]:Vt=[].concat((0,sn.Z)(Je.filter(Nt=>{let{key:Yt}=Nt;return Yt!==St.key})),[St]),Qe(Vt),Ve(ma(Vt),Vt)}return[St=>Fa(Te,St,Je,qe,it,Ce,Me),Je,nt,()=>ma(Je)]}function pa(Ae,Te){return Ae.map(Ue=>{const Ve=Object.assign({},Ue);return Ve.title=Xr(Ue.title,Te),"children"in Ve&&(Ve.children=pa(Ve.children,Te)),Ve})}function za(Ae){return[ie.useCallback(Ue=>pa(Ue,Ae),[Ae])]}var va=cr((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ve}=Te;return Ue!==Ve}),Ha=zr((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ve}=Te;return Ue!==Ve}),Di=te(64993),Mi=te(17313),Qo=te(83116),Ga=te(37613),fs=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.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+Ae.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:`-${Ae.tablePaddingVertical}px -${Ae.tablePaddingHorizontal+Ae.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ae.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",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle)),Ve("small",Ae.tablePaddingVerticalSmall,Ae.tablePaddingHorizontalSmall)),{[`> ${Te}-footer`]:{border:Ue,borderTop:0}}),[`${Te}-cell`]:{[`${Te}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ae.lineWidth}px 0 ${Ae.lineWidth}px ${Ae.tableHeaderBg}`}},[`${Te}-bordered ${Te}-cell-scrollbar`]:{borderInlineEnd:Ue}}}},Ei=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-cell-ellipsis`]:Object.assign(Object.assign({},Mi.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=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-tbody > tr${Te}-placeholder`]:{textAlign:"center",color:Ae.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ae.colorBgContainer}}}}},$a=te(15969),Wa=Ae=>{const{componentCls:Te,antCls:Ue,controlInteractiveSize:Ve,motionDurationSlow:it,lineWidth:Ce,paddingXS:Me,lineType:Oe,tableBorderColor:Qe,tableExpandIconBg:Je,tableExpandColumnWidth:nt,borderRadius:qe,fontSize:ct,fontSizeSM:ut,lineHeight:St,tablePaddingVertical:Vt,tablePaddingHorizontal:Nt,tableExpandedRowBg:Yt,paddingXXS:Ot}=Ae,Qt=Ve/2-Ce,Jt=Qt*2+Ce*3,Pn=`${Ce}px ${Oe} ${Qe}`,rn=Ot-Ce;return{[`${Te}-wrapper`]:{[`${Te}-expand-icon-col`]:{width:nt},[`${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)(Ae)),{position:"relative",float:"left",boxSizing:"border-box",width:Jt,height:Jt,padding:0,color:"inherit",lineHeight:`${Jt}px`,background:Je,border:Pn,borderRadius:qe,transform:`scale(${Ve/Jt})`,transition:`all ${it}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${it} ease-out`,content:'""'},"&::before":{top:Qt,insetInlineEnd:rn,insetInlineStart:rn,height:Ce},"&::after":{top:rn,bottom:rn,insetInlineStart:Qt,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*St-Ce*3)/2-Math.ceil((ut*1.4-Ce*3)/2),marginInlineEnd:Me},[`tr${Te}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Yt}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Te}-expanded-row-fixed`]:{position:"relative",margin:`-${Vt}px -${Nt}px`,padding:`${Vt}px ${Nt}px`}}}},Sa=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ve,tableFilterDropdownWidth:it,tableFilterDropdownSearchWidth:Ce,paddingXXS:Me,paddingXS:Oe,colorText:Qe,lineWidth:Je,lineType:nt,tableBorderColor:qe,tableHeaderIconColor:ct,fontSizeSM:ut,tablePaddingHorizontal:St,borderRadius:Vt,motionDurationSlow:Nt,colorTextDescription:Yt,colorPrimary:Ot,tableHeaderFilterActiveBg:Qt,colorTextDisabled:Jt,tableFilterDropdownBg:Pn,tableFilterDropdownHeight:rn,controlItemBgHover:_n,controlItemBgActive:On,boxShadowSecondary:qt,filterDropdownMenuBg:hn}=Ae,Rt=`${Ue}-dropdown`,nn=`${Te}-filter-dropdown`,ln=`${Ue}-tree`,Ln=`${Je}px ${nt} ${qe}`;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 ${-St/2}px`,padding:`0 ${Me}px`,color:ct,fontSize:ut,borderRadius:Vt,cursor:"pointer",transition:`all ${Nt}`,"&:hover":{color:Yt,background:Qt},"&.active":{color:Ot}}}},{[`${Ue}-dropdown`]:{[nn]:Object.assign(Object.assign({},(0,Mi.Wf)(Ae)),{minWidth:it,backgroundColor:Pn,borderRadius:Vt,boxShadow:qt,overflow:"hidden",[`${Rt}-menu`]:{maxHeight:rn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hn,"&:empty::after":{display:"block",padding:`${Oe}px 0`,color:Jt,fontSize:ut,textAlign:"center",content:'"Not Found"'}},[`${nn}-tree`]:{paddingBlock:`${Oe}px 0`,paddingInline:Oe,[ln]:{padding:0},[`${ln}-treenode ${ln}-node-content-wrapper:hover`]:{backgroundColor:_n},[`${ln}-treenode-checkbox-checked ${ln}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:On}}},[`${nn}-search`]:{padding:Oe,borderBottom:Ln,"&-input":{input:{minWidth:Ce},[Ve]:{color:Jt}}},[`${nn}-checkall`]:{width:"100%",marginBottom:Me,marginInlineStart:Me},[`${nn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Oe-Je}px ${Oe}px`,overflow:"hidden",borderTop:Ln}})}},{[`${Ue}-dropdown ${nn}, ${nn}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:Oe,color:Qe},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qi=Ae=>{const{componentCls:Te,lineWidth:Ue,colorSplit:Ve,motionDurationSlow:it,zIndexTableFixed:Ce,tableBg:Me,zIndexTableSticky:Oe}=Ae,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=Ae=>{const{componentCls:Te,antCls:Ue}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-pagination${Ue}-pagination`]:{margin:`${Ae.margin}px 0`},[`${Te}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ae.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ka=Ae=>{const{componentCls:Te,tableRadius:Ue}=Ae;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=Ae=>{const{componentCls:Te}=Ae;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=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ve,fontSizeIcon:it,padding:Ce,paddingXS:Me,tableHeaderIconColor:Oe,tableHeaderIconColorHover:Qe,tableSelectionColumnWidth:Je}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-selection-col`]:{width:Je,[`&${Te}-selection-col-with-dropdown`]:{width:Je+it+Ce/4}},[`${Te}-bordered ${Te}-selection-col`]:{width:Je+Me*2,[`&${Te}-selection-col-with-dropdown`]:{width:Je+it+Ce/4+Me*2}},[`
table tr th${Te}-selection-column,
table tr td${Te}-selection-column
`]:{paddingInlineEnd:Ae.paddingXS,paddingInlineStart:Ae.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Te}-selection-column${Te}-cell-fix-left`]:{zIndex:Ae.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 ${Ae.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ae.tablePaddingHorizontal/4}px`,[Ve]:{color:Oe,fontSize:it,verticalAlign:"baseline","&:hover":{color:Qe}}}}}},Xa=Ae=>{const{componentCls:Te}=Ae,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:`${Ae.tableExpandColumnWidth-Ce}px -${Ce}px`}},[`${Te}-selection-column`]:{paddingInlineStart:`${Ce/4}px`}}});return{[`${Te}-wrapper`]:Object.assign(Object.assign({},Ue("middle",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle,Ae.tableFontSizeMiddle)),Ue("small",Ae.tablePaddingVerticalSmall,Ae.tablePaddingHorizontalSmall,Ae.tableFontSizeSmall))}},nr=Ae=>{const{componentCls:Te,marginXXS:Ue,fontSizeIcon:Ve,tableHeaderIconColor:it,tableHeaderIconColorHover:Ce}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-thead th${Te}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"&:hover":{background:Ae.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ae.colorPrimary},[`
&${Te}-cell-fix-left:hover,
&${Te}-cell-fix-right:hover
`]:{background:Ae.tableFixedHeaderSortActiveBg}},[`${Te}-thead th${Te}-column-sort`]:{background:Ae.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Te}-column-sort`]:{background:Ae.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 ${Ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ve,"&.active":{color:Ae.colorPrimary}},[`${Te}-column-sorter-up + ${Te}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Te}-column-sorters:hover ${Te}-column-sorter`]:{color:Ce}}}},Qa=Ae=>{const{componentCls:Te,opacityLoading:Ue,tableScrollThumbBg:Ve,tableScrollThumbBgHover:it,tableScrollThumbSize:Ce,tableScrollBg:Me,zIndexTableSticky:Oe,stickyScrollBarBorderRadius:Qe}=Ae,Je=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`;return{[`${Te}-wrapper`]:{[`${Te}-sticky`]:{"&-holder":{position:"sticky",zIndex:Oe,background:Ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ce}px !important`,zIndex:Oe,display:"flex",alignItems:"center",background:Me,borderTop:Je,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ce,backgroundColor:Ve,borderRadius:Qe,transition:`all ${Ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:it}}}}}}},Ii=Ae=>{const{componentCls:Te,lineWidth:Ue,tableBorderColor:Ve}=Ae,it=`${Ue}px ${Ae.lineType} ${Ve}`;return{[`${Te}-wrapper`]:{[`${Te}-summary`]:{position:"relative",zIndex:Ae.zIndexTableFixed,background:Ae.tableBg,"> tr":{"> th, > td":{borderBottom:it}}},[`div${Te}-summary`]:{boxShadow:`0 -${Ue}px 0 ${Ve}`}}}},_a=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.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) - ${Ae.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:-Ae.lineWidth,borderInlineStart:Ue}}}}}}};const ya=Ae=>{const{componentCls:Te,fontWeightStrong:Ue,tablePaddingVertical:Ve,tablePaddingHorizontal:it,lineWidth:Ce,lineType:Me,tableBorderColor:Oe,tableFontSize:Qe,tableBg:Je,tableRadius:nt,tableHeaderTextColor:qe,motionDurationMid:ct,tableHeaderBg:ut,tableHeaderCellSplitColor:St,tableRowHoverBg:Vt,tableSelectedRowBg:Nt,tableSelectedRowHoverBg:Yt,tableFooterTextColor:Ot,tableFooterBg:Qt,paddingContentVerticalLG:Jt}=Ae,Pn=`${Ce}px ${Me} ${Oe}`;return{[`${Te}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Mi.dF)()),{[Te]:Object.assign(Object.assign({},(0,Mi.Wf)(Ae)),{fontSize:Qe,background:Je,borderRadius:`${nt}px ${nt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${nt}px ${nt}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:`${Jt}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:qe,fontWeight:Ue,textAlign:"start",background:ut,borderBottom:Pn,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:St,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:Pn,[`
> ${Te}-wrapper:only-child,
> ${Te}-expanded-row-fixed > ${Te}-wrapper:only-child
`]:{[Te]:{marginBlock:`-${Ve}px`,marginInline:`${Ae.tableExpandColumnWidth-it}px -${it}px`,[`${Te}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:qe,fontWeight:Ue,textAlign:"start",background:ut,borderBottom:Pn,transition:`background ${ct} ease`},[`
&${Te}-row:hover > th,
&${Te}-row:hover > td,
> th${Te}-cell-row-hover,
> td${Te}-cell-row-hover
`]:{background:Vt},[`&${Te}-row-selected`]:{"> th, > td":{background:Nt},"&:hover > th, &:hover > td":{background:Yt}}}},[`${Te}-footer`]:{padding:`${Ve}px ${it}px`,color:Ot,background:Qt}})}};var Zr=(0,Qo.Z)("Table",Ae=>{const{colorTextHeading:Te,colorSplit:Ue,colorIcon:Ve,colorIconHover:it,opacityLoading:Ce,colorBgContainer:Me,controlInteractiveSize:Oe,headerBg:Qe,headerColor:Je,headerSortActiveBg:nt,headerSortHoverBg:qe,bodySortBg:ct,rowHoverBg:ut,rowSelectedBg:St,rowSelectedHoverBg:Vt,rowExpandedBg:Nt,cellPaddingBlock:Yt,cellPaddingInline:Ot,cellPaddingBlockMD:Qt,cellPaddingInlineMD:Jt,cellPaddingBlockSM:Pn,cellPaddingInlineSM:rn,borderColor:_n,footerBg:On,footerColor:qt,headerBorderRadius:hn,cellFontSize:Rt,cellFontSizeMD:nn,cellFontSizeSM:ln,headerSplitColor:Ln,fixedHeaderSortActiveBg:Jn,headerFilterHoverBg:en,filterDropdownBg:bn,expandIconBg:Dn,selectionColumnWidth:gn,stickyScrollBarBg:Tn}=Ae,jn=new Di.C(Ve),Xn=new Di.C(it),Hr=2,er=(0,Ga.TS)(Ae,{tableFontSize:Rt,tableBg:Me,tableRadius:hn,tablePaddingVertical:Yt,tablePaddingHorizontal:Ot,tablePaddingVerticalMiddle:Qt,tablePaddingHorizontalMiddle:Jt,tablePaddingVerticalSmall:Pn,tablePaddingHorizontalSmall:rn,tableBorderColor:_n,tableHeaderTextColor:Je,tableHeaderBg:Qe,tableFooterTextColor:qt,tableFooterBg:On,tableHeaderCellSplitColor:Ln,tableHeaderSortBg:nt,tableHeaderSortHoverBg:qe,tableHeaderIconColor:jn.clone().setAlpha(jn.getAlpha()*Ce).toRgbString(),tableHeaderIconColorHover:Xn.clone().setAlpha(Xn.getAlpha()*Ce).toRgbString(),tableBodySortBg:ct,tableFixedHeaderSortActiveBg:Jn,tableHeaderFilterActiveBg:en,tableFilterDropdownBg:bn,tableRowHoverBg:ut,tableSelectedRowBg:St,tableSelectedRowHoverBg:Vt,zIndexTableFixed:Hr,zIndexTableSticky:Hr+1,tableFontSizeMiddle:nn,tableFontSizeSmall:ln,tableSelectionColumnWidth:gn,tableExpandIconBg:Dn,tableExpandColumnWidth:Oe+2*Ae.padding,tableExpandedRowBg:Nt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Tn,tableScrollThumbBgHover:Te,tableScrollBg:Ue});return[ya(er),vs(er),Ii(er),nr(er),Sa(er),fs(er),Ka(er),Wa(er),Ii(er),Ua(er),Ya(er),qi(er),Qa(er),Ei(er),Xa(er),Va(er),_a(er)]},Ae=>{const{colorFillAlter:Te,colorBgContainer:Ue,colorTextHeading:Ve,colorFillSecondary:it,colorFillContent:Ce,controlItemBgActive:Me,controlItemBgActiveHover:Oe,padding:Qe,paddingSM:Je,paddingXS:nt,colorBorderSecondary:qe,borderRadiusLG:ct,fontSize:ut,controlHeight:St,colorTextPlaceholder:Vt}=Ae,Nt=new Di.C(it).onBackground(Ue).toHexShortString(),Yt=new Di.C(Ce).onBackground(Ue).toHexShortString(),Ot=new Di.C(Te).onBackground(Ue).toHexShortString();return{headerBg:Ot,headerColor:Ve,headerSortActiveBg:Nt,headerSortHoverBg:Yt,bodySortBg:Ot,rowHoverBg:Ot,rowSelectedBg:Me,rowSelectedHoverBg:Oe,rowExpandedBg:Te,cellPaddingBlock:Qe,cellPaddingInline:Qe,cellPaddingBlockMD:Je,cellPaddingInlineMD:nt,cellPaddingBlockSM:nt,cellPaddingInlineSM:nt,borderColor:qe,headerBorderRadius:ct,footerBg:Ot,footerColor:Ve,cellFontSize:ut,cellFontSizeMD:ut,cellFontSizeSM:ut,headerSplitColor:qe,fixedHeaderSortActiveBg:Nt,headerFilterHoverBg:Ce,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:St,stickyScrollBarBg:Vt,stickyScrollBarBorderRadius:100}});const vo=[],qa=(Ae,Te)=>{const{prefixCls:Ue,className:Ve,rootClassName:it,style:Ce,size:Me,bordered:Oe,dropdownPrefixCls:Qe,dataSource:Je,pagination:nt,rowSelection:qe,rowKey:ct="key",rowClassName:ut,columns:St,children:Vt,childrenColumnName:Nt,onChange:Yt,getPopupContainer:Ot,loading:Qt,expandIcon:Jt,expandable:Pn,expandedRowRender:rn,expandIconColumnIndex:_n,indentSize:On,scroll:qt,sortDirections:hn,locale:Rt,showSorterTooltip:nn=!0,virtual:ln}=Ae,Ln=ie.useMemo(()=>St||xe(Vt),[St,Vt]),Jn=ie.useMemo(()=>Ln.some(xr=>xr.responsive),[Ln]),en=(0,bi.Z)(Jn),bn=ie.useMemo(()=>{const xr=new Set(Object.keys(en).filter(Yr=>en[Yr]));return Ln.filter(Yr=>!Yr.responsive||Yr.responsive.some(Ro=>xr.has(Ro)))},[Ln,en]),Dn=(0,Bo.Z)(Ae,["className","style","columns"]),{locale:gn=pi.Z,direction:Tn,table:jn,renderEmpty:Xn,getPrefixCls:Hr,getPopupContainer:er}=ie.useContext(po.E_),Wr=(0,qo.Z)(Me),Sr=Object.assign(Object.assign({},gn.Table),Rt),Lr=Je||vo,Nr=Hr("table",Ue),Hn=Hr("dropdown",Qe),Cn=Object.assign({childrenColumnName:Nt,expandIconColumnIndex:_n},Pn),{childrenColumnName:kn="children"}=Cn,Un=ie.useMemo(()=>Lr.some(xr=>xr==null?void 0:xr[kn])?"nest":rn||Pn&&Pn.expandedRowRender?"row":null,[Lr]),Mn={body:ie.useRef()},yr=ie.useMemo(()=>typeof ct=="function"?ct:xr=>xr==null?void 0:xr[ct],[ct]),[Rn]=Wi(Lr,kn,yr),Gn={},hr=function(xr,Yr){let Ro=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var oo,zo,Vo;const Yo=Object.assign(Object.assign({},Gn),xr);Ro&&((oo=Gn.resetPagination)===null||oo===void 0||oo.call(Gn),!((zo=Yo.pagination)===null||zo===void 0)&&zo.current&&(Yo.pagination.current=1),nt&&nt.onChange&&nt.onChange(1,(Vo=Yo.pagination)===null||Vo===void 0?void 0:Vo.pageSize)),qt&&qt.scrollToFirstRowOnChange!==!1&&Mn.body.current&&(0,wo.Z)(0,{getContainer:()=>Mn.body.current}),Yt==null||Yt(Yo.pagination,Yo.filters,Yo.sorter,{currentDataSource:Zi(Ji(Lr,Yo.sorterStates,kn),Yo.filterStates),action:Yr})},_r=(xr,Yr)=>{hr({sorter:xr,sorterStates:Yr},"sort",!1)},[Ao,Po,tr,mr]=ja({prefixCls:Nr,mergedColumns:bn,onSorterChange:_r,sortDirections:hn||["ascend","descend"],tableLocale:Sr,showSorterTooltip:nn}),qr=ie.useMemo(()=>Ji(Lr,Po,kn),[Lr,Po]);Gn.sorter=mr(),Gn.sorterStates=Po;const Rr=(xr,Yr)=>{hr({filters:xr,filterStates:Yr},"filter",!0)},[br,Fo,Pr]=sa({prefixCls:Nr,locale:Sr,dropdownPrefixCls:Hn,mergedColumns:bn,onFilterChange:Rr,getPopupContainer:Ot||er}),Cr=Zi(qr,Fo);Gn.filters=Pr,Gn.filterStates=Fo;const Gr=ie.useMemo(()=>{const xr={};return Object.keys(Pr).forEach(Yr=>{Pr[Yr]!==null&&(xr[Yr]=Pr[Yr])}),Object.assign(Object.assign({},tr),{filters:xr})},[tr,Pr]),[Vr]=za(Gr),co=(xr,Yr)=>{hr({pagination:Object.assign(Object.assign({},Gn.pagination),{current:xr,pageSize:Yr})},"paginate")},[dr,Oo]=Oa(Cr.length,co,nt);Gn.pagination=nt===!1?{}:Ia(dr,nt),Gn.resetPagination=Oo;const jo=ie.useMemo(()=>{if(nt===!1||!dr.pageSize)return Cr;const{current:xr=1,total:Yr,pageSize:Ro=oi}=dr;return Cr.length<Yr?Cr.length>Ro?Cr.slice((xr-1)*Ro,xr*Ro):Cr:Cr.slice((xr-1)*Ro,xr*Ro)},[!!nt,Cr,dr&&dr.current,dr&&dr.pageSize,dr&&dr.total]),[Jo,fi]=Ba({prefixCls:Nr,data:Cr,pageData:jo,getRowKey:yr,getRecordByKey:Rn,expandType:Un,childrenColumnName:kn,locale:Sr,getPopupContainer:Ot||er},qe),ci=(xr,Yr,Ro)=>{let oo;return typeof ut=="function"?oo=Ye()(ut(xr,Yr,Ro)):oo=Ye()(ut),Ye()({[`${Nr}-row-selected`]:fi.has(yr(xr,Yr))},oo)};Cn.__PARENT_RENDER_ICON__=Cn.expandIcon,Cn.expandIcon=Cn.expandIcon||Jt||Bn(Sr),Un==="nest"&&Cn.expandIconColumnIndex===void 0?Cn.expandIconColumnIndex=qe?1:0:Cn.expandIconColumnIndex>0&&qe&&(Cn.expandIconColumnIndex-=1),typeof Cn.indentSize!="number"&&(Cn.indentSize=typeof On=="number"?On:15);const ea=ie.useCallback(xr=>Vr(Jo(br(Ao(xr)))),[Ao,br,Jo]);let yi,ii;if(nt!==!1&&(dr!=null&&dr.total)){let xr;dr.size?xr=dr.size:xr=Wr==="small"||Wr==="middle"?"small":void 0;const Yr=zo=>ie.createElement(ei.Z,Object.assign({},dr,{className:Ye()(`${Nr}-pagination ${Nr}-pagination-${zo}`,dr.className),size:xr})),Ro=Tn==="rtl"?"left":"right",{position:oo}=dr;if(oo!==null&&Array.isArray(oo)){const zo=oo.find(Pi=>Pi.includes("top")),Vo=oo.find(Pi=>Pi.includes("bottom")),Yo=oo.every(Pi=>`${Pi}`=="none");!zo&&!Vo&&!Yo&&(ii=Yr(Ro)),zo&&(yi=Yr(zo.toLowerCase().replace("top",""))),Vo&&(ii=Yr(Vo.toLowerCase().replace("bottom","")))}else ii=Yr(Ro)}let Ko;typeof Qt=="boolean"?Ko={spinning:Qt}:typeof Qt=="object"&&(Ko=Object.assign({spinning:!0},Qt));const[Go,So]=Zr(Nr),[,ro]=(0,En.Z)(),hi=Ye()(`${Nr}-wrapper`,jn==null?void 0:jn.className,{[`${Nr}-wrapper-rtl`]:Tn==="rtl"},Ve,it,So),Oi=Object.assign(Object.assign({},jn==null?void 0:jn.style),Ce),wi=Rt&&Rt.emptyText||(Xn==null?void 0:Xn("Table"))||ie.createElement($o.Z,{componentName:"Table"}),mi=ln?Ha:va,Pa={},ts=ie.useMemo(()=>{const{fontSize:xr,lineHeight:Yr,padding:Ro,paddingXS:oo,paddingSM:zo}=ro,Vo=Math.floor(xr*Yr);switch(Wr){case"large":return Ro*2+Vo;case"small":return oo*2+Vo;default:return zo*2+Vo}},[ro,Wr]);return ln&&(Pa.listItemHeight=ts),Go(ie.createElement("div",{ref:Te,className:hi,style:Oi},ie.createElement($n.Z,Object.assign({spinning:!1},Ko),yi,ie.createElement(mi,Object.assign({},Pa,Dn,{columns:bn,direction:Tn,expandable:Cn,prefixCls:Nr,className:Ye()({[`${Nr}-middle`]:Wr==="middle",[`${Nr}-small`]:Wr==="small",[`${Nr}-bordered`]:Oe,[`${Nr}-empty`]:Lr.length===0}),data:jo,rowKey:yr,rowClassName:ci,emptyText:wi,internalHooks:ge,internalRefs:Mn,transformColumns:ea})),ii)))};var Wo=ie.forwardRef(qa);const ws=(Ae,Te)=>{const Ue=ie.useRef(0);return Ue.current+=1,ie.createElement(Wo,Object.assign({},Ae,{ref:Te,_renderTimes:Ue.current}))},li=ie.forwardRef(ws);li.SELECTION_COLUMN=gi,li.EXPAND_COLUMN=ee,li.SELECTION_ALL=Vi,li.SELECTION_INVERT=Yi,li.SELECTION_NONE=Fi,li.Column=si,li.ColumnGroup=Xo,li.Summary=Ie;var es=li,Ui=es},12563:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return je}});var ee=te(59301),ge=te(99267),be=te(92310),pe=te.n(be),Se=te(36785),fe=te(47729),ie=te(14088),de=te(36355),le=te(17313),me=te(37613),ae=te(83116);const he=Le=>{const{paddingXXS:ht,lineWidth:Ye,tagPaddingHorizontal:vt,componentCls:we}=Le,Fe=vt-Ye,He=ht-Ye;return{[we]:Object.assign(Object.assign({},(0,le.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:Fe,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${we}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${we}-close-icon`]:{marginInlineStart:He,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${we}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${we}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:Fe}}),[`${we}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},oe=Le=>{const{lineWidth:ht,fontSizeIcon:Ye}=Le,vt=Le.fontSizeSM,we=`${Le.lineHeightSM*vt}px`;return(0,me.TS)(Le,{tagFontSize:vt,tagLineHeight:we,tagIconSize:Ye-2*ht,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},ne=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var a=(0,ae.Z)("Tag",Le=>{const ht=oe(Le);return he(ht)},ne),y=function(Le,ht){var Ye={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&ht.indexOf(vt)<0&&(Ye[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,vt=Object.getOwnPropertySymbols(Le);we<vt.length;we++)ht.indexOf(vt[we])<0&&Object.prototype.propertyIsEnumerable.call(Le,vt[we])&&(Ye[vt[we]]=Le[vt[we]]);return Ye},b=Le=>{const{prefixCls:ht,style:Ye,className:vt,checked:we,onChange:Fe,onClick:He}=Le,at=y(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:We,tag:pt}=ee.useContext(de.E_),Pt=Ct=>{Fe==null||Fe(!we),He==null||He(Ct)},At=We("tag",ht),[Bt,rt]=a(At),Xe=pe()(At,`${At}-checkable`,{[`${At}-checkable-checked`]:we},pt==null?void 0:pt.className,vt,rt);return Bt(ee.createElement("span",Object.assign({},at,{style:Object.assign(Object.assign({},Ye),pt==null?void 0:pt.style),className:Xe,onClick:Pt})))},x=te(45157);const z=Le=>(0,x.Z)(Le,(ht,Ye)=>{let{textColor:vt,lightBorderColor:we,lightColor:Fe,darkColor:He}=Ye;return{[`${Le.componentCls}-${ht}`]:{color:vt,background:Fe,borderColor:we,"&-inverse":{color:Le.colorTextLightSolid,background:He,borderColor:He},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,ae.b)(["Tag","preset"],Le=>{const ht=oe(Le);return z(ht)},ne);function se(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ce=(Le,ht,Ye)=>{const vt=se(Ye);return{[`${Le.componentCls}-${ht}`]:{color:Le[`color${Ye}`],background:Le[`color${vt}Bg`],borderColor:Le[`color${vt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var _e=(0,ae.b)(["Tag","status"],Le=>{const ht=oe(Le);return[ce(ht,"success","Success"),ce(ht,"processing","Info"),ce(ht,"error","Error"),ce(ht,"warning","Warning")]},ne),ye=function(Le,ht){var Ye={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&ht.indexOf(vt)<0&&(Ye[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,vt=Object.getOwnPropertySymbols(Le);we<vt.length;we++)ht.indexOf(vt[we])<0&&Object.prototype.propertyIsEnumerable.call(Le,vt[we])&&(Ye[vt[we]]=Le[vt[we]]);return Ye};const De=(Le,ht)=>{const{prefixCls:Ye,className:vt,rootClassName:we,style:Fe,children:He,icon:at,color:We,onClose:pt,closeIcon:Pt,closable:At,bordered:Bt=!0}=Le,rt=ye(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Xe,direction:Ct,tag:zt}=ee.useContext(de.E_),[Et,an]=ee.useState(!0);ee.useEffect(()=>{"visible"in rt&&an(rt.visible)},[rt.visible]);const $e=(0,Se.o2)(We),yt=(0,Se.yT)(We),Lt=$e||yt,on=Object.assign(Object.assign({backgroundColor:We&&!Lt?We:void 0},zt==null?void 0:zt.style),Fe),$t=Xe("tag",Ye),[st,lt]=a($t),Ge=pe()($t,zt==null?void 0:zt.className,{[`${$t}-${We}`]:Lt,[`${$t}-has-color`]:We&&!Lt,[`${$t}-hidden`]:!Et,[`${$t}-rtl`]:Ct==="rtl",[`${$t}-borderless`]:!Bt},vt,we,lt),Ne=Be=>{Be.stopPropagation(),pt==null||pt(Be),!Be.defaultPrevented&&an(!1)},[,et]=(0,fe.Z)(At,Pt,Be=>Be===null?ee.createElement(ge.Z,{className:`${$t}-close-icon`,onClick:Ne}):ee.createElement("span",{className:`${$t}-close-icon`,onClick:Ne},Be),null,!1),xt=typeof rt.onClick=="function"||He&&He.type==="a",Ie=at||null,Re=Ie?ee.createElement(ee.Fragment,null,Ie,He&&ee.createElement("span",null,He)):He,Ze=ee.createElement("span",Object.assign({},rt,{ref:ht,className:Ge,style:on}),Re,et,$e&&ee.createElement(re,{key:"preset",prefixCls:$t}),yt&&ee.createElement(_e,{key:"status",prefixCls:$t}));return st(xt?ee.createElement(ie.Z,{component:"Tag"},Ze):Ze)},Ee=ee.forwardRef(De);Ee.CheckableTag=b;var je=Ee},17574:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return We}});var ee=te(38028),ge=te(77654),be=te(52671),pe=te(8657),Se=te(60499),fe=te(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"},de=ie,le=te(7657),me=function(Pt,At){return fe.createElement(le.Z,(0,Se.Z)({},Pt,{ref:At,icon:de}))},ae=fe.forwardRef(me),he=ae,oe=te(92310),ne=te.n(oe),a=te(35654),y=te(71430),E=te(36355),b=te(56082),x=te(62892),z=te(20648);const re=4;function se(pt){const{dropPosition:Pt,dropLevelOffset:At,prefixCls:Bt,indent:rt,direction:Xe="ltr"}=pt,Ct=Xe==="ltr"?"left":"right",zt=Xe==="ltr"?"right":"left",Et={[Ct]:-At*rt+re,[zt]: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 fe.createElement("div",{style:Et,className:`${Bt}-drop-indicator`})}var ce=te(71997),ye=fe.forwardRef((pt,Pt)=>{const{getPrefixCls:At,direction:Bt,virtual:rt,tree:Xe}=fe.useContext(E.E_),{prefixCls:Ct,className:zt,showIcon:Et=!1,showLine:an,switcherIcon:$e,blockNode:yt=!1,children:Lt,checkable:on=!1,selectable:$t=!0,draggable:st,motion:lt,style:Ge}=pt,Ne=At("tree",Ct),et=At(),xt=lt!=null?lt:Object.assign(Object.assign({},(0,x.Z)(et)),{motionAppear:!1}),Ie=Object.assign(Object.assign({},pt),{checkable:on,selectable:$t,showIcon:Et,motion:xt,blockNode:yt,showLine:!!an,dropIndicatorRender:se}),[Re,Ze]=(0,z.ZP)(Ne),Be=fe.useMemo(()=>{if(!st)return!1;let ot={};switch(typeof st){case"function":ot.nodeDraggable=st;break;case"object":ot=Object.assign({},st);break;default:break}return ot.icon!==!1&&(ot.icon=ot.icon||fe.createElement(b.Z,null)),ot},[st]),ze=ot=>fe.createElement(ce.Z,{prefixCls:Ne,switcherIcon:$e,treeNodeProps:ot,showLine:an});return Re(fe.createElement(ee.Z,Object.assign({itemHeight:20,ref:Pt,virtual:rt},Ie,{style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Ge),prefixCls:Ne,className:ne()({[`${Ne}-icon-hide`]:!Et,[`${Ne}-block-node`]:yt,[`${Ne}-unselectable`]:!$t,[`${Ne}-rtl`]:Bt==="rtl"},Xe==null?void 0:Xe.className,zt,Ze),direction:Bt,checkable:on&&fe.createElement("span",{className:`${Ne}-checkbox-inner`}),selectable:$t,switcherIcon:ze,draggable:Be}),Lt))}),De;(function(pt){pt[pt.None=0]="None",pt[pt.Start=1]="Start",pt[pt.End=2]="End"})(De||(De={}));function Ee(pt,Pt){function At(Bt){const{key:rt,children:Xe}=Bt;Pt(rt,Bt)!==!1&&Ee(Xe||[],Pt)}pt.forEach(At)}function je(pt){let{treeData:Pt,expandedKeys:At,startKey:Bt,endKey:rt}=pt;const Xe=[];let Ct=De.None;if(Bt&&Bt===rt)return[Bt];if(!Bt||!rt)return[];function zt(Et){return Et===Bt||Et===rt}return Ee(Pt,Et=>{if(Ct===De.End)return!1;if(zt(Et)){if(Xe.push(Et),Ct===De.None)Ct=De.Start;else if(Ct===De.Start)return Ct=De.End,!1}else Ct===De.Start&&Xe.push(Et);return At.includes(Et)}),Xe}function Le(pt,Pt){const At=(0,ge.Z)(Pt),Bt=[];return Ee(pt,(rt,Xe)=>{const Ct=At.indexOf(rt);return Ct!==-1&&(Bt.push(Xe),At.splice(Ct,1)),!!At.length}),Bt}var ht=function(pt,Pt){var At={};for(var Bt in pt)Object.prototype.hasOwnProperty.call(pt,Bt)&&Pt.indexOf(Bt)<0&&(At[Bt]=pt[Bt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Bt=Object.getOwnPropertySymbols(pt);rt<Bt.length;rt++)Pt.indexOf(Bt[rt])<0&&Object.prototype.propertyIsEnumerable.call(pt,Bt[rt])&&(At[Bt[rt]]=pt[Bt[rt]]);return At};function Ye(pt){const{isLeaf:Pt,expanded:At}=pt;return Pt?fe.createElement(be.Z,null):At?fe.createElement(pe.Z,null):fe.createElement(he,null)}function vt(pt){let{treeData:Pt,children:At}=pt;return Pt||(0,y.zn)(At)}const we=(pt,Pt)=>{var{defaultExpandAll:At,defaultExpandParent:Bt,defaultExpandedKeys:rt}=pt,Xe=ht(pt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ct=fe.useRef(),zt=fe.useRef(),Et=()=>{const{keyEntities:Be}=(0,y.I8)(vt(Xe));let ze;return At?ze=Object.keys(Be):Bt?ze=(0,a.r7)(Xe.expandedKeys||rt||[],Be):ze=Xe.expandedKeys||rt,ze},[an,$e]=fe.useState(Xe.selectedKeys||Xe.defaultSelectedKeys||[]),[yt,Lt]=fe.useState(()=>Et());fe.useEffect(()=>{"selectedKeys"in Xe&&$e(Xe.selectedKeys)},[Xe.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Xe&&Lt(Xe.expandedKeys)},[Xe.expandedKeys]);const on=(Be,ze)=>{var ot;return"expandedKeys"in Xe||Lt(Be),(ot=Xe.onExpand)===null||ot===void 0?void 0:ot.call(Xe,Be,ze)},$t=(Be,ze)=>{var ot;const{multiple:It}=Xe,{node:Mt,nativeEvent:jt}=ze,{key:Dt=""}=Mt,Ht=vt(Xe),bt=Object.assign(Object.assign({},ze),{selected:!0}),fn=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),cn=jt==null?void 0:jt.shiftKey;let wt;It&&fn?(wt=Be,Ct.current=Dt,zt.current=wt,bt.selectedNodes=Le(Ht,wt)):It&&cn?(wt=Array.from(new Set([].concat((0,ge.Z)(zt.current||[]),(0,ge.Z)(je({treeData:Ht,expandedKeys:yt,startKey:Dt,endKey:Ct.current}))))),bt.selectedNodes=Le(Ht,wt)):(wt=[Dt],Ct.current=Dt,zt.current=wt,bt.selectedNodes=Le(Ht,wt)),(ot=Xe.onSelect)===null||ot===void 0||ot.call(Xe,wt,bt),"selectedKeys"in Xe||$e(wt)},{getPrefixCls:st,direction:lt}=fe.useContext(E.E_),{prefixCls:Ge,className:Ne,showIcon:et=!0,expandAction:xt="click"}=Xe,Ie=ht(Xe,["prefixCls","className","showIcon","expandAction"]),Re=st("tree",Ge),Ze=ne()(`${Re}-directory`,{[`${Re}-directory-rtl`]:lt==="rtl"},Ne);return fe.createElement(ye,Object.assign({icon:Ye,ref:Pt,blockNode:!0},Ie,{showIcon:et,expandAction:xt,prefixCls:Re,className:Ze,expandedKeys:yt,selectedKeys:an,onSelect:$t,onExpand:on}))};var He=fe.forwardRef(we);const at=ye;at.DirectoryTree=He,at.TreeNode=ee.O;var We=at},20648:function(mt,Ke,te){"use strict";te.d(Ke,{TM:function(){return oe},Yk:function(){return he}});var ee=te(36237),ge=te(98447),be=te(17313),pe=te(8378),Se=te(37613),fe=te(83116);const ie=new ee.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(ne,a)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),le=(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,se=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({},de(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:se},[`${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"},le(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`}}}}})}},ae=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"}}}}}},he=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,Se.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[me(ne,x),ae(x)]},oe=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ke.ZP=(0,fe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,ge.C2)(`${y}-checkbox`,ne)},he(y,ne),(0,pe.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},oe(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return E}});var ee=te(60499),ge=te(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"},pe=be,Se=te(7657),fe=function(x,z){return ge.createElement(Se.Z,(0,ee.Z)({},x,{ref:z,icon:pe}))},ie=ge.forwardRef(fe),de=ie,le=te(52671),me=te(58617),ae=te(15075),he=te(43531),oe=te(92310),ne=te.n(oe),a=te(92343),E=b=>{const{prefixCls:x,switcherIcon:z,treeNodeProps:re,showLine:se}=b,{isLeaf:ce,expanded:_e,loading:ye}=re;if(ye)return ge.createElement(me.Z,{className:`${x}-switcher-loading-icon`});let De;if(se&&typeof se=="object"&&(De=se.showLeafIcon),ce){if(!se)return null;if(typeof De!="boolean"&&De){const Le=typeof De=="function"?De(re):De,ht=`${x}-switcher-line-custom-icon`;return(0,a.l$)(Le)?(0,a.Tm)(Le,{className:ne()(Le.props.className||"",ht)}):Le}return De?ge.createElement(le.Z,{className:`${x}-switcher-line-icon`}):ge.createElement("span",{className:`${x}-switcher-leaf-line`})}const Ee=`${x}-switcher-icon`,je=typeof z=="function"?z(re):z;return(0,a.l$)(je)?(0,a.Tm)(je,{className:ne()(je.props.className||"",Ee)}):je!==void 0?je:se?_e?ge.createElement(ae.Z,{className:`${x}-switcher-line-icon`}):ge.createElement(he.Z,{className:`${x}-switcher-line-icon`}):ge.createElement(de,{className:Ee})}},3867:function(mt,Ke,te){var ee=te(97671);(function(ge,be){mt.exports=be()})(this,function(){"use strict";function ge(Ie){var Re=typeof Ie;return Ie!==null&&(Re==="object"||Re==="function")}function be(Ie){return typeof Ie=="function"}var pe=void 0;Array.isArray?pe=Array.isArray:pe=function(Ie){return Object.prototype.toString.call(Ie)==="[object Array]"};var Se=pe,fe=0,ie=void 0,de=void 0,le=function(Re,Ze){se[fe]=Re,se[fe+1]=Ze,fe+=2,fe===2&&(de?de(ce):ye())};function me(Ie){de=Ie}function ae(Ie){le=Ie}var he=typeof window!="undefined"?window:void 0,oe=he||{},ne=oe.MutationObserver||oe.WebKitMutationObserver,a=typeof self=="undefined"&&typeof ee!="undefined"&&{}.toString.call(ee)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return ee.nextTick(ce)}}function b(){return typeof ie!="undefined"?function(){ie(ce)}:re()}function x(){var Ie=0,Re=new ne(ce),Ze=document.createTextNode("");return Re.observe(Ze,{characterData:!0}),function(){Ze.data=Ie=++Ie%2}}function z(){var Ie=new MessageChannel;return Ie.port1.onmessage=ce,function(){return Ie.port2.postMessage(0)}}function re(){var Ie=setTimeout;return function(){return Ie(ce,1)}}var se=new Array(1e3);function ce(){for(var Ie=0;Ie<fe;Ie+=2){var Re=se[Ie],Ze=se[Ie+1];Re(Ze),se[Ie]=void 0,se[Ie+1]=void 0}fe=0}function _e(){try{var Ie=Function("return this")().require("vertx");return ie=Ie.runOnLoop||Ie.runOnContext,b()}catch(Re){return re()}}var ye=void 0;a?ye=E():ne?ye=x():y?ye=z():he===void 0?ye=_e():ye=re();function De(Ie,Re){var Ze=this,Be=new this.constructor(Le);Be[je]===void 0&&yt(Be);var ze=Ze._state;if(ze){var ot=arguments[ze-1];le(function(){return zt(ze,Be,ot,Ze._result)})}else Xe(Ze,Be,Ie,Re);return Be}function Ee(Ie){var Re=this;if(Ie&&typeof Ie=="object"&&Ie.constructor===Re)return Ie;var Ze=new Re(Le);return Pt(Ze,Ie),Ze}var je=Math.random().toString(36).substring(2);function Le(){}var ht=void 0,Ye=1,vt=2;function we(){return new TypeError("You cannot resolve a promise with itself")}function Fe(){return new TypeError("A promises callback cannot return that same promise.")}function He(Ie,Re,Ze,Be){try{Ie.call(Re,Ze,Be)}catch(ze){return ze}}function at(Ie,Re,Ze){le(function(Be){var ze=!1,ot=He(Ze,Re,function(It){ze||(ze=!0,Re!==It?Pt(Be,It):Bt(Be,It))},function(It){ze||(ze=!0,rt(Be,It))},"Settle: "+(Be._label||" unknown promise"));!ze&&ot&&(ze=!0,rt(Be,ot))},Ie)}function We(Ie,Re){Re._state===Ye?Bt(Ie,Re._result):Re._state===vt?rt(Ie,Re._result):Xe(Re,void 0,function(Ze){return Pt(Ie,Ze)},function(Ze){return rt(Ie,Ze)})}function pt(Ie,Re,Ze){Re.constructor===Ie.constructor&&Ze===De&&Re.constructor.resolve===Ee?We(Ie,Re):Ze===void 0?Bt(Ie,Re):be(Ze)?at(Ie,Re,Ze):Bt(Ie,Re)}function Pt(Ie,Re){if(Ie===Re)rt(Ie,we());else if(ge(Re)){var Ze=void 0;try{Ze=Re.then}catch(Be){rt(Ie,Be);return}pt(Ie,Re,Ze)}else Bt(Ie,Re)}function At(Ie){Ie._onerror&&Ie._onerror(Ie._result),Ct(Ie)}function Bt(Ie,Re){Ie._state===ht&&(Ie._result=Re,Ie._state=Ye,Ie._subscribers.length!==0&&le(Ct,Ie))}function rt(Ie,Re){Ie._state===ht&&(Ie._state=vt,Ie._result=Re,le(At,Ie))}function Xe(Ie,Re,Ze,Be){var ze=Ie._subscribers,ot=ze.length;Ie._onerror=null,ze[ot]=Re,ze[ot+Ye]=Ze,ze[ot+vt]=Be,ot===0&&Ie._state&&le(Ct,Ie)}function Ct(Ie){var Re=Ie._subscribers,Ze=Ie._state;if(Re.length!==0){for(var Be=void 0,ze=void 0,ot=Ie._result,It=0;It<Re.length;It+=3)Be=Re[It],ze=Re[It+Ze],Be?zt(Ze,Be,ze,ot):ze(ot);Ie._subscribers.length=0}}function zt(Ie,Re,Ze,Be){var ze=be(Ze),ot=void 0,It=void 0,Mt=!0;if(ze){try{ot=Ze(Be)}catch(jt){Mt=!1,It=jt}if(Re===ot){rt(Re,Fe());return}}else ot=Be;Re._state!==ht||(ze&&Mt?Pt(Re,ot):Mt===!1?rt(Re,It):Ie===Ye?Bt(Re,ot):Ie===vt&&rt(Re,ot))}function Et(Ie,Re){try{Re(function(Be){Pt(Ie,Be)},function(Be){rt(Ie,Be)})}catch(Ze){rt(Ie,Ze)}}var an=0;function $e(){return an++}function yt(Ie){Ie[je]=an++,Ie._state=void 0,Ie._result=void 0,Ie._subscribers=[]}function Lt(){return new Error("Array Methods must be provided an Array")}var on=function(){function Ie(Re,Ze){this._instanceConstructor=Re,this.promise=new Re(Le),this.promise[je]||yt(this.promise),Se(Ze)?(this.length=Ze.length,this._remaining=Ze.length,this._result=new Array(this.length),this.length===0?Bt(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ze),this._remaining===0&&Bt(this.promise,this._result))):rt(this.promise,Lt())}return Ie.prototype._enumerate=function(Ze){for(var Be=0;this._state===ht&&Be<Ze.length;Be++)this._eachEntry(Ze[Be],Be)},Ie.prototype._eachEntry=function(Ze,Be){var ze=this._instanceConstructor,ot=ze.resolve;if(ot===Ee){var It=void 0,Mt=void 0,jt=!1;try{It=Ze.then}catch(Ht){jt=!0,Mt=Ht}if(It===De&&Ze._state!==ht)this._settledAt(Ze._state,Be,Ze._result);else if(typeof It!="function")this._remaining--,this._result[Be]=Ze;else if(ze===et){var Dt=new ze(Le);jt?rt(Dt,Mt):pt(Dt,Ze,It),this._willSettleAt(Dt,Be)}else this._willSettleAt(new ze(function(Ht){return Ht(Ze)}),Be)}else this._willSettleAt(ot(Ze),Be)},Ie.prototype._settledAt=function(Ze,Be,ze){var ot=this.promise;ot._state===ht&&(this._remaining--,Ze===vt?rt(ot,ze):this._result[Be]=ze),this._remaining===0&&Bt(ot,this._result)},Ie.prototype._willSettleAt=function(Ze,Be){var ze=this;Xe(Ze,void 0,function(ot){return ze._settledAt(Ye,Be,ot)},function(ot){return ze._settledAt(vt,Be,ot)})},Ie}();function $t(Ie){return new on(this,Ie).promise}function st(Ie){var Re=this;return Se(Ie)?new Re(function(Ze,Be){for(var ze=Ie.length,ot=0;ot<ze;ot++)Re.resolve(Ie[ot]).then(Ze,Be)}):new Re(function(Ze,Be){return Be(new TypeError("You must pass an array to race."))})}function lt(Ie){var Re=this,Ze=new Re(Le);return rt(Ze,Ie),Ze}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 et=function(){function Ie(Re){this[je]=$e(),this._result=this._state=void 0,this._subscribers=[],Le!==Re&&(typeof Re!="function"&&Ge(),this instanceof Ie?Et(this,Re):Ne())}return Ie.prototype.catch=function(Ze){return this.then(null,Ze)},Ie.prototype.finally=function(Ze){var Be=this,ze=Be.constructor;return be(Ze)?Be.then(function(ot){return ze.resolve(Ze()).then(function(){return ot})},function(ot){return ze.resolve(Ze()).then(function(){throw ot})}):Be.then(Ze,Ze)},Ie}();et.prototype.then=De,et.all=$t,et.race=st,et.resolve=Ee,et.reject=lt,et._setScheduler=me,et._setAsap=ae,et._asap=le;function xt(){var Ie=void 0;if(typeof te.g!="undefined")Ie=te.g;else if(typeof self!="undefined")Ie=self;else try{Ie=Function("return this")()}catch(Be){throw new Error("polyfill failed because global object is unavailable in this environment")}var Re=Ie.Promise;if(Re){var Ze=null;try{Ze=Object.prototype.toString.call(Re.resolve())}catch(Be){}if(Ze==="[object Promise]"&&!Re.cast)return}Ie.Promise=et}return et.polyfill=xt,et.Promise=et,et})},86204:function(mt){"use strict";var Ke=typeof Reflect=="object"?Reflect:null,te=Ke&&typeof Ke.apply=="function"?Ke.apply:function(z,re,se){return Function.prototype.apply.call(z,re,se)},ee;Ke&&typeof Ke.ownKeys=="function"?ee=Ke.ownKeys:Object.getOwnPropertySymbols?ee=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:ee=function(z){return Object.getOwnPropertyNames(z)};function ge(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function pe(){pe.init.call(this)}mt.exports=pe,mt.exports.once=y,pe.EventEmitter=pe,pe.prototype._events=void 0,pe.prototype._eventsCount=0,pe.prototype._maxListeners=void 0;var Se=10;function fe(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(pe,"defaultMaxListeners",{enumerable:!0,get:function(){return Se},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+".");Se=x}}),pe.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},pe.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?pe.defaultMaxListeners:x._maxListeners}pe.prototype.getMaxListeners=function(){return ie(this)},pe.prototype.emit=function(z){for(var re=[],se=1;se<arguments.length;se++)re.push(arguments[se]);var ce=z==="error",_e=this._events;if(_e!==void 0)ce=ce&&_e.error===void 0;else if(!ce)return!1;if(ce){var ye;if(re.length>0&&(ye=re[0]),ye instanceof Error)throw ye;var De=new Error("Unhandled error."+(ye?" ("+ye.message+")":""));throw De.context=ye,De}var Ee=_e[z];if(Ee===void 0)return!1;if(typeof Ee=="function")te(Ee,this,re);else for(var je=Ee.length,Le=oe(Ee,je),se=0;se<je;++se)te(Le[se],this,re);return!0};function de(x,z,re,se){var ce,_e,ye;if(fe(re),_e=x._events,_e===void 0?(_e=x._events=Object.create(null),x._eventsCount=0):(_e.newListener!==void 0&&(x.emit("newListener",z,re.listener?re.listener:re),_e=x._events),ye=_e[z]),ye===void 0)ye=_e[z]=re,++x._eventsCount;else if(typeof ye=="function"?ye=_e[z]=se?[re,ye]:[ye,re]:se?ye.unshift(re):ye.push(re),ce=ie(x),ce>0&&ye.length>ce&&!ye.warned){ye.warned=!0;var De=new Error("Possible EventEmitter memory leak detected. "+ye.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");De.name="MaxListenersExceededWarning",De.emitter=x,De.type=z,De.count=ye.length,ge(De)}return x}pe.prototype.addListener=function(z,re){return de(this,z,re,!1)},pe.prototype.on=pe.prototype.addListener,pe.prototype.prependListener=function(z,re){return de(this,z,re,!0)};function le(){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 se={fired:!1,wrapFn:void 0,target:x,type:z,listener:re},ce=le.bind(se);return ce.listener=re,se.wrapFn=ce,ce}pe.prototype.once=function(z,re){return fe(re),this.on(z,me(this,z,re)),this},pe.prototype.prependOnceListener=function(z,re){return fe(re),this.prependListener(z,me(this,z,re)),this},pe.prototype.removeListener=function(z,re){var se,ce,_e,ye,De;if(fe(re),ce=this._events,ce===void 0)return this;if(se=ce[z],se===void 0)return this;if(se===re||se.listener===re)--this._eventsCount===0?this._events=Object.create(null):(delete ce[z],ce.removeListener&&this.emit("removeListener",z,se.listener||re));else if(typeof se!="function"){for(_e=-1,ye=se.length-1;ye>=0;ye--)if(se[ye]===re||se[ye].listener===re){De=se[ye].listener,_e=ye;break}if(_e<0)return this;_e===0?se.shift():ne(se,_e),se.length===1&&(ce[z]=se[0]),ce.removeListener!==void 0&&this.emit("removeListener",z,De||re)}return this},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(z){var re,se,ce;if(se=this._events,se===void 0)return this;if(se.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):se[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete se[z]),this;if(arguments.length===0){var _e=Object.keys(se),ye;for(ce=0;ce<_e.length;++ce)ye=_e[ce],ye!=="removeListener"&&this.removeAllListeners(ye);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(re=se[z],typeof re=="function")this.removeListener(z,re);else if(re!==void 0)for(ce=re.length-1;ce>=0;ce--)this.removeListener(z,re[ce]);return this};function ae(x,z,re){var se=x._events;if(se===void 0)return[];var ce=se[z];return ce===void 0?[]:typeof ce=="function"?re?[ce.listener||ce]:[ce]:re?a(ce):oe(ce,ce.length)}pe.prototype.listeners=function(z){return ae(this,z,!0)},pe.prototype.rawListeners=function(z){return ae(this,z,!1)},pe.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):he.call(x,z)},pe.prototype.listenerCount=he;function he(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}pe.prototype.eventNames=function(){return this._eventsCount>0?ee(this._events):[]};function oe(x,z){for(var re=new Array(z),se=0;se<z;++se)re[se]=x[se];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,se){function ce(ye){x.removeListener(z,_e),se(ye)}function _e(){typeof x.removeListener=="function"&&x.removeListener("error",ce),re([].slice.call(arguments))}b(x,z,_e,{once:!0}),z!=="error"&&E(x,ce,{once:!0})})}function E(x,z,re){typeof x.on=="function"&&b(x,"error",z,re)}function b(x,z,re,se){if(typeof x.on=="function")se.once?x.once(z,re):x.on(z,re);else if(typeof x.addEventListener=="function")x.addEventListener(z,function ce(_e){se.once&&x.removeEventListener(z,ce),re(_e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},24334:function(mt,Ke,te){var ee,ge;(function(be,pe){mt.exports=pe(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(be){"use strict";be=be||{};var pe=be.Base64,Se="2.6.4",fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Ye){for(var vt={},we=0,Fe=Ye.length;we<Fe;we++)vt[Ye.charAt(we)]=we;return vt}(fe),de=String.fromCharCode,le=function(Ye){if(Ye.length<2){var vt=Ye.charCodeAt(0);return vt<128?Ye:vt<2048?de(192|vt>>>6)+de(128|vt&63):de(224|vt>>>12&15)+de(128|vt>>>6&63)+de(128|vt&63)}else{var vt=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return de(240|vt>>>18&7)+de(128|vt>>>12&63)+de(128|vt>>>6&63)+de(128|vt&63)}},me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ye){return Ye.replace(me,le)},he=function(Ye){var vt=[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),Fe=[fe.charAt(we>>>18),fe.charAt(we>>>12&63),vt>=2?"=":fe.charAt(we>>>6&63),vt>=1?"=":fe.charAt(we&63)];return Fe.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,he)},ne=function(Ye){return oe(ae(String(Ye)))},a=function(Ye){return Ye.replace(/[+\/]/g,function(vt){return vt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Ye,vt){return vt?a(ne(Ye)):ne(Ye)},E=function(Ye){return y(Ye,!0)},b;be.Uint8Array&&(b=function(Ye,vt){for(var we="",Fe=0,He=Ye.length;Fe<He;Fe+=3){var at=Ye[Fe],We=Ye[Fe+1],pt=Ye[Fe+2],Pt=at<<16|We<<8|pt;we+=fe.charAt(Pt>>>18)+fe.charAt(Pt>>>12&63)+(typeof We!="undefined"?fe.charAt(Pt>>>6&63):"=")+(typeof pt!="undefined"?fe.charAt(Pt&63):"=")}return vt?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 vt=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),we=vt-65536;return de((we>>>10)+55296)+de((we&1023)+56320);case 3:return de((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return de((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},re=function(Ye){return Ye.replace(x,z)},se=function(Ye){var vt=Ye.length,we=vt%4,Fe=(vt>0?ie[Ye.charAt(0)]<<18:0)|(vt>1?ie[Ye.charAt(1)]<<12:0)|(vt>2?ie[Ye.charAt(2)]<<6:0)|(vt>3?ie[Ye.charAt(3)]:0),He=[de(Fe>>>16),de(Fe>>>8&255),de(Fe&255)];return He.length-=[0,0,2,1][we],He.join("")},ce=be.atob&&typeof be.atob=="function"?function(Ye){return be.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,se)},_e=function(Ye){return ce(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},ye=function(Ye){return re(ce(Ye))},De=function(Ye){return String(Ye).replace(/[-_]/g,function(vt){return vt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ye){return ye(De(Ye))},je;be.Uint8Array&&(je=function(Ye){return Uint8Array.from(_e(De(Ye)),function(vt){return vt.charCodeAt(0)})});var Le=function(){var Ye=be.Base64;return be.Base64=pe,Ye};if(be.Base64={VERSION:Se,atob:_e,btoa:oe,fromBase64:Ee,toBase64:y,utob:ae,encode:y,encodeURI:E,btou:re,decode:Ee,noConflict:Le,fromUint8Array:b,toUint8Array:je},typeof Object.defineProperty=="function"){var ht=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ht(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",ht(function(Ye){return y(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",ht(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),mt.exports?mt.exports.Base64=be.Base64:(ee=[],ge=function(){return be.Base64}.apply(Ke,ee),ge!==void 0&&(mt.exports=ge)),{Base64:be.Base64}})},39417:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ye}});var ee=te(60499),ge=te(18642),be=te(42244),pe=te(85899),Se=te(38705),fe=te(17212),ie=te(15793),de=te(39153),le=te(55401),me=te(92310),ae=te.n(me),he=te(26112),oe=te(59301),ne=te(39378),a=function(Ee){for(var je=Ee.prefixCls,Le=Ee.level,ht=Ee.isStart,Ye=Ee.isEnd,vt="".concat(je,"-indent-unit"),we=[],Fe=0;Fe<Le;Fe+=1){var He;we.push(oe.createElement("span",{key:Fe,className:ae()(vt,(He={},(0,ge.Z)(He,"".concat(vt,"-start"),ht[Fe]),(0,ge.Z)(He,"".concat(vt,"-end"),Ye[Fe]),He))}))}return oe.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},we)},y=oe.memo(a),E=te(67841),b=te(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",se="---",ce=function(De){(0,de.Z)(je,De);var Ee=(0,le.Z)(je);function je(){var Le;(0,Se.Z)(this,je);for(var ht=arguments.length,Ye=new Array(ht),vt=0;vt<ht;vt++)Ye[vt]=arguments[vt];return Le=Ee.call.apply(Ee,[this].concat(Ye)),Le.state={dragNodeHighlight:!1},Le.selectHandle=void 0,Le.cacheIndent=void 0,Le.onSelectorClick=function(we){var Fe=Le.props.context.onNodeClick;Fe(we,(0,b.F)(Le.props)),Le.isSelectable()?Le.onSelect(we):Le.onCheck(we)},Le.onSelectorDoubleClick=function(we){var Fe=Le.props.context.onNodeDoubleClick;Fe(we,(0,b.F)(Le.props))},Le.onSelect=function(we){if(!Le.isDisabled()){var Fe=Le.props.context.onNodeSelect;Fe(we,(0,b.F)(Le.props))}},Le.onCheck=function(we){if(!Le.isDisabled()){var Fe=Le.props,He=Fe.disableCheckbox,at=Fe.checked,We=Le.props.context.onNodeCheck;if(!(!Le.isCheckable()||He)){var pt=!at;We(we,(0,b.F)(Le.props),pt)}}},Le.onMouseEnter=function(we){var Fe=Le.props.context.onNodeMouseEnter;Fe(we,(0,b.F)(Le.props))},Le.onMouseLeave=function(we){var Fe=Le.props.context.onNodeMouseLeave;Fe(we,(0,b.F)(Le.props))},Le.onContextMenu=function(we){var Fe=Le.props.context.onNodeContextMenu;Fe(we,(0,b.F)(Le.props))},Le.onDragStart=function(we){var Fe=Le.props.context.onNodeDragStart;we.stopPropagation(),Le.setState({dragNodeHighlight:!0}),Fe(we,(0,ie.Z)(Le));try{we.dataTransfer.setData("text/plain","")}catch(He){}},Le.onDragEnter=function(we){var Fe=Le.props.context.onNodeDragEnter;we.preventDefault(),we.stopPropagation(),Fe(we,(0,ie.Z)(Le))},Le.onDragOver=function(we){var Fe=Le.props.context.onNodeDragOver;we.preventDefault(),we.stopPropagation(),Fe(we,(0,ie.Z)(Le))},Le.onDragLeave=function(we){var Fe=Le.props.context.onNodeDragLeave;we.stopPropagation(),Fe(we,(0,ie.Z)(Le))},Le.onDragEnd=function(we){var Fe=Le.props.context.onNodeDragEnd;we.stopPropagation(),Le.setState({dragNodeHighlight:!1}),Fe(we,(0,ie.Z)(Le))},Le.onDrop=function(we){var Fe=Le.props.context.onNodeDrop;we.preventDefault(),we.stopPropagation(),Le.setState({dragNodeHighlight:!1}),Fe(we,(0,ie.Z)(Le))},Le.onExpand=function(we){var Fe=Le.props,He=Fe.loading,at=Fe.context.onNodeExpand;He||at(we,(0,b.F)(Le.props))},Le.setSelectHandle=function(we){Le.selectHandle=we},Le.getNodeState=function(){var we=Le.props.expanded;return Le.isLeaf()?null:we?z:re},Le.hasChildren=function(){var we=Le.props.eventKey,Fe=Le.props.context.keyEntities,He=(0,E.Z)(Fe,we)||{},at=He.children;return!!(at||[]).length},Le.isLeaf=function(){var we=Le.props,Fe=we.isLeaf,He=we.loaded,at=Le.props.context.loadData,We=Le.hasChildren();return Fe===!1?!1:Fe||!at&&!We||at&&He&&!We},Le.isDisabled=function(){var we=Le.props.disabled,Fe=Le.props.context.disabled;return!!(Fe||we)},Le.isCheckable=function(){var we=Le.props.checkable,Fe=Le.props.context.checkable;return!Fe||we===!1?!1:Fe},Le.syncLoadData=function(we){var Fe=we.expanded,He=we.loading,at=we.loaded,We=Le.props.context,pt=We.loadData,Pt=We.onNodeLoad;He||pt&&Fe&&!Le.isLeaf()&&!Le.hasChildren()&&!at&&Pt((0,b.F)(Le.props))},Le.isDraggable=function(){var we=Le.props,Fe=we.data,He=we.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(Fe)))},Le.renderDragHandler=function(){var we=Le.props.context,Fe=we.draggable,He=we.prefixCls;return Fe!=null&&Fe.icon?oe.createElement("span",{className:"".concat(He,"-draggable-icon")},Fe.icon):null},Le.renderSwitcherIconDom=function(we){var Fe=Le.props.switcherIcon,He=Le.props.context.switcherIcon,at=Fe||He;return typeof at=="function"?at((0,pe.Z)((0,pe.Z)({},Le.props),{},{isLeaf:we})):at},Le.renderSwitcher=function(){var we=Le.props.expanded,Fe=Le.props.context.prefixCls;if(Le.isLeaf()){var He=Le.renderSwitcherIconDom(!0);return He!==!1?oe.createElement("span",{className:ae()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher-noop"))},He):null}var at=ae()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher_").concat(we?z:re)),We=Le.renderSwitcherIconDom(!1);return We!==!1?oe.createElement("span",{onClick:Le.onExpand,className:at},We):null},Le.renderCheckbox=function(){var we=Le.props,Fe=we.checked,He=we.halfChecked,at=we.disableCheckbox,We=Le.props.context.prefixCls,pt=Le.isDisabled(),Pt=Le.isCheckable();if(!Pt)return null;var At=typeof Pt!="boolean"?Pt:null;return oe.createElement("span",{className:ae()("".concat(We,"-checkbox"),Fe&&"".concat(We,"-checkbox-checked"),!Fe&&He&&"".concat(We,"-checkbox-indeterminate"),(pt||at)&&"".concat(We,"-checkbox-disabled")),onClick:Le.onCheck},At)},Le.renderIcon=function(){var we=Le.props.loading,Fe=Le.props.context.prefixCls;return oe.createElement("span",{className:ae()("".concat(Fe,"-iconEle"),"".concat(Fe,"-icon__").concat(Le.getNodeState()||"docu"),we&&"".concat(Fe,"-icon_loading"))})},Le.renderSelector=function(){var we=Le.state.dragNodeHighlight,Fe=Le.props,He=Fe.title,at=He===void 0?se:He,We=Fe.selected,pt=Fe.icon,Pt=Fe.loading,At=Fe.data,Bt=Le.props.context,rt=Bt.prefixCls,Xe=Bt.showIcon,Ct=Bt.icon,zt=Bt.loadData,Et=Bt.titleRender,an=Le.isDisabled(),$e="".concat(rt,"-node-content-wrapper"),yt;if(Xe){var Lt=pt||Ct;yt=Lt?oe.createElement("span",{className:ae()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof Lt=="function"?Lt(Le.props):Lt):Le.renderIcon()}else zt&&Pt&&(yt=Le.renderIcon());var on;typeof at=="function"?on=at(At):Et?on=Et(At):on=at;var $t=oe.createElement("span",{className:"".concat(rt,"-title")},on);return oe.createElement("span",{ref:Le.setSelectHandle,title:typeof at=="string"?at:"",className:ae()("".concat($e),"".concat($e,"-").concat(Le.getNodeState()||"normal"),!an&&(We||we)&&"".concat(rt,"-node-selected")),onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onContextMenu:Le.onContextMenu,onClick:Le.onSelectorClick,onDoubleClick:Le.onSelectorDoubleClick},yt,$t,Le.renderDropIndicator())},Le.renderDropIndicator=function(){var we=Le.props,Fe=we.disabled,He=we.eventKey,at=Le.props.context,We=at.draggable,pt=at.dropLevelOffset,Pt=at.dropPosition,At=at.prefixCls,Bt=at.indent,rt=at.dropIndicatorRender,Xe=at.dragOverNodeKey,Ct=at.direction,zt=!!We,Et=!Fe&&zt&&Xe===He,an=Bt!=null?Bt:Le.cacheIndent;return Le.cacheIndent=Bt,Et?rt({dropPosition:Pt,dropLevelOffset:pt,indent:an,prefixCls:At,direction:Ct}):null},Le}return(0,fe.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ht=this.props.selectable,Ye=this.props.context.selectable;return typeof ht=="boolean"?ht:Ye}},{key:"render",value:function(){var ht,Ye=this.props,vt=Ye.eventKey,we=Ye.className,Fe=Ye.style,He=Ye.dragOver,at=Ye.dragOverGapTop,We=Ye.dragOverGapBottom,pt=Ye.isLeaf,Pt=Ye.isStart,At=Ye.isEnd,Bt=Ye.expanded,rt=Ye.selected,Xe=Ye.checked,Ct=Ye.halfChecked,zt=Ye.loading,Et=Ye.domRef,an=Ye.active,$e=Ye.data,yt=Ye.onMouseMove,Lt=Ye.selectable,on=(0,be.Z)(Ye,x),$t=this.props.context,st=$t.prefixCls,lt=$t.filterTreeNode,Ge=$t.keyEntities,Ne=$t.dropContainerKey,et=$t.dropTargetKey,xt=$t.draggingNodeKey,Ie=this.isDisabled(),Re=(0,he.Z)(on,{aria:!0,data:!0}),Ze=(0,E.Z)(Ge,vt)||{},Be=Ze.level,ze=At[At.length-1],ot=this.isDraggable(),It=!Ie&&ot,Mt=xt===vt,jt=Lt!==void 0?{"aria-selected":!!Lt}:void 0;return oe.createElement("div",(0,ee.Z)({ref:Et,className:ae()(we,"".concat(st,"-treenode"),(ht={},(0,ge.Z)(ht,"".concat(st,"-treenode-disabled"),Ie),(0,ge.Z)(ht,"".concat(st,"-treenode-switcher-").concat(Bt?"open":"close"),!pt),(0,ge.Z)(ht,"".concat(st,"-treenode-checkbox-checked"),Xe),(0,ge.Z)(ht,"".concat(st,"-treenode-checkbox-indeterminate"),Ct),(0,ge.Z)(ht,"".concat(st,"-treenode-selected"),rt),(0,ge.Z)(ht,"".concat(st,"-treenode-loading"),zt),(0,ge.Z)(ht,"".concat(st,"-treenode-active"),an),(0,ge.Z)(ht,"".concat(st,"-treenode-leaf-last"),ze),(0,ge.Z)(ht,"".concat(st,"-treenode-draggable"),ot),(0,ge.Z)(ht,"dragging",Mt),(0,ge.Z)(ht,"drop-target",et===vt),(0,ge.Z)(ht,"drop-container",Ne===vt),(0,ge.Z)(ht,"drag-over",!Ie&&He),(0,ge.Z)(ht,"drag-over-gap-top",!Ie&&at),(0,ge.Z)(ht,"drag-over-gap-bottom",!Ie&&We),(0,ge.Z)(ht,"filter-node",lt&&lt((0,b.F)(this.props))),ht)),style:Fe,draggable:It,"aria-grabbed":Mt,onDragStart:It?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:yt},jt,Re),oe.createElement(y,{prefixCls:st,level:Be,isStart:Pt,isEnd:At}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(oe.Component),_e=function(Ee){return oe.createElement(ne.k.Consumer,null,function(je){return oe.createElement(ce,(0,ee.Z)({},Ee,{context:je}))})};_e.displayName="TreeNode",_e.isTreeNode=1;var ye=_e},39378:function(mt,Ke,te){"use strict";te.d(Ke,{k:function(){return ge}});var ee=te(59301),ge=ee.createContext(null)},38028:function(mt,Ke,te){"use strict";te.d(Ke,{O:function(){return ye.Z},Z:function(){return $t}});var ee=te(60499),ge=te(18642),be=te(43749),pe=te(85899),Se=te(77654),fe=te(38705),ie=te(17212),de=te(15793),le=te(39153),me=te(55401),ae=te(92310),he=te.n(ae),oe=te(10228),ne=te(26112),a=te(48736),y=te(59301),E=te(39378);function b(st){var lt=st.dropPosition,Ge=st.dropLevelOffset,Ne=st.indent,et={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(lt){case-1:et.top=0,et.left=-Ge*Ne;break;case 1:et.bottom=0,et.left=-Ge*Ne;break;case 0:et.bottom=0,et.left=Ne;break}return y.createElement("div",{style:et})}function x(st){if(st==null)throw new TypeError("Cannot destructure "+st)}var z=te(72190),re=te(42244),se=te(34280),ce=te(48911),_e=te(77900),ye=te(39417);function De(st,lt){var Ge=y.useState(!1),Ne=(0,z.Z)(Ge,2),et=Ne[0],xt=Ne[1];y.useLayoutEffect(function(){if(et)return st(),function(){lt()}},[et]),y.useLayoutEffect(function(){return xt(!0),function(){xt(!1)}},[])}var Ee=te(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Le=function(lt,Ge){var Ne=lt.className,et=lt.style,xt=lt.motion,Ie=lt.motionNodes,Re=lt.motionType,Ze=lt.onMotionStart,Be=lt.onMotionEnd,ze=lt.active,ot=lt.treeNodeRequiredProps,It=(0,re.Z)(lt,je),Mt=y.useState(!0),jt=(0,z.Z)(Mt,2),Dt=jt[0],Ht=jt[1],bt=y.useContext(E.k),fn=bt.prefixCls,cn=Ie&&Re!=="hide";(0,se.Z)(function(){Ie&&cn!==Dt&&Ht(cn)},[Ie]);var wt=function(){Ie&&Ze()},yn=y.useRef(!1),vn=function(){Ie&&!yn.current&&(yn.current=!0,Be())};De(wt,vn);var zn=function(Wn){cn===Wn&&vn()};return Ie?y.createElement(_e.default,(0,ee.Z)({ref:Ge,visible:Dt},xt,{motionAppear:Re==="show",onVisibleChanged:zn}),function(wn,Wn){var qn=wn.className,Kn=wn.style;return y.createElement("div",{ref:Wn,className:he()("".concat(fn,"-treenode-motion"),qn),style:Kn},Ie.map(function(Vn){var vr=(0,ee.Z)({},(x(Vn.data),Vn.data)),lr=Vn.title,sn=Vn.key,Yn=Vn.isStart,ir=Vn.isEnd;delete vr.children;var Zn=(0,Ee.H8)(sn,ot);return y.createElement(ye.Z,(0,ee.Z)({},vr,Zn,{title:lr,active:ze,data:Vn.data,key:sn,isStart:Yn,isEnd:ir}))}))}):y.createElement(ye.Z,(0,ee.Z)({domRef:Ge,className:Ne,style:et},It,{active:ze}))};Le.displayName="MotionTreeNode";var ht=y.forwardRef(Le),Ye=ht;function vt(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=st.length,Ne=lt.length;if(Math.abs(Ge-Ne)!==1)return{add:!1,key:null};function et(xt,Ie){var Re=new Map;xt.forEach(function(Be){Re.set(Be,!0)});var Ze=Ie.filter(function(Be){return!Re.has(Be)});return Ze.length===1?Ze[0]:null}return Ge<Ne?{add:!0,key:et(st,lt)}:{add:!1,key:et(lt,st)}}function we(st,lt,Ge){var Ne=st.findIndex(function(Re){return Re.key===Ge}),et=st[Ne+1],xt=lt.findIndex(function(Re){return Re.key===Ge});if(et){var Ie=lt.findIndex(function(Re){return Re.key===et.key});return lt.slice(xt+1,Ie)}return lt.slice(xt+1)}var Fe=["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},at=function(){},We="RC_TREE_MOTION_".concat(Math.random()),pt={key:We},Pt={key:We,level:0,index:0,pos:"0",node:pt,nodes:[pt]},At={parent:null,children:[],pos:Pt.pos,data:pt,title:null,key:We,isStart:[],isEnd:[]};function Bt(st,lt,Ge,Ne){return lt===!1||!Ge?st:st.slice(0,Math.ceil(Ge/Ne)+1)}function rt(st){var lt=st.key,Ge=st.pos;return(0,Ee.km)(lt,Ge)}function Xe(st){for(var lt=String(st.data.key),Ge=st;Ge.parent;)Ge=Ge.parent,lt="".concat(Ge.data.key," > ").concat(lt);return lt}var Ct=y.forwardRef(function(st,lt){var Ge=st.prefixCls,Ne=st.data,et=st.selectable,xt=st.checkable,Ie=st.expandedKeys,Re=st.selectedKeys,Ze=st.checkedKeys,Be=st.loadedKeys,ze=st.loadingKeys,ot=st.halfCheckedKeys,It=st.keyEntities,Mt=st.disabled,jt=st.dragging,Dt=st.dragOverNodeKey,Ht=st.dropPosition,bt=st.motion,fn=st.height,cn=st.itemHeight,wt=st.virtual,yn=st.focusable,vn=st.activeItem,zn=st.focused,wn=st.tabIndex,Wn=st.onKeyDown,qn=st.onFocus,Kn=st.onBlur,Vn=st.onActiveChange,vr=st.onListChangeStart,lr=st.onListChangeEnd,sn=(0,re.Z)(st,Fe),Yn=y.useRef(null),ir=y.useRef(null);y.useImperativeHandle(lt,function(){return{scrollTo:function(kt){Yn.current.scrollTo(kt)},getIndentWidth:function(){return ir.current.offsetWidth}}});var Zn=y.useState(Ie),ar=(0,z.Z)(Zn,2),Dr=ar[0],Mr=ar[1],Er=y.useState(Ne),Br=(0,z.Z)(Er,2),sr=Br[0],Kr=Br[1],Ut=y.useState(Ne),ue=(0,z.Z)(Ut,2),ve=ue[0],Pe=ue[1],xe=y.useState([]),ke=(0,z.Z)(xe,2),tt=ke[0],dt=ke[1],tn=y.useState(null),Kt=(0,z.Z)(tn,2),_t=Kt[0],ft=Kt[1],Ft=y.useRef(Ne);Ft.current=Ne;function gt(){var Tt=Ft.current;Kr(Tt),Pe(Tt),dt([]),ft(null),lr()}(0,se.Z)(function(){Mr(Ie);var Tt=vt(Dr,Ie);if(Tt.key!==null)if(Tt.add){var kt=sr.findIndex(function(mn){var An=mn.key;return An===Tt.key}),Xt=Bt(we(sr,Ne,Tt.key),wt,fn,cn),dn=sr.slice();dn.splice(kt+1,0,At),Pe(dn),dt(Xt),ft("show")}else{var xn=Ne.findIndex(function(mn){var An=mn.key;return An===Tt.key}),Fn=Bt(we(Ne,sr,Tt.key),wt,fn,cn),Qn=Ne.slice();Qn.splice(xn+1,0,At),Pe(Qn),dt(Fn),ft("hide")}else sr!==Ne&&(Kr(Ne),Pe(Ne))},[Ie,Ne]),y.useEffect(function(){jt||gt()},[jt]);var Gt=bt?ve:Ne,Zt={expandedKeys:Ie,selectedKeys:Re,loadedKeys:Be,loadingKeys:ze,checkedKeys:Ze,halfCheckedKeys:ot,dragOverNodeKey:Dt,dropPosition:Ht,keyEntities:It};return y.createElement(y.Fragment,null,zn&&vn&&y.createElement("span",{style:He,"aria-live":"assertive"},Xe(vn)),y.createElement("div",null,y.createElement("input",{style:He,disabled:yn===!1||Mt,tabIndex:yn!==!1?wn:null,onKeyDown:Wn,onFocus:qn,onBlur:Kn,value:"",onChange:at,"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:ir,className:"".concat(Ge,"-indent-unit")}))),y.createElement(ce.Z,(0,ee.Z)({},sn,{data:Gt,itemKey:rt,height:fn,fullHeight:!1,virtual:wt,itemHeight:cn,prefixCls:"".concat(Ge,"-list"),ref:Yn,onVisibleChange:function(kt,Xt){var dn=new Set(kt),xn=Xt.filter(function(Fn){return!dn.has(Fn)});xn.some(function(Fn){return rt(Fn)===We})&&gt()}}),function(Tt){var kt=Tt.pos,Xt=(0,ee.Z)({},(x(Tt.data),Tt.data)),dn=Tt.title,xn=Tt.key,Fn=Tt.isStart,Qn=Tt.isEnd,mn=(0,Ee.km)(xn,kt);delete Xt.key,delete Xt.children;var An=(0,Ee.H8)(mn,Zt);return y.createElement(Ye,(0,ee.Z)({},Xt,An,{title:dn,active:!!vn&&xn===vn.key,pos:kt,data:Tt.data,isStart:Fn,isEnd:Qn,motion:bt,motionNodes:xn===We?tt:null,motionType:_t,onMotionStart:vr,onMotionEnd:gt,treeNodeRequiredProps:Zt,onMouseMove:function(){Vn(null)}}))}))});Ct.displayName="NodeList";var zt=Ct,Et=te(35654),an=te(90782),$e=te(67841),yt=10,Lt=function(st){(0,le.Z)(Ge,st);var lt=(0,me.Z)(Ge);function Ge(){var Ne;(0,fe.Z)(this,Ge);for(var et=arguments.length,xt=new Array(et),Ie=0;Ie<et;Ie++)xt[Ie]=arguments[Ie];return Ne=lt.call.apply(lt,[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,Ze){var Be=Ne.state,ze=Be.expandedKeys,ot=Be.keyEntities,It=Ne.props.onDragStart,Mt=Ze.props.eventKey;Ne.dragNode=Ze,Ne.dragStartMousePosition={x:Re.clientX,y:Re.clientY};var jt=(0,Et._5)(ze,Mt);Ne.setState({draggingNodeKey:Mt,dragChildrenKeys:(0,Et.wA)(Mt,ot),indent:Ne.listRef.current.getIndentWidth()}),Ne.setExpandedKeys(jt),window.addEventListener("dragend",Ne.onWindowDragEnd),It==null||It({event:Re,node:(0,Ee.F)(Ze.props)})},Ne.onNodeDragEnter=function(Re,Ze){var Be=Ne.state,ze=Be.expandedKeys,ot=Be.keyEntities,It=Be.dragChildrenKeys,Mt=Be.flattenNodes,jt=Be.indent,Dt=Ne.props,Ht=Dt.onDragEnter,bt=Dt.onExpand,fn=Dt.allowDrop,cn=Dt.direction,wt=Ze.props,yn=wt.pos,vn=wt.eventKey,zn=(0,de.Z)(Ne),wn=zn.dragNode;if(Ne.currentMouseOverDroppableNodeKey!==vn&&(Ne.currentMouseOverDroppableNodeKey=vn),!wn){Ne.resetDragState();return}var Wn=(0,Et.OM)(Re,wn,Ze,jt,Ne.dragStartMousePosition,fn,Mt,ot,ze,cn),qn=Wn.dropPosition,Kn=Wn.dropLevelOffset,Vn=Wn.dropTargetKey,vr=Wn.dropContainerKey,lr=Wn.dropTargetPos,sn=Wn.dropAllowed,Yn=Wn.dragOverNodeKey;if(It.indexOf(Vn)!==-1||!sn){Ne.resetDragState();return}if(Ne.delayedDragEnterLogic||(Ne.delayedDragEnterLogic={}),Object.keys(Ne.delayedDragEnterLogic).forEach(function(ir){clearTimeout(Ne.delayedDragEnterLogic[ir])}),wn.props.eventKey!==Ze.props.eventKey&&(Re.persist(),Ne.delayedDragEnterLogic[yn]=window.setTimeout(function(){if(Ne.state.draggingNodeKey!==null){var ir=(0,Se.Z)(ze),Zn=(0,$e.Z)(ot,Ze.props.eventKey);Zn&&(Zn.children||[]).length&&(ir=(0,Et.L0)(ze,Ze.props.eventKey)),"expandedKeys"in Ne.props||Ne.setExpandedKeys(ir),bt==null||bt(ir,{node:(0,Ee.F)(Ze.props),expanded:!0,nativeEvent:Re.nativeEvent})}},800)),wn.props.eventKey===Vn&&Kn===0){Ne.resetDragState();return}Ne.setState({dragOverNodeKey:Yn,dropPosition:qn,dropLevelOffset:Kn,dropTargetKey:Vn,dropContainerKey:vr,dropTargetPos:lr,dropAllowed:sn}),Ht==null||Ht({event:Re,node:(0,Ee.F)(Ze.props),expandedKeys:ze})},Ne.onNodeDragOver=function(Re,Ze){var Be=Ne.state,ze=Be.dragChildrenKeys,ot=Be.flattenNodes,It=Be.keyEntities,Mt=Be.expandedKeys,jt=Be.indent,Dt=Ne.props,Ht=Dt.onDragOver,bt=Dt.allowDrop,fn=Dt.direction,cn=(0,de.Z)(Ne),wt=cn.dragNode;if(wt){var yn=(0,Et.OM)(Re,wt,Ze,jt,Ne.dragStartMousePosition,bt,ot,It,Mt,fn),vn=yn.dropPosition,zn=yn.dropLevelOffset,wn=yn.dropTargetKey,Wn=yn.dropContainerKey,qn=yn.dropAllowed,Kn=yn.dropTargetPos,Vn=yn.dragOverNodeKey;ze.indexOf(wn)!==-1||!qn||(wt.props.eventKey===wn&&zn===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():vn===Ne.state.dropPosition&&zn===Ne.state.dropLevelOffset&&wn===Ne.state.dropTargetKey&&Wn===Ne.state.dropContainerKey&&Kn===Ne.state.dropTargetPos&&qn===Ne.state.dropAllowed&&Vn===Ne.state.dragOverNodeKey||Ne.setState({dropPosition:vn,dropLevelOffset:zn,dropTargetKey:wn,dropContainerKey:Wn,dropTargetPos:Kn,dropAllowed:qn,dragOverNodeKey:Vn}),Ht==null||Ht({event:Re,node:(0,Ee.F)(Ze.props)}))}},Ne.onNodeDragLeave=function(Re,Ze){Ne.currentMouseOverDroppableNodeKey===Ze.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)(Ze.props)})},Ne.onWindowDragEnd=function(Re){Ne.onNodeDragEnd(Re,null,!0),window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDragEnd=function(Re,Ze){var Be=Ne.props.onDragEnd;Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),Be==null||Be({event:Re,node:(0,Ee.F)(Ze.props)}),Ne.dragNode=null,window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDrop=function(Re,Ze){var Be,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=Ne.state,It=ot.dragChildrenKeys,Mt=ot.dropPosition,jt=ot.dropTargetKey,Dt=ot.dropTargetPos,Ht=ot.dropAllowed;if(Ht){var bt=Ne.props.onDrop;if(Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),jt!==null){var fn=(0,pe.Z)((0,pe.Z)({},(0,Ee.H8)(jt,Ne.getTreeNodeRequiredProps())),{},{active:((Be=Ne.getActiveItem())===null||Be===void 0?void 0:Be.key)===jt,data:(0,$e.Z)(Ne.state.keyEntities,jt).node}),cn=It.indexOf(jt)!==-1;(0,a.ZP)(!cn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var wt=(0,Et.yx)(Dt),yn={event:Re,node:(0,Ee.F)(fn),dragNode:Ne.dragNode?(0,Ee.F)(Ne.dragNode.props):null,dragNodesKeys:[Ne.dragNode.props.eventKey].concat(It),dropToGap:Mt!==0,dropPosition:Mt+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,Ze){var Be=Ne.state,ze=Be.expandedKeys,ot=Be.flattenNodes,It=Ze.expanded,Mt=Ze.key,jt=Ze.isLeaf;if(!(jt||Re.shiftKey||Re.metaKey||Re.ctrlKey)){var Dt=ot.filter(function(bt){return bt.key===Mt})[0],Ht=(0,Ee.F)((0,pe.Z)((0,pe.Z)({},(0,Ee.H8)(Mt,Ne.getTreeNodeRequiredProps())),{},{data:Dt.data}));Ne.setExpandedKeys(It?(0,Et._5)(ze,Mt):(0,Et.L0)(ze,Mt)),Ne.onNodeExpand(Re,Ht)}},Ne.onNodeClick=function(Re,Ze){var Be=Ne.props,ze=Be.onClick,ot=Be.expandAction;ot==="click"&&Ne.triggerExpandActionExpand(Re,Ze),ze==null||ze(Re,Ze)},Ne.onNodeDoubleClick=function(Re,Ze){var Be=Ne.props,ze=Be.onDoubleClick,ot=Be.expandAction;ot==="doubleClick"&&Ne.triggerExpandActionExpand(Re,Ze),ze==null||ze(Re,Ze)},Ne.onNodeSelect=function(Re,Ze){var Be=Ne.state.selectedKeys,ze=Ne.state,ot=ze.keyEntities,It=ze.fieldNames,Mt=Ne.props,jt=Mt.onSelect,Dt=Mt.multiple,Ht=Ze.selected,bt=Ze[It.key],fn=!Ht;fn?Dt?Be=(0,Et.L0)(Be,bt):Be=[bt]:Be=(0,Et._5)(Be,bt);var cn=Be.map(function(wt){var yn=(0,$e.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:Ze,selectedNodes:cn,nativeEvent:Re.nativeEvent})},Ne.onNodeCheck=function(Re,Ze,Be){var ze=Ne.state,ot=ze.keyEntities,It=ze.checkedKeys,Mt=ze.halfCheckedKeys,jt=Ne.props,Dt=jt.checkStrictly,Ht=jt.onCheck,bt=Ze.key,fn,cn={event:"check",node:Ze,checked:Be,nativeEvent:Re.nativeEvent};if(Dt){var wt=Be?(0,Et.L0)(It,bt):(0,Et._5)(It,bt),yn=(0,Et._5)(Mt,bt);fn={checked:wt,halfChecked:yn},cn.checkedNodes=wt.map(function(Kn){return(0,$e.Z)(ot,Kn)}).filter(function(Kn){return Kn}).map(function(Kn){return Kn.node}),Ne.setUncontrolledState({checkedKeys:wt})}else{var vn=(0,an.S)([].concat((0,Se.Z)(It),[bt]),!0,ot),zn=vn.checkedKeys,wn=vn.halfCheckedKeys;if(!Be){var Wn=new Set(zn);Wn.delete(bt);var qn=(0,an.S)(Array.from(Wn),{checked:!1,halfCheckedKeys:wn},ot);zn=qn.checkedKeys,wn=qn.halfCheckedKeys}fn=zn,cn.checkedNodes=[],cn.checkedNodesPositions=[],cn.halfCheckedKeys=wn,zn.forEach(function(Kn){var Vn=(0,$e.Z)(ot,Kn);if(Vn){var vr=Vn.node,lr=Vn.pos;cn.checkedNodes.push(vr),cn.checkedNodesPositions.push({node:vr,pos:lr})}}),Ne.setUncontrolledState({checkedKeys:zn},!1,{halfCheckedKeys:wn})}Ht==null||Ht(fn,cn)},Ne.onNodeLoad=function(Re){var Ze=Re.key,Be=new Promise(function(ze,ot){Ne.setState(function(It){var Mt=It.loadedKeys,jt=Mt===void 0?[]:Mt,Dt=It.loadingKeys,Ht=Dt===void 0?[]:Dt,bt=Ne.props,fn=bt.loadData,cn=bt.onLoad;if(!fn||jt.indexOf(Ze)!==-1||Ht.indexOf(Ze)!==-1)return null;var wt=fn(Re);return wt.then(function(){var yn=Ne.state.loadedKeys,vn=(0,Et.L0)(yn,Ze);cn==null||cn(vn,{event:"load",node:Re}),Ne.setUncontrolledState({loadedKeys:vn}),Ne.setState(function(zn){return{loadingKeys:(0,Et._5)(zn.loadingKeys,Ze)}}),ze()}).catch(function(yn){if(Ne.setState(function(zn){return{loadingKeys:(0,Et._5)(zn.loadingKeys,Ze)}}),Ne.loadingRetryTimes[Ze]=(Ne.loadingRetryTimes[Ze]||0)+1,Ne.loadingRetryTimes[Ze]>=yt){var vn=Ne.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ne.setUncontrolledState({loadedKeys:(0,Et.L0)(vn,Ze)}),ze()}ot(yn)}),{loadingKeys:(0,Et.L0)(Ht,Ze)}})});return Be.catch(function(){}),Be},Ne.onNodeMouseEnter=function(Re,Ze){var Be=Ne.props.onMouseEnter;Be==null||Be({event:Re,node:Ze})},Ne.onNodeMouseLeave=function(Re,Ze){var Be=Ne.props.onMouseLeave;Be==null||Be({event:Re,node:Ze})},Ne.onNodeContextMenu=function(Re,Ze){var Be=Ne.props.onRightClick;Be&&(Re.preventDefault(),Be({event:Re,node:Ze}))},Ne.onFocus=function(){var Re=Ne.props.onFocus;Ne.setState({focused:!0});for(var Ze=arguments.length,Be=new Array(Ze),ze=0;ze<Ze;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 Ze=arguments.length,Be=new Array(Ze),ze=0;ze<Ze;ze++)Be[ze]=arguments[ze];Re==null||Re.apply(void 0,Be)},Ne.getTreeNodeRequiredProps=function(){var Re=Ne.state,Ze=Re.expandedKeys,Be=Re.selectedKeys,ze=Re.loadedKeys,ot=Re.loadingKeys,It=Re.checkedKeys,Mt=Re.halfCheckedKeys,jt=Re.dragOverNodeKey,Dt=Re.dropPosition,Ht=Re.keyEntities;return{expandedKeys:Ze||[],selectedKeys:Be||[],loadedKeys:ze||[],loadingKeys:ot||[],checkedKeys:It||[],halfCheckedKeys:Mt||[],dragOverNodeKey:jt,dropPosition:Dt,keyEntities:Ht}},Ne.setExpandedKeys=function(Re){var Ze=Ne.state,Be=Ze.treeData,ze=Ze.fieldNames,ot=(0,Ee.oH)(Be,Re,ze);Ne.setUncontrolledState({expandedKeys:Re,flattenNodes:ot},!0)},Ne.onNodeExpand=function(Re,Ze){var Be=Ne.state.expandedKeys,ze=Ne.state,ot=ze.listChanging,It=ze.fieldNames,Mt=Ne.props,jt=Mt.onExpand,Dt=Mt.loadData,Ht=Ze.expanded,bt=Ze[It.key];if(!ot){var fn=Be.indexOf(bt),cn=!Ht;if((0,a.ZP)(Ht&&fn!==-1||!Ht&&fn===-1,"Expand state not sync with index check"),cn?Be=(0,Et.L0)(Be,bt):Be=(0,Et._5)(Be,bt),Ne.setExpandedKeys(Be),jt==null||jt(Be,{node:Ze,expanded:cn,nativeEvent:Re.nativeEvent}),cn&&Dt){var wt=Ne.onNodeLoad(Ze);wt&&wt.then(function(){var yn=(0,Ee.oH)(Ne.state.treeData,Be,It);Ne.setUncontrolledState({flattenNodes:yn})}).catch(function(){var yn=Ne.state.expandedKeys,vn=(0,Et._5)(yn,bt);Ne.setExpandedKeys(vn)})}}},Ne.onListChangeStart=function(){Ne.setUncontrolledState({listChanging:!0})},Ne.onListChangeEnd=function(){setTimeout(function(){Ne.setUncontrolledState({listChanging:!1})})},Ne.onActiveChange=function(Re){var Ze=Ne.state.activeKey,Be=Ne.props.onActiveChange;Ze!==Re&&(Ne.setState({activeKey:Re}),Re!==null&&Ne.scrollTo({key:Re}),Be==null||Be(Re))},Ne.getActiveItem=function(){var Re=Ne.state,Ze=Re.activeKey,Be=Re.flattenNodes;return Ze===null?null:Be.find(function(ze){var ot=ze.key;return ot===Ze})||null},Ne.offsetActiveKey=function(Re){var Ze=Ne.state,Be=Ze.flattenNodes,ze=Ze.activeKey,ot=Be.findIndex(function(jt){var Dt=jt.key;return Dt===ze});ot===-1&&Re<0&&(ot=Be.length),ot=(ot+Re+Be.length)%Be.length;var It=Be[ot];if(It){var Mt=It.key;Ne.onActiveChange(Mt)}else Ne.onActiveChange(null)},Ne.onKeyDown=function(Re){var Ze=Ne.state,Be=Ze.activeKey,ze=Ze.expandedKeys,ot=Ze.checkedKeys,It=Ze.fieldNames,Mt=Ne.props,jt=Mt.onKeyDown,Dt=Mt.checkable,Ht=Mt.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(),cn=bt.data.isLeaf===!1||!!(bt.data[It.children]||[]).length,wt=(0,Ee.F)((0,pe.Z)((0,pe.Z)({},(0,Ee.H8)(Be,fn)),{},{data:bt.data,active:!0}));switch(Re.which){case oe.Z.LEFT:{cn&&ze.includes(Be)?Ne.onNodeExpand({},wt):bt.parent&&Ne.onActiveChange(bt.parent.key),Re.preventDefault();break}case oe.Z.RIGHT:{cn&&!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:{Dt&&!wt.disabled&&wt.checkable!==!1&&!wt.disableCheckbox?Ne.onNodeCheck({},wt,!ot.includes(Be)):!Dt&&Ht&&!wt.disabled&&wt.selectable!==!1&&Ne.onNodeSelect({},wt);break}}}jt==null||jt(Re)},Ne.setUncontrolledState=function(Re){var Ze=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,It={};Object.keys(Re).forEach(function(Mt){if(Mt in Ne.props){ot=!1;return}ze=!0,It[Mt]=Re[Mt]}),ze&&(!Ze||ot)&&Ne.setState((0,pe.Z)((0,pe.Z)({},It),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 et=this.props.activeKey;et!==void 0&&et!==this.state.activeKey&&(this.setState({activeKey:et}),et!==null&&this.scrollTo({key:et}))}},{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 et,xt=this.state,Ie=xt.focused,Re=xt.flattenNodes,Ze=xt.keyEntities,Be=xt.draggingNodeKey,ze=xt.activeKey,ot=xt.dropLevelOffset,It=xt.dropContainerKey,Mt=xt.dropTargetKey,jt=xt.dropPosition,Dt=xt.dragOverNodeKey,Ht=xt.indent,bt=this.props,fn=bt.prefixCls,cn=bt.className,wt=bt.style,yn=bt.showLine,vn=bt.focusable,zn=bt.tabIndex,wn=zn===void 0?0:zn,Wn=bt.selectable,qn=bt.showIcon,Kn=bt.icon,Vn=bt.switcherIcon,vr=bt.draggable,lr=bt.checkable,sn=bt.checkStrictly,Yn=bt.disabled,ir=bt.motion,Zn=bt.loadData,ar=bt.filterTreeNode,Dr=bt.height,Mr=bt.itemHeight,Er=bt.virtual,Br=bt.titleRender,sr=bt.dropIndicatorRender,Kr=bt.onContextMenu,Ut=bt.onScroll,ue=bt.direction,ve=bt.rootClassName,Pe=bt.rootStyle,xe=(0,ne.Z)(this.props,{aria:!0,data:!0}),ke;return vr&&((0,be.Z)(vr)==="object"?ke=vr:typeof vr=="function"?ke={nodeDraggable:vr}:ke={}),y.createElement(E.k.Provider,{value:{prefixCls:fn,selectable:Wn,showIcon:qn,icon:Kn,switcherIcon:Vn,draggable:ke,draggingNodeKey:Be,checkable:lr,checkStrictly:sn,disabled:Yn,keyEntities:Ze,dropLevelOffset:ot,dropContainerKey:It,dropTargetKey:Mt,dropPosition:jt,dragOverNodeKey:Dt,indent:Ht,direction:ue,dropIndicatorRender:sr,loadData:Zn,filterTreeNode:ar,titleRender:Br,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:he()(fn,cn,ve,(et={},(0,ge.Z)(et,"".concat(fn,"-show-line"),yn),(0,ge.Z)(et,"".concat(fn,"-focused"),Ie),(0,ge.Z)(et,"".concat(fn,"-active-focused"),ze!==null),et)),style:Pe},y.createElement(zt,(0,ee.Z)({ref:this.listRef,prefixCls:fn,style:wt,data:Re,disabled:Yn,selectable:Wn,checkable:!!lr,motion:ir,dragging:Be!==null,height:Dr,itemHeight:Mr,virtual:Er,focusable:vn,focused:Ie,tabIndex:wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Kr,onScroll:Ut},this.getTreeNodeRequiredProps(),xe))))}}],[{key:"getDerivedStateFromProps",value:function(et,xt){var Ie=xt.prevProps,Re={prevProps:et};function Ze(vn){return!Ie&&vn in et||Ie&&Ie[vn]!==et[vn]}var Be,ze=xt.fieldNames;if(Ze("fieldNames")&&(ze=(0,Ee.w$)(et.fieldNames),Re.fieldNames=ze),Ze("treeData")?Be=et.treeData:Ze("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Be=(0,Ee.zn)(et.children)),Be){Re.treeData=Be;var ot=(0,Ee.I8)(Be,{fieldNames:ze});Re.keyEntities=(0,pe.Z)((0,ge.Z)({},We,Pt),ot.keyEntities)}var It=Re.keyEntities||xt.keyEntities;if(Ze("expandedKeys")||Ie&&Ze("autoExpandParent"))Re.expandedKeys=et.autoExpandParent||!Ie&&et.defaultExpandParent?(0,Et.r7)(et.expandedKeys,It):et.expandedKeys;else if(!Ie&&et.defaultExpandAll){var Mt=(0,pe.Z)({},It);delete Mt[We],Re.expandedKeys=Object.keys(Mt).map(function(vn){return Mt[vn].key})}else!Ie&&et.defaultExpandedKeys&&(Re.expandedKeys=et.autoExpandParent||et.defaultExpandParent?(0,Et.r7)(et.defaultExpandedKeys,It):et.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(et.selectable&&(Ze("selectedKeys")?Re.selectedKeys=(0,Et.BT)(et.selectedKeys,et):!Ie&&et.defaultSelectedKeys&&(Re.selectedKeys=(0,Et.BT)(et.defaultSelectedKeys,et))),et.checkable){var Dt;if(Ze("checkedKeys")?Dt=(0,Et.E6)(et.checkedKeys)||{}:!Ie&&et.defaultCheckedKeys?Dt=(0,Et.E6)(et.defaultCheckedKeys)||{}:Be&&(Dt=(0,Et.E6)(et.checkedKeys)||{checkedKeys:xt.checkedKeys,halfCheckedKeys:xt.halfCheckedKeys}),Dt){var Ht=Dt,bt=Ht.checkedKeys,fn=bt===void 0?[]:bt,cn=Ht.halfCheckedKeys,wt=cn===void 0?[]:cn;if(!et.checkStrictly){var yn=(0,an.S)(fn,!0,It);fn=yn.checkedKeys,wt=yn.halfCheckedKeys}Re.checkedKeys=fn,Re.halfCheckedKeys=wt}}return Ze("loadedKeys")&&(Re.loadedKeys=et.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=ye.Z;var on=Lt,$t=on},35654:function(mt,Ke,te){"use strict";te.d(Ke,{BT:function(){return y},E6:function(){return x},L0:function(){return me},OM:function(){return a},_5:function(){return le},r7:function(){return z},wA:function(){return he},yx:function(){return ae}});var ee=te(77654),ge=te(43749),be=te(48736),pe=te(59301),Se=te(39417),fe=te(67841),ie=te(71430),de=null;function le(re,se){if(!re)return[];var ce=re.slice(),_e=ce.indexOf(se);return _e>=0&&ce.splice(_e,1),ce}function me(re,se){var ce=(re||[]).slice();return ce.indexOf(se)===-1&&ce.push(se),ce}function ae(re){return re.split("-")}function he(re,se){var ce=[],_e=(0,fe.Z)(se,re);function ye(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(Ee){var je=Ee.key,Le=Ee.children;ce.push(je),ye(Le)})}return ye(_e.children),ce}function oe(re){if(re.parent){var se=ae(re.pos);return Number(se[se.length-1])===re.parent.children.length-1}return!1}function ne(re){var se=ae(re.pos);return Number(se[se.length-1])===0}function a(re,se,ce,_e,ye,De,Ee,je,Le,ht){var Ye,vt=re.clientX,we=re.clientY,Fe=re.target.getBoundingClientRect(),He=Fe.top,at=Fe.height,We=(ht==="rtl"?-1:1)*(((ye==null?void 0:ye.x)||0)-vt),pt=(We-12)/_e,Pt=(0,fe.Z)(je,ce.props.eventKey);if(we<He+at/2){var At=Ee.findIndex(function($t){return $t.key===Pt.key}),Bt=At<=0?0:At-1,rt=Ee[Bt].key;Pt=(0,fe.Z)(je,rt)}var Xe=Pt.key,Ct=Pt,zt=Pt.key,Et=0,an=0;if(!Le.includes(Xe))for(var $e=0;$e<pt&&oe(Pt);$e+=1)Pt=Pt.parent,an+=1;var yt=se.props.data,Lt=Pt.node,on=!0;return ne(Pt)&&Pt.level===0&&we<He+at/2&&De({dragNode:yt,dropNode:Lt,dropPosition:-1})&&Pt.key===ce.props.eventKey?Et=-1:(Ct.children||[]).length&&Le.includes(zt)?De({dragNode:yt,dropNode:Lt,dropPosition:0})?Et=0:on=!1:an===0?pt>-1.5?De({dragNode:yt,dropNode:Lt,dropPosition:1})?Et=1:on=!1:De({dragNode:yt,dropNode:Lt,dropPosition:0})?Et=0:De({dragNode:yt,dropNode:Lt,dropPosition:1})?Et=1:on=!1:De({dragNode:yt,dropNode:Lt,dropPosition:1})?Et=1:on=!1,{dropPosition:Et,dropLevelOffset:an,dropTargetKey:Pt.key,dropTargetPos:Pt.pos,dragOverNodeKey:zt,dropContainerKey:Et===0?null:((Ye=Pt.parent)===null||Ye===void 0?void 0:Ye.key)||null,dropAllowed:on}}function y(re,se){if(re){var ce=se.multiple;return ce?re.slice():re.length?[re[0]]:re}}var E=function(se){return se};function b(re,se){if(!re)return[];var ce=se||{},_e=ce.processProps,ye=_e===void 0?E:_e,De=Array.isArray(re)?re:[re];return De.map(function(Ee){var je=Ee.children,Le=_objectWithoutProperties(Ee,de),ht=b(je,se);return React.createElement(TreeNode,_extends({key:Le.key},ye(Le)),ht)})}function x(re){if(!re)return null;var se;if(Array.isArray(re))se={checkedKeys:re,halfCheckedKeys:void 0};else if((0,ge.Z)(re)==="object")se={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 se}function z(re,se){var ce=new Set;function _e(ye){if(!ce.has(ye)){var De=(0,fe.Z)(se,ye);if(De){ce.add(ye);var Ee=De.parent,je=De.node;je.disabled||Ee&&_e(Ee.key)}}}return(re||[]).forEach(function(ye){_e(ye)}),(0,ee.Z)(ce)}},90782:function(mt,Ke,te){"use strict";te.d(Ke,{S:function(){return ie}});var ee=te(48736),ge=te(67841);function be(de,le){var me=new Set;return de.forEach(function(ae){le.has(ae)||me.add(ae)}),me}function pe(de){var le=de||{},me=le.disabled,ae=le.disableCheckbox,he=le.checkable;return!!(me||ae)||he===!1}function Se(de,le,me,ae){for(var he=new Set(de),oe=new Set,ne=0;ne<=me;ne+=1){var a=le.get(ne)||new Set;a.forEach(function(x){var z=x.key,re=x.node,se=x.children,ce=se===void 0?[]:se;he.has(z)&&!ae(re)&&ce.filter(function(_e){return!ae(_e.node)}).forEach(function(_e){he.add(_e.key)})})}for(var y=new Set,E=me;E>=0;E-=1){var b=le.get(E)||new Set;b.forEach(function(x){var z=x.parent,re=x.node;if(!(ae(re)||!x.parent||y.has(x.parent.key))){if(ae(x.parent.node)){y.add(z.key);return}var se=!0,ce=!1;(z.children||[]).filter(function(_e){return!ae(_e.node)}).forEach(function(_e){var ye=_e.key,De=he.has(ye);se&&!De&&(se=!1),!ce&&(De||oe.has(ye))&&(ce=!0)}),se&&he.add(z.key),ce&&oe.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(be(oe,he))}}function fe(de,le,me,ae,he){for(var oe=new Set(de),ne=new Set(le),a=0;a<=ae;a+=1){var y=me.get(a)||new Set;y.forEach(function(z){var re=z.key,se=z.node,ce=z.children,_e=ce===void 0?[]:ce;!oe.has(re)&&!ne.has(re)&&!he(se)&&_e.filter(function(ye){return!he(ye.node)}).forEach(function(ye){oe.delete(ye.key)})})}ne=new Set;for(var E=new Set,b=ae;b>=0;b-=1){var x=me.get(b)||new Set;x.forEach(function(z){var re=z.parent,se=z.node;if(!(he(se)||!z.parent||E.has(z.parent.key))){if(he(z.parent.node)){E.add(re.key);return}var ce=!0,_e=!1;(re.children||[]).filter(function(ye){return!he(ye.node)}).forEach(function(ye){var De=ye.key,Ee=oe.has(De);ce&&!Ee&&(ce=!1),!_e&&(Ee||ne.has(De))&&(_e=!0)}),ce||oe.delete(re.key),_e&&ne.add(re.key),E.add(re.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(be(ne,oe))}}function ie(de,le,me,ae){var he=[],oe;ae?oe=ae:oe=pe;var ne=new Set(de.filter(function(b){var x=!!(0,ge.Z)(me,b);return x||he.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,ee.ZP)(!he.length,"Tree missing follow keys: ".concat(he.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return le===!0?E=Se(ne,a,y,oe):E=fe(ne,le.halfCheckedKeys,a,y,oe),E}},67841:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ee}});function ee(ge,be){return ge[be]}},71430:function(mt,Ke,te){"use strict";te.d(Ke,{F:function(){return z},H8:function(){return x},I8:function(){return b},km:function(){return he},oH:function(){return y},w$:function(){return oe},zn:function(){return a}});var ee=te(43749),ge=te(77654),be=te(85899),pe=te(42244),Se=te(11592),fe=te(2738),ie=te(48736),de=te(67841),le=["children"];function me(re,se){return"".concat(re,"-").concat(se)}function ae(re){return re&&re.type&&re.type.isTreeNode}function he(re,se){return re!=null?re:se}function oe(re){var se=re||{},ce=se.title,_e=se._title,ye=se.key,De=se.children,Ee=ce||"title";return{title:Ee,_title:_e||[Ee],key:ye||"key",children:De||"children"}}function ne(re,se){var ce=new Map;function _e(ye){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ye||[]).forEach(function(Ee){var je=Ee[se.key],Le=Ee[se.children];warning(je!=null,"Tree node must have a certain key: [".concat(De).concat(je,"]"));var ht=String(je);warning(!ce.has(ht)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(ht)),ce.set(ht,!0),_e(Le,"".concat(De).concat(ht," > "))})}_e(re)}function a(re){function se(ce){var _e=(0,Se.Z)(ce);return _e.map(function(ye){if(!ae(ye))return(0,ie.ZP)(!ye,"Tree/TreeNode can only accept TreeNode as children."),null;var De=ye.key,Ee=ye.props,je=Ee.children,Le=(0,pe.Z)(Ee,le),ht=(0,be.Z)({key:De},Le),Ye=se(je);return Ye.length&&(ht.children=Ye),ht}).filter(function(ye){return ye})}return se(re)}function y(re,se,ce){var _e=oe(ce),ye=_e._title,De=_e.key,Ee=_e.children,je=new Set(se===!0?[]:se),Le=[];function ht(Ye){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(we,Fe){for(var He=me(vt?vt.pos:"0",Fe),at=he(we[De],He),We,pt=0;pt<ye.length;pt+=1){var Pt=ye[pt];if(we[Pt]!==void 0){We=we[Pt];break}}var At=(0,be.Z)((0,be.Z)({},(0,fe.Z)(we,[].concat((0,ge.Z)(ye),[De,Ee]))),{},{title:We,key:at,parent:vt,pos:He,children:null,data:we,isStart:[].concat((0,ge.Z)(vt?vt.isStart:[]),[Fe===0]),isEnd:[].concat((0,ge.Z)(vt?vt.isEnd:[]),[Fe===Ye.length-1])});return Le.push(At),se===!0||je.has(at)?At.children=ht(we[Ee]||[],At):At.children=[],At})}return ht(re),Le}function E(re,se,ce){var _e={};(0,ee.Z)(ce)==="object"?_e=ce:_e={externalGetKey:ce},_e=_e||{};var ye=_e,De=ye.childrenPropName,Ee=ye.externalGetKey,je=ye.fieldNames,Le=oe(je),ht=Le.key,Ye=Le.children,vt=De||Ye,we;Ee?typeof Ee=="string"?we=function(at){return at[Ee]}:typeof Ee=="function"&&(we=function(at){return Ee(at)}):we=function(at,We){return he(at[ht],We)};function Fe(He,at,We,pt){var Pt=He?He[vt]:re,At=He?me(We.pos,at):"0",Bt=He?[].concat((0,ge.Z)(pt),[He]):[];if(He){var rt=we(He,At),Xe={node:He,index:at,pos:At,key:rt,parentPos:We.node?We.pos:null,level:We.level+1,nodes:Bt};se(Xe)}Pt&&Pt.forEach(function(Ct,zt){Fe(Ct,zt,{node:He,pos:At,level:We?We.level+1:-1},Bt)})}Fe(null)}function b(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=se.initWrapper,_e=se.processEntity,ye=se.onProcessFinished,De=se.externalGetKey,Ee=se.childrenPropName,je=se.fieldNames,Le=arguments.length>2?arguments[2]:void 0,ht=De||Le,Ye={},vt={},we={posEntities:Ye,keyEntities:vt};return ce&&(we=ce(we)||we),E(re,function(Fe){var He=Fe.node,at=Fe.index,We=Fe.pos,pt=Fe.key,Pt=Fe.parentPos,At=Fe.level,Bt=Fe.nodes,rt={node:He,nodes:Bt,index:at,key:pt,pos:We,level:At},Xe=he(pt,We);Ye[We]=rt,vt[Xe]=rt,rt.parent=Ye[Pt],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),_e&&_e(rt,we)},{externalGetKey:ht,childrenPropName:Ee,fieldNames:je}),ye&&ye(we),we}function x(re,se){var ce=se.expandedKeys,_e=se.selectedKeys,ye=se.loadedKeys,De=se.loadingKeys,Ee=se.checkedKeys,je=se.halfCheckedKeys,Le=se.dragOverNodeKey,ht=se.dropPosition,Ye=se.keyEntities,vt=(0,de.Z)(Ye,re),we={eventKey:re,expanded:ce.indexOf(re)!==-1,selected:_e.indexOf(re)!==-1,loaded:ye.indexOf(re)!==-1,loading:De.indexOf(re)!==-1,checked:Ee.indexOf(re)!==-1,halfChecked:je.indexOf(re)!==-1,pos:String(vt?vt.pos:""),dragOver:Le===re&&ht===0,dragOverGapTop:Le===re&&ht===-1,dragOverGapBottom:Le===re&&ht===1};return we}function z(re){var se=re.data,ce=re.expanded,_e=re.selected,ye=re.checked,De=re.loaded,Ee=re.loading,je=re.halfChecked,Le=re.dragOver,ht=re.dragOverGapTop,Ye=re.dragOverGapBottom,vt=re.pos,we=re.active,Fe=re.eventKey,He=(0,be.Z)((0,be.Z)({},se),{},{expanded:ce,selected:_e,checked:ye,loaded:De,loading:Ee,halfChecked:je,dragOver:Le,dragOverGapTop:ht,dragOverGapBottom:Ye,pos:vt,active:we,key:Fe});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(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ge}});var ee=te(4676);function ge(be,pe,Se,fe){var ie=ee.unstable_batchedUpdates?function(le){ee.unstable_batchedUpdates(Se,le)}:Se;return be!=null&&be.addEventListener&&be.addEventListener(pe,ie,fe),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(pe,ie,fe)}}}},55468:function(mt,Ke,te){"use strict";te.d(Ke,{g1:function(){return ae},os:function(){return oe}});var ee=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function pe(ne){return ne.nodeType===1?ne.ownerDocument.defaultView.getComputedStyle(ne,null):{}}function Se(ne,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ne.offsetHeight;if(a==="width")return ne.offsetWidth}return a in ge||(ge[a]=ee.test(a)),ge[a]?parseFloat(y)||0:y}function fe(ne,a){var y=arguments.length,E=pe(ne);return a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?E:Se(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"&&ee.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 pe(ne)}function de(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function le(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 ae(){var ne=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:a}}function he(){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)}}},24514:function(mt,Ke,te){"use strict";te.d(Ke,{G:function(){return pe}});var ee=te(47273),ge=function(fe){if((0,ee.Z)()&&window.document.documentElement){var ie=Array.isArray(fe)?fe:[fe],de=window.document.documentElement;return ie.some(function(le){return le in de.style})}return!1},be=function(fe,ie){if(!ge(fe))return!1;var de=document.createElement("div"),le=de.style[fe];return de.style[fe]=ie,de.style[fe]!==le};function pe(Se,fe){return!Array.isArray(Se)&&fe!==void 0?be(Se,fe):ge(Se)}},7062:function(mt,Ke,te){var ee=te(19637),ge=te(97573),be=[te(96627)];mt.exports=ee.createStore(ge,be)},96627:function(mt,Ke,te){mt.exports=ee;function ee(){return te(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(mt){return mt<10?"0"+mt:mt}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(mt){return rx_escapable.lastIndex=0,rx_escapable.test(mt)?'"'+mt.replace(rx_escapable,function(Ke){var te=meta[Ke];return typeof te=="string"?te:"\\u"+("0000"+Ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+mt+'"'}function str(mt,Ke){var te,ee,ge,be,pe=gap,Se,fe=Ke[mt];switch(fe&&typeof fe=="object"&&typeof fe.toJSON=="function"&&(fe=fe.toJSON(mt)),typeof rep=="function"&&(fe=rep.call(Ke,mt,fe)),typeof fe){case"string":return quote(fe);case"number":return isFinite(fe)?String(fe):"null";case"boolean":case"null":return String(fe);case"object":if(!fe)return"null";if(gap+=indent,Se=[],Object.prototype.toString.apply(fe)==="[object Array]"){for(be=fe.length,te=0;te<be;te+=1)Se[te]=str(te,fe)||"null";return ge=Se.length===0?"[]":gap?`[
`+gap+Se.join(`,
`+gap)+`
`+pe+"]":"["+Se.join(",")+"]",gap=pe,ge}if(rep&&typeof rep=="object")for(be=rep.length,te=0;te<be;te+=1)typeof rep[te]=="string"&&(ee=rep[te],ge=str(ee,fe),ge&&Se.push(quote(ee)+(gap?": ":":")+ge));else for(ee in fe)Object.prototype.hasOwnProperty.call(fe,ee)&&(ge=str(ee,fe),ge&&Se.push(quote(ee)+(gap?": ":":")+ge));return ge=Se.length===0?"{}":gap?`{
`+gap+Se.join(`,
`+gap)+`
`+pe+"}":"{"+Se.join(",")+"}",gap=pe,ge}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(mt,Ke,te){var ee;if(gap="",indent="",typeof te=="number")for(ee=0;ee<te;ee+=1)indent+=" ";else typeof te=="string"&&(indent=te);if(rep=Ke,Ke&&typeof Ke!="function"&&(typeof Ke!="object"||typeof Ke.length!="number"))throw new Error("JSON.stringify");return str("",{"":mt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(mt,Ke){var te,ee,ge=mt[Ke];if(ge&&typeof ge=="object")for(te in ge)Object.prototype.hasOwnProperty.call(ge,te)&&(ee=walk(ge,te),ee!==void 0?ge[te]=ee:delete ge[te]);return reviver.call(mt,Ke,ge)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(mt){return"\\u"+("0000"+mt.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(mt,Ke,te){var ee=te(67039),ge=ee.slice,be=ee.pluck,pe=ee.each,Se=ee.bind,fe=ee.create,ie=ee.isList,de=ee.isFunction,le=ee.isObject;mt.exports={createStore:he};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 he.apply(this,arguments)},addPlugin:function(oe){this._addPlugin(oe)},namespace:function(oe){return he(this.storage,this.plugins,oe)}};function ae(){var oe=typeof console=="undefined"?null:console;if(oe){var ne=oe.warn?oe.warn:oe.log;ne.apply(oe,arguments)}}function he(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 se="__storejs__test__";re.write(se,se);var ce=re.read(se)===se;return re.remove(se),ce}catch(_e){return!1}},_assignPluginFnProp:function(re,se){var ce=this[se];this[se]=function(){var ye=ge(arguments,0),De=this;function Ee(){if(ce)return pe(arguments,function(Le,ht){ye[ht]=Le}),ce.apply(De,ye)}var je=[Ee].concat(ye);return re.apply(De,je)}},_serialize:function(re){return JSON.stringify(re)},_deserialize:function(re,se){if(!re)return se;var ce="";try{ce=JSON.parse(re)}catch(_e){ce=re}return ce!==void 0?ce:se},_addStorage:function(re){this.enabled||this._testStorage(re)&&(this.storage=re,this.enabled=!0)},_addPlugin:function(re){var se=this;if(ie(re)){pe(re,function(ye){se._addPlugin(ye)});return}var ce=be(this.plugins,function(ye){return re===ye});if(!ce){if(this.plugins.push(re),!de(re))throw new Error("Plugins must be function values that return objects");var _e=re.call(this);if(!le(_e))throw new Error("Plugins must return an object of function properties");pe(_e,function(ye,De){if(!de(ye))throw new Error("Bad plugin property: "+De+" from plugin "+re.name+". Plugins should only return functions.");se._assignPluginFnProp(ye,De)})}},addStorage:function(re){ae("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(re)}},z=fe(x,me,{plugins:[]});return z.raw={},pe(z,function(re,se){de(re)&&(z.raw[se]=Se(z,re))}),pe(oe,function(re){z._addStorage(re)}),pe(ne,function(re){z._addPlugin(re)}),z}},67039:function(mt,Ke,te){var ee=Se(),ge=fe(),be=ie(),pe=typeof window!="undefined"?window:te.g;mt.exports={assign:ee,create:ge,trim:be,bind:de,slice:le,each:me,map:ae,pluck:he,isList:oe,isFunction:ne,isObject:a,Global:pe};function Se(){return Object.assign?Object.assign:function(E,b,x,z){for(var re=1;re<arguments.length;re++)me(Object(arguments[re]),function(se,ce){E[ce]=se});return E}}function fe(){if(Object.create)return function(b,x,z,re){var se=le(arguments,1);return ee.apply(this,[Object.create(b)].concat(se))};{let E=function(){};var y=E;return function(x,z,re,se){var ce=le(arguments,1);return E.prototype=x,ee.apply(this,[new E].concat(ce))}}}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 de(y,E){return function(){return E.apply(y,Array.prototype.slice.call(arguments,0))}}function le(y,E){return Array.prototype.slice.call(y,E||0)}function me(y,E){he(y,function(b,x){return E(b,x),!1})}function ae(y,E){var b=oe(y)?[]:{};return he(y,function(x,z){return b[z]=E(x,z),!1}),b}function he(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(mt,Ke,te){mt.exports=[te(52496),te(16436),te(76673),te(35701),te(65578),te(65300)]},35701:function(mt,Ke,te){var ee=te(67039),ge=ee.Global,be=ee.trim;mt.exports={name:"cookieStorage",read:Se,write:ie,each:fe,remove:de,clearAll:le};var pe=ge.document;function Se(ae){if(!ae||!me(ae))return null;var he="(?:^|.*;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(pe.cookie.replace(new RegExp(he),"$1"))}function fe(ae){for(var he=pe.cookie.split(/; ?/g),oe=he.length-1;oe>=0;oe--)if(be(he[oe])){var ne=he[oe].split("="),a=unescape(ne[0]),y=unescape(ne[1]);ae(y,a)}}function ie(ae,he){ae&&(pe.cookie=escape(ae)+"="+escape(he)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function de(ae){!ae||!me(ae)||(pe.cookie=escape(ae)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){fe(function(ae,he){de(he)})}function me(ae){return new RegExp("(?:^|;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(pe.cookie)}},52496:function(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"localStorage",read:pe,write:Se,each:fe,remove:ie,clearAll:de};function be(){return ge.localStorage}function pe(le){return be().getItem(le)}function Se(le,me){return be().setItem(le,me)}function fe(le){for(var me=be().length-1;me>=0;me--){var ae=be().key(me);le(pe(ae),ae)}}function ie(le){return be().removeItem(le)}function de(){return be().clear()}},65300:function(mt){mt.exports={name:"memoryStorage",read:te,write:ee,each:ge,remove:be,clearAll:pe};var Ke={};function te(Se){return Ke[Se]}function ee(Se,fe){Ke[Se]=fe}function ge(Se){for(var fe in Ke)Ke.hasOwnProperty(fe)&&Se(Ke[fe],fe)}function be(Se){delete Ke[Se]}function pe(Se){Ke={}}},16436:function(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"oldFF-globalStorage",read:pe,write:Se,each:fe,remove:ie,clearAll:de};var be=ge.globalStorage;function pe(le){return be[le]}function Se(le,me){be[le]=me}function fe(le){for(var me=be.length-1;me>=0;me--){var ae=be.key(me);le(be[ae],ae)}}function ie(le){return be.removeItem(le)}function de(){fe(function(le,me){delete be[le]})}},76673:function(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"oldIE-userDataStorage",write:ie,read:de,each:le,remove:me,clearAll:ae};var be="storejs",pe=ge.document,Se=ne(),fe=(ge.navigator?ge.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(a,y){if(!fe){var E=oe(a);Se(function(b){b.setAttribute(E,y),b.save(be)})}}function de(a){if(!fe){var y=oe(a),E=null;return Se(function(b){E=b.getAttribute(y)}),E}}function le(a){Se(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);Se(function(E){E.removeAttribute(y),E.save(be)})}function ae(){Se(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 he=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function oe(a){return a.replace(/^\d/,"___$&").replace(he,"___")}function ne(){if(!pe||!pe.documentElement||!pe.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=pe.createElement("div"),y=pe.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(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"sessionStorage",read:pe,write:Se,each:fe,remove:ie,clearAll:de};function be(){return ge.sessionStorage}function pe(le){return be().getItem(le)}function Se(le,me){return be().setItem(le,me)}function fe(le){for(var me=be().length-1;me>=0;me--){var ae=be().key(me);le(pe(ae),ae)}}function ie(le){return be().removeItem(le)}function de(){return be().clear()}},82059:function(mt){var Ke=arguments[3],te=arguments[4],ee=arguments[5],ge=JSON.stringify;mt.exports=function(be,pe){for(var Se,fe=Object.keys(ee),ie=0,de=fe.length;ie<de;ie++){var le=fe[ie],me=ee[le].exports;if(me===be||me&&me.default===be){Se=le;break}}if(!Se){Se=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ae={},ie=0,de=fe.length;ie<de;ie++){var le=fe[ie];ae[le]=le}te[Se]=["function(require,module,exports){"+be+"(self); }",ae]}var he=Math.floor(Math.pow(16,8)*Math.random()).toString(16),oe={};oe[Se]=Se,te[he]=["function(require,module,exports){var f = require("+ge(Se)+");(f.default ? f.default : f)(self);}",oe];var ne={};a(he);function a(re){ne[re]=!0;for(var se in te[re][1]){var ce=te[re][1][se];ne[ce]||a(ce)}}var y="("+Ke+")({"+Object.keys(ne).map(function(re){return ge(re)+":["+te[re][0]+","+ge(te[re][1])+"]"}).join(",")+"},{},["+ge(he)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(pe&&pe.bare)return b;var x=E.createObjectURL(b),z=new Worker(x);return z.objectURL=x,z}},34376:function(mt){(function(Ke,te){if(1)mt.exports=te();else var ee,ge})(window,function(){return function(Ke){var te={};function ee(ge){if(te[ge])return te[ge].exports;var be=te[ge]={i:ge,l:!1,exports:{}};return Ke[ge].call(be.exports,be,be.exports,ee),be.l=!0,be.exports}return ee.m=Ke,ee.c=te,ee.d=function(ge,be,pe){ee.o(ge,be)||Object.defineProperty(ge,be,{enumerable:!0,get:pe})},ee.r=function(ge){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ge,"__esModule",{value:!0})},ee.t=function(ge,be){if(1&be&&(ge=ee(ge)),8&be||4&be&&typeof ge=="object"&&ge&&ge.__esModule)return ge;var pe=Object.create(null);if(ee.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:ge}),2&be&&typeof ge!="string")for(var Se in ge)ee.d(pe,Se,function(fe){return ge[fe]}.bind(null,Se));return pe},ee.n=function(ge){var be=ge&&ge.__esModule?function(){return ge.default}:function(){return ge};return ee.d(be,"a",be),be},ee.o=function(ge,be){return Object.prototype.hasOwnProperty.call(ge,be)},ee.p="",ee(ee.s=34)}([function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.forwardEvent=te.EventEmitter=void 0;var ge=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var pe=this;return this._event||(this._event=function(Se){return pe._listeners.push(Se),{dispose:function(){if(!pe._disposed){for(var fe=0;fe<pe._listeners.length;fe++)if(pe._listeners[fe]===Se)return void pe._listeners.splice(fe,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(pe,Se){for(var fe=[],ie=0;ie<this._listeners.length;ie++)fe.push(this._listeners[ie]);for(ie=0;ie<fe.length;ie++)fe[ie].call(void 0,pe,Se)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();te.EventEmitter=ge,te.forwardEvent=function(be,pe){return be(function(Se){return pe.fire(Se)})}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.IUnicodeService=te.IOptionsService=te.ILogService=te.IInstantiationService=te.IDirtyRowService=te.ICharsetService=te.ICoreService=te.ICoreMouseService=te.IBufferService=void 0;var ge=ee(14);te.IBufferService=ge.createDecorator("BufferService"),te.ICoreMouseService=ge.createDecorator("CoreMouseService"),te.ICoreService=ge.createDecorator("CoreService"),te.ICharsetService=ge.createDecorator("CharsetService"),te.IDirtyRowService=ge.createDecorator("DirtyRowService"),te.IInstantiationService=ge.createDecorator("InstantiationService"),te.ILogService=ge.createDecorator("LogService"),te.IOptionsService=ge.createDecorator("OptionsService"),te.IUnicodeService=ge.createDecorator("UnicodeService")},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.getDisposeArrayDisposable=te.disposeArray=te.Disposable=void 0;var ge=function(){function pe(){this._disposables=[],this._isDisposed=!1}return pe.prototype.dispose=function(){this._isDisposed=!0;for(var Se=0,fe=this._disposables;Se<fe.length;Se++)fe[Se].dispose();this._disposables.length=0},pe.prototype.register=function(Se){return this._disposables.push(Se),Se},pe.prototype.unregister=function(Se){var fe=this._disposables.indexOf(Se);fe!==-1&&this._disposables.splice(fe,1)},pe}();function be(pe){for(var Se=0,fe=pe;Se<fe.length;Se++)fe[Se].dispose();pe.length=0}te.Disposable=ge,te.disposeArray=be,te.getDisposeArrayDisposable=function(pe){return{dispose:function(){return be(pe)}}}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WHITESPACE_CELL_CODE=te.WHITESPACE_CELL_WIDTH=te.WHITESPACE_CELL_CHAR=te.NULL_CELL_CODE=te.NULL_CELL_WIDTH=te.NULL_CELL_CHAR=te.CHAR_DATA_CODE_INDEX=te.CHAR_DATA_WIDTH_INDEX=te.CHAR_DATA_CHAR_INDEX=te.CHAR_DATA_ATTR_INDEX=te.DEFAULT_ATTR=te.DEFAULT_COLOR=void 0,te.DEFAULT_COLOR=256,te.DEFAULT_ATTR=256|te.DEFAULT_COLOR<<9,te.CHAR_DATA_ATTR_INDEX=0,te.CHAR_DATA_CHAR_INDEX=1,te.CHAR_DATA_WIDTH_INDEX=2,te.CHAR_DATA_CODE_INDEX=3,te.NULL_CELL_CHAR="",te.NULL_CELL_WIDTH=1,te.NULL_CELL_CODE=0,te.WHITESPACE_CELL_CHAR=" ",te.WHITESPACE_CELL_WIDTH=1,te.WHITESPACE_CELL_CODE=32},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CellData=void 0;var pe=ee(8),Se=ee(3),fe=ee(6),ie=function(de){function le(){var me=de!==null&&de.apply(this,arguments)||this;return me.content=0,me.fg=0,me.bg=0,me.extended=new fe.ExtendedAttrs,me.combinedData="",me}return be(le,de),le.fromCharData=function(me){var ae=new le;return ae.setFromCharData(me),ae},le.prototype.isCombined=function(){return 2097152&this.content},le.prototype.getWidth=function(){return this.content>>22},le.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?pe.stringFromCodePoint(2097151&this.content):""},le.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},le.prototype.setFromCharData=function(me){this.fg=me[Se.CHAR_DATA_ATTR_INDEX],this.bg=0;var ae=!1;if(me[Se.CHAR_DATA_CHAR_INDEX].length>2)ae=!0;else if(me[Se.CHAR_DATA_CHAR_INDEX].length===2){var he=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=he&&he<=56319){var oe=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=oe&&oe<=57343?this.content=1024*(he-55296)+oe-56320+65536|me[Se.CHAR_DATA_WIDTH_INDEX]<<22:ae=!0}else ae=!0}else this.content=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|me[Se.CHAR_DATA_WIDTH_INDEX]<<22;ae&&(this.combinedData=me[Se.CHAR_DATA_CHAR_INDEX],this.content=2097152|me[Se.CHAR_DATA_WIDTH_INDEX]<<22)},le.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},le}(fe.AttributeData);te.CellData=ie},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ISoundService=te.ISelectionService=te.IRenderService=te.IMouseService=te.ICoreBrowserService=te.ICharSizeService=void 0;var ge=ee(14);te.ICharSizeService=ge.createDecorator("CharSizeService"),te.ICoreBrowserService=ge.createDecorator("CoreBrowserService"),te.IMouseService=ge.createDecorator("MouseService"),te.IRenderService=ge.createDecorator("RenderService"),te.ISelectionService=ge.createDecorator("SelectionService"),te.ISoundService=ge.createDecorator("SoundService")},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ExtendedAttrs=te.AttributeData=void 0;var ge=function(){function pe(){this.fg=0,this.bg=0,this.extended=new be}return pe.toColorRGB=function(Se){return[Se>>>16&255,Se>>>8&255,255&Se]},pe.fromColorRGB=function(Se){return(255&Se[0])<<16|(255&Se[1])<<8|255&Se[2]},pe.prototype.clone=function(){var Se=new pe;return Se.fg=this.fg,Se.bg=this.bg,Se.extended=this.extended.clone(),Se},pe.prototype.isInverse=function(){return 67108864&this.fg},pe.prototype.isBold=function(){return 134217728&this.fg},pe.prototype.isUnderline=function(){return 268435456&this.fg},pe.prototype.isBlink=function(){return 536870912&this.fg},pe.prototype.isInvisible=function(){return 1073741824&this.fg},pe.prototype.isItalic=function(){return 67108864&this.bg},pe.prototype.isDim=function(){return 134217728&this.bg},pe.prototype.getFgColorMode=function(){return 50331648&this.fg},pe.prototype.getBgColorMode=function(){return 50331648&this.bg},pe.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},pe.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},pe.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},pe.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},pe.prototype.isFgDefault=function(){return(50331648&this.fg)==0},pe.prototype.isBgDefault=function(){return(50331648&this.bg)==0},pe.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},pe.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},pe.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},pe.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},pe.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},pe.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()},pe.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},pe.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},pe.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},pe.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},pe.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},pe}();te.AttributeData=ge;var be=function(){function pe(Se,fe){Se===void 0&&(Se=0),fe===void 0&&(fe=-1),this.underlineStyle=Se,this.underlineColor=fe}return pe.prototype.clone=function(){return new pe(this.underlineStyle,this.underlineColor)},pe.prototype.isEmpty=function(){return this.underlineStyle===0},pe}();te.ExtendedAttrs=be},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.addDisposableDomListener=void 0,te.addDisposableDomListener=function(ge,be,pe,Se){ge.addEventListener(be,pe,Se);var fe=!1;return{dispose:function(){fe||(fe=!0,ge.removeEventListener(be,pe,Se))}}}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Utf8ToUtf32=te.StringToUtf32=te.utf32ToString=te.stringFromCodePoint=void 0,te.stringFromCodePoint=function(pe){return pe>65535?(pe-=65536,String.fromCharCode(55296+(pe>>10))+String.fromCharCode(pe%1024+56320)):String.fromCharCode(pe)},te.utf32ToString=function(pe,Se,fe){Se===void 0&&(Se=0),fe===void 0&&(fe=pe.length);for(var ie="",de=Se;de<fe;++de){var le=pe[de];le>65535?(le-=65536,ie+=String.fromCharCode(55296+(le>>10))+String.fromCharCode(le%1024+56320)):ie+=String.fromCharCode(le)}return ie};var ge=function(){function pe(){this._interim=0}return pe.prototype.clear=function(){this._interim=0},pe.prototype.decode=function(Se,fe){var ie=Se.length;if(!ie)return 0;var de=0,le=0;this._interim&&(56320<=(he=Se.charCodeAt(le++))&&he<=57343?fe[de++]=1024*(this._interim-55296)+he-56320+65536:(fe[de++]=this._interim,fe[de++]=he),this._interim=0);for(var me=le;me<ie;++me){var ae=Se.charCodeAt(me);if(55296<=ae&&ae<=56319){if(++me>=ie)return this._interim=ae,de;var he;56320<=(he=Se.charCodeAt(me))&&he<=57343?fe[de++]=1024*(ae-55296)+he-56320+65536:(fe[de++]=ae,fe[de++]=he)}else fe[de++]=ae}return de},pe}();te.StringToUtf32=ge;var be=function(){function pe(){this.interim=new Uint8Array(3)}return pe.prototype.clear=function(){this.interim.fill(0)},pe.prototype.decode=function(Se,fe){var ie=Se.length;if(!ie)return 0;var de,le,me,ae,he=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=Se[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:fe[he++]=y:x===3?y<2048||y>=55296&&y<=57343||(fe[he++]=y):y<65536||y>1114111||(fe[he++]=y)),this.interim.fill(0)}for(var re=ie-4,se=ne;se<ie;){for(;!(!(se<re)||128&(de=Se[se])||128&(le=Se[se+1])||128&(me=Se[se+2])||128&(ae=Se[se+3]));)fe[he++]=de,fe[he++]=le,fe[he++]=me,fe[he++]=ae,se+=4;if((de=Se[se++])<128)fe[he++]=de;else if((224&de)==192){if(se>=ie)return this.interim[0]=de,he;if((192&(le=Se[se++]))!=128){se--;continue}if((oe=(31&de)<<6|63&le)<128){se--;continue}fe[he++]=oe}else if((240&de)==224){if(se>=ie)return this.interim[0]=de,he;if((192&(le=Se[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=de,this.interim[1]=le,he;if((192&(me=Se[se++]))!=128){se--;continue}if((oe=(15&de)<<12|(63&le)<<6|63&me)<2048||oe>=55296&&oe<=57343)continue;fe[he++]=oe}else if((248&de)==240){if(se>=ie)return this.interim[0]=de,he;if((192&(le=Se[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=de,this.interim[1]=le,he;if((192&(me=Se[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=de,this.interim[1]=le,this.interim[2]=me,he;if((192&(ae=Se[se++]))!=128){se--;continue}if((oe=(7&de)<<18|(63&le)<<12|(63&me)<<6|63&ae)<65536||oe>1114111)continue;fe[he++]=oe}}return he},pe}();te.Utf8ToUtf32=be},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CHAR_ATLAS_CELL_SPACING=te.DIM_OPACITY=te.INVERTED_DEFAULT_COLOR=void 0,te.INVERTED_DEFAULT_COLOR=257,te.DIM_OPACITY=.5,te.CHAR_ATLAS_CELL_SPACING=1},function(Ke,te,ee){"use strict";var ge,be,pe,Se;function fe(de){var le=de.toString(16);return le.length<2?"0"+le:le}function ie(de,le){return de<le?(le+.05)/(de+.05):(de+.05)/(le+.05)}Object.defineProperty(te,"__esModule",{value:!0}),te.contrastRatio=te.toPaddedHex=te.rgba=te.rgb=te.css=te.color=te.channels=void 0,function(de){de.toCss=function(le,me,ae,he){return he!==void 0?"#"+fe(le)+fe(me)+fe(ae)+fe(he):"#"+fe(le)+fe(me)+fe(ae)},de.toRgba=function(le,me,ae,he){return he===void 0&&(he=255),(le<<24|me<<16|ae<<8|he)>>>0}}(ge=te.channels||(te.channels={})),(be=te.color||(te.color={})).blend=function(de,le){var me=(255&le.rgba)/255;if(me===1)return{css:le.css,rgba:le.rgba};var ae=le.rgba>>24&255,he=le.rgba>>16&255,oe=le.rgba>>8&255,ne=de.rgba>>24&255,a=de.rgba>>16&255,y=de.rgba>>8&255,E=ne+Math.round((ae-ne)*me),b=a+Math.round((he-a)*me),x=y+Math.round((oe-y)*me);return{css:ge.toCss(E,b,x),rgba:ge.toRgba(E,b,x)}},be.isOpaque=function(de){return(255&de.rgba)==255},be.ensureContrastRatio=function(de,le,me){var ae=Se.ensureContrastRatio(de.rgba,le.rgba,me);if(ae)return Se.toColor(ae>>24&255,ae>>16&255,ae>>8&255)},be.opaque=function(de){var le=(255|de.rgba)>>>0,me=Se.toChannels(le),ae=me[0],he=me[1],oe=me[2];return{css:ge.toCss(ae,he,oe),rgba:le}},be.opacity=function(de,le){var me=Math.round(255*le),ae=Se.toChannels(de.rgba),he=ae[0],oe=ae[1],ne=ae[2];return{css:ge.toCss(he,oe,ne,me),rgba:ge.toRgba(he,oe,ne,me)}},(te.css||(te.css={})).toColor=function(de){switch(de.length){case 7:return{css:de,rgba:(parseInt(de.slice(1),16)<<8|255)>>>0};case 9:return{css:de,rgba:parseInt(de.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(de){function le(me,ae,he){var oe=me/255,ne=ae/255,a=he/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))}de.relativeLuminance=function(me){return le(me>>16&255,me>>8&255,255&me)},de.relativeLuminance2=le}(pe=te.rgb||(te.rgb={})),function(de){function le(ae,he,oe){for(var ne=ae>>24&255,a=ae>>16&255,y=ae>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ie(pe.relativeLuminance2(E,x,b),pe.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(pe.relativeLuminance2(E,x,b),pe.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function me(ae,he,oe){for(var ne=ae>>24&255,a=ae>>16&255,y=ae>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ie(pe.relativeLuminance2(E,x,b),pe.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(pe.relativeLuminance2(E,x,b),pe.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}de.ensureContrastRatio=function(ae,he,oe){var ne=pe.relativeLuminance(ae>>8),a=pe.relativeLuminance(he>>8);if(ie(ne,a)<oe)return a<ne?le(ae,he,oe):me(ae,he,oe)},de.reduceLuminance=le,de.increaseLuminance=me,de.toChannels=function(ae){return[ae>>24&255,ae>>16&255,ae>>8&255,255&ae]},de.toColor=function(ae,he,oe){return{css:ge.toCss(ae,he,oe),rgba:ge.toRgba(ae,he,oe)}}}(Se=te.rgba||(te.rgba={})),te.toPaddedHex=fe,te.contrastRatio=ie},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.isLinux=te.isWindows=te.isIphone=te.isIpad=te.isMac=te.isSafari=te.isFirefox=void 0;var ge=typeof navigator=="undefined",be=ge?"node":navigator.userAgent,pe=ge?"node":navigator.platform;function Se(fe,ie){return fe.indexOf(ie)>=0}te.isFirefox=!!~be.indexOf("Firefox"),te.isSafari=/^((?!chrome|android).)*safari/i.test(be),te.isMac=Se(["Macintosh","MacIntel","MacPPC","Mac68K"],pe),te.isIpad=pe==="iPad",te.isIphone=pe==="iPhone",te.isWindows=Se(["Windows","Win16","Win32","WinCE"],pe),te.isLinux=pe.indexOf("Linux")>=0},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.C1=te.C0=void 0,function(ge){ge.NUL="\0",ge.SOH="",ge.STX="",ge.ETX="",ge.EOT="",ge.ENQ="",ge.ACK="",ge.BEL="\x07",ge.BS="\b",ge.HT=" ",ge.LF=`
`,ge.VT="\v",ge.FF="\f",ge.CR="\r",ge.SO="",ge.SI="",ge.DLE="",ge.DC1="",ge.DC2="",ge.DC3="",ge.DC4="",ge.NAK="",ge.SYN="",ge.ETB="",ge.CAN="",ge.EM="",ge.SUB="",ge.ESC="\x1B",ge.FS="",ge.GS="",ge.RS="",ge.US="",ge.SP=" ",ge.DEL="\x7F"}(te.C0||(te.C0={})),function(ge){ge.PAD="\x80",ge.HOP="\x81",ge.BPH="\x82",ge.NBH="\x83",ge.IND="\x84",ge.NEL="\x85",ge.SSA="\x86",ge.ESA="\x87",ge.HTS="\x88",ge.HTJ="\x89",ge.VTS="\x8A",ge.PLD="\x8B",ge.PLU="\x8C",ge.RI="\x8D",ge.SS2="\x8E",ge.SS3="\x8F",ge.DCS="\x90",ge.PU1="\x91",ge.PU2="\x92",ge.STS="\x93",ge.CCH="\x94",ge.MW="\x95",ge.SPA="\x96",ge.EPA="\x97",ge.SOS="\x98",ge.SGCI="\x99",ge.SCI="\x9A",ge.CSI="\x9B",ge.ST="\x9C",ge.OSC="\x9D",ge.PM="\x9E",ge.APC="\x9F"}(te.C1||(te.C1={}))},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseRenderLayer=void 0;var ge=ee(3),be=ee(9),pe=ee(25),Se=ee(6),fe=ee(28),ie=ee(10),de=ee(17),le=function(){function me(ae,he,oe,ne,a,y,E,b){this._container=ae,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-"+he+"-layer"),this._canvas.style.zIndex=oe.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return me.prototype.dispose=function(){var ae;de.removeElementFromParent(this._canvas),(ae=this._charAtlas)===null||ae===void 0||ae.dispose()},me.prototype._initCanvas=function(){this._ctx=fe.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(ae,he){},me.prototype.onSelectionChanged=function(ae,he,oe){oe===void 0&&(oe=!1)},me.prototype.setColors=function(ae){this._refreshCharAtlas(ae)},me.prototype._setTransparency=function(ae){if(ae!==this._alpha){var he=this._canvas;this._alpha=ae,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,he),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},me.prototype._refreshCharAtlas=function(ae){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=pe.acquireCharAtlas(this._optionsService.options,this._rendererId,ae,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},me.prototype.resize=function(ae){this._scaledCellWidth=ae.scaledCellWidth,this._scaledCellHeight=ae.scaledCellHeight,this._scaledCharWidth=ae.scaledCharWidth,this._scaledCharHeight=ae.scaledCharHeight,this._scaledCharLeft=ae.scaledCharLeft,this._scaledCharTop=ae.scaledCharTop,this._canvas.width=ae.scaledCanvasWidth,this._canvas.height=ae.scaledCanvasHeight,this._canvas.style.width=ae.canvasWidth+"px",this._canvas.style.height=ae.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},me.prototype._fillCells=function(ae,he,oe,ne){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight)},me.prototype._fillBottomLineAtCells=function(ae,he,oe){oe===void 0&&(oe=1),this._ctx.fillRect(ae*this._scaledCellWidth,(he+1)*this._scaledCellHeight-window.devicePixelRatio-1,oe*this._scaledCellWidth,window.devicePixelRatio)},me.prototype._fillLeftLineAtCell=function(ae,he,oe){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,window.devicePixelRatio*oe,this._scaledCellHeight)},me.prototype._strokeRectAtCell=function(ae,he,oe,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(ae*this._scaledCellWidth+window.devicePixelRatio/2,he*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(ae,he,oe,ne){this._alpha?this._ctx.clearRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight))},me.prototype._fillCharTrueColor=function(ae,he,oe){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(oe),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},me.prototype._drawChars=function(ae,he,oe){var ne,a,y=this._getContrastColor(ae);y||ae.isFgRGB()||ae.isBgRGB()?this._drawUncachedChars(ae,he,oe,y):(ae.isInverse()?(ne=ae.isBgDefault()?be.INVERTED_DEFAULT_COLOR:ae.getBgColor(),a=ae.isFgDefault()?be.INVERTED_DEFAULT_COLOR:ae.getFgColor()):(a=ae.isBgDefault()?ge.DEFAULT_COLOR:ae.getBgColor(),ne=ae.isFgDefault()?ge.DEFAULT_COLOR:ae.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=ae.getChars()||ge.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=ae.getCode()||ge.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!ae.isBold(),this._currentGlyphIdentifier.dim=!!ae.isDim(),this._currentGlyphIdentifier.italic=!!ae.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(ae,he,oe))},me.prototype._drawUncachedChars=function(ae,he,oe,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!ae.isBold(),!!ae.isItalic()),this._ctx.textBaseline="middle",ae.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(ae.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(ae.isBgRGB())this._ctx.fillStyle="rgb("+Se.AttributeData.toColorRGB(ae.getBgColor()).join(",")+")";else{var a=ae.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(ae.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(ae.isFgRGB())this._ctx.fillStyle="rgb("+Se.AttributeData.toColorRGB(ae.getFgColor()).join(",")+")";else{var y=ae.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(oe),ae.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},me.prototype._clipRow=function(ae){this._ctx.beginPath(),this._ctx.rect(0,ae*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},me.prototype._getFont=function(ae,he){return(he?"italic":"")+" "+(ae?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},me.prototype._getContrastColor=function(ae){if(this._optionsService.options.minimumContrastRatio!==1){var he=this._colors.contrastCache.getColor(ae.bg,ae.fg);if(he!==void 0)return he||void 0;var oe=ae.getFgColor(),ne=ae.getFgColorMode(),a=ae.getBgColor(),y=ae.getBgColorMode(),E=!!ae.isInverse(),b=!!ae.isInverse();if(E){var x=oe;oe=a,a=x;var z=ne;ne=y,y=z}var re=this._resolveBackgroundRgba(y,a,E),se=this._resolveForegroundRgba(ne,oe,E,b),ce=ie.rgba.ensureContrastRatio(re,se,this._optionsService.options.minimumContrastRatio);if(ce){var _e={css:ie.channels.toCss(ce>>24&255,ce>>16&255,ce>>8&255),rgba:ce};return this._colors.contrastCache.setColor(ae.bg,ae.fg,_e),_e}this._colors.contrastCache.setColor(ae.bg,ae.fg,null)}},me.prototype._resolveBackgroundRgba=function(ae,he,oe){switch(ae){case 16777216:case 33554432:return this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return oe?this._colors.foreground.rgba:this._colors.background.rgba}},me.prototype._resolveForegroundRgba=function(ae,he,oe,ne){switch(ae){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&he<8&&(he+=8),this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return oe?this._colors.background.rgba:this._colors.foreground.rgba}},me}();te.BaseRenderLayer=le},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createDecorator=te.getServiceDependencies=te.serviceRegistry=void 0;function ge(be,pe,Se){pe.di$target===pe?pe.di$dependencies.push({id:be,index:Se}):(pe.di$dependencies=[{id:be,index:Se}],pe.di$target=pe)}te.serviceRegistry=new Map,te.getServiceDependencies=function(be){return be.di$dependencies||[]},te.createDecorator=function(be){if(te.serviceRegistry.has(be))return te.serviceRegistry.get(be);var pe=function(Se,fe,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ge(pe,Se,ie)};return pe.toString=function(){return be},te.serviceRegistry.set(be,pe),pe}},function(Ke,te,ee){"use strict";function ge(be,pe,Se,fe){if(Se===void 0&&(Se=0),fe===void 0&&(fe=be.length),Se>=be.length)return be;Se=(be.length+Se)%be.length,fe=fe>=be.length?be.length:(be.length+fe)%be.length;for(var ie=Se;ie<fe;++ie)be[ie]=pe;return be}Object.defineProperty(te,"__esModule",{value:!0}),te.concat=te.fillFallback=te.fill=void 0,te.fill=function(be,pe,Se,fe){return be.fill?be.fill(pe,Se,fe):ge(be,pe,Se,fe)},te.fillFallback=ge,te.concat=function(be,pe){var Se=new be.constructor(be.length+pe.length);return Se.set(be),Se.set(pe,be.length),Se}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferLine=te.DEFAULT_ATTR_DATA=void 0;var ge=ee(8),be=ee(3),pe=ee(4),Se=ee(6);te.DEFAULT_ATTR_DATA=Object.freeze(new Se.AttributeData);var fe=function(){function ie(de,le,me){me===void 0&&(me=!1),this.isWrapped=me,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*de);for(var ae=le||pe.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),he=0;he<de;++he)this.setCell(he,ae);this.length=de}return ie.prototype.get=function(de){var le=this._data[3*de+0],me=2097151&le;return[this._data[3*de+1],2097152&le?this._combined[de]:me?ge.stringFromCodePoint(me):"",le>>22,2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):me]},ie.prototype.set=function(de,le){this._data[3*de+1]=le[be.CHAR_DATA_ATTR_INDEX],le[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[de]=le[1],this._data[3*de+0]=2097152|de|le[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*de+0]=le[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|le[be.CHAR_DATA_WIDTH_INDEX]<<22},ie.prototype.getWidth=function(de){return this._data[3*de+0]>>22},ie.prototype.hasWidth=function(de){return 12582912&this._data[3*de+0]},ie.prototype.getFg=function(de){return this._data[3*de+1]},ie.prototype.getBg=function(de){return this._data[3*de+2]},ie.prototype.hasContent=function(de){return 4194303&this._data[3*de+0]},ie.prototype.getCodePoint=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):2097151&le},ie.prototype.isCombined=function(de){return 2097152&this._data[3*de+0]},ie.prototype.getString=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de]:2097151&le?ge.stringFromCodePoint(2097151&le):""},ie.prototype.loadCell=function(de,le){var me=3*de;return le.content=this._data[me+0],le.fg=this._data[me+1],le.bg=this._data[me+2],2097152&le.content&&(le.combinedData=this._combined[de]),268435456&le.bg&&(le.extended=this._extendedAttrs[de]),le},ie.prototype.setCell=function(de,le){2097152&le.content&&(this._combined[de]=le.combinedData),268435456&le.bg&&(this._extendedAttrs[de]=le.extended),this._data[3*de+0]=le.content,this._data[3*de+1]=le.fg,this._data[3*de+2]=le.bg},ie.prototype.setCellFromCodePoint=function(de,le,me,ae,he,oe){268435456&he&&(this._extendedAttrs[de]=oe),this._data[3*de+0]=le|me<<22,this._data[3*de+1]=ae,this._data[3*de+2]=he},ie.prototype.addCodepointToCell=function(de,le){var me=this._data[3*de+0];2097152&me?this._combined[de]+=ge.stringFromCodePoint(le):(2097151&me?(this._combined[de]=ge.stringFromCodePoint(2097151&me)+ge.stringFromCodePoint(le),me&=-2097152,me|=2097152):me=le|1<<22,this._data[3*de+0]=me)},ie.prototype.insertCells=function(de,le,me,ae){if((de%=this.length)&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs),le<this.length-de){for(var he=new pe.CellData,oe=this.length-de-le-1;oe>=0;--oe)this.setCell(de+le+oe,this.loadCell(de+oe,he));for(oe=0;oe<le;++oe)this.setCell(de+oe,me)}else for(oe=de;oe<this.length;++oe)this.setCell(oe,me);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs)},ie.prototype.deleteCells=function(de,le,me,ae){if(de%=this.length,le<this.length-de){for(var he=new pe.CellData,oe=0;oe<this.length-de-le;++oe)this.setCell(de+oe,this.loadCell(de+le+oe,he));for(oe=this.length-le;oe<this.length;++oe)this.setCell(oe,me)}else for(oe=de;oe<this.length;++oe)this.setCell(oe,me);de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs),this.getWidth(de)!==0||this.hasContent(de)||this.setCellFromCodePoint(de,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs)},ie.prototype.replaceCells=function(de,le,me,ae){for(de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs),le<this.length&&this.getWidth(le-1)===2&&this.setCellFromCodePoint(le,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new Se.ExtendedAttrs);de<le&&de<this.length;)this.setCell(de++,me)},ie.prototype.resize=function(de,le){if(de!==this.length){if(de>this.length){var me=new Uint32Array(3*de);this.length&&(3*de<this._data.length?me.set(this._data.subarray(0,3*de)):me.set(this._data)),this._data=me;for(var ae=this.length;ae<de;++ae)this.setCell(ae,le)}else if(de){(me=new Uint32Array(3*de)).set(this._data.subarray(0,3*de)),this._data=me;var he=Object.keys(this._combined);for(ae=0;ae<he.length;ae++){var oe=parseInt(he[ae],10);oe>=de&&delete this._combined[oe]}}else this._data=new Uint32Array(0),this._combined={};this.length=de}},ie.prototype.fill=function(de){this._combined={},this._extendedAttrs={};for(var le=0;le<this.length;++le)this.setCell(le,de)},ie.prototype.copyFrom=function(de){for(var le in this.length!==de.length?this._data=new Uint32Array(de._data):this._data.set(de._data),this.length=de.length,this._combined={},de._combined)this._combined[le]=de._combined[le];for(var le in this._extendedAttrs={},de._extendedAttrs)this._extendedAttrs[le]=de._extendedAttrs[le];this.isWrapped=de.isWrapped},ie.prototype.clone=function(){var de=new ie(0);for(var le in de._data=new Uint32Array(this._data),de.length=this.length,this._combined)de._combined[le]=this._combined[le];for(var le in this._extendedAttrs)de._extendedAttrs[le]=this._extendedAttrs[le];return de.isWrapped=this.isWrapped,de},ie.prototype.getTrimmedLength=function(){for(var de=this.length-1;de>=0;--de)if(4194303&this._data[3*de+0])return de+(this._data[3*de+0]>>22);return 0},ie.prototype.copyCellsFrom=function(de,le,me,ae,he){var oe=de._data;if(he)for(var ne=ae-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(le+ne)+a];else for(ne=0;ne<ae;ne++)for(a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(le+ne)+a];var y=Object.keys(de._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=le&&(this._combined[E-le+me]=de._combined[E])}},ie.prototype.translateToString=function(de,le,me){de===void 0&&(de=!1),le===void 0&&(le=0),me===void 0&&(me=this.length),de&&(me=Math.min(me,this.getTrimmedLength()));for(var ae="";le<me;){var he=this._data[3*le+0],oe=2097151&he;ae+=2097152&he?this._combined[le]:oe?ge.stringFromCodePoint(oe):be.WHITESPACE_CELL_CHAR,le+=he>>22||1}return ae},ie}();te.BufferLine=fe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeElementFromParent=void 0,te.removeElementFromParent=function(){for(var ge,be=[],pe=0;pe<arguments.length;pe++)be[pe]=arguments[pe];for(var Se=0,fe=be;Se<fe.length;Se++){var ie=fe[Se];(ge=ie==null?void 0:ie.parentElement)===null||ge===void 0||ge.removeChild(ie)}}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.tooMuchOutput=te.promptLabel=void 0,te.promptLabel="Terminal input",te.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(se,ce){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,ye){_e.__proto__=ye}||function(_e,ye){for(var De in ye)ye.hasOwnProperty(De)&&(_e[De]=ye[De])})(se,ce)},function(se,ce){function _e(){this.constructor=se}ge(se,ce),se.prototype=ce===null?Object.create(ce):(_e.prototype=ce.prototype,new _e)});Object.defineProperty(te,"__esModule",{value:!0}),te.InputHandler=te.WindowsOptionsReportType=void 0;var pe,Se=ee(12),fe=ee(20),ie=ee(39),de=ee(2),le=ee(15),me=ee(8),ae=ee(16),he=ee(0),oe=ee(3),ne=ee(4),a=ee(6),y=ee(22),E=ee(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(se,ce){if(se>24)return ce.setWinLines||!1;switch(se){case 1:return!!ce.restoreWin;case 2:return!!ce.minimizeWin;case 3:return!!ce.setWinPosition;case 4:return!!ce.setWinSizePixels;case 5:return!!ce.raiseWin;case 6:return!!ce.lowerWin;case 7:return!!ce.refreshWin;case 8:return!!ce.setWinSizeChars;case 9:return!!ce.maximizeWin;case 10:return!!ce.fullscreenWin;case 11:return!!ce.getWinState;case 13:return!!ce.getWinPosition;case 14:return!!ce.getWinSizePixels;case 15:return!!ce.getScreenSizePixels;case 16:return!!ce.getCellSizePixels;case 18:return!!ce.getWinSizeChars;case 19:return!!ce.getScreenSizeChars;case 20:return!!ce.getIconTitle;case 21:return!!ce.getWinTitle;case 22:return!!ce.pushTitle;case 23:return!!ce.popTitle;case 24:return!!ce.setWinLines}return!1}(function(se){se[se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",se[se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(pe=te.WindowsOptionsReportType||(te.WindowsOptionsReportType={}));var z=function(){function se(ce,_e,ye,De){this._bufferService=ce,this._coreService=_e,this._logService=ye,this._optionsService=De,this._data=new Uint32Array(0)}return se.prototype.hook=function(ce){this._data=new Uint32Array(0)},se.prototype.put=function(ce,_e,ye){this._data=le.concat(this._data,ce.subarray(_e,ye))},se.prototype.unhook=function(ce){if(ce){var _e=me.utf32ToString(this._data);switch(this._data=new Uint32Array(0),_e){case'"q':return this._coreService.triggerDataEvent(Se.C0.ESC+'P1$r0"q'+Se.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(Se.C0.ESC+'P1$r61;1"p'+Se.C0.ESC+"\\");case"r":var ye=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(Se.C0.ESC+"P1$r"+ye+Se.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(Se.C0.ESC+"P1$r0m"+Se.C0.ESC+"\\");case" q":var De={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return De-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(Se.C0.ESC+"P1$r"+De+" q"+Se.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",_e),this._coreService.triggerDataEvent(Se.C0.ESC+"P0$r"+Se.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},se}(),re=function(se){function ce(_e,ye,De,Ee,je,Le,ht,Ye,vt){vt===void 0&&(vt=new ie.EscapeSequenceParser);var we=se.call(this)||this;we._bufferService=_e,we._charsetService=ye,we._coreService=De,we._dirtyRowService=Ee,we._logService=je,we._optionsService=Le,we._coreMouseService=ht,we._unicodeService=Ye,we._parser=vt,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=ae.DEFAULT_ATTR_DATA.clone(),we._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone(),we._onRequestBell=new he.EventEmitter,we._onRequestRefreshRows=new he.EventEmitter,we._onRequestReset=new he.EventEmitter,we._onRequestScroll=new he.EventEmitter,we._onRequestSyncScrollBar=new he.EventEmitter,we._onRequestWindowsOptionsReport=new he.EventEmitter,we._onA11yChar=new he.EventEmitter,we._onA11yTab=new he.EventEmitter,we._onCursorMove=new he.EventEmitter,we._onLineFeed=new he.EventEmitter,we._onScroll=new he.EventEmitter,we._onTitleChange=new he.EventEmitter,we.register(we._parser),we._parser.setCsiHandlerFallback(function(We,pt){we._logService.debug("Unknown CSI code: ",{identifier:we._parser.identToString(We),params:pt.toArray()})}),we._parser.setEscHandlerFallback(function(We){we._logService.debug("Unknown ESC code: ",{identifier:we._parser.identToString(We)})}),we._parser.setExecuteHandlerFallback(function(We){we._logService.debug("Unknown EXECUTE code: ",{code:We})}),we._parser.setOscHandlerFallback(function(We,pt,Pt){we._logService.debug("Unknown OSC code: ",{identifier:We,action:pt,data:Pt})}),we._parser.setDcsHandlerFallback(function(We,pt,Pt){pt==="HOOK"&&(Pt=Pt.toArray()),we._logService.debug("Unknown DCS code: ",{identifier:we._parser.identToString(We),action:pt,payload:Pt})}),we._parser.setPrintHandler(function(We,pt,Pt){return we.print(We,pt,Pt)}),we._parser.setCsiHandler({final:"@"},function(We){return we.insertChars(We)}),we._parser.setCsiHandler({intermediates:" ",final:"@"},function(We){return we.scrollLeft(We)}),we._parser.setCsiHandler({final:"A"},function(We){return we.cursorUp(We)}),we._parser.setCsiHandler({intermediates:" ",final:"A"},function(We){return we.scrollRight(We)}),we._parser.setCsiHandler({final:"B"},function(We){return we.cursorDown(We)}),we._parser.setCsiHandler({final:"C"},function(We){return we.cursorForward(We)}),we._parser.setCsiHandler({final:"D"},function(We){return we.cursorBackward(We)}),we._parser.setCsiHandler({final:"E"},function(We){return we.cursorNextLine(We)}),we._parser.setCsiHandler({final:"F"},function(We){return we.cursorPrecedingLine(We)}),we._parser.setCsiHandler({final:"G"},function(We){return we.cursorCharAbsolute(We)}),we._parser.setCsiHandler({final:"H"},function(We){return we.cursorPosition(We)}),we._parser.setCsiHandler({final:"I"},function(We){return we.cursorForwardTab(We)}),we._parser.setCsiHandler({final:"J"},function(We){return we.eraseInDisplay(We)}),we._parser.setCsiHandler({prefix:"?",final:"J"},function(We){return we.eraseInDisplay(We)}),we._parser.setCsiHandler({final:"K"},function(We){return we.eraseInLine(We)}),we._parser.setCsiHandler({prefix:"?",final:"K"},function(We){return we.eraseInLine(We)}),we._parser.setCsiHandler({final:"L"},function(We){return we.insertLines(We)}),we._parser.setCsiHandler({final:"M"},function(We){return we.deleteLines(We)}),we._parser.setCsiHandler({final:"P"},function(We){return we.deleteChars(We)}),we._parser.setCsiHandler({final:"S"},function(We){return we.scrollUp(We)}),we._parser.setCsiHandler({final:"T"},function(We){return we.scrollDown(We)}),we._parser.setCsiHandler({final:"X"},function(We){return we.eraseChars(We)}),we._parser.setCsiHandler({final:"Z"},function(We){return we.cursorBackwardTab(We)}),we._parser.setCsiHandler({final:"`"},function(We){return we.charPosAbsolute(We)}),we._parser.setCsiHandler({final:"a"},function(We){return we.hPositionRelative(We)}),we._parser.setCsiHandler({final:"b"},function(We){return we.repeatPrecedingCharacter(We)}),we._parser.setCsiHandler({final:"c"},function(We){return we.sendDeviceAttributesPrimary(We)}),we._parser.setCsiHandler({prefix:">",final:"c"},function(We){return we.sendDeviceAttributesSecondary(We)}),we._parser.setCsiHandler({final:"d"},function(We){return we.linePosAbsolute(We)}),we._parser.setCsiHandler({final:"e"},function(We){return we.vPositionRelative(We)}),we._parser.setCsiHandler({final:"f"},function(We){return we.hVPosition(We)}),we._parser.setCsiHandler({final:"g"},function(We){return we.tabClear(We)}),we._parser.setCsiHandler({final:"h"},function(We){return we.setMode(We)}),we._parser.setCsiHandler({prefix:"?",final:"h"},function(We){return we.setModePrivate(We)}),we._parser.setCsiHandler({final:"l"},function(We){return we.resetMode(We)}),we._parser.setCsiHandler({prefix:"?",final:"l"},function(We){return we.resetModePrivate(We)}),we._parser.setCsiHandler({final:"m"},function(We){return we.charAttributes(We)}),we._parser.setCsiHandler({final:"n"},function(We){return we.deviceStatus(We)}),we._parser.setCsiHandler({prefix:"?",final:"n"},function(We){return we.deviceStatusPrivate(We)}),we._parser.setCsiHandler({intermediates:"!",final:"p"},function(We){return we.softReset(We)}),we._parser.setCsiHandler({intermediates:" ",final:"q"},function(We){return we.setCursorStyle(We)}),we._parser.setCsiHandler({final:"r"},function(We){return we.setScrollRegion(We)}),we._parser.setCsiHandler({final:"s"},function(We){return we.saveCursor(We)}),we._parser.setCsiHandler({final:"t"},function(We){return we.windowOptions(We)}),we._parser.setCsiHandler({final:"u"},function(We){return we.restoreCursor(We)}),we._parser.setCsiHandler({intermediates:"'",final:"}"},function(We){return we.insertColumns(We)}),we._parser.setCsiHandler({intermediates:"'",final:"~"},function(We){return we.deleteColumns(We)}),we._parser.setExecuteHandler(Se.C0.BEL,function(){return we.bell()}),we._parser.setExecuteHandler(Se.C0.LF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(Se.C0.VT,function(){return we.lineFeed()}),we._parser.setExecuteHandler(Se.C0.FF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(Se.C0.CR,function(){return we.carriageReturn()}),we._parser.setExecuteHandler(Se.C0.BS,function(){return we.backspace()}),we._parser.setExecuteHandler(Se.C0.HT,function(){return we.tab()}),we._parser.setExecuteHandler(Se.C0.SO,function(){return we.shiftOut()}),we._parser.setExecuteHandler(Se.C0.SI,function(){return we.shiftIn()}),we._parser.setExecuteHandler(Se.C1.IND,function(){return we.index()}),we._parser.setExecuteHandler(Se.C1.NEL,function(){return we.nextLine()}),we._parser.setExecuteHandler(Se.C1.HTS,function(){return we.tabSet()}),we._parser.setOscHandler(0,new y.OscHandler(function(We){we.setTitle(We),we.setIconName(We)})),we._parser.setOscHandler(1,new y.OscHandler(function(We){return we.setIconName(We)})),we._parser.setOscHandler(2,new y.OscHandler(function(We){return we.setTitle(We)})),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 Fe=function(We){He._parser.setEscHandler({intermediates:"(",final:We},function(){return we.selectCharset("("+We)}),He._parser.setEscHandler({intermediates:")",final:We},function(){return we.selectCharset(")"+We)}),He._parser.setEscHandler({intermediates:"*",final:We},function(){return we.selectCharset("*"+We)}),He._parser.setEscHandler({intermediates:"+",final:We},function(){return we.selectCharset("+"+We)}),He._parser.setEscHandler({intermediates:"-",final:We},function(){return we.selectCharset("-"+We)}),He._parser.setEscHandler({intermediates:".",final:We},function(){return we.selectCharset("."+We)}),He._parser.setEscHandler({intermediates:"/",final:We},function(){return we.selectCharset("/"+We)})},He=this;for(var at in fe.CHARSETS)Fe(at);return we._parser.setEscHandler({intermediates:"#",final:"8"},function(){return we.screenAlignmentPattern()}),we._parser.setErrorHandler(function(We){return we._logService.error("Parsing error: ",We),We}),we._parser.setDcsHandler({intermediates:"$",final:"q"},new z(we._bufferService,we._coreService,we._logService,we._optionsService)),we}return be(ce,se),Object.defineProperty(ce.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){se.prototype.dispose.call(this)},ce.prototype.parse=function(_e){var ye=this._bufferService.buffer,De=ye.x,Ee=ye.y;if(this._logService.debug("parsing data",_e),this._parseBuffer.length<_e.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(_e.length,131072))),this._dirtyRowService.clearRange(),_e.length>131072)for(var je=0;je<_e.length;je+=131072){var Le=je+131072<_e.length?je+131072:_e.length,ht=typeof _e=="string"?this._stringDecoder.decode(_e.substring(je,Le),this._parseBuffer):this._utf8Decoder.decode(_e.subarray(je,Le),this._parseBuffer);this._parser.parse(this._parseBuffer,ht)}else ht=typeof _e=="string"?this._stringDecoder.decode(_e,this._parseBuffer):this._utf8Decoder.decode(_e,this._parseBuffer),this._parser.parse(this._parseBuffer,ht);(ye=this._bufferService.buffer).x===De&&ye.y===Ee||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ce.prototype.print=function(_e,ye,De){var Ee,je,Le=this._bufferService.buffer,ht=this._charsetService.charset,Ye=this._optionsService.options.screenReaderMode,vt=this._bufferService.cols,we=this._coreService.decPrivateModes.wraparound,Fe=this._coreService.modes.insertMode,He=this._curAttrData,at=Le.lines.get(Le.ybase+Le.y);this._dirtyRowService.markDirty(Le.y),Le.x&&De-ye>0&&at.getWidth(Le.x-1)===2&&at.setCellFromCodePoint(Le.x-1,0,1,He.fg,He.bg,He.extended);for(var We=ye;We<De;++We){if(Ee=_e[We],je=this._unicodeService.wcwidth(Ee),Ee<127&&ht){var pt=ht[String.fromCharCode(Ee)];pt&&(Ee=pt.charCodeAt(0))}if(Ye&&this._onA11yChar.fire(me.stringFromCodePoint(Ee)),je||!Le.x){if(Le.x+je-1>=vt){if(we){for(;Le.x<vt;)at.setCellFromCodePoint(Le.x++,0,1,He.fg,He.bg,He.extended);Le.x=0,Le.y++,Le.y===Le.scrollBottom+1?(Le.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Le.y>=this._bufferService.rows&&(Le.y=this._bufferService.rows-1),Le.lines.get(Le.ybase+Le.y).isWrapped=!0),at=Le.lines.get(Le.ybase+Le.y)}else if(Le.x=vt-1,je===2)continue}if(Fe&&(at.insertCells(Le.x,je,Le.getNullCell(He),He),at.getWidth(vt-1)===2&&at.setCellFromCodePoint(vt-1,oe.NULL_CELL_CODE,oe.NULL_CELL_WIDTH,He.fg,He.bg,He.extended)),at.setCellFromCodePoint(Le.x++,Ee,je,He.fg,He.bg,He.extended),je>0)for(;--je;)at.setCellFromCodePoint(Le.x++,0,0,He.fg,He.bg,He.extended)}else at.getWidth(Le.x-1)?at.addCodepointToCell(Le.x-1,Ee):at.addCodepointToCell(Le.x-2,Ee)}De-ye>0&&(at.loadCell(Le.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),Le.x<vt&&De-ye>0&&at.getWidth(Le.x)===0&&!at.hasContent(Le.x)&&at.setCellFromCodePoint(Le.x,0,1,He.fg,He.bg,He.extended),this._dirtyRowService.markDirty(Le.y)},ce.prototype.addCsiHandler=function(_e,ye){var De=this;return _e.final!=="t"||_e.prefix||_e.intermediates?this._parser.addCsiHandler(_e,ye):this._parser.addCsiHandler(_e,function(Ee){return!x(Ee.params[0],De._optionsService.options.windowOptions)||ye(Ee)})},ce.prototype.addDcsHandler=function(_e,ye){return this._parser.addDcsHandler(_e,new E.DcsHandler(ye))},ce.prototype.addEscHandler=function(_e,ye){return this._parser.addEscHandler(_e,ye)},ce.prototype.addOscHandler=function(_e,ye){return this._parser.addOscHandler(_e,new y.OscHandler(ye))},ce.prototype.bell=function(){this._onRequestBell.fire()},ce.prototype.lineFeed=function(){var _e=this._bufferService.buffer;this._dirtyRowService.markDirty(_e.y),this._optionsService.options.convertEol&&(_e.x=0),_e.y++,_e.y===_e.scrollBottom+1?(_e.y--,this._onRequestScroll.fire(this._eraseAttrData())):_e.y>=this._bufferService.rows&&(_e.y=this._bufferService.rows-1),_e.x>=this._bufferService.cols&&_e.x--,this._dirtyRowService.markDirty(_e.y),this._onLineFeed.fire()},ce.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ce.prototype.backspace=function(){var _e,ye=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(ye.x>0&&ye.x--);if(this._restrictCursor(this._bufferService.cols),ye.x>0)ye.x--;else if(ye.x===0&&ye.y>ye.scrollTop&&ye.y<=ye.scrollBottom&&(!((_e=ye.lines.get(ye.ybase+ye.y))===null||_e===void 0)&&_e.isWrapped)){ye.lines.get(ye.ybase+ye.y).isWrapped=!1,ye.y--,ye.x=this._bufferService.cols-1;var De=ye.lines.get(ye.ybase+ye.y);De.hasWidth(ye.x)&&!De.hasContent(ye.x)&&ye.x--}this._restrictCursor()},ce.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var _e=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-_e)}},ce.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ce.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ce.prototype._restrictCursor=function(_e){_e===void 0&&(_e=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(_e,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)},ce.prototype._setCursor=function(_e,ye){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=_e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+ye):(this._bufferService.buffer.x=_e,this._bufferService.buffer.y=ye),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._moveCursor=function(_e,ye){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+_e,this._bufferService.buffer.y+ye)},ce.prototype.cursorUp=function(_e){var ye=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;ye>=0?this._moveCursor(0,-Math.min(ye,_e.params[0]||1)):this._moveCursor(0,-(_e.params[0]||1))},ce.prototype.cursorDown=function(_e){var ye=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;ye>=0?this._moveCursor(0,Math.min(ye,_e.params[0]||1)):this._moveCursor(0,_e.params[0]||1)},ce.prototype.cursorForward=function(_e){this._moveCursor(_e.params[0]||1,0)},ce.prototype.cursorBackward=function(_e){this._moveCursor(-(_e.params[0]||1),0)},ce.prototype.cursorNextLine=function(_e){this.cursorDown(_e),this._bufferService.buffer.x=0},ce.prototype.cursorPrecedingLine=function(_e){this.cursorUp(_e),this._bufferService.buffer.x=0},ce.prototype.cursorCharAbsolute=function(_e){this._setCursor((_e.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.cursorPosition=function(_e){this._setCursor(_e.length>=2?(_e.params[1]||1)-1:0,(_e.params[0]||1)-1)},ce.prototype.charPosAbsolute=function(_e){this._setCursor((_e.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.hPositionRelative=function(_e){this._moveCursor(_e.params[0]||1,0)},ce.prototype.linePosAbsolute=function(_e){this._setCursor(this._bufferService.buffer.x,(_e.params[0]||1)-1)},ce.prototype.vPositionRelative=function(_e){this._moveCursor(0,_e.params[0]||1)},ce.prototype.hVPosition=function(_e){this.cursorPosition(_e)},ce.prototype.tabClear=function(_e){var ye=_e.params[0];ye===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:ye===3&&(this._bufferService.buffer.tabs={})},ce.prototype.cursorForwardTab=function(_e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ye=_e.params[0]||1;ye--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ce.prototype.cursorBackwardTab=function(_e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ye=_e.params[0]||1,De=this._bufferService.buffer;ye--;)De.x=De.prevStop()},ce.prototype._eraseInBufferLine=function(_e,ye,De,Ee){Ee===void 0&&(Ee=!1);var je=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_e);je.replaceCells(ye,De,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ee&&(je.isWrapped=!1)},ce.prototype._resetBufferLine=function(_e){var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+_e);ye.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),ye.isWrapped=!1},ce.prototype.eraseInDisplay=function(_e){var ye;switch(this._restrictCursor(),_e.params[0]){case 0:for(ye=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ye),this._eraseInBufferLine(ye++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);ye<this._bufferService.rows;ye++)this._resetBufferLine(ye);this._dirtyRowService.markDirty(ye);break;case 1:for(ye=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ye),this._eraseInBufferLine(ye,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(ye+1).isWrapped=!1);ye--;)this._resetBufferLine(ye);this._dirtyRowService.markDirty(0);break;case 2:for(ye=this._bufferService.rows,this._dirtyRowService.markDirty(ye-1);ye--;)this._resetBufferLine(ye);this._dirtyRowService.markDirty(0);break;case 3:var De=this._bufferService.buffer.lines.length-this._bufferService.rows;De>0&&(this._bufferService.buffer.lines.trimStart(De),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-De,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-De,0),this._onScroll.fire(0))}},ce.prototype.eraseInLine=function(_e){switch(this._restrictCursor(),_e.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)},ce.prototype.insertLines=function(_e){this._restrictCursor();var ye=_e.params[0]||1,De=this._bufferService.buffer;if(!(De.y>De.scrollBottom||De.y<De.scrollTop)){for(var Ee=De.ybase+De.y,je=this._bufferService.rows-1-De.scrollBottom,Le=this._bufferService.rows-1+De.ybase-je+1;ye--;)De.lines.splice(Le-1,1),De.lines.splice(Ee,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.y,De.scrollBottom),De.x=0}},ce.prototype.deleteLines=function(_e){this._restrictCursor();var ye=_e.params[0]||1,De=this._bufferService.buffer;if(!(De.y>De.scrollBottom||De.y<De.scrollTop)){var Ee,je=De.ybase+De.y;for(Ee=this._bufferService.rows-1-De.scrollBottom,Ee=this._bufferService.rows-1+De.ybase-Ee;ye--;)De.lines.splice(je,1),De.lines.splice(Ee,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.y,De.scrollBottom),De.x=0}},ce.prototype.insertChars=function(_e){this._restrictCursor();var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ye&&(ye.insertCells(this._bufferService.buffer.x,_e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.deleteChars=function(_e){this._restrictCursor();var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ye&&(ye.deleteCells(this._bufferService.buffer.x,_e.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.scrollUp=function(_e){for(var ye=_e.params[0]||1,De=this._bufferService.buffer;ye--;)De.lines.splice(De.ybase+De.scrollTop,1),De.lines.splice(De.ybase+De.scrollBottom,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.scrollTop,De.scrollBottom)},ce.prototype.scrollDown=function(_e){for(var ye=_e.params[0]||1,De=this._bufferService.buffer;ye--;)De.lines.splice(De.ybase+De.scrollBottom,1),De.lines.splice(De.ybase+De.scrollTop,0,De.getBlankLine(ae.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(De.scrollTop,De.scrollBottom)},ce.prototype.scrollLeft=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=ye.lines.get(ye.ybase+Ee);je.deleteCells(0,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.scrollRight=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=ye.lines.get(ye.ybase+Ee);je.insertCells(0,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.insertColumns=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=this._bufferService.buffer.lines.get(ye.ybase+Ee);je.insertCells(ye.x,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.deleteColumns=function(_e){var ye=this._bufferService.buffer;if(!(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)){for(var De=_e.params[0]||1,Ee=ye.scrollTop;Ee<=ye.scrollBottom;++Ee){var je=ye.lines.get(ye.ybase+Ee);je.deleteCells(ye.x,De,ye.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}},ce.prototype.eraseChars=function(_e){this._restrictCursor();var ye=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ye&&(ye.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(_e.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.repeatPrecedingCharacter=function(_e){if(this._parser.precedingCodepoint){for(var ye=_e.params[0]||1,De=new Uint32Array(ye),Ee=0;Ee<ye;++Ee)De[Ee]=this._parser.precedingCodepoint;this.print(De,0,De.length)}},ce.prototype.sendDeviceAttributesPrimary=function(_e){_e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Se.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Se.C0.ESC+"[?6c"))},ce.prototype.sendDeviceAttributesSecondary=function(_e){_e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Se.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Se.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Se.C0.ESC+"[>83;40003;0c"))},ce.prototype._is=function(_e){return(this._optionsService.options.termName+"").indexOf(_e)===0},ce.prototype.setMode=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){case 4:this._coreService.modes.insertMode=!0}},ce.prototype.setModePrivate=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,fe.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}},ce.prototype.resetMode=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){case 4:this._coreService.modes.insertMode=!1}},ce.prototype.resetModePrivate=function(_e){for(var ye=0;ye<_e.length;ye++)switch(_e.params[ye]){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(),_e.params[ye]===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}},ce.prototype._updateAttrColor=function(_e,ye,De,Ee,je){return ye===2?(_e|=50331648,_e&=-16777216,_e|=a.AttributeData.fromColorRGB([De,Ee,je])):ye===5&&(_e&=-50331904,_e|=33554432|255&De),_e},ce.prototype._extractColor=function(_e,ye,De){var Ee=[0,0,-1,0,0,0],je=0,Le=0;do{if(Ee[Le+je]=_e.params[ye+Le],_e.hasSubParams(ye+Le)){var ht=_e.getSubParams(ye+Le),Ye=0;do Ee[1]===5&&(je=1),Ee[Le+Ye+1+je]=ht[Ye];while(++Ye<ht.length&&Ye+Le+1+je<Ee.length);break}if(Ee[1]===5&&Le+je>=2||Ee[1]===2&&Le+je>=5)break;Ee[1]&&(je=1)}while(++Le+ye<_e.length&&Le+je<Ee.length);for(Ye=2;Ye<Ee.length;++Ye)Ee[Ye]===-1&&(Ee[Ye]=0);switch(Ee[0]){case 38:De.fg=this._updateAttrColor(De.fg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 48:De.bg=this._updateAttrColor(De.bg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 58:De.extended=De.extended.clone(),De.extended.underlineColor=this._updateAttrColor(De.extended.underlineColor,Ee[1],Ee[3],Ee[4],Ee[5])}return Le},ce.prototype._processUnderline=function(_e,ye){ye.extended=ye.extended.clone(),(!~_e||_e>5)&&(_e=1),ye.extended.underlineStyle=_e,ye.fg|=268435456,_e===0&&(ye.fg&=-268435457),ye.updateExtended()},ce.prototype.charAttributes=function(_e){if(_e.length===1&&_e.params[0]===0)return this._curAttrData.fg=ae.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=ae.DEFAULT_ATTR_DATA.bg);for(var ye,De=_e.length,Ee=this._curAttrData,je=0;je<De;je++)(ye=_e.params[je])>=30&&ye<=37?(Ee.fg&=-50331904,Ee.fg|=16777216|ye-30):ye>=40&&ye<=47?(Ee.bg&=-50331904,Ee.bg|=16777216|ye-40):ye>=90&&ye<=97?(Ee.fg&=-50331904,Ee.fg|=16777224|ye-90):ye>=100&&ye<=107?(Ee.bg&=-50331904,Ee.bg|=16777224|ye-100):ye===0?(Ee.fg=ae.DEFAULT_ATTR_DATA.fg,Ee.bg=ae.DEFAULT_ATTR_DATA.bg):ye===1?Ee.fg|=134217728:ye===3?Ee.bg|=67108864:ye===4?(Ee.fg|=268435456,this._processUnderline(_e.hasSubParams(je)?_e.getSubParams(je)[0]:1,Ee)):ye===5?Ee.fg|=536870912:ye===7?Ee.fg|=67108864:ye===8?Ee.fg|=1073741824:ye===2?Ee.bg|=134217728:ye===21?this._processUnderline(2,Ee):ye===22?(Ee.fg&=-134217729,Ee.bg&=-134217729):ye===23?Ee.bg&=-67108865:ye===24?Ee.fg&=-268435457:ye===25?Ee.fg&=-536870913:ye===27?Ee.fg&=-67108865:ye===28?Ee.fg&=-1073741825:ye===39?(Ee.fg&=-67108864,Ee.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg):ye===49?(Ee.bg&=-67108864,Ee.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):ye===38||ye===48||ye===58?je+=this._extractColor(_e,je,Ee):ye===59?(Ee.extended=Ee.extended.clone(),Ee.extended.underlineColor=-1,Ee.updateExtended()):ye===100?(Ee.fg&=-67108864,Ee.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg,Ee.bg&=-67108864,Ee.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ye)},ce.prototype.deviceStatus=function(_e){switch(_e.params[0]){case 5:this._coreService.triggerDataEvent(Se.C0.ESC+"[0n");break;case 6:var ye=this._bufferService.buffer.y+1,De=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Se.C0.ESC+"["+ye+";"+De+"R")}},ce.prototype.deviceStatusPrivate=function(_e){switch(_e.params[0]){case 6:var ye=this._bufferService.buffer.y+1,De=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(Se.C0.ESC+"[?"+ye+";"+De+"R")}},ce.prototype.softReset=function(_e){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=ae.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},ce.prototype.setCursorStyle=function(_e){var ye=_e.params[0]||1;switch(ye){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 De=ye%2==1;this._optionsService.options.cursorBlink=De},ce.prototype.setScrollRegion=function(_e){var ye,De=_e.params[0]||1;(_e.length<2||(ye=_e.params[1])>this._bufferService.rows||ye===0)&&(ye=this._bufferService.rows),ye>De&&(this._bufferService.buffer.scrollTop=De-1,this._bufferService.buffer.scrollBottom=ye-1,this._setCursor(0,0))},ce.prototype.windowOptions=function(_e){if(x(_e.params[0],this._optionsService.options.windowOptions)){var ye=_e.length>1?_e.params[1]:0;switch(_e.params[0]){case 14:ye!==2&&this._onRequestWindowsOptionsReport.fire(pe.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(pe.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(Se.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:ye!==0&&ye!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),ye!==0&&ye!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:ye!==0&&ye!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),ye!==0&&ye!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ce.prototype.saveCursor=function(_e){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},ce.prototype.restoreCursor=function(_e){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()},ce.prototype.setTitle=function(_e){this._windowTitle=_e,this._onTitleChange.fire(_e)},ce.prototype.setIconName=function(_e){this._iconName=_e},ce.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ce.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ce.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ce.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET)},ce.prototype.selectCharset=function(_e){_e.length===2?_e[0]!=="/"&&this._charsetService.setgCharset(b[_e[0]],fe.CHARSETS[_e[1]]||fe.DEFAULT_CHARSET):this.selectDefaultCharset()},ce.prototype.index=function(){this._restrictCursor();var _e=this._bufferService.buffer;this._bufferService.buffer.y++,_e.y===_e.scrollBottom+1?(_e.y--,this._onRequestScroll.fire(this._eraseAttrData())):_e.y>=this._bufferService.rows&&(_e.y=this._bufferService.rows-1),this._restrictCursor()},ce.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ce.prototype.reverseIndex=function(){this._restrictCursor();var _e=this._bufferService.buffer;if(_e.y===_e.scrollTop){var ye=_e.scrollBottom-_e.scrollTop;_e.lines.shiftElements(_e.ybase+_e.y,ye,1),_e.lines.set(_e.ybase+_e.y,_e.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}else _e.y--,this._restrictCursor()},ce.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ce.prototype.reset=function(){this._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone()},ce.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ce.prototype.setgLevel=function(_e){this._charsetService.setgLevel(_e)},ce.prototype.screenAlignmentPattern=function(){var _e=new ne.CellData;_e.content=1<<22|69,_e.fg=this._curAttrData.fg,_e.bg=this._curAttrData.bg;var ye=this._bufferService.buffer;this._setCursor(0,0);for(var De=0;De<this._bufferService.rows;++De){var Ee=ye.ybase+ye.y+De,je=ye.lines.get(Ee);je&&(je.fill(_e),je.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ce}(de.Disposable);te.InputHandler=re},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DEFAULT_CHARSET=te.CHARSETS=void 0,te.CHARSETS={},te.DEFAULT_CHARSET=te.CHARSETS.B,te.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"},te.CHARSETS.A={"#":"\xA3"},te.CHARSETS.B=void 0,te.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},te.CHARSETS.C=te.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},te.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},te.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},te.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},te.CHARSETS.E=te.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},te.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},te.CHARSETS.H=te.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Params=void 0;var ge=function(){function be(pe,Se){if(pe===void 0&&(pe=32),Se===void 0&&(Se=32),this.maxLength=pe,this.maxSubParamsLength=Se,Se>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(pe),this.length=0,this._subParams=new Int32Array(Se),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(pe),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(pe){var Se=new be;if(!pe.length)return Se;for(var fe=pe[0]instanceof Array?1:0;fe<pe.length;++fe){var ie=pe[fe];if(ie instanceof Array)for(var de=0;de<ie.length;++de)Se.addSubParam(ie[de]);else Se.addParam(ie)}return Se},be.prototype.clone=function(){var pe=new be(this.maxLength,this.maxSubParamsLength);return pe.params.set(this.params),pe.length=this.length,pe._subParams.set(this._subParams),pe._subParamsLength=this._subParamsLength,pe._subParamsIdx.set(this._subParamsIdx),pe._rejectDigits=this._rejectDigits,pe._rejectSubDigits=this._rejectSubDigits,pe._digitIsSub=this._digitIsSub,pe},be.prototype.toArray=function(){for(var pe=[],Se=0;Se<this.length;++Se){pe.push(this.params[Se]);var fe=this._subParamsIdx[Se]>>8,ie=255&this._subParamsIdx[Se];ie-fe>0&&pe.push(Array.prototype.slice.call(this._subParams,fe,ie))}return pe},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(pe){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(pe<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=pe>2147483647?2147483647:pe}},be.prototype.addSubParam=function(pe){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(pe<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=pe>2147483647?2147483647:pe,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(pe){return(255&this._subParamsIdx[pe])-(this._subParamsIdx[pe]>>8)>0},be.prototype.getSubParams=function(pe){var Se=this._subParamsIdx[pe]>>8,fe=255&this._subParamsIdx[pe];return fe-Se>0?this._subParams.subarray(Se,fe):null},be.prototype.getSubParamsAll=function(){for(var pe={},Se=0;Se<this.length;++Se){var fe=this._subParamsIdx[Se]>>8,ie=255&this._subParamsIdx[Se];ie-fe>0&&(pe[Se]=this._subParams.slice(fe,ie))}return pe},be.prototype.addDigit=function(pe){var Se;if(!(this._rejectDigits||!(Se=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var fe=this._digitIsSub?this._subParams:this.params,ie=fe[Se-1];fe[Se-1]=~ie?Math.min(10*ie+pe,2147483647):pe}},be}();te.Params=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OscHandler=te.OscParser=void 0;var ge=ee(23),be=ee(8),pe=function(){function fe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return fe.prototype.addHandler=function(ie,de){this._handlers[ie]===void 0&&(this._handlers[ie]=[]);var le=this._handlers[ie];return le.push(de),{dispose:function(){var me=le.indexOf(de);me!==-1&&le.splice(me,1)}}},fe.prototype.setHandler=function(ie,de){this._handlers[ie]=[de]},fe.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},fe.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},fe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},fe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},fe.prototype._start=function(){var ie=this._handlers[this._id];if(ie)for(var de=ie.length-1;de>=0;de--)ie[de].start();else this._handlerFb(this._id,"START")},fe.prototype._put=function(ie,de,le){var me=this._handlers[this._id];if(me)for(var ae=me.length-1;ae>=0;ae--)me[ae].put(ie,de,le);else this._handlerFb(this._id,"PUT",be.utf32ToString(ie,de,le))},fe.prototype._end=function(ie){var de=this._handlers[this._id];if(de){for(var le=de.length-1;le>=0&&de[le].end(ie)===!1;le--);for(le--;le>=0;le--)de[le].end(!1)}else this._handlerFb(this._id,"END",ie)},fe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},fe.prototype.put=function(ie,de,le){if(this._state!==3){if(this._state===1)for(;de<le;){var me=ie[de++];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&&le-de>0&&this._put(ie,de,le)}},fe.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},fe}();te.OscParser=pe;var Se=function(){function fe(ie){this._handler=ie,this._data="",this._hitLimit=!1}return fe.prototype.start=function(){this._data="",this._hitLimit=!1},fe.prototype.put=function(ie,de,le){this._hitLimit||(this._data+=be.utf32ToString(ie,de,le),this._data.length>ge.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},fe.prototype.end=function(ie){var de;return this._hitLimit?de=!1:ie&&(de=this._handler(this._data)),this._data="",this._hitLimit=!1,de},fe}();te.OscHandler=Se},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PAYLOAD_LIMIT=void 0,te.PAYLOAD_LIMIT=1e7},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DcsHandler=te.DcsParser=void 0;var ge=ee(8),be=ee(21),pe=ee(23),Se=[],fe=function(){function de(){this._handlers=Object.create(null),this._active=Se,this._ident=0,this._handlerFb=function(){}}return de.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},de.prototype.addHandler=function(le,me){this._handlers[le]===void 0&&(this._handlers[le]=[]);var ae=this._handlers[le];return ae.push(me),{dispose:function(){var he=ae.indexOf(me);he!==-1&&ae.splice(he,1)}}},de.prototype.setHandler=function(le,me){this._handlers[le]=[me]},de.prototype.clearHandler=function(le){this._handlers[le]&&delete this._handlers[le]},de.prototype.setHandlerFallback=function(le){this._handlerFb=le},de.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=Se,this._ident=0},de.prototype.hook=function(le,me){if(this.reset(),this._ident=le,this._active=this._handlers[le]||Se,this._active.length)for(var ae=this._active.length-1;ae>=0;ae--)this._active[ae].hook(me);else this._handlerFb(this._ident,"HOOK",me)},de.prototype.put=function(le,me,ae){if(this._active.length)for(var he=this._active.length-1;he>=0;he--)this._active[he].put(le,me,ae);else this._handlerFb(this._ident,"PUT",ge.utf32ToString(le,me,ae))},de.prototype.unhook=function(le){if(this._active.length){for(var me=this._active.length-1;me>=0&&this._active[me].unhook(le)===!1;me--);for(me--;me>=0;me--)this._active[me].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",le);this._active=Se,this._ident=0},de}();te.DcsParser=fe;var ie=function(){function de(le){this._handler=le,this._data="",this._hitLimit=!1}return de.prototype.hook=function(le){this._params=le.clone(),this._data="",this._hitLimit=!1},de.prototype.put=function(le,me,ae){this._hitLimit||(this._data+=ge.utf32ToString(le,me,ae),this._data.length>pe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},de.prototype.unhook=function(le){var me;return this._hitLimit?me=!1:le&&(me=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,me},de}();te.DcsHandler=ie},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeTerminalFromCache=te.acquireCharAtlas=void 0;var ge=ee(26),be=ee(43),pe=[];te.acquireCharAtlas=function(Se,fe,ie,de,le){for(var me=ge.generateConfig(de,le,Se,ie),ae=0;ae<pe.length;ae++){var he=(oe=pe[ae]).ownedBy.indexOf(fe);if(he>=0){if(ge.configEquals(oe.config,me))return oe.atlas;oe.ownedBy.length===1?(oe.atlas.dispose(),pe.splice(ae,1)):oe.ownedBy.splice(he,1);break}}for(ae=0;ae<pe.length;ae++){var oe=pe[ae];if(ge.configEquals(oe.config,me))return oe.ownedBy.push(fe),oe.atlas}var ne={atlas:new be.DynamicCharAtlas(document,me),config:me,ownedBy:[fe]};return pe.push(ne),ne.atlas},te.removeTerminalFromCache=function(Se){for(var fe=0;fe<pe.length;fe++){var ie=pe[fe].ownedBy.indexOf(Se);if(ie!==-1){pe[fe].ownedBy.length===1?(pe[fe].atlas.dispose(),pe.splice(fe,1)):pe[fe].ownedBy.splice(ie,1);break}}}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.is256Color=te.configEquals=te.generateConfig=void 0;var ge=ee(3);te.generateConfig=function(be,pe,Se,fe){var ie={foreground:fe.foreground,background:fe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:fe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:pe,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontWeight:Se.fontWeight,fontWeightBold:Se.fontWeightBold,allowTransparency:Se.allowTransparency,colors:ie}},te.configEquals=function(be,pe){for(var Se=0;Se<be.colors.ansi.length;Se++)if(be.colors.ansi[Se].rgba!==pe.colors.ansi[Se].rgba)return!1;return be.devicePixelRatio===pe.devicePixelRatio&&be.fontFamily===pe.fontFamily&&be.fontSize===pe.fontSize&&be.fontWeight===pe.fontWeight&&be.fontWeightBold===pe.fontWeightBold&&be.allowTransparency===pe.allowTransparency&&be.scaledCharWidth===pe.scaledCharWidth&&be.scaledCharHeight===pe.scaledCharHeight&&be.colors.foreground===pe.colors.foreground&&be.colors.background===pe.colors.background},te.is256Color=function(be){return be<ge.DEFAULT_COLOR}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorManager=te.DEFAULT_ANSI_COLORS=void 0;var ge=ee(10),be=ee(45),pe=ge.css.toColor("#ffffff"),Se=ge.css.toColor("#000000"),fe=ge.css.toColor("#ffffff"),ie=ge.css.toColor("#000000"),de={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};te.DEFAULT_ANSI_COLORS=function(){for(var me=[ge.css.toColor("#2e3436"),ge.css.toColor("#cc0000"),ge.css.toColor("#4e9a06"),ge.css.toColor("#c4a000"),ge.css.toColor("#3465a4"),ge.css.toColor("#75507b"),ge.css.toColor("#06989a"),ge.css.toColor("#d3d7cf"),ge.css.toColor("#555753"),ge.css.toColor("#ef2929"),ge.css.toColor("#8ae234"),ge.css.toColor("#fce94f"),ge.css.toColor("#729fcf"),ge.css.toColor("#ad7fa8"),ge.css.toColor("#34e2e2"),ge.css.toColor("#eeeeec")],ae=[0,95,135,175,215,255],he=0;he<216;he++){var oe=ae[he/36%6|0],ne=ae[he/6%6|0],a=ae[he%6];me.push({css:ge.channels.toCss(oe,ne,a),rgba:ge.channels.toRgba(oe,ne,a)})}for(he=0;he<24;he++){var y=8+10*he;me.push({css:ge.channels.toCss(y,y,y),rgba:ge.channels.toRgba(y,y,y)})}return me}();var le=function(){function me(ae,he){this.allowTransparency=he;var oe=ae.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:pe,background:Se,cursor:fe,cursorAccent:ie,selectionTransparent:de,selectionOpaque:ge.color.blend(Se,de),ansi:te.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return me.prototype.onOptionsChange=function(ae){ae==="minimumContrastRatio"&&this._contrastCache.clear()},me.prototype.setTheme=function(ae){ae===void 0&&(ae={}),this.colors.foreground=this._parseColor(ae.foreground,pe),this.colors.background=this._parseColor(ae.background,Se),this.colors.cursor=this._parseColor(ae.cursor,fe,!0),this.colors.cursorAccent=this._parseColor(ae.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(ae.selection,de,!0),this.colors.selectionOpaque=ge.color.blend(this.colors.background,this.colors.selectionTransparent),ge.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ge.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(ae.black,te.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(ae.red,te.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(ae.green,te.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(ae.yellow,te.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(ae.blue,te.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(ae.magenta,te.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(ae.cyan,te.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(ae.white,te.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(ae.brightBlack,te.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(ae.brightRed,te.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(ae.brightGreen,te.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(ae.brightYellow,te.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(ae.brightBlue,te.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(ae.brightMagenta,te.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(ae.brightCyan,te.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(ae.brightWhite,te.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},me.prototype._parseColor=function(ae,he,oe){if(oe===void 0&&(oe=this.allowTransparency),ae===void 0)return he;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=ae,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+ae+" is invalid using fallback "+he.css),he;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: "+ae+" is using transparency, but allowTransparency is false. Using fallback "+he.css+"."),he;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:ge.channels.toRgba(y,E,b,z),css:ae}}return{css:this._ctx.fillStyle,rgba:ge.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},me}();te.ColorManager=le},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.throwIfFalsy=void 0,te.throwIfFalsy=function(ge){if(!ge)throw new Error("value must not be falsy");return ge}},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(le,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,he){ae.__proto__=he}||function(ae,he){for(var oe in he)he.hasOwnProperty(oe)&&(ae[oe]=he[oe])})(le,me)},function(le,me){function ae(){this.constructor=le}ge(le,me),le.prototype=me===null?Object.create(me):(ae.prototype=me.prototype,new ae)});Object.defineProperty(te,"__esModule",{value:!0}),te.CharacterJoinerRegistry=te.JoinedCellData=void 0;var pe=ee(6),Se=ee(3),fe=ee(4),ie=function(le){function me(ae,he,oe){var ne=le.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=ae.fg,ne.bg=ae.bg,ne.combinedData=he,ne._width=oe,ne}return be(me,le),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(ae){throw new Error("not implemented")},me.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},me}(pe.AttributeData);te.JoinedCellData=ie;var de=function(){function le(me){this._bufferService=me,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new fe.CellData}return le.prototype.registerCharacterJoiner=function(me){var ae={id:this._nextCharacterJoinerId++,handler:me};return this._characterJoiners.push(ae),ae.id},le.prototype.deregisterCharacterJoiner=function(me){for(var ae=0;ae<this._characterJoiners.length;ae++)if(this._characterJoiners[ae].id===me)return this._characterJoiners.splice(ae,1),!0;return!1},le.prototype.getJoinedCharacters=function(me){if(this._characterJoiners.length===0)return[];var ae=this._bufferService.buffer.lines.get(me);if(!ae||ae.length===0)return[];for(var he=[],oe=ae.translateToString(!0),ne=0,a=0,y=0,E=ae.getFg(0),b=ae.getBg(0),x=0;x<ae.getTrimmedLength();x++)if(ae.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,ae,ne),re=0;re<z.length;re++)he.push(z[re]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||Se.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(oe,y,a,ae,ne),re=0;re<z.length;re++)he.push(z[re]);return he},le.prototype._getJoinedRanges=function(me,ae,he,oe,ne){for(var a=me.substring(ae,he),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++)le._mergeRanges(y,b[x]);return this._stringRangesToCellRanges(y,oe,ne),y},le.prototype._stringRangesToCellRanges=function(me,ae,he){var oe=0,ne=!1,a=0,y=me[oe];if(y){for(var E=he;E<this._bufferService.cols;E++){var b=ae.getWidth(E),x=ae.getString(E).length||Se.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)}},le._mergeRanges=function(me,ae){for(var he=!1,oe=0;oe<me.length;oe++){var ne=me[oe];if(he){if(ae[1]<=ne[0])return me[oe-1][1]=ae[1],me;if(ae[1]<=ne[1])return me[oe-1][1]=Math.max(ae[1],ne[1]),me.splice(oe,1),me;me.splice(oe,1),oe--}else{if(ae[1]<=ne[0])return me.splice(oe,0,ae),me;if(ae[1]<=ne[1])return ne[0]=Math.min(ae[0],ne[0]),me;ae[0]<ne[1]&&(ne[0]=Math.min(ae[0],ne[0]),he=!0)}}return he?me[me.length-1][1]=ae[1]:me.push(ae),me},le}();te.CharacterJoinerRegistry=de},function(Ke,te,ee){"use strict";function ge(be,pe){var Se=pe.getBoundingClientRect();return[be.clientX-Se.left,be.clientY-Se.top]}Object.defineProperty(te,"__esModule",{value:!0}),te.getRawByteCoords=te.getCoords=te.getCoordsRelativeToElement=void 0,te.getCoordsRelativeToElement=ge,te.getCoords=function(be,pe,Se,fe,ie,de,le,me){if(ie){var ae=ge(be,pe);if(ae)return ae[0]=Math.ceil((ae[0]+(me?de/2:0))/de),ae[1]=Math.ceil(ae[1]/le),ae[0]=Math.min(Math.max(ae[0],1),Se+(me?1:0)),ae[1]=Math.min(Math.max(ae[1],1),fe),ae}},te.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.RenderDebouncer=void 0;var ge=function(){function be(pe){this._renderCallback=pe}return be.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},be.prototype.refresh=function(pe,Se,fe){var ie=this;this._rowCount=fe,pe=pe!==void 0?pe:0,Se=Se!==void 0?Se:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,pe):pe,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,Se):Se,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 pe=Math.max(this._rowStart,0),Se=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(pe,Se)}},be}();te.RenderDebouncer=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(Se,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,de){ie.__proto__=de}||function(ie,de){for(var le in de)de.hasOwnProperty(le)&&(ie[le]=de[le])})(Se,fe)},function(Se,fe){function ie(){this.constructor=Se}ge(Se,fe),Se.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.ScreenDprMonitor=void 0;var pe=function(Se){function fe(){var ie=Se!==null&&Se.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return be(fe,Se),fe.prototype.setListener=function(ie){var de=this;this._listener&&this.clearListener(),this._listener=ie,this._outerListener=function(){de._listener&&(de._listener(window.devicePixelRatio,de._currentDevicePixelRatio),de._updateDpr())},this._updateDpr()},fe.prototype.dispose=function(){Se.prototype.dispose.call(this),this.clearListener()},fe.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))},fe.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)},fe}(ee(2).Disposable);te.ScreenDprMonitor=pe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.clone=void 0,te.clone=function ge(be,pe){if(pe===void 0&&(pe=5),typeof be!="object")return be;var Se=Array.isArray(be)?[]:{};for(var fe in be)Se[fe]=pe<=1?be[fe]:be[fe]?ge(be[fe],pe-1):be[fe];return Se}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var ge=ee(4),be=ee(35),pe=ee(18),Se=ee(0),fe=ee(83),ie=function(){function oe(ne){this._core=new be.Terminal(ne),this._addonManager=new fe.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 ae(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"unicode",{get:function(){return this._checkProposedApi(),new he(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 le(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 pe},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}();te.Terminal=ie;var de=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 ge.CellData},oe}(),le=function(){function oe(ne){var a=this;this._buffers=ne,this._onBufferChange=new Se.EventEmitter,this._normal=new de(this._buffers.normal,"normal"),this._alternate=new de(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 ge.CellData)},oe.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},oe}(),ae=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}(),he=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,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(vt,we){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fe,He){Fe.__proto__=He}||function(Fe,He){for(var at in He)He.hasOwnProperty(at)&&(Fe[at]=He[at])})(vt,we)},function(vt,we){function Fe(){this.constructor=vt}ge(vt,we),vt.prototype=we===null?Object.create(we):(Fe.prototype=we.prototype,new Fe)});Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var pe=ee(36),Se=ee(37),fe=ee(38),ie=ee(12),de=ee(19),le=ee(40),me=ee(50),ae=ee(51),he=ee(11),oe=ee(7),ne=ee(18),a=ee(54),y=ee(55),E=ee(56),b=ee(57),x=ee(59),z=ee(0),re=ee(16),se=ee(27),ce=ee(60),_e=ee(5),ye=ee(61),De=ee(62),Ee=ee(63),je=ee(64),Le=ee(65),ht=typeof window!="undefined"?window.document:null,Ye=function(vt){function we(Fe){Fe===void 0&&(Fe={});var He=vt.call(this,Fe)||this;return He.browser=he,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(at,We){return He.refresh(at,We)})),He.register(He._inputHandler.onRequestReset(function(){return He.reset()})),He.register(He._inputHandler.onRequestScroll(function(at,We){return He.scroll(at,We||void 0)})),He.register(He._inputHandler.onRequestWindowsOptionsReport(function(at){return He._reportWindowsOptions(at)})),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(at){return He._afterResize(at.cols,at.rows)})),He}return be(we,vt),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 Fe,He,at;this._isDisposed||(vt.prototype.dispose.call(this),(Fe=this._renderService)===null||Fe===void 0||Fe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(at=(He=this.element)===null||He===void 0?void 0:He.parentNode)===null||at===void 0||at.removeChild(this.element))},we.prototype._setup=function(){vt.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(Fe){var He,at,We,pt;switch(vt.prototype._updateOptions.call(this,Fe),Fe){case"fontFamily":case"fontSize":(He=this._renderService)===null||He===void 0||He.clear(),(at=this._charSizeService)===null||at===void 0||at.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":(We=this.viewport)===null||We===void 0||We.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((pt=this._accessibilityManager)===null||pt===void 0||pt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},we.prototype._onTextAreaFocus=function(Fe){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(Fe),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},we.prototype.blur=function(){var Fe;return(Fe=this.textarea)===null||Fe===void 0?void 0:Fe.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 Fe=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),He=this._bufferService.buffer.y*Fe,at=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=at+"px",this.textarea.style.top=He+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Fe+"px",this.textarea.style.lineHeight=Fe+"px",this.textarea.style.zIndex="-5"}},we.prototype._initGlobal=function(){var Fe=this;this._bindKeys(),this.register(oe.addDisposableDomListener(this.element,"copy",function(at){Fe.hasSelection()&&fe.copyHandler(at,Fe._selectionService)}));var He=function(at){return fe.handlePasteEvent(at,Fe.textarea,Fe._coreService)};this.register(oe.addDisposableDomListener(this.textarea,"paste",He)),this.register(oe.addDisposableDomListener(this.element,"paste",He)),he.isFirefox?this.register(oe.addDisposableDomListener(this.element,"mousedown",function(at){at.button===2&&fe.rightClickHandler(at,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})):this.register(oe.addDisposableDomListener(this.element,"contextmenu",function(at){fe.rightClickHandler(at,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})),he.isLinux&&this.register(oe.addDisposableDomListener(this.element,"auxclick",function(at){at.button===1&&fe.moveTextAreaUnderMouseCursor(at,Fe.textarea,Fe.screenElement)}))},we.prototype._bindKeys=function(){var Fe=this;this.register(oe.addDisposableDomListener(this.textarea,"keyup",function(He){return Fe._keyUp(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keydown",function(He){return Fe._keyDown(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keypress",function(He){return Fe._keyPress(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"compositionstart",function(){return Fe._compositionHelper.compositionstart()})),this.register(oe.addDisposableDomListener(this.textarea,"compositionupdate",function(He){return Fe._compositionHelper.compositionupdate(He)})),this.register(oe.addDisposableDomListener(this.textarea,"compositionend",function(){return Fe._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Fe._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(He){return Fe._queueLinkification(He.start,He.end)}))},we.prototype.open=function(Fe){var He=this;if(!Fe)throw new Error("Terminal requires a parent element.");ht.body.contains(Fe)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Fe.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"),Fe.appendChild(this.element);var at=ht.createDocumentFragment();this._viewportElement=ht.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),at.appendChild(this._viewportElement),this._viewportScrollArea=ht.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ht.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ht.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),at.appendChild(this.screenElement),this.textarea=ht.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 We=this._instantiationService.createInstance(je.CoreBrowserService,this.textarea);this._instantiationService.setService(_e.ICoreBrowserService,We),this._charSizeService=this._instantiationService.createInstance(ye.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_e.ICharSizeService,this._charSizeService),this._compositionView=ht.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(pe.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(at),this._theme=this.options.theme||this._theme,this._colorManager=new se.ColorManager(ht,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Pt){return He._colorManager.onOptionsChange(Pt)})),this._colorManager.setTheme(this._theme);var pt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ce.RenderService,pt,this.rows,this.screenElement)),this._instantiationService.setService(_e.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(_e.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(De.MouseService),this._instantiationService.setService(_e.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(Se.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(ae.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(_e.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(le.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(Fe){var He,at,We;this._theme=Fe,(He=this._colorManager)===null||He===void 0||He.setTheme(Fe),(at=this._renderService)===null||at===void 0||at.setColors(this._colorManager.colors),(We=this.viewport)===null||We===void 0||We.onThemeChange(this._colorManager.colors)},we.prototype.bindMouse=function(){var Fe=this,He=this,at=this.element;function We(Xe){var Ct,zt,Et=He._mouseService.getRawByteCoords(Xe,He.screenElement,He.cols,He.rows);if(!Et)return!1;switch(Xe.overrideType||Xe.type){case"mousemove":zt=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":zt=0,Ct=Xe.button<3?Xe.button:3;break;case"mousedown":zt=1,Ct=Xe.button<3?Xe.button:3;break;case"wheel":Xe.deltaY!==0&&(zt=Xe.deltaY<0?0:1),Ct=4;break;default:return!1}return!(zt===void 0||Ct===void 0||Ct>4)&&He._coreMouseService.triggerMouseEvent({col:Et.x-33,row:Et.y-33,button:Ct,action:zt,ctrl:Xe.ctrlKey,alt:Xe.altKey,shift:Xe.shiftKey})}var pt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Pt=function(Xe){return We(Xe),Xe.buttons||(Fe._document.removeEventListener("mouseup",pt.mouseup),pt.mousedrag&&Fe._document.removeEventListener("mousemove",pt.mousedrag)),Fe.cancel(Xe)},At=function(Xe){return We(Xe),Xe.preventDefault(),Fe.cancel(Xe)},Bt=function(Xe){Xe.buttons&&We(Xe)},rt=function(Xe){Xe.buttons||We(Xe)};this.register(this._coreMouseService.onProtocolChange(function(Xe){Xe?(Fe.optionsService.options.logLevel==="debug"&&Fe._logService.debug("Binding to mouse events:",Fe._coreMouseService.explainEvents(Xe)),Fe.element.classList.add("enable-mouse-events"),Fe._selectionService.disable()):(Fe._logService.debug("Unbinding from mouse events."),Fe.element.classList.remove("enable-mouse-events"),Fe._selectionService.enable()),8&Xe?pt.mousemove||(at.addEventListener("mousemove",rt),pt.mousemove=rt):(at.removeEventListener("mousemove",pt.mousemove),pt.mousemove=null),16&Xe?pt.wheel||(at.addEventListener("wheel",At,{passive:!1}),pt.wheel=At):(at.removeEventListener("wheel",pt.wheel),pt.wheel=null),2&Xe?pt.mouseup||(pt.mouseup=Pt):(Fe._document.removeEventListener("mouseup",pt.mouseup),pt.mouseup=null),4&Xe?pt.mousedrag||(pt.mousedrag=Bt):(Fe._document.removeEventListener("mousemove",pt.mousedrag),pt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(oe.addDisposableDomListener(at,"mousedown",function(Xe){if(Xe.preventDefault(),Fe.focus(),Fe._coreMouseService.areMouseEventsActive&&!Fe._selectionService.shouldForceSelection(Xe))return We(Xe),pt.mouseup&&Fe._document.addEventListener("mouseup",pt.mouseup),pt.mousedrag&&Fe._document.addEventListener("mousemove",pt.mousedrag),Fe.cancel(Xe)})),this.register(oe.addDisposableDomListener(at,"wheel",function(Xe){if(!pt.wheel){if(!Fe.buffer.hasScrollback){var Ct=Fe.viewport.getLinesScrolled(Xe);if(Ct===0)return;for(var zt=ie.C0.ESC+(Fe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Xe.deltaY<0?"A":"B"),Et="",an=0;an<Math.abs(Ct);an++)Et+=zt;Fe._coreService.triggerDataEvent(Et,!0)}}},{passive:!0})),this.register(oe.addDisposableDomListener(at,"wheel",function(Xe){if(!pt.wheel)return Fe.viewport.onWheel(Xe)?void 0:Fe.cancel(Xe)},{passive:!1})),this.register(oe.addDisposableDomListener(at,"touchstart",function(Xe){if(!Fe._coreMouseService.areMouseEventsActive)return Fe.viewport.onTouchStart(Xe),Fe.cancel(Xe)},{passive:!0})),this.register(oe.addDisposableDomListener(at,"touchmove",function(Xe){if(!Fe._coreMouseService.areMouseEventsActive)return Fe.viewport.onTouchMove(Xe)?void 0:Fe.cancel(Xe)},{passive:!1}))},we.prototype.refresh=function(Fe,He){var at;(at=this._renderService)===null||at===void 0||at.refreshRows(Fe,He)},we.prototype._queueLinkification=function(Fe,He){var at;(at=this.linkifier)===null||at===void 0||at.linkifyRows(Fe,He)},we.prototype.updateCursorStyle=function(Fe){this._selectionService&&this._selectionService.shouldColumnSelect(Fe)?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(Fe,He){vt.prototype.scrollLines.call(this,Fe,He),this.refresh(0,this.rows-1)},we.prototype.paste=function(Fe){fe.paste(Fe,this.textarea,this._coreService)},we.prototype.attachCustomKeyEventHandler=function(Fe){this._customKeyEventHandler=Fe},we.prototype.registerLinkMatcher=function(Fe,He,at){var We=this.linkifier.registerLinkMatcher(Fe,He,at);return this.refresh(0,this.rows-1),We},we.prototype.deregisterLinkMatcher=function(Fe){this.linkifier.deregisterLinkMatcher(Fe)&&this.refresh(0,this.rows-1)},we.prototype.registerLinkProvider=function(Fe){return this.linkifier2.registerLinkProvider(Fe)},we.prototype.registerCharacterJoiner=function(Fe){var He=this._renderService.registerCharacterJoiner(Fe);return this.refresh(0,this.rows-1),He},we.prototype.deregisterCharacterJoiner=function(Fe){this._renderService.deregisterCharacterJoiner(Fe)&&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(Fe){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Fe)},we.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},we.prototype.select=function(Fe,He,at){this._selectionService.setSelection(Fe,He,at)},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 Fe;(Fe=this._selectionService)===null||Fe===void 0||Fe.clearSelection()},we.prototype.selectAll=function(){var Fe;(Fe=this._selectionService)===null||Fe===void 0||Fe.selectAll()},we.prototype.selectLines=function(Fe,He){var at;(at=this._selectionService)===null||at===void 0||at.selectLines(Fe,He)},we.prototype._keyDown=function(Fe){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1)return!1;if(!this._compositionHelper.keydown(Fe))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var He=x.evaluateKeyboardEvent(Fe,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Fe),He.type===3||He.type===2){var at=this.rows-1;return this.scrollLines(He.type===2?-at:at),this.cancel(Fe,!0)}return He.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Fe)||(He.cancel&&this.cancel(Fe,!0),!He.key||(He.key!==ie.C0.ETX&&He.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:He.key,domEvent:Fe}),this._showCursor(),this._coreService.triggerDataEvent(He.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Fe,!0)))},we.prototype._isThirdLevelShift=function(Fe,He){var at=Fe.isMac&&!this.options.macOptionIsMeta&&He.altKey&&!He.ctrlKey&&!He.metaKey||Fe.isWindows&&He.altKey&&He.ctrlKey&&!He.metaKey;return He.type==="keypress"?at:at&&(!He.keyCode||He.keyCode>47)},we.prototype._keyUp=function(Fe){this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1||(function(He){return He.keyCode===16||He.keyCode===17||He.keyCode===18}(Fe)||this.focus(),this.updateCursorStyle(Fe))},we.prototype._keyPress=function(Fe){var He;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1)return!1;if(this.cancel(Fe),Fe.charCode)He=Fe.charCode;else if(Fe.which===null||Fe.which===void 0)He=Fe.keyCode;else{if(Fe.which===0||Fe.charCode===0)return!1;He=Fe.which}return!(!He||(Fe.altKey||Fe.ctrlKey||Fe.metaKey)&&!this._isThirdLevelShift(this.browser,Fe))&&(He=String.fromCharCode(He),this._onKey.fire({key:He,domEvent:Fe}),this._showCursor(),this._coreService.triggerDataEvent(He,!0),!0)},we.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},we.prototype.resize=function(Fe,He){Fe!==this.cols||He!==this.rows?vt.prototype.resize.call(this,Fe,He):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},we.prototype._afterResize=function(Fe,He){var at,We;(at=this._charSizeService)===null||at===void 0||at.measure(),(We=this.viewport)===null||We===void 0||We.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 Fe=1;Fe<this.rows;Fe++)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 Fe,He;this.options.rows=this.rows,this.options.cols=this.cols;var at=this._customKeyEventHandler;this._setup(),vt.prototype.reset.call(this),(Fe=this._selectionService)===null||Fe===void 0||Fe.reset(),this._customKeyEventHandler=at,this.refresh(0,this.rows-1),(He=this.viewport)===null||He===void 0||He.syncScrollArea()},we.prototype._reportWindowsOptions=function(Fe){if(this._renderService)switch(Fe){case de.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var He=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),at=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+at+";"+He+"t");break;case de.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var We=this._renderService.dimensions.scaledCellWidth.toFixed(0),pt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+pt+";"+We+"t")}},we.prototype.cancel=function(Fe,He){if(this.options.cancelEvents||He)return Fe.preventDefault(),Fe.stopPropagation(),!1},we.prototype._visualBell=function(){return!1},we.prototype._soundBell=function(){return this.options.bellStyle==="sound"},we}(Le.CoreTerminal);te.Terminal=Ye},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(ie,de,le,me){var ae,he=arguments.length,oe=he<3?de:me===null?me=Object.getOwnPropertyDescriptor(de,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,de,le,me);else for(var ne=ie.length-1;ne>=0;ne--)(ae=ie[ne])&&(oe=(he<3?ae(oe):he>3?ae(de,le,oe):ae(de,le))||oe);return he>3&&oe&&Object.defineProperty(de,le,oe),oe},be=this&&this.__param||function(ie,de){return function(le,me){de(le,me,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CompositionHelper=void 0;var pe=ee(5),Se=ee(1),fe=function(){function ie(de,le,me,ae,he,oe){this._textarea=de,this._compositionView=le,this._bufferService=me,this._optionsService=ae,this._charSizeService=he,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(de){var le=this;this._compositionView.textContent=de.data,this.updateCompositionElements(),setTimeout(function(){le._compositionPosition.end=le._textarea.value.length},0)},ie.prototype.compositionend=function(){this._finalizeComposition(!0)},ie.prototype.keydown=function(de){if(this._isComposing||this._isSendingComposition){if(de.keyCode===229||de.keyCode===16||de.keyCode===17||de.keyCode===18)return!1;this._finalizeComposition(!1)}return de.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ie.prototype._finalizeComposition=function(de){var le=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,de){var me={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(le._isSendingComposition){le._isSendingComposition=!1;var he=void 0;he=le._isComposing?le._textarea.value.substring(me.start,me.end):le._textarea.value.substring(me.start),le._coreService.triggerDataEvent(he,!0)}},0)}else{this._isSendingComposition=!1;var ae=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(ae,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var de=this,le=this._textarea.value;setTimeout(function(){if(!de._isComposing){var me=de._textarea.value.replace(le,"");me.length>0&&de._coreService.triggerDataEvent(me,!0)}},0)},ie.prototype.updateCompositionElements=function(de){var le=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var me=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),ae=this._bufferService.buffer.y*me,he=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=he+"px",this._compositionView.style.top=ae+"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=he+"px",this._textarea.style.top=ae+"px",this._textarea.style.width=oe.width+"px",this._textarea.style.height=oe.height+"px",this._textarea.style.lineHeight=oe.height+"px"}de||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},ie=ge([be(2,Se.IBufferService),be(3,Se.IOptionsService),be(4,pe.ICharSizeService),be(5,Se.ICoreService)],ie)}();te.CompositionHelper=fe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=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])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),pe=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Viewport=void 0;var fe=ee(2),ie=ee(7),de=ee(5),le=ee(1),me=function(ae){function he(oe,ne,a,y,E,b,x){var z=ae.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(he,ae),he.prototype.onThemeChange=function(oe){this._viewportElement.style.backgroundColor=oe.background.css},he.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()}))},he.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},he.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)},he.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)}},he.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)},he.prototype.onWheel=function(oe){var ne=this._getPixelsScrolled(oe);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},he.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},he.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},he.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},he.prototype.onTouchStart=function(oe){this._lastTouchY=oe.touches[0].pageY},he.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))},he=pe([Se(3,le.IBufferService),Se(4,le.IOptionsService),Se(5,de.ICharSizeService),Se(6,de.IRenderService)],he)}(fe.Disposable);te.Viewport=me},function(Ke,te,ee){"use strict";function ge(fe){return fe.replace(/\r?\n/g,"\r")}function be(fe,ie){return ie?"\x1B[200~"+fe+"\x1B[201~":fe}function pe(fe,ie,de){fe=be(fe=ge(fe),de.decPrivateModes.bracketedPasteMode),de.triggerDataEvent(fe,!0),ie.value=""}function Se(fe,ie,de){var le=de.getBoundingClientRect(),me=fe.clientX-le.left-10,ae=fe.clientY-le.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=me+"px",ie.style.top=ae+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(te,"__esModule",{value:!0}),te.rightClickHandler=te.moveTextAreaUnderMouseCursor=te.paste=te.handlePasteEvent=te.copyHandler=te.bracketTextForPaste=te.prepareTextForTerminal=void 0,te.prepareTextForTerminal=ge,te.bracketTextForPaste=be,te.copyHandler=function(fe,ie){fe.clipboardData&&fe.clipboardData.setData("text/plain",ie.selectionText),fe.preventDefault()},te.handlePasteEvent=function(fe,ie,de){fe.stopPropagation(),fe.clipboardData&&pe(fe.clipboardData.getData("text/plain"),ie,de)},te.paste=pe,te.moveTextAreaUnderMouseCursor=Se,te.rightClickHandler=function(fe,ie,de,le,me){Se(fe,ie,de),me&&!le.isClickInSelection(fe)&&le.selectWordAtCursor(fe),ie.value=le.selectionText,ie.select()}},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=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])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.EscapeSequenceParser=te.VT500_TRANSITION_TABLE=te.TransitionTable=void 0;var pe=ee(2),Se=ee(15),fe=ee(21),ie=ee(22),de=ee(24),le=function(){function ae(he){this.table=new Uint8Array(he)}return ae.prototype.setDefault=function(he,oe){Se.fill(this.table,he<<4|oe)},ae.prototype.add=function(he,oe,ne,a){this.table[oe<<8|he]=ne<<4|a},ae.prototype.addMany=function(he,oe,ne,a){for(var y=0;y<he.length;y++)this.table[oe<<8|he[y]]=ne<<4|a},ae}();te.TransitionTable=le,te.VT500_TRANSITION_TABLE=function(){var ae=new le(4095),he=Array.apply(null,Array(256)).map(function(b,x){return x}),oe=function(b,x){return he.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 ae.setDefault(1,0),ae.addMany(ne,0,2,0),E)ae.addMany([24,26,153,154],y,3,0),ae.addMany(oe(128,144),y,3,0),ae.addMany(oe(144,152),y,3,0),ae.add(156,y,0,0),ae.add(27,y,11,1),ae.add(157,y,4,8),ae.addMany([152,158,159],y,0,7),ae.add(155,y,11,3),ae.add(144,y,11,9);return ae.addMany(a,0,3,0),ae.addMany(a,1,3,1),ae.add(127,1,0,1),ae.addMany(a,8,0,8),ae.addMany(a,3,3,3),ae.add(127,3,0,3),ae.addMany(a,4,3,4),ae.add(127,4,0,4),ae.addMany(a,6,3,6),ae.addMany(a,5,3,5),ae.add(127,5,0,5),ae.addMany(a,2,3,2),ae.add(127,2,0,2),ae.add(93,1,4,8),ae.addMany(ne,8,5,8),ae.add(127,8,5,8),ae.addMany([156,27,24,26,7],8,6,0),ae.addMany(oe(28,32),8,0,8),ae.addMany([88,94,95],1,0,7),ae.addMany(ne,7,0,7),ae.addMany(a,7,0,7),ae.add(156,7,0,0),ae.add(127,7,0,7),ae.add(91,1,11,3),ae.addMany(oe(64,127),3,7,0),ae.addMany(oe(48,60),3,8,4),ae.addMany([60,61,62,63],3,9,4),ae.addMany(oe(48,60),4,8,4),ae.addMany(oe(64,127),4,7,0),ae.addMany([60,61,62,63],4,0,6),ae.addMany(oe(32,64),6,0,6),ae.add(127,6,0,6),ae.addMany(oe(64,127),6,0,0),ae.addMany(oe(32,48),3,9,5),ae.addMany(oe(32,48),5,9,5),ae.addMany(oe(48,64),5,0,6),ae.addMany(oe(64,127),5,7,0),ae.addMany(oe(32,48),4,9,5),ae.addMany(oe(32,48),1,9,2),ae.addMany(oe(32,48),2,9,2),ae.addMany(oe(48,127),2,10,0),ae.addMany(oe(48,80),1,10,0),ae.addMany(oe(81,88),1,10,0),ae.addMany([89,90,92],1,10,0),ae.addMany(oe(96,127),1,10,0),ae.add(80,1,11,9),ae.addMany(a,9,0,9),ae.add(127,9,0,9),ae.addMany(oe(28,32),9,0,9),ae.addMany(oe(32,48),9,9,12),ae.addMany(oe(48,60),9,8,10),ae.addMany([60,61,62,63],9,9,10),ae.addMany(a,11,0,11),ae.addMany(oe(32,128),11,0,11),ae.addMany(oe(28,32),11,0,11),ae.addMany(a,10,0,10),ae.add(127,10,0,10),ae.addMany(oe(28,32),10,0,10),ae.addMany(oe(48,60),10,8,10),ae.addMany([60,61,62,63],10,0,11),ae.addMany(oe(32,48),10,9,12),ae.addMany(a,12,0,12),ae.add(127,12,0,12),ae.addMany(oe(28,32),12,0,12),ae.addMany(oe(32,48),12,9,12),ae.addMany(oe(48,64),12,0,11),ae.addMany(oe(64,127),12,12,13),ae.addMany(oe(64,127),10,12,13),ae.addMany(oe(64,127),9,12,13),ae.addMany(a,13,13,13),ae.addMany(ne,13,13,13),ae.add(127,13,0,13),ae.addMany([27,156,24,26],13,14,0),ae.add(160,0,2,0),ae.add(160,8,5,8),ae.add(160,6,0,6),ae.add(160,11,0,11),ae.add(160,13,13,13),ae}();var me=function(ae){function he(oe){oe===void 0&&(oe=te.VT500_TRANSITION_TABLE);var ne=ae.call(this)||this;return ne._transitions=oe,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new fe.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 de.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(he,ae),he.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},he.prototype.identToString=function(oe){for(var ne=[];oe;)ne.push(String.fromCharCode(255&oe)),oe>>=8;return ne.reverse().join("")},he.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},he.prototype.setPrintHandler=function(oe){this._printHandler=oe},he.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},he.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)}}},he.prototype.setEscHandler=function(oe,ne){this._escHandlers[this._identifier(oe,[48,126])]=[ne]},he.prototype.clearEscHandler=function(oe){this._escHandlers[this._identifier(oe,[48,126])]&&delete this._escHandlers[this._identifier(oe,[48,126])]},he.prototype.setEscHandlerFallback=function(oe){this._escHandlerFb=oe},he.prototype.setExecuteHandler=function(oe,ne){this._executeHandlers[oe.charCodeAt(0)]=ne},he.prototype.clearExecuteHandler=function(oe){this._executeHandlers[oe.charCodeAt(0)]&&delete this._executeHandlers[oe.charCodeAt(0)]},he.prototype.setExecuteHandlerFallback=function(oe){this._executeHandlerFb=oe},he.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)}}},he.prototype.setCsiHandler=function(oe,ne){this._csiHandlers[this._identifier(oe)]=[ne]},he.prototype.clearCsiHandler=function(oe){this._csiHandlers[this._identifier(oe)]&&delete this._csiHandlers[this._identifier(oe)]},he.prototype.setCsiHandlerFallback=function(oe){this._csiHandlerFb=oe},he.prototype.addDcsHandler=function(oe,ne){return this._dcsParser.addHandler(this._identifier(oe),ne)},he.prototype.setDcsHandler=function(oe,ne){this._dcsParser.setHandler(this._identifier(oe),ne)},he.prototype.clearDcsHandler=function(oe){this._dcsParser.clearHandler(this._identifier(oe))},he.prototype.setDcsHandlerFallback=function(oe){this._dcsParser.setHandlerFallback(oe)},he.prototype.addOscHandler=function(oe,ne){return this._oscParser.addHandler(oe,ne)},he.prototype.setOscHandler=function(oe,ne){this._oscParser.setHandler(oe,ne)},he.prototype.clearOscHandler=function(oe){this._oscParser.clearHandler(oe)},he.prototype.setOscHandlerFallback=function(oe){this._oscParser.setHandlerFallback(oe)},he.prototype.setErrorHandler=function(oe){this._errorHandler=oe},he.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},he.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},he.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,se=this._transitions.table,ce=0;ce<ne;++ce){switch((y=se[E<<8|((a=oe[ce])<160?a:160)])>>4){case 2:for(var _e=ce+1;;++_e){if(_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=oe[_e])<32||a>126&&a<160){this._printHandler(oe,ce,_e),ce=_e-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:ce,code:a,currentState:E,collect:z,params:re,abort:!1}).abort)return;break;case 7:for(var ye=this._csiHandlers[z<<8|a],De=ye?ye.length-1:-1;De>=0&&ye[De](re)===!1;De--);De<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(++ce<ne&&(a=oe[ce])>47&&a<60);ce--;break;case 9:z<<=8,z|=a;break;case 10:for(var Ee=this._escHandlers[z<<8|a],je=Ee?Ee.length-1:-1;je>=0&&Ee[je]()===!1;je--);je<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 Le=ce+1;;++Le)if(Le>=ne||(a=oe[Le])===24||a===26||a===27||a>127&&a<160){x.put(oe,ce,Le),ce=Le-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 ht=ce+1;;ht++)if(ht>=ne||(a=oe[ht])<32||a>127&&a<=159){b.put(oe,ce,ht),ce=ht-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},he}(pe.Disposable);te.EscapeSequenceParser=me},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var se in re)re.hasOwnProperty(se)&&(z[se]=re[se])})(b,x)},function(b,x){function z(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),pe=this&&this.__decorate||function(b,x,z,re){var se,ce=arguments.length,_e=ce<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(b,x,z,re);else for(var ye=b.length-1;ye>=0;ye--)(se=b[ye])&&(_e=(ce<3?se(_e):ce>3?se(x,z,_e):se(x,z))||_e);return ce>3&&_e&&Object.defineProperty(x,z,_e),_e},Se=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Renderer=void 0;var fe=ee(41),ie=ee(47),de=ee(48),le=ee(49),me=ee(29),ae=ee(2),he=ee(5),oe=ee(1),ne=ee(25),a=ee(0),y=1,E=function(b){function x(z,re,se,ce,_e,ye,De,Ee,je){var Le=b.call(this)||this;Le._colors=z,Le._screenElement=re,Le._bufferService=_e,Le._charSizeService=ye,Le._optionsService=De,Le._id=y++,Le._onRequestRedraw=new a.EventEmitter;var ht=Le._optionsService.options.allowTransparency;return Le._characterJoinerRegistry=new me.CharacterJoinerRegistry(Le._bufferService),Le._renderLayers=[new fe.TextRenderLayer(Le._screenElement,0,Le._colors,Le._characterJoinerRegistry,ht,Le._id,Le._bufferService,De),new ie.SelectionRenderLayer(Le._screenElement,1,Le._colors,Le._id,Le._bufferService,De),new le.LinkRenderLayer(Le._screenElement,2,Le._colors,Le._id,se,ce,Le._bufferService,De),new de.CursorRenderLayer(Le._screenElement,3,Le._colors,Le._id,Le._onRequestRedraw,Le._bufferService,De,Ee,je)],Le.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},Le._devicePixelRatio=window.devicePixelRatio,Le._updateDimensions(),Le.onOptionsChanged(),Le}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,se=this._renderLayers;re<se.length;re++){var ce=se[re];ce.setColors(this._colors),ce.reset()}},x.prototype.onResize=function(z,re){this._updateDimensions();for(var se=0,ce=this._renderLayers;se<ce.length;se++)ce[se].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,se){se===void 0&&(se=!1),this._runOperation(function(ce){return ce.onSelectionChanged(z,re,se)})},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,se=this._renderLayers;re<se.length;re++)z(se[re])},x.prototype.renderRows=function(z,re){for(var se=0,ce=this._renderLayers;se<ce.length;se++)ce[se].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=pe([Se(4,oe.IBufferService),Se(5,he.ICharSizeService),Se(6,oe.IOptionsService),Se(7,oe.ICoreService),Se(8,he.ICoreBrowserService)],x)}(ae.Disposable);te.Renderer=E},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=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])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.TextRenderLayer=void 0;var pe=ee(42),Se=ee(13),fe=ee(6),ie=ee(3),de=ee(29),le=ee(4),me=function(ae){function he(oe,ne,a,y,E,b,x,z){var re=ae.call(this,oe,"text",ne,E,a,b,x,z)||this;return re._characterWidth=0,re._characterFont="",re._characterOverlapCache={},re._workCell=new le.CellData,re._state=new pe.GridCache,re._characterJoinerRegistry=y,re}return be(he,ae),he.prototype.resize=function(oe){ae.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)},he.prototype.reset=function(){this._state.clear(),this._clearAll()},he.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 se=this._workCell,ce=!1,_e=re;if(se.getWidth()!==0){if(z.length>0&&re===z[0][0]){ce=!0;var ye=z.shift();se=new de.JoinedCellData(this._workCell,x.translateToString(!0,ye[0],ye[1]),ye[1]-ye[0]),_e=ye[1]-1}!ce&&this._isOverlapping(se)&&_e<x.length-1&&x.getCodePoint(_e+1)===ie.NULL_CELL_CODE&&(se.content&=-12582913,se.content|=2<<22),y(se,re,E),re=_e}}},he.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,se,ce){var _e=null;re.isInverse()?_e=re.isFgDefault()?a._colors.foreground.css:re.isFgRGB()?"rgb("+fe.AttributeData.toColorRGB(re.getFgColor()).join(",")+")":a._colors.ansi[re.getFgColor()].css:re.isBgRGB()?_e="rgb("+fe.AttributeData.toColorRGB(re.getBgColor()).join(",")+")":re.isBgPalette()&&(_e=a._colors.ansi[re.getBgColor()].css),z===null&&(b=se,x=ce),ce!==x?(y.fillStyle=z||"",a._fillCells(b,x,E-b,1),b=se,x=ce):z!==_e&&(y.fillStyle=z||"",a._fillCells(b,x,se-b,1),b=se,x=ce),z=_e}),z!==null&&(y.fillStyle=z,this._fillCells(b,x,E-b,1)),y.restore()},he.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("+fe.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("+fe.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()}})},he.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))},he.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},he.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},he}(Se.BaseRenderLayer);te.TextRenderLayer=me},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.GridCache=void 0;var ge=function(){function be(){this.cache=[]}return be.prototype.resize=function(pe,Se){for(var fe=0;fe<pe;fe++){this.cache.length<=fe&&this.cache.push([]);for(var ie=this.cache[fe].length;ie<Se;ie++)this.cache[fe].push(void 0);this.cache[fe].length=Se}this.cache.length=pe},be.prototype.clear=function(){for(var pe=0;pe<this.cache.length;pe++)for(var Se=0;Se<this.cache[pe].length;Se++)this.cache[pe][Se]=void 0},be}();te.GridCache=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(a,y){return(ge=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}ge(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(te,"__esModule",{value:!0}),te.NoneCharAtlas=te.DynamicCharAtlas=te.getGlyphCacheKey=void 0;var pe=ee(9),Se=ee(44),fe=ee(27),ie=ee(46),de=ee(11),le=ee(28),me=ee(10),ae={css:"rgba(0, 0, 0, 0)",rgba:0};function he(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}te.getGlyphCacheKey=he;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=le.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var z=E.createElement("canvas");z.width=x._config.scaledCharWidth,z.height=x._config.scaledCharHeight,x._tmpCtx=le.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=he(b),se=this._cacheMap.get(re);if(se!=null)return this._drawFromCache(E,se,x,z),!0;if(this._drawToCacheCount<100){var ce=void 0;ce=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var _e=this._drawToCache(b,ce);return this._cacheMap.set(re,_e),this._drawFromCache(E,_e,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),se=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,re,se,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]:fe.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?ae:E.bg===pe.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===pe.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=pe.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ce=!1;this._config.allowTransparency||(ce=function(Ee,je){for(var Le=!0,ht=je.rgba>>>24,Ye=je.rgba>>>16&255,vt=je.rgba>>>8&255,we=0;we<Ee.data.length;we+=4)Ee.data[we]===ht&&Ee.data[we+1]===Ye&&Ee.data[we+2]===vt?Ee.data[we+3]=0:Le=!1;return Le}(se,x));var _e=this._toCoordinateX(b),ye=this._toCoordinateY(b);this._cacheCtx.putImageData(se,_e,ye);var De={index:b,isEmpty:ce,inBitmap:!1};return this._addGlyphToBitmap(De),De},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||de.isFirefox||de.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}(Se.BaseCharAtlas);te.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}(Se.BaseCharAtlas);te.NoneCharAtlas=ne},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseCharAtlas=void 0;var ge=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}();te.BaseCharAtlas=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorContrastCache=void 0;var ge=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(pe,Se,fe){this._rgba[pe]||(this._rgba[pe]={}),this._rgba[pe][Se]=fe},be.prototype.getCss=function(pe,Se){return this._rgba[pe]?this._rgba[pe][Se]:void 0},be.prototype.setColor=function(pe,Se,fe){this._color[pe]||(this._color[pe]={}),this._color[pe][Se]=fe},be.prototype.getColor=function(pe,Se){return this._color[pe]?this._color[pe][Se]:void 0},be}();te.ColorContrastCache=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.LRUMap=void 0;var ge=function(){function be(pe){this.capacity=pe,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return be.prototype._unlinkNode=function(pe){var Se=pe.prev,fe=pe.next;pe===this._head&&(this._head=fe),pe===this._tail&&(this._tail=Se),Se!==null&&(Se.next=fe),fe!==null&&(fe.prev=Se)},be.prototype._appendNode=function(pe){var Se=this._tail;Se!==null&&(Se.next=pe),pe.prev=Se,pe.next=null,this._tail=pe,this._head===null&&(this._head=pe)},be.prototype.prealloc=function(pe){for(var Se=this._nodePool,fe=0;fe<pe;fe++)Se.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(pe){var Se=this._map[pe];return Se!==void 0?(this._unlinkNode(Se),this._appendNode(Se),Se.value):null},be.prototype.peekValue=function(pe){var Se=this._map[pe];return Se!==void 0?Se.value:null},be.prototype.peek=function(){var pe=this._head;return pe===null?null:pe.value},be.prototype.set=function(pe,Se){var fe=this._map[pe];if(fe!==void 0)fe=this._map[pe],this._unlinkNode(fe),fe.value=Se;else if(this.size>=this.capacity)fe=this._head,this._unlinkNode(fe),delete this._map[fe.key],fe.key=pe,fe.value=Se,this._map[pe]=fe;else{var ie=this._nodePool;ie.length>0?((fe=ie.pop()).key=pe,fe.value=Se):fe={prev:null,next:null,key:pe,value:Se},this._map[pe]=fe,this.size++}this._appendNode(fe)},be}();te.LRUMap=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(Se,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,de){ie.__proto__=de}||function(ie,de){for(var le in de)de.hasOwnProperty(le)&&(ie[le]=de[le])})(Se,fe)},function(Se,fe){function ie(){this.constructor=Se}ge(Se,fe),Se.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionRenderLayer=void 0;var pe=function(Se){function fe(ie,de,le,me,ae,he){var oe=Se.call(this,ie,"selection",de,!0,le,me,ae,he)||this;return oe._clearState(),oe}return be(fe,Se),fe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},fe.prototype.resize=function(ie){Se.prototype.resize.call(this,ie),this._clearState()},fe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},fe.prototype.onSelectionChanged=function(ie,de,le){if(this._didStateChange(ie,de,le,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&de){var me=ie[1]-this._bufferService.buffer.ydisp,ae=de[1]-this._bufferService.buffer.ydisp,he=Math.max(me,0),oe=Math.min(ae,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||oe<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=ie[0],a=de[0]-ne,y=oe-he+1;this._fillCells(ne,he,a,y)}else{ne=me===he?ie[0]:0;var E=he===oe?de[0]:this._bufferService.cols;this._fillCells(ne,he,E-ne,1);var b=Math.max(oe-he-1,0);if(this._fillCells(0,he+1,this._bufferService.cols,b),he!==oe){var x=ae===oe?de[0]:this._bufferService.cols;this._fillCells(0,oe,x,1)}}this._state.start=[ie[0],ie[1]],this._state.end=[de[0],de[1]],this._state.columnSelectMode=le,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},fe.prototype._didStateChange=function(ie,de,le,me){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(de,this._state.end)||le!==this._state.columnSelectMode||me!==this._state.ydisp},fe.prototype._areCoordinatesEqual=function(ie,de){return!(!ie||!de)&&ie[0]===de[0]&&ie[1]===de[1]},fe}(ee(13).BaseRenderLayer);te.SelectionRenderLayer=pe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CursorRenderLayer=void 0;var pe=ee(13),Se=ee(4),fe=function(de){function le(me,ae,he,oe,ne,a,y,E,b){var x=de.call(this,me,"cursor",ae,!0,he,oe,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new Se.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(le,de),le.prototype.resize=function(me){de.prototype.resize.call(this,me),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},le.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},le.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onOptionsChanged=function(){var me,ae=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){ae._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})},le.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype.onGridChanged=function(me,ae){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype._render=function(me){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var ae=this._bufferService.buffer.ybase+this._bufferService.buffer.y,he=ae-this._bufferService.buffer.ydisp;if(he<0||he>=this._bufferService.rows)this._clearCursor();else{var oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(ae).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,he,this._cell):this._renderBlurCursor(oe,he,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=he,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===he&&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,he,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=he,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},le.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})},le.prototype._renderBarCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(me,ae,this._optionsService.options.cursorWidth),this._ctx.restore()},le.prototype._renderBlockCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(me,ae,he.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(he,me,ae),this._ctx.restore()},le.prototype._renderUnderlineCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(me,ae),this._ctx.restore()},le.prototype._renderBlurCursor=function(me,ae,he){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(me,ae,he.getWidth(),1),this._ctx.restore()},le}(pe.BaseRenderLayer);te.CursorRenderLayer=fe;var ie=function(){function de(le,me){this._renderCallback=me,this.isCursorVisible=!0,le&&this._restartInterval()}return Object.defineProperty(de.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),de.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)},de.prototype.restartBlinkAnimation=function(){var le=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){le._renderCallback(),le._animationFrame=void 0})))},de.prototype._restartInterval=function(le){var me=this;le===void 0&&(le=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(me._animationTimeRestarted){var ae=600-(Date.now()-me._animationTimeRestarted);if(me._animationTimeRestarted=void 0,ae>0)return void me._restartInterval(ae)}me.isCursorVisible=!1,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0}),me._blinkInterval=window.setInterval(function(){if(me._animationTimeRestarted){var he=600-(Date.now()-me._animationTimeRestarted);return me._animationTimeRestarted=void 0,void me._restartInterval(he)}me.isCursorVisible=!me.isCursorVisible,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0})},600)},le)},de.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)},de.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},de}()},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.LinkRenderLayer=void 0;var pe=ee(13),Se=ee(9),fe=ee(26),ie=function(de){function le(me,ae,he,oe,ne,a,y,E){var b=de.call(this,me,"link",ae,!0,he,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(le,de),le.prototype.resize=function(me){de.prototype.resize.call(this,me),this._state=void 0},le.prototype.reset=function(){this._clearCurrentLink()},le.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}},le.prototype._onShowLinkUnderline=function(me){if(me.fg===Se.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:me.fg&&fe.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 ae=me.y1+1;ae<me.y2;ae++)this._fillBottomLineAtCells(0,ae,me.cols);this._fillBottomLineAtCells(0,me.y2,me.x2)}this._state=me},le.prototype._onHideLinkUnderline=function(me){this._clearCurrentLink()},le}(pe.BaseRenderLayer);te.LinkRenderLayer=ie},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(de,le,me,ae){var he,oe=arguments.length,ne=oe<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,me,ae);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(oe<3?he(ne):oe>3?he(le,me,ne):he(le,me))||ne);return oe>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(de,le){return function(me,ae){le(me,ae,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZone=te.Linkifier=void 0;var pe=ee(0),Se=ee(1),fe=function(){function de(le,me,ae){this._bufferService=le,this._logService=me,this._unicodeService=ae,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new pe.EventEmitter,this._onHideLinkUnderline=new pe.EventEmitter,this._onLinkTooltip=new pe.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(de.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),de.prototype.attachToDom=function(le,me){this._element=le,this._mouseZoneManager=me},de.prototype.linkifyRows=function(le,me){var ae=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=le,this._rowsToLinkify.end=me):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,le),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,me)),this._mouseZoneManager.clearAll(le,me),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return ae._linkifyRows()},de._timeBeforeLatency))},de.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var le=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var me=le.ydisp+this._rowsToLinkify.start;if(!(me>=le.lines.length)){for(var ae=le.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,he=Math.ceil(2e3/this._bufferService.cols),oe=this._bufferService.buffer.iterator(!1,me,ae,he,he);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")},de.prototype.registerLinkMatcher=function(le,me,ae){if(ae===void 0&&(ae={}),!me)throw new Error("handler must be defined");var he={id:this._nextLinkMatcherId++,regex:le,handler:me,matchIndex:ae.matchIndex,validationCallback:ae.validationCallback,hoverTooltipCallback:ae.tooltipCallback,hoverLeaveCallback:ae.leaveCallback,willLinkActivate:ae.willLinkActivate,priority:ae.priority||0};return this._addLinkMatcherToList(he),he.id},de.prototype._addLinkMatcherToList=function(le){if(this._linkMatchers.length!==0){for(var me=this._linkMatchers.length-1;me>=0;me--)if(le.priority<=this._linkMatchers[me].priority)return void this._linkMatchers.splice(me+1,0,le);this._linkMatchers.splice(0,0,le)}else this._linkMatchers.push(le)},de.prototype.deregisterLinkMatcher=function(le){for(var me=0;me<this._linkMatchers.length;me++)if(this._linkMatchers[me].id===le)return this._linkMatchers.splice(me,1),!0;return!1},de.prototype._doLinkifyRow=function(le,me,ae){for(var he,oe=this,ne=new RegExp(ae.regex.source,(ae.regex.flags||"")+"g"),a=-1,y=function(){var b=he[typeof ae.matchIndex!="number"?0:ae.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",he,ae),"break";if(a=me.indexOf(b,a+1),ne.lastIndex=a+b.length,a<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(le,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]),se=re?re>>9&511:void 0;ae.validationCallback?ae.validationCallback(b,function(ce){oe._rowsTimeoutId||ce&&oe._addLink(x[1],x[0]-oe._bufferService.buffer.ydisp,b,ae,se)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,ae,se)},E=this;(he=ne.exec(me))!==null&&y()!=="break";);},de.prototype._addLink=function(le,me,ae,he,oe){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(ae),y=le%this._bufferService.cols,E=me+Math.floor(le/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(he.handler)return he.handler(z,ae);var re=window.open();re?(re.opener=null,re.location.href=ae):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)),he.hoverTooltipCallback&&he.hoverTooltipCallback(z,ae,{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"),he.hoverLeaveCallback&&he.hoverLeaveCallback()},function(z){return!he.willLinkActivate||he.willLinkActivate(z,ae)}))}},de.prototype._createLinkHoverEvent=function(le,me,ae,he,oe){return{x1:le,y1:me,x2:ae,y2:he,cols:this._bufferService.cols,fg:oe}},de._timeBeforeLatency=200,de=ge([be(0,Se.IBufferService),be(1,Se.ILogService),be(2,Se.IUnicodeService)],de)}();te.Linkifier=fe;var ie=function(de,le,me,ae,he,oe,ne,a,y){this.x1=de,this.y1=le,this.x2=me,this.y2=ae,this.clickCallback=he,this.hoverCallback=oe,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};te.MouseZone=ie},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var se in re)re.hasOwnProperty(se)&&(z[se]=re[se])})(b,x)},function(b,x){function z(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),pe=this&&this.__decorate||function(b,x,z,re){var se,ce=arguments.length,_e=ce<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(b,x,z,re);else for(var ye=b.length-1;ye>=0;ye--)(se=b[ye])&&(_e=(ce<3?se(_e):ce>3?se(x,z,_e):se(x,z))||_e);return ce>3&&_e&&Object.defineProperty(x,z,_e),_e},Se=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionService=void 0;var fe=ee(11),ie=ee(52),de=ee(4),le=ee(0),me=ee(5),ae=ee(1),he=ee(30),oe=ee(53),ne=ee(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(z,re,se,ce,_e,ye,De){var Ee=b.call(this)||this;return Ee._element=z,Ee._screenElement=re,Ee._bufferService=se,Ee._coreService=ce,Ee._mouseService=_e,Ee._optionsService=ye,Ee._renderService=De,Ee._dragScrollAmount=0,Ee._enabled=!0,Ee._workCell=new de.CellData,Ee._mouseDownTimeStamp=0,Ee._onLinuxMouseSelection=Ee.register(new le.EventEmitter),Ee._onRedrawRequest=Ee.register(new le.EventEmitter),Ee._onSelectionChange=Ee.register(new le.EventEmitter),Ee._onRequestScrollLines=Ee.register(new le.EventEmitter),Ee._mouseMoveListener=function(je){return Ee._onMouseMove(je)},Ee._mouseUpListener=function(je){return Ee._onMouseUp(je)},Ee._coreService.onUserInput(function(){Ee.hasSelection&&Ee.clearSelection()}),Ee._trimListener=Ee._bufferService.buffer.lines.onTrim(function(je){return Ee._onTrim(je)}),Ee.register(Ee._bufferService.buffers.onBufferActivate(function(je){return Ee._onBufferActivate(je)})),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 se=this._bufferService.buffer,ce=[];if(this._activeSelectionMode===3){if(z[0]===re[0])return"";for(var _e=z[1];_e<=re[1];_e++){var ye=se.translateBufferLineToString(_e,!0,z[0],re[0]);ce.push(ye)}}else{var De=z[1]===re[1]?re[0]:void 0;for(ce.push(se.translateBufferLineToString(z[1],!0,z[0],De)),_e=z[1]+1;_e<=re[1]-1;_e++){var Ee=se.lines.get(_e);ye=se.translateBufferLineToString(_e,!0),Ee&&Ee.isWrapped?ce[ce.length-1]+=ye:ce.push(ye)}z[1]!==re[1]&&(Ee=se.lines.get(re[1]),ye=se.translateBufferLineToString(re[1],!0,0,re[0]),Ee&&Ee.isWrapped?ce[ce.length-1]+=ye:ce.push(ye))}return ce.map(function(je){return je.replace(y," ")}).join(fe.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()})),fe.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),se=this._model.finalSelectionStart,ce=this._model.finalSelectionEnd;return!!(se&&ce&&re)&&this._areCoordsInSelection(re,se,ce)},x.prototype._areCoordsInSelection=function(z,re,se){return z[1]>re[1]&&z[1]<se[1]||re[1]===se[1]&&z[1]===re[1]&&z[0]>=re[0]&&z[0]<se[0]||re[1]<se[1]&&z[1]===se[1]&&z[0]<se[0]||re[1]<se[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=he.getCoordsRelativeToElement(z,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return re>=0&&re<=se?0:(re>se&&(re-=se),re=Math.min(Math.max(re,-50),50),(re/=50)/Math.abs(re)+Math.round(14*re))},x.prototype.shouldForceSelection=function(z){return fe.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&&!(fe.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 se=this._bufferService.buffer;if(this._model.selectionEnd[1]<se.lines.length){var ce=se.lines.get(this._model.selectionEnd[1]);ce&&ce.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 se=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&se[0]!==void 0&&se[1]!==void 0){var ce=oe.moveToCellSequence(se[0]-1,se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ce,!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(se){return re._onTrim(se)})},x.prototype._convertViewportColToCharacterIndex=function(z,re){for(var se=re[0],ce=0;re[0]>=ce;ce++){var _e=z.loadCell(ce,this._workCell).getChars().length;this._workCell.getWidth()===0?se--:_e>1&&re[0]!==ce&&(se+=_e-1)}return se},x.prototype.setSelection=function(z,re,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,re],this._model.selectionStartLength=se,this.refresh()},x.prototype._getWordAt=function(z,re,se,ce){if(se===void 0&&(se=!0),ce===void 0&&(ce=!0),!(z[0]>=this._bufferService.cols)){var _e=this._bufferService.buffer,ye=_e.lines.get(z[1]);if(ye){var De=_e.translateBufferLineToString(z[1],!1),Ee=this._convertViewportColToCharacterIndex(ye,z),je=Ee,Le=z[0]-Ee,ht=0,Ye=0,vt=0,we=0;if(De.charAt(Ee)===" "){for(;Ee>0&&De.charAt(Ee-1)===" ";)Ee--;for(;je<De.length&&De.charAt(je+1)===" ";)je++}else{var Fe=z[0],He=z[0];ye.getWidth(Fe)===0&&(ht++,Fe--),ye.getWidth(He)===2&&(Ye++,He++);var at=ye.getString(He).length;for(at>1&&(we+=at-1,je+=at-1);Fe>0&&Ee>0&&!this._isCharWordSeparator(ye.loadCell(Fe-1,this._workCell));){ye.loadCell(Fe-1,this._workCell);var We=this._workCell.getChars().length;this._workCell.getWidth()===0?(ht++,Fe--):We>1&&(vt+=We-1,Ee-=We-1),Ee--,Fe--}for(;He<ye.length&&je+1<De.length&&!this._isCharWordSeparator(ye.loadCell(He+1,this._workCell));){ye.loadCell(He+1,this._workCell);var pt=this._workCell.getChars().length;this._workCell.getWidth()===2?(Ye++,He++):pt>1&&(we+=pt-1,je+=pt-1),je++,He++}}je++;var Pt=Ee+Le-ht+vt,At=Math.min(this._bufferService.cols,je-Ee+ht+Ye-vt-we);if(re||De.slice(Ee,je).trim()!==""){if(se&&Pt===0&&ye.getCodePoint(0)!==32){var Bt=_e.lines.get(z[1]-1);if(Bt&&ye.isWrapped&&Bt.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(ce&&Pt+At===this._bufferService.cols&&ye.getCodePoint(this._bufferService.cols-1)!==32){var Ct=_e.lines.get(z[1]+1);if(Ct&&Ct.isWrapped&&Ct.getCodePoint(0)!==32){var zt=this._getWordAt([0,z[1]+1],!1,!1,!0);zt&&(At+=zt.length)}}return{start:Pt,length:At}}}}},x.prototype._selectWordAt=function(z,re){var se=this._getWordAt(z,re);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[se.start,z[1]],this._model.selectionStartLength=se.length}},x.prototype._selectToWordAt=function(z){var re=this._getWordAt(z,!0);if(re){for(var se=z[1];re.start<0;)re.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;re.start+re.length>this._bufferService.cols;)re.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?re.start:re.start+re.length,se]}},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=pe([Se(2,ae.IBufferService),Se(3,ae.ICoreService),Se(4,me.IMouseService),Se(5,ae.IOptionsService),Se(6,me.IRenderService)],x)}(ne.Disposable);te.SelectionService=E},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionModel=void 0;var ge=function(){function be(pe){this._bufferService=pe,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 pe=this.selectionStart[0]+this.selectionStartLength;return pe>this._bufferService.cols?[pe%this._bufferService.cols,this.selectionStart[1]+Math.floor(pe/this._bufferService.cols)]:[pe,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 pe=this.selectionStart,Se=this.selectionEnd;return!(!pe||!Se)&&(pe[1]>Se[1]||pe[1]===Se[1]&&pe[0]>Se[0])},be.prototype.onTrim=function(pe){return this.selectionStart&&(this.selectionStart[1]-=pe),this.selectionEnd&&(this.selectionEnd[1]-=pe),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},be}();te.SelectionModel=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.moveToCellSequence=void 0;var ge=ee(12);function be(le,me,ae,he){var oe=le-pe(ae,le),ne=me-pe(ae,me);return de(Math.abs(oe-ne)-function(a,y,E){for(var b=0,x=a-pe(E,a),z=y-pe(E,y),re=0;re<Math.abs(x-z);re++){var se=Se(a,y)==="A"?-1:1,ce=E.buffer.lines.get(x+se*re);ce&&ce.isWrapped&&b++}return b}(le,me,ae),ie(Se(le,me),he))}function pe(le,me){for(var ae=0,he=le.buffer.lines.get(me),oe=he&&he.isWrapped;oe&&me>=0&&me<le.rows;)ae++,oe=(he=le.buffer.lines.get(--me))&&he.isWrapped;return ae}function Se(le,me){return le>me?"A":"B"}function fe(le,me,ae,he,oe,ne){for(var a=le,y=me,E="";a!==ae||y!==he;)a+=oe?1:-1,oe&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!oe&&a<0&&(E+=ne.buffer.translateBufferLineToString(y,!1,0,le+1),le=a=ne.cols-1,y--);return E+ne.buffer.translateBufferLineToString(y,!1,le,a)}function ie(le,me){var ae=me?"O":"[";return ge.C0.ESC+ae+le}function de(le,me){le=Math.floor(le);for(var ae="",he=0;he<le;he++)ae+=me;return ae}te.moveToCellSequence=function(le,me,ae,he){var oe,ne=ae.buffer.x,a=ae.buffer.y;if(!ae.buffer.hasScrollback)return function(E,b,x,z,re,se){return be(b,z,re,se).length===0?"":de(fe(E,b,E,b-pe(re,b),!1,re).length,ie("D",se))}(ne,a,0,me,ae,he)+be(a,me,ae,he)+function(E,b,x,z,re,se){var ce;ce=be(b,z,re,se).length>0?z-pe(re,z):b;var _e=z,ye=function(De,Ee,je,Le,ht,Ye){var vt;return vt=be(je,Le,ht,Ye).length>0?Le-pe(ht,Le):Ee,De<je&&vt<=Le||De>=je&&vt<Le?"C":"D"}(E,b,x,z,re,se);return de(fe(E,ce,x,_e,ye==="C",re).length,ie(ye,se))}(ne,a,le,me,ae,he);if(a===me)return oe=ne>le?"D":"C",de(Math.abs(ne-le),ie(oe,he));oe=a>me?"D":"C";var y=Math.abs(a-me);return de(function(E,b){return b.cols-E}(a>me?le:ne,ae)+(y-1)*ae.cols+1+((a>me?ne:le)-1),ie(oe,he))}},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,ie,de,le){var me,ae=arguments.length,he=ae<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,ie,de,le);else for(var oe=fe.length-1;oe>=0;oe--)(me=fe[oe])&&(he=(ae<3?me(he):ae>3?me(ie,de,he):me(ie,de))||he);return ae>3&&he&&Object.defineProperty(ie,de,he),he},be=this&&this.__param||function(fe,ie){return function(de,le){ie(de,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SoundService=void 0;var pe=ee(1),Se=function(){function fe(ie){this._optionsService=ie}return Object.defineProperty(fe,"audioContext",{get:function(){if(!fe._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;fe._audioContext=new ie}return fe._audioContext},enumerable:!1,configurable:!0}),fe.prototype.playBellSound=function(){var ie=fe.audioContext;if(ie){var de=ie.createBufferSource();ie.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(le){de.buffer=le,de.connect(ie.destination),de.start(0)})}},fe.prototype._base64ToArrayBuffer=function(ie){for(var de=window.atob(ie),le=de.length,me=new Uint8Array(le),ae=0;ae<le;ae++)me[ae]=de.charCodeAt(ae);return me.buffer},fe.prototype._removeMimeType=function(ie){return ie.split(",")[1]},fe=ge([be(0,pe.IOptionsService)],fe)}();te.SoundService=Se},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=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])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),pe=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZoneManager=void 0;var fe=ee(2),ie=ee(7),de=ee(5),le=ee(1),me=function(ae){function he(oe,ne,a,y,E,b){var x=ae.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(he,ae),he.prototype.dispose=function(){ae.prototype.dispose.call(this),this._deactivate()},he.prototype.add=function(oe){this._zones.push(oe),this._zones.length===1&&this._activate()},he.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()}},he.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))},he.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))},he.prototype._onMouseMove=function(oe){this._lastHoverCoords[0]===oe.pageX&&this._lastHoverCoords[1]===oe.pageY||(this._onHover(oe),this._lastHoverCoords=[oe.pageX,oe.pageY])},he.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)))},he.prototype._onTooltip=function(oe){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(oe);ne&&ne.tooltipCallback&&ne.tooltipCallback(oe)},he.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())}},he.prototype._onMouseLeave=function(oe){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},he.prototype._onClick=function(oe){var ne=this._findZoneEventAt(oe),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(oe),oe.preventDefault(),oe.stopImmediatePropagation())},he.prototype._getSelectionLength=function(){var oe=this._selectionService.selectionText;return oe?oe.length:0},he.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}},he=pe([Se(2,le.IBufferService),Se(3,de.IMouseService),Se(4,de.ISelectionService),Se(5,le.IOptionsService)],he)}(fe.Disposable);te.MouseZoneManager=me},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(he,oe){return(ge=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])})(he,oe)},function(he,oe){function ne(){this.constructor=he}ge(he,oe),he.prototype=oe===null?Object.create(oe):(ne.prototype=oe.prototype,new ne)});Object.defineProperty(te,"__esModule",{value:!0}),te.AccessibilityManager=void 0;var pe=ee(18),Se=ee(11),fe=ee(31),ie=ee(7),de=ee(2),le=ee(32),me=ee(17),ae=function(he){function oe(ne,a){var y=he.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 fe.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 le.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,he),oe.prototype.dispose=function(){he.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+=pe.tooMuchOutput)),Se.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,Se.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="&nbsp;":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}(de.Disposable);te.AccessibilityManager=ae},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(y,E){return(ge=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}ge(y,E),y.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),pe=this&&this.__decorate||function(y,E,b,x){var z,re=arguments.length,se=re<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(y,E,b,x);else for(var ce=y.length-1;ce>=0;ce--)(z=y[ce])&&(se=(re<3?z(se):re>3?z(E,b,se):z(E,b))||se);return re>3&&se&&Object.defineProperty(E,b,se),se},Se=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DomRenderer=void 0;var fe=ee(58),ie=ee(9),de=ee(2),le=ee(5),me=ee(1),ae=ee(0),he=ee(10),oe=ee(17),ne=1,a=function(y){function E(b,x,z,re,se,ce,_e,ye,De){var Ee=y.call(this)||this;return Ee._colors=b,Ee._element=x,Ee._screenElement=z,Ee._viewportElement=re,Ee._linkifier=se,Ee._linkifier2=ce,Ee._charSizeService=_e,Ee._optionsService=ye,Ee._bufferService=De,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 fe.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(je){return Ee._onLinkHover(je)}),Ee._linkifier.onHideLinkUnderline(function(je){return Ee._onLinkLeave(je)}),Ee._linkifier2.onShowLinkUnderline(function(je){return Ee._onLinkHover(je)}),Ee._linkifier2.onHideLinkUnderline(function(je){return Ee._onLinkLeave(je)}),Ee}return be(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new ae.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(."+fe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+fe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+fe.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) ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+":not(."+fe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.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: "+he.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,se=x[1]-this._bufferService.buffer.ydisp,ce=Math.max(re,0),_e=Math.min(se,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||_e<0)){var ye=document.createDocumentFragment();if(z)ye.appendChild(this._createSelectionElement(ce,b[0],x[0],_e-ce+1));else{var De=re===ce?b[0]:0,Ee=ce===_e?x[0]:this._bufferService.cols;ye.appendChild(this._createSelectionElement(ce,De,Ee));var je=_e-ce-1;if(ye.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,je)),ce!==_e){var Le=se===_e?x[0]:this._bufferService.cols;ye.appendChild(this._createSelectionElement(_e,0,Le))}}this._selectionContainer.appendChild(ye)}}},E.prototype._createSelectionElement=function(b,x,z,re){re===void 0&&(re=1);var se=document.createElement("div");return se.style.height=re*this.dimensions.actualCellHeight+"px",se.style.top=b*this.dimensions.actualCellHeight+"px",se.style.left=x*this.dimensions.actualCellWidth+"px",se.style.width=this.dimensions.actualCellWidth*(z-x)+"px",se},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),se=this._optionsService.options.cursorBlink,ce=b;ce<=x;ce++){var _e=this._rowElements[ce];_e.innerHTML="";var ye=ce+this._bufferService.buffer.ydisp,De=this._bufferService.buffer.lines.get(ye),Ee=this._optionsService.options.cursorStyle;_e.appendChild(this._rowFactory.createRow(De,ye===z,Ee,re,se,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,se,ce){for(;b!==x||z!==re;){var _e=this._rowElements[z];if(!_e)return;var ye=_e.children[b];ye&&(ye.style.textDecoration=ce?"underline":"none"),++b>=se&&(b=0,z++)}},E=pe([Se(6,le.ICharSizeService),Se(7,me.IOptionsService),Se(8,me.IBufferService)],E)}(de.Disposable);te.DomRenderer=a},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DomRendererRowFactory=te.CURSOR_STYLE_UNDERLINE_CLASS=te.CURSOR_STYLE_BAR_CLASS=te.CURSOR_STYLE_BLOCK_CLASS=te.CURSOR_BLINK_CLASS=te.CURSOR_CLASS=te.UNDERLINE_CLASS=te.ITALIC_CLASS=te.DIM_CLASS=te.BOLD_CLASS=void 0;var ge=ee(9),be=ee(3),pe=ee(4),Se=ee(10);te.BOLD_CLASS="xterm-bold",te.DIM_CLASS="xterm-dim",te.ITALIC_CLASS="xterm-italic",te.UNDERLINE_CLASS="xterm-underline",te.CURSOR_CLASS="xterm-cursor",te.CURSOR_BLINK_CLASS="xterm-cursor-blink",te.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",te.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",te.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var fe=function(){function de(le,me,ae){this._document=le,this._optionsService=me,this._colors=ae,this._workCell=new pe.CellData}return de.prototype.setColors=function(le){this._colors=le},de.prototype.createRow=function(le,me,ae,he,oe,ne,a){for(var y=this._document.createDocumentFragment(),E=0,b=Math.min(le.length,a)-1;b>=0;b--)if(le.loadCell(b,this._workCell).getCode()!==be.NULL_CELL_CODE||me&&b===he){E=b+1;break}for(b=0;b<E;b++){le.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===he)switch(z.classList.add(te.CURSOR_CLASS),oe&&z.classList.add(te.CURSOR_BLINK_CLASS),ae){case"bar":z.classList.add(te.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(te.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(te.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(te.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(te.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(te.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(te.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(),se=this._workCell.getFgColorMode(),ce=this._workCell.getBgColor(),_e=this._workCell.getBgColorMode(),ye=!!this._workCell.isInverse();if(ye){var De=re;re=ce,ce=De;var Ee=se;se=_e,_e=Ee}switch(se){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 je=Se.rgba.toColor(re>>16&255,re>>8&255,255&re);this._applyMinimumContrast(z,this._colors.background,je)||this._addStyle(z,"color:#"+ie(re.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||ye&&z.classList.add("xterm-fg-"+ge.INVERTED_DEFAULT_COLOR)}switch(_e){case 16777216:case 33554432:z.classList.add("xterm-bg-"+ce);break;case 50331648:this._addStyle(z,"background-color:#"+ie(ce.toString(16),"0",6));break;case 0:default:ye&&z.classList.add("xterm-bg-"+ge.INVERTED_DEFAULT_COLOR)}y.appendChild(z)}}return y},de.prototype._applyMinimumContrast=function(le,me,ae){if(this._optionsService.options.minimumContrastRatio===1)return!1;var he=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return he===void 0&&(he=Se.color.ensureContrastRatio(me,ae,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,he!=null?he:null)),!!he&&(this._addStyle(le,"color:"+he.css),!0)},de.prototype._addStyle=function(le,me){le.setAttribute("style",""+(le.getAttribute("style")||"")+me+";")},de}();function ie(de,le,me){for(;de.length<me;)de=le+de;return de}te.DomRendererRowFactory=fe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.evaluateKeyboardEvent=void 0;var ge=ee(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:["'",'"']};te.evaluateKeyboardEvent=function(pe,Se,fe,ie){var de={type:0,cancel:!1,key:void 0},le=(pe.shiftKey?1:0)|(pe.altKey?2:0)|(pe.ctrlKey?4:0)|(pe.metaKey?8:0);switch(pe.keyCode){case 0:pe.key==="UIKeyInputUpArrow"?de.key=Se?ge.C0.ESC+"OA":ge.C0.ESC+"[A":pe.key==="UIKeyInputLeftArrow"?de.key=Se?ge.C0.ESC+"OD":ge.C0.ESC+"[D":pe.key==="UIKeyInputRightArrow"?de.key=Se?ge.C0.ESC+"OC":ge.C0.ESC+"[C":pe.key==="UIKeyInputDownArrow"&&(de.key=Se?ge.C0.ESC+"OB":ge.C0.ESC+"[B");break;case 8:if(pe.shiftKey){de.key=ge.C0.BS;break}if(pe.altKey){de.key=ge.C0.ESC+ge.C0.DEL;break}de.key=ge.C0.DEL;break;case 9:if(pe.shiftKey){de.key=ge.C0.ESC+"[Z";break}de.key=ge.C0.HT,de.cancel=!0;break;case 13:de.key=pe.altKey?ge.C0.ESC+ge.C0.CR:ge.C0.CR,de.cancel=!0;break;case 27:de.key=ge.C0.ESC,pe.altKey&&(de.key=ge.C0.ESC+ge.C0.ESC),de.cancel=!0;break;case 37:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"D",de.key===ge.C0.ESC+"[1;3D"&&(de.key=ge.C0.ESC+(fe?"b":"[1;5D"))):de.key=Se?ge.C0.ESC+"OD":ge.C0.ESC+"[D";break;case 39:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"C",de.key===ge.C0.ESC+"[1;3C"&&(de.key=ge.C0.ESC+(fe?"f":"[1;5C"))):de.key=Se?ge.C0.ESC+"OC":ge.C0.ESC+"[C";break;case 38:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"A",fe||de.key!==ge.C0.ESC+"[1;3A"||(de.key=ge.C0.ESC+"[1;5A")):de.key=Se?ge.C0.ESC+"OA":ge.C0.ESC+"[A";break;case 40:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"B",fe||de.key!==ge.C0.ESC+"[1;3B"||(de.key=ge.C0.ESC+"[1;5B")):de.key=Se?ge.C0.ESC+"OB":ge.C0.ESC+"[B";break;case 45:pe.shiftKey||pe.ctrlKey||(de.key=ge.C0.ESC+"[2~");break;case 46:de.key=le?ge.C0.ESC+"[3;"+(le+1)+"~":ge.C0.ESC+"[3~";break;case 36:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"H":Se?ge.C0.ESC+"OH":ge.C0.ESC+"[H";break;case 35:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"F":Se?ge.C0.ESC+"OF":ge.C0.ESC+"[F";break;case 33:pe.shiftKey?de.type=2:de.key=ge.C0.ESC+"[5~";break;case 34:pe.shiftKey?de.type=3:de.key=ge.C0.ESC+"[6~";break;case 112:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"P":ge.C0.ESC+"OP";break;case 113:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"Q":ge.C0.ESC+"OQ";break;case 114:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"R":ge.C0.ESC+"OR";break;case 115:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"S":ge.C0.ESC+"OS";break;case 116:de.key=le?ge.C0.ESC+"[15;"+(le+1)+"~":ge.C0.ESC+"[15~";break;case 117:de.key=le?ge.C0.ESC+"[17;"+(le+1)+"~":ge.C0.ESC+"[17~";break;case 118:de.key=le?ge.C0.ESC+"[18;"+(le+1)+"~":ge.C0.ESC+"[18~";break;case 119:de.key=le?ge.C0.ESC+"[19;"+(le+1)+"~":ge.C0.ESC+"[19~";break;case 120:de.key=le?ge.C0.ESC+"[20;"+(le+1)+"~":ge.C0.ESC+"[20~";break;case 121:de.key=le?ge.C0.ESC+"[21;"+(le+1)+"~":ge.C0.ESC+"[21~";break;case 122:de.key=le?ge.C0.ESC+"[23;"+(le+1)+"~":ge.C0.ESC+"[23~";break;case 123:de.key=le?ge.C0.ESC+"[24;"+(le+1)+"~":ge.C0.ESC+"[24~";break;default:if(!pe.ctrlKey||pe.shiftKey||pe.altKey||pe.metaKey)if(fe&&!ie||!pe.altKey||pe.metaKey)fe&&!pe.altKey&&!pe.ctrlKey&&pe.metaKey?pe.keyCode===65&&(de.type=1):pe.key&&!pe.ctrlKey&&!pe.altKey&&!pe.metaKey&&pe.keyCode>=48&&pe.key.length===1?de.key=pe.key:pe.key&&pe.ctrlKey&&pe.key==="_"&&(de.key=ge.C0.US);else{var me=be[pe.keyCode],ae=me&&me[pe.shiftKey?1:0];if(ae)de.key=ge.C0.ESC+ae;else if(pe.keyCode>=65&&pe.keyCode<=90){var he=pe.ctrlKey?pe.keyCode-64:pe.keyCode+32;de.key=ge.C0.ESC+String.fromCharCode(he)}}else pe.keyCode>=65&&pe.keyCode<=90?de.key=String.fromCharCode(pe.keyCode-64):pe.keyCode===32?de.key=ge.C0.NUL:pe.keyCode>=51&&pe.keyCode<=55?de.key=String.fromCharCode(pe.keyCode-51+27):pe.keyCode===56?de.key=ge.C0.DEL:pe.keyCode===219?de.key=ge.C0.ESC:pe.keyCode===220?de.key=ge.C0.FS:pe.keyCode===221&&(de.key=ge.C0.GS)}return de}},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ne,a){return(ge=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}ge(ne,a),ne.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),pe=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},Se=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(te,"__esModule",{value:!0}),te.RenderService=void 0;var fe=ee(31),ie=ee(0),de=ee(2),le=ee(32),me=ee(7),ae=ee(1),he=ee(5),oe=function(ne){function a(y,E,b,x,z,re){var se=ne.call(this)||this;if(se._renderer=y,se._rowCount=E,se._isPaused=!1,se._needsFullRefresh=!1,se._isNextRenderRedrawOnly=!0,se._needsSelectionRefresh=!1,se._canvasWidth=0,se._canvasHeight=0,se._selectionState={start:void 0,end:void 0,columnSelectMode:!1},se._onDimensionsChange=new ie.EventEmitter,se._onRender=new ie.EventEmitter,se._onRefreshRequest=new ie.EventEmitter,se.register({dispose:function(){return se._renderer.dispose()}}),se._renderDebouncer=new fe.RenderDebouncer(function(_e,ye){return se._renderRows(_e,ye)}),se.register(se._renderDebouncer),se._screenDprMonitor=new le.ScreenDprMonitor,se._screenDprMonitor.setListener(function(){return se.onDevicePixelRatioChange()}),se.register(se._screenDprMonitor),se.register(re.onResize(function(_e){return se._fullRefresh()})),se.register(x.onOptionChange(function(){return se._renderer.onOptionsChanged()})),se.register(z.onCharSizeChange(function(){return se.onCharSizeChanged()})),se._renderer.onRequestRedraw(function(_e){return se.refreshRows(_e.start,_e.end,!0)}),se.register(me.addDisposableDomListener(window,"resize",function(){return se.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ce=new IntersectionObserver(function(_e){return se._onIntersectionChange(_e[_e.length-1])},{threshold:0});ce.observe(b),se.register({dispose:function(){return ce.disconnect()}})}return se}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=pe([Se(3,ae.IOptionsService),Se(4,he.ICharSizeService),Se(5,ae.IBufferService)],a)}(de.Disposable);te.RenderService=oe},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(de,le,me,ae){var he,oe=arguments.length,ne=oe<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,me,ae);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(oe<3?he(ne):oe>3?he(le,me,ne):he(le,me))||ne);return oe>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(de,le){return function(me,ae){le(me,ae,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CharSizeService=void 0;var pe=ee(1),Se=ee(0),fe=function(){function de(le,me,ae){this._optionsService=ae,this.width=0,this.height=0,this._onCharSizeChange=new Se.EventEmitter,this._measureStrategy=new ie(le,me,this._optionsService)}return Object.defineProperty(de.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),de.prototype.measure=function(){var le=this._measureStrategy.measure();le.width===this.width&&le.height===this.height||(this.width=le.width,this.height=le.height,this._onCharSizeChange.fire())},de=ge([be(2,pe.IOptionsService)],de)}();te.CharSizeService=fe;var ie=function(){function de(le,me,ae){this._document=le,this._parentElement=me,this._optionsService=ae,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 de.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var le=this._measureElement.getBoundingClientRect();return le.width!==0&&le.height!==0&&(this._result.width=le.width,this._result.height=Math.ceil(le.height)),this._result},de}()},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(ie,de,le,me){var ae,he=arguments.length,oe=he<3?de:me===null?me=Object.getOwnPropertyDescriptor(de,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,de,le,me);else for(var ne=ie.length-1;ne>=0;ne--)(ae=ie[ne])&&(oe=(he<3?ae(oe):he>3?ae(de,le,oe):ae(de,le))||oe);return he>3&&oe&&Object.defineProperty(de,le,oe),oe},be=this&&this.__param||function(ie,de){return function(le,me){de(le,me,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseService=void 0;var pe=ee(5),Se=ee(30),fe=function(){function ie(de,le){this._renderService=de,this._charSizeService=le}return ie.prototype.getCoords=function(de,le,me,ae,he){return Se.getCoords(de,le,me,ae,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,he)},ie.prototype.getRawByteCoords=function(de,le,me,ae){var he=this.getCoords(de,le,me,ae);return Se.getRawByteCoords(he)},ie=ge([be(0,pe.IRenderService),be(1,pe.ICharSizeService)],ie)}();te.MouseService=fe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=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])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),pe=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Linkifier2=void 0;var fe=ee(1),ie=ee(0),de=ee(2),le=ee(7),me=function(ae){function he(oe){var ne=ae.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(de.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(he,ae),Object.defineProperty(he.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),he.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)}}},he.prototype.attachToDom=function(oe,ne,a){var y=this;this._element=oe,this._mouseService=ne,this._renderService=a,this.register(le.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(le.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(le.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},he.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)}}},he.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))},he.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,se;if(!a._isMouseOut){var ce=z==null?void 0:z.map(function(_e){return{link:_e}});(re=a._activeProviderReplies)===null||re===void 0||re.set(b,ce),y=a._checkLinkProviderResult(b,oe,y),((se=a._activeProviderReplies)===null||se===void 0?void 0:se.size)===a._linkProviders.length&&a._removeIntersectingLinks(oe.y,a._activeProviderReplies)}})})},he.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,se=z;se<=re;se++){if(a.has(se)){E.splice(b--,1);break}a.add(se)}}},he.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(ce){return E._linkAtPosition(ce.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 se=(y=this._activeProviderReplies.get(z))===null||y===void 0?void 0:y.find(function(ce){return E._linkAtPosition(ce.link,ne)});if(se){a=!0,this._handleNewLink(se);break}}return a},he.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)}},he.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,de.disposeArray(this._linkCacheDisposables))},he.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)})))}},he.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)},he.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)},he.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)},he.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},he.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}},he.prototype._createLinkUnderlineEvent=function(oe,ne,a,y,E){return{x1:oe,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},he=pe([Se(0,fe.IBufferService)],he)}(de.Disposable);te.Linkifier2=me},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CoreBrowserService=void 0;var ge=function(){function be(pe){this._textarea=pe}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();te.CoreBrowserService=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(z,re){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var _e in ce)ce.hasOwnProperty(_e)&&(se[_e]=ce[_e])})(z,re)},function(z,re){function se(){this.constructor=z}ge(z,re),z.prototype=re===null?Object.create(re):(se.prototype=re.prototype,new se)});Object.defineProperty(te,"__esModule",{value:!0}),te.CoreTerminal=void 0;var pe=ee(2),Se=ee(1),fe=ee(66),ie=ee(67),de=ee(68),le=ee(74),me=ee(75),ae=ee(0),he=ee(76),oe=ee(77),ne=ee(78),a=ee(80),y=ee(81),E=ee(19),b=ee(82),x=function(z){function re(se){var ce=z.call(this)||this;return ce._onBinary=new ae.EventEmitter,ce._onData=new ae.EventEmitter,ce._onLineFeed=new ae.EventEmitter,ce._onResize=new ae.EventEmitter,ce._onScroll=new ae.EventEmitter,ce._instantiationService=new fe.InstantiationService,ce.optionsService=new le.OptionsService(se),ce._instantiationService.setService(Se.IOptionsService,ce.optionsService),ce._bufferService=ce.register(ce._instantiationService.createInstance(de.BufferService)),ce._instantiationService.setService(Se.IBufferService,ce._bufferService),ce._logService=ce._instantiationService.createInstance(ie.LogService),ce._instantiationService.setService(Se.ILogService,ce._logService),ce._coreService=ce.register(ce._instantiationService.createInstance(me.CoreService,function(){return ce.scrollToBottom()})),ce._instantiationService.setService(Se.ICoreService,ce._coreService),ce._coreMouseService=ce._instantiationService.createInstance(he.CoreMouseService),ce._instantiationService.setService(Se.ICoreMouseService,ce._coreMouseService),ce._dirtyRowService=ce._instantiationService.createInstance(oe.DirtyRowService),ce._instantiationService.setService(Se.IDirtyRowService,ce._dirtyRowService),ce.unicodeService=ce._instantiationService.createInstance(ne.UnicodeService),ce._instantiationService.setService(Se.IUnicodeService,ce.unicodeService),ce._charsetService=ce._instantiationService.createInstance(a.CharsetService),ce._instantiationService.setService(Se.ICharsetService,ce._charsetService),ce._inputHandler=new E.InputHandler(ce._bufferService,ce._charsetService,ce._coreService,ce._dirtyRowService,ce._logService,ce.optionsService,ce._coreMouseService,ce.unicodeService),ce.register(ae.forwardEvent(ce._inputHandler.onLineFeed,ce._onLineFeed)),ce.register(ce._inputHandler),ce.register(ae.forwardEvent(ce._bufferService.onResize,ce._onResize)),ce.register(ae.forwardEvent(ce._coreService.onData,ce._onData)),ce.register(ae.forwardEvent(ce._coreService.onBinary,ce._onBinary)),ce.register(ce.optionsService.onOptionChange(function(_e){return ce._updateOptions(_e)})),ce._writeBuffer=new b.WriteBuffer(function(_e){return ce._inputHandler.parse(_e)}),ce}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 se;this._isDisposed||(z.prototype.dispose.call(this),(se=this._windowsMode)===null||se===void 0||se.dispose(),this._windowsMode=void 0)},re.prototype.write=function(se,ce){this._writeBuffer.write(se,ce)},re.prototype.writeSync=function(se){this._writeBuffer.writeSync(se)},re.prototype.resize=function(se,ce){isNaN(se)||isNaN(ce)||(se=Math.max(se,de.MINIMUM_COLS),ce=Math.max(ce,de.MINIMUM_ROWS),this._bufferService.resize(se,ce))},re.prototype.scroll=function(se,ce){ce===void 0&&(ce=!1);var _e,ye=this._bufferService.buffer;(_e=this._cachedBlankLine)&&_e.length===this.cols&&_e.getFg(0)===se.fg&&_e.getBg(0)===se.bg||(_e=ye.getBlankLine(se,ce),this._cachedBlankLine=_e),_e.isWrapped=ce;var De=ye.ybase+ye.scrollTop,Ee=ye.ybase+ye.scrollBottom;if(ye.scrollTop===0){var je=ye.lines.isFull;Ee===ye.lines.length-1?je?ye.lines.recycle().copyFrom(_e):ye.lines.push(_e.clone()):ye.lines.splice(Ee+1,0,_e.clone()),je?this._bufferService.isUserScrolling&&(ye.ydisp=Math.max(ye.ydisp-1,0)):(ye.ybase++,this._bufferService.isUserScrolling||ye.ydisp++)}else{var Le=Ee-De+1;ye.lines.shiftElements(De+1,Le-1,-1),ye.lines.set(Ee,_e.clone())}this._bufferService.isUserScrolling||(ye.ydisp=ye.ybase),this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom),this._onScroll.fire(ye.ydisp)},re.prototype.scrollLines=function(se,ce){var _e=this._bufferService.buffer;if(se<0){if(_e.ydisp===0)return;this._bufferService.isUserScrolling=!0}else se+_e.ydisp>=_e.ybase&&(this._bufferService.isUserScrolling=!1);var ye=_e.ydisp;_e.ydisp=Math.max(Math.min(_e.ydisp+se,_e.ybase),0),ye!==_e.ydisp&&(ce||this._onScroll.fire(_e.ydisp))},re.prototype.scrollPages=function(se){this.scrollLines(se*(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(se){var ce=se-this._bufferService.buffer.ydisp;ce!==0&&this.scrollLines(ce)},re.prototype.addEscHandler=function(se,ce){return this._inputHandler.addEscHandler(se,ce)},re.prototype.addDcsHandler=function(se,ce){return this._inputHandler.addDcsHandler(se,ce)},re.prototype.addCsiHandler=function(se,ce){return this._inputHandler.addCsiHandler(se,ce)},re.prototype.addOscHandler=function(se,ce){return this._inputHandler.addOscHandler(se,ce)},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(se){var ce;switch(se){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ce=this._windowsMode)===null||ce===void 0||ce.dispose(),this._windowsMode=void 0)}},re.prototype._enableWindowsMode=function(){var se=this;if(!this._windowsMode){var ce=[];ce.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ce.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(se._bufferService),!1})),this._windowsMode={dispose:function(){for(var _e=0,ye=ce;_e<ye.length;_e++)ye[_e].dispose()}}}},re}(pe.Disposable);te.CoreTerminal=x},function(Ke,te,ee){"use strict";var ge=this&&this.__spreadArrays||function(){for(var ie=0,de=0,le=arguments.length;de<le;de++)ie+=arguments[de].length;var me=Array(ie),ae=0;for(de=0;de<le;de++)for(var he=arguments[de],oe=0,ne=he.length;oe<ne;oe++,ae++)me[ae]=he[oe];return me};Object.defineProperty(te,"__esModule",{value:!0}),te.InstantiationService=te.ServiceCollection=void 0;var be=ee(1),pe=ee(14),Se=function(){function ie(){for(var de=[],le=0;le<arguments.length;le++)de[le]=arguments[le];this._entries=new Map;for(var me=0,ae=de;me<ae.length;me++){var he=ae[me],oe=he[0],ne=he[1];this.set(oe,ne)}}return ie.prototype.set=function(de,le){var me=this._entries.get(de);return this._entries.set(de,le),me},ie.prototype.forEach=function(de){this._entries.forEach(function(le,me){return de(me,le)})},ie.prototype.has=function(de){return this._entries.has(de)},ie.prototype.get=function(de){return this._entries.get(de)},ie}();te.ServiceCollection=Se;var fe=function(){function ie(){this._services=new Se,this._services.set(be.IInstantiationService,this)}return ie.prototype.setService=function(de,le){this._services.set(de,le)},ie.prototype.getService=function(de){return this._services.get(de)},ie.prototype.createInstance=function(de){for(var le=[],me=1;me<arguments.length;me++)le[me-1]=arguments[me];for(var ae=pe.getServiceDependencies(de).sort(function(b,x){return b.index-x.index}),he=[],oe=0,ne=ae;oe<ne.length;oe++){var a=ne[oe],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+de.name+" depends on UNKNOWN service "+a.id+".");he.push(y)}var E=ae.length>0?ae[0].index:le.length;if(le.length!==E)throw new Error("[createInstance] First service dependency of "+de.name+" at position "+(E+1)+" conflicts with "+le.length+" static arguments");return new(de.bind.apply(de,ge([void 0],ge(le,he))))},ie}();te.InstantiationService=fe},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(le,me,ae,he){var oe,ne=arguments.length,a=ne<3?me:he===null?he=Object.getOwnPropertyDescriptor(me,ae):he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(le,me,ae,he);else for(var y=le.length-1;y>=0;y--)(oe=le[y])&&(a=(ne<3?oe(a):ne>3?oe(me,ae,a):oe(me,ae))||a);return ne>3&&a&&Object.defineProperty(me,ae,a),a},be=this&&this.__param||function(le,me){return function(ae,he){me(ae,he,le)}},pe=this&&this.__spreadArrays||function(){for(var le=0,me=0,ae=arguments.length;me<ae;me++)le+=arguments[me].length;var he=Array(le),oe=0;for(me=0;me<ae;me++)for(var ne=arguments[me],a=0,y=ne.length;a<y;a++,oe++)he[oe]=ne[a];return he};Object.defineProperty(te,"__esModule",{value:!0}),te.LogService=te.LogLevel=void 0;var Se,fe=ee(1);(function(le){le[le.DEBUG=0]="DEBUG",le[le.INFO=1]="INFO",le[le.WARN=2]="WARN",le[le.ERROR=3]="ERROR",le[le.OFF=4]="OFF"})(Se=te.LogLevel||(te.LogLevel={}));var ie={debug:Se.DEBUG,info:Se.INFO,warn:Se.WARN,error:Se.ERROR,off:Se.OFF},de=function(){function le(me){var ae=this;this._optionsService=me,this._updateLogLevel(),this._optionsService.onOptionChange(function(he){he==="logLevel"&&ae._updateLogLevel()})}return le.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},le.prototype._evalLazyOptionalParams=function(me){for(var ae=0;ae<me.length;ae++)typeof me[ae]=="function"&&(me[ae]=me[ae]())},le.prototype._log=function(me,ae,he){this._evalLazyOptionalParams(he),me.call.apply(me,pe([console,"xterm.js: "+ae],he))},le.prototype.debug=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.DEBUG&&this._log(console.log,me,ae)},le.prototype.info=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.INFO&&this._log(console.info,me,ae)},le.prototype.warn=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.WARN&&this._log(console.warn,me,ae)},le.prototype.error=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=Se.ERROR&&this._log(console.error,me,ae)},le=ge([be(0,fe.IOptionsService)],le)}();te.LogService=de},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=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])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),pe=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},Se=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.BufferService=te.MINIMUM_ROWS=te.MINIMUM_COLS=void 0;var fe=ee(1),ie=ee(69),de=ee(0),le=ee(2);te.MINIMUM_COLS=2,te.MINIMUM_ROWS=1;var me=function(ae){function he(oe){var ne=ae.call(this)||this;return ne._optionsService=oe,ne.isUserScrolling=!1,ne._onResize=new de.EventEmitter,ne.cols=Math.max(oe.options.cols,te.MINIMUM_COLS),ne.rows=Math.max(oe.options.rows,te.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(oe,ne),ne}return be(he,ae),Object.defineProperty(he.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){ae.prototype.dispose.call(this),this.buffers.dispose()},he.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})},he.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},he=pe([Se(0,fe.IOptionsService)],he)}(le.Disposable);te.BufferService=me},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ie,de){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,me){le.__proto__=me}||function(le,me){for(var ae in me)me.hasOwnProperty(ae)&&(le[ae]=me[ae])})(ie,de)},function(ie,de){function le(){this.constructor=ie}ge(ie,de),ie.prototype=de===null?Object.create(de):(le.prototype=de.prototype,new le)});Object.defineProperty(te,"__esModule",{value:!0}),te.BufferSet=void 0;var pe=ee(70),Se=ee(0),fe=function(ie){function de(le,me){var ae=ie.call(this)||this;return ae._onBufferActivate=ae.register(new Se.EventEmitter),ae._normal=new pe.Buffer(!0,le,me),ae._normal.fillViewportRows(),ae._alt=new pe.Buffer(!1,le,me),ae._activeBuffer=ae._normal,ae.setupTabStops(),ae}return be(de,ie),Object.defineProperty(de.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),de.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}))},de.prototype.activateAltBuffer=function(le){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(le),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}))},de.prototype.resize=function(le,me){this._normal.resize(le,me),this._alt.resize(le,me)},de.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},de}(ee(2).Disposable);te.BufferSet=fe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferStringIterator=te.Buffer=te.MAX_BUFFER_SIZE=void 0;var ge=ee(71),be=ee(16),pe=ee(4),Se=ee(3),fe=ee(72),ie=ee(73),de=ee(20),le=ee(6);te.MAX_BUFFER_SIZE=4294967295;var me=function(){function he(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=de.DEFAULT_CHARSET,this.markers=[],this._nullCell=pe.CellData.fromCharData([0,Se.NULL_CELL_CHAR,Se.NULL_CELL_WIDTH,Se.NULL_CELL_CODE]),this._whitespaceCell=pe.CellData.fromCharData([0,Se.WHITESPACE_CELL_CHAR,Se.WHITESPACE_CELL_WIDTH,Se.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ge.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return he.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 le.ExtendedAttrs),this._nullCell},he.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 le.ExtendedAttrs),this._whitespaceCell},he.prototype.getBlankLine=function(oe,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(oe),ne)},Object.defineProperty(he.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isCursorInViewport",{get:function(){var oe=this.ybase+this.y-this.ydisp;return oe>=0&&oe<this._rows},enumerable:!1,configurable:!0}),he.prototype._getCorrectBufferLength=function(oe){if(!this._hasScrollback)return oe;var ne=oe+this._optionsService.options.scrollback;return ne>te.MAX_BUFFER_SIZE?te.MAX_BUFFER_SIZE:ne},he.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))}},he.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ge.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},he.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(he.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),he.prototype._reflow=function(oe,ne){this._cols!==oe&&(oe>this._cols?this._reflowLarger(oe,ne):this._reflowSmaller(oe,ne))},he.prototype._reflowLarger=function(oe,ne){var a=fe.reflowLargerGetLinesToRemove(this.lines,this._cols,oe,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(a.length>0){var y=fe.reflowLargerCreateNewLayout(this.lines,a);fe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(oe,ne,y.countRemoved)}},he.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)},he.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 se=z[z.length-1].getTrimmedLength(),ce=fe.reflowSmallerGetNewLineLengths(z,this._cols,oe),_e=ce.length-z.length,ye=void 0;ye=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+_e):Math.max(0,this.lines.length-this.lines.maxLength+_e);for(var De=[],Ee=0;Ee<_e;Ee++){var je=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);De.push(je)}De.length>0&&(y.push({start:b+z.length+E,newLines:De}),E+=De.length),z.push.apply(z,De);var Le=ce.length-1,ht=ce[Le];ht===0&&(ht=ce[--Le]);for(var Ye=z.length-_e-1,vt=se;Ye>=0;){var we=Math.min(vt,ht);if(z[Le].copyCellsFrom(z[Ye],vt-we,ht-we,we,!0),(ht-=we)===0&&(ht=ce[--Le]),(vt-=we)===0){Ye--;var Fe=Math.max(Ye,0);vt=fe.getWrappedLineTrimmedLength(z,Fe,this._cols)}}for(Ee=0;Ee<z.length;Ee++)ce[Ee]<oe&&z[Ee].setCell(ce[Ee],a);for(var He=_e-ye;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+_e,this.ybase+ne-1)}}}if(y.length>0){var at=[],We=[];for(Ee=0;Ee<this.lines.length;Ee++)We.push(this.lines.get(Ee));var pt=this.lines.length,Pt=pt-1,At=0,Bt=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,pt+E-1);Ee>=0;Ee--)if(Bt&&Bt.start>Pt+rt){for(var Xe=Bt.newLines.length-1;Xe>=0;Xe--)this.lines.set(Ee--,Bt.newLines[Xe]);Ee++,at.push({index:Pt+1,amount:Bt.newLines.length}),rt+=Bt.newLines.length,Bt=y[++At]}else this.lines.set(Ee,We[Pt--]);var Ct=0;for(Ee=at.length-1;Ee>=0;Ee--)at[Ee].index+=Ct,this.lines.onInsertEmitter.fire(at[Ee]),Ct+=at[Ee].amount;var zt=Math.max(0,pt+E-this.lines.maxLength);zt>0&&this.lines.onTrimEmitter.fire(zt)}},he.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)[Se.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[Se.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[oe,b];oe++}return[oe,0]},he.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):""},he.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}},he.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},he.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},he.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},he.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},he.prototype._removeMarker=function(oe){this.markers.splice(this.markers.indexOf(oe),1)},he.prototype.iterator=function(oe,ne,a,y,E){return new ae(this,oe,ne,a,y,E)},he}();te.Buffer=me;var ae=function(){function he(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 he.prototype.hasNext=function(){return this._current<this._endIndex},he.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}},he}();te.BufferStringIterator=ae},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CircularList=void 0;var ge=ee(0),be=function(){function pe(Se){this._maxLength=Se,this.onDeleteEmitter=new ge.EventEmitter,this.onInsertEmitter=new ge.EventEmitter,this.onTrimEmitter=new ge.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(pe.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"maxLength",{get:function(){return this._maxLength},set:function(Se){if(this._maxLength!==Se){for(var fe=new Array(Se),ie=0;ie<Math.min(Se,this.length);ie++)fe[ie]=this._array[this._getCyclicIndex(ie)];this._array=fe,this._maxLength=Se,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"length",{get:function(){return this._length},set:function(Se){if(Se>this._length)for(var fe=this._length;fe<Se;fe++)this._array[fe]=void 0;this._length=Se},enumerable:!1,configurable:!0}),pe.prototype.get=function(Se){return this._array[this._getCyclicIndex(Se)]},pe.prototype.set=function(Se,fe){this._array[this._getCyclicIndex(Se)]=fe},pe.prototype.push=function(Se){this._array[this._getCyclicIndex(this._length)]=Se,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},pe.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(pe.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),pe.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},pe.prototype.splice=function(Se,fe){for(var ie=[],de=2;de<arguments.length;de++)ie[de-2]=arguments[de];if(fe){for(var le=Se;le<this._length-fe;le++)this._array[this._getCyclicIndex(le)]=this._array[this._getCyclicIndex(le+fe)];this._length-=fe}for(le=this._length-1;le>=Se;le--)this._array[this._getCyclicIndex(le+ie.length)]=this._array[this._getCyclicIndex(le)];for(le=0;le<ie.length;le++)this._array[this._getCyclicIndex(Se+le)]=ie[le];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},pe.prototype.trimStart=function(Se){Se>this._length&&(Se=this._length),this._startIndex+=Se,this._length-=Se,this.onTrimEmitter.fire(Se)},pe.prototype.shiftElements=function(Se,fe,ie){if(!(fe<=0)){if(Se<0||Se>=this._length)throw new Error("start argument out of range");if(Se+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var de=fe-1;de>=0;de--)this.set(Se+de+ie,this.get(Se+de));var le=Se+fe+ie-this._length;if(le>0)for(this._length+=le;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(de=0;de<fe;de++)this.set(Se+de+ie,this.get(Se+de))}},pe.prototype._getCyclicIndex=function(Se){return(this._startIndex+Se)%this._maxLength},pe}();te.CircularList=be},function(Ke,te,ee){"use strict";function ge(be,pe,Se){if(pe===be.length-1)return be[pe].getTrimmedLength();var fe=!be[pe].hasContent(Se-1)&&be[pe].getWidth(Se-1)===1,ie=be[pe+1].getWidth(0)===2;return fe&&ie?Se-1:Se}Object.defineProperty(te,"__esModule",{value:!0}),te.getWrappedLineTrimmedLength=te.reflowSmallerGetNewLineLengths=te.reflowLargerApplyNewLayout=te.reflowLargerCreateNewLayout=te.reflowLargerGetLinesToRemove=void 0,te.reflowLargerGetLinesToRemove=function(be,pe,Se,fe,ie){for(var de=[],le=0;le<be.length-1;le++){var me=le,ae=be.get(++me);if(ae.isWrapped){for(var he=[be.get(le)];me<be.length&&ae.isWrapped;)he.push(ae),ae=be.get(++me);if(fe>=le&&fe<me)le+=he.length-1;else{for(var oe=0,ne=ge(he,oe,pe),a=1,y=0;a<he.length;){var E=ge(he,a,pe),b=E-y,x=Se-ne,z=Math.min(b,x);he[oe].copyCellsFrom(he[a],y,ne,z,!1),(ne+=z)===Se&&(oe++,ne=0),(y+=z)===E&&(a++,y=0),ne===0&&oe!==0&&he[oe-1].getWidth(Se-1)===2&&(he[oe].copyCellsFrom(he[oe-1],Se-1,ne++,1,!1),he[oe-1].setCell(Se-1,ie))}he[oe].replaceCells(ne,Se,ie);for(var re=0,se=he.length-1;se>0&&(se>oe||he[se].getTrimmedLength()===0);se--)re++;re>0&&(de.push(le+he.length-re),de.push(re)),le+=he.length-1}}}return de},te.reflowLargerCreateNewLayout=function(be,pe){for(var Se=[],fe=0,ie=pe[fe],de=0,le=0;le<be.length;le++)if(ie===le){var me=pe[++fe];be.onDeleteEmitter.fire({index:le-de,amount:me}),le+=me-1,de+=me,ie=pe[++fe]}else Se.push(le);return{layout:Se,countRemoved:de}},te.reflowLargerApplyNewLayout=function(be,pe){for(var Se=[],fe=0;fe<pe.length;fe++)Se.push(be.get(pe[fe]));for(fe=0;fe<Se.length;fe++)be.set(fe,Se[fe]);be.length=pe.length},te.reflowSmallerGetNewLineLengths=function(be,pe,Se){for(var fe=[],ie=be.map(function(ne,a){return ge(be,a,pe)}).reduce(function(ne,a){return ne+a}),de=0,le=0,me=0;me<ie;){if(ie-me<Se){fe.push(ie-me);break}de+=Se;var ae=ge(be,le,pe);de>ae&&(de-=ae,le++);var he=be[le].getWidth(de-1)===2;he&&de--;var oe=he?Se-1:Se;fe.push(oe),me+=oe}return fe},te.getWrappedLineTrimmedLength=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(fe,ie){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,le){de.__proto__=le}||function(de,le){for(var me in le)le.hasOwnProperty(me)&&(de[me]=le[me])})(fe,ie)},function(fe,ie){function de(){this.constructor=fe}ge(fe,ie),fe.prototype=ie===null?Object.create(ie):(de.prototype=ie.prototype,new de)});Object.defineProperty(te,"__esModule",{value:!0}),te.Marker=void 0;var pe=ee(0),Se=function(fe){function ie(de){var le=fe.call(this)||this;return le.line=de,le._id=ie._nextId++,le.isDisposed=!1,le._onDispose=new pe.EventEmitter,le}return be(ie,fe),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}(ee(2).Disposable);te.Marker=Se},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OptionsService=te.DEFAULT_OPTIONS=te.DEFAULT_BELL_SOUND=void 0;var ge=ee(0),be=ee(11),pe=ee(33);te.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",te.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:te.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 Se=["cols","rows"],fe=function(){function ie(de){this._onOptionChange=new ge.EventEmitter,this.options=pe.clone(te.DEFAULT_OPTIONS);for(var le=0,me=Object.keys(de);le<me.length;le++){var ae=me[le];if(ae in this.options){var he=de[ae];this.options[ae]=he}}}return Object.defineProperty(ie.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ie.prototype.setOption=function(de,le){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');if(Se.indexOf(de)!==-1)throw new Error('Option "'+de+'" can only be set in the constructor');this.options[de]!==le&&(le=this._sanitizeAndValidateOption(de,le),this.options[de]!==le&&(this.options[de]=le,this._onOptionChange.fire(de)))},ie.prototype._sanitizeAndValidateOption=function(de,le){switch(de){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":le||(le=te.DEFAULT_OPTIONS[de]);break;case"cursorWidth":le=Math.floor(le);case"lineHeight":case"tabStopWidth":if(le<1)throw new Error(de+" cannot be less than 1, value: "+le);break;case"minimumContrastRatio":le=Math.max(1,Math.min(21,Math.round(10*le)/10));break;case"scrollback":if((le=Math.min(le,4294967295))<0)throw new Error(de+" cannot be less than 0, value: "+le);break;case"fastScrollSensitivity":case"scrollSensitivity":if(le<=0)throw new Error(de+" cannot be less than or equal to 0, value: "+le)}return le},ie.prototype.getOption=function(de){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');return this.options[de]},ie}();te.OptionsService=fe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(oe,ne){return(ge=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}ge(oe,ne),oe.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),pe=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},Se=this&&this.__param||function(oe,ne){return function(a,y){ne(a,y,oe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreService=void 0;var fe=ee(1),ie=ee(0),de=ee(33),le=ee(2),me=Object.freeze({insertMode:!1}),ae=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),he=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=de.clone(me),x.decPrivateModes=de.clone(ae),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=de.clone(me),this.decPrivateModes=de.clone(ae)},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=pe([Se(1,fe.IBufferService),Se(2,fe.ILogService),Se(3,fe.IOptionsService)],ne)}(le.Disposable);te.CoreService=he},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},be=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreMouseService=void 0;var pe=ee(1),Se=ee(0),fe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(ae){return ae.button!==4&&ae.action===1&&(ae.ctrl=!1,ae.alt=!1,ae.shift=!1,!0)}},VT200:{events:19,restrict:function(ae){return ae.action!==32}},DRAG:{events:23,restrict:function(ae){return ae.action!==32||ae.button!==3}},ANY:{events:31,restrict:function(ae){return!0}}};function ie(ae,he){var oe=(ae.ctrl?16:0)|(ae.shift?4:0)|(ae.alt?8:0);return ae.button===4?(oe|=64,oe|=ae.action):(oe|=3&ae.button,4&ae.button&&(oe|=64),8&ae.button&&(oe|=128),ae.action===32?oe|=32:ae.action!==0||he||(oe|=3)),oe}var de=String.fromCharCode,le={DEFAULT:function(ae){var he=[ie(ae,!1)+32,ae.col+32,ae.row+32];return he[0]>255||he[1]>255||he[2]>255?"":"\x1B[M"+de(he[0])+de(he[1])+de(he[2])},SGR:function(ae){var he=ae.action===0&&ae.button!==4?"m":"M";return"\x1B[<"+ie(ae,!0)+";"+ae.col+";"+ae.row+he}},me=function(){function ae(he,oe){this._bufferService=he,this._coreService=oe,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new Se.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(fe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,fe[y])}for(var E=0,b=Object.keys(le);E<b.length;E++){var x=b[E];this.addEncoding(x,le[x])}this.reset()}return ae.prototype.addProtocol=function(he,oe){this._protocols[he]=oe},ae.prototype.addEncoding=function(he,oe){this._encodings[he]=oe},Object.defineProperty(ae.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(he){if(!this._protocols[he])throw new Error('unknown protocol "'+he+'"');this._activeProtocol=he,this._onProtocolChange.fire(this._protocols[he].events)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(he){if(!this._encodings[he])throw new Error('unknown encoding "'+he+'"');this._activeEncoding=he},enumerable:!1,configurable:!0}),ae.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(ae.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),ae.prototype.triggerMouseEvent=function(he){if(he.col<0||he.col>=this._bufferService.cols||he.row<0||he.row>=this._bufferService.rows||he.button===4&&he.action===32||he.button===3&&he.action!==32||he.button!==4&&(he.action===2||he.action===3)||(he.col++,he.row++,he.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,he))||!this._protocols[this._activeProtocol].restrict(he))return!1;var oe=this._encodings[this._activeEncoding](he);return oe&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(oe):this._coreService.triggerDataEvent(oe,!0)),this._lastEvent=he,!0},ae.prototype.explainEvents=function(he){return{down:!!(1&he),up:!!(2&he),drag:!!(4&he),move:!!(8&he),wheel:!!(16&he)}},ae.prototype._compareEvents=function(he,oe){return he.col===oe.col&&he.row===oe.row&&he.button===oe.button&&he.action===oe.action&&he.ctrl===oe.ctrl&&he.alt===oe.alt&&he.shift===oe.shift},ae=ge([be(0,pe.IBufferService),be(1,pe.ICoreService)],ae)}();te.CoreMouseService=me},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,ie,de,le){var me,ae=arguments.length,he=ae<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,ie,de,le);else for(var oe=fe.length-1;oe>=0;oe--)(me=fe[oe])&&(he=(ae<3?me(he):ae>3?me(ie,de,he):me(ie,de))||he);return ae>3&&he&&Object.defineProperty(ie,de,he),he},be=this&&this.__param||function(fe,ie){return function(de,le){ie(de,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DirtyRowService=void 0;var pe=ee(1),Se=function(){function fe(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(fe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),fe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},fe.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},fe.prototype.markRangeDirty=function(ie,de){if(ie>de){var le=ie;ie=de,de=le}ie<this._start&&(this._start=ie),de>this._end&&(this._end=de)},fe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},fe=ge([be(0,pe.IBufferService)],fe)}();te.DirtyRowService=Se},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeService=void 0;var ge=ee(0),be=ee(79),pe=function(){function Se(){this._providers=Object.create(null),this._active="",this._onChange=new ge.EventEmitter;var fe=new be.UnicodeV6;this.register(fe),this._active=fe.version,this._activeProvider=fe}return Object.defineProperty(Se.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"activeVersion",{get:function(){return this._active},set:function(fe){if(!this._providers[fe])throw new Error('unknown Unicode version "'+fe+'"');this._active=fe,this._activeProvider=this._providers[fe],this._onChange.fire(fe)},enumerable:!1,configurable:!0}),Se.prototype.register=function(fe){this._providers[fe.version]=fe},Se.prototype.wcwidth=function(fe){return this._activeProvider.wcwidth(fe)},Se.prototype.getStringCellWidth=function(fe){for(var ie=0,de=fe.length,le=0;le<de;++le){var me=fe.charCodeAt(le);if(55296<=me&&me<=56319){if(++le>=de)return ie+this.wcwidth(me);var ae=fe.charCodeAt(le);56320<=ae&&ae<=57343?me=1024*(me-55296)+ae-56320+65536:ie+=this.wcwidth(ae)}ie+=this.wcwidth(me)}return ie},Se}();te.UnicodeService=pe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeV6=void 0;var ge,be=ee(15),pe=[[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]],Se=[[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]],fe=function(){function ie(){if(this.version="6",!ge){ge=new Uint8Array(65536),be.fill(ge,1),ge[0]=0,be.fill(ge,0,1,32),be.fill(ge,0,127,160),be.fill(ge,2,4352,4448),ge[9001]=2,ge[9002]=2,be.fill(ge,2,11904,42192),ge[12351]=1,be.fill(ge,2,44032,55204),be.fill(ge,2,63744,64256),be.fill(ge,2,65040,65050),be.fill(ge,2,65072,65136),be.fill(ge,2,65280,65377),be.fill(ge,2,65504,65511);for(var de=0;de<pe.length;++de)be.fill(ge,0,pe[de][0],pe[de][1]+1)}}return ie.prototype.wcwidth=function(de){return de<32?0:de<127?1:de<65536?ge[de]:function(le,me){var ae,he=0,oe=me.length-1;if(le<me[0][0]||le>me[oe][1])return!1;for(;oe>=he;)if(le>me[ae=he+oe>>1][1])he=ae+1;else{if(!(le<me[ae][0]))return!0;oe=ae-1}return!1}(de,Se)?0:de>=131072&&de<=196605||de>=196608&&de<=262141?2:1},ie}();te.UnicodeV6=fe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CharsetService=void 0;var ge=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(pe){this.glevel=pe,this.charset=this._charsets[pe]},be.prototype.setgCharset=function(pe,Se){this._charsets[pe]=Se,this.glevel===pe&&(this.charset=Se)},be}();te.CharsetService=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.updateWindowsModeWrappedState=void 0;var ge=ee(3);te.updateWindowsModeWrappedState=function(be){var pe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),Se=pe==null?void 0:pe.get(be.cols-1),fe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);fe&&Se&&(fe.isWrapped=Se[ge.CHAR_DATA_CODE_INDEX]!==ge.NULL_CELL_CODE&&Se[ge.CHAR_DATA_CODE_INDEX]!==ge.WHITESPACE_CELL_CODE)}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WriteBuffer=void 0;var ge=function(){function be(pe){this._action=pe,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(pe){if(this._writeBuffer.length){for(var Se=this._bufferOffset;Se<this._writeBuffer.length;++Se){var fe=this._writeBuffer[Se],ie=this._callbacks[Se];this._action(fe),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(pe)},be.prototype.write=function(pe,Se){var fe=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 fe._innerWrite()})),this._pendingData+=pe.length,this._writeBuffer.push(pe),this._callbacks.push(Se)},be.prototype._innerWrite=function(){for(var pe=this,Se=Date.now();this._writeBuffer.length>this._bufferOffset;){var fe=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(fe),this._pendingData-=fe.length,ie&&ie(),Date.now()-Se>=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 pe._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();te.WriteBuffer=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.AddonManager=void 0;var ge=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var pe=this._addons.length-1;pe>=0;pe--)this._addons[pe].instance.dispose()},be.prototype.loadAddon=function(pe,Se){var fe=this,ie={instance:Se,dispose:Se.dispose,isDisposed:!1};this._addons.push(ie),Se.dispose=function(){return fe._wrappedAddonDispose(ie)},Se.activate(pe)},be.prototype._wrappedAddonDispose=function(pe){if(!pe.isDisposed){for(var Se=-1,fe=0;fe<this._addons.length;fe++)if(this._addons[fe]===pe){Se=fe;break}if(Se===-1)throw new Error("Could not dispose an addon that has not been loaded");pe.isDisposed=!0,pe.dispose.apply(pe.instance),this._addons.splice(Se,1)}},be}();te.AddonManager=ge}])})},62522:function(mt){"use strict";mt.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="}}]);