|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},28575:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},18699:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},81893:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},55304:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},73148:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},56747:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},53555:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},50881:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},22751:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},34182:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},74664:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},32693:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},91034:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},71736:function(at,We){"use strict";We.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(at,We){"use strict";We.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"}},12867:function(){"use strict"},22707:function(at,We,ee){"use strict";var z=ee(67294),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(le,ce,se)=>ce in le?ge(le,ce,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ce]=se,ie=(le,ce)=>{for(var se in ce||(ce={}))ve.call(ce,se)&&pe(le,se,ce[se]);if(be)for(var se of be(ce))fe.call(ce,se)&&pe(le,se,ce[se]);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"})));We.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(at,We,ee){"use strict";var z=ee(67294),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(le,ce,se)=>ce in le?ge(le,ce,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ce]=se,ie=(le,ce)=>{for(var se in ce||(ce={}))ve.call(ce,se)&&pe(le,se,ce[se]);if(be)for(var se of be(ce))fe.call(ce,se)&&pe(le,se,ce[se]);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"})));We.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function at(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(at.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(at.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(at.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(at.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 at))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 We=[];function ee(ne,a){var y=We.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function z(){var ne=We.pop();return ne===void 0?new go.Point:ne}function ge(ne){We.push(ne)}function be(ne,a,y,E,b,x,te,oe,ae){ae||(ae=new go.Point);var ue=ne-y,ye=b-te,_e=NaN,xe=NaN;if(ue===0)if(ye===0)ne===y&&(_e=ne,xe=a);else{var Ce=(x-oe)/ye,Be=x-Ce*b;_e=ne,xe=Ce*_e+Be}else if(ye===0){var Me=(a-E)/ue,mt=a-Me*ne;_e=b,xe=Me*_e+mt}else{var Me=(a-E)/ue,Ce=(x-oe)/ye,mt=a-Me*ne,Be=x-Ce*b;_e=(Be-mt)/(Me-Ce),xe=Me*_e+mt}return ae.x=_e,ae.y=xe,ae}function ve(ne,a,y,E,b,x,te,oe,ae,ue,ye,_e,xe,Ce){var Be=1-ae,Me=ae,mt=ne*Be+y*Me,Qe=a*Be+E*Me,pt=y*Be+b*Me,Ae=E*Be+x*Me,De=b*Be+te*Me,Fe=x*Be+oe*Me,tt=mt*Be+pt*Me,Ve=Qe*Be+Ae*Me,Ct=pt*Be+De*Me,Mt=Ae*Be+Fe*Me,en=tt*Be+Ct*Me,nn=Ve*Be+Mt*Me;ue.x=mt,ue.y=Qe,ye.x=tt,ye.y=Ve,_e.x=en,_e.y=nn,xe.x=Ct,xe.y=Mt,Ce.x=De,Ce.y=Fe}var fe=new go.Spot(.156,.156),pe=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new at("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=fe,b.spot2=pe,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 at("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 at("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 at("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 at("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 at("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 ce(ne){ne.length=0,de.push(ne)}function se(ne){for(var a=le(),y=.5,E=.5,b=Math.PI*1.5,x=0,te=0;te<ne;te++)x=2*Math.PI/ne*te+b,a[te]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function me(ne){var a=re(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 ce(a),y}function re(ne){for(var a=se(ne),y=le(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,te=0;te<b;te++){var oe=a[te],ae=a[te+1],ue=a[(E+te-1)%b],ye=a[(E+te+x)%b];y[te*2]=oe,y[te*2+1]=be(oe.x,oe.y,ue.x,ue.y,ae.x,ae.y,ye.x,ye.y,new go.Point)}return y[y.length]=y[0],ce(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=se(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<5;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=se(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<6;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=se(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<7;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=se(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<8;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=se(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<9;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=se(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<10;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=se(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<12;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<10;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<12;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<14;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<16;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<18;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<20;te++)x.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ce(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=me(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<E.length;te+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return x.segments.last().close(),ce(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=me(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<E.length;te+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return x.segments.last().close(),ce(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=me(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<E.length;te+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return x.segments.last().close(),ce(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=me(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<E.length;te+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return x.segments.last().close(),ce(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=me(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<E.length;te+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return x.segments.last().close(),ce(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=me(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var te=1;te<E.length;te+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return x.segments.last().close(),ce(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new at("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new at("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,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(te.add(new go.PathSegment(go.PathSegment.Move,E,b)),te.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),te.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),te.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 at("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,te=new go.PathFigure(a,a/2,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var oe=Math.max(b-E,0);return oe>0&&(te.add(new go.PathSegment(go.PathSegment.Move,a/2+oe,a/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=fe,x.spot2=pe,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 at("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new at("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 te=b%360,oe=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,x,te,oe,oe,oe,oe).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 at("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,te=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,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,te+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,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,te-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new at("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,te=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,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,te+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,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,te-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new at("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,te=y/2,oe=Math.atan2(y,a),ae=E-Math.min(Math.cos(oe)*E/2,x),ue=E-Math.min(Math.sin(oe)*E/2,te),b=new go.Geometry,ye=new go.PathFigure(ae,0,!0);return b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),ye.add(new go.PathSegment(go.PathSegment.Line,a,ue)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,a,y-ue)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ae,y)),ye.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,ae,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y-ue)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ue).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new at("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 at("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 at("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,te=.3,oe=0,ae=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+x+oe)*y,(.5-x+te)*a,(.5+ae+oe)*y,(.5-ae+te)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+te)*a,(.5+oe)*y,(.5+ae+te)*a,(.5+x+oe)*y,(.5+x+te)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-x+oe)*y,(1-.5+x+te)*a,(.5-ae+oe)*y,(.5+ae+te)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ae+te)*a,(.5-x+oe)*y,(.5-x+te+.05)*a,(.5-ae+oe-.02)*y)),x=.2,te=0,oe=-.3,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+te)*a,(.5+oe)*y,(.5+ae+te)*a,(.5+x+oe)*y,(.5+x+te)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-x+oe)*y,(1-.5+x+te)*a,(.5-ae+oe)*y,(.5+ae+te)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+te)*a,(.5+oe)*y,(.5-ae+te)*a,(.5-x+oe)*y,(.5-x+te)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+te)*a,(.5+x+oe)*y,(.5-x+te)*a,(.5+ae+oe)*y,(.5-ae+te)*a,(.5+x+oe)*y)),x=.2,te=-.3,oe=0,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-x+oe)*y,(1-.5+x+te-.05)*a,(.5-ae+oe-.02)*y,(.5+ae+te)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+te)*a,(.5+oe)*y,(.5-ae+te)*a,(.5-x+oe)*y,(.5-x+te)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+x+oe)*y,(.5-x+te)*a,(.5+ae+oe)*y,(.5-ae+te)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ae+te)*a,(.5+x+oe)*y,(.5+x+te)*a,(.5+ae+oe)*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,te=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(te+x)*a,oe*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*te,y*oe,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)),oe=.75,b=new go.PathFigure((te+x)*a,oe*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*te,y*oe,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,te=.5,oe=.5,ae=new go.PathFigure(te*a,(oe-x)*y);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),x=.4,b=ie*.4;var ue=z(),ye=z(),_e=z(),xe=z();ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.42,ue,ye,_e,xe,xe);var Ce=z(),Be=z(),Me=z();ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.58,xe,xe,Me,Ce,Be);var mt=z(),Qe=z(),pt=z();ve(te,oe+x,te-b,oe+x,te-x,oe+b,te-x,oe,.42,mt,Qe,pt,xe,xe);var Ae=z(),De=z(),Fe=z();return ve(te,oe+x,te-b,oe+x,te-x,oe+b,te-x,oe,.58,xe,xe,Fe,Ae,De),ae.add(new go.PathSegment(go.PathSegment.Move,Fe.x*a,Fe.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,Ae.x*a,Ae.y*y,De.x*a,De.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,_e.x*a,_e.y*y,ue.x*a,ue.y*y,ye.x*a,ye.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,pt.x*a,pt.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,Ce.x*a,Ce.y*y,Be.x*a,Be.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,pt.x*a,pt.y*y,mt.x*a,mt.y*y,Qe.x*a,Qe.y*y).close()),ge(ue),ge(ye),ge(_e),ge(xe),ge(Ce),ge(Be),ge(Me),ge(mt),ge(Qe),ge(pt),ge(Ae),ge(De),ge(Fe),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 at("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,te=.5,oe=.5,ae=z(),ue=z(),ye=z(),_e=z(),xe=new go.PathFigure((te-x)*a,oe*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.44,ye,_e,ue,ae,ae),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*a,ue.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y));var Ce=ee(ue.x,ue.y);ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.56,ae,ae,ue,ye,_e);var Be=ee(ue.x,ue.y);xe.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.95*.9)*a,Ce.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ce.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),xe.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),x=.35,b=ie*.35;var Me=new go.PathFigure(te*a,(oe-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y));var mt=new go.PathFigure((te-x)*a,oe*y,!1);return E.add(mt),ge(ae),ge(ue),ge(ye),ge(_e),ge(Ce),ge(Be),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,te=-.125,oe=b*ie,ae=new go.PathFigure((.525+x)*a,(.5+b+te)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+te)*y,(.5+oe+x)*a,(.5+b+te)*y,(.5+b+x)*a,(.5+oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+te)*y,(1-.5+b+x)*a,(.5-oe+te)*y,(.5+oe+x)*a,(.5-b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+te)*y,(.5-oe+x)*a,(.5-b+te)*y,(.5-b+x)*a,(.5-oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+te)*y,(.5-b+x)*a,(.5+oe+te)*y,(.5-oe+x)*a,(.5+b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,te=-.125,oe=b*ie;var ae=new go.PathFigure((1-.5+b+x)*a,(.5+te)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+te)*y,(.5+b+x)*a,(.5+oe+te)*y,(.5+oe+x)*a,(.5+b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+te)*y,(.5-oe+x)*a,(.5+b+te)*y,(.5-b+x)*a,(.5+oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+te)*y,(.5-b+x)*a,(.5-oe+te)*y,(.5-oe+x)*a,(.5-b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+te)*y,(.5+oe+x)*a,(.5-b+te)*y,(1-.5+b+x)*a,(.5-oe+te)*y));var ae=new go.PathFigure((.525+x)*a,(.5+b+te)*y,!1);return E.add(ae),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 at("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new at("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,te=(.5-b/2)*y,oe=(.5+b/2)*y,ae=new go.Geometry,ue=new go.PathFigure(0,te,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,te)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,te/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(ye.x,ye.y),ge(ye),ae}),go.Shape.setFigureParameter("Arrow2",0,new at("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new at("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,te=(y-b)/2,oe=te+b,ae=new go.Geometry,ue=new go.PathFigure(0,te,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,te)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,te/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(ye.x,ye.y),ge(ye),ae}),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 at("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,te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=be(0,.5,.3,0,0,b/y,.1,b/y,z());return te.spot1=new go.Spot(ae.x,ae.y),ae=be(.7,1,1,.5,0,x/y,1,x/y,ae),te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new at("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new at("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,te=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,te=x+E,oe=0,ae=y):(x=0,te=y,oe=0,ae=y));var ue=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close());var _e=be(0,.5,.3,oe/y,0,x/y,1,x/y,z());return ue.spot1=new go.Spot(_e.x,_e.y),_e=be(.7,ae/y,1,.5,0,te/y,1,te/y,_e),ue.spot2=new go.Spot(_e.x,_e.y),ge(_e),ue}),go.Shape.setFigureParameter("IBeamArrow",0,new at("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,te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(0,b/y);var ae=be(.7,1,1,.5,0,x/y,1,x/y,z());return te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new at("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new at("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,te=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,te=x+E,oe=0,ae=y):(x=0,te=y,oe=0,ae=y));var ue=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close()),ue.spot1=new go.Spot(0,x/y);var _e=be(.7,ae/y,1,.5,0,te/y,1,te/y,z());return ue.spot2=new go.Spot(_e.x,_e.y),ge(_e),ue}),go.Shape.setFigureParameter("Pointer",0,new at("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 te=be(.2,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(te.x,te.y),ge(te),b}),go.Shape.setFigureParameter("RoundedPointer",0,new at("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 te=be(0,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(te.x,te.y),ge(te),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new at("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,te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,.3);var ae=be(.7,1,1,.5,0,x/y,1,x/y,z());return te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new at("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 te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,b/y);var ae=be(.7,1,1,.5,0,x/y,1,x/y,z());return te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("SquareArrow",0,new at("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,te=new go.PathFigure(0,.9*y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),te.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,te=new go.PathFigure(0,E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*E,(.5+x)*a,1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,E));var oe=new go.PathFigure(a,E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ie*E,(.5+x)*a,2*E)),oe.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,te=new go.PathFigure(0,y-E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*E,(.5+x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ie*E));var oe=new go.PathFigure(0,y-E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ie*E,(.5-x)*a,y-2*E)),oe.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,te=new go.PathFigure(E,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0));var oe=new go.PathFigure(E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ie*E,0,2*E,(.5-x)*y)),oe.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,te=new go.PathFigure(a-E,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var oe=new go.PathFigure(a-E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ie*E,0,a-2*E,(.5-x)*y)),oe.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,te=ie*b,oe=ie*x,ae=.5,ue=.1,ye=new go.PathFigure(ae*a,(ue+x)*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae-b)*a,ue*y,(ae-te)*a,(ue+x)*y,(ae-b)*a,(ue+oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-x)*y,(ae-b)*a,(ue-oe)*y,(ae-te)*a,(ue-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae+b)*a,ue*y,(ae+te)*a,(ue-x)*y,(ae+b)*a,(ue-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+x)*y,(ae+b)*a,(ue+oe)*y,(ae+te)*a,(ue+x)*y));var _e=.05,xe=ie*_e;ae=.05,ue=.25;var Ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ae=.95,ue=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae+_e)*a,ue*y,(ae+xe)*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),_e=.025,xe=ie*_e,ae=.825,ue=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y,(ae+xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ue*y,(ae-xe)*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),_e=.05,xe=ie*_e,ae=.5,ue=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y,(ae+xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ue*y,(ae-xe)*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),_e=.025,xe=ie*_e,ae=.175,ue=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y,(ae+xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ue*y,(ae-xe)*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),_e=.05,xe=ie*_e,ae=.05,ue=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y,(ae-xe)*a,(ue-_e)*y)),Ce.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 at("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 te=new go.PathFigure(0,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),te.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,te=new go.PathFigure(a,.1*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),oe.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,te=new go.PathFigure(a,.1*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.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,te=new go.PathFigure(0,.2*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var oe=new go.PathFigure(0,b*y,!1);return E.add(oe),oe.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 te=new go.PathFigure(0,b*y,!1);return E.add(te),te.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 te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),te.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 te=new go.PathFigure(a,.5*y,!1);return E.add(te),te.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 te=new go.PathFigure(0,0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),oe.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,te=ie*.5,oe=.5,ae=new go.PathFigure(a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,y,a,(oe+te)*y,(oe+te)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*y,(oe-te)*a,y,0,(oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,0,0,(oe-te)*y,(oe-te)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,oe*y,(oe+te)*a,0,a,(oe-te)*y));var ue=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ue.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ue.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,te=new go.PathFigure(.5*a,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.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,te=new go.PathFigure(0,0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var oe=new go.PathFigure(.5*b*a,b*y,!1);return E.add(oe),oe.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,te=new go.PathFigure(a,x*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),oe.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 te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.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 te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),te.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 te=new go.PathFigure((1-b)*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),te.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 te=new go.PathFigure(b*a,0,!1);return E.add(te),te.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 te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),te.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,te=new go.PathFigure(a,x*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,x*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ae=new go.PathFigure(.8*a,.75*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ae.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,te=.9,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ue=new go.PathFigure((te+x)*a,oe*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe-x)*y,(te+x)*a,(oe-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,te=ie*.1,oe=.1,ae=.9,ue=.5,ye=new go.PathFigure(.8*a,.5*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var _e=new go.PathFigure((ae+oe)*a,ue*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+oe)*y,(ae+oe)*a,(ue+te)*y,(ae+te)*a,(ue+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a,ue*y,(ae-te)*a,(ue+oe)*y,(ae-oe)*a,(ue+te)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-oe)*y,(ae-oe)*a,(ue-te)*y,(ae-te)*a,(ue-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a,ue*y,(ae+te)*a,(ue-oe)*y,(ae+oe)*a,(ue-te)*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,te=0,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,te=.9,oe=.5;var ue=new go.PathFigure((te-b)*a,oe*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+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,te=0,oe=.5,ae=new go.PathFigure(0,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+x+x)*a,(oe-b)*y,.8*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(oe+x)*y,(te+x+x)*a,(oe+b)*y)),ae.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,te=.2,oe=.5,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ue=new go.PathFigure(.8*a,.5*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,te=.9,oe=.5;var ye=new go.PathFigure((te-b)*a,oe*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+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,te=.2,oe=.5,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ue=new go.PathFigure(.2*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+x)*a,(oe-b)*y,.9*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.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,te=.1,oe=.5,ae=new go.PathFigure((te-b*.5)*a,y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+x)*a,0,(te+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+x)*a,0,(te+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+x)*a,0,(te+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b*.5)*a,y,(te+x)*a,0,(te+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,te=.5,oe=.5,ae=new go.PathFigure((te-x)*a,oe*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe-x)*y,(te+x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Move,(te-x+.1)*a,oe*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x-.1)*a,oe*y,te*a,(oe-x)*y,te*a,(oe+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 te=ie*.8,oe=.8,ae=0,ue=.5,ye=(b-a)/2,_e=(x-y)/2,xe=new go.PathFigure(ae*a+ye,(ue+oe)*y+_e,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+ye,ue*y+_e,(ae-te)*a+ye,(ue+oe)*y+_e,(ae-oe)*a+ye,(ue+te)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae-oe)*a+ye,(ue-te)*y+_e,(ae-te)*a+ye,(ue-oe)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue-oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue-te)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue+te)*y+_e,ae*a+ye,(ue+oe)*y+_e).close()),te=ie*.4,oe=.4,ae=.2,ue=.5;var Ce=new go.PathFigure(ae*a+ye,(ue+oe)*y+_e,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+ye,ue*y+_e,(ae-te)*a+ye,(ue+oe)*y+_e,(ae-oe)*a+ye,(ue+te)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae-oe)*a+ye,(ue-te)*y+_e,(ae-te)*a+ye,(ue-oe)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue-oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue-te)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue+te)*y+_e,ae*a+ye,(ue+oe)*y+_e).close()),te=ie*.2,oe=.2,ae=.5,ue=.5;var Be=new go.PathFigure((ae-oe)*a+ye,ue*y+_e,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae-oe)*a+ye,(ue-te)*y+_e,(ae-te)*a+ye,(ue-oe)*y+_e)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+ye,ue*y+_e,(ae+te)*a+ye,(ue-oe)*y+_e,(ae+oe)*a+ye,(ue-te)*y+_e)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae+oe)*a+ye,(ue+te)*y+_e,(ae+te)*a+ye,(ue+oe)*y+_e)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+ye,ue*y+_e,(ae-te)*a+ye,(ue+oe)*y+_e,(ae-oe)*a+ye,(ue+te)*y+_e)),te=ie*.4,oe=.4,ae=.8,ue=.5;var Me=new go.PathFigure(ae*a+ye,(ue-oe)*y+_e,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+ye,ue*y+_e,(ae+te)*a+ye,(ue-oe)*y+_e,(ae+oe)*a+ye,(ue-te)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae+oe)*a+ye,(ue+te)*y+_e,(ae+te)*a+ye,(ue+oe)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue+oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue+te)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue-te)*y+_e,ae*a+ye,(ue-oe)*y+_e).close()),te=ie*.8,oe=.8,ae=1,ue=.5;var mt=new go.PathFigure(ae*a+ye,(ue-oe)*y+_e,!0);return E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+ye,ue*y+_e,(ae+te)*a+ye,(ue-oe)*y+_e,(ae+oe)*a+ye,(ue-te)*y+_e)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae+oe)*a+ye,(ue+te)*y+_e,(ae+te)*a+ye,(ue+oe)*y+_e)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue+oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue+te)*y+_e)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue-te)*y+_e,ae*a+ye,(ue-oe)*y+_e).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 te=new go.PathFigure(.6*a,y,!0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var oe=new go.PathFigure(0,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),oe.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,te=.5,oe=.5,ae=z(),ue=z(),ye=z(),_e=z();ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.5,ae,ae,ue,ye,_e);var xe=ee(ue.x,ue.y),Ce=new go.PathFigure(ue.x*a,ue.y*y,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),ve(te-x,oe,te-x,oe-b,te-b,oe-x,te,oe-x,.5,ye,_e,ue,ae,ae),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*a,ue.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),b=ie*.3,x=.3,ve(te-x,oe,te-x,oe-b,te-b,oe-x,te,oe-x,.5,ye,_e,ue,ae,ae),Ce.add(new go.PathSegment(go.PathSegment.Line,ue.x*a,ue.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.5,ae,ae,ue,ye,_e),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*a,ue.y*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y).close());var Ce=new go.PathFigure(.45*a,0,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ge(ae),ge(ue),ge(ye),ge(_e),ge(xe),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(te,oe,ae){te.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*a,(.8+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*a,(.5+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*a,(.5+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*a,(.8+ae)*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,te=0,oe=b*ie,ae=.4*Math.SQRT2/2+.5,ue=.5-.5*Math.SQRT2/2,ye=1,_e=.5,xe=.5,Ce=0,Be=new go.PathFigure(ae*a,(1-ue)*y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,_e*y,ye*a,.7*y,ye*a,_e*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(xe+x)*a,(Ce+x)*y,(.5+b+x)*a,(.5-oe+x)*y,(.5+oe+x)*a,(.5-b+x)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+te)*y,(.5-oe+x)*a,(.5-b+te)*y,(.5-b+x)*a,(.5-oe+te)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+oe+te)*y,(.5-oe+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Be.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 te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),te.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 te=.5-.285,oe=.5,ae=te,ue=Math.PI/4,ye=4*(1-Math.cos(ue))/(3*Math.sin(ue)),_e=ye*.5,xe=te,Ce=te,Be=ye*xe,Me=ye*Ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-xe)*a,ae*y,(oe-(Be+xe)/2)*a,(ae+(Ce+Me)/2)*y,(oe-xe)*a,(ae+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-Ce)*y,(oe-xe)*a,(ae-Me)*y,(oe-Be)*a,(ae-Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+xe)*a,ae*y,(oe+Be)*a,(ae-Ce)*y,(oe+xe)*a,(ae-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(oe+xe)*a,(ae+Me)*y,(oe+(Be+xe)/2)*a,(ae+(Ce+Me)/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 mt=new go.PathFigure(.2*a,y,!1);E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Qe=new go.PathFigure(.8*a,y,!1);return E.add(Qe),Qe.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 te=new go.PathFigure(.1*a,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.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 te=new go.PathFigure(.675*a,.575*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),te.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,te=new go.PathFigure(a,b*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.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 te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.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 te=new go.PathFigure(0,.6*y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),te.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 te=.1,oe=ie*.1,ae=.2,ue=.9,ye=new go.PathFigure((ae-te)*a,ue*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-te)*y,(ae-te)*a,(ue-oe)*y,(ae-oe)*a,(ue-te)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ue*y,(ae+oe)*a,(ue-te)*y,(ae+te)*a,(ue-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+te)*y,(ae+te)*a,(ue+oe)*y,(ae+oe)*a,(ue+te)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ue*y,(ae-oe)*a,(ue+te)*y,(ae-te)*a,(ue+oe)*y).close()),te=.1,oe=ie*.1,ae=.8,ue=.9;var _e=new go.PathFigure((ae-te)*a,ue*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-te)*y,(ae-te)*a,(ue-oe)*y,(ae-oe)*a,(ue-te)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ue*y,(ae+oe)*a,(ue-te)*y,(ae+te)*a,(ue-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+te)*y,(ae+te)*a,(ue+oe)*y,(ae+oe)*a,(ue+te)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ue*y,(ae-oe)*a,(ue+te)*y,(ae-te)*a,(ue+oe)*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 te=new go.PathFigure(.5*a,.8*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var oe=new go.PathFigure(.5*a,.7*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ae=.1,ue=ie*.1,ye=.1,_e=.9,xe=new go.PathFigure((ye-ae)*a,_e*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ae)*y,(ye-ae)*a,(_e-ue)*y,(ye-ue)*a,(_e-ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ae)*a,_e*y,(ye+ue)*a,(_e-ae)*y,(ye+ae)*a,(_e-ue)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ae)*y,(ye+ae)*a,(_e+ue)*y,(ye+ue)*a,(_e+ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ae)*a,_e*y,(ye-ue)*a,(_e+ae)*y,(ye-ae)*a,(_e+ue)*y)),ae=.1,ue=ie*.1,ye=.4,_e=.9;var Ce=new go.PathFigure((ye-ae)*a,_e*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ae)*y,(ye-ae)*a,(_e-ue)*y,(ye-ue)*a,(_e-ae)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ae)*a,_e*y,(ye+ue)*a,(_e-ae)*y,(ye+ae)*a,(_e-ue)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ae)*y,(ye+ae)*a,(_e+ue)*y,(ye+ue)*a,(_e+ae)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ae)*a,_e*y,(ye-ue)*a,(_e+ae)*y,(ye-ae)*a,(_e+ue)*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 te=new go.PathFigure(.55*a,.4*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ye=.05,_e=ie*.05,xe=.175,Ce=.95,oe=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ie*.05,xe=.375,Ce=.95,ae=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ie*.05,xe=.625,Ce=.95,ue=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ie*.05,xe=.825,Ce=.95,Be=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.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 te=new go.PathFigure(.15*a,y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var oe=.05,ae=ie*.05,ue=.35,ye=.775,_e=new go.PathFigure((ue-oe)*a,ye*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ye-oe)*y,(ue-oe)*a,(ye-ae)*y,(ue-ae)*a,(ye-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*a,ye*y,(ue+ae)*a,(ye-oe)*y,(ue+oe)*a,(ye-ae)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ye+oe)*y,(ue+oe)*a,(ye+ae)*y,(ue+ae)*a,(ye+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*a,ye*y,(ue-ae)*a,(ye+oe)*y,(ue-oe)*a,(ye+ae)*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,te=.5,oe=.7,ae=new go.PathFigure((te-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y));var ue=new go.PathFigure(0,.7*y,!1);return E.add(ue),ue.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,te=.5,oe=.5,ae=new go.PathFigure((te-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y));var ue=new go.PathFigure(.15*a,.5*y,!1);return E.add(ue),ue.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,te=.5,oe=.5,ae=new go.PathFigure((te-b)*a,oe*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y).close()),b=.05,x=ie*.05,te=.5,oe=.8;var ue=new go.PathFigure((te-b)*a,oe*y,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ue.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 te=new go.PathFigure(.402*a,.85*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var oe=new go.PathFigure(.678*a,.85*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ae=new go.PathFigure(.5*a,.1*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ae.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 te=new go.PathFigure(a*.408,y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var oe=new go.PathFigure(a*.612,y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ae=new go.PathFigure(a*.816,y,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ae.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 te=new go.PathFigure(a*.055,.13*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var oe=new go.PathFigure(a*.055,.18*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ae=new go.PathFigure(a*1,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ae.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 te=new go.PathFigure(a*.11,y*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var oe=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ae.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,te=new go.PathFigure(b,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var oe=new go.PathFigure(a*.83,0,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ae=new go.PathFigure(a*.83,y*1,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ue=new go.PathFigure(a*.78,y*.05,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ue.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ue.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,te=new go.Geometry,oe=new go.PathFigure(E,0,!0);return te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),oe.add(new go.PathSegment(go.PathSegment.Line,E,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(te.spot1=new go.Spot(0,0,b,b),te.spot2=new go.Spot(1,.8,-b,-b)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),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 te=new go.PathFigure(a*.28,y*.37,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),te.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,te=new go.PathFigure(a*.62,y*.475,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),te.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),te.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 te=new go.PathFigure(a*.4,y*0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),te.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),te.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 te=new go.PathFigure(a*.5,y*0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),te.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")},61016: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 at={},We="5.0",ee={},z=null,ge=!1,be=!1,ve=null,fe=!1,pe=null,ie=null,de=0;de<arguments.length;de++){var le=arguments[de];if(le!==null)switch(typeof le){case"number":We=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?We=le:ve=le;break;case"object":typeof le.is3D!="undefined"?z=le:ee=le;break;case"boolean":ge=le,be=!0;break}}z===null&&(z={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!be&&(ge=!0)),ve!==null&&ee.id===void 0&&(ee.id=ve);var ce="",se="",me=!1,re=null,ne=null,a=null,y=!1,E=null,b=null,x=null,te=null,oe=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var ae=function(it){return parseFloat(it)>4?parseFloat(it):5};at.setHTML5Codebase=function(it,ct){ie=it,Mt(it,ct)},at.setJavaCodebase=at.setJavaCodebaseVersion=at.isCompiledInstalled=at.setPreCompiledScriptPath=at.setPreCompiledResourcePath=function(){},at.setHTML5CodebaseVersion=function(it,ct){var wt=parseFloat(it);if(wt!==NaN&&wt<5){console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead.");return}pe=it,Ct(it,ct)},at.getHTML5CodebaseVersion=function(){return ne},at.getParameters=function(){return ee},at.setFontsCSSURL=function(it){te=it},at.setGiacJSURL=function(it){},at.setJNLPFile=function(it){ce=it},at.setJNLPBaseDir=function(it){},at.inject=function(){function it(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ct="auto",wt=ee.id,Vt,Gt=!1,Ln=0;Ln<arguments.length;Ln++){var He=arguments[Ln];typeof He=="string"?(He=He.toLowerCase(),He.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ct=He:wt=arguments[Ln]):typeof He=="boolean"?Gt=He:He instanceof HTMLElement&&(Vt=He)}on();function on(){if(!fe){setTimeout(on,200);return}ct=tt(ct);var In=Vt||document.getElementById(wt);if(!In){console.log("possibly bug on ajax loading? ");return}if(at.removeExistingApplet(In,!1),ee.width===void 0&&In.clientWidth&&(ee.width=In.clientWidth),ee.height===void 0&&In.clientHeight&&(ee.height=In.clientHeight),!(ee.width&&ee.height)&&ct==="html5"&&(delete ee.width,delete ee.height),re=ct,ct==="screenshot")Qe(In,ee);else{var or=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?or=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(or=(!ue()||it())&&ye()),or?(re="screenshot",Ae(In,ee,Gt,ct)):mt(In,ee,Gt)}}};function ue(){try{return window.self!==window.top}catch(it){return!0}}function ye(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}at.getViews=function(){return z},at.isJavaInstalled=function(){return!1};var _e=function(it){var ct=function(Ln){var He=JSON.parse(Ln),on=function(bn){return bn.type=="G"||bn.type=="E"},In=He.elements?He.elements.filter(on)[0]:He;if(!In||!In.url){wt();return}ee.fileName=In.url,xe(In.settings||{}),z.is3D=!0;var or="https://www.geogebra.org/images/";at.setPreviewImage(E||In.previewUrl,or+"GeoGebra_loading.png",or+"applet_play.png"),it()},wt=function(){ee.onError&&ee.onError(),en("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Vt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Gt="/materials/"+ee.material_id+"?scope=basic";Ce("https://"+Vt+"/api/proxy.php?path="+encodeURIComponent(Gt),ct,wt)};function xe(it){var ct=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(wt){it[wt]=!!it[wt]}),ct.forEach(function(wt){ee[wt]===void 0&&it[wt]!==void 0&&(ee[wt]=it[wt])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function Ce(it,ct,wt){var Vt=new XMLHttpRequest;Vt.open("GET",it),Vt.onload=function(){ct(Vt.responseText)},Vt.onerror=wt,Vt.send()}at.isHTML5Installed=function(){return!0},at.getLoadedAppletType=function(){return re},at.setPreviewImage=function(it,ct,wt){E=it,b=ct,x=wt},at.removeExistingApplet=function(it,ct){var wt;typeof it=="string"&&(it=document.getElementById(it)),re=null;var Vt=null;for(wt=0;wt<it.childNodes.length;wt++){var Gt=it.childNodes[wt],Ln=Gt.className;Ln==="applet_screenshot"?ct?(Gt.style.display="block",re="screenshot"):Gt.style.display="none":Ln!=="applet_scaler prerender"&&(it.removeChild(Gt),Vt=Ln&&Ln.indexOf("appletParameters")!=-1?Gt.id:null,wt--)}var He=ee.id!==void 0?ee.id:Vt,on=window[He];on&&typeof on.getBase64=="function"&&(on.remove(),window[He]=null)},at.refreshHitPoints=function(){if(ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var it=at.getAppletObject();return it&&typeof it.recalculateEnvironments=="function"?(it.recalculateEnvironments(),!0):!1},at.startAnimation=function(){var it=at.getAppletObject();return it&&typeof it.startAnimation=="function"?(it.startAnimation(),!0):!1},at.stopAnimation=function(){var it=at.getAppletObject();return it&&typeof it.stopAnimation=="function"?(it.stopAnimation(),!0):!1},at.getAppletObject=function(){var it=ee.id!==void 0?ee.id:"ggbApplet";return window[it]},at.resize=function(){};var Be=function(it,ct,wt){var Vt=document.createElement("param");Vt.setAttribute("name",ct),Vt.setAttribute("value",wt),it.appendChild(Vt)},Me=function(it){return it&&it!=="false"},mt=function(it,ct,wt){ae(ne)<=4.2&&(wt=!0);var Vt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Vt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Gt=document.createElement("div");Gt.classList.add("appletParameters","notranslate");var Ln=ct.width,He=ct.height;if(ct.disableAutoScale=ct.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ct.disableAutoScale,ct.width!==void 0)if(ae(ne)<=4.4)Me(ct.showToolBar)&&(ct.height-=7),Me(ct.showAlgebraInput)&&(ct.height-=37),ct.width<605&&Me(ct.showToolBar)&&(ct.width=605,Ln=605);else{var on=100;(Me(ct.showToolBar)||Me(ct.showMenuBar))&&(ct.hasOwnProperty("customToolBar")&&(ct.customToolbar=ct.customToolBar),on=Me(ct.showMenuBar)?245:155),Ln<on&&(ct.width=on,Ln=on)}Gt.style.border="none",Gt.style.display="inline-block";for(var In in ct)ct.hasOwnProperty(In)&&In!=="appletOnLoad"&&Gt.setAttribute("data-param-"+In,ct[In]);te&&Gt.setAttribute("data-param-fontscssurl",te),at.resize=function(){GGBAppletUtils.responsiveResize(it,ct)},window.addEventListener("resize",function(cn){at.resize()});var or=typeof ct.appletOnLoad=="function"?ct.appletOnLoad:function(){};if(!wt&&ct.width!==void 0){ct.hasOwnProperty("showSplash")||Gt.setAttribute("data-param-showSplash","false");var bn=it.querySelector(".applet_scaler.prerender"),$t=bn!==null;if($t)var qe=bn.querySelector(".ggb_preview");else{var qe=Fe(Ln,He,ct.borderColor,!1);bn=document.createElement("div"),bn.className="applet_scaler",bn.style.position="relative",bn.style.display="block",bn.style.width=Ln+"px",bn.style.height=He+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bn,"66%"),ae(ne)>=5?(ct.appletOnLoad=function(cn){var Ge=it.querySelector(".ggb_preview");Ge&&Ge.parentNode.removeChild(Ge),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(bn),window.GGBT_wsf_view&&$(window).trigger("resize"),or(cn)},$t||bn.appendChild(qe)):Gt.appendChild(qe),bn.appendChild(Gt),$t||it.appendChild(bn),setTimeout(function(){at.resize()},1)}else{var Je=document.createElement("div");Je.className="applet_scaler",Je.style.position="relative",Je.style.display="block",Je.appendChild(Gt),it.appendChild(Je),ct.appletOnLoad=function(cn){at.resize(),or(cn)}}function Pt(cn,Ge){Ge&&typeof Ge.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(cn,Ge.appletOnLoad):renderGGBElement(cn),en("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ge)}function Nt(cn,Ge){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:cn,params:Ge}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(gt){Pt(gt.article,gt.params)}),html5AppletsToProcess=null)},ae(ne)<5&&(cn.className+=" geogebraweb")):Pt(cn,Ge)}if(Vt){scriptLoadStarted=!0;for(var Wt=0;Wt<Gt.childNodes.length;Wt++){var dt=Gt.childNodes[Wt].tagName;dt==="TABLE"&&(Gt.removeChild(Gt.childNodes[Wt]),Wt--)}if(ggbHTML5LoadedScript!==null){var yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yt!=null&&yt.parentNode.removeChild(yt)}var Tt=document.createElement("script"),rt=function(){Nt(Gt,ct)};Tt.src=se+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Tt.src,en("GeoGebra HTML5 codebase loaded: '"+se+"'.",ct),!ie&&(!pe||pe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rt()):se.requirejs?__webpack_require__.e(12).then(function(){var cn=[__webpack_require__(12)];rt.apply(null,cn)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=rt,it.appendChild(Tt))}else Nt(Gt,ct);ct.height=He,ct.width=Ln},Qe=function(it,ct,wt){var Vt=Fe(ct.width,ct.height,ct.borderColor,wt),Gt=document.createElement("div");Gt.style.position="relative",Gt.style.display="block",Gt.style.width=ct.width+"px",Gt.style.height=ct.height+"px",Gt.className="applet_screenshot applet_scaler"+(wt?" applet_screenshot_play":""),Gt.appendChild(Vt);var Ln=GGBAppletUtils.getScale(ct,it,wt);wt?(it.appendChild(De()),window.GGBT_wsf_view||(it.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),it.appendChild(Gt),Ln!==1&&!isNaN(Ln)&&(GGBAppletUtils.scaleElement(Gt,Ln),Gt.style.width=ct.width+"px",Gt.style.height=ct.height+"px",Gt.parentNode.style.width=ct.width*Ln+"px",Gt.parentNode.style.height=ct.height*Ln+"px"),at.resize=function(){pt(it,Vt,Gt,wt)},window.addEventListener("resize",function(He){at.resize()}),at.resize()};function pt(it,ct,wt,Vt){if(it.contains(ct)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(it.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(it)}var Gt=GGBAppletUtils.getScale(ee,it,Vt);wt.parentNode!==null&&(!isNaN(Gt)&&Gt!==1?(GGBAppletUtils.scaleElement(wt,Gt),wt.parentNode.style.width=ee.width*Gt+"px",wt.parentNode.style.height=ee.height*Gt+"px"):(GGBAppletUtils.scaleElement(wt,1),wt.parentNode.style.width=ee.width+"px",wt.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(it),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}at.onExitFullscreen=function(it,ct){ct.appendChild(it)};var Ae=function(it,ct,wt,Vt){Qe(it,ct,!0);for(var Gt=function(){var on=[];for(He=0;He<it.childNodes.length;He++)on.push(it.childNodes[He]);if(window.GGBT_wsf_view){var In=window.GGBT_wsf_view.renderFullScreen(it,ct.id),or=document.getElementById("fullscreencontainer"),bn=jQuery(it).find(".fullscreencontent");bn.length>0?(In.remove(),bn.attr("id","fullscreencontent").show(),jQuery(or).append(bn),window.dispatchEvent(new Event("resize"))):mt(In,ct,!1),window.GGBT_wsf_view.launchFullScreen(or)}else re=Vt,mt(it,ct,!1);if(!window.GGBT_wsf_view)for(He=0;He<on.length;He++)it.removeChild(on[He])},Ln=it.getElementsByClassName("ggb_preview_play"),He=0;He<Ln.length;He++)Ln[He].addEventListener("click",Gt,!1),Ln[He].addEventListener("ontouchstart",Gt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(it),ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},De=function(){var it=document.createElement("div");if(it.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ct='.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");}',wt=document.createElement("style");wt.styleSheet?wt.styleSheet.cssText=ct:wt.appendChild(document.createTextNode(ct)),document.getElementsByTagName("head")[0].appendChild(wt)}return it},Fe=function(it,ct,wt,Vt){var Gt=document.createElement("div");Gt.className="ggb_preview",Gt.style.position="absolute",Gt.style.zIndex="90",Gt.style.width=it-2+"px",Gt.style.height=ct-2+"px",Gt.style.top="0px",Gt.style.left="0px",Gt.style.overflow="hidden",Gt.style.backgroundColor="white";var Ln="lightgrey";wt!==void 0&&(wt==="none"?Ln="transparent":Ln=wt),Gt.style.border="1px solid "+Ln;var He=document.createElement("img");if(He.style.position="relative",He.style.zIndex="1000",He.style.top="-1px",He.style.left="-1px",E!==null&&He.setAttribute("src",E),He.style.opacity=.7,b!==null){var on,In,or;if(!Vt){on=document.createElement("img"),on.style.position="absolute",on.style.zIndex="1001",on.style.opacity=1,He.style.opacity=.3,In=360,In>it/4*3&&(In=it/4*3),or=In/5.8,on.setAttribute("src",b),on.setAttribute("width",In),on.setAttribute("height",or);var bn=(it-In)/2,$t=(ct-or)/2;on.style.left=bn+"px",on.style.top=$t+"px",Gt.appendChild(on)}}return Gt.appendChild(He),Gt},tt=function(it){return it=it.toLowerCase(),it==="html5"||it==="screenshot"?it:"html5"},Ve=["web","webSimple","web3d","tablet","tablet3d","phone"],Ct=function(it,ct){if(ne=it,ct){Mt(ne,!0);return}var wt=!ge;if(wt){var Vt=ae(ne);!isNaN(Vt)&&Vt<4.4&&(wt=!1)}var Gt,Ln;window.location.protocol.substr(0,4)==="http"?Gt=window.location.protocol:Gt="http:";var He=ne.indexOf("//");He>0?Ln=ne:He===0?Ln=Gt+ne:Ln="https://www.geogebra.org/apps/5.2.814.0/";for(var on in Ve)if(ne.slice(Ve[on].length*-1)===Ve[on]||ne.slice((Ve[on].length+1)*-1)===Ve[on]+"/"){Mt(Ln,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&wt&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(ee.showToolBar)&&!Me(ee.showMenuBar)&&!Me(ee.showAlgebraInput)&&!Me(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Ln+="webSimple/":Ln+="web3d/",Mt(Ln,!1)},Mt=function(it,ct){if(it.requirejs){se=it;return}it.slice(-1)!=="/"&&(it+="/"),se=it,ct===null&&(ct=it.indexOf("http")===-1),me=ct,a="web.nocache.js",y=!1;var wt=se.split("/");wt.length>1&&(!ct&&wt[wt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ve.indexOf(wt[wt.length-2])>=0&&(a=wt[wt.length-2]+".nocache.js")),wt=it.split("/"),ne=wt[wt.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 Vt=parseFloat(ne);Vt!==NaN&&Vt<5&&it.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vt+" is deprecated. Using version latest instead."),Ct("5.0",ct))},en=function(it,ct){window.console&&window.console.log&&(!ct||typeof ct.showLogging=="undefined"||ct.showLogging&&ct.showLogging!=="false")&&console.log(it)};ee.material_id!==void 0?_e(nn):nn();function nn(){var it=We;pe!==null?it=pe:parseFloat(it)<5&&(it="5.0"),Ct(it,!1),ie!==null&&Mt(ie,me),fe=!0}return at},GGBAppletUtils=function(){"use strict";function at(){return window.GGBT_wsf_edit!==void 0}function We(fe,pe){pe!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+pe+","+pe+")",fe.style.webkitTransform="scale("+pe+","+pe+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function ee(fe,pe,ie,de,le,ce){var se=null;if(ce!=null&&ce!="")for(var me=fe.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ce+" ")>-1){se=me;break}else me=me.parentNode;var re=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(se)re=se.offsetWidth,ne=Math.max(de?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=re):(re=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var te=fe.getBoundingClientRect();te.left>0&&te.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(E=re-te.width-te.left,b=a<=480?10:30):(b=te.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((ie===void 0||!ie)&&pe>0&&pe+y<re?re=pe:re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:re,height:ne}}function z(fe,pe,ie,de,le){if(fe.isScreenshoGenerator)return 1;var ce=de!==void 0&&de,se=fe.noScaleMargin!=null&&fe.noScaleMargin,me=function(oe){return oe&&oe!=="false"},re=me(fe.autoHeight),ne=ee(pe,fe.width,ie,re,ce&&window.GGBT_wsf_view||se,le),a=parseInt(ne.width),y=fe.width,E=fe.height;if(y===void 0){var b=pe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,te=ce?1:ne.height/E;return ie!==void 0&&!ie&&(x=Math.min(1,x),te=Math.min(1,te)),Math.min(x,te)}function ge(fe,pe,ie){var de=1,le,ce=!1;if(fe.hasOwnProperty("allowUpscale")&&(ce=fe.allowUpscale),fe.hasOwnProperty("scale")&&(de=parseFloat(fe.scale),(isNaN(de)||de===null||de===0)&&(de=1),de>1&&(ce=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))le=z(fe,pe,ce,ie,fe.scaleContainerClass);else return de;return ce&&(!fe.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function be(fe){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),de=fe.getBoundingClientRect(),le=(pe-de.width)/2,ce=(ie-de.height)/2;ce<0&&(ce=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?fe.style.left="40px":fe.style.left=le+"px",fe.style.top=ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ce<40?fe.style.top="40px":fe.style.top=ce+"px",fe.style.left=le+"px")}function ve(fe,pe){var ie=fe.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var de=ge(pe,fe);at()&&ie.setAttribute("data-param-scale",de);for(var le=null,ce=0;ce<fe.childNodes.length;ce++)if(fe.childNodes[ce].className!==void 0&&fe.childNodes[ce].className.match(/^applet_scaler/)){le=fe.childNodes[ce];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var se=pe.id!==void 0?pe.id:"ggbApplet",me=window[se];(me==null||!me.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(de)&&de!==1?(le.parentNode.style.width=pe.width*de+"px",le.parentNode.style.height=pe.height*de+"px",We(le,de)):(We(le,1),le.parentNode.style.width=pe.width+"px",le.parentNode.style.height=pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:ve,isFlexibleWorksheetEditor:at,positionCenter:be,getScale:ge,scaleElement:We}}();__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 at=n.location.search;return at.indexOf(J)!=-1||at.indexOf(K)!=-1}function q(at,We){}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(at){var We=s[L].bindings;s[L].bindings=function(){for(var ee=We?We():{},z=at[webModule.__softPermutationId],ge=O;ge<z.length;ge++){var be=z[ge];ee[be[O]]=be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var at=o.createElement(Q);if(at.id=L,at.style.cssText=R+S,at.tabIndex=-1,o.body.appendChild(at),t=at.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var We=document.compatMode==U?V:W;t.write(We+X),t.close()}}}function w(at){function We(z){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=ge();if(be){z();return}function ve(){if(!be){if(!ge())return;be=!0,z(),o.removeEventListener&&o.removeEventListener(Z,ve,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,ve,!1);var fe=setInterval(function(){ve()},$)}function ee(z){var ge=u(),be=ge.body,ve=ge.createElement(_);ve.language=ab,ve.crossOrigin=W,ve.src=z,webModule.__errFn&&(ve.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),be.appendChild(ve)}We(function(){ee(at)})}webModule.__startLoadingFragment=function(at){return C(at)},webModule.__installRunAsyncCode=function(at){var We=u(),ee=We.body,z=We.createElement(_);z.language=ab,z.text=at,ee.appendChild(z),ee.removeChild(z)};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(at){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(at){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(at){var We=c[at];return We==null?null:We},r=d,webModule.__errFn=e}function B(){function at(fe){var pe=fe.lastIndexOf(rb);pe==-1&&(pe=fe.length);var ie=fe.indexOf(sb);ie==-1&&(ie=fe.length);var de=fe.lastIndexOf(tb,Math.min(ie,pe));return de>=O?fe.substring(O,de+P):W}function We(fe){if(!fe.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=fe+vb,fe=at(pe.src)}return fe}function ee(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function z(){for(var fe=o.getElementsByTagName(_),pe=O;pe<fe.length;++pe)if(fe[pe].src.indexOf(xb)!=-1)return at(fe[pe].src);return W}function ge(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function be(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var ve=ee();return ve==W&&(ve=z()),ve==W&&(ve=ge()),ve==W&&be()&&(ve=at(o.location.href)),ve=We(ve),ve}function C(at){return at.match(/^\//)||at.match(/^[a-zA-Z]+:\/\//)?at:webModule.__moduleBase+at}function D(){var at=[],We=O,ee=[],z=[];function ge(fe){var pe=z[fe](),ie=ee[fe];if(pe in ie)return pe;var de=[];for(var le in ie)de[ie[le]]=le;throw r&&r(fe,de,pe),null}if(__gwt_isKnownPropertyValue=function(fe,pe){return pe in ee[fe]},webModule.__getPropMap=function(){var fe={};for(var pe in ee)ee.hasOwnProperty(pe)&&(fe[pe]=ge(pe));return fe},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ve=be.indexOf(Db);ve!=-1&&(We=parseInt(be.substring(ve+P),$),be=be.substring(O,ve))}catch(fe){}return webModule.__softPermutationId=We,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})()},15476:function(at,We,ee){"use strict";ee.d(We,{Ax:function(){return ve},Ds:function(){return fe},KI:function(){return ie},SI:function(){return be},f1:function(){return ge}});var z=ee(11320);function ge(de){let le=!0;if(de.length>0){for(let ce=0;ce<de.length;ce++)if(de[ce].compile_success==0||!de[ce].compile_success){le=!1;break}}else le=!1;return le}function be(de,le=""){let ce=[];for(let se=0;se<de.length;se++){let me=de[se],re=le?`${le}/${me.name}`:`${me.name}`;ce.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:re})}return ce}function ve(de,le,ce){for(let se=0;se<de.length;se++){let me=de[se];if(me.key===le){me.children=ce;break}me.children&&ve(me.children,le,ce)}return de}function fe(de,le,ce){let se;return function(){let me=this,re=arguments,ne=function(){se=null,ce||de.apply(me,re)},a=ce&&!se;clearTimeout(se),se=setTimeout(ne,le),a&&de.apply(me,re)}}const pe=!0,ie=z.Z.API_SERVER},95235:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return b}});var z=ee(67294),ge=ee(33170),be=ee(25934),ve=ee(94184),fe=ee.n(ve),pe={upload:"upload___jpwPD"},ie=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,re=(x,te,oe)=>te in x?ie(x,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[te]=oe,ne=(x,te)=>{for(var oe in te||(te={}))se.call(te,oe)&&re(x,oe,te[oe]);if(ce)for(var oe of ce(te))me.call(te,oe)&&re(x,oe,te[oe]);return x},a=(x,te)=>de(x,le(te)),y=(x,te,oe)=>new Promise((ae,ue)=>{var ye=Ce=>{try{xe(oe.next(Ce))}catch(Be){ue(Be)}},_e=Ce=>{try{xe(oe.throw(Ce))}catch(Be){ue(Be)}},xe=Ce=>Ce.done?ae(Ce.value):Promise.resolve(Ce.value).then(ye,_e);xe((oe=oe.apply(x,te)).next())});const E=({chunkSize:x=1024*1024*2,options:te={},onCancel:oe,onComplete:ae,onError:ue,onProgress:ye,onBefore:_e,onBeginInitFile:xe,children:Ce,accept:Be,className:Me,style:mt={},concurrency:Qe=4},pt)=>{let[Ae,De]=(0,z.useState)("ready");const[Fe,tt]=(0,z.useState)(0),[Ve,Ct]=(0,z.useState)(""),[Mt,en]=(0,z.useState)(null),nn=(0,z.useRef)(null),it=(0,z.useRef)((0,be.Z)()),ct=(0,z.useRef)(!1);(0,z.useImperativeHandle)(pt,()=>({cancel:Gt,file:Mt,uploadStatus:Ae}));const wt=()=>{const He=document.getElementById(it.current);He&&(He.value="")},Vt=He=>y(void 0,null,function*(){var on;if(Ae==="uploading")return;xe&&xe(He);const In=He.size,or=Math.ceil(In/x);ct.current=!1,De("uploading"),tt(0),Ct("");try{const bn=yield(0,ge.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:He.name,chunkCount:or},te)});if(ct.current||(bn==null?void 0:bn.status)!==0)throw new Error;const{upload_id:$t}=bn;nn.current=new AbortController;const qe=[];let Je=0;for(let dt=0;dt<or;dt++){const yt=dt*x,Tt=Math.min(yt+x,In),rt=He.slice(yt,Tt),cn=new FormData;cn.append("chunk",rt),cn.append("fileName",He.name),cn.append("chunkIndex",(dt+1).toString()),cn.append("uploadId",$t);for(const Ge in te)Object.prototype.hasOwnProperty.call(te,Ge)&&cn.append(Ge,te[Ge]);qe.push(()=>(0,ge.ZP)("/api/attachments/multipart_upload",{method:"POST",body:cn,signal:nn.current.signal},!0).then(Ge=>{console.log(Ge,444),Je++;const gt=Math.round(Je/or*100);tt(gt),ye&&ye(a(ne({},Ge),{file:He,percent:gt}))}))}let Pt=0,Nt=Qe;for(console.log(qe,"promises");Pt<qe.length;){const dt=(on=qe.slice(Pt,Pt+Nt))==null?void 0:on.map(yt=>yt());if(dt.length>0){const yt=yield Promise.all(dt);Pt+=Nt}}const Wt=yield(0,ge.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:He.name,chunkCount:or,uploadId:$t},te)});Wt.object?(De("success"),wt(),ae&&ae(a(ne({},Wt),{file:He,percent:100}))):(De("error"),Ct("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),wt(),ue&&ue(He.name))}catch(bn){De("error"),Ct("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),wt(),ue&&ue(He.name)}}),Gt=(0,z.useCallback)(()=>{ct.current=!0,nn.current&&(nn.current.abort(),oe&&oe())},[oe]),Ln=He=>{var on,In;const or=(In=(on=He==null?void 0:He.target)==null?void 0:on.files)==null?void 0:In[0];if(en(or),Ae="ready",!!or){if(_e){_e(or)||Vt(or),wt();return}Vt(or)}};return z.createElement(z.Fragment,null,z.createElement("input",{type:"file",id:it.current,style:{display:"none"},onChange:Ln,accept:Be}),z.createElement("label",{className:fe()(pe.upload,Me),htmlFor:it.current,style:mt},Ce))};var b=(0,z.forwardRef)(E)},63205:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return se}});var z=ee(67294),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(94184),ve=ee.n(be),fe=ee(57953),pe=ee(15979),ie=ee(33170),de=ee(28706),le=(me,re,ne)=>new Promise((a,y)=>{var E=te=>{try{x(ne.next(te))}catch(oe){y(oe)}},b=te=>{try{x(ne.throw(te))}catch(oe){y(oe)}},x=te=>te.done?a(te.value):Promise.resolve(te.value).then(E,b);x((ne=ne.apply(me,re)).next())}),se=({data:me,className:re,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const te=(0,z.useRef)(null),oe=(0,z.useRef)(null),ae=(0,z.useRef)(null),ue=(0,z.useRef)(null),[ye,_e]=(0,z.useState)(!1),[xe,Ce]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>{ae.current||(ae.current=document.createElement("style"),document.head.appendChild(ae.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&Be()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[me==null?void 0:me.visible]);const Be=()=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ae=yield(0,de.ZJ)(me==null?void 0:me.src);te.current.src="",te.current.src=Ae,te.current.onload=function(){pt()},_e(!1),Ce("")}),Me=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",y()},mt=Ae=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:Ae.dataUrl}});De!=null&&De.id&&!x?(yield(0,ie.ZP)(`/api/attachments/${me.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify(Ae.state)}})).status===0&&E():De!=null&&De.id&&E(De),document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",_e(!1),Ce("")}),Qe=()=>{const Ae=document.querySelector('a[href="https://markerjs.com/"]');Ae&&Ae.parentNode&&(Ae.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(Fe=>{const tt=document.querySelector(Fe.name);tt&&tt.setAttribute("title",Fe.title)})},pt=()=>{oe.current=new pe.hP(te.current),oe.current.targetRoot=ue.current,oe.current.addEventListener("render",mt),oe.current.addEventListener("beforeclose",Me),b&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),me!=null&&me.snapshotData&&oe.current.restoreState(me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qe()},300)};return z.createElement(z.Fragment,null,(me==null?void 0:me.visible)&&z.createElement(fe.Z,{spinning:ye,tip:xe,style:{position:"absolute"}},z.createElement("div",{ref:ue,className:ve()(ge.imageDimensions,re,ne?ge.fullWidth:""),style:a},z.createElement("img",{className:ge.img,ref:te}))))}},36527:function(at,We,ee){"use strict";var z=ee(67294),ge=ee(71230),be=ee(15746),ve=ee(66368),fe=ee(71577),pe=ee(85725),ie=ee(71736),de=ee(84279),le=ee(67294);const ce=(0,z.forwardRef)(({callback:se,showSaveButton:me,value:re=""},ne)=>{const a=(0,z.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=oe=>{a.current.setValue(a.current.getValue()+" "+oe.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((oe,ae)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:`$$${oe.value}$$`}),oe.name),le.createElement("div",{className:ie.Z.children},oe.children.map((ue,ye)=>le.createElement("div",{key:ye},le.createElement("h1",null,ue.name),le.createElement(ge.Z,{gutter:[10,10]},ue.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((oe,ae)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),le.createElement("div",{className:ie.Z.children},oe.children.map((ue,ye)=>le.createElement("div",{key:ye},ue.name&&le.createElement("h1",null,ue.name),le.createElement(ge.Z,{gutter:[10,10]},ue.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],te=()=>{var oe=document.createElement("div");oe.innerHTML=a.current.getValue();var ae=oe.innerText;return se&&se(ae),ae};return(0,z.useImperativeHandle)(ne,()=>({getData:te})),le.createElement("div",{className:ie.Z.mathWrap},le.createElement(ve.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}},re||""),me&&le.createElement("div",{className:ie.Z.button},le.createElement(fe.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});We.Z=ce},7621:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ve}});var z=ee(35973),ge={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(67294),ve=({message:fe,className:pe,children:ie,style:de={}})=>be.createElement("div",{className:`custom-spinner ${ge.idsRingWrapper} ${pe}`},be.createElement("div",{className:ge.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),fe?be.createElement("p",{style:de},fe):null,ie,be.createElement(z.Outlet,null))},60076:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ve}});var z=ee(67294),ge=ee(33054),be=ee(67294),ve=({defaultX:fe="40%",leftChild:pe,rightChild:ie,className:de,hideResize:le=!1})=>{const[ce,se]=(0,z.useState)(fe),me=(0,z.useRef)();function re(){me.current=!0}(0,z.useEffect)(()=>{function y(b){me.current&&(ge.Z.publish("resize-move-bar",b),se(b.pageX))}function E(){me.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof ce=="number"&&ce!==.01?`${ce}px`:fe,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${de}`},be.createElement("section",{style:{width:ne,display:ce===.01?"none":""}},pe),be.createElement("section",{className:"resize-x-bar",onMouseDown:re},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))}},38658:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return pe}});var z=ee(67294),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=ee(94184),ve=ee.n(be),pe=({className:ie,style:de={},leftNode:le,leftTitle:ce="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:me="\u8FD0\u884C\u7ED3\u679C"})=>z.createElement("div",{className:ve()(ge.result,ie),style:de},z.createElement("div",{className:ge.left},z.createElement("div",{className:ge.title},z.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),z.createElement("span",null,ce)),z.createElement("div",{className:ge.leftNode},le)),z.createElement("div",{className:ge.right},z.createElement("div",{className:ge.title},z.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),z.createElement("span",null,me)),z.createElement("div",{className:ge.rightNode},se)))},88508:function(at,We,ee){"use strict";var z=ee(67294);const ge=ve=>String(ve).length===1?`0${ve}`:ve,be=({className:ve="",onChange:fe,defaultValue:pe=0})=>{const[ie,de]=(0,z.useState)(pe);(0,z.useEffect)(()=>{const me=setTimeout(()=>{de(ie+1e3)},1e3);return fe(ie+1e3),()=>{clearInterval(me)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",ce=parseInt(ie%(60*6e4)/6e4)||"00",se=parseInt(ie%6e4/1e3)||"00";return z.createElement("div",{className:ve},ge(le),":",ge(ce),":",ge(se))};We.Z=be},6104:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return y}});var z=ee(67294),ge=ee(2453),be=ee(85418),ve=ee(24577),fe=ee(67631),pe=ee.n(fe),ie=ee(52262),de=ee(74855),le=ee(51959),ce={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},se=(E,b,x)=>new Promise((te,oe)=>{var ae=_e=>{try{ye(x.next(_e))}catch(xe){oe(xe)}},ue=_e=>{try{ye(x.throw(_e))}catch(xe){oe(xe)}},ye=_e=>_e.done?te(_e.value):Promise.resolve(_e.value).then(ae,ue);ye((x=x.apply(E,b)).next())});function me(E){if(isNaN(E))return{minutes:"00",seconds:"00"};const b=new Date(E*1e3).toISOString().substr(11,8);return{hour:b.substr(0,2),minutes:b.substr(3,2),seconds:b.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function re(E,b){return E-b}function ne(E){E.sort(re);let b=0;for(let x=0;x<E.length-1;x++){let te=Math.abs(E[x+1]-E[x]);te<21&&(b+=te)}return b}const a=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var y=(0,z.forwardRef)(({allow_skip:E,src:b,toLog:x,videoId:te,logWatchHistory:oe,courseId:ae=null,startTime:ue,handlePause:ye=()=>{},handlePlay:_e=()=>{},handlePlayEnded:xe=()=>{},autoPlay:Ce=!1,onPlayEnded:Be=()=>{},isShowWaterMark:Me=!0},mt)=>{var Qe;const Ae=((Qe=b==null?void 0:b.split("."))==null?void 0:Qe.pop())==="flv",De=(0,z.useRef)(),Fe=(0,z.useRef)(),tt=(0,z.useRef)(),Ve=(0,z.useRef)(),Ct=(0,z.useRef)(),Mt=(0,z.useRef)(),en=(0,z.useRef)(),nn=(0,z.useRef)(),it=(0,z.useRef)(),ct=(0,z.useRef)(),wt=(0,z.useRef)(),Vt=(0,z.useRef)(),Gt=(0,z.useRef)(),Ln=(0,z.useRef)(),He=navigator.userAgent.toLowerCase().match(a),on=He?He[0]:"pc",In=(0,z.useRef)(!1),or=(0,ie.eY)();let bn=0,$t=0,qe=0,Je=null,Pt=!1,Nt=20,Wt=1,dt=!1,yt=!1,Tt=[];(0,z.useImperativeHandle)(mt,()=>({getLastUpdatedTime:()=>De.current.currentTime,getDuration:()=>De.current.duration})),ge.ZP.config({maxCount:1,getContainer:()=>tt.current});const rt=(0,z.useCallback)((Qt,hn=!1)=>{let jn={point:De.current.currentTime};Je?(jn.log_id=Je,jn.watch_duration=ne(Tt),jn.total_duration=$t):(ae?(jn.video_id=parseInt(te,10),jn.course_id=ae):jn.video_id=te,jn.duration=bn,jn.device=on),hn&&(jn.ed="1");function lr(){return se(this,null,function*(){dt=!0,Je=yield oe==null?void 0:oe(jn),dt=!1,Qt&&Qt()})}lr()},[te,ae]);(0,z.useEffect)(()=>{De.current&&(Ve.current.style.display="none",Ct.current.style.display="block"),ge.ZP.destroy();let Qt=null;return ve.Z.isSupported&&Ae&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?(Qt=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),De.current&&(Qt.attachMediaElement(De.current),Qt.load())):De.current.setAttribute("src",b),Ge(),()=>{Qt&&(Qt.unload(),Qt.pause(),Qt.destroy(),Qt=null)}},[De,Ae,b]);function cn(){De.current.paused?(Ve.current.style.display="none",Ct.current.style.display="block"):(Ve.current.style.display="block",Ct.current.style.display="none")}function Ge(){wt.current.style.display="none",Gt.current.style.display="none",Vt.current.style.display="none",De.current.muted||De.current.volume===0?wt.current.style.display="block":De.current.volume>0&&De.current.volume<=.5?Gt.current.style.display="block":Vt.current.style.display="block"}(0,z.useEffect)(()=>{const Qt=document.getElementById("play"),hn=document.querySelectorAll(".playback-icons use");function jn(){_e(),ue&&!In.current&&(De.current.currentTime=ue),In.current=!0,Tt.push(De.current.currentTime),Pt||(Pt=!0,x&&rt())}function lr(){return se(this,null,function*(){cn(),Tt.push(De.current.currentTime),x&&rt(()=>{Je=null,qe=0,Pt=!1,dt=!1,yt=!1,Tt=[],$t=0,Wt=1},!0),Be()})}function Ft(){Mt.current.value=Math.round(De.current.currentTime),en.current.value=Math.round(De.current.currentTime)}function nr(){const Vr=me(Math.round(De.current.currentTime));it.current.innerText=`${Vr.hour>0?Vr.hour+":":""}${Vr.minutes}:${Vr.seconds}`,it.current.setAttribute("datetime",`${Vr.hour>0?" "+Vr.hour+" ":""}${Vr.minutes}m ${Vr.seconds}s`)}function ar(){var Vr,$o,Jo,Li,Lo,Ii,xi;const Bo=Math.round((Vr=De.current)==null?void 0:Vr.duration);(Jo=($o=Mt.current)==null?void 0:$o.setAttribute)==null||Jo.call($o,"max",Bo),(Lo=(Li=en.current)==null?void 0:Li.setAttribute)==null||Lo.call(Li,"max",Bo);const Xr=me(Bo);nn.current&&(nn.current.innerText=`${Xr.hour>0?Xr.hour+":":""}${Xr.minutes}:${Xr.seconds}`,(xi=(Ii=nn.current).setAttribute)==null||xi.call(Ii,"datetime",`${Xr.hour>0?" "+Xr.hour+" ":""}${Xr.minutes}m ${Xr.seconds}s`))}function wo(){try{const Vr=Math.round(De.current.duration);Mt.current.setAttribute("max",Vr),en.current.setAttribute("max",Vr);const $o=me(Vr);nn.current.innerText=`${$o.hour>0?$o.hour+":":""}${$o.minutes}:${$o.seconds}`,nn.current.setAttribute("datetime",`${$o.hour>0?" "+$o.hour+" ":""}${$o.minutes}m ${$o.seconds}s`),Ft(),nr();const{width:Jo,height:Li,x:Lo,y:Ii}=Fe.current.getBoundingClientRect();if(Lo<0||Ii<0||!Jo)return;if(!yt){let xi=De.current.currentTime,Bo=xi-qe;Math.abs(Bo)<10?($t+=Math.abs(Bo),qe=xi,dt||$t-Wt*Nt>=0&&(Wt++,Tt.push(qe),x&&rt())):(qe=xi,x&&rt())}}catch(Vr){console.log(Vr)}}function Kr(){yt=!0}function Ur(){De.current.playing&&Tt.push(De.current.currentTime,qe),qe=De.current.currentTime,yt=!1}function Ho(){bn=De.current.duration,bn<=20&&(Nt=bn/3),De.current.addEventListener("play",jn)}function Dn(Vr){Vr.preventDefault(),(0,le.vp)()?(De.current.style.width="100%",De.current.style.height="100%"):De.current.style.cssText=""}function Po(){ye()}function pi(Vr){if(!E){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const $o=Vr.target.dataset.seek?Vr.target.dataset.seek:Vr.target.value;De.current.currentTime=$o,en.current.value=$o,Mt.current.value=$o}function sa(Vr){const $o=Math.round(Vr.offsetX/Vr.target.clientWidth*parseInt(Vr.target.getAttribute("max"),10));Mt.current.setAttribute("data-seek",$o);const Jo=me($o);ct.current.textContent=`${Jo.hour>0?Jo.hour+":":""}${Jo.minutes}:${Jo.seconds}`;const Li=De.current.getBoundingClientRect();ct.current.style.left=`${Vr.pageX-Li.left}px`}function qi(Vr){switch(Vr.code){case"Space":Vr.preventDefault(),Nn();break;case"ArrowRight":if(Vr.preventDefault(),!E){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime>=De.current.duration)break;De.current.currentTime=parseInt(De.current.currentTime)+5,Ft();break;case"ArrowLeft":if(Vr.preventDefault(),!E){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime===0)break;De.current.currentTime=parseInt(De.current.currentTime)-5,Ft();break;case"ArrowUp":Vr.preventDefault(),De.current.volume<1&&(De.current.volume=(parseInt(De.current.volume*10)+1)/10);break;case"ArrowDown":Vr.preventDefault(),De.current.volume>0&&(De.current.volume=(parseInt(De.current.volume*10)-1)/10);break}}return tt.current.addEventListener((0,le.gH)(),Dn),De.current.addEventListener("canplay",Ho),De.current.addEventListener("ended",lr),De.current.addEventListener("seeking",Kr),De.current.addEventListener("seeked",Ur),De.current.addEventListener("loadedmetadata",ar),Mt.current.addEventListener("mousemove",sa),Mt.current.addEventListener("input",pi),De.current.addEventListener("timeupdate",wo),De.current.addEventListener("pause",Po),De.current.addEventListener("volumechange",Ge),document.addEventListener("keydown",qi),()=>{var Vr,$o,Jo,Li,Lo,Ii,xi,Bo,Xr,La,_n,he;(Vr=De.current)==null||Vr.removeEventListener("canplay",Ho),($o=De.current)==null||$o.removeEventListener("play",jn),(Jo=De.current)==null||Jo.removeEventListener("ended",lr),(Li=De.current)==null||Li.removeEventListener("seeking",Kr),(Lo=De.current)==null||Lo.removeEventListener("seeked",Ur),(Ii=Mt.current)==null||Ii.removeEventListener("mousemove",sa),(xi=Mt.current)==null||xi.removeEventListener("input",pi),(Bo=De.current)==null||Bo.removeEventListener("timeupdate",wo),(Xr=De.current)==null||Xr.removeEventListener("pause",Po),(La=De.current)==null||La.removeEventListener("loadedmetadata",ar),(_n=De.current)==null||_n.removeEventListener("volumechange",Ge),document.removeEventListener("keydown",qi),(he=De.current)!=null&&he.playing&&(Tt.push(qe,De.current.currentTime),x&&rt())}},[De,b]),(0,z.useEffect)(()=>{if(De.current.onended=()=>{xe(De)},De.current.oncontextmenu=()=>!1,(b==null?void 0:b.indexOf(".m3u8"))>-1){if(De.current.canPlayType("application/vnd.apple.mpegurl"))De.current.src=b;else if(pe().isSupported()){var Qt=new(pe());Qt.loadSource(b),Qt.attachMedia(De.current)}}},[b]);const[gt,Gn]=(0,z.useState)(1),Nn=()=>{De.current.paused||De.current.ended?De.current.play():De.current.pause(),cn()};function St(){De.current.muted=!De.current.muted,De.current.muted?(Ln.current.setAttribute("data-volume",volume.value),Ln.current.value=0):Ln.current.value=Ln.current.dataset.volume}return z.createElement("div",{style:{position:"relative"},ref:tt},z.createElement("div",{ref:Fe,className:`${ce.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ce.animate__loop}`},Me&&or?or.login:" "),z.createElement("div",{className:ce.container},z.createElement("div",{className:ce["video-container"],id:"video-container"},z.createElement("div",{className:ce["playback-animation"],id:"playback-animation"},z.createElement("svg",{className:ce["playback-icons"]},z.createElement("use",{className:"hidden",href:"#play-icon"}),z.createElement("use",{href:"#pause"}))),z.createElement("video",{className:ce.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:De,autoPlay:Ce}),z.createElement("div",{className:`${ce["video-controls"]} `,id:"video-controls"},z.createElement("div",{className:ce["bottom-controls"]},z.createElement("div",{className:ce["left-controls"]},z.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Nn},z.createElement("svg",{className:ce["playback-icons"]},z.createElement("use",{ref:Ct,href:"#play-icon"}),z.createElement("use",{ref:Ve,style:{display:"none"},href:"#pause"}))),z.createElement("div",{className:ce.time},z.createElement("time",{id:"time-elapsed",ref:it},"00:00"),z.createElement("span",null," / "),z.createElement("time",{id:"duration",ref:nn},"00:00"))),z.createElement("div",{className:ce["right-controls"]},E&&z.createElement(be.Z,{placement:"top",overlayClassName:ce.rateOverlay,getPopupContainer:Qt=>Qt.parentNode,menu:{items:[{key:"1",label:z.createElement("span",{onClick:()=>{Gn(1),De.current.playbackRate=1}},"1.0x")},{key:"2",label:z.createElement("span",{onClick:()=>{Gn(1.5),De.current.playbackRate=1.5}},"1.5x")},{key:"3",label:z.createElement("span",{onClick:()=>{Gn(2),De.current.playbackRate=2}},"2.0x")}]}},z.createElement("div",{className:`${ce.controlText} mr5`},"\u500D\u901F")),z.createElement(de.CopyToClipboard,{text:b,onCopy:()=>ge.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},z.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),z.createElement("div",{className:ce["volume-controls"]},z.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ce["volume-button"],id:"volume-button",onClick:St},z.createElement("i",{ref:wt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Gt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Vt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),z.createElement("input",{className:ce.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Ln,style:{display:"none"},onClick:Ge})),z.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ce["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(tt.current)}},z.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),z.createElement("div",{className:ce["video-progress"]},z.createElement("progress",{ref:en,value:"0",min:"0"}),z.createElement("input",{className:ce.seek,ref:Mt,value:"0",min:"0",type:"range",step:"1"}),z.createElement("div",{className:ce["seek-tooltip"],ref:ct,id:"seek-tooltip"},"00:00"))))),z.createElement("svg",{style:{display:"none"}},z.createElement("defs",null,z.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},z.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),z.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},z.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),z.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},z.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"})))))})},62078:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return Tr}});var z=ee(67294),ge=ee.t(z,2),be=ee(33054),ve=ee(99569),fe=ee(94184),pe=ee.n(fe),ie=ee(87462),de=ee(1413),le=ee(4942),ce=ee(97685),se=ee(71002),me=ee(45987),re=/margin|padding|width|height|max|min|offset/,ne={left:!0,top:!0},a={cssFloat:1,styleFloat:1,float:1};function y($e){return $e.nodeType===1?$e.ownerDocument.defaultView.getComputedStyle($e,null):{}}function E($e,ke,et){if(ke=ke.toLowerCase(),et==="auto"){if(ke==="height")return $e.offsetHeight;if(ke==="width")return $e.offsetWidth}return ke in ne||(ne[ke]=re.test(ke)),ne[ke]?parseFloat(et)||0:et}function b($e,ke){var et=arguments.length,At=y($e);return ke=a[ke]?"cssFloat"in $e.style?"cssFloat":"styleFloat":ke,et===1?At:E($e,ke,At[ke]||$e.style[ke])}function x($e,ke,et){var At=arguments.length;if(ke=a[ke]?"cssFloat"in $e.style?"cssFloat":"styleFloat":ke,At===3)return typeof et=="number"&&re.test(ke)&&(et="".concat(et,"px")),$e.style[ke]=et,et;for(var kt in ke)ke.hasOwnProperty(kt)&&x($e,kt,ke[kt]);return y($e)}function te($e){return $e===document.body?document.documentElement.clientWidth:$e.offsetWidth}function oe($e){return $e===document.body?window.innerHeight||document.documentElement.clientHeight:$e.offsetHeight}function ae(){var $e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ke=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:$e,height:ke}}function ue(){var $e=document.documentElement.clientWidth,ke=window.innerHeight||document.documentElement.clientHeight;return{width:$e,height:ke}}function ye(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _e($e){var ke=$e.getBoundingClientRect(),et=document.documentElement;return{left:ke.left+(window.pageXOffset||et.scrollLeft)-(et.clientLeft||document.body.clientLeft||0),top:ke.top+(window.pageYOffset||et.scrollTop)-(et.clientTop||document.body.clientTop||0)}}function xe($e){var ke=z.useRef();ke.current=$e;var et=z.useCallback(function(){for(var At,kt=arguments.length,Zt=new Array(kt),Sn=0;Sn<kt;Sn++)Zt[Sn]=arguments[Sn];return(At=ke.current)===null||At===void 0?void 0:At.call.apply(At,[ke].concat(Zt))},[]);return et}function Ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Be=Ce()?z.useLayoutEffect:z.useEffect,Me=function(ke,et){var At=z.useRef(!0);Be(function(){return ke(At.current)},et),Be(function(){return At.current=!1,function(){At.current=!0}},[])},mt=function(ke,et){Me(function(At){if(!At)return ke()},et)},Qe=null;function pt($e){var ke=z.useRef(!1),et=z.useState($e),At=(0,ce.Z)(et,2),kt=At[0],Zt=At[1];z.useEffect(function(){return ke.current=!1,function(){ke.current=!0}},[]);function Sn(wn,Fn){Fn&&ke.current||Zt(wn)}return[kt,Sn]}function Ae($e){return $e!==void 0}function De($e,ke){var et=ke||{},At=et.defaultValue,kt=et.value,Zt=et.onChange,Sn=et.postState,wn=pt(function(){return Ae(kt)?kt:Ae(At)?typeof At=="function"?At():At:typeof $e=="function"?$e():$e}),Fn=(0,ce.Z)(wn,2),On=Fn[0],Wn=Fn[1],gr=kt!==void 0?kt:On,so=Sn?Sn(gr):gr,co=xe(Zt),Jr=pt([gr]),po=(0,ce.Z)(Jr,2),Ro=po[0],Fo=po[1];mt(function(){var Zo=Ro[0];On!==Zo&&co(On,Zo)},[Ro]),mt(function(){Ae(kt)||Wn(kt)},[kt]);var zr=xe(function(Zo,ho){Wn(Zo,ho),Fo([gr],ho)});return[so,zr]}var Fe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],tt=z.createContext(null),Ve=0;function Ct($e,ke){var et=z.useState(function(){return Ve+=1,String(Ve)}),At=(0,ce.Z)(et,1),kt=At[0],Zt=z.useContext(tt),Sn={data:ke,canPreview:$e};return z.useEffect(function(){if(Zt)return Zt.register(kt,Sn)},[]),z.useEffect(function(){Zt&&Zt.register(kt,Sn)},[$e,ke]),kt}function Mt($e){return new Promise(function(ke){var et=document.createElement("img");et.onerror=function(){return ke(!1)},et.onload=function(){return ke(!0)},et.src=$e})}function en($e){var ke=$e.src,et=$e.isCustomPlaceholder,At=$e.fallback,kt=(0,z.useState)(et?"loading":"normal"),Zt=(0,ce.Z)(kt,2),Sn=Zt[0],wn=Zt[1],Fn=(0,z.useRef)(!1),On=Sn==="error";(0,z.useEffect)(function(){Mt(ke).then(function(co){co||wn("error")})},[ke]),(0,z.useEffect)(function(){et&&!Fn.current?wn("loading"):On&&wn("normal")},[ke]);var Wn=function(){wn("normal")},gr=function(Jr){Fn.current=!1,Sn==="loading"&&Jr!=null&&Jr.complete&&(Jr.naturalWidth||Jr.naturalHeight)&&(Fn.current=!0,Wn())},so=On&&At?{src:At}:{onLoad:Wn,src:ke};return[gr,so,Sn]}var nn=ee(2788),it=z.createContext({});function ct($e,ke){if(!$e)return!1;if($e.contains)return $e.contains(ke);for(var et=ke;et;){if(et===$e)return!0;et=et.parentNode}return!1}function wt(){var $e=(0,de.Z)({},ge);return $e.useId}var Vt=0;function Gt(){}function Ln($e){var ke=z.useState("ssr-id"),et=(0,ce.Z)(ke,2),At=et[0],kt=et[1],Zt=wt(),Sn=Zt==null?void 0:Zt();return z.useEffect(function(){if(!Zt){var wn=Vt;Vt+=1,kt("rc_unique_".concat(wn))}},[]),$e||Sn||At}var He={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ke){var et=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||et>=He.F1&&et<=He.F12)return!1;switch(et){case He.ALT:case He.CAPS_LOCK:case He.CONTEXT_MENU:case He.CTRL:case He.DOWN:case He.END:case He.ESC:case He.HOME:case He.INSERT:case He.LEFT:case He.MAC_FF_META:case He.META:case He.NUMLOCK:case He.NUM_CENTER:case He.PAGE_DOWN:case He.PAGE_UP:case He.PAUSE:case He.PRINT_SCREEN:case He.RIGHT:case He.SHIFT:case He.UP:case He.WIN_KEY:case He.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=He.ZERO&&ke<=He.NINE||ke>=He.NUM_ZERO&&ke<=He.NUM_MULTIPLY||ke>=He.A&&ke<=He.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case He.SPACE:case He.QUESTION_MARK:case He.NUM_PLUS:case He.NUM_MINUS:case He.NUM_PERIOD:case He.NUM_DIVISION:case He.SEMICOLON:case He.DASH:case He.EQUALS:case He.COMMA:case He.PERIOD:case He.SLASH:case He.APOSTROPHE:case He.SINGLE_QUOTE:case He.OPEN_SQUARE_BRACKET:case He.BACKSLASH:case He.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},on=He,In=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,or=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,bn="".concat(In," ").concat(or).split(/[\s\n]+/),$t="aria-",qe="data-";function Je($e,ke){return $e.indexOf(ke)===0}function Pt($e){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et;ke===!1?et={aria:!0,data:!0,attr:!0}:ke===!0?et={aria:!0}:et=(0,de.Z)({},ke);var At={};return Object.keys($e).forEach(function(kt){(et.aria&&(kt==="role"||Je(kt,$t))||et.data&&Je(kt,qe)||et.attr&&bn.includes(kt))&&(At[kt]=$e[kt])}),At}function Nt($e,ke,et){var At=ke;return!At&&et&&(At="".concat($e,"-").concat(et)),At}function Wt($e,ke){var et=$e["page".concat(ke?"Y":"X","Offset")],At="scroll".concat(ke?"Top":"Left");if(typeof et!="number"){var kt=$e.document;et=kt.documentElement[At],typeof et!="number"&&(et=kt.body[At])}return et}function dt($e){var ke=$e.getBoundingClientRect(),et={left:ke.left,top:ke.top},At=$e.ownerDocument,kt=At.defaultView||At.parentWindow;return et.left+=Wt(kt),et.top+=Wt(kt,!0),et}var yt=ee(62874),Tt=ee(59864);function rt($e,ke,et){var At=z.useRef({});return(!("value"in At.current)||et(At.current.condition,ke))&&(At.current.value=$e(),At.current.condition=ke),At.current.value}function cn($e,ke){typeof $e=="function"?$e(ke):(0,se.Z)($e)==="object"&&$e&&"current"in $e&&($e.current=ke)}function Ge(){for(var $e=arguments.length,ke=new Array($e),et=0;et<$e;et++)ke[et]=arguments[et];var At=ke.filter(function(kt){return kt});return At.length<=1?At[0]:function(kt){ke.forEach(function(Zt){cn(Zt,kt)})}}function gt(){for(var $e=arguments.length,ke=new Array($e),et=0;et<$e;et++)ke[et]=arguments[et];return rt(function(){return Ge.apply(void 0,ke)},ke,function(At,kt){return At.length===kt.length&&At.every(function(Zt,Sn){return Zt===kt[Sn]})})}function Gn($e){var ke,et,At=isMemo($e)?$e.type.type:$e.type;return!(typeof At=="function"&&!((ke=At.prototype)!==null&&ke!==void 0&&ke.render)||typeof $e=="function"&&!((et=$e.prototype)!==null&&et!==void 0&&et.render))}var Nn=z.memo(function($e){var ke=$e.children;return ke},function($e,ke){var et=ke.shouldUpdate;return!et}),St={width:0,height:0,overflow:"hidden",outline:"none"},Qt=z.forwardRef(function($e,ke){var et=$e.prefixCls,At=$e.className,kt=$e.style,Zt=$e.title,Sn=$e.ariaId,wn=$e.footer,Fn=$e.closable,On=$e.closeIcon,Wn=$e.onClose,gr=$e.children,so=$e.bodyStyle,co=$e.bodyProps,Jr=$e.modalRender,po=$e.onMouseDown,Ro=$e.onMouseUp,Fo=$e.holderRef,zr=$e.visible,Zo=$e.forceRender,ho=$e.width,qo=$e.height,wi=z.useContext(it),ya=wi.panel,ei=gt(Fo,ya),ca=(0,z.useRef)(),Hi=(0,z.useRef)();z.useImperativeHandle(ke,function(){return{focus:function(){var Qo;(Qo=ca.current)===null||Qo===void 0||Qo.focus()},changeActive:function(Qo){var ea=document,ua=ea.activeElement;Qo&&ua===Hi.current?ca.current.focus():!Qo&&ua===ca.current&&Hi.current.focus()}}});var _a={};ho!==void 0&&(_a.width=ho),qo!==void 0&&(_a.height=qo);var Xo;wn&&(Xo=z.createElement("div",{className:"".concat(et,"-footer")},wn));var zo;Zt&&(zo=z.createElement("div",{className:"".concat(et,"-header")},z.createElement("div",{className:"".concat(et,"-title"),id:Sn},Zt)));var Si;Fn&&(Si=z.createElement("button",{type:"button",onClick:Wn,"aria-label":"Close",className:"".concat(et,"-close")},On||z.createElement("span",{className:"".concat(et,"-close-x")})));var xa=z.createElement("div",{className:"".concat(et,"-content")},Si,zo,z.createElement("div",(0,ie.Z)({className:"".concat(et,"-body"),style:so},co),gr),Xo);return z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Zt?Sn:null,"aria-modal":"true",ref:ei,style:(0,de.Z)((0,de.Z)({},kt),_a),className:pe()(et,At),onMouseDown:po,onMouseUp:Ro},z.createElement("div",{tabIndex:0,ref:ca,style:St,"aria-hidden":"true"}),z.createElement(Nn,{shouldUpdate:zr||Zo},Jr?Jr(xa):xa),z.createElement("div",{tabIndex:0,ref:Hi,style:St,"aria-hidden":"true"}))}),hn=Qt,jn=z.forwardRef(function($e,ke){var et=$e.prefixCls,At=$e.title,kt=$e.style,Zt=$e.className,Sn=$e.visible,wn=$e.forceRender,Fn=$e.destroyOnClose,On=$e.motionName,Wn=$e.ariaId,gr=$e.onVisibleChanged,so=$e.mousePosition,co=(0,z.useRef)(),Jr=z.useState(),po=(0,ce.Z)(Jr,2),Ro=po[0],Fo=po[1],zr={};Ro&&(zr.transformOrigin=Ro);function Zo(){var ho=dt(co.current);Fo(so?"".concat(so.x-ho.left,"px ").concat(so.y-ho.top,"px"):"")}return z.createElement(yt.Z,{visible:Sn,onVisibleChanged:gr,onAppearPrepare:Zo,onEnterPrepare:Zo,forceRender:wn,motionName:On,removeOnLeave:Fn,ref:co},function(ho,qo){var wi=ho.className,ya=ho.style;return z.createElement(hn,(0,ie.Z)({},$e,{ref:ke,title:At,ariaId:Wn,prefixCls:et,holderRef:qo,style:(0,de.Z)((0,de.Z)((0,de.Z)({},ya),kt),zr),className:pe()(Zt,wi)}))})});jn.displayName="Content";var lr=jn;function Ft($e){var ke=$e.prefixCls,et=$e.style,At=$e.visible,kt=$e.maskProps,Zt=$e.motionName;return z.createElement(yt.Z,{key:"mask",visible:At,motionName:Zt,leavedClassName:"".concat(ke,"-mask-hidden")},function(Sn,wn){var Fn=Sn.className,On=Sn.style;return z.createElement("div",(0,ie.Z)({ref:wn,style:(0,de.Z)((0,de.Z)({},On),et),className:pe()("".concat(ke,"-mask"),Fn)},kt))})}function nr($e){var ke=$e.prefixCls,et=ke===void 0?"rc-dialog":ke,At=$e.zIndex,kt=$e.visible,Zt=kt===void 0?!1:kt,Sn=$e.keyboard,wn=Sn===void 0?!0:Sn,Fn=$e.focusTriggerAfterClose,On=Fn===void 0?!0:Fn,Wn=$e.wrapStyle,gr=$e.wrapClassName,so=$e.wrapProps,co=$e.onClose,Jr=$e.afterOpenChange,po=$e.afterClose,Ro=$e.transitionName,Fo=$e.animation,zr=$e.closable,Zo=zr===void 0?!0:zr,ho=$e.mask,qo=ho===void 0?!0:ho,wi=$e.maskTransitionName,ya=$e.maskAnimation,ei=$e.maskClosable,ca=ei===void 0?!0:ei,Hi=$e.maskStyle,_a=$e.maskProps,Xo=$e.rootClassName,zo=(0,z.useRef)(),Si=(0,z.useRef)(),xa=(0,z.useRef)(),za=z.useState(Zt),Qo=(0,ce.Z)(za,2),ea=Qo[0],ua=Qo[1],Or=Ln();function fa(){ct(Si.current,document.activeElement)||(zo.current=document.activeElement)}function ha(){if(!ct(Si.current,document.activeElement)){var ga;(ga=xa.current)===null||ga===void 0||ga.focus()}}function ma(ga){if(ga)ha();else{if(ua(!1),qo&&zo.current&&On){try{zo.current.focus({preventScroll:!0})}catch(Pa){}zo.current=null}ea&&(po==null||po())}Jr==null||Jr(ga)}function aa(ga){co==null||co(ga)}var Ta=(0,z.useRef)(!1),da=(0,z.useRef)(),pa=function(){clearTimeout(da.current),Ta.current=!0},$a=function(){da.current=setTimeout(function(){Ta.current=!1})},rs=null;ca&&(rs=function(Pa){Ta.current?Ta.current=!1:Si.current===Pa.target&&aa(Pa)});function Xi(ga){if(wn&&ga.keyCode===on.ESC){ga.stopPropagation(),aa(ga);return}Zt&&ga.keyCode===on.TAB&&xa.current.changeActive(!ga.shiftKey)}return(0,z.useEffect)(function(){Zt&&(ua(!0),fa())},[Zt]),(0,z.useEffect)(function(){return function(){clearTimeout(da.current)}},[]),z.createElement("div",(0,ie.Z)({className:pe()("".concat(et,"-root"),Xo)},Pt($e,{data:!0})),z.createElement(Ft,{prefixCls:et,visible:qo&&Zt,motionName:Nt(et,wi,ya),style:(0,de.Z)({zIndex:At},Hi),maskProps:_a}),z.createElement("div",(0,ie.Z)({tabIndex:-1,onKeyDown:Xi,className:pe()("".concat(et,"-wrap"),gr),ref:Si,onClick:rs,style:(0,de.Z)((0,de.Z)({zIndex:At},Wn),{},{display:ea?null:"none"})},so),z.createElement(lr,(0,ie.Z)({},$e,{onMouseDown:pa,onMouseUp:$a,ref:xa,closable:Zo,ariaId:Or,prefixCls:et,visible:Zt&&ea,onClose:aa,onVisibleChanged:ma,motionName:Nt(et,Ro,Fo)}))))}var ar=function(ke){var et=ke.visible,At=ke.getContainer,kt=ke.forceRender,Zt=ke.destroyOnClose,Sn=Zt===void 0?!1:Zt,wn=ke.afterClose,Fn=ke.panelRef,On=z.useState(et),Wn=(0,ce.Z)(On,2),gr=Wn[0],so=Wn[1],co=z.useMemo(function(){return{panel:Fn}},[Fn]);return z.useEffect(function(){et&&so(!0)},[et]),!kt&&Sn&&!gr?null:z.createElement(it.Provider,{value:co},z.createElement(nn.Z,{open:et||kt||gr,autoDestroy:!1,getContainer:At,autoLock:et||gr},z.createElement(nr,(0,ie.Z)({},ke,{destroyOnClose:Sn,afterClose:function(){wn==null||wn(),so(!1)}}))))};ar.displayName="Dialog";var wo=ar,Kr=wo,Ur=ee(73935);function Ho($e,ke,et,At){var kt=Ur.unstable_batchedUpdates?function(Sn){Ur.unstable_batchedUpdates(et,Sn)}:et;return $e!=null&&$e.addEventListener&&$e.addEventListener(ke,kt,At),{remove:function(){$e!=null&&$e.removeEventListener&&$e.removeEventListener(ke,kt,At)}}}var Dn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ke){var et=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||et>=Dn.F1&&et<=Dn.F12)return!1;switch(et){case Dn.ALT:case Dn.CAPS_LOCK:case Dn.CONTEXT_MENU:case Dn.CTRL:case Dn.DOWN:case Dn.END:case Dn.ESC:case Dn.HOME:case Dn.INSERT:case Dn.LEFT:case Dn.MAC_FF_META:case Dn.META:case Dn.NUMLOCK:case Dn.NUM_CENTER:case Dn.PAGE_DOWN:case Dn.PAGE_UP:case Dn.PAUSE:case Dn.PRINT_SCREEN:case Dn.RIGHT:case Dn.SHIFT:case Dn.UP:case Dn.WIN_KEY:case Dn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=Dn.ZERO&&ke<=Dn.NINE||ke>=Dn.NUM_ZERO&&ke<=Dn.NUM_MULTIPLY||ke>=Dn.A&&ke<=Dn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case Dn.SPACE:case Dn.QUESTION_MARK:case Dn.NUM_PLUS:case Dn.NUM_MINUS:case Dn.NUM_PERIOD:case Dn.NUM_DIVISION:case Dn.SEMICOLON:case Dn.DASH:case Dn.EQUALS:case Dn.COMMA:case Dn.PERIOD:case Dn.SLASH:case Dn.APOSTROPHE:case Dn.SINGLE_QUOTE:case Dn.OPEN_SQUARE_BRACKET:case Dn.BACKSLASH:case Dn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Po=Dn,pi={},sa=[],qi=function(ke){sa.push(ke)};function Vr($e,ke){if(0)var et}function $o($e,ke){if(0)var et}function Jo(){pi={}}function Li($e,ke,et){!ke&&!pi[et]&&($e(!1,et),pi[et]=!0)}function Lo($e,ke){Li(Vr,$e,ke)}function Ii($e,ke){Li($o,$e,ke)}Lo.preMessage=qi,Lo.resetWarned=Jo,Lo.noteOnce=Ii;var xi=Lo;function Bo($e,ke,et,At){var kt=ke+et,Zt=(et-At)/2;if(et>At){if(ke>0)return(0,le.Z)({},$e,Zt);if(ke<0&&kt<At)return(0,le.Z)({},$e,-Zt)}else if(ke<0||kt>At)return(0,le.Z)({},$e,ke<0?Zt:-Zt);return{}}function Xr($e,ke,et,At){var kt=ue(),Zt=kt.width,Sn=kt.height,wn=null;return $e<=Zt&&ke<=Sn?wn={x:0,y:0}:($e>Zt||ke>Sn)&&(wn=(0,de.Z)((0,de.Z)({},Bo("x",et,$e,Zt)),Bo("y",At,ke,Sn))),wn}function La($e,ke){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,At=new Set;function kt(Zt,Sn){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Fn=At.has(Zt);if(xi(!Fn,"Warning: There may be circular references"),Fn)return!1;if(Zt===Sn)return!0;if(et&&wn>1)return!1;At.add(Zt);var On=wn+1;if(Array.isArray(Zt)){if(!Array.isArray(Sn)||Zt.length!==Sn.length)return!1;for(var Wn=0;Wn<Zt.length;Wn++)if(!kt(Zt[Wn],Sn[Wn],On))return!1;return!0}if(Zt&&Sn&&(0,se.Z)(Zt)==="object"&&(0,se.Z)(Sn)==="object"){var gr=Object.keys(Zt);return gr.length!==Object.keys(Sn).length?!1:gr.every(function(so){return kt(Zt[so],Sn[so],On)})}return!1}return kt($e,ke)}var _n=La,he=function(ke){return+setTimeout(ke,16)},Se=function(ke){return clearTimeout(ke)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(he=function(ke){return window.requestAnimationFrame(ke)},Se=function(ke){return window.cancelAnimationFrame(ke)});var Pe=0,Le=new Map;function Ne($e){Le.delete($e)}var nt=function(ke){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Pe+=1;var At=Pe;function kt(Zt){if(Zt===0)Ne(At),ke();else{var Sn=he(function(){kt(Zt-1)});Le.set(At,Sn)}}return kt(et),At};nt.cancel=function($e){var ke=Le.get($e);return Ne(ke),Se(ke)};var lt=nt,fn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function tn($e,ke,et,At){var kt=(0,z.useRef)(null),Zt=(0,z.useRef)([]),Sn=(0,z.useState)(fn),wn=(0,ce.Z)(Sn,2),Fn=wn[0],On=wn[1],Wn=function(Jr){On(fn),At&&!_n(fn,Fn)&&At({transform:fn,action:Jr})},gr=function(Jr,po){kt.current===null&&(Zt.current=[],kt.current=lt(function(){On(function(Ro){var Fo=Ro;return Zt.current.forEach(function(zr){Fo=(0,de.Z)((0,de.Z)({},Fo),zr)}),kt.current=null,At==null||At({transform:Fo,action:po}),Fo})})),Zt.current.push((0,de.Z)((0,de.Z)({},Fn),Jr))},so=function(Jr,po,Ro,Fo){var zr=$e.current,Zo=zr.width,ho=zr.height,qo=zr.offsetWidth,wi=zr.offsetHeight,ya=zr.offsetLeft,ei=zr.offsetTop,ca=Jr,Hi=Fn.scale*Jr;Hi>et?(ca=et/Fn.scale,Hi=et):Hi<ke&&(ca=ke/Fn.scale,Hi=ke);var _a=Ro!=null?Ro:innerWidth/2,Xo=Fo!=null?Fo:innerHeight/2,zo=ca-1,Si=zo*Zo*.5,xa=zo*ho*.5,za=zo*(_a-Fn.x-ya),Qo=zo*(Xo-Fn.y-ei),ea=Fn.x-(za-Si),ua=Fn.y-(Qo-xa);if(Jr<1&&Hi===1){var Or=qo*Hi,fa=wi*Hi,ha=ue(),ma=ha.width,aa=ha.height;Or<=ma&&fa<=aa&&(ea=0,ua=0)}gr({x:ea,y:ua,scale:Hi},po)};return{transform:Fn,resetTransform:Wn,updateTransform:gr,dispatchZoomChange:so}}var Tn=function(ke){var et=ke.visible,At=ke.maskTransitionName,kt=ke.getContainer,Zt=ke.prefixCls,Sn=ke.rootClassName,wn=ke.icons,Fn=ke.countRender,On=ke.showSwitch,Wn=ke.showProgress,gr=ke.current,so=ke.transform,co=ke.count,Jr=ke.scale,po=ke.minScale,Ro=ke.maxScale,Fo=ke.closeIcon,zr=ke.onSwitchLeft,Zo=ke.onSwitchRight,ho=ke.onClose,qo=ke.onZoomIn,wi=ke.onZoomOut,ya=ke.onRotateRight,ei=ke.onRotateLeft,ca=ke.onFlipX,Hi=ke.onFlipY,_a=ke.toolbarRender,Xo=(0,z.useContext)(tt),zo=wn.rotateLeft,Si=wn.rotateRight,xa=wn.zoomIn,za=wn.zoomOut,Qo=wn.close,ea=wn.left,ua=wn.right,Or=wn.flipX,fa=wn.flipY,ha="".concat(Zt,"-operations-operation");z.useEffect(function(){var da=function($a){$a.keyCode===Po.ESC&&ho()};return et&&window.addEventListener("keydown",da),function(){window.removeEventListener("keydown",da)}},[et]);var ma=[{icon:fa,onClick:Hi,type:"flipY"},{icon:Or,onClick:ca,type:"flipX"},{icon:zo,onClick:ei,type:"rotateLeft"},{icon:Si,onClick:ya,type:"rotateRight"},{icon:za,onClick:wi,type:"zoomOut",disabled:Jr===po},{icon:xa,onClick:qo,type:"zoomIn",disabled:Jr===Ro}],aa=ma.map(function(da){var pa,$a=da.icon,rs=da.onClick,Xi=da.type,ga=da.disabled;return z.createElement("div",{className:pe()(ha,(pa={},(0,le.Z)(pa,"".concat(Zt,"-operations-operation-").concat(Xi),!0),(0,le.Z)(pa,"".concat(Zt,"-operations-operation-disabled"),!!ga),pa)),onClick:rs,key:Xi},$a)}),Ta=z.createElement("div",{className:"".concat(Zt,"-operations")},aa);return z.createElement(yt.Z,{visible:et,motionName:At},function(da){var pa=da.className,$a=da.style;return z.createElement(nn.Z,{open:!0,getContainer:kt!=null?kt:document.body},z.createElement("div",{className:pe()("".concat(Zt,"-operations-wrapper"),pa,Sn),style:$a},Fo===null?null:z.createElement("button",{className:"".concat(Zt,"-close"),onClick:ho},Fo||Qo),On&&z.createElement(z.Fragment,null,z.createElement("div",{className:pe()("".concat(Zt,"-switch-left"),(0,le.Z)({},"".concat(Zt,"-switch-left-disabled"),gr===0)),onClick:zr},ea),z.createElement("div",{className:pe()("".concat(Zt,"-switch-right"),(0,le.Z)({},"".concat(Zt,"-switch-right-disabled"),gr===co-1)),onClick:Zo},ua)),z.createElement("div",{className:"".concat(Zt,"-footer")},Wn&&z.createElement("div",{className:"".concat(Zt,"-progress")},Fn?Fn(gr+1,co):"".concat(gr+1," / ").concat(co)),_a?_a(Ta,(0,de.Z)({icons:{flipYIcon:aa[0],flipXIcon:aa[1],rotateLeftIcon:aa[2],rotateRightIcon:aa[3],zoomOutIcon:aa[4],zoomInIcon:aa[5]},actions:{onFlipY:Hi,onFlipX:ca,onRotateLeft:ei,onRotateRight:ya,onZoomOut:wi,onZoomIn:qo},transform:so},Xo?{current:gr,total:co}:{})):Ta)))})},fr=Tn,Lr=1,Ot=1,cr=["fallback","src","imgRef"],sr=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Rn=function(ke){var et=ke.fallback,At=ke.src,kt=ke.imgRef,Zt=(0,me.Z)(ke,cr),Sn=en({src:At,fallback:et}),wn=(0,ce.Z)(Sn,2),Fn=wn[0],On=wn[1];return z.createElement("img",(0,ie.Z)({ref:function(gr){kt.current=gr,Fn(gr)}},Zt,On))},Hn=function(ke){var et=ke.prefixCls,At=ke.src,kt=ke.alt,Zt=ke.fallback,Sn=ke.movable,wn=Sn===void 0?!0:Sn,Fn=ke.onClose,On=ke.visible,Wn=ke.icons,gr=Wn===void 0?{}:Wn,so=ke.rootClassName,co=ke.closeIcon,Jr=ke.getContainer,po=ke.current,Ro=po===void 0?0:po,Fo=ke.count,zr=Fo===void 0?1:Fo,Zo=ke.countRender,ho=ke.scaleStep,qo=ho===void 0?.5:ho,wi=ke.minScale,ya=wi===void 0?1:wi,ei=ke.maxScale,ca=ei===void 0?50:ei,Hi=ke.transitionName,_a=Hi===void 0?"zoom":Hi,Xo=ke.maskTransitionName,zo=Xo===void 0?"fade":Xo,Si=ke.imageRender,xa=ke.imgCommonProps,za=ke.toolbarRender,Qo=ke.onTransform,ea=ke.onChange,ua=(0,me.Z)(ke,sr),Or=(0,z.useRef)(),fa=(0,z.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),ha=(0,z.useState)(!1),ma=(0,ce.Z)(ha,2),aa=ma[0],Ta=ma[1],da=(0,z.useContext)(tt),pa=da&&zr>1,$a=da&&zr>=1,rs=tn(Or,ya,ca,Qo),Xi=rs.transform,ga=rs.resetTransform,Pa=rs.updateTransform,as=rs.dispatchZoomChange,As=(0,z.useState)(!0),Ds=(0,ce.Z)(As,2),Fs=Ds[0],hs=Ds[1],ts=Xi.rotate,ns=Xi.scale,ms=Xi.x,bs=Xi.y,el=pe()((0,le.Z)({},"".concat(et,"-moving"),aa));(0,z.useEffect)(function(){Fs||hs(!0)},[Fs]);var tl=function(){ga("close")},Rs=function(){as(Lr+qo,"zoomIn")},Hs=function(){as(Lr/(Lr+qo),"zoomOut")},nl=function(){Pa({rotate:ts+90},"rotateRight")},ks=function(){Pa({rotate:ts-90},"rotateLeft")},Ns=function(){Pa({flipX:!Xi.flipX},"flipX")},js=function(){Pa({flipY:!Xi.flipY},"flipY")},$s=function(un){un==null||un.preventDefault(),un==null||un.stopPropagation(),Ro>0&&(hs(!1),ga("prev"),ea==null||ea(Ro-1,Ro))},Vs=function(un){un==null||un.preventDefault(),un==null||un.stopPropagation(),Ro<zr-1&&(hs(!1),ga("next"),ea==null||ea(Ro+1,Ro))},Oe=function(){if(On&&aa){Ta(!1);var un=fa.current,Jn=un.transformX,Cr=un.transformY,Yn=ms!==Jn&&bs!==Cr;if(!Yn)return;var Br=Or.current.offsetWidth*ns,Sr=Or.current.offsetHeight*ns,no=Or.current.getBoundingClientRect(),ri=no.left,Uo=no.top,oi=ts%180!==0,Wo=Xr(oi?Sr:Br,oi?Br:Sr,ri,Uo);Wo&&Pa((0,de.Z)({},Wo),"dragRebound")}},Xe=function(un){!wn||un.button!==0||(un.preventDefault(),un.stopPropagation(),fa.current={deltaX:un.pageX-Xi.x,deltaY:un.pageY-Xi.y,transformX:Xi.x,transformY:Xi.y},Ta(!0))},Ye=function(un){On&&aa&&Pa({x:un.pageX-fa.current.deltaX,y:un.pageY-fa.current.deltaY},"move")},vt=function(un){if(!(!On||un.deltaY==0)){var Jn=Math.abs(un.deltaY/100),Cr=Math.min(Jn,Ot),Yn=Lr+Cr*qo;un.deltaY>0&&(Yn=Lr/Yn),as(Yn,"wheel",un.clientX,un.clientY)}},It=function(un){!On||!pa||(un.keyCode===Po.LEFT?$s():un.keyCode===Po.RIGHT&&Vs())},rn=function(un){On&&(ns!==1?Pa({x:0,y:0,scale:1},"doubleClick"):as(Lr+qo,"doubleClick",un.clientX,un.clientY))};(0,z.useEffect)(function(){var An,un,Jn,Cr;if(wn){Jn=Ho(window,"mouseup",Oe,!1),Cr=Ho(window,"mousemove",Ye,!1);try{window.top!==window.self&&(An=Ho(window.top,"mouseup",Oe,!1),un=Ho(window.top,"mousemove",Ye,!1))}catch(Yn){Vr(!1,"[rc-image] ".concat(Yn))}}return function(){var Yn,Br,Sr,no;(Yn=Jn)===null||Yn===void 0||Yn.remove(),(Br=Cr)===null||Br===void 0||Br.remove(),(Sr=An)===null||Sr===void 0||Sr.remove(),(no=un)===null||no===void 0||no.remove()}},[On,aa,ms,bs,ts,wn]),(0,z.useEffect)(function(){var An=Ho(window,"keydown",It,!1);return function(){An.remove()}},[On,pa,Ro]);var an=z.createElement(Rn,(0,ie.Z)({},xa,{width:ke.width,height:ke.height,imgRef:Or,className:"".concat(et,"-img"),alt:kt,style:{transform:"translate3d(".concat(Xi.x,"px, ").concat(Xi.y,"px, 0) scale3d(").concat(Xi.flipX?"-":"").concat(ns,", ").concat(Xi.flipY?"-":"").concat(ns,", 1) rotate(").concat(ts,"deg)"),transitionDuration:!Fs&&"0s"},fallback:Zt,src:At,onWheel:vt,onMouseDown:Xe,onDoubleClick:rn}));return z.createElement(z.Fragment,null,z.createElement(Kr,(0,ie.Z)({transitionName:_a,maskTransitionName:zo,closable:!1,keyboard:!0,prefixCls:et,onClose:Fn,visible:On,wrapClassName:el,rootClassName:so,getContainer:Jr},ua,{afterClose:tl}),z.createElement("div",{className:"".concat(et,"-img-wrapper")},Si?Si(an,(0,de.Z)({transform:Xi},da?{current:Ro}:{})):an)),z.createElement(fr,{visible:On,transform:Xi,maskTransitionName:zo,closeIcon:co,getContainer:Jr,prefixCls:et,rootClassName:so,icons:gr,countRender:Zo,showSwitch:pa,showProgress:$a,current:Ro,count:zr,scale:ns,minScale:ya,maxScale:ca,toolbarRender:za,onSwitchLeft:$s,onSwitchRight:Vs,onZoomIn:Rs,onZoomOut:Hs,onRotateRight:nl,onRotateLeft:ks,onFlipX:Ns,onFlipY:js,onClose:Fn}))},tr=Hn,jr=ee(74902);function Pr($e){var ke=z.useState({}),et=(0,ce.Z)(ke,2),At=et[0],kt=et[1],Zt=z.useCallback(function(wn,Fn){return kt(function(On){return(0,de.Z)((0,de.Z)({},On),{},(0,le.Z)({},wn,Fn))}),function(){kt(function(On){var Wn=(0,de.Z)({},On);return delete Wn[wn],Wn})}},[]),Sn=z.useMemo(function(){return $e?$e.map(function(wn){if(typeof wn=="string")return{data:{src:wn}};var Fn={};return Object.keys(wn).forEach(function(On){["src"].concat((0,jr.Z)(Fe)).includes(On)&&(Fn[On]=wn[On])}),{data:Fn}}):Object.keys(At).reduce(function(wn,Fn){var On=At[Fn],Wn=On.canPreview,gr=On.data;return Wn&&wn.push({data:gr,id:Fn}),wn},[])},[$e,At]);return[Sn,Zt]}var Yi=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ti=["src"],xr=function(ke){var et,At=ke.previewPrefixCls,kt=At===void 0?"rc-image-preview":At,Zt=ke.children,Sn=ke.icons,wn=Sn===void 0?{}:Sn,Fn=ke.items,On=ke.preview,Wn=ke.fallback,gr=(0,se.Z)(On)==="object"?On:{},so=gr.visible,co=gr.onVisibleChange,Jr=gr.getContainer,po=gr.current,Ro=gr.movable,Fo=gr.minScale,zr=gr.maxScale,Zo=gr.countRender,ho=gr.closeIcon,qo=gr.onChange,wi=gr.onTransform,ya=gr.toolbarRender,ei=gr.imageRender,ca=(0,me.Z)(gr,Yi),Hi=Pr(Fn),_a=(0,ce.Z)(Hi,2),Xo=_a[0],zo=_a[1],Si=De(0,{value:po}),xa=(0,ce.Z)(Si,2),za=xa[0],Qo=xa[1],ea=(0,z.useState)(!1),ua=(0,ce.Z)(ea,2),Or=ua[0],fa=ua[1],ha=((et=Xo[za])===null||et===void 0?void 0:et.data)||{},ma=ha.src,aa=(0,me.Z)(ha,ti),Ta=De(!!so,{value:so,onChange:function(ts,ns){co==null||co(ts,ns,za)}}),da=(0,ce.Z)(Ta,2),pa=da[0],$a=da[1],rs=(0,z.useState)(null),Xi=(0,ce.Z)(rs,2),ga=Xi[0],Pa=Xi[1],as=z.useCallback(function(hs,ts,ns){var ms=Xo.findIndex(function(bs){return bs.id===hs});$a(!0),Pa({x:ts,y:ns}),Qo(ms<0?0:ms),fa(!0)},[Xo]);z.useEffect(function(){pa?Or||Qo(0):fa(!1)},[pa]);var As=function(ts,ns){Qo(ts),qo==null||qo(ts,ns)},Ds=function(){$a(!1),Pa(null)},Fs=z.useMemo(function(){return{register:zo,onPreview:as}},[zo,as]);return z.createElement(tt.Provider,{value:Fs},Zt,z.createElement(tr,(0,ie.Z)({"aria-hidden":!pa,movable:Ro,visible:pa,prefixCls:kt,closeIcon:ho,onClose:Ds,mousePosition:ga,imgCommonProps:aa,src:ma,fallback:Wn,icons:wn,minScale:Fo,maxScale:zr,getContainer:Jr,current:za,count:Xo.length,countRender:Zo,onTransform:wi,toolbarRender:ya,imageRender:ei,onChange:As},ca)))},yo=xr,Mi=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Pi=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ai=function(ke){var et=ke.src,At=ke.alt,kt=ke.onPreviewClose,Zt=ke.prefixCls,Sn=Zt===void 0?"rc-image":Zt,wn=ke.previewPrefixCls,Fn=wn===void 0?"".concat(Sn,"-preview"):wn,On=ke.placeholder,Wn=ke.fallback,gr=ke.width,so=ke.height,co=ke.style,Jr=ke.preview,po=Jr===void 0?!0:Jr,Ro=ke.className,Fo=ke.onClick,zr=ke.onError,Zo=ke.wrapperClassName,ho=ke.wrapperStyle,qo=ke.rootClassName,wi=(0,me.Z)(ke,Mi),ya=On&&On!==!0,ei=(0,se.Z)(po)==="object"?po:{},ca=ei.src,Hi=ei.visible,_a=Hi===void 0?void 0:Hi,Xo=ei.onVisibleChange,zo=Xo===void 0?kt:Xo,Si=ei.getContainer,xa=Si===void 0?void 0:Si,za=ei.mask,Qo=ei.maskClassName,ea=ei.movable,ua=ei.icons,Or=ei.scaleStep,fa=ei.minScale,ha=ei.maxScale,ma=ei.imageRender,aa=ei.toolbarRender,Ta=(0,me.Z)(ei,Pi),da=ca!=null?ca:et,pa=De(!!_a,{value:_a,onChange:zo}),$a=(0,ce.Z)(pa,2),rs=$a[0],Xi=$a[1],ga=en({src:et,isCustomPlaceholder:ya,fallback:Wn}),Pa=(0,ce.Z)(ga,3),as=Pa[0],As=Pa[1],Ds=Pa[2],Fs=(0,z.useState)(null),hs=(0,ce.Z)(Fs,2),ts=hs[0],ns=hs[1],ms=(0,z.useContext)(tt),bs=!!po,el=function(){Xi(!1),ns(null)},tl=pe()(Sn,Zo,qo,(0,le.Z)({},"".concat(Sn,"-error"),Ds==="error")),Rs=(0,z.useMemo)(function(){var Ns={};return Fe.forEach(function(js){ke[js]!==void 0&&(Ns[js]=ke[js])}),Ns},Fe.map(function(Ns){return ke[Ns]})),Hs=(0,z.useMemo)(function(){return(0,de.Z)((0,de.Z)({},Rs),{},{src:da})},[da,Rs]),nl=Ct(bs,Hs),ks=function(js){var $s=_e(js.target),Vs=$s.left,Oe=$s.top;ms?ms.onPreview(nl,Vs,Oe):(ns({x:Vs,y:Oe}),Xi(!0)),Fo==null||Fo(js)};return z.createElement(z.Fragment,null,z.createElement("div",(0,ie.Z)({},wi,{className:tl,onClick:bs?ks:Fo,style:(0,de.Z)({width:gr,height:so},ho)}),z.createElement("img",(0,ie.Z)({},Rs,{className:pe()("".concat(Sn,"-img"),(0,le.Z)({},"".concat(Sn,"-img-placeholder"),On===!0),Ro),style:(0,de.Z)({height:so},co),ref:as},As,{width:gr,height:so,onError:zr})),Ds==="loading"&&z.createElement("div",{"aria-hidden":"true",className:"".concat(Sn,"-placeholder")},On),za&&bs&&z.createElement("div",{className:pe()("".concat(Sn,"-mask"),Qo),style:{display:(co==null?void 0:co.display)==="none"?"none":void 0}},za)),!ms&&bs&&z.createElement(tr,(0,ie.Z)({"aria-hidden":!rs,visible:rs,prefixCls:Fn,onClose:el,mousePosition:ts,src:da,alt:At,fallback:Wn,getContainer:xa,icons:ua,movable:ea,scaleStep:Or,minScale:fa,maxScale:ha,rootClassName:qo,imageRender:ma,imgCommonProps:Rs,toolbarRender:aa},Ta)))};Ai.PreviewGroup=yo,Ai.displayName="Image";var pn=Ai,Ka=pn,Ui=ee(33603),Vo=ee(53124),Aa=ee(24457),Bn=ee(73475),mr=ee(22751),Hr=ee(91034),rr={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"},di=rr,bi=ee(74643),la=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:di}))},Da=z.forwardRef(la),Wa={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"},ft=Wa,ut=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:ft}))},Ht=z.forwardRef(ut),Yt={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"},xn=Yt,Ar=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:xn}))},Dr=z.forwardRef(Ar),lo={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"},_o=lo,uo=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:_o}))},ni=z.forwardRef(uo),vi={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"},Di=vi,_t=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:Di}))},Et=z.forwardRef(_t),jt=ee(84780),Ue=ee(71194),zt=ee(14747),ln=ee(50438),gn=ee(16932),Lt=ee(67968),Ut=ee(45503);const Rt=$e=>({position:$e||"absolute",inset:0}),Pn=$e=>{const{iconCls:ke,motionDurationSlow:et,paddingXXS:At,marginXXS:kt,prefixCls:Zt,colorTextLightSolid:Sn}=$e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Sn,background:new jt.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${et}`,[`.${Zt}-mask-info`]:Object.assign(Object.assign({},zt.vS),{padding:`0 ${At}px`,[ke]:{marginInlineEnd:kt,svg:{verticalAlign:"baseline"}}})}},$n=$e=>{const{previewCls:ke,modalMaskBg:et,paddingSM:At,marginXL:kt,margin:Zt,paddingLG:Sn,previewOperationColorDisabled:wn,previewOperationHoverColor:Fn,motionDurationSlow:On,iconCls:Wn,colorTextLightSolid:gr}=$e,so=new jt.C(et).setAlpha(.1),co=so.clone().setAlpha(.2);return{[`${ke}-footer`]:{position:"fixed",bottom:kt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:$e.previewOperationColor},[`${ke}-progress`]:{marginBottom:Zt},[`${ke}-close`]:{position:"fixed",top:kt,right:{_skip_check_:!0,value:kt},display:"flex",color:gr,backgroundColor:so.toRgbString(),borderRadius:"50%",padding:At,outline:0,border:0,cursor:"pointer",transition:`all ${On}`,"&:hover":{backgroundColor:co.toRgbString()},[`& > ${Wn}`]:{fontSize:$e.previewOperationSize}},[`${ke}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Sn}px`,backgroundColor:so.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:At,padding:At,cursor:"pointer",transition:`all ${On}`,userSelect:"none",[`&:not(${ke}-operations-operation-disabled):hover > ${Wn}`]:{color:Fn},"&-disabled":{color:wn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Wn}`]:{fontSize:$e.previewOperationSize}}}}},ir=$e=>{const{modalMaskBg:ke,iconCls:et,previewOperationColorDisabled:At,previewCls:kt,zIndexPopup:Zt,motionDurationSlow:Sn}=$e,wn=new jt.C(ke).setAlpha(.1),Fn=wn.clone().setAlpha(.2);return{[`${kt}-switch-left, ${kt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Zt+1,display:"flex",alignItems:"center",justifyContent:"center",width:$e.imagePreviewSwitchSize,height:$e.imagePreviewSwitchSize,marginTop:-$e.imagePreviewSwitchSize/2,color:$e.previewOperationColor,background:wn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Sn}`,userSelect:"none","&:hover":{background:Fn.toRgbString()},"&-disabled":{"&, &:hover":{color:At,background:"transparent",cursor:"not-allowed",[`> ${et}`]:{cursor:"not-allowed"}}},[`> ${et}`]:{fontSize:$e.previewOperationSize}},[`${kt}-switch-left`]:{insetInlineStart:$e.marginSM},[`${kt}-switch-right`]:{insetInlineEnd:$e.marginSM}}},Qn=$e=>{const{motionEaseOut:ke,previewCls:et,motionDurationSlow:At,componentCls:kt}=$e;return[{[`${kt}-preview-root`]:{[et]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${et}-body`]:Object.assign(Object.assign({},Rt()),{overflow:"hidden"}),[`${et}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${At} ${ke} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Rt()),{transition:`transform ${At} ${ke} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${et}-moving`]:{[`${et}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${kt}-preview-root`]:{[`${et}-wrap`]:{zIndex:$e.zIndexPopup}}},{[`${kt}-preview-operations-wrapper`]:{position:"fixed",zIndex:$e.zIndexPopup+1},"&":[$n($e),ir($e)]}]},dr=$e=>{const{componentCls:ke}=$e;return{[ke]:{position:"relative",display:"inline-block",[`${ke}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ke}-img-placeholder`]:{backgroundColor:$e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ke}-mask`]:Object.assign({},Pn($e)),[`${ke}-mask:hover`]:{opacity:1},[`${ke}-placeholder`]:Object.assign({},Rt())}}},br=$e=>{const{previewCls:ke}=$e;return{[`${ke}-root`]:(0,ln._y)($e,"zoom"),"&":(0,gn.J$)($e,!0)}};var mn=(0,Lt.Z)("Image",$e=>{const ke=`${$e.componentCls}-preview`,et=(0,Ut.TS)($e,{previewCls:ke,modalMaskBg:new jt.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:$e.controlHeightLG});return[dr(et),Qn(et),(0,Ue.QA)((0,Ut.TS)(et,{componentCls:ke})),br(et)]},$e=>({zIndexPopup:$e.zIndexPopupBase+80,previewOperationColor:new jt.C($e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new jt.C($e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new jt.C($e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:$e.fontSizeIcon*1.5})),Dt=function($e,ke){var et={};for(var At in $e)Object.prototype.hasOwnProperty.call($e,At)&&ke.indexOf(At)<0&&(et[At]=$e[At]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,At=Object.getOwnPropertySymbols($e);kt<At.length;kt++)ke.indexOf(At[kt])<0&&Object.prototype.propertyIsEnumerable.call($e,At[kt])&&(et[At[kt]]=$e[At[kt]]);return et};const Jt={rotateLeft:z.createElement(Da,null),rotateRight:z.createElement(Ht,null),zoomIn:z.createElement(ni,null),zoomOut:z.createElement(Et,null),close:z.createElement(Bn.Z,null),left:z.createElement(mr.Z,null),right:z.createElement(Hr.Z,null),flipX:z.createElement(Dr,null),flipY:z.createElement(Dr,{rotate:90})};var Vn=$e=>{var{previewPrefixCls:ke,preview:et}=$e,At=Dt($e,["previewPrefixCls","preview"]);const{getPrefixCls:kt}=z.useContext(Vo.E_),Zt=kt("image",ke),Sn=`${Zt}-preview`,wn=kt(),[Fn,On]=mn(Zt),Wn=z.useMemo(()=>{var gr;if(et===!1)return et;const so=typeof et=="object"?et:{},co=pe()(On,(gr=so.rootClassName)!==null&&gr!==void 0?gr:"");return Object.assign(Object.assign({},so),{transitionName:(0,Ui.m)(wn,"zoom",so.transitionName),maskTransitionName:(0,Ui.m)(wn,"fade",so.maskTransitionName),rootClassName:co})},[et]);return Fn(z.createElement(Ka.PreviewGroup,Object.assign({preview:Wn,previewPrefixCls:Sn,icons:Jt},At)))},pr=function($e,ke){var et={};for(var At in $e)Object.prototype.hasOwnProperty.call($e,At)&&ke.indexOf(At)<0&&(et[At]=$e[At]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,At=Object.getOwnPropertySymbols($e);kt<At.length;kt++)ke.indexOf(At[kt])<0&&Object.prototype.propertyIsEnumerable.call($e,At[kt])&&(et[At[kt]]=$e[At[kt]]);return et};const Nr=$e=>{const{prefixCls:ke,preview:et,className:At,rootClassName:kt,style:Zt}=$e,Sn=pr($e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:wn,locale:Fn=Aa.Z,getPopupContainer:On,image:Wn}=z.useContext(Vo.E_),gr=wn("image",ke),so=wn(),co=Fn.Image||Aa.Z.Image,[Jr,po]=mn(gr),Ro=pe()(kt,po),Fo=pe()(At,po,Wn==null?void 0:Wn.className),zr=z.useMemo(()=>{if(et===!1)return et;const ho=typeof et=="object"?et:{},{getContainer:qo}=ho,wi=pr(ho,["getContainer"]);return Object.assign(Object.assign({mask:z.createElement("div",{className:`${gr}-mask-info`},z.createElement(ve.Z,null),co==null?void 0:co.preview),icons:Jt},wi),{getContainer:qo||On,transitionName:(0,Ui.m)(so,"zoom",ho.transitionName),maskTransitionName:(0,Ui.m)(so,"fade",ho.maskTransitionName)})},[et,co]),Zo=Object.assign(Object.assign({},Wn==null?void 0:Wn.style),Zt);return Jr(z.createElement(Ka,Object.assign({prefixCls:gr,preview:zr,rootClassName:Ro,className:Fo,style:Zo},Sn)))};Nr.PreviewGroup=Vn;var ao=Nr,Tr=()=>{const[$e,ke]=(0,z.useState)(""),[et,At]=(0,z.useState)(0);let[kt,Zt]=(0,z.useState)(),[Sn,wn]=(0,z.useState)();const[Fn,On]=(0,z.useState)(!1),Wn=(0,z.useRef)("");(0,z.useEffect)(()=>be.Z.subscribe("preview-image",qo=>{ke(qo),console.log(zr.current),document.body.style.overflow="hidden"}),[]),(0,z.useEffect)(()=>(document.addEventListener("keydown",gr),()=>{document.removeEventListener("keydown",gr)}),[]),(0,z.useEffect)(()=>{Wn.current=$e},[$e]);function gr(ho){ho.keyCode==27&&Wn.current&&so()}function so(){document.body.style.overflow="auto",Zt(void 0),wn(void 0),At(0),ke("")}function co(){At(et+90)}function Jr(){kt=zr.current.width*1.1,Sn=zr.current.height*1.1,wn(Sn),Zt(kt)}function po(){kt=zr.current.width/1.1,Sn=zr.current.height/1.1,wn(Sn),Zt(kt)}const Ro=(0,z.useRef)(),Fo=(0,z.useRef)(),zr=(0,z.useRef)(),Zo=ho=>{(ho.nativeEvent.target===Ro.current||ho.nativeEvent.target===Fo.current)&&so()};return z.createElement(z.Fragment,null,$e?z.createElement("div",null,z.createElement("div",{className:"preview-wrp-group",ref:Fo},z.createElement(ao,{className:"image-preview",src:$e,style:{display:"none"},preview:{visible:!0,src:$e,movable:!1,onVisibleChange:ho=>{ke("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(at,We,ee){"use strict";ee.d(We,{h:function(){return oe}});var z=ee(67294),ge=ee(42563),be=ee(22150),ve=ee(71577),fe=ee(4631),pe=ee.n(fe),ie=ee(71749),de=ee(30483),le=Object.defineProperty,ce=Object.defineProperties,se=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ae,ue,ye)=>ue in ae?le(ae,ue,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ae[ue]=ye,y=(ae,ue)=>{for(var ye in ue||(ue={}))re.call(ue,ye)&&a(ae,ye,ue[ye]);if(me)for(var ye of me(ue))ne.call(ue,ye)&&a(ae,ye,ue[ye]);return ae},E=(ae,ue)=>ce(ae,se(ue));const b=ge.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};We.Z=({callback:ae,onCancel:ue})=>{const[ye,_e]=(0,z.useState)("python");function xe(Be){_e(te[Be][1])}function Ce(Be){ae(Be)}return z.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ce,style:{width:500}}),z.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(ge.default,{getPopupContainer:Be=>Be.parentNode,onChange:xe},Object.keys(te).map(Be=>z.createElement(b,{key:Be,value:Be},te[Be][0])))),z.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(oe,{mode:ye})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(ve.ZP,{type:"ghost",onClick:ue},"\u53D6\u6D88")))};function oe({value:ae,onChange:ue,mode:ye,options:_e={}}){const xe=(0,z.useRef)(),[Ce,Be]=(0,z.useState)();return(0,z.useEffect)(()=>{if(Ce){let Me=function(mt){const Qe=mt.getValue();ue&&ue(Qe)};return Ce.on("change",Me),()=>{Ce.off("change",Me)}}},[Ce,ue]),(0,z.useEffect)(()=>{Ce&&Ce.setOption("mode",ye)},[Ce,ye]),(0,z.useEffect)(()=>{Ce&&(ae!==Ce.getValue()||ae==="")&&setTimeout(()=>{Ce.setValue(ae||"")},300)},[Ce,ae]),(0,z.useEffect)(()=>{if(xe.current&&!Ce){const Me=pe().fromTextArea(xe.current,y({mode:ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Be(Me)}},[xe.current,Ce]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:xe}))}},35567:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return he}});var z=ee(67294),ge=ee(4631),be=ee.n(ge),ve=ee(91033),fe=ee(71749),pe=ee(57341),ie=ee(82801),de=ee(88386),le=ee(49047),ce=ee(80785),se=ee(85725),me=({value:Se="",className:Pe,showTextOnly:Le,showLines:Ne,style:nt={}})=>{const lt=(0,z.useMemo)(()=>"",[Se]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:lt}}))},re=ee(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,te=(Se,Pe,Le)=>Pe in Se?ne(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,oe=(Se,Pe)=>{for(var Le in Pe||(Pe={}))b.call(Pe,Le)&&te(Se,Le,Pe[Le]);if(E)for(var Le of E(Pe))x.call(Pe,Le)&&te(Se,Le,Pe[Le]);return Se},ae=(Se,Pe)=>a(Se,y(Pe));let ue=[{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 ye({onActionCallback:Se,title:Pe,icon:Le,actionName:Ne,className:nt="",children:lt}){function fn(){Se(Ne)}return re.createElement("a",{title:Pe,className:nt,onClick:fn},re.createElement("i",{className:`${Le}`}),lt)}var _e=({watch:Se,showNullButton:Pe,showNullProgramButton:Le,onActionCallback:Ne,fullScreen:nt,insertTemp:lt,hidetoolBar:fn,extraUse:tn})=>{const Tn=[...ue,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!fn&&Tn.map((fr,Lr)=>re.createElement("li",{key:Lr},fr.actionName?re.createElement(ye,ae(oe({},fr),{onActionCallback:Ne})):re.createElement("span",{className:"v-line"}))),Pe?re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Le?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,lt&&re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${lt}`,onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),tn&&re.createElement("li",null,tn),re.createElement("li",{className:"btn-full-screen"},re.createElement(ye,{icon:`${nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},xe=ee(76621),Ce=ee(22150),Be=ee(69677),Me=ee(71577),mt=Object.defineProperty,Qe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,tt=(Se,Pe,Le)=>Pe in Se?mt(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,Ve=(Se,Pe)=>{for(var Le in Pe||(Pe={}))De.call(Pe,Le)&&tt(Se,Le,Pe[Le]);if(Ae)for(var Le of Ae(Pe))Fe.call(Pe,Le)&&tt(Se,Le,Pe[Le]);return Se},Ct=(Se,Pe)=>Qe(Se,pt(Pe));const Mt={labelCol:{span:4},wrapperCol:{span:20}};var en=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return z.createElement(Ce.default,Ct(Ve({},Mt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),z.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Be.default,null)),z.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Be.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},nn=ee(57444),it=ee(70859),ct=ee(14446),wt=ee(71230),Vt=ee(63205),Gt=ee(67294),Ln=({callback:Se,onCancel:Pe})=>{const Le=document.createElement("canvas"),Ne=Le.getContext("2d");Le.width=1e3,Le.height=800,Ne.fillStyle="#ffffff",Ne.fillRect(0,0,Le.width,Le.height);const nt=Le.toDataURL("image/png");return Gt.createElement(ct.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Gt.createElement(wt.Z,{style:{height:"100vh"}},Gt.createElement(Vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:nt,visible:!0,title:String(Date.now())},onOk:lt=>{Se({src:lt.url})},onClose:Pe})))},He=ee(23495);function on(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(on,go.CommandHandler),on.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},on.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var Pe=1/0;Se.selection.each(function(Le){Le instanceof go.Link||(Pe=Math.min(Le.position.x,Pe))}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Pe,Le.position.y))}),Se.commitTransaction("aligning left")},on.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var Pe=-1/0;Se.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.x+Le.actualBounds.width;Pe=Math.max(Ne,Pe)}}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Pe-Le.actualBounds.width,Le.position.y))}),Se.commitTransaction("aligning right")},on.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var Pe=1/0;Se.selection.each(function(Le){Le instanceof go.Link||(Pe=Math.min(Le.position.y,Pe))}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,Pe))}),Se.commitTransaction("alignTop")},on.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var Pe=-1/0;Se.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.y+Le.actualBounds.height;Pe=Math.max(Ne,Pe)}}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,Pe-Le.actualBounds.height))}),Se.commitTransaction("aligning bottom")},on.prototype.alignCenterX=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center X");var Le=Pe.actualBounds.x+Pe.actualBounds.width/2;Se.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Le-Ne.actualBounds.width/2,Ne.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},on.prototype.alignCenterY=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center Y");var Le=Pe.actualBounds.y+Pe.actualBounds.height/2;Se.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Ne.actualBounds.x,Le-Ne.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},on.prototype.alignColumn=function(Se){var Pe=this.diagram;Pe.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var Le=new Array;Pe.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var Ne=0;Ne<Le.length-1;Ne++){var nt=Le[Ne],lt=nt.actualBounds.y+nt.actualBounds.height+Se,fn=Le[Ne+1];fn.move(new go.Point(nt.actualBounds.x,lt))}Pe.commitTransaction("align Column")},on.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var Pe=this.diagram;Pe.startTransaction("align Row");var Le=new Array;Pe.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var Ne=0;Ne<Le.length-1;Ne++){var nt=Le[Ne],lt=nt.actualBounds.x+nt.actualBounds.width+Se,fn=Le[Ne+1];fn.move(new go.Point(lt,nt.actualBounds.y))}Pe.commitTransaction("align Row")},on.prototype.canRotate=function(Se){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},on.prototype.rotate=function(Se){Se===void 0&&(Se=90);var Pe=this.diagram;Pe.startTransaction("rotate "+Se.toString());var Pe=this.diagram;Pe.selection.each(function(Le){Le instanceof go.Link||Le instanceof go.Group||(Le.angle+=Se)}),Pe.commitTransaction("rotate "+Se.toString())},on.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var Pe=new go.Map;Se.selection.each(function(Le){Pe.set(Le.layer,0)}),Pe.iteratorKeys.each(function(Le){var Ne=0;Le.parts.each(function(nt){if(!nt.isSelected){var lt=nt.zOrder;isNaN(lt)?nt.zOrder=0:Ne=Math.max(Ne,lt)}}),Pe.set(Le,Ne)}),Se.selection.each(function(Le){on._assignZOrder(Le,Pe.get(Le.layer)+1)}),Se.commitTransaction("pullToFront")},on.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var Pe=new go.Map;Se.selection.each(function(Le){Pe.set(Le.layer,0)}),Pe.iteratorKeys.each(function(Le){var Ne=0;Le.parts.each(function(nt){if(!nt.isSelected){var lt=nt.zOrder;isNaN(lt)?nt.zOrder=0:Ne=Math.min(Ne,lt)}}),Pe.set(Le,Ne)}),Se.selection.each(function(Le){on._assignZOrder(Le,Pe.get(Le.layer)-1-on._findGroupDepth(Le))}),Se.commitTransaction("pushToBack")},on._assignZOrder=function(Se,Pe,Le){Le===void 0&&(Le=Se),Se.layer===Le.layer&&(Se.zOrder=Pe),Se instanceof go.Group&&Se.memberParts.each(function(Ne){on._assignZOrder(Ne,Pe+1,Le)})},on._findGroupDepth=function(Se){if(Se instanceof go.Group){var Pe=0;return Se.memberParts.each(function(Le){Pe=Math.max(Pe,on._findGroupDepth(Le))}),Pe+1}else return 0},on.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var Pe=Se.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var Le=this.arrowKeyBehavior;if(Le==="none")return;if(Le==="select"){this._arrowKeySelect();return}else if(Le==="move"){this._arrowKeyMove();return}else if(Le==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},on.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(Pe){Se.push(Pe)}),this.diagram.parts.each(function(Pe){Se.push(Pe)}),Se},on.prototype._arrowKeyMove=function(){var Se=this.diagram,Pe=Se.lastInput,Le=0,Ne=0;if(Pe.control||Pe.meta)Le=1,Ne=1;else if(Se.grid!==null){var nt=Se.grid.gridCellSize;Ne=nt.width,Le=nt.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(lt){Pe.key==="Up"?lt.move(new go.Point(lt.actualBounds.x,lt.actualBounds.y-Le)):Pe.key==="Down"?lt.move(new go.Point(lt.actualBounds.x,lt.actualBounds.y+Le)):Pe.key==="Left"?lt.move(new go.Point(lt.actualBounds.x-Ne,lt.actualBounds.y)):Pe.key==="Right"&<.move(new go.Point(lt.actualBounds.x+Ne,lt.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},on.prototype._arrowKeySelect=function(){var Se=this.diagram,Pe=Se.lastInput,Le=null;Pe.key==="Up"?Le=this._findNearestPartTowards(270):Pe.key==="Down"?Le=this._findNearestPartTowards(90):Pe.key==="Left"?Le=this._findNearestPartTowards(180):Pe.key==="Right"&&(Le=this._findNearestPartTowards(0)),Le!==null&&(Pe.shift?Le.isSelected=!0:Pe.control||Pe.meta?Le.isSelected=!Le.isSelected:Se.select(Le))},on.prototype._findNearestPartTowards=function(Se){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var Le=Pe.actualBounds.center,Ne=this._getAllParts(),nt=1/0,lt=Pe,fn=0;fn<Ne.length;fn++){var tn=Ne[fn];if(tn!==Pe&&tn.canSelect()){var Tn=tn.actualBounds.center,fr=Le.directionPoint(Tn),Lr=this._angleCloseness(fr,Se);if(Lr<=45){var Ot=Le.distanceSquaredPoint(Tn);Ot*=1+Math.sin(Lr*Math.PI/180),Ot<nt&&(nt=Ot,lt=tn)}}}return lt},on.prototype._angleCloseness=function(Se,Pe){return Math.min(Math.abs(Pe-Se),Math.min(Math.abs(Pe+360-Se),Math.abs(Pe-360-Se)))},on.prototype._arrowKeyTree=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe instanceof go.Node){var Le=Se.lastInput;if(Le.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)Se.commandHandler.canExpandTree(Pe)&&Se.commandHandler.expandTree(Pe);else{var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&Se.select(Ne)}}else if(Le.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)Se.commandHandler.canCollapseTree(Pe)&&Se.commandHandler.collapseTree(Pe);else{var nt=Pe.findTreeParentNode();nt!==null&&Se.select(nt)}else if(Le.key==="Up"){var nt=Pe.findTreeParentNode();if(nt!==null){var lt=this._sortTreeChildrenByY(nt),fn=lt.indexOf(Pe);if(fn>0){for(var tn=lt.elt(fn-1);tn!==null&&tn.isTreeExpanded&&!tn.isTreeLeaf;){var Tn=this._sortTreeChildrenByY(tn);tn=Tn.last()}tn!==null&&Se.select(tn)}else Se.select(nt)}}else if(Le.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&Se.select(Ne)}else for(;Pe!==null;){var nt=Pe.findTreeParentNode();if(nt===null)break;var lt=this._sortTreeChildrenByY(nt),fn=lt.indexOf(Pe);if(fn<lt.length-1){Se.select(lt.elt(fn+1));break}else Pe=nt}var fr=Se.selection.first();fr!==null&&Se.scrollToRect(fr.actualBounds)}},on.prototype._sortTreeChildrenByY=function(Se){var Pe=new go.List().addAll(Se.findTreeChildrenNodes());return Pe.sort(function(Le,Ne){var nt=Le.location,lt=Ne.location;return nt.y<lt.y?-1:nt.y>lt.y?1:nt.x<lt.x?-1:nt.x>lt.x?1:0}),Pe},on.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},on.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(on.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(on.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var In=on,or=ee(18023),bn=ee(15746),$t=ee(33170),qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Je=ee(67294),Pt=(Se,Pe,Le)=>new Promise((Ne,nt)=>{var lt=Tn=>{try{tn(Le.next(Tn))}catch(fr){nt(fr)}},fn=Tn=>{try{tn(Le.throw(Tn))}catch(fr){nt(fr)}},tn=Tn=>Tn.done?Ne(Tn.value):Promise.resolve(Tn.value).then(lt,fn);tn((Le=Le.apply(Se,Pe)).next())});function Nt({onCancel:Se,callback:Pe}){let Le=(0,z.useRef)(),Ne=(0,z.useRef)(),nt=(0,z.useRef)(),lt=(0,z.useRef)(!1);const fn=(0,z.useRef)(!1),[tn,Tn]=(0,z.useState)(0);function fr(){const Ot=He.bx.make,cr={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"};Le.current=new He.S0(Ne.current,{padding:20,grid:Ot(He.s_,"Grid",Ot(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bn=>{var mr=Bn.diagram.commandHandler.addTopLevelParts(Bn.diagram.selection,!0);mr||Bn.diagram.currentTool.doCancel()},commandHandler:Ot(In),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bn=>{var mr=Bn.subject;mr.location=mr.location.copy().snapToGridPoint(Bn.diagram.grid.gridOrigin,Bn.diagram.grid.gridCellSize),setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Bn=>{var mr=Bn.subject;setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bn=>{var mr=Bn.parameter.part;mr.invalidateConnectedLinks();var Hr=Bn.subject;Bn.diagram.toolManager.linkingTool.isForwards?Hr.toNode.invalidateConnectedLinks():Hr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=Ot(He.NB,"Auto",{locationSpot:He.z6.Center,locationObjectName:"SHAPE",desiredSize:new He.$u(120,60),minSize:new He.$u(40,40),resizable:!0,resizeCellSize:new He.$u(10,10),rotatable:!0},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),new He.KX("desiredSize","size",He.$u.parse).makeTwoWay(He.$u.stringify),Ot(He.bn,{name:"SHAPE",fill:cr.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:He.z6.AllSides,toSpot:He.z6.AllSides},new He.KX("figure"),new He.KX("fill"),new He.KX("stroke","borderColor"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Ot(He.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ot(He.al,{margin:1,textAlign:"center",overflow:He.al.OverflowEllipsis,editable:!0},new He.KX("text").makeTwoWay(),new He.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=Ot("ToolTip",Ot(He.s_,"Vertical",{maxSize:new He.$u(200,NaN)},Ot(He.al,{font:"bold 10pt sans-serif",textAlign:"center"},new He.KX("text")),Ot(He.al,{font:"10pt sans-serif",textAlign:"center"},new He.KX("text","details"))));function sr(Bn,mr){var Hr=(rr,di)=>{rr.handled=!0,rr.diagram.model.commit(bi=>{var la=di.part.adornedPart,Da=new He.E9().setRectSpot(la.actualBounds,Bn);Da.subtract(la.location),Da.scale(2,2),Da.x+=Math.sign(Da.x)*130,Da.y+=Math.sign(Da.y)*130,Da.add(la.location),Da.snapToGridPoint(rr.diagram.grid.gridOrigin,rr.diagram.grid.gridCellSize);var Wa=bi.copyNodeData(la.data);bi.setGroupKeyForNodeData(Wa,bi.getGroupKeyForNodeData(la.data)),bi.addNodeData(Wa);var ft={from:la.key,to:bi.getKeyForNodeData(Wa)};bi.addLinkData(ft);var ut=rr.diagram.findNodeForData(Wa);ut.location=Da,rr.diagram.select(ut),setTimeout(()=>{rr.diagram.commandHandler.editTextBlock()},20)})};return Ot(He.bn,{figure:mr,alignment:Bn,alignmentFocus:Bn.opposite(),width:Bn.equals(He.z6.Top)||Bn.equals(He.z6.Bottom)?25:18,height:Bn.equals(He.z6.Top)||Bn.equals(He.z6.Bottom)?18:25,fill:"orange",stroke:cr.white,strokeWidth:4,mouseEnter:(rr,di)=>di.fill="dodgerblue",mouseLeave:(rr,di)=>di.fill="orange",isActionable:!0,click:Hr,contextClick:Hr})}function Rn(Bn){return Ot(He.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:(mr,Hr)=>Hr.fill="dodgerblue",mouseLeave:(mr,Hr)=>Hr.fill="orange",click:(mr,Hr)=>{mr.diagram.commandHandler.showContextMenu(Hr.part.adornedPart)}},Bn||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=Ot(He.uz,"Spot",Ot(He.Vm,{padding:10}),sr(He.z6.Top,"TriangleUp"),sr(He.z6.Left,"TriangleLeft"),sr(He.z6.Right,"TriangleRight"),sr(He.z6.Bottom,"TriangleDown"),Rn({alignment:new He.z6(.75,0)}));function Hn(Bn,mr){return(Hr,rr)=>{Hr.handled=!0,Hr.diagram.model.commit(di=>{di.set(rr.part.adornedPart.data,Bn,mr)})}}function tr(Bn,mr){return mr||(mr="color"),Ot(He.bn,{width:16,height:16,stroke:"lightgray",fill:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.stroke="dodgerblue",mouseLeave:(Hr,rr)=>rr.stroke="lightgray",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}function jr(){return[Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.white,"fill"),tr(cr.beige,"fill"),tr(cr.extralightblue,"fill"),tr(cr.extralightred,"fill"))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.lightgray,"fill"),tr(cr.lightgreen,"fill"),tr(cr.lightblue,"fill"),tr(cr.lightred,"fill")))]}function Pr(){return[Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.black),tr(cr.green),tr(cr.blue),tr(cr.red))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.white),tr(cr.magenta),tr(cr.purple),tr(cr.orange)))]}function Yi(Bn,mr){return mr||(mr="thickness"),Ot(He.bn,"LineH",{width:16,height:16,strokeWidth:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}function ti(Bn,mr){return mr||(mr="dash"),Ot(He.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}function xr(){return[Ot("ContextMenuButton",Ot(He.s_,"Horizontal",Yi(1),Yi(2),Yi(3),Yi(4))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",ti(null),ti([2,4]),ti([4,4])))]}function yo(Bn,mr){return mr||(mr="figure"),Ot(He.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.fill="dodgerblue",mouseLeave:(Hr,rr)=>rr.fill="lightgray",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}Le.current.nodeTemplate.contextMenu=Ot("ContextMenu",Ot("ContextMenuButton",Ot(He.s_,"Horizontal",yo("Rectangle"),yo("RoundedRectangle"),yo("Ellipse"),yo("Diamond"))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",yo("Parallelogram2"),yo("ManualOperation"),yo("Procedure"),yo("Cylinder1"))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",yo("Terminator"),yo("CreateRequest"),yo("Document"),yo("TriangleDown"))),jr(),Pr(),xr()),Le.current.groupTemplate=Ot(He.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:He.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bn,mr)=>{var Hr=mr.addMembers(mr.diagram.selection,!0);Hr||mr.diagram.currentTool.doCancel()},avoidable:!1},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),Ot(He.s_,"Auto",{name:"BODY"},Ot(He.bn,{parameter1:10,fill:cr.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:He.z6.AllSides,toSpot:He.z6.AllSides},new He.KX("fill"),new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Ot(He.Vm,{background:"transparent",margin:20})),Ot(He.al,{alignment:He.z6.Top,alignmentFocus:He.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new He.KX("text"),new He.KX("stroke","color"))),Le.current.groupTemplate.selectionAdornmentTemplate=Ot(He.uz,"Spot",Ot(He.s_,"Auto",Ot(He.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ot(He.Vm,{margin:1.5})),Rn({alignment:He.z6.TopRight,alignmentFocus:He.z6.BottomRight})),Le.current.groupTemplate.contextMenu=Ot("ContextMenu",jr(),Pr(),xr()),Le.current.linkTemplate=Ot(He.rU,{layerName:"Foreground",routing:He.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new He.KX("fromSpot","fromSpot",He.z6.parse),new He.KX("toSpot","toSpot",He.z6.parse),new He.KX("fromShortLength","dir",Bn=>Bn>=1?10:0),new He.KX("toShortLength","dir",Bn=>Bn>=1?10:0),new He.KX("points").makeTwoWay(),Ot(He.bn,{strokeWidth:2},new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Ot(He.bn,{segmentIndex:0,segmentOffset:new He.E9(15,0),segmentOrientation:He.rU.OrientAlong,alignmentFocus:He.z6.Right,figure:"circle",width:10,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn===1)),Ot(He.bn,{segmentIndex:-1,segmentOffset:new He.E9(-10,6),segmentOrientation:He.rU.OrientPlus90,alignmentFocus:He.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn>=1),new He.KX("width","thickness",Bn=>7+3*Bn),new He.KX("height","thickness",Bn=>7+3*Bn),new He.KX("segmentOffset","thickness",Bn=>new He.E9(-15,4+1.5*Bn))),Ot(He.bn,{segmentIndex:0,segmentOffset:new He.E9(15,-6),segmentOrientation:He.rU.OrientMinus90,alignmentFocus:He.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn===2),new He.KX("width","thickness",Bn=>7+3*Bn),new He.KX("height","thickness",Bn=>7+3*Bn),new He.KX("segmentOffset","thickness",Bn=>new He.E9(-15,4+1.5*Bn))),Ot(He.al,{alignmentFocus:new He.z6(0,1,-4,0),editable:!0},new He.KX("text").makeTwoWay(),new He.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=Ot(He.uz,Ot(He.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Mi(2)},new He.KX("pathPattern","thickness",Mi)),Rn({alignmentFocus:new He.z6(0,0,-6,-4)}));function Mi(Bn){return Ot(He.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bn+4).toString()+" H3"})}function Pi(Bn){var mr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bn===0?mr="M0 0 M16 16 M0 8 L16 8":Bn===2&&(mr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ot(He.bn,{geometryString:mr,margin:2,background:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:Hn("dir",Bn),contextClick:Hn("dir",Bn)})}function Ai(Bn){var mr=(Hr,rr)=>{Hr.handled=!0,Hr.diagram.model.commit(di=>{var bi=rr.part.adornedPart;di.set(bi.data,Bn?"toSpot":"fromSpot",He.z6.stringify(He.z6.AllSides)),(Bn?bi.toNode:bi.fromNode).invalidateConnectedLinks()})};return Ot(He.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:mr,contextClick:mr})}function pn(Bn,mr){var Hr=0,rr=He.z6.RightSide;Bn.equals(He.z6.Top)?(Hr=270,rr=He.z6.TopSide):Bn.equals(He.z6.Left)?(Hr=180,rr=He.z6.LeftSide):Bn.equals(He.z6.Bottom)&&(Hr=90,rr=He.z6.BottomSide),mr||(Hr-=180);var di=(bi,la)=>{bi.handled=!0,bi.diagram.model.commit(Da=>{var Wa=la.part.adornedPart;Da.set(Wa.data,mr?"toSpot":"fromSpot",He.z6.stringify(rr)),(mr?Wa.toNode:Wa.fromNode).invalidateConnectedLinks()})};return Ot(He.bn,{alignment:Bn,alignmentFocus:Bn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Hr,background:"transparent",mouseEnter:(bi,la)=>la.background="dodgerblue",mouseLeave:(bi,la)=>la.background="transparent",click:di,contextClick:di})}Le.current.linkTemplate.contextMenu=Ot("ContextMenu",Pr(),xr(),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",Pi(0),Pi(1),Pi(2))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",Ot(He.s_,"Spot",Ai(!1),pn(He.z6.Top,!1),pn(He.z6.Left,!1),pn(He.z6.Right,!1),pn(He.z6.Bottom,!1)),Ot(He.s_,"Spot",{margin:new He.Zt(0,0,0,2)},Ai(!0),pn(He.z6.Top,!0),pn(He.z6.Left,!0),pn(He.z6.Right,!0),pn(He.z6.Bottom,!0)))));const Ka=`{ "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 Ui=["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 Vo(Bn){return console.log("shapeName:",Bn),Ui.indexOf(Bn)>=0}var Aa=new He.YI(nt.current,{maxSelectionCount:1,linkTemplate:Ot(He.rU,{locationSpot:He.z6.Center,selectionAdornmentTemplate:Ot(He.uz,"Link",{locationSpot:He.z6.Center},Ot(He.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ot(He.bn,{toArrow:"Standard",stroke:null}))},{routing:He.rU.AvoidsNodes,curve:He.rU.JumpOver,corner:5,toShortLength:4},new He.KX("points"),Ot(He.bn,{isPanelMain:!0,strokeWidth:2}),Ot(He.bn,{toArrow:"Standard",stroke:null})),model:new He.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...He.bn.getFigureGenerators().toArray().map(Bn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Bn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(Bn){var mr;const Hr=Bn.subject.part;var rr=(mr=document.activeElement)==null?void 0:mr.value;typeof rr=="string"&&rr.trim()===""&&Le.current.model.commit(function(di){di.set(Hr.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Aa.nodeTemplate=Ot(He.NB,"Auto",{locationSpot:He.z6.Center},new He.KX("location","location",He.E9.parse).makeTwoWay(He.E9.stringify),Ot(He.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 He.KX("stroke").makeTwoWay(),new He.KX("fill").makeTwoWay(),new He.KX("figure")),Ot(He.al,{margin:new He.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new He.$u(16,16),maxSize:new He.$u(10,NaN),textAlign:"center",editable:!0},new He.KX("key").makeTwoWay())),setTimeout(()=>{Le.current.grid=Ot(He.s_,"Grid",Ot(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Le.current.grid.visible=!0,Le.current.grid.gridCellStroke="darkgray",Le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Le.current,Le.current}const Lr=()=>Pt(this,null,function*(){var Ot=Le.current.makeImage();const cr=yield(0,$t.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ot.src}});Pe({src:cr.url})});return(0,z.useEffect)(()=>(setTimeout(()=>{fr()},500),Tn(tn+1),()=>{Le.current=null}),[]),Je.createElement("div",{ref:fn,className:lt.current?`${qe.maxH60} body-overflow-initial`:"body-overflow-initial"},Je.createElement(ct.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!tn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Je.createElement(wt.Z,null,Je.createElement(bn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Je.createElement(bn.Z,{onClick:()=>{var Ot,cr,sr=Le.current.selection.first();if(lt.current=!lt.current,document.activeElement&&sr){let Rn=(cr=(Ot=document.activeElement)==null?void 0:Ot.value)==null?void 0:cr.trim();typeof Rn=="string"&&Le.current.model.commit(function(Hn){Hn.set(sr.data,"text",Rn||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}Tn(tn+1)}},Je.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},Je.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:qe.flowChartWrp},Je.createElement("div",{style:{display:"flex",height:"100%"}},Je.createElement("div",{style:{width:"300px",height:"100%"}},Je.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Je.createElement("div",{style:{height:"calc(100% - 50px)"},className:qe.myPaletteDiv,ref:nt})),Je.createElement("div",{style:{flex:1,position:"relative"}},Je.createElement("div",{ref:Ne,style:{height:"80vh"}}))),Je.createElement("div",{className:"tr"},Je.createElement(Me.ZP,{size:"large",onClick:Lr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Wt=Nt,dt=ee(78045),yt=ee(31795);const Tt=dt.ZP.Group,rt={margin:"0 8px"};var cn=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return z.createElement(Ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:rt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:rt},"\u884C\u6570"),z.createElement(Ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(yt.Z,null)),z.createElement("span",{style:rt},"\u5217\u6570"),z.createElement(Ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(yt.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(Ce.default.Item,{name:"align"},z.createElement(Tt,null,z.createElement(dt.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(dt.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(dt.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(dt.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ge=ee(47897),gt=ee(61016),Gn=ee.n(gt),St=(0,z.forwardRef)(({use3d:Se,width:Pe,height:Le,callback:Ne,showSaveButton:nt},lt)=>{const fn=(0,z.useRef)(),tn=(0,z.useRef)(),[Tn,fr]=(0,z.useState)(!1),Lr=(0,z.useRef)({id:fn,appName:"graphing",width:Pe||1e3,height:Le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{tn.current=new(Gn())(Lr.current,!0),window.onload=function(){tn.current.inject("applet_container")}},[]);const Ot=()=>{var cr=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(cr),cr};return(0,z.useEffect)(()=>{Lr.current.appName=Tn?"3D":"graphing",tn.current.inject("applet_container")},[Tn]),(0,z.useEffect)(()=>{fr(Se)},[Se]),(0,z.useImperativeHandle)(lt,()=>({getImgData:Ot})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:fn}),z.createElement(wt.Z,{align:"middle"},z.createElement(bn.Z,{flex:1},z.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Tn,onChange:cr=>fr(cr)})),z.createElement(bn.Z,null,z.createElement(Me.ZP,{size:"large",onClick:Ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qt=ee(36527),hn=ee(25934),jn=ee(2453);const lr="link",Ft="upload-image",nr="add-flowchart",ar="draw-image",wo="add-flowchart",Kr="code-block",Ur="add-table",Ho="------------",Dn={default:Ho,left:`:${Ho}`,center:`:${Ho}:`,right:`${Ho}:`};var Po=ee(99914),pi=(Se,Pe,Le)=>new Promise((Ne,nt)=>{var lt=Tn=>{try{tn(Le.next(Tn))}catch(fr){nt(fr)}},fn=Tn=>{try{tn(Le.throw(Tn))}catch(fr){nt(fr)}},tn=Tn=>Tn.done?Ne(Tn.value):Promise.resolve(Tn.value).then(lt,fn);tn((Le=Le.apply(Se,Pe)).next())});function sa(){}let qi=0;const Vr=1e4,$o="\u2581",Jo="@\u2581\u2581@",Li="@\u2581@",Lo=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Ii=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function xi(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const Xr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",La={[Xr+"-B"]:"bold",[Xr+"-I"]:"italic"},_n={[lr]:"\u6DFB\u52A0\u94FE\u63A5",[Kr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ft]:"\u6DFB\u52A0\u56FE\u7247",[ar]:"\u6DFB\u52A0\u753B\u56FE",[nr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ur]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var he=({defaultValue:Se="",onChange:Pe,width:Le="100%",height:Ne=400,miniToolbar:nt=!1,isFocus:lt=!1,watch:fn,insertTemp:tn,mode:Tn="markdown",id:fr="markdown-editor-id",showResizeBar:Lr=!1,noStorage:Ot=!1,showNullButton:cr=!1,showNullProgramButton:sr=!1,hidetoolBar:Rn=!1,fullScreen:Hn=!1,onBlur:tr,onCMBeforeChange:jr,onFullScreen:Pr,className:Yi="",disablePaste:ti=!1,disabled:xr=!1,disabledFill:yo=!1,placeholder:Mi="",values:Pi="",extraUse:Ai})=>{const[pn,Ka]=(0,z.useState)(null),[Ui,Vo]=(0,z.useState)(Se),[Aa,Bn]=(0,z.useState)(fn),[mr,Hr]=(0,z.useState)(Hn),[rr,di]=(0,z.useState)(""),[bi,la]=(0,z.useState)(0),[Da,Wa]=(0,z.useState)(Ne),[ft,ut]=(0,z.useState)(!1),Ht=(0,z.useRef)((0,hn.Z)()),Yt=(0,z.useRef)(!1),xn=(0,z.useRef)(),[Ar,Dr]=(0,z.useState)(0),[lo,_o]=(0,z.useState)(0),uo=(0,z.useRef)(),ni=(0,z.useRef)(),vi=(0,z.useRef)(),Di=(0,z.useRef)(),_t=()=>pi(void 0,null,function*(){var mn;const Dt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});(mn=Dt==null?void 0:Dt.attachments)!=null&&mn.length&&(console.log("cm:",pn,uo),Dt.attachments.map(Jt=>{Jt.content_type.indexOf("image")>-1?pn.replaceSelection(``):Jt.content_type.indexOf("video")>-1?pn.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Jt.content_type.indexOf("pdf")>-1?pn.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Jt.id}?type=${Jt.content_type}&disposition=inline" target="_blank">${Jt.name}</a>`):pn.replaceSelection(`[${Jt.name}](${ENV.API_SERVER}/api/attachments/${Jt.id}?type=${Jt.content_type})`)}))});(0,z.useEffect)(()=>{const mn=window.scrollY||window.pageYOffset;Vo(Pi),pn==null||pn.setValue(Pi),window.scrollTo(0,mn)},[Pi]),(0,z.useEffect)(()=>{Pr==null||Pr(mr)},[mr]),(0,z.useEffect)(()=>{if(uo.current){let mn=function(Jt,vn){var Vn;if(ti){vn.preventDefault();return}const pr=vn.clipboardData;if(pr){const Nr=pr.types.toString(),ao=pr.items;if(Nr==="Files"||pr.types.indexOf("Files")>-1){if(vn.preventDefault(),Tn=="stex")return;try{let Tr=ao[1];((Vn=ao[0])==null?void 0:Vn.kind)==="file"&&(Tr=ao[0]);const $e=Tr.getAsFile(),ke=$e.name.split(".").pop();(0,it.I)($e,et=>{var At,kt,Zt;et.id?((At=$e==null?void 0:$e.type)==null?void 0:At.indexOf("image"))>-1?Dt.replaceSelection(`<img width="100%" src="/api/attachments/${et.id}?type=${et.content_type})" alt="" />`):((kt=$e==null?void 0:$e.type)==null?void 0:kt.indexOf("video"))>-1?Dt.replaceSelection(`<video width="100%" controls src="/api/attachments/${et.id}"></video>`):((Zt=$e==null?void 0:$e.type)==null?void 0:Zt.indexOf("pdf"))>-1?Dt.replaceSelection(`<a href="/api/attachments/${et.id}?type=${$e.type}&disposition=inline" target="_blank">${$e.name}</a>`):Ii.includes(ke)?Dt.replaceSelection(`<a href="/api/attachments/${et.id}?type=office&disposition=inline" target="_blank">${$e.name}</a>`):Dt.replaceSelection(`[${$e.name}](/api/attachments/${et.id}?type=${et.content_type})`):(et==null?void 0:et.status)===401&&(jn.ZP.warning((et==null?void 0:et.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Tr){jn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dt=be().fromTextArea(uo.current,{mode:Tn,lineNumbers:!nt,lineWrapping:!0,value:Se,autoCloseTags:!sr,autoCloseBrackets:!0});return Dt.on("keyup",function(Jt,vn){vn.keyCode===8&&(Jt.getValue()==""?Dt.setOption("placeholder",Mi):Dt.setOption("placeholder",null))}),Dt.on("keydown",function(Jt,vn){if(vn.keyCode===8){var Vn=jt(Jt);Vn&&vn.preventDefault()}}),lt&&Dt.focus(),Dt.on("paste",mn),Dt.on("dragleave",function(Jt,vn){ni.current.classList.remove("mouse-hover-md")}),xr&&Dt.on("beforeChange",function(Jt,vn){(vn.origin==="paste"||vn.origin==="+input")&&vn.cancel()}),Ka(Dt),()=>{Dt.off("paste",mn)}}},[]);const Et=(0,z.useCallback)(()=>{if(ni.current)try{}catch(mn){console.log(mn,"---- to set md editor body height")}},[Da,ni,mr]);(0,z.useEffect)(()=>{function mn(){let Dt=new ve.Z(Jt=>{for(let vn of Jt)(vn.target.offsetHeight>0||vn.target.offsetWidth>0)&&(Et(),pn.setSize("100%","100%"),pn.refresh())});return Dt.observe(uo.current.parentElement),Dt}if(pn){const Dt=mn();return()=>{var Jt,vn;(Jt=uo.current)!=null&&Jt.parentElement&&Dt.unobserve((vn=uo.current)==null?void 0:vn.parentElement)}}},[pn,Et]),(0,z.useEffect)(()=>{if(pn){let mn=[];for(const[Dt,Jt]of Object.entries(La)){let vn={[Dt]:()=>{Ue(Jt)}};mn.push(vn),pn.addKeyMap(vn)}return xn.current=setInterval(()=>{Yt.current&&_t()},4e3),()=>{clearInterval(xn.current);for(let Dt of mn)pn.removeKeyMap(Dt)}}},[pn]),(0,z.useEffect)(()=>{Hn!==mr&&Hr(Hn)},[Hn]),(0,Po.Z)(()=>{if(!Ot&&bi>0){let mn=new Date().getTime(),Dt=window.sessionStorage.getItem(fr);mn>=bi+Vr&&(!Dt||Dt!==Ui)&&(window.sessionStorage.setItem(fr,Ui),ut(!0))}},Vr),(0,z.useEffect)(()=>{Bn(fn)},[pn,fn]),(0,z.useEffect)(()=>{pn&<&&pn.focus()},[pn,lt]),(0,z.useEffect)(()=>{if(Aa&&pn){let mn=function(Jt){let vn=Jt.target;if(Di.current){let Vn=vn.scrollTop/vn.scrollHeight;Di.current.scrollTop=Di.current.scrollHeight*Vn}};const Dt=pn.getScrollerElement();return Dt.addEventListener("scroll",mn),()=>{Dt.removeEventListener("scroll",mn)}}},[pn,Aa]),(0,z.useEffect)(()=>{if(pn&&jr){let mn=function(Dt,Jt){jr(Dt,Jt)};return pn.on("beforeChange",mn),()=>{pn.off("beforeChange",mn)}}},[pn,jr]),(0,z.useEffect)(()=>{if(pn&&tr){let mn=function(){tr(pn.getValue())};return pn.on("blur",mn),()=>{pn.off("blur",mn)}}},[pn,tr]);function jt(mn,Dt){var Jt=mn.getDoc(),vn=Jt.getCursor(),Vn=Jt.getLine(vn.line),pr=Vn.charAt(vn.ch-1),Nr=Vn.lastIndexOf("@\u2581@",vn.ch),ao=Vn.lastIndexOf("@\u2581\u2581@",vn.ch),Tr=Nr>ao?Nr:ao,$e=Nr>ao?3:4;if(Jo.indexOf(pr)===-1)return null;if(console.log("change1:",Dt,mn,Vn,vn,Tr,Nr,ao,pr),Tr>=0&&vn.ch-Tr<5){var ke=Tr+$e;return Jt.replaceRange("",{line:vn.line,ch:Tr},{line:vn.line,ch:ke}),{line:vn.line,ch:ke}}return null}(0,z.useEffect)(()=>{if(pn){let mn=function(Dt,Jt){const vn=Dt.getValue();Vo(vn),la(new Date().getTime()),Dt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(sr?Pe(vn,$n(vn)):Pe(vn))};return pn.on("change",mn),()=>{pn.off("change",mn)}}},[pn,Pe]),(0,z.useEffect)(()=>{if(pn)if(Se==null)pn.setValue(""),Vo("");else{const mn=window.scrollY||window.pageYOffset;Se!==pn.getValue()&&(pn.setValue(Se),Vo(Se),pn.setCursor(xr?1:pn.lineCount(),0),window.scrollTo(0,mn))}},[pn,Se]);const Ue=(0,z.useCallback)(mn=>{const Dt=pn.getCursor(),Jt=pn.getSelection();let vn=Jt.split(`
|
|
|
`);switch(mn){case"bold":return pn.replaceSelection("**"+Jt+"**"),Jt===""&&pn.setCursor(Dt.line,Dt.ch+2),pn.focus();case"italic":return pn.replaceSelection("*"+Jt+"*"),Jt===""&&pn.setCursor(Dt.line,Dt.ch+1),pn.focus();case"code":return pn.replaceSelection("`"+Jt+"`"),Jt===""&&pn.setCursor(Dt.line,Dt.ch+1),pn.focus();case"inline-latex":return di("inline-latex"),pn.focus();case"latex":return pn.replaceSelection("```latex\n"+Jt+"\n```"),pn.setCursor(Dt.line+1,Jt.length+1),pn.focus();case"line-break":return pn.replaceSelection(`<br/>
|
|
|
`),pn.focus();case"list-ul":return Jt===""?pn.replaceSelection("- "+Jt):pn.replaceSelection(vn.map(Vn=>Vn===""?"":`- ${Vn}`).join(`
|
|
|
`)),pn.focus();case"list-ol":return Jt===""?pn.replaceSelection("1. "+Jt):pn.replaceSelection(vn.map((Vn,pr)=>Vn===""?"":`${pr+1}. ${Vn}`).join(`
|
|
|
`)),pn.focus();case"add-null-ch":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection($o),pn.focus();case"add-signal":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection(Li),pn.focus();case"add-multiple":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection(Jo),pn.focus();case"inster-template-1":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection(Lo),pn.focus();case"eraser":return pn.setValue(""),pn.focus();case"trigger-watch":return Bn(!Aa),pn.focus();case"trigger-full-screen":return Hr(!mr),pn.focus();case lr:di(lr);return;case Kr:di(Kr);return;case Ft:di(Ft);return;case ar:di(ar);return;case"maths-latex":di("maths-latex");return;case nr:di(nr);return;case Ur:di(Ur);return;default:throw new Error}},[pn,Aa,mr]),zt=(0,z.useCallback)((mn,Dt)=>{var Jt,vn,Vn,pr,Nr,ao;switch(di(""),rr){case lr:const{title:At,link:kt}=mn;return pn.replaceSelection(`[${At}](${kt})`),pn.focus();case Kr:const{language:Zt,content:Sn}=mn;return pn.replaceSelection(["```"+Zt,Sn,"```"].join(`
|
|
|
`)),pn.focus();case"maths-latex":for(var Tr=atob(mn),$e=new Uint8Array(Tr.length),ke=0;ke<Tr.length;ke++)$e[ke]=Tr.charCodeAt(ke);var et=new Blob([$e],{type:"image/png"});(0,it.I)(et,po=>{po.id?pn.replaceSelection(``):(po==null?void 0:po.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pn.replaceSelection("`$$"+mn+"$$`");break;case Ft:case ar:case wo:const{src:wn,alt:Fn}=mn,On=Dt,Wn=(Vn=(vn=(Jt=On==null?void 0:On.name)==null?void 0:Jt.split("."))==null?void 0:vn.pop)==null?void 0:Vn.call(vn);return((pr=On==null?void 0:On.type)==null?void 0:pr.indexOf("image"))>-1||!(On!=null&&On.type)?On.align||On.width?pn.replaceSelection(`<p style="text-align:${On.align||"initial"}"><img width="${On.width?On.width+"%":"initial"}" src="${wn}" alt="${Fn||""}" /></p>`):pn.replaceSelection(`<img width="100%" src="${wn}" alt="${Fn||""}" />`):((Nr=On==null?void 0:On.type)==null?void 0:Nr.indexOf("video"))>-1?pn.replaceSelection(`<video width="100%" controls src="${wn}"></video>`):((ao=On==null?void 0:On.type)==null?void 0:ao.indexOf("pdf"))>-1?pn.replaceSelection(`<a href="${wn}?type=${On.type}&disposition=inline" target="_blank">${On.name}</a>`):Ii.includes(Wn)?pn.replaceSelection(`<a href="${wn}?type=office&disposition=inline" target="_blank">${On.name}</a>`):pn.replaceSelection(`[${On.name}](${wn})`),pn.focus();case Ur:const{row:gr,col:so,align:co}=mn;let Jr=`
|
|
|
`;for(let po=0;po<gr;po++){let Ro=[],Fo=[];for(let zr=0;zr<so;zr++)po===1&&Fo.push(Dn[co]),Ro.push(" ");po===1&&(Jr+=`| ${Fo.join(" | ")} |
|
|
|
`),Jr+=`| ${Ro.join(so===1?"":" | ")} |
|
|
|
`}return pn.replaceSelection(Jr+`
|
|
|
`),pn.focus();default:throw new Error}},[pn,rr]),ln=(0,z.useMemo)(()=>{switch(rr){case lr:return z.createElement(en,{callback:zt,onCancel:gn});case Kr:return z.createElement(nn.Z,{callback:zt,onCancel:gn});case Ft:return z.createElement(it.Z,{callback:zt,onCancel:gn});case nr:return z.createElement(Wt,{callback:zt,onCancel:gn});case Ur:return z.createElement(cn,{callback:zt,onCancel:gn});case"maths-latex":return z.createElement(St,{showSaveButton:!0,callback:zt});case"inline-latex":return z.createElement(Qt.Z,{showSaveButton:!0,callback:zt});default:return null}},[rr]);function gn(){di("")}(0,z.useEffect)(()=>{if(vi.current){let mn=function(Nr){Vn=!0,pr=Nr.pageY},Dt=function(){Vn=!1},Jt=function(Nr){if(Vn){let ao=Nr.pageY-pr;ao<0&&(ao=0),ao>300&&(ao=300);let Tr=Ne+ao+"px";Wa(Tr)}},vn=vi.current,Vn=!1,pr=0;return vn.addEventListener("mousedown",mn),document.addEventListener("mousemove",Jt),document.addEventListener("mouseup",Dt),()=>{vn.removeEventListener("mousedown",mn),document.removeEventListener("mousemove",Jt),document.removeEventListener("mouseup",Dt)}}},[pn,vi]),(0,z.useEffect)(()=>{Wa(Ne)},[Ne]);const Lt=xi(Le),Ut=xi(Da),Rt={width:Lt,height:Ut},Pn=(0,z.useMemo)(()=>{if(bi){let mn=new Date(bi),Dt=mn.getHours(),Jt=mn.getMinutes(),vn=mn.getSeconds();return Dt=Dt<10?"0"+Dt:Dt,Jt=Jt<10?"0"+Jt:Jt,vn=vn<10?"0"+vn:vn,`${Dt}:${Jt}:${vn}`}return 0},[bi]),$n=mn=>{const Dt=[];if(sr){let Jt=-1;mn=mn.replace(/(@▁▁@|@▁@)/g,function(vn,Vn,pr){Dt.push({multiLine:vn!==Li})})}return Dt};function ir(){window.sessionStorage.removeItem(fr),ut(!1),la(0)}function Qn(){ut(!1),la(0),pn.setValue(window.sessionStorage.getItem(fr))}(0,z.useEffect)(()=>{_n[rr]&&rr!==ar&&rr!==nr&&setTimeout(()=>{const mn=document.getElementsByClassName("markdown-popup-form")[0],Dt=window.innerWidth/2-mn.offsetWidth/2,Jt=window.innerHeight/2-mn.offsetHeight/2;Dr(Dt),_o(Jt)},0)},[rr]);const dr=mn=>{mn.preventDefault();const Dt=mn.clientX-Ar,Jt=mn.clientY-lo;document.body.onmousemove=vn=>{let Vn=vn.clientX-Dt,pr=vn.clientY-Jt;const Nr=document.getElementsByClassName("markdown-popup-form")[0],ao=window.innerWidth-Nr.offsetWidth,Tr=window.innerHeight-Nr.offsetHeight;Vn=Math.max(0,Math.min(Vn,ao)),pr=Math.max(0,Math.min(pr,Tr)),br(vn.clientX,vn.clientY,Dt,Jt)&&(Dr(Vn),_o(pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},br=(mn,Dt,Jt,vn)=>{const Vn=document.body.clientHeight,pr=document.body.clientWidth;return mn<20&&Jt>mn||mn>pr-20&&Jt<mn||Dt<20&&vn>Dt||Dt>Vn-20&&vn<Dt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:ni},z.createElement("div",{className:`markdown-editor-container ${Yi} ${Aa?"on-preview":""} ${nt?"mini":""} ${mr?"full-screen":""}`,style:Rt},z.createElement(_e,{insertTemp:tn,watch:Aa,fullScreen:mr,showNullButton:cr,showNullProgramButton:sr,onActionCallback:Ue,hidetoolBar:Rn,extraUse:Ai}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:uo,placeholder:Mi})),Aa?z.createElement("div",{ref:Di,className:"preview-container"},Tn==="stex"&&z.createElement(me,{value:Ui}),Tn!=="stex"&&z.createElement(se.Z,{disabledFill:yo,showProgramFill:sr,value:Ui})):null))),Lr?z.createElement("a",{ref:vi,className:"editor-resize"}):null,rr===ar&&z.createElement(Ln,{callback:zt,onCancel:gn}),rr===nr&&z.createElement(Wt,{callback:zt,onCancel:gn}),z.createElement(xe.Z,null,_n[rr]&&rr!==ar&&rr!==nr?z.createElement(ct.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ar,top:lo},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:dr},_n[rr]),open:!0,onCancel:gn,footer:null,destroyOnClose:!0,width:rr===nr?"1200px":null,height:rr===nr?"80vh":null,className:"markdown-popup-form"},ln):null))}},70859:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ye},I:function(){return xe}});var z=ee(22150),ge=ee(2453),be=ee(69677),ve=ee(93421),fe=ee(31795),pe=ee(78045),ie=ee(71577),de=ee(15476),le=ee(67294),ce=ee(52262),se=ee(67294),me=Object.defineProperty,re=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(Ce,Be,Me)=>Be in Ce?me(Ce,Be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ce[Be]=Me,x=(Ce,Be)=>{for(var Me in Be||(Be={}))y.call(Be,Me)&&b(Ce,Me,Be[Me]);if(a)for(var Me of a(Be))E.call(Be,Me)&&b(Ce,Me,Be[Me]);return Ce},te=(Ce,Be)=>re(Ce,ne(Be));const{useForm:oe}=z.default,ae={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}};var ye=({callback:Ce,onCancel:Be})=>{const[Me]=oe();let mt=(0,le.useRef)();function Qe(De){mt.current.width=Me.getFieldValue("width"),mt.current.align=Me.getFieldValue("align"),Ce(De,mt.current)}function pt(De,Fe){if(De.status===-1){ge.ZP.error(De.message);return}Me.setFieldsValue({src:`/api/attachments/${De.id}`,type:Fe.type})}function Ae(De){let Fe=De.target.files[0];mt.current=Fe,xe(Fe,pt)}return se.createElement(z.default,te(x({form:Me},ue),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),se.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},se.createElement(be.default,{style:ae})),se.createElement(_e,{onFileChange:Ae}))),se.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(be.default,{style:{width:264}})),se.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement(ve.Z,null,se.createElement(z.default.Item,{name:"width",style:{margin:0}},se.createElement(fe.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},se.createElement(pe.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"}]})),se.createElement("aside",null,se.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(ie.ZP,{type:"default",onClick:Be},"\u53D6\u6D88"))))};function _e({onFileChange:Ce}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:Ce}))}function xe(Ce,Be){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ce.bg)())throw ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",Ce),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(Qe){Be(JSON.parse(Qe.target.responseText),Ce)},!1),mt.addEventListener("error",function(Qe){console.error(Qe)},!1),mt.open("POST",`${de.KI}/api/attachments.json`),mt.send(Me)}},76621:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return be}});var z=ee(67294),ge=ee(73935);class be extends z.Component{constructor(fe){super(fe);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,ge.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(at,We,ee){"use strict";var z=ee(12867),ge=ee(42563),be=ee(47897),ve=ee(67294);const fe=ge.default.Option;We.Z=({isTheoretical:pe,onFontSizeChange:ie,cmFontSize:de,cmCodeMode:le,autoFormat:ce,onCodeModeChange:se,onTabToSpace:me,onAutoFormat:re,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x})=>{const te={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return ve.createElement("div",{className:`tpi-code-setting ${a}`},ve.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ve.createElement(ge.default,{bordered:!1,size:"small",value:le,onChange:se},ve.createElement(fe,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(fe,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ve.createElement(ge.default,{bordered:!1,size:"small",value:de,onChange:ie},ve.createElement(fe,{value:12},"12px"),ve.createElement(fe,{value:14},"14px"),ve.createElement(fe,{value:16},"16px"),ve.createElement(fe,{value:18},"18px"),ve.createElement(fe,{value:20},"20px"),ve.createElement(fe,{value:22},"22px"))),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"Tab\u8F6C\u6362"),ve.createElement(be.Z,{checked:y,onChange:me})),ve.createElement("div",{className:"file-item",onClick:ne},ve.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ve.createElement("span",null,"Ctrl + S")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ve.createElement("span",null,"F1 / Alt + F1")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ve.createElement("span",null,"Ctrl + ]/[")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ve.createElement("span",null,"Ctrl + Shift + \\")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ve.createElement("span",null,"Home")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ve.createElement("span",null,"End"))),E),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ve.createElement("span",null,te[x==null?void 0:x.difficulty])),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ve.createElement("span",null,b==null?void 0:b.name)),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ve.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},99914:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ge}});var z=ee(67294);function ge(be,ve){const fe=(0,z.useRef)();(0,z.useEffect)(()=>{fe.current=be}),(0,z.useEffect)(()=>{function pe(){fe.current()}if(ve!==null){let ie=setInterval(pe,ve);return()=>clearInterval(ie)}},[ve])}},72971:function(at,We,ee){"use strict";ee.d(We,{Im:function(){return Ce},ZP:function(){return Ae},gZ:function(){return Qe}});var z=ee(67294),ge=ee(69677),be=ee(71577),ve=ee(42922),fe=ee(53978),pe=ee(94189),ie=ee(19575),de=ee(7621),le=ee(85725),ce=ee(28706),se=ee(38658),me=ee(12320),re=ee(94184),ne=ee.n(re),a=ee(67294),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(De,Fe,tt)=>Fe in De?y(De,Fe,{enumerable:!0,configurable:!0,writable:!0,value:tt}):De[Fe]=tt,ue=(De,Fe)=>{for(var tt in Fe||(Fe={}))te.call(Fe,tt)&&ae(De,tt,Fe[tt]);if(x)for(var tt of x(Fe))oe.call(Fe,tt)&&ae(De,tt,Fe[tt]);return De},ye=(De,Fe)=>E(De,b(Fe));const{TextArea:_e}=ge.default,xe={visible:!1,tabIndex:"0"},Ce={[pe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[pe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[pe.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 Be=(De=>(De[De.SET_VISIBLE=0]="SET_VISIBLE",De[De.SET_TABINDEX=1]="SET_TABINDEX",De))(Be||{});function Me(De,Fe){switch(Fe.type){case 0:return ye(ue({},De),{visible:Fe.payload});case 1:return ye(ue({},De),{tabIndex:Fe.payload});default:throw new Error}}function mt({value:De,className:Fe}){const[tt,Ve]=(0,z.useState)(!1),Ct=(0,z.useRef)(),Mt=(0,z.useRef)();return(0,z.useEffect)(()=>{tt&&(Mt.current.reset(),Mt.current.write((0,ce.pp)(De||"")))},[De,tt]),(0,z.useEffect)(()=>{var en,nn,it,ct;if(Ct.current){Mt.current=new me.Terminal({fontSize:14,disableStdin:!0}),Mt.current.open(Ct.current);const wt=Ct.current.offsetWidth-14,Vt=((ct=(it=(nn=(en=Mt.current)==null?void 0:en._core)==null?void 0:nn._renderService)==null?void 0:it.dimensions)==null?void 0:ct.actualCellWidth)||9.5,Gt=Math.ceil(wt/Vt);Mt.current.resize(Gt,8),Ve(!0)}},[]),a.createElement("div",{ref:Ct,className:ne()("XtermText-valueRef",Fe)})}function Qe(De){const{status:Fe,error_msg:tt,output:Ve,input:Ct,expected_output:Mt,is_file:en,input_file_url:nn,output_file_url:it,expected_output_file_url:ct}=De;let wt=null;const Vt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Fe){case pe.h.NOMATCH:wt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!en&&a.createElement(mt,{className:"mb10",value:Ct}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(nn,Ct)},Ct)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!en&&a.createElement(mt,{className:"mb10",value:Ve&&ie.Base64.decode(Ve)||""}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(it,Ve)},Ve)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!en&&a.createElement(mt,{className:"mb10",value:Mt&&ie.Base64.decode(Mt)||""}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(ct,Mt)},Mt)));break;case pe.h.EXECUTEFAILURE:wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!en&&a.createElement(le.Z,{value:Ct,style:Vt}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(nn,Ct)},Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!en&&a.createElement(le.Z,{value:Ct,style:Vt}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(nn,Ct)},Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.PODFAILURE:wt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:wt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",wt," ")}function pt(De){const{status:Fe,error_msg:tt,execute_time:Ve,output:Ct,input:Mt,expected_output:en,is_file:nn,input_file_url:it,output_file_url:ct,expected_output_file_url:wt}=De;let Vt=null;switch(Fe){case pe.h.OK:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ve,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(Ct)));break;case pe.h.NOMATCH:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Mt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",Ct&&ie.Base64.decode(Ct)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",en&&ie.Base64.decode(en)));break;case pe.h.EXECUTEFAILURE:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.PODFAILURE:Vt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Vt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Vt," ")}var Ae=({id:De,is_file:Fe,input:tt,debuging:Ve,submitting:Ct,executingMessage:Mt,debugResult:en,onChangeInput:nn,onDebugCode:it,onSubmitCode:ct})=>{const[wt,Vt]=(0,z.useReducer)(Me,xe),{visible:Gt,tabIndex:Ln}=wt;(0,z.useEffect)(()=>{Vt({type:0,payload:!1})},[De]);function He(bn){let $t=bn.target.id;Vt({type:1,payload:$t})}function on(){Vt({type:0,payload:!Gt})}const In=(0,z.useMemo)(()=>{if(en){const{status:bn}=en;return a.createElement(a.Fragment,null,pt(en))}return null},[en]);function or(){Vt({type:0,payload:!0}),Vt({type:1,payload:"1"}),it()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Gt?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(se.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(_e,{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:Fe?"":tt,onChange:nn}),rightNode:Ve?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):en?In: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 ${Gt?"up":""}`,onClick:on},Gt?a.createElement(ve.Z,null):a.createElement(fe.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:Ve,onClick:or},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:Ct,disabled:Ct,onClick:()=>{Vt({type:0,payload:!1}),ct()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},10903:function(at,We,ee){"use strict";ee.r(We),ee.d(We,{default:function(){return is}});var z=ee(67294),ge=ee(53555),be=ee(32693),ve=ee(35973),fe=ee(55054),pe=ee(2453),ie=ee(14446),de=ee(57953),le=ee(42563),ce=ee(33227),se=ee(60076),me=ee(11320),re=ee(55304),ne=ee(72565),a=ee(36295),y=ee(76621),E=ee(40471),b=ee(21434),x=ee(67294),te=Object.defineProperty,oe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=(Te,ze,Ke)=>ze in Te?te(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ce=(Te,ze)=>{for(var Ke in ze||(ze={}))ye.call(ze,Ke)&&xe(Te,Ke,ze[Ke]);if(ue)for(var Ke of ue(ze))_e.call(ze,Ke)&&xe(Te,Ke,ze[Ke]);return Te},Be=(Te,ze)=>oe(Te,ae(ze));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var mt=(Te=>(Te[Te.set_font_size=0]="set_font_size",Te[Te.set_theme=1]="set_theme",Te[Te.on_tab_to_space=2]="on_tab_to_space",Te[Te.set_show_editor_setting=3]="set_show_editor_setting",Te))(mt||{});function Qe(Te,ze){switch(ze.type){case 3:return Be(Ce({},Te),{showEditorSetting:ze.payload});case 1:return Be(Ce({},Te),{theme:ze.payload});case 0:return Be(Ce({},Te),{fontSize:ze.payload});case 2:return Be(Ce({},Te),{tabToSpace:ze.payload});default:throw new Error}}var pt=({isLoading:Te,value:ze,onChange:Ke,language:ur,onUpdateCode:En,ActionBarRender:dn=Cn=>x.createElement(Ae,{onShowCodeSetting:Cn})})=>{const[Cn,Kt]=(0,z.useReducer)(Qe,Me),{theme:yn,fontSize:zn,showEditorSetting:bo,tabToSpace:Yr}=Cn,Oo=(0,z.useRef)(),Fr=(0,z.useRef)(),Ko={onFontSizeChange:si=>{Kt({type:0,payload:si}),(0,E.t)("cmFontSize",si)},tabToSpace:Yr,cmFontSize:zn,className:"oj",cmCodeMode:yn,onTabToSpace:si=>{Kt({type:2,payload:si}),(0,E.t)("cmTabToSpace",si)},onCodeModeChange:si=>{Kt({type:1,payload:si}),(0,E.t)("cmCodeMode",si)}};function qr(){Kt({type:3,payload:!1})}function ci(){Kt({type:3,payload:!0})}const xo={value:ze,language:ur,theme:yn,height:"calc(100% - 56px)",options:{fontSize:zn,insertSpaces:Yr},onChange:si=>{Ke(si),Fr.current=si,clearTimeout(Oo.current),Oo.current=setTimeout(()=>{En(Fr.current)},1e4)},onEditBlur:si=>{Fr.current&&En(Fr.current)}};return x.createElement(z.Fragment,null,x.createElement("div",{className:"code-panel-container"},dn(ci),!Te&&x.createElement(a.ZP,Ce({},xo))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:bo,onClose:qr},x.createElement(b.Z,Ce({},Ko)))))};function Ae({onShowCodeSetting:Te}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Te},x.createElement("i",{className:"iconfont icon-shezhi"})))}var De=ee(19575),Fe=ee(77969),tt=ee(72971),Ve=ee(69677),Ct=ee(22150),Mt=ee(71577);const{TextArea:en}=Ve.default,nn=5e3;var it=({callback:Te,onCancel:ze,notes:Ke})=>{function ur(En){Te(En)}return z.createElement(Ct.default,{className:"note-form-panel",onFinish:ur,initialValues:{notes:Ke}},z.createElement(Ct.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:nn,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${nn}`}]},z.createElement(en,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),z.createElement(Ct.default.Item,{style:{textAlign:"right"}},z.createElement(Mt.ZP,{type:"ghost",onClick:ze,style:{marginRight:10}}," \u53D6\u6D88 "),z.createElement(Mt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},ct={"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"},wt={pagination:"pagination___npPu7",info:"info___aRH6C"},Vt=ee(9430),Gt=ee(28452),Ln=ee(3407),He=ee(18699),on=ee(94189),In=ee(28706),or=ee(27484),bn=ee.n(or);const{Column:$t}=Vt.default;var qe=({submitResult:Te,submitting:ze,submitRecords:Ke,page:ur,onPageChange:En,topicId:dn})=>{const{status:Cn,id:Kt,input:yn,output:zn,expected_output:bo,is_file:Yr,input_file_url:Oo,output_file_url:Fr,expected_output_file_url:Ko,error_msg:qr}=Te||{},{records:ci,records_count:xo}=Ke||{},si=(0,ve.useParams)();function Fi(){Yr?(0,In.vQ)(De.Base64.decode(qr)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,In.vQ)(De.Base64.decode(zn)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return z.createElement(de.Z,{spinning:ze,tip:"\u8BC4\u6D4B\u4E2D...",indicator:z.createElement(Ln.Z,{style:{fontSize:24},spin:!0})},Kt?z.createElement(z.Fragment,null,z.createElement("ul",{className:wt.info},z.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",z.createElement("span",{className:Cn===on.h.OK?"c-green":"c-red"},tt.Im[Cn])),z.createElement("li",{className:wt.error},z.createElement("a",{onClick:Fi},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",z.createElement(He.Z,null)," ")),z.createElement("li",null,z.createElement(ve.Link,{to:`/problems/${dn}/record-detail/${Kt}?backId=${si==null?void 0:si.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),Cn!==on.h.OK?z.createElement(z.Fragment,null,z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),z.createElement("pre",null,!Yr&&yn,Yr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,In.LR)(Oo,yn)},yn)),z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),z.createElement("pre",null,(Cn===4||Cn===5)&&De.Base64.decode(qr),Cn!=4&&Cn!=5&&(Yr?z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,In.LR)(Fr,zn)},zn):De.Base64.decode(zn))),z.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),z.createElement("pre",null,!Yr&&De.Base64.decode(bo),Yr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,In.LR)(Ko,bo)},bo))):null):null,(ci==null?void 0:ci.length)>0?z.createElement(Vt.default,{dataSource:ci,rowKey:"id",pagination:!1},z.createElement($t,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(fo,zi)=>z.createElement("span",null," ",bn()(fo).format("YYYY-MM-DD HH:mm:ss"))}),z.createElement($t,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(fo,zi)=>{var Xn;return z.createElement(ve.Link,{className:fo===0?"c-green":"c-red",to:`/problems/${dn}/record-detail/${zi.id}?backId=${si==null?void 0:si.save_identifier}`},(Xn=tt.Im[fo])==null?void 0:Xn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),z.createElement($t,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),z.createElement($t,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),z.createElement($t,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,xo>15?z.createElement(Gt.Z,{className:wt.pagination,current:ur,pageSize:15,total:xo,onChange:En}):null)},Je=ee(26194),Pt=ee(66309),Nt=ee(93421),Wt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},dt=ee(85725),yt=ee(67294);const Tt={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var rt=({hack:Te,onTriggerPraise:ze,toDiscuss:Ke})=>{const{language:ur,difficulty:En,time_limit:dn,username:Cn,user_path:Kt,user_praise:yn,comments_count:zn,praises_count:bo,description:Yr,pass_count:Oo,submit_count:Fr}=Te,Ko=(0,ve.useLocation)();console.log(Te.language,"language");const qr=Tt[En];return yt.createElement(yt.Fragment,null,yt.createElement("ul",{className:Wt.info},yt.createElement("li",null,"\u96BE\u5EA6\uFF1A",yt.createElement(Pt.default,{color:qr==null?void 0:qr.color},qr==null?void 0:qr.name)),yt.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",yt.createElement("b",null,dn,"\u79D2"))),yt.createElement(dt.Z,{value:Yr,className:Wt.desc}),yt.createElement("ul",{className:Wt["commit-info"]},yt.createElement("li",null,yt.createElement(Nt.Z,{size:4},yt.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",yt.createElement("b",null,Oo))),yt.createElement("li",null,yt.createElement(Nt.Z,{size:4},yt.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",yt.createElement("b",null,Fr))," "),yt.createElement("li",{style:{flex:"1 0 0"}}),yt.createElement("li",null,yt.createElement(Nt.Z,{size:4},yt.createElement("i",{className:"iconfont icon-huifu1",onClick:Ke})," ",yt.createElement("b",null,zn))," ")))},cn=ee(33054),Ge=Object.defineProperty,gt=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,St=(Te,ze,Ke)=>ze in Te?Ge(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Qt=(Te,ze)=>{for(var Ke in ze||(ze={}))Gn.call(ze,Ke)&&St(Te,Ke,ze[Ke]);if(gt)for(var Ke of gt(ze))Nn.call(ze,Ke)&&St(Te,Ke,ze[Ke]);return Te};const hn=Te=>React.createElement("svg",Qt({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Te),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 jn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",lr=ee(33170);function Ft(Te){return(0,lr.U2)("comments.json",Te)}function nr(Te){return(0,lr.v_)(`/discusses/${Te}/plus.json`,{container_type:"Discuss",type:1})}function ar(Te){return(0,lr.v_)("comments/reply.json",Te)}function wo(Te){return(0,lr.v_)("comments.json",Te)}function Kr(Te){return(0,lr.v_)(`comments/${Te==null?void 0:Te.id}/hidden.json`,Te)}function Ur(Te){return(0,lr.IV)(`comments/${Te==null?void 0:Te.id}.json`)}var Ho=ee(93989),Dn=ee(52262);function Po({author:Te}){return z.createElement("a",{href:`/users/${Te.login}`,target:"_blank"},z.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${Te.image_url}`,width:"50"}))}function pi({data:Te,index:ze,parentDiscussIndex:Ke,user:ur,onSetActionType:En}){const{author:dn,can_delete:Cn,content:Kt,id:yn,time:zn}=Te;function bo(){En({id:yn,index:ze,type:"delete-discuss",parentDiscussIndex:Ke,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Yr=ur.admin||Cn||dn.user_id===ur.user_id;return z.createElement("div",{className:"discuss-item-container second-discuss "},z.createElement(Po,{author:dn}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${dn.login}`,target:"_blank"},dn.name),z.createElement("span",{className:"grey"},zn),z.createElement("div",{className:"btn-group",style:{marginBottom:0}},Yr?z.createElement("a",{onClick:bo,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null)),z.createElement(dt.Z,{className:"discuss-content",value:Kt})))}var sa=({user:Te,data:ze,index:Ke,onPlusDiscuss:ur,onSetActionType:En,activeDiscussIndex:dn,onReplyDiscuss:Cn,onSetActiveDiscussIndex:Kt})=>{const{content:yn,children:zn,hidden:bo,id:Yr,praise_count:Oo,time:Fr,user_praise:Ko,can_delete:qr,author:ci}=ze;console.log(qr&&(!zn||zn.length==0),"children22");function xo(){Kt(Yr)}function si(){ur(Yr,!Ko,Ke)}function Fi(){En({id:Yr,index:Ke,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function fo(){En({id:Yr,index:Ke,params:{hidden:bo?"0":"1"},type:"hidden-discuss",message:bo?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const zi=Te.admin||Te.user_id===ci.user_id;return z.createElement("div",{className:"discuss-item-container",key:Yr},z.createElement(Po,{author:ci}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${ci.login}`,target:"_blank"}," ",ci.name," "),z.createElement("span",{className:"grey"},Fr)),z.createElement(dt.Z,{className:"discuss-content",value:yn}),zn&&zn.length>0?z.createElement("div",{className:"reply-discuss-container"},zn.map((Xn,Ei)=>z.createElement(pi,{key:Xn.id,data:Xn,index:Ei,user:Te,onSetActionType:En,parentDiscussIndex:Ke}))):null,z.createElement("div",{className:"btn-group"},(0,Dn.Ny)()?z.createElement("a",{onClick:fo,title:bo?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},z.createElement("i",{className:bo?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,qr&&(!zn||zn.length==0)?z.createElement("a",{onClick:Fi,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null,z.createElement("a",{onClick:xo,title:"\u56DE\u590D"}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," "),z.createElement("a",{onClick:si,className:Ko?"c-orange":""},z.createElement("i",{className:Ko?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),z.createElement("span",null,Oo||""))),z.createElement(Ho.Z,{id:Yr,activeDiscussIndex:dn,onReplyDiscuss:Cn})))},qi=ee(62078),Vr=ee(35567),$o=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Jo=({user_praise:Te,praise_count:ze,praisePlus:Ke,onCreateDiscuss:ur,discuss_count:En})=>{const[dn,Cn]=(0,z.useState)(!1),[Kt,yn]=(0,z.useState)("");function zn(Fr){yn(Fr)}function bo(){Cn(!0)}function Yr(){Cn(!1)}function Oo(){return $o(this,null,function*(){ur(Kt),yn(""),Cn(!1)})}return z.createElement("div",{className:`dis-input-editor-container ${dn?"active":""} `},z.createElement("div",{className:dn?"text-area hide":"text-area"},z.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:bo}),z.createElement("a",{style:{alignItems:"center"}}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",En," "),z.createElement("a",{className:"c-light-black",onClick:Ke,style:{alignItems:"center"},title:Te?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},z.createElement("i",{className:`mr3 ${Te?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),ze?z.createElement("span",null,ze):"")),dn?z.createElement("div",{className:"input-mask",onClick:Yr}):null,z.createElement("div",{className:dn?"md-container":"md-container hide"},z.createElement(Vr.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Kt,height:240,onChange:zn}),z.createElement("div",{className:"tip-container",onClick:Yr},z.createElement("a",{className:"btn-send",onClick:Oo}," \u53D1\u9001 "))))},Li=Object.defineProperty,Lo=Object.defineProperties,Ii=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,La=(Te,ze,Ke)=>ze in Te?Li(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,_n=(Te,ze)=>{for(var Ke in ze||(ze={}))Bo.call(ze,Ke)&&La(Te,Ke,ze[Ke]);if(xi)for(var Ke of xi(ze))Xr.call(ze,Ke)&&La(Te,Ke,ze[Ke]);return Te},he=(Te,ze)=>Lo(Te,Ii(ze)),Se=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Le=(Te=>(Te[Te.GET_DISCUSSES=0]="GET_DISCUSSES",Te[Te.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Te[Te.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Te[Te.PLUS_DISCUSS=3]="PLUS_DISCUSS",Te[Te.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Te[Te.SET_PAGE=5]="SET_PAGE",Te[Te.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Te))(Le||{});function Ne(Te,ze){switch(ze.type){case 6:return he(_n({},Te),{loading:!0});case 0:return _n(_n({},Te),ze.payload);case 1:return _n(_n({},Te),ze.payload);case 4:return _n(_n({},Te),ze.payload);case 3:return _n(_n({},Te),ze.payload);case 5:return _n(_n({},Te),ze.payload);case 2:return _n(_n({},Te),ze.payload);default:throw new Error}}var nt=({user:Te,identifier:ze,hack:Ke,onTriggerPraise:ur,setDiscussTotal:En})=>{const[dn,Cn]=(0,z.useReducer)(Ne,Pe),{loading:Kt,page:yn,data:zn,count:bo,actionType:Yr,activeDiscussIndex:Oo}=dn;console.log("---",dn);const Fr=(0,z.useCallback)(()=>Se(void 0,null,function*(){Cn({type:6});const Xn=yield Ft({container_type:"Practice",container_identifier:ze,limit:10,page:yn}),{comments:Ei,disscuss_count:mo}=Xn;Cn({type:0,payload:{data:Ei,count:mo,loading:!1}}),En(mo)}),[yn,ze]);(0,z.useEffect)(()=>{Fr()},[ze,yn]);function Ko(Xn){Cn({type:5,payload:{page:Xn}})}function qr(Xn){Cn({type:4,payload:{actionType:Xn}})}function ci(Xn){Cn(Oo===Xn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Xn}})}function xo(Xn,Ei,mo){return Se(this,null,function*(){try{const Eo=yield nr(Xn);zn[mo].user_praise=Ei,zn[mo].praise_count=Eo.praise_count,Cn({type:3,payload:{data:[...zn]}})}catch(Eo){console.log(Eo)}})}function si(){return Se(this,null,function*(){const{id:Xn,params:Ei,type:mo,index:Eo,parentDiscussIndex:Ra}=Yr;mo==="hidden-discuss"&&(console.log(Ei,"params"),yield Kr(_n({id:Xn,container_type:"Practice",container_identifier:ze},Ei)),Ra?zn[Ra].children[Eo].hidden=Ei.hidden==1:zn[Eo].hidden=Ei.hidden==1,Cn({type:4,payload:{actionType:null,data:[...zn]}})),mo==="delete-discuss"&&(yield Ur({id:Xn,container_type:"Practice",container_identifier:ze}),Cn({type:4,payload:{actionType:null}}),yield Fr())})}function Fi(){Cn({type:4,payload:{actionType:null}})}function fo(Xn,Ei){return Se(this,null,function*(){try{yield ar({container_type:"Practice",container_identifier:ze,comments:{content:Ei,parent_id:Xn}}),Fr()}catch(mo){console.log(mo)}})}function zi(Xn){return Se(this,null,function*(){Cn({type:6}),yield wo({comments:{content:Xn},container_type:"Practice",container_identifier:ze}),Fr()})}return z.createElement(z.Fragment,null,z.createElement("div",{className:"discuss-panel"},zn.length===0?z.createElement(Je.Z,null):z.createElement(de.Z,{spinning:Kt},zn.map((Xn,Ei)=>z.createElement(sa,{onReplyDiscuss:fo,onPlusDiscuss:xo,onSetActiveDiscussIndex:ci,onSetActionType:qr,data:Xn,index:Ei,user:Te,activeDiscussIndex:Oo}))),bo>10?z.createElement("div",{className:"pagination-container mt10 mb10"},z.createElement(Gt.Z,{showQuickJumper:!0,onChange:Ko,current:yn,total:bo,showTotal:Xn=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},Xn),"\u6761\u6570\u636E")})):null),z.createElement(Jo,{user_praise:Ke.user_praise,praise_count:Ke.praises_count,praisePlus:ur,discuss_count:Ke.comments_count,onCreateDiscuss:zi}),z.createElement(y.Z,null,z.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Yr,onOk:si,onCancel:Fi},z.createElement("p",null,Yr?Yr.message:"")),z.createElement(qi.Z,null)))},lt={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"},fn={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"},tn=Object.defineProperty,Tn=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Ot=(Te,ze,Ke)=>ze in Te?tn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,cr=(Te,ze)=>{for(var Ke in ze||(ze={}))fr.call(ze,Ke)&&Ot(Te,Ke,ze[Ke]);if(Tn)for(var Ke of Tn(ze))Lr.call(ze,Ke)&&Ot(Te,Ke,ze[Ke]);return Te};const sr=Te=>React.createElement("svg",cr({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Te),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 Rn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Hn=Object.defineProperty,tr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Yi=(Te,ze,Ke)=>ze in Te?Hn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ti=(Te,ze)=>{for(var Ke in ze||(ze={}))jr.call(ze,Ke)&&Yi(Te,Ke,ze[Ke]);if(tr)for(var Ke of tr(ze))Pr.call(ze,Ke)&&Yi(Te,Ke,ze[Ke]);return Te};const xr=Te=>React.createElement("svg",ti({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),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 yo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Mi=Object.defineProperty,Pi=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Ka=(Te,ze,Ke)=>ze in Te?Mi(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ui=(Te,ze)=>{for(var Ke in ze||(ze={}))Ai.call(ze,Ke)&&Ka(Te,Ke,ze[Ke]);if(Pi)for(var Ke of Pi(ze))pn.call(ze,Ke)&&Ka(Te,Ke,ze[Ke]);return Te};const Vo=Te=>React.createElement("svg",Ui({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),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 Aa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Bn=Object.defineProperty,mr=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,di=(Te,ze,Ke)=>ze in Te?Bn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,bi=(Te,ze)=>{for(var Ke in ze||(ze={}))Hr.call(ze,Ke)&&di(Te,Ke,ze[Ke]);if(mr)for(var Ke of mr(ze))rr.call(ze,Ke)&&di(Te,Ke,ze[Ke]);return Te};const la=Te=>React.createElement("svg",bi({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),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 Da="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Wa=Object.defineProperty,ft=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Yt=(Te,ze,Ke)=>ze in Te?Wa(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,xn=(Te,ze)=>{for(var Ke in ze||(ze={}))ut.call(ze,Ke)&&Yt(Te,Ke,ze[Ke]);if(ft)for(var Ke of ft(ze))Ht.call(ze,Ke)&&Yt(Te,Ke,ze[Ke]);return Te};const Ar=Te=>React.createElement("svg",xn({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Te),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 Dr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",_o=({style:Te={},onClick:ze,onAssist:Ke,onHide:ur,data:En,active:dn,showLine:Cn})=>z.createElement(z.Fragment,null,z.createElement("div",{className:dn===(En==null?void 0:En.id)?`${fn.list} ${fn.active}`:fn.list,style:Te,onClick:()=>ze(En)},(En==null?void 0:En.video)&&z.createElement("div",{className:fn.left},z.createElement("img",{src:En==null?void 0:En.video_cover}),z.createElement("div",null,z.createElement("img",{src:Rn}),z.createElement("span",null,En==null?void 0:En.video_duration)),z.createElement("div",{className:fn.mask})),z.createElement("div",{className:fn.right},z.createElement("div",{className:fn.name},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(En==null?void 0:En.image_url),width:30,height:30}),z.createElement("div",{title:En==null?void 0:En.name,className:fn.title},En==null?void 0:En.name),(En==null?void 0:En.is_authority)&&z.createElement("div",{className:fn.b},"\u5B98\u65B9"),(En==null?void 0:En.is_excellent)&&z.createElement("div",{className:fn.a},"\u7CBE\u9009")),z.createElement("div",{className:fn.des},z.createElement(dt.Z,{showLines:2,showTextOnly:!0,value:(En==null?void 0:En.content)||"\u6682\u65E0\u5185\u5BB9"})),z.createElement("div",{className:fn.tag},z.createElement("span",{className:"current",onClick:Kt=>{Kt.stopPropagation(),Ke(En)}},z.createElement("img",{src:En!=null&&En.user_liker?Aa:yo}),z.createElement("span",{style:{color:En!=null&&En.user_liker?"#0152d9":"#656f87"}},En==null?void 0:En.praises_count)),z.createElement("span",null,z.createElement("img",{src:Da}),z.createElement("span",null,En==null?void 0:En.discusses_count)),z.createElement("span",null,z.createElement("img",{src:Dr}),z.createElement("span",null,En==null?void 0:En.viewed_count)),(0,Dn.Ny)()&&z.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:Kt=>{Kt.stopPropagation(),ur(En)}},En!=null&&En.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),Cn&&z.createElement("div",{className:fn.line})),uo={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"},ni=ee(83062),vi=Object.defineProperty,Di=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,jt=(Te,ze,Ke)=>ze in Te?vi(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ue=(Te,ze)=>{for(var Ke in ze||(ze={}))_t.call(ze,Ke)&&jt(Te,Ke,ze[Ke]);if(Di)for(var Ke of Di(ze))Et.call(ze,Ke)&&jt(Te,Ke,ze[Ke]);return Te};const zt=Te=>React.createElement("svg",Ue({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Te),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 ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",gn=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Pn=(Te,ze,Ke)=>ze in Te?gn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,$n=(Te,ze)=>{for(var Ke in ze||(ze={}))Ut.call(ze,Ke)&&Pn(Te,Ke,ze[Ke]);if(Lt)for(var Ke of Lt(ze))Rt.call(ze,Ke)&&Pn(Te,Ke,ze[Ke]);return Te};const ir=Te=>React.createElement("svg",$n({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Te),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 Qn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",dr=Object.defineProperty,br=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Jt=(Te,ze,Ke)=>ze in Te?dr(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,vn=(Te,ze)=>{for(var Ke in ze||(ze={}))mn.call(ze,Ke)&&Jt(Te,Ke,ze[Ke]);if(br)for(var Ke of br(ze))Dt.call(ze,Ke)&&Jt(Te,Ke,ze[Ke]);return Te};const Vn=Te=>React.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Te),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 pr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Nr=ee(95235),ao=Object.defineProperty,Tr=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,kt=(Te,ze,Ke)=>ze in Te?ao(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Zt=(Te,ze)=>{for(var Ke in ze||(ze={}))et.call(ze,Ke)&&kt(Te,Ke,ze[Ke]);if(ke)for(var Ke of ke(ze))At.call(ze,Ke)&&kt(Te,Ke,ze[Ke]);return Te},Sn=(Te,ze)=>Tr(Te,$e(ze)),wn=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),On=({onClose:Te,onOk:ze,identifier:Ke,active:ur})=>{var En,dn;const[Cn]=Ct.default.useForm(),[Kt,yn]=(0,z.useState)({}),[zn,bo]=(0,z.useState)(!1),[Yr,Oo]=(0,z.useState)(!1),[Fr,Ko]=(0,z.useState)([]),qr=(0,Dn.eY)(),ci=(0,ve.useParams)(),xo=(0,z.useRef)();(0,z.useEffect)(()=>{ur&&si()},[ur]);const si=()=>wn(void 0,null,function*(){var kr,So,li,fi,zs,Os,Cs,Us,Xa,ys;const eo=yield(0,ce.M3)(Ke,{active:ur});if((eo==null?void 0:eo.status)===0){const Vi={name:(kr=eo==null?void 0:eo.data)==null?void 0:kr.name,content:(So=eo==null?void 0:eo.data)==null?void 0:So.content};Cn.setFieldsValue(Vi),yn(Vi),(fi=(li=eo==null?void 0:eo.data)==null?void 0:li.videos)!=null&&fi[0]&&Ko([{video_id:(Cs=(Os=(zs=eo==null?void 0:eo.data)==null?void 0:zs.videos)==null?void 0:Os[0])==null?void 0:Cs.video_id,name:(ys=(Xa=(Us=eo==null?void 0:eo.data)==null?void 0:Us.videos)==null?void 0:Xa[0])==null?void 0:ys.title,loaded:100}])}}),Fi=(kr,So)=>{yn(Zt({},So))},fo=kr=>wn(void 0,null,function*(){const So={videos:Fr,articles:kr};Oo(!0);let li;ur?(So.active=ur,li=yield(0,ce.gu)(Ke,So)):li=yield(0,ce.bx)(Ke,So),(li==null?void 0:li.status)===0&&(console.log(ur||(li==null?void 0:li.id),44),ze(ur||(li==null?void 0:li.id))),Oo(!1)}),zi=(kr,So)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:z.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",So?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{So?Ko([]):(xo.current.cancel(),Ko([]))}})},Xn=()=>z.createElement(Nr.Z,Sn(Zt({},Qi),{ref:xo}),z.createElement("div",{className:uo.main},z.createElement("img",{src:ln,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),Ei=kr=>z.createElement("div",{className:uo.mainLoading},z.createElement("div",{className:uo.proWarp},z.createElement("div",{className:uo.pro},z.createElement("div",{style:{width:kr}})),z.createElement("span",null,kr||0,"%")),z.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),z.createElement("div",{className:uo.tip},z.createElement(ni.Z,{getPopupContainer:So=>So.parentNode,title:z.createElement("div",null,z.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",z.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"),z.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),z.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},z.createElement("img",{src:pr,alt:""})))),mo=kr=>z.createElement("div",{className:uo.mainSucceed},z.createElement("img",{src:Qn,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),z.createElement("div",{className:uo.tip},z.createElement(ni.Z,{getPopupContainer:So=>So.parentNode,title:z.createElement("div",null,z.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",z.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"),z.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),z.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},z.createElement("img",{src:pr,alt:""}))),z.createElement("div",{className:uo.del,onClick:()=>zi(kr.name,kr.loaded==100)},z.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Eo=()=>z.createElement(z.Fragment,null,Fr==null?void 0:Fr.map((kr,So)=>z.createElement(z.Fragment,{key:So},kr.loaded==100?mo(kr):Ei(kr.loaded)))),Ra=()=>{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:Te})},Qi={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:kr=>{const li=kr.name.toLowerCase();return li&&li.indexOf(".avi")==-1&&li.indexOf(".flv")==-1&&li.indexOf(".f4v")==-1&&li.indexOf(".m4v")==-1&&li.indexOf(".mov")==-1&&li.indexOf(".mp4")==-1&&li.indexOf(".rmvb")==-1&&li.indexOf(".swf")==-1&&li.indexOf(".webm")==-1&&li.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):kr.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Fr!=null&&Fr.find(fi=>fi.name===kr.name)?(pe.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:kr=>{Ko([{name:kr.filename,loaded:0}])},onComplete:kr=>{Ko([{name:kr.filename,loaded:kr.percent,video_id:kr.id}])},onError:()=>{Ko([])},onProgress:kr=>{Ko([{name:kr.filename,loaded:kr.percent}])},chunkSize:1024*1024*2,options:{user_id:(En=qr==null?void 0:qr.userInfo)==null?void 0:En.user_id}},ui=Fr==null?void 0:Fr.length;return z.createElement("div",{className:uo.listForm},z.createElement("header",null,ur?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),z.createElement("section",{className:uo.scroll,id:"sss"},z.createElement("div",{className:uo.formWrap}," ",z.createElement(Ct.default,{form:Cn,scrollToFirstError:!0,layout:"vertical",onValuesChange:Fi,onFinish:fo},z.createElement(Ct.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"}]},z.createElement(Ve.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((dn=Kt.name)==null?void 0:dn.length)||0}/60`})),z.createElement(Ct.default.Item,{name:"content",label:"\u5185\u5BB9:"},z.createElement(Vr.Z,{defaultValue:Kt.content||"",watch:!0})))),z.createElement("div",{className:uo.upload},ui?Eo():Xn())),z.createElement("div",{className:uo.btns},z.createElement(Mt.ZP,{onClick:Ra,type:"primary",ghost:!0},"\u5173\u95ED"),z.createElement(Mt.ZP,{loading:Yr,disabled:zn,onClick:()=>Cn.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Wn={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"},gr=ee(46303),so=Object.defineProperty,co=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,Ro=(Te,ze,Ke)=>ze in Te?so(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Fo=(Te,ze)=>{for(var Ke in ze||(ze={}))Jr.call(ze,Ke)&&Ro(Te,Ke,ze[Ke]);if(co)for(var Ke of co(ze))po.call(ze,Ke)&&Ro(Te,Ke,ze[Ke]);return Te};const zr=Te=>React.createElement("svg",Fo({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Te),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 Zo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",ho=Object.defineProperty,qo=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,ei=(Te,ze,Ke)=>ze in Te?ho(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ca=(Te,ze)=>{for(var Ke in ze||(ze={}))wi.call(ze,Ke)&&ei(Te,Ke,ze[Ke]);if(qo)for(var Ke of qo(ze))ya.call(ze,Ke)&&ei(Te,Ke,ze[Ke]);return Te};const Hi=Te=>React.createElement("svg",ca({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Te),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 _a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Xo=Object.defineProperty,zo=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,za=(Te,ze,Ke)=>ze in Te?Xo(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Qo=(Te,ze)=>{for(var Ke in ze||(ze={}))Si.call(ze,Ke)&&za(Te,Ke,ze[Ke]);if(zo)for(var Ke of zo(ze))xa.call(ze,Ke)&&za(Te,Ke,ze[Ke]);return Te};const ea=Te=>React.createElement("svg",Qo({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Te),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 ua="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Or={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"},fa=ee(71230),ha=ee(15746),ma={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"},aa=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())});const Ta=({id:Te,cb:ze})=>{const[Ke,ur]=(0,z.useState)("");return z.createElement("aside",{className:"mt10"},z.createElement(Vr.Z,{defaultValue:Ke,id:"writeForumsReviewId",onChange:En=>{ur(En)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(fa.Z,null,z.createElement(ha.Z,{flex:"1"}),z.createElement(ha.Z,null,z.createElement(Mt.ZP,{type:"primary",size:"middle",onClick:()=>aa(void 0,null,function*(){Ke===""?pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):ze(Te,Ke)})},"\u53D1\u9001"))))},da=({data:Te})=>{var ze;return z.createElement("div",{className:ma.thirdlyLevelDiscuss},z.createElement("span",{className:"c-grey-333"},z.createElement("span",{className:"font 14 c-light-primary"},(ze=Te==null?void 0:Te.author)==null?void 0:ze.name),"@",z.createElement("span",{className:"font 14 c-light-primary"},Te==null?void 0:Te.parent_name),":"),z.createElement(dt.Z,{value:Te==null?void 0:Te.content}))},pa=({data:Te,onReplyDiscuss:ze,thirdlyReply:Ke,setThirdlyReply:ur})=>{var En,dn,Cn,Kt;const yn=(0,Dn.eY)();return console.log(yn,"user"),z.createElement("div",{className:ma.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((En=Te==null?void 0:Te.author)==null?void 0:En.image_url)}),z.createElement("div",{className:ma.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333"},(dn=Te==null?void 0:Te.author)==null?void 0:dn.name),(yn==null?void 0:yn.login)!==((Cn=Te==null?void 0:Te.author)==null?void 0:Cn.login)&&z.createElement("span",{onClick:()=>ur(Te==null?void 0:Te.id),className:"c-grey-999 current",style:{float:"right"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),z.createElement("span",null,"\u56DE\u590D"))),z.createElement(dt.Z,{value:Te==null?void 0:Te.content}),(Kt=Te==null?void 0:Te.children)==null?void 0:Kt.map(zn=>z.createElement(da,{key:zn.id,data:zn})),Ke===(Te==null?void 0:Te.id)&&z.createElement("div",null,z.createElement(Ta,{id:Te==null?void 0:Te.id,cb:ze}),z.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>ur(null),className:"c-light-primary current"},z.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),z.createElement("div",{className:ma.line})))};var rs=({data:Te,onReplyDiscuss:ze,secondReply:Ke,setSecondReply:ur,thirdlyReply:En,setThirdlyReply:dn,onPlusDiscuss:Cn})=>{var Kt,yn,zn,bo;const[Yr,Oo]=(0,z.useState)(!1);return console.log(Te,"data"),z.createElement("div",{className:ma.discussItem},z.createElement("div",{className:ma.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((Kt=Te==null?void 0:Te.author)==null?void 0:Kt.image_url)}),z.createElement("div",{className:ma.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333 mr30"},(yn=Te==null?void 0:Te.author)==null?void 0:yn.name),z.createElement("span",{className:"c-grey-999"},Te==null?void 0:Te.time)),z.createElement(dt.Z,{value:Te==null?void 0:Te.content}),z.createElement("div",{className:ma.btns},z.createElement("div",{onClick:()=>Cn(Te==null?void 0:Te.id),className:Te!=null&&Te.user_praise?"c-light-primary":"c-grey-999"},z.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),z.createElement("span",null,Te==null?void 0:Te.praise_count)),z.createElement("div",{onClick:()=>{var Fr;((Fr=Te==null?void 0:Te.children)==null?void 0:Fr.length)!==0&&(ur(null),Oo(!Yr))},style:{color:Yr?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),z.createElement("span",null,Yr?"\u6536\u8D77\u8BC4\u8BBA":(zn=Te==null?void 0:Te.children)==null?void 0:zn.length)),z.createElement("div",{onClick:()=>{Oo(!1),ur(Ke===(Te==null?void 0:Te.id)?null:Te==null?void 0:Te.id)},style:{color:Ke===(Te==null?void 0:Te.id)?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3"}),z.createElement("span",null,Ke===(Te==null?void 0:Te.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Ke===(Te==null?void 0:Te.id)&&z.createElement(Ta,{id:Te==null?void 0:Te.id,cb:(Fr,Ko)=>{ze(Fr,Ko),Oo(!0)}}),Yr&&z.createElement("div",{className:ma.secondLevelDiscuss},(bo=Te==null?void 0:Te.children)==null?void 0:bo.map(Fr=>z.createElement(pa,{thirdlyReply:En,setThirdlyReply:dn,key:Fr.id,data:Fr,onReplyDiscuss:ze}))))))},Xi=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Pa=({identifier:Te,active:ze,onOk:Ke})=>{const[ur,En]=(0,z.useState)(""),[dn,Cn]=(0,z.useState)(1),[Kt,yn]=(0,z.useState)([]),[zn,bo]=(0,z.useState)(0),[Yr,Oo]=(0,z.useState)(null),[Fr,Ko]=(0,z.useState)(null);(0,z.useEffect)(()=>{qr(1),Cn(1)},[ze]);const qr=fo=>Xi(void 0,null,function*(){const zi=yield Ft({container_type:"QuestionSolutionArticle",container_identifier:ze,limit:5,page:fo});zi!=null&&zi.comments&&(yn((zi==null?void 0:zi.comments)||[]),Cn(fo),bo(zi==null?void 0:zi.disscuss_count))}),ci=()=>Xi(void 0,null,function*(){if(ur===""){pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const fo=yield wo({comments:{content:ur},container_type:"QuestionSolutionArticle",container_identifier:ze});fo!=null&&fo.discuss&&(En(""),qr(dn),Ke())}),xo=(fo,zi,Xn)=>Xi(void 0,null,function*(){const Ei=yield ar({container_type:"QuestionSolutionArticle",container_identifier:ze,comments:{content:zi,parent_id:fo}});Oo(null),Ko(null),qr(dn)}),si=fo=>Xi(void 0,null,function*(){const zi=yield nr(fo);qr(dn)}),Fi=fo=>{Cn(fo),qr(fo)};return z.createElement("div",{className:Or.discuss},z.createElement("aside",{className:Or.reply,style:{borderWidth:zn?1:0}},z.createElement(Vr.Z,{defaultValue:ur,id:"writeForumsReviewId",onChange:fo=>{En(fo)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(fa.Z,null,z.createElement(ha.Z,{flex:"1"}),z.createElement(ha.Z,null,z.createElement(Mt.ZP,{type:"primary",size:"middle",onClick:()=>ci()},"\u53D1\u9001")))),Kt==null?void 0:Kt.map(fo=>z.createElement(rs,{secondReply:Yr,setSecondReply:Oo,thirdlyReply:Fr,setThirdlyReply:Ko,key:fo.id,data:fo,onReplyDiscuss:xo,onPlusDiscuss:si})),z.createElement(Gt.Z,{className:Or.pagination,showTotal:fo=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},fo),"\u6761\u6570\u636E"),current:dn,onChange:Fi,total:zn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},as=ee(6104),As=Object.defineProperty,Ds=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,ts=(Te,ze,Ke)=>ze in Te?As(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ns=(Te,ze)=>{for(var Ke in ze||(ze={}))Fs.call(ze,Ke)&&ts(Te,Ke,ze[Ke]);if(Ds)for(var Ke of Ds(ze))hs.call(ze,Ke)&&ts(Te,Ke,ze[Ke]);return Te},ms=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),el=({active:Te,identifier:ze,onAssist:Ke,onEdit:ur,onArticlesSkip:En,onClose:dn,onOk:Cn,onDelete:Kt,detailsIndex:yn,btnShowStatus:zn})=>{var bo,Yr,Oo,Fr,Ko,qr,ci,xo,si,Fi;const[fo,zi]=(0,z.useState)(!0),[Xn,Ei]=(0,z.useState)({});(0,z.useEffect)(()=>{Te&&mo()},[Te,yn]);const mo=(ui=!0)=>ms(void 0,null,function*(){ui&&zi(!0);const kr=yield(0,ce.wO)(ze,{active:Te});(kr==null?void 0:kr.status)===0&&Ei((kr==null?void 0:kr.data)||{}),zi(!1)}),Eo=ui=>ms(void 0,null,function*(){const kr=yield(0,ce.qe)(ze,ns({active:Te},ui));(kr==null?void 0:kr.status)===0&&(mo(!1),Cn())}),Ra=ui=>ms(void 0,null,function*(){(yield(0,ce.Rg)(ze,{active:ui==null?void 0:ui.id})).status===0&&(mo(!1),Cn())}),yr=ui=>{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:()=>Kt(ui)})},Qi=()=>{mo(!1),Cn()};return z.createElement("div",{className:Wn.listDetails},z.createElement(gr.Z,{className:"pt20 pl20 pr20",loading:fo,active:!0,paragraph:{rows:5}},z.createElement("div",{className:Wn.head},z.createElement("div",{className:Wn.name},z.createElement("div",{title:Xn==null?void 0:Xn.name,className:Wn.title},Xn==null?void 0:Xn.name),(Xn==null?void 0:Xn.is_authority)&&z.createElement("div",{className:Wn.b},"\u5B98\u65B9"),(Xn==null?void 0:Xn.is_excellent)&&z.createElement("div",{className:Wn.a},"\u7CBE\u9009")),z.createElement("div",{className:Wn.tag},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(Xn==null?void 0:Xn.image_url)}),z.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Xn==null?void 0:Xn.username),z.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",bn()(Xn==null?void 0:Xn.created_at).format("YYYY-MM-DD")),z.createElement("span",null,z.createElement("img",{src:yo}),z.createElement("span",null,Xn==null?void 0:Xn.praises_count)),z.createElement("span",null,z.createElement("img",{src:Da}),z.createElement("span",null,Xn==null?void 0:Xn.discusses_count)),z.createElement("span",null,z.createElement("img",{src:Dr}),z.createElement("span",null,Xn==null?void 0:Xn.viewed_count)),z.createElement("div",{className:Wn.btn},((0,Dn.Ny)()||(Xn==null?void 0:Xn.is_self))&&z.createElement(z.Fragment,null,z.createElement(Mt.ZP,{onClick:()=>yr(Xn),type:"primary",ghost:!0},"\u5220\u9664"),z.createElement(Mt.ZP,{onClick:()=>ur(Xn),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Dn.Ny)()&&z.createElement(Mt.ZP,{onClick:()=>Eo({is_authority:!(Xn!=null&&Xn.is_authority)}),type:"primary"},z.createElement("img",{src:_a}),Xn!=null&&Xn.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Dn.Ny)()&&z.createElement(Mt.ZP,{onClick:()=>Eo({is_excellent:!(Xn!=null&&Xn.is_excellent)}),type:"primary"},z.createElement("img",{src:Zo}),Xn!=null&&Xn.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),z.createElement("div",{className:Wn.scroll},((Yr=(bo=Xn==null?void 0:Xn.videos)==null?void 0:bo[0])==null?void 0:Yr.id)&&z.createElement("div",{className:Wn.video},z.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Fr=(Oo=Xn==null?void 0:Xn.videos)==null?void 0:Oo[0])!=null&&Fr.transcoded)},z.createElement(as.Z,{poster:(qr=(Ko=Xn==null?void 0:Xn.videos)==null?void 0:Ko[0])==null?void 0:qr.cover_url,src:((xo=(ci=Xn==null?void 0:Xn.videos)==null?void 0:ci[0])==null?void 0:xo.play_url)||"",videoId:(Fi=(si=Xn==null?void 0:Xn.videos)==null?void 0:si[0])==null?void 0:Fi.id,logWatchHistory:()=>{}}))),z.createElement(dt.Z,{className:Wn.html,value:(Xn==null?void 0:Xn.content)||""}),z.createElement("div",{onClick:()=>Ra(Xn),className:Wn.g},z.createElement("img",{className:"mr10",src:(Xn!=null&&Xn.user_liker,ua)}),z.createElement("span",null,Xn==null?void 0:Xn.praises_count)),z.createElement(Pa,{onOk:Qi,active:Te,identifier:ze})),z.createElement("div",{className:Wn.btns},z.createElement(Mt.ZP,{onClick:()=>dn(),type:"primary",ghost:!0},"\u5173\u95ED"),zn[0]&&z.createElement(Mt.ZP,{onClick:ui=>En(ui,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),zn[1]&&z.createElement(Mt.ZP,{onClick:ui=>En(ui,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},tl=Object.defineProperty,Rs=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,nl=Object.prototype.propertyIsEnumerable,ks=(Te,ze,Ke)=>ze in Te?tl(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ns=(Te,ze)=>{for(var Ke in ze||(ze={}))Hs.call(ze,Ke)&&ks(Te,Ke,ze[Ke]);if(Rs)for(var Ke of Rs(ze))nl.call(ze,Ke)&&ks(Te,Ke,ze[Ke]);return Te};const js=Te=>React.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Te),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 $s="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Vs=ee(28575),Oe=ee(33463),Xe=Object.defineProperty,Ye=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,An=(Te,ze,Ke)=>ze in Te?Xe(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,un=(Te,ze)=>{for(var Ke in ze||(ze={}))rn.call(ze,Ke)&&An(Te,Ke,ze[Ke]);if(It)for(var Ke of It(ze))an.call(ze,Ke)&&An(Te,Ke,ze[Ke]);return Te},Jn=(Te,ze)=>Ye(Te,vt(ze)),Cr=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Br=({identifier:Te,tabStatus:ze,setFilterListTotal:Ke,setListStatus:ur})=>{const En={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[dn,Cn]=(0,z.useState)(un({},En));const[Kt,yn]=(0,z.useState)(!1),[zn,bo]=(0,z.useState)(0),[Yr,Oo]=(0,z.useState)(1),[Fr,Ko]=(0,z.useState)(null),[qr,ci]=(0,z.useState)([]),[xo,si]=(0,z.useState)([!0,!0]),[Fi,fo]=(0,z.useState)(0),zi=(0,z.useRef)(null);(0,z.useEffect)(()=>{So()},[ze]),(0,z.useEffect)(()=>{Xn()},[Fr]),(0,z.useEffect)(()=>{mo(un({},En)),So()},[Te]),(0,z.useEffect)(()=>(window.addEventListener("resize",Ei),ur(Fi),()=>{window.removeEventListener("resize",Ei)}),[Fi]);const Xn=()=>Cr(void 0,null,function*(){if(!Fr){si([!0,!0]);return}const eo=[!0,!0],Vi=qr==null?void 0:qr.findIndex(Qa=>Qa.id===Fr);Vi===0&&dn.page===1&&(eo[0]=!1),(dn.page-1)*dn.limit+(Vi+1)===dn.total&&(eo[1]=!1),si(eo)}),Ei=()=>{var eo;if(Fi){const Vi=window.innerWidth-((eo=zi.current)==null?void 0:eo.clientWidth);bo(Vi)}},mo=eo=>Cr(void 0,null,function*(){var Vi,Qa,Is;yn(!0);const Ia=yield(0,ce.WH)(Te,eo);return(Ia==null?void 0:Ia.status)===0&&(ci(((Vi=Ia==null?void 0:Ia.data)==null?void 0:Vi.articles)||[]),Cn(Jn(un({},eo),{total:(Qa=Ia==null?void 0:Ia.data)==null?void 0:Qa.articles_count})),Ke((Is=Ia==null?void 0:Ia.data)==null?void 0:Is.articles_count)),yn(!1),Ia}),Eo=()=>{(dn==null?void 0:dn.sort_direction)===null?dn.sort_direction="asc":(dn==null?void 0:dn.sort_direction)==="asc"?dn.sort_direction="desc":(dn==null?void 0:dn.sort_direction)==="desc"&&(dn.sort_direction=null),dn.page=1,So(),Cn(un({},dn)),mo(dn)},Ra=()=>{dn.page=1,dn.search=dn==null?void 0:dn.save_search,So(),Cn(un({},dn)),mo(dn)},yr=()=>{var eo;const Vi=document.getElementsByClassName("btn-resize");Vi[0].style.visibility="hidden";const Qa=window.innerWidth-((eo=zi.current)==null?void 0:eo.clientWidth);bo(Qa)},Qi=()=>{yr(),fo(1)},ui=eo=>{yr(),Ko(eo==null?void 0:eo.id),fo(3)},kr=eo=>{yr(),Ko(eo==null?void 0:eo.id),fo(2)},So=()=>{const eo=document.getElementsByClassName("btn-resize");eo[0].style.visibility="visible",bo(0),fo(0),Ko(null)},li=eo=>{fo(3),Ko(eo),dn.page=1,Cn(un({},dn)),mo(dn)},fi=eo=>{fo(3),Ko(eo),Cn(un({},dn)),mo(dn)},zs=eo=>{Cn(un({},dn)),mo(dn)},Os=eo=>Cr(void 0,null,function*(){(yield(0,ce.Rg)(Te,{active:eo==null?void 0:eo.id})).status===0&&(mo(dn),Oo(Yr+1))}),Cs=eo=>Cr(void 0,null,function*(){(yield(0,ce.rL)(Te,{active:eo==null?void 0:eo.id})).status===0&&(mo(dn),Oo(Yr+1))}),Us=eo=>Cr(void 0,null,function*(){(yield(0,ce.de)(Te,{active:eo==null?void 0:eo.id})).status===0&&(So(),mo(dn))}),Xa=eo=>{dn.page=eo,Cn(un({},dn)),mo(dn)},ys=(eo,Vi)=>Cr(void 0,null,function*(){var Qa,Is,Ia,ls;const Ha=qr==null?void 0:qr.findIndex(Sa=>Sa.id===Fr);if(console.log(Ha,Vi,22),Vi==="prev"){if(Ha===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Ha===0){if(dn.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(dn.page!==1){dn.page=dn.page-1,Cn(un({},dn));const Sa=yield mo(dn);if((Sa==null?void 0:Sa.status)===0){const Ee=(Ia=Sa==null?void 0:Sa.data)==null?void 0:Ia.articles[((Is=(Qa=Sa==null?void 0:Sa.data)==null?void 0:Qa.articles)==null?void 0:Is.length)-1];Ko(Ee==null?void 0:Ee.id),console.log(eo.target,555)}}}else{const Sa=qr[Ha-1];Ko(Sa==null?void 0:Sa.id)}}if(Vi==="next"){if(Ha===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((dn.page-1)*dn.limit+(Ha+1)===dn.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Ha+1===dn.limit){dn.page=dn.page+1,Cn(un({},dn));const Sa=yield mo(dn);if((Sa==null?void 0:Sa.status)===0){const Ee=(ls=Sa==null?void 0:Sa.data)==null?void 0:ls.articles[0];Ko(Ee==null?void 0:Ee.id)}}else{const Sa=qr[Ha+1];Ko(Sa==null?void 0:Sa.id)}}});return z.createElement("div",{className:lt.wrap,ref:zi},z.createElement("div",{className:lt.head},z.createElement("div",{className:lt.sort,onClick:Eo},z.createElement("span",null,"\u6700\u65B0"),z.createElement("aside",null,z.createElement(Vs.Z,{style:{color:(dn==null?void 0:dn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),z.createElement(Oe.Z,{style:{color:(dn==null?void 0:dn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),z.createElement(Ve.default.Search,{value:dn.save_search,className:lt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:eo=>{dn.save_search=eo.target.value,Cn(un({},dn))},onSearch:Ra}),z.createElement("div",{onClick:Qi,className:lt.btn},z.createElement("img",{src:$s}),"\u5199\u9898\u89E3")),z.createElement("div",{className:lt.listWarp},z.createElement(de.Z,{spinning:Kt,className:"mt20"},qr==null?void 0:qr.map((eo,Vi)=>{let Qa=!0;return Vi+1===qr.length&&Vi!==0&&(Qa=!1),z.createElement(_o,{active:Fr,key:eo.id,data:eo,showLine:Qa,onClick:ui,onAssist:Os,onHide:Cs})}),(qr==null?void 0:qr.length)===0&&z.createElement(Je.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),z.createElement(Gt.Z,{className:lt.pagination,showTotal:eo=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},eo),"\u6761\u6570\u636E"),total:dn.total,showSizeChanger:!1,current:dn==null?void 0:dn.page,onChange:Xa,hideOnSinglePage:!0,showQuickJumper:!0}),Fi>0&&z.createElement("div",{className:lt.fixedRight,style:{width:zn}},Fi===1&&z.createElement(On,{identifier:Te,onClose:So,onOk:li}),Fi===2&&z.createElement(On,{active:Fr,identifier:Te,onClose:So,onOk:fi}),Fi===3&&z.createElement(el,{btnShowStatus:xo,onArticlesSkip:ys,detailsIndex:Yr,active:Fr,identifier:Te,onClose:So,onOk:zs,onEdit:kr,onAssist:Os,onDelete:Us})))},Sr={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"},no=Object.defineProperty,ri=Object.defineProperties,Uo=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,$r=(Te,ze,Ke)=>ze in Te?no(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ri=(Te,ze)=>{for(var Ke in ze||(ze={}))Wo.call(ze,Ke)&&$r(Te,Ke,ze[Ke]);if(oi)for(var Ke of oi(ze))No.call(ze,Ke)&&$r(Te,Ke,ze[Ke]);return Te},$i=(Te,ze)=>ri(Te,Uo(ze)),Gi=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Ga=({visible:Te,onVisible:ze,value:Ke,onChange:ur,setIndex:En})=>{var dn;const Cn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[Kt,yn]=(0,z.useState)(Cn);const[zn,bo]=(0,z.useState)([]),[Yr,Oo]=(0,z.useState)([]),[Fr,Ko]=(0,z.useState)(!1),qr=(0,z.useRef)([]),ci=(0,z.useRef)(null),xo=(0,ve.useParams)();(0,z.useEffect)(()=>(xo!=null&&xo.id&&(ci.current=setInterval(()=>{si(30)},3e4)),()=>{clearInterval(ci.current)}),[]);const si=yr=>Gi(void 0,null,function*(){const Qi=yield(0,ce.uc)(xo==null?void 0:xo.id,{practice_time:yr})});(0,z.useEffect)(()=>{mo(Kt),Xn()},[]),(0,z.useEffect)(()=>(window.addEventListener("click",fo),()=>{window.removeEventListener("click",fo)}),[xo==null?void 0:xo.save_identifier,Te]),(0,z.useEffect)(()=>{const yr=qr.current.findIndex(li=>li.identifier===(xo==null?void 0:xo.save_identifier)),Qi=qr.current[yr-1],ui=qr.current[yr+1],kr=document.getElementById("oj-prev"),So=document.getElementById("oj-next");Qi?kr.style.display="block":kr.style.display="none",ui?So.style.display="block":So.style.display="none"},[xo==null?void 0:xo.save_identifier,qr.current]);const Fi=(yr,Qi)=>{if(yr.id===Qi)return yr;for(let ui=0,kr=yr;kr=kr.parentNode;ui++){if(kr.id===Qi)return kr;if(kr==document.documentElement)return!1}},fo=yr=>Gi(void 0,null,function*(){!Fi(yr.target,"oj-drawer")&&Te&&ze(!1);const Qi=qr.current.findIndex(So=>So.identifier===(xo==null?void 0:xo.save_identifier)),ui=qr.current[Qi-1],kr=qr.current[Qi+1];if(yr.target.id==="oj-prev"){if(!ui||Qi===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}yr.target.style.pointerEvents="none",yr.target.style.cursor="not-allowed",yield Eo(ui==null?void 0:ui.identifier),En("0"),setTimeout(()=>{yr.target.style.pointerEvents="auto",yr.target.style.cursor="pointer"},400)}if(yr.target.id==="oj-next"||yr.target.id==="oj-modal-next"){if(!kr||Qi===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}yr.target.style.pointerEvents="none",yr.target.style.cursor="not-allowed",yield Eo(kr==null?void 0:kr.identifier),En("0"),setTimeout(()=>{yr.target.style.pointerEvents="auto",yr.target.style.cursor="pointer"},400)}});(0,z.useEffect)(()=>{ur(xo==null?void 0:xo.save_identifier);const yr=Yr.findIndex(Qi=>Qi.some(ui=>ui.identifier===(xo==null?void 0:xo.save_identifier)));yn(yr===-1?$i(Ri({},Kt),{page:1}):$i(Ri({},Kt),{page:yr+1}))},[xo==null?void 0:xo.save_identifier,Yr]);const zi=yr=>{Kt.page=1,Kt.tag_discipline_id=yr,yn(Ri({},Kt)),mo(Kt)},Xn=()=>Gi(void 0,null,function*(){const yr=yield(0,lr.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});bo(yr.tag_disciplines||[])}),Ei=yr=>{Kt.page=1,Kt.difficulty=typeof yr=="number"?yr:null,yn(Ri({},Kt)),mo(Kt)},mo=yr=>Gi(void 0,null,function*(){var Qi,ui;Ko(!0);const kr=yield(0,ce.KC)(yr);if(kr!=null&&kr.practices_list){for(var So=(Qi=kr==null?void 0:kr.practices_list)==null?void 0:Qi.length,li=[],fi=0;fi<So;fi+=Kt==null?void 0:Kt.per_page)li.push((ui=kr==null?void 0:kr.practices_list)==null?void 0:ui.slice(fi,fi+(Kt==null?void 0:Kt.per_page)));yn($i(Ri({},Kt),{total:kr==null?void 0:kr.practices_count})),qr.current=(kr==null?void 0:kr.practices_list)||[],Oo(li)}Ko(!1)}),Eo=(yr,Qi)=>Gi(void 0,null,function*(){const ui=yield(0,lr.ZP)(`/api/practices/${yr}/start`,{method:"get"});(ui==null?void 0:ui.status)===0&&ve.history.push(`/problems/${ui==null?void 0:ui.identifier}/oj/${yr}`)}),Ra=yr=>{Kt.page=yr,yn(Ri({},Kt))};return z.createElement("div",{className:Sr.wrap,id:"oj-drawer",style:{left:Te?0:-700}},z.createElement("div",{className:Sr.head},z.createElement("div",{className:Sr.title},"\u9898\u76EE\u5217\u8868"),z.createElement(Ve.default.Search,{value:Kt==null?void 0:Kt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:yr=>{Kt.save_search=yr.target.value,yn(Ri({},Kt))},onSearch:()=>{Kt.page=1,Kt.search=Kt.save_search,yn(Ri({},Kt)),mo(Kt)}}),z.createElement(le.default,{value:Kt==null?void 0:Kt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:yr=>yr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:zi},zn.map(yr=>z.createElement(le.default.Option,{key:yr.id,value:yr.id},yr.name))),z.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:yr=>yr.parentNode,value:Kt==null?void 0:Kt.difficulty,onChange:Ei},z.createElement(le.default.Option,{value:1},"\u7B80\u5355"),z.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),z.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),z.createElement("div",{className:Sr.content},z.createElement(de.Z,{spinning:Fr},(dn=Yr==null?void 0:Yr[Kt.page-1])==null?void 0:dn.map(yr=>z.createElement("div",{key:yr.identifier,className:Sr.list,onClick:Qi=>Eo(yr.identifier,Qi)},z.createElement("i",{style:{visibility:Ke===yr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),z.createElement("span",{style:{fontWeight:Ke===yr.identifier?"bold":400,color:Ke===yr.identifier?"#ffffff":"#bac4cd"},title:yr==null?void 0:yr.name},yr.name),(yr==null?void 0:yr.difficulty)===1&&z.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(yr==null?void 0:yr.difficulty)===2&&z.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(yr==null?void 0:yr.difficulty)===3&&z.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),z.createElement("div",{className:Sr.footer},z.createElement(Gt.Z,{showTotal:yr=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},yr),"\u6761\u6570\u636E"),total:Kt.total,pageSize:Kt==null?void 0:Kt.per_page,current:Kt==null?void 0:Kt.page,showSizeChanger:!1,onChange:Ra,showQuickJumper:!0,hideOnSinglePage:!0})))},Zi=({hack:Te,onTriggerPraise:ze,topicId:Ke,page:ur,onPageChange:En,user:dn,submitRecords:Cn,submitting:Kt,submitResult:yn})=>{const[zn]=(0,ve.useSearchParams)(),bo=(0,ve.useLocation)(),[Yr,Oo]=(0,z.useState)(zn.get("tab")||"0"),[Fr,Ko]=(0,z.useState)(0),[qr,ci]=(0,z.useState)(0),[xo,si]=(0,z.useState)(0),[Fi,fo]=(0,z.useState)(),[zi,Xn]=(0,z.useState)(!1);function Ei(Eo){const Ra=Eo.target.id;if(Yr==="3"&&Ra!==Yr&&(qr===1||qr===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:()=>{Oo(Ra)}});return}Oo(Ra)}(0,z.useEffect)(()=>cn.Z.subscribe("to-commit-info",()=>{Oo("1")}),[]);function mo(){Oo("2")}return z.createElement("div",{className:ct["left-panel"]},z.createElement("ul",{className:`${ct["s-navs"]} ${ct["bg-white"]} ${ct.b1}`},z.createElement("li",{className:"mr40 current"},z.createElement("img",{onClick:()=>Xn(!0),src:jn})),z.createElement("li",{className:ct["oj-mr"]},z.createElement("a",{className:Yr==="0"?ct.active:"",id:"0",onClick:Ei},"\u4EFB\u52A1\u63CF\u8FF0")),z.createElement("li",{className:ct["oj-mr"]},z.createElement("a",{className:Yr==="3"?ct.active:"",id:"3",onClick:Ei},"\u9898\u89E3",xo?`(${xo})`:"")),z.createElement("li",{className:ct["oj-mr"]},z.createElement("a",{className:Yr==="2"?ct.active:"",id:"2",onClick:Ei},"\u8BC4\u8BBA",Fr?`(${Fr})`:"")),z.createElement("li",null,z.createElement("a",{className:Yr==="1"?ct.active:"",id:"1",onClick:Ei},"\u63D0\u4EA4\u8BB0\u5F55"))),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},z.createElement(rt,{hack:Te,onTriggerPraise:ze,toDiscuss:mo})),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="1"?"":"hide"}`},Cn!=null&&Cn.records_count?z.createElement(qe,{page:ur,onPageChange:En,topicId:Ke,submitting:Kt,submitRecords:Cn,submitResult:yn}):z.createElement(Je.Z,null)),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="2"?"":"hide"}`,style:{padding:0}},z.createElement(nt,{setDiscussTotal:Ko,user:dn,identifier:Te.identifier,hack:Te,onTriggerPraise:ze})),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="3"?"":"hide"}`,style:{padding:0}},z.createElement(Br,{setListStatus:ci,setFilterListTotal:si,tabStatus:Yr,identifier:Te.identifier})),z.createElement(Ga,{visible:zi,setIndex:Oo,onVisible:Eo=>Xn(Eo),value:Fi,onChange:Eo=>fo(Eo)}))},yi=ee(88508),va=ee(62522),Ma=ee(22707),ta=ee(8861),gi=ee(96486),Wi=ee.n(gi),ko=ee(74855),Er=ee(67294),ji=Object.defineProperty,Ua=Object.defineProperties,ss=Object.getOwnPropertyDescriptors,Oa=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,Bi=(Te,ze,Ke)=>ze in Te?ji(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ai=(Te,ze)=>{for(var Ke in ze||(ze={}))us.call(ze,Ke)&&Bi(Te,Ke,ze[Ke]);if(Oa)for(var Ke of Oa(ze))ds.call(ze,Ke)&&Bi(Te,Ke,ze[Ke]);return Te},ii=(Te,ze)=>Ua(Te,ss(ze)),Ki=(Te,ze)=>{var Ke={};for(var ur in Te)us.call(Te,ur)&&ze.indexOf(ur)<0&&(Ke[ur]=Te[ur]);if(Te!=null&&Oa)for(var ur of Oa(Te))ze.indexOf(ur)<0&&ds.call(Te,ur)&&(Ke[ur]=Te[ur]);return Ke},Ni=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())});const{Countdown:gs}=fe.default,Ts={Java:"java",C:"c",Python:"py","C++":"c"};var Gs=(Te=>(Te[Te.SET_LOADING=0]="SET_LOADING",Te[Te.GET_DATA=1]="GET_DATA",Te[Te.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Te[Te.SET_DATA=3]="SET_DATA",Te[Te.SET_DEBUGING=4]="SET_DEBUGING",Te[Te.SET_SUBMITING=5]="SET_SUBMITING",Te[Te.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Te[Te.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Te[Te.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Te[Te.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Te[Te.SET_PAGE=10]="SET_PAGE",Te[Te.GET_LANGUAGE=11]="GET_LANGUAGE",Te[Te.GET_DRAWER=12]="GET_DRAWER",Te))(Gs||{});function Za(){return new Date().getTime()}const os={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 Es(Te,ze){switch(ze.type){case 1:return ai(ai({},Te),ze.payload);case 3:return ii(ai({},Te),{data:ze.payload});case 0:return ii(ai({},Te),{loading:ze.payload});case 11:return ii(ai({},Te),{languageList:ze.payload});case 12:return ii(ai({},Te),{drawerData:ze.payload});case 9:return ii(ai({},Te),{showNote:ze.payload});case 4:return ii(ai({},Te),{debuging:ze.payload});case 5:return ii(ai({},Te),{submitting:ze.payload});case 2:return ii(ai({},Te),{submitRecords:ze.payload});case 10:return ii(ai({},Te),{submitRecordPage:ze.payload});case 6:return ii(ai({},Te),{executingMessage:ze.payload});case 7:return ai(ai({},Te),ze.payload);case 8:return ai(ai({},Te),ze.payload);default:throw new Error}}var is=({children:Te})=>{var ze,Ke,ur,En;const[dn,Cn]=(0,z.useReducer)(Es,os),{id:Kt}=(0,ve.useParams)(),yn=(0,ve.useLocation)(),[zn]=(0,ve.useSearchParams)(),{languageValue:bo,languageList:Yr,loading:Oo,data:Fr,debugResult:Ko,submitResult:qr,submitRecords:ci,submitRecordPage:xo,showNote:si,debuging:Fi,submitting:fo,executingMessage:zi}=dn,[Xn,Ei]=(0,z.useState)("#FFF"),[mo,Eo]=(0,z.useState)(null),[Ra,yr]=(0,z.useState)({}),[Qi,ui]=(0,z.useState)(!1),kr=(0,z.useRef)(null),So=(0,z.useRef)(null),li=Fr==null?void 0:Fr.user,fi=Fr==null?void 0:Fr.hack;(0,z.useEffect)(()=>((0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,z.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,z.useEffect)(()=>{var je;if(Qi){const Ze=document.getElementById("oj-next"),ot=document.getElementById("oj-modal-next");((je=Ze==null?void 0:Ze.style)==null?void 0:je.display)==="none"?ot.style.display="none":ot.style.display="block"}},[Qi]),(0,z.useEffect)(()=>{function je(){return Ni(this,null,function*(){var Ze,ot,ht;const st=yield(0,ce.fu)(Kt);if(st.status===401)document.location.href="/user/login";else{st.hack=st.practice,st.hack.code=De.Base64.decode((Ze=st==null?void 0:st.hack)==null?void 0:Ze.code);const bt=`${li==null?void 0:li.login}-language`;localStorage.getItem(bt)&&(st.hack.language=localStorage.getItem(bt)),So.current=Wi().cloneDeep(st),So.current.language=(ot=st==null?void 0:st.hack)==null?void 0:ot.language,Cn({type:1,payload:{loading:!1,data:st}}),Cn({type:8,payload:{languageValue:(ht=st==null?void 0:st.hack)==null?void 0:ht.language}})}})}Kt&&je()},[Kt]),(0,z.useEffect)(()=>{Cn({type:8,payload:{debugResult:void 0}}),Cs(),ui(!1)},[Kt]),(0,z.useEffect)(()=>{clearTimeout(kr.current)},[Kt]),(0,z.useEffect)(()=>{Os()},[Kt,xo]);const zs=()=>{window.parent.postMessage("backExercise","*")};function Os(){return Ni(this,null,function*(){try{const je=yield(0,ce.zO)(Kt,{limit:15,page:xo});Cn({type:2,payload:je})}catch(je){console.log(je)}})}function Cs(){return Ni(this,null,function*(){try{const je=yield(0,ce.dd)(Kt);Cn({type:11,payload:je==null?void 0:je.data})}catch(je){console.log(je)}})}function Us(je){Cn({type:10,payload:je})}function Xa(je){return Ni(this,null,function*(){var Ze,ot,ht;const st=((ht=(ot=(Ze=window==null?void 0:window.location)==null?void 0:Ze.pathname)==null?void 0:ot.split("/"))==null?void 0:ht[2])||Kt;return yield(0,ce.n4)(st,je||{code:De.Base64.encode(fi.code),language:bo})})}function ys(){return Ni(this,null,function*(){var je;if(!fi.code||((je=fi.code)==null?void 0:je.trim())===""){pe.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(!fo){Cn({type:5,payload:!0});try{if(cn.Z.publish("to-commit-info"),(yield Xa()).status===0){let xt=function(){return Ni(this,null,function*(){const{status:qt,data:Xt}=yield(0,ce.rX)(Kt,"submit"),kn=Za()-Bt>(st*bt+3)*1e3;if(qt!==0&&!kn&&setTimeout(xt,1e3),kn){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),Cn({type:5,payload:!1});return}if(qt===0){Xt.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Mn=yield(0,ce.zO)(Kt,{limit:15,page:xo});Cn({type:8,payload:ii(ai({},dn),{submitResult:Xt,submitting:!1,submitRecords:Mn})}),(Xt==null?void 0:Xt.status)===0&&ui(!0)}})},ot={};const ht=yield(0,ce.bM)(Kt,ot);if(ht.status===-1&&zn.get("exercisesId")){window.parent.location.href=`/classrooms/${zn.get("coursesId")}/exercise/${zn.get("exercisesId")}/detail`;return}const{time_limit:st,test_case_size:bt}=fi,Bt=Za();(ht==null?void 0:ht.status)>-1?xt():Cn({type:4,payload:!1})}}catch(Ze){Cn({type:5,payload:!1})}}})}function eo(){return Ni(this,null,function*(){var je;if(!fi.code||((je=fi.code)==null?void 0:je.trim())===""){pe.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}dn.debuging=!0,Cn({type:4,payload:!0});try{if((yield Xa()).status===0){let Bt=function(){return Ni(this,null,function*(){const{status:xt,message:qt,data:Xt}=yield(0,ce.rX)(Kt,"debug"),kn=Za()-bt>(ot+3)*1e3;if(xt!==0&&!kn&&(Cn({type:6,payload:qt}),setTimeout(Bt,1e3)),kn){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Cn({type:4,payload:!1});return}xt===0&&(Cn({type:4,payload:!1}),Xt.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Cn({type:7,payload:ii(ai({},dn),{debugResult:Xt,debuging:!1})}))})};const{time_limit:ot}=fi;let ht={input:encodeURIComponent(Fr.test_case.input)};const st=yield(0,ce.MU)(Kt,ht);if(st.status===-1&&zn.get("exercisesId")){window.parent.location.href=`/classrooms/${zn.get("coursesId")}/exercise/${zn.get("exercisesId")}/detail`;return}const bt=Za();(st==null?void 0:st.status)>-1?Bt():Cn({type:4,payload:!1})}else Cn({type:4,payload:!1})}catch(Ze){console.log(Ze)}finally{}})}function Vi(je){var Ze;clearTimeout(kr.current),kr.current=setTimeout(()=>{var ot;Xa({code:De.Base64.encode(je),language:(ot=So==null?void 0:So.current)==null?void 0:ot.language})},2e3),Cn({type:3,payload:ii(ai({},So==null?void 0:So.current),{hack:ii(ai({},(Ze=So==null?void 0:So.current)==null?void 0:Ze.hack),{code:je})})})}function Qa(je){let Ze=je.target.value;Cn({type:3,payload:ii(ai({},Fr),{test_case:{input:Ze}})})}const Is=je=>Ni(void 0,null,function*(){var Ze;if(Cn({type:0,payload:!0}),(yield Xa()).status===0){Cn({type:8,payload:{languageValue:je}}),So.current.language=je;const ht=`${li==null?void 0:li.login}-language`;localStorage.setItem(ht,je);const st=yield(0,ce.dd)(Kt);if(st.status===0){const bt=(Ze=st==null?void 0:st.data)==null?void 0:Ze.find(Bt=>Bt.language===je);Vi(De.Base64.decode(bt.code))}setTimeout(()=>{Cn({type:0,payload:!1})},300)}});function Ia(){return Ni(this,null,function*(){try{const je=yield(0,ce.H7)(Kt,{language:bo});je.status===401?ve.history.replace("/login",{from:yn.pathname}):(Vi(De.Base64.decode(je.code)),Cs())}catch(je){console.log(je)}})}function ls(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Er.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Er.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Ni(this,null,function*(){const je=yield(0,ce.fi)(Kt,{language:bo});je.status===401?ve.history.replace("/login",{from:yn.pathname}):Vi(De.Base64.decode(je.code))})}})}function Ha(){Cn({type:9,payload:!0})}function Sa(){Cn({type:9,payload:!1})}function Ee(je){return Ni(this,null,function*(){yield(0,ce.MK)(Kt,je),Cn({type:1,payload:{showNote:!1,data:ii(ai({},Fr),{hack:ii(ai({},fi),{notes:je.notes})})}})})}const we={input:(ze=Fr==null?void 0:Fr.test_case)==null?void 0:ze.input,is_file:(Ke=Fr==null?void 0:Fr.test_case)==null?void 0:Ke.is_file,language:((ur=So.current)==null?void 0:ur.language)||(fi==null?void 0:fi.language),code:fi==null?void 0:fi.code,title:"main."+Ts[fi==null?void 0:fi.language],modify_code:fi==null?void 0:fi.modify_code,notes:fi==null?void 0:fi.notes,debugResult:Ko,debuging:Fi,submitting:fo,executingMessage:zi,id:Kt,languageValue:bo,languageList:Yr,onChangeLanguage:Is,onCancelNote:Sa,onAddNote:Ee,showNote:si,onShowNote:Ha,onSubmitCode:ys,onChangeCode:Vi,onChangeInput:Qa,onDebugCode:eo,onResetCode:Ia,onSyncCode:ls,onUpdateCode:Xa};function Re(){return Ni(this,null,function*(){const{praise_count:je}=yield(0,ce.vl)(fi.id,{container_type:"Hack",type:1});let Ze=ii(ai({},Fr),{hack:ii(ai({},fi),{praises_count:je,user_praise:!fi.user_praise})});Cn({type:3,payload:Ze})})}const Ie={topicId:Kt,submitResult:qr,submitRecords:ci,submitting:fo,page:xo,onPageChange:Us,hack:fi,user:Fr==null?void 0:Fr.user,onTriggerPraise:Re};return console.log(Fr,So==null?void 0:So.current,"data--------"),Er.createElement(Er.Fragment,null,Er.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Oo},Fr?Er.createElement("div",{className:"oj-custom-warp"},Er.createElement("header",{className:Fe.Z.header,style:{minWidth:1200}},Er.createElement("div",null,Er.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${li.image_url}`,alt:"user",width:30}),Er.createElement("span",null,li.name)),Er.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Er.createElement("div",null,fi.name),Er.createElement(yi.Z,{onChange:je=>{},className:"font12 c-grey-999"})),Er.createElement(ko.CopyToClipboard,{text:`${(En=window.location)==null?void 0:En.origin}/problems/${fi.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Er.createElement("span",{className:Fe.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Er.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),fi.edit_privilege?Er.createElement(ve.Link,{className:Fe.Z.btn_back,to:`/problems/${fi.identifier}/ojedit`,style:{marginRight:10}}," ",Er.createElement(ge.Z,null)," \u7F16\u8F91"):null,Er.createElement(ve.Link,{className:Fe.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Er.createElement(be.Z,null),"\u9000\u51FA")),Er.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Er.createElement(Zi,ai({},Ie)),rightChild:Er.createElement(To,ai({},we))})):null),Er.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:Qi,className:"oj-modal"},Er.createElement("section",{className:"oj-modal-content"},Er.createElement("div",{className:"oj-modal-head"},Er.createElement("img",{src:va,alt:""}),Er.createElement("i",{onClick:()=>ui(!1),className:"iconfont icon-guanbi1"})),Er.createElement("aside",null,Er.createElement("img",{className:"mr30",src:ta.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Er.createElement("span",{style:{color:"#75d6ba",marginRight:100}},qr==null?void 0:qr.execute_time,"s"),"\u4F18\u4E8E",Er.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(qr==null?void 0:qr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Er.createElement("aside",{className:"mb50"},Er.createElement("img",{src:Ma.Z,className:"mr30"}),Er.createElement("span",{className:"oj-modal-tt"},Er.createElement("span",null,Er.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Er.createElement("span",{className:"c-light-primary"},qr==null?void 0:qr.execute_memory,"mb")),Er.createElement("span",null,Er.createElement("span",null))),"\u4F18\u4E8E",Er.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(qr==null?void 0:qr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Er.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function na({languageValue:Te,languageList:ze,onChangeLanguage:Ke,title:ur,modify_code:En,onSyncCode:dn,onShowCodeSetting:Cn,onResetCode:Kt}){const yn=(0,ve.useLocation)(),zn=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Er.createElement(re.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:Kt})};return Er.createElement("div",{className:"action-bar"},Er.createElement(le.default,{className:"oj-select",value:Te,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Ke},ze==null?void 0:ze.map(bo=>Er.createElement(le.default.Option,{key:bo.language,value:bo.language},bo.language))),Er.createElement("span",null),Er.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:zn},Er.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Er.createElement("a",{onClick:Cn},Er.createElement("i",{className:"iconfont icon-shezhi"})))}function To(Te){var ze=Te,{id:Ke,input:ur,is_file:En,showNote:dn,onShowNote:Cn,notes:Kt,onCancelNote:yn,onAddNote:zn,debugResult:bo,language:Yr,debuging:Oo,submitting:Fr,executingMessage:Ko,code:qr,onSubmitCode:ci,onDebugCode:xo,onChangeCode:si,onChangeInput:Fi,onUpdateCode:fo}=ze,zi=Ki(ze,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Xn(mo){return Er.createElement(na,ii(ai({},zi),{onShowCodeSetting:mo}))}const Ei={id:Ke,input:ur,debugResult:bo,debuging:Oo,is_file:En,submitting:Fr,executingMessage:Ko,onDebugCode:xo,onChangeCode:si,onSubmitCode:ci,onChangeInput:Fi};return Er.createElement("div",{className:"right-panel"},Er.createElement(pt,{onUpdateCode:()=>{},language:Yr,value:qr,onChange:si,ActionBarRender:Xn}),Er.createElement("div",{className:`note-form-area ${dn?"active":""}`},Er.createElement(it,{onCancel:yn,notes:Kt,callback:zn})),Er.createElement(tt.ZP,ai({},Ei)))}},94189:function(at,We,ee){"use strict";ee.d(We,{h:function(){return z}});var z=(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))(z||{})},33227:function(at,We,ee){"use strict";ee.d(We,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return ve},Rg:function(){return oe},WH:function(){return a},X6:function(){return pe},bM:function(){return be},bx:function(){return y},dd:function(){return me},de:function(){return ue},fi:function(){return ce},fu:function(){return ge},gu:function(){return E},n4:function(){return se},qe:function(){return te},rL:function(){return ae},rX:function(){return ie},uc:function(){return ye},vl:function(){return re},wO:function(){return x},zO:function(){return fe}});var z=ee(33170);function ge(_e){return(0,z.U2)(`mypractices/${_e}.json`,{hidePopLogin:!0})}function be(_e,xe){return(0,z.v_)(`mypractices/${_e}/code_submit.json`,xe)}function ve(_e,xe){return(0,z.v_)(`mypractices/${_e}/code_debug.json`,xe)}function fe(_e,xe){return xe.language&&(xe.language=encodeURIComponent(xe.language)),(0,z.U2)(`mypractices/${_e}/submit_records.json`,xe)}function pe(_e){return(0,z.U2)("mypractices/record_detail.json",{id:_e})}function ie(_e,xe){return(0,z.U2)(`mypractices/${_e}/result.json`,{mode:xe})}function de(_e,xe){return(0,z.v_)(`mypractices/${_e}/add_notes.json`,xe)}function le(_e,xe){return(0,z.v_)(`mypractices/${_e}/restore_initial_code.json`,xe)}function ce(_e,xe){return(0,z.v_)(`mypractices/${_e}/sync_code.json`,xe)}function se(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_code.json`,xe)}function me(_e){return(0,z.v_)(`mypractices/${_e}/initial_codes.json`)}function re(_e,xe){return(0,z.v_)(`discusses/${_e}/plus.json`,xe)}function ne(_e){return(0,z.U2)("practices/practices_list.json",_e)}function a(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles`,xe)}function y(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles`,xe)}function E(_e,xe){return(0,z.gz)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function b(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/edit`,xe)}function x(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function te(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/set_authority_or_excellent`,xe)}function oe(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/praise_or_treads`,xe)}function ae(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/hide`)}function ue(_e,xe){return(0,z.IV)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function ye(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_practice_time_sum`,xe)}},93989:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return re}});var z=ee(67294),ge=ee(2453),be=ee(83062),ve=ee(57953),fe=ee(71230),pe=ee(15746),ie=ee(28452),de=ee(71577),le=ee(35567),ce=ee(33170),se=ee(85725),me=(a,y,E)=>new Promise((b,x)=>{var te=ue=>{try{ae(E.next(ue))}catch(ye){x(ye)}},oe=ue=>{try{ae(E.throw(ue))}catch(ye){x(ye)}},ae=ue=>ue.done?b(ue.value):Promise.resolve(ue.value).then(te,oe);ae((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,te]=(0,z.useState)(""),[oe,ae]=(0,z.useState)(!1);function ue(_e){te(_e)}function ye(){if(!x){ge.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),te("")}return(0,z.useEffect)(()=>{y!=a&&ae(!1)},[y]),z.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},z.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:ue,extraUse:b&&z.createElement(be.Z,{color:"#fff",open:oe,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:oe,activeDiscussIndex:y,onChange:ue,setIsOpen:ae}),overlayStyle:{maxWidth:600}},z.createElement("a",{title:oe?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ae(!oe)},z.createElement("i",{className:"iconfont icon-dianzan11"})))}),z.createElement("a",{onClick:ye,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,z.useState)(!1),[b,x]=(0,z.useState)([]),[te,oe]=(0,z.useState)(1);(0,z.useEffect)(()=>{a!=null&&a.isOpen?ae():(oe(1),x([]))},[a==null?void 0:a.isOpen]);const ae=()=>me(void 0,null,function*(){E(!0);const ue=yield(0,ce.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ue==null?void 0:ue.status)==0&&x(ue==null?void 0:ue.answer),E(!1)});return z.createElement(ve.Z,{spinning:y},z.createElement("div",{style:{color:"#000"}},z.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[te-1])||""}),z.createElement(fe.Z,{justify:"end",align:"middle"},z.createElement(pe.Z,null,z.createElement(ie.Z,{simple:!0,current:te,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ue=>{oe(ue)}})),z.createElement(pe.Z,null,z.createElement(de.ZP,{onClick:()=>me(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[te-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(at,We,ee){"use strict";ee.d(We,{BU:function(){return ge},Dj:function(){return z},gH:function(){return be},vp:function(){return ve}});function z(fe){try{fe.mozRequestFullScreen?fe.mozRequestFullScreen():fe.webkitRequestFullScreen&&fe.webkitRequestFullScreen()}catch(pe){console.log(pe,":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 ve(){var fe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",fe),window.isFullScreen?window.isFullScreen:fe!=null}},40471:function(at,We,ee){"use strict";ee.d(We,{G:function(){return fe},t:function(){return ve}});var z=ee(58971),ge=ee.n(z);const be=null;function ve(pe,ie){let de=ge().get("__ec");de||(de={}),de[pe]=ie,ge().set("__ec",de)}function fe(pe,ie){let de=ge().get("__ec");return de?de[pe]===void 0?ie:de[pe]:ie}},24577:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return La}});class z{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(he,Se){return he.__proto__=Se,he},Object.assign=Object.assign||function(he){if(he==null)throw new TypeError("Cannot convert undefined or null to object");let Se=Object(he);for(let Pe=1;Pe<arguments.length;Pe++){let Le=arguments[Pe];if(Le!=null)for(let Ne in Le)Le.hasOwnProperty(Ne)&&(Se[Ne]=Le[Ne])}return Se},typeof self.Promise!="function"&&ee(82702).polyfill()}}z.install();var ge=z,be=ee(17187),ve=ee.n(be);class fe{static e(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","error",Pe),fe.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","info",Pe),fe.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","warn",Pe),fe.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","debug",Pe),fe.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","verbose",Pe),fe.ENABLE_VERBOSE&&console.log(Pe)}}fe.GLOBAL_TAG="flv.js",fe.FORCE_GLOBAL_TAG=!1,fe.ENABLE_ERROR=!0,fe.ENABLE_INFO=!0,fe.ENABLE_WARN=!0,fe.ENABLE_DEBUG=!0,fe.ENABLE_VERBOSE=!0,fe.ENABLE_CALLBACK=!1,fe.emitter=new(ve());var pe=fe;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(he){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=he,this._totalBytes+=he):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=he,this._totalBytes+=he):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=he,this._totalBytes+=he,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let he=(this._now()-this._lastCheckpoint)/1e3;return he==0&&(he=1),this._intervalBytes/he/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let he=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/he/1024}}var de=ie;class le{constructor(he){this._message=he}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ce extends le{constructor(he){super(he)}get name(){return"IllegalStateException"}}class se extends le{constructor(he){super(he)}get name(){return"InvalidArgumentException"}}class me extends le{constructor(he){super(he)}get name(){return"NotImplementedException"}}const re={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(he){this._type=he||"undefined",this._status=re.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=re.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===re.kConnecting||this._status===re.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(he){this._onContentLengthKnown=he}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(he){this._onURLRedirect=he}get onDataArrival(){return this._onDataArrival}set onDataArrival(he){this._onDataArrival=he}get onError(){return this._onError}set onError(he){this._onError=he}get onComplete(){return this._onComplete}set onComplete(he){this._onComplete=he}open(he,Se){throw new me("Unimplemented abstract function!")}abort(){throw new me("Unimplemented abstract function!")}}let y={};function E(){let _n=self.navigator.userAgent.toLowerCase(),he=/(edge)\/([\w.]+)/.exec(_n)||/(opr)[\/]([\w.]+)/.exec(_n)||/(chrome)[ \/]([\w.]+)/.exec(_n)||/(iemobile)[\/]([\w.]+)/.exec(_n)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(_n)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(_n)||/(webkit)[ \/]([\w.]+)/.exec(_n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(_n)||/(msie) ([\w.]+)/.exec(_n)||_n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(_n)||_n.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(_n)||[],Se=/(ipad)/.exec(_n)||/(ipod)/.exec(_n)||/(windows phone)/.exec(_n)||/(iphone)/.exec(_n)||/(kindle)/.exec(_n)||/(android)/.exec(_n)||/(windows)/.exec(_n)||/(mac)/.exec(_n)||/(linux)/.exec(_n)||/(cros)/.exec(_n)||[],Pe={browser:he[5]||he[3]||he[1]||"",version:he[2]||he[4]||"0",majorVersion:he[4]||he[2]||"0",platform:Se[0]||""},Le={};if(Pe.browser){Le[Pe.browser]=!0;let Ne=Pe.majorVersion.split(".");Le.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Ne.length>1&&(Le.version.minor=parseInt(Ne[1],10)),Ne.length>2&&(Le.version.build=parseInt(Ne[2],10))}if(Pe.platform&&(Le[Pe.platform]=!0),(Le.chrome||Le.opr||Le.safari)&&(Le.webkit=!0),Le.rv||Le.iemobile){Le.rv&&delete Le.rv;let Ne="msie";Pe.browser=Ne,Le[Ne]=!0}if(Le.edge){delete Le.edge;let Ne="msedge";Pe.browser=Ne,Le[Ne]=!0}if(Le.opr){let Ne="opera";Pe.browser=Ne,Le[Ne]=!0}if(Le.safari&&Le.android){let Ne="android";Pe.browser=Ne,Le[Ne]=!0}Le.name=Pe.browser,Le.platform=Pe.platform;for(let Ne in y)y.hasOwnProperty(Ne)&&delete y[Ne];Object.assign(y,Le)}E();var b=y;class x extends a{static isSupported(){try{let he=b.msedge&&b.version.minor>=15048,Se=b.msedge?he:!0;return self.fetch&&self.ReadableStream&&Se}catch(he){return!1}}constructor(he,Se){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=he,this._config=Se,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(he,Se){this._dataSource=he,this._range=Se;let Pe=he.url;this._config.reuseRedirectedURL&&he.redirectedURL!=null&&(Pe=he.redirectedURL);let Le=this._seekHandler.getConfig(Pe,Se),Ne=new self.Headers;if(typeof Le.headers=="object"){let lt=Le.headers;for(let fn in lt)lt.hasOwnProperty(fn)&&Ne.append(fn,lt[fn])}let nt={method:"GET",headers:Ne,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let lt in this._config.headers)Ne.append(lt,this._config.headers[lt]);he.cors===!1&&(nt.mode="same-origin"),he.withCredentials&&(nt.credentials="include"),he.referrerPolicy&&(nt.referrerPolicy=he.referrerPolicy),this._status=re.kConnecting,self.fetch(Le.url,nt).then(lt=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(lt.ok&<.status>=200&<.status<=299){if(lt.url!==Le.url&&this._onURLRedirect){let tn=this._seekHandler.removeURLParameters(lt.url);this._onURLRedirect(tn)}let fn=lt.headers.get("Content-Length");return fn!=null&&(this._contentLength=parseInt(fn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,lt.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:lt.status,msg:lt.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+lt.status+" "+lt.statusText)}).catch(lt=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:lt.message});else throw lt})}abort(){this._requestAbort=!0}_pump(he){return he.read().then(Se=>{if(Se.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=re.kError;let Pe=ne.EARLY_EOF,Le={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,Le);else throw new le(Le.msg)}else this._status=re.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=re.kComplete,he.cancel();this._status=re.kBuffering;let Pe=Se.value.buffer,Le=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,Le,this._receivedLength),this._pump(he)}}).catch(Se=>{if(Se.code===11&&b.msedge)return;this._status=re.kError;let Pe=0,Le=null;if((Se.code===19||Se.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,Le={code:Se.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,Le={code:Se.code,msg:Se.message}),this._onError)this._onError(Pe,Le);else throw new le(Le.msg)})}}var te=x;class oe extends a{static isSupported(){try{let he=new XMLHttpRequest;return he.open("GET","https://example.com",!0),he.responseType="moz-chunked-arraybuffer",he.responseType==="moz-chunked-arraybuffer"}catch(he){return pe.w("MozChunkedLoader",he.message),!1}}constructor(he,Se){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=he,this._config=Se,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(he,Se){this._dataSource=he,this._range=Se;let Pe=he.url;this._config.reuseRedirectedURL&&he.redirectedURL!=null&&(Pe=he.redirectedURL);let Le=this._seekHandler.getConfig(Pe,Se);this._requestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="moz-chunked-arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onloadend=this._onLoadEnd.bind(this),Ne.onerror=this._onXhrError.bind(this),he.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let nt=Le.headers;for(let lt in nt)nt.hasOwnProperty(lt)&&Ne.setRequestHeader(lt,nt[lt])}if(typeof this._config.headers=="object"){let nt=this._config.headers;for(let lt in nt)nt.hasOwnProperty(lt)&&Ne.setRequestHeader(lt,nt[lt])}this._status=re.kConnecting,Ne.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=re.kComplete}_onReadyStateChange(he){let Se=he.target;if(Se.readyState===2){if(Se.responseURL!=null&&Se.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(Se.responseURL);this._onURLRedirect(Pe)}if(Se.status!==0&&(Se.status<200||Se.status>299))if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+Se.status+" "+Se.statusText);else this._status=re.kBuffering}}_onProgress(he){if(this._status===re.kError)return;this._contentLength===null&&he.total!==null&&he.total!==0&&(this._contentLength=he.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let Se=he.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onLoadEnd(he){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===re.kError)return;this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(he){this._status=re.kError;let Se=0,Pe=null;if(this._contentLength&&he.loaded<this._contentLength?(Se=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Se=ne.EXCEPTION,Pe={code:-1,msg:he.constructor.name+" "+he.type}),this._onError)this._onError(Se,Pe);else throw new le(Pe.msg)}}var ae=oe;class ue extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let he=new XMLHttpRequest;return he.open("GET","https://example.com",!0),he.responseType="ms-stream",he.responseType==="ms-stream"}catch(he){return Log.w("MSStreamLoader",he.message),!1}}constructor(he,Se){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=he,this._config=Se,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(he,Se){this._internalOpen(he,Se,!1)}_internalOpen(he,Se,Pe){this._dataSource=he,Pe?this._currentRange=Se:this._totalRange=Se;let Le=he.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Le=this._currentRedirectedURL:he.redirectedURL!=null&&(Le=he.redirectedURL));let Ne=this._seekHandler.getConfig(Le,Se);this._currentRequestURL=Ne.url;let nt=this._reader=new self.MSStreamReader;nt.onprogress=this._msrOnProgress.bind(this),nt.onload=this._msrOnLoad.bind(this),nt.onerror=this._msrOnError.bind(this);let lt=this._xhr=new XMLHttpRequest;if(lt.open("GET",Ne.url,!0),lt.responseType="ms-stream",lt.onreadystatechange=this._xhrOnReadyStateChange.bind(this),lt.onerror=this._xhrOnError.bind(this),he.withCredentials&&(lt.withCredentials=!0),typeof Ne.headers=="object"){let fn=Ne.headers;for(let tn in fn)fn.hasOwnProperty(tn)&<.setRequestHeader(tn,fn[tn])}if(typeof this._config.headers=="object"){let fn=this._config.headers;for(let tn in fn)fn.hasOwnProperty(tn)&<.setRequestHeader(tn,fn[tn])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,lt.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(he){let Se=he.target;if(Se.readyState===2)if(Se.status>=200&&Se.status<=299){if(this._status=LoaderStatus.kBuffering,Se.responseURL!=null){let Le=this._seekHandler.removeURLParameters(Se.responseURL);Se.responseURL!==this._currentRequestURL&&Le!==this._currentRedirectedURL&&(this._currentRedirectedURL=Le,this._onURLRedirect&&this._onURLRedirect(Le))}let Pe=Se.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let Le=parseInt(Pe);Le>0&&(this._contentLength=Le,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+Se.status+" "+Se.statusText);else if(Se.readyState===3&&Se.status>=200&&Se.status<=299){this._status=LoaderStatus.kBuffering;let Pe=Se.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(he){this._status=LoaderStatus.kError;let Se=LoaderErrors.EXCEPTION,Pe={code:-1,msg:he.constructor.name+" "+he.type};if(this._onError)this._onError(Se,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(he){let Pe=he.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let Le=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Ne=this._totalRange.from+this._receivedLength;this._receivedLength+=Le.byteLength,this._onDataArrival&&this._onDataArrival(Le,Ne,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Ne+Le.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let he={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,he,!0)}}_msrOnLoad(he){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(he){this._status=LoaderStatus.kError;let Se=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Se=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(Se=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:he.constructor.name+" "+he.type}),this._onError)this._onError(Se,Pe);else throw new RuntimeException(Pe.msg)}}var ye=null;class _e extends a{static isSupported(){try{let he=new XMLHttpRequest;return he.open("GET","https://example.com",!0),he.responseType="arraybuffer",he.responseType==="arraybuffer"}catch(he){return pe.w("RangeLoader",he.message),!1}}constructor(he,Se){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=he,this._config=Se,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(he,Se){this._dataSource=he,this._range=Se,this._status=re.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 he=this._currentChunkSizeKB*1024,Se=this._range.from+this._receivedLength,Pe=Se+he;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:Se,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(he,Se){this._lastTimeLoaded=0;let Pe=he.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:he.redirectedURL!=null&&(Pe=he.redirectedURL));let Le=this._seekHandler.getConfig(Pe,Se);this._currentRequestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onload=this._onLoad.bind(this),Ne.onerror=this._onXhrError.bind(this),he.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let nt=Le.headers;for(let lt in nt)nt.hasOwnProperty(lt)&&Ne.setRequestHeader(lt,nt[lt])}if(typeof this._config.headers=="object"){let nt=this._config.headers;for(let lt in nt)nt.hasOwnProperty(lt)&&Ne.setRequestHeader(lt,nt[lt])}Ne.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=re.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(he){let Se=he.target;if(Se.readyState===2){if(Se.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(Se.responseURL);Se.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(Se.status>=200&&Se.status<=299){if(this._waitForTotalLength)return;this._status=re.kBuffering}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new le("RangeLoader: Http code invalid, "+Se.status+" "+Se.statusText)}}_onProgress(he){if(this._status===re.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let Le=he.total;this._internalAbort(),Le!=null&Le!==0&&(this._totalLength=Le)}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 Se=he.loaded-this._lastTimeLoaded;this._lastTimeLoaded=he.loaded,this._speedSampler.addBytes(Se)}_normalizeSpeed(he){let Se=this._chunkSizeKBList,Pe=Se.length-1,Le=0,Ne=0,nt=Pe;if(he<Se[0])return Se[0];for(;Ne<=nt;){if(Le=Ne+Math.floor((nt-Ne)/2),Le===Pe||he>=Se[Le]&&he<Se[Le+1])return Se[Le];Se[Le]<he?Ne=Le+1:nt=Le-1}}_onLoad(he){if(this._status===re.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let Se=this._speedSampler.lastSecondKBps;if(Se===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Se=this._speedSampler.currentKBps)),Se!==0){let nt=this._normalizeSpeed(Se);this._currentSpeedNormalized!==nt&&(this._currentSpeedNormalized=nt,this._currentChunkSizeKB=nt)}let Pe=he.target.response,Le=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Ne=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ne=!0,this._onDataArrival&&this._onDataArrival(Pe,Le,this._receivedLength),Ne&&(this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(he){this._status=re.kError;let Se=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Se=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(Se=ne.EXCEPTION,Pe={code:-1,msg:he.constructor.name+" "+he.type}),this._onError)this._onError(Se,Pe);else throw new le(Pe.msg)}}var xe=_e;class Ce extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(he){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(he){try{let Se=this._ws=new self.WebSocket(he.url);Se.binaryType="arraybuffer",Se.onopen=this._onWebSocketOpen.bind(this),Se.onclose=this._onWebSocketClose.bind(this),Se.onmessage=this._onWebSocketMessage.bind(this),Se.onerror=this._onWebSocketError.bind(this),this._status=re.kConnecting}catch(Se){this._status=re.kError;let Pe={code:Se.code,msg:Se.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new le(Pe.msg)}}abort(){let he=this._ws;he&&(he.readyState===0||he.readyState===1)&&(this._requestAbort=!0,he.close()),this._ws=null,this._status=re.kComplete}_onWebSocketOpen(he){this._status=re.kBuffering}_onWebSocketClose(he){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=re.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(he){if(he.data instanceof ArrayBuffer)this._dispatchArrayBuffer(he.data);else if(he.data instanceof Blob){let Se=new FileReader;Se.onload=()=>{this._dispatchArrayBuffer(Se.result)},Se.readAsArrayBuffer(he.data)}else{this._status=re.kError;let Se={code:-1,msg:"Unsupported WebSocket message type: "+he.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}_dispatchArrayBuffer(he){let Se=he,Pe=this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onWebSocketError(he){this._status=re.kError;let Se={code:he.code,msg:he.message};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}var Be=Ce;class Me{constructor(he){this._zeroStart=he||!1}getConfig(he,Se){let Pe={};if(Se.from!==0||Se.to!==-1){let Le;Se.to!==-1?Le=`bytes=${Se.from.toString()}-${Se.to.toString()}`:Le=`bytes=${Se.from.toString()}-`,Pe.Range=Le}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:he,headers:Pe}}removeURLParameters(he){return he}}var mt=Me;class Qe{constructor(he,Se){this._startName=he,this._endName=Se}getConfig(he,Se){let Pe=he;if(Se.from!==0||Se.to!==-1){let Le=!0;Pe.indexOf("?")===-1&&(Pe+="?",Le=!1),Le&&(Pe+="&"),Pe+=`${this._startName}=${Se.from.toString()}`,Se.to!==-1&&(Pe+=`&${this._endName}=${Se.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(he){let Se=he.split("?")[0],Pe,Le=he.indexOf("?");Le!==-1&&(Pe=he.substring(Le+1));let Ne="";if(Pe!=null&&Pe.length>0){let nt=Pe.split("&");for(let lt=0;lt<nt.length;lt++){let fn=nt[lt].split("="),tn=lt>0;fn[0]!==this._startName&&fn[0]!==this._endName&&(tn&&(Ne+="&"),Ne+=nt[lt])}}return Ne.length===0?Se:Se+"?"+Ne}}var pt=Qe;class Ae{constructor(he,Se,Pe){this.TAG="IOController",this._config=Se,this._extraData=Pe,this._stashInitialSize=1024*384,Se.stashInitialSize!=null&&Se.stashInitialSize>0&&(this._stashInitialSize=Se.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,Se.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=he,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(he.url),this._refTotalLength=he.filesize?he.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(he){this._extraData=he}get onDataArrival(){return this._onDataArrival}set onDataArrival(he){this._onDataArrival=he}get onSeeked(){return this._onSeeked}set onSeeked(he){this._onSeeked=he}get onError(){return this._onError}set onError(he){this._onError=he}get onComplete(){return this._onComplete}set onComplete(he){this._onComplete=he}get onRedirect(){return this._onRedirect}set onRedirect(he){this._onRedirect=he}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(he){this._onRecoveredEarlyEof=he}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===xe?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let he=this._config;if(he.seekType==="range")this._seekHandler=new mt(this._config.rangeLoadZeroStart);else if(he.seekType==="param"){let Se=he.seekParamStart||"bstart",Pe=he.seekParamEnd||"bend";this._seekHandler=new pt(Se,Pe)}else if(he.seekType==="custom"){if(typeof he.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new he.customSeekHandler}else throw new se(`Invalid seekType in config: ${he.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Be;else if(te.isSupported())this._loaderClass=te;else if(ae.isSupported())this._loaderClass=ae;else if(xe.isSupported())this._loaderClass=xe;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(he){this._currentRange={from:0,to:-1},he&&(this._currentRange.from=he),this._speedSampler.reset(),he||(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 he=this._resumeFrom;this._resumeFrom=0,this._internalSeek(he,!0)}}seek(he){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(he,!0)}_internalSeek(he,Se){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Se),this._loader.destroy(),this._loader=null;let Pe={from:he,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(he){if(!he||typeof he!="string"||he.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=he}_expandBuffer(he){let Se=this._stashSize;for(;Se+1024*1024*1<he;)Se*=2;if(Se+=1024*1024*1,Se===this._bufferSize)return;let Pe=new ArrayBuffer(Se);if(this._stashUsed>0){let Le=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,Se).set(Le,0)}this._stashBuffer=Pe,this._bufferSize=Se}_normalizeSpeed(he){let Se=this._speedNormalizeList,Pe=Se.length-1,Le=0,Ne=0,nt=Pe;if(he<Se[0])return Se[0];for(;Ne<=nt;){if(Le=Ne+Math.floor((nt-Ne)/2),Le===Pe||he>=Se[Le]&&he<Se[Le+1])return Se[Le];Se[Le]<he?Ne=Le+1:nt=Le-1}}_adjustStashSize(he){let Se=0;this._config.isLive||he<512?Se=he:he>=512&&he<=1024?Se=Math.floor(he*1.5):Se=he*2,Se>8192&&(Se=8192);let Pe=Se*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=Se*1024}_dispatchChunks(he,Se){return this._currentRange.to=Se+he.byteLength-1,this._onDataArrival(he,Se)}_onURLRedirect(he){this._redirectedURL=he,this._onRedirect&&this._onRedirect(he)}_onContentLengthKnown(he){he&&this._fullRequestFlag&&(this._totalLength=he,this._fullRequestFlag=!1)}_onLoaderChunkArrival(he,Se,Pe){if(!this._onDataArrival)throw new ce("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(he.byteLength);let Le=this._speedSampler.lastSecondKBps;if(Le!==0){let Ne=this._normalizeSpeed(Le);this._speedNormalized!==Ne&&(this._speedNormalized=Ne,this._adjustStashSize(Ne))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Se),this._stashUsed+he.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(he),this._stashUsed),this._stashUsed+=he.byteLength;else{let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let nt=this._stashBuffer.slice(0,this._stashUsed),lt=this._dispatchChunks(nt,this._stashByteStart);if(lt<nt.byteLength){if(lt>0){let fn=new Uint8Array(nt,lt);Ne.set(fn,0),this._stashUsed=fn.byteLength,this._stashByteStart+=lt}}else this._stashUsed=0,this._stashByteStart+=lt;this._stashUsed+he.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+he.byteLength),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(he),this._stashUsed),this._stashUsed+=he.byteLength}else{let nt=this._dispatchChunks(he,Se);if(nt<he.byteLength){let lt=he.byteLength-nt;lt>this._bufferSize&&(this._expandBuffer(lt),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(he,nt),0),this._stashUsed+=lt,this._stashByteStart=Se+nt}}}else if(this._stashUsed===0){let Ne=this._dispatchChunks(he,Se);if(Ne<he.byteLength){let nt=he.byteLength-Ne;nt>this._bufferSize&&this._expandBuffer(nt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(he,Ne),0),this._stashUsed+=nt,this._stashByteStart=Se+Ne}}else{this._stashUsed+he.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+he.byteLength);let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ne.set(new Uint8Array(he),this._stashUsed),this._stashUsed+=he.byteLength;let nt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(nt<this._stashUsed&&nt>0){let lt=new Uint8Array(this._stashBuffer,nt);Ne.set(lt,0)}this._stashUsed-=nt,this._stashByteStart+=nt}}_flushStashBuffer(he){if(this._stashUsed>0){let Se=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Se,this._stashByteStart),Le=Se.byteLength-Pe;if(Pe<Se.byteLength)if(he)pe.w(this.TAG,`${Le} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),nt=new Uint8Array(Se,Pe);Ne.set(nt,0),this._stashUsed=nt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Le}return 0}_onLoaderComplete(he,Se){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(he,Se){switch(pe.e(this.TAG,`Loader error, code = ${Se.code}, msg = ${Se.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,he=ne.UNRECOVERABLE_EARLY_EOF),he){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(pe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}he=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(he,Se);else throw new le("IOException: "+Se.msg)}}var De=Ae;const Fe={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 tt(){return Object.assign({},Fe)}class Ve{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let he=new De({},tt()),Se=he.loaderType;return he.destroy(),Se=="fetch-stream-loader"||Se=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let he=new De({},tt()),Se=he.loaderType;return he.destroy(),Se}static supportNativeMediaPlayback(he){Ve.videoElement==null&&(Ve.videoElement=window.document.createElement("video"));let Se=Ve.videoElement.canPlayType(he);return Se==="probably"||Se=="maybe"}static getFeatureList(){let he={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return he.mseFlvPlayback=Ve.supportMSEH264Playback(),he.networkStreamIO=Ve.supportNetworkStreamIO(),he.networkLoaderName=Ve.getNetworkLoaderTypeName(),he.mseLiveFlvPlayback=he.mseFlvPlayback&&he.networkStreamIO,he.nativeMP4H264Playback=Ve.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),he.nativeWebmVP8Playback=Ve.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),he.nativeWebmVP9Playback=Ve.supportNativeMediaPlayback('video/webm; codecs="vp9"'),he}}var Ct=Ve,en={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 nn{static get forceGlobalTag(){return pe.FORCE_GLOBAL_TAG}static set forceGlobalTag(he){pe.FORCE_GLOBAL_TAG=he,nn._notifyChange()}static get globalTag(){return pe.GLOBAL_TAG}static set globalTag(he){pe.GLOBAL_TAG=he,nn._notifyChange()}static get enableAll(){return pe.ENABLE_VERBOSE&&pe.ENABLE_DEBUG&&pe.ENABLE_INFO&&pe.ENABLE_WARN&&pe.ENABLE_ERROR}static set enableAll(he){pe.ENABLE_VERBOSE=he,pe.ENABLE_DEBUG=he,pe.ENABLE_INFO=he,pe.ENABLE_WARN=he,pe.ENABLE_ERROR=he,nn._notifyChange()}static get enableDebug(){return pe.ENABLE_DEBUG}static set enableDebug(he){pe.ENABLE_DEBUG=he,nn._notifyChange()}static get enableVerbose(){return pe.ENABLE_VERBOSE}static set enableVerbose(he){pe.ENABLE_VERBOSE=he,nn._notifyChange()}static get enableInfo(){return pe.ENABLE_INFO}static set enableInfo(he){pe.ENABLE_INFO=he,nn._notifyChange()}static get enableWarn(){return pe.ENABLE_WARN}static set enableWarn(he){pe.ENABLE_WARN=he,nn._notifyChange()}static get enableError(){return pe.ENABLE_ERROR}static set enableError(he){pe.ENABLE_ERROR=he,nn._notifyChange()}static getConfig(){return{globalTag:pe.GLOBAL_TAG,forceGlobalTag:pe.FORCE_GLOBAL_TAG,enableVerbose:pe.ENABLE_VERBOSE,enableDebug:pe.ENABLE_DEBUG,enableInfo:pe.ENABLE_INFO,enableWarn:pe.ENABLE_WARN,enableError:pe.ENABLE_ERROR,enableCallback:pe.ENABLE_CALLBACK}}static applyConfig(he){pe.GLOBAL_TAG=he.globalTag,pe.FORCE_GLOBAL_TAG=he.forceGlobalTag,pe.ENABLE_VERBOSE=he.enableVerbose,pe.ENABLE_DEBUG=he.enableDebug,pe.ENABLE_INFO=he.enableInfo,pe.ENABLE_WARN=he.enableWarn,pe.ENABLE_ERROR=he.enableError,pe.ENABLE_CALLBACK=he.enableCallback}static _notifyChange(){let he=nn.emitter;if(he.listenerCount("change")>0){let Se=nn.getConfig();he.emit("change",Se)}}static registerListener(he){nn.emitter.addListener("change",he)}static removeListener(he){nn.emitter.removeListener("change",he)}static addLogListener(he){pe.emitter.addListener("log",he),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,nn._notifyChange())}static removeLogListener(he){pe.emitter.removeListener("log",he),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,nn._notifyChange())}}nn.emitter=new(ve());var it=nn;class ct{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 he=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Se=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&&he&&Se}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(he){if(this.keyframesIndex==null)return null;let Se=this.keyframesIndex,Pe=this._search(Se.times,he);return{index:Pe,milliseconds:Se.times[Pe],fileposition:Se.filepositions[Pe]}}_search(he,Se){let Pe=0,Le=he.length-1,Ne=0,nt=0,lt=Le;for(Se<he[0]&&(Pe=0,nt=lt+1);nt<=lt;)if(Ne=nt+Math.floor((lt-nt)/2),Ne===Le||Se>=he[Ne]&&Se<he[Ne+1]){Pe=Ne;break}else he[Ne]<Se?nt=Ne+1:lt=Ne-1;return Pe}}var wt=ct;function Vt(_n,he,Se){let Pe=_n;if(he+Se<Pe.length){for(;Se--;)if((Pe[++he]&192)!==128)return!1;return!0}else return!1}function Gt(_n){let he=[],Se=_n,Pe=0,Le=_n.length;for(;Pe<Le;){if(Se[Pe]<128){he.push(String.fromCharCode(Se[Pe])),++Pe;continue}else if(!(Se[Pe]<192)){if(Se[Pe]<224){if(Vt(Se,Pe,1)){let Ne=(Se[Pe]&31)<<6|Se[Pe+1]&63;if(Ne>=128){he.push(String.fromCharCode(Ne&65535)),Pe+=2;continue}}}else if(Se[Pe]<240){if(Vt(Se,Pe,2)){let Ne=(Se[Pe]&15)<<12|(Se[Pe+1]&63)<<6|Se[Pe+2]&63;if(Ne>=2048&&(Ne&63488)!==55296){he.push(String.fromCharCode(Ne&65535)),Pe+=3;continue}}}else if(Se[Pe]<248&&Vt(Se,Pe,3)){let Ne=(Se[Pe]&7)<<18|(Se[Pe+1]&63)<<12|(Se[Pe+2]&63)<<6|Se[Pe+3]&63;if(Ne>65536&&Ne<1114112){Ne-=65536,he.push(String.fromCharCode(Ne>>>10|55296)),he.push(String.fromCharCode(Ne&1023|56320)),Pe+=4;continue}}}he.push("\uFFFD"),++Pe}return he.join("")}var Ln=Gt;let He=function(){let _n=new ArrayBuffer(2);return new DataView(_n).setInt16(0,256,!0),new Int16Array(_n)[0]===256}();class on{static parseScriptData(he,Se,Pe){let Le={};try{let Ne=on.parseValue(he,Se,Pe),nt=on.parseValue(he,Se+Ne.size,Pe-Ne.size);Le[Ne.data]=nt.data}catch(Ne){pe.e("AMF",Ne.toString())}return Le}static parseObject(he,Se,Pe){if(Pe<3)throw new ce("Data not enough when parse ScriptDataObject");let Le=on.parseString(he,Se,Pe),Ne=on.parseValue(he,Se+Le.size,Pe-Le.size),nt=Ne.objectEnd;return{data:{name:Le.data,value:Ne.data},size:Le.size+Ne.size,objectEnd:nt}}static parseVariable(he,Se,Pe){return on.parseObject(he,Se,Pe)}static parseString(he,Se,Pe){if(Pe<2)throw new ce("Data not enough when parse String");let Ne=new DataView(he,Se,Pe).getUint16(0,!He),nt;return Ne>0?nt=Ln(new Uint8Array(he,Se+2,Ne)):nt="",{data:nt,size:2+Ne}}static parseLongString(he,Se,Pe){if(Pe<4)throw new ce("Data not enough when parse LongString");let Ne=new DataView(he,Se,Pe).getUint32(0,!He),nt;return Ne>0?nt=Ln(new Uint8Array(he,Se+4,Ne)):nt="",{data:nt,size:4+Ne}}static parseDate(he,Se,Pe){if(Pe<10)throw new ce("Data size invalid when parse Date");let Le=new DataView(he,Se,Pe),Ne=Le.getFloat64(0,!He),nt=Le.getInt16(8,!He);return Ne+=nt*60*1e3,{data:new Date(Ne),size:10}}static parseValue(he,Se,Pe){if(Pe<1)throw new ce("Data not enough when parse Value");let Le=new DataView(he,Se,Pe),Ne=1,nt=Le.getUint8(0),lt,fn=!1;try{switch(nt){case 0:lt=Le.getFloat64(1,!He),Ne+=8;break;case 1:{lt=!!Le.getUint8(1),Ne+=1;break}case 2:{let tn=on.parseString(he,Se+1,Pe-1);lt=tn.data,Ne+=tn.size;break}case 3:{lt={};let tn=0;for((Le.getUint32(Pe-4,!He)&16777215)===9&&(tn=3);Ne<Pe-4;){let Tn=on.parseObject(he,Se+Ne,Pe-Ne-tn);if(Tn.objectEnd)break;lt[Tn.data.name]=Tn.data.value,Ne+=Tn.size}Ne<=Pe-3&&(Le.getUint32(Ne-1,!He)&16777215)===9&&(Ne+=3);break}case 8:{lt={},Ne+=4;let tn=0;for((Le.getUint32(Pe-4,!He)&16777215)===9&&(tn=3);Ne<Pe-8;){let Tn=on.parseVariable(he,Se+Ne,Pe-Ne-tn);if(Tn.objectEnd)break;lt[Tn.data.name]=Tn.data.value,Ne+=Tn.size}Ne<=Pe-3&&(Le.getUint32(Ne-1,!He)&16777215)===9&&(Ne+=3);break}case 9:lt=void 0,Ne=1,fn=!0;break;case 10:{lt=[];let tn=Le.getUint32(1,!He);Ne+=4;for(let Tn=0;Tn<tn;Tn++){let fr=on.parseValue(he,Se+Ne,Pe-Ne);lt.push(fr.data),Ne+=fr.size}break}case 11:{let tn=on.parseDate(he,Se+1,Pe-1);lt=tn.data,Ne+=tn.size;break}case 12:{let tn=on.parseString(he,Se+1,Pe-1);lt=tn.data,Ne+=tn.size;break}default:Ne=Pe,pe.w("AMF","Unsupported AMF value type "+nt)}}catch(tn){pe.e("AMF",tn.toString())}return{data:lt,size:Ne,objectEnd:fn}}}var In=on;class or{constructor(he){this.TAG="ExpGolomb",this._buffer=he,this._buffer_index=0,this._total_bytes=he.byteLength,this._total_bits=he.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let he=this._total_bytes-this._buffer_index;if(he<=0)throw new ce("ExpGolomb: _fillCurrentWord() but no bytes available");let Se=Math.min(4,he),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Se)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=Se,this._current_word_bits_left=Se*8}readBits(he){if(he>32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(he<=this._current_word_bits_left){let nt=this._current_word>>>32-he;return this._current_word<<=he,this._current_word_bits_left-=he,nt}let Se=this._current_word_bits_left?this._current_word:0;Se=Se>>>32-this._current_word_bits_left;let Pe=he-this._current_word_bits_left;this._fillCurrentWord();let Le=Math.min(Pe,this._current_word_bits_left),Ne=this._current_word>>>32-Le;return this._current_word<<=Le,this._current_word_bits_left-=Le,Se=Se<<Le|Ne,Se}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let he;for(he=0;he<this._current_word_bits_left;he++)if(this._current_word&2147483648>>>he)return this._current_word<<=he,this._current_word_bits_left-=he,he;return this._fillCurrentWord(),he+this._skipLeadingZero()}readUEG(){let he=this._skipLeadingZero();return this.readBits(he+1)-1}readSEG(){let he=this.readUEG();return he&1?he+1>>>1:-1*(he>>>1)}}var bn=or;class $t{static _ebsp2rbsp(he){let Se=he,Pe=Se.byteLength,Le=new Uint8Array(Pe),Ne=0;for(let nt=0;nt<Pe;nt++)nt>=2&&Se[nt]===3&&Se[nt-1]===0&&Se[nt-2]===0||(Le[Ne]=Se[nt],Ne++);return new Uint8Array(Le.buffer,0,Ne)}static parseSPS(he){let Se=$t._ebsp2rbsp(he),Pe=new bn(Se);Pe.readByte();let Le=Pe.readByte();Pe.readByte();let Ne=Pe.readByte();Pe.readUEG();let nt=$t.getProfileString(Le),lt=$t.getLevelString(Ne),fn=1,tn=420,Tn=[0,420,422,444],fr=8;if((Le===100||Le===110||Le===122||Le===244||Le===44||Le===83||Le===86||Le===118||Le===128||Le===138||Le===144)&&(fn=Pe.readUEG(),fn===3&&Pe.readBits(1),fn<=3&&(tn=Tn[fn]),fr=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Hr=fn!==3?8:12;for(let rr=0;rr<Hr;rr++)Pe.readBool()&&(rr<6?$t._skipScalingList(Pe,16):$t._skipScalingList(Pe,64))}Pe.readUEG();let Lr=Pe.readUEG();if(Lr===0)Pe.readUEG();else if(Lr===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let Hr=Pe.readUEG();for(let rr=0;rr<Hr;rr++)Pe.readSEG()}let Ot=Pe.readUEG();Pe.readBits(1);let cr=Pe.readUEG(),sr=Pe.readUEG(),Rn=Pe.readBits(1);Rn===0&&Pe.readBits(1),Pe.readBits(1);let Hn=0,tr=0,jr=0,Pr=0;Pe.readBool()&&(Hn=Pe.readUEG(),tr=Pe.readUEG(),jr=Pe.readUEG(),Pr=Pe.readUEG());let ti=1,xr=1,yo=0,Mi=!0,Pi=0,Ai=0;if(Pe.readBool()){if(Pe.readBool()){let Hr=Pe.readByte(),rr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],di=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Hr>0&&Hr<16?(ti=rr[Hr-1],xr=di[Hr-1]):Hr===255&&(ti=Pe.readByte()<<8|Pe.readByte(),xr=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 Hr=Pe.readBits(32),rr=Pe.readBits(32);Mi=Pe.readBool(),Pi=rr,Ai=Hr*2,yo=Pi/Ai}}let Ka=1;(ti!==1||xr!==1)&&(Ka=ti/xr);let Ui=0,Vo=0;if(fn===0)Ui=1,Vo=2-Rn;else{let Hr=fn===3?1:2,rr=fn===1?2:1;Ui=Hr,Vo=rr*(2-Rn)}let Aa=(cr+1)*16,Bn=(2-Rn)*((sr+1)*16);Aa-=(Hn+tr)*Ui,Bn-=(jr+Pr)*Vo;let mr=Math.ceil(Aa*Ka);return Pe.destroy(),Pe=null,{profile_string:nt,level_string:lt,bit_depth:fr,ref_frames:Ot,chroma_format:tn,chroma_format_string:$t.getChromaFormatString(tn),frame_rate:{fixed:Mi,fps:yo,fps_den:Ai,fps_num:Pi},sar_ratio:{width:ti,height:xr},codec_size:{width:Aa,height:Bn},present_size:{width:mr,height:Bn}}}static _skipScalingList(he,Se){let Pe=8,Le=8,Ne=0;for(let nt=0;nt<Se;nt++)Le!==0&&(Ne=he.readSEG(),Le=(Pe+Ne+256)%256),Pe=Le===0?Pe:Le}static getProfileString(he){switch(he){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(he){return(he/10).toFixed(1)}static getChromaFormatString(he){switch(he){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var qe=$t,Pt={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function Nt(_n){return _n>>>8&255|(_n&255)<<8}function Wt(_n){return(_n&4278190080)>>>24|(_n&16711680)>>>8|(_n&65280)<<8|(_n&255)<<24}function dt(_n,he){return _n[he]<<24|_n[he+1]<<16|_n[he+2]<<8|_n[he+3]}class yt{constructor(he,Se){this.TAG="FLVDemuxer",this._config=Se,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=he.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=he.hasAudioTrack,this._hasVideo=he.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new wt,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(he){let Se=new Uint8Array(he),Pe={match:!1};if(Se[0]!==70||Se[1]!==76||Se[2]!==86||Se[3]!==1)return Pe;let Le=(Se[4]&4)>>>2!==0,Ne=(Se[4]&1)!==0,nt=dt(Se,5);return nt<9?Pe:{match:!0,consumed:nt,dataOffset:nt,hasAudioTrack:Le,hasVideoTrack:Ne}}bindDataSource(he){return he.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(he){this._onTrackMetadata=he}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(he){this._onMediaInfo=he}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(he){this._onMetaDataArrived=he}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(he){this._onScriptDataArrived=he}get onError(){return this._onError}set onError(he){this._onError=he}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(he){this._onDataAvailable=he}get timestampBase(){return this._timestampBase}set timestampBase(he){this._timestampBase=he}get overridedDuration(){return this._duration}set overridedDuration(he){this._durationOverrided=!0,this._duration=he,this._mediaInfo.duration=he}set overridedHasAudio(he){this._hasAudioFlagOverrided=!0,this._hasAudio=he,this._mediaInfo.hasAudio=he}set overridedHasVideo(he){this._hasVideoFlagOverrided=!0,this._hasVideo=he,this._mediaInfo.hasVideo=he}resetMediaInfo(){this._mediaInfo=new wt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(he,Se){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ce("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Le=this._littleEndian;if(Se===0)if(he.byteLength>13)Pe=yt.probe(he).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,Se+Pe!==this._dataOffset&&pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(he,Pe).getUint32(0,!Le)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<he.byteLength;){this._dispatch=!0;let Ne=new DataView(he,Pe);if(Pe+11+4>he.byteLength)break;let nt=Ne.getUint8(0),lt=Ne.getUint32(0,!Le)&16777215;if(Pe+11+lt+4>he.byteLength)break;if(nt!==8&&nt!==9&&nt!==18){pe.w(this.TAG,`Unsupported tag type ${nt}, skipped`),Pe+=11+lt+4;continue}let fn=Ne.getUint8(4),tn=Ne.getUint8(5),Tn=Ne.getUint8(6),fr=Ne.getUint8(7),Lr=Tn|tn<<8|fn<<16|fr<<24;(Ne.getUint32(7,!Le)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let cr=Pe+11;switch(nt){case 8:this._parseAudioData(he,cr,lt,Lr);break;case 9:this._parseVideoData(he,cr,lt,Lr,Se+Pe);break;case 18:this._parseScriptData(he,cr,lt);break}let sr=Ne.getUint32(11+lt,!Le);sr!==11+lt&&pe.w(this.TAG,`Invalid PrevTagSize ${sr}`),Pe+=11+lt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(he,Se,Pe){let Le=In.parseScriptData(he,Se,Pe);if(Le.hasOwnProperty("onMetaData")){if(Le.onMetaData==null||typeof Le.onMetaData!="object"){pe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&pe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Le;let Ne=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ne)),typeof Ne.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ne.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Ne.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ne.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Ne.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ne.audiodatarate),typeof Ne.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ne.videodatarate),typeof Ne.width=="number"&&(this._mediaInfo.width=Ne.width),typeof Ne.height=="number"&&(this._mediaInfo.height=Ne.height),typeof Ne.duration=="number"){if(!this._durationOverrided){let nt=Math.floor(Ne.duration*this._timescale);this._duration=nt,this._mediaInfo.duration=nt}}else this._mediaInfo.duration=0;if(typeof Ne.framerate=="number"){let nt=Math.floor(Ne.framerate*1e3);if(nt>0){let lt=nt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=lt,this._referenceFrameRate.fps_num=nt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=lt}}if(typeof Ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let nt=Ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(nt),Ne.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ne,pe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Le).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Le))}_parseKeyframesIndex(he){let Se=[],Pe=[];for(let Le=1;Le<he.times.length;Le++){let Ne=this._timestampBase+Math.floor(he.times[Le]*1e3);Se.push(Ne),Pe.push(he.filepositions[Le])}return{times:Se,filepositions:Pe}}_parseAudioData(he,Se,Pe,Le){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Ne=this._littleEndian,lt=new DataView(he,Se,Pe).getUint8(0),fn=lt>>>4;if(fn!==2&&fn!==10){this._onError(Pt.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+fn);return}let tn=0,Tn=(lt&12)>>>2;if(Tn>=0&&Tn<=4)tn=this._flvSoundRateTable[Tn];else{this._onError(Pt.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Tn);return}let fr=(lt&2)>>>1,Lr=lt&1,Ot=this._audioMetadata,cr=this._audioTrack;if(Ot||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Ot=this._audioMetadata={},Ot.type="audio",Ot.id=cr.id,Ot.timescale=this._timescale,Ot.duration=this._duration,Ot.audioSampleRate=tn,Ot.channelCount=Lr===0?1:2),fn===10){let sr=this._parseAACAudioData(he,Se+1,Pe-1);if(sr==null)return;if(sr.packetType===0){Ot.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Rn=sr.data;Ot.audioSampleRate=Rn.samplingRate,Ot.channelCount=Rn.channelCount,Ot.codec=Rn.codec,Ot.originalCodec=Rn.originalCodec,Ot.config=Rn.config,Ot.refSampleDuration=1024/Ot.audioSampleRate*Ot.timescale,pe.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",Ot);let Hn=this._mediaInfo;Hn.audioCodec=Ot.originalCodec,Hn.audioSampleRate=Ot.audioSampleRate,Hn.audioChannelCount=Ot.channelCount,Hn.hasVideo?Hn.videoCodec!=null&&(Hn.mimeType='video/x-flv; codecs="'+Hn.videoCodec+","+Hn.audioCodec+'"'):Hn.mimeType='video/x-flv; codecs="'+Hn.audioCodec+'"',Hn.isComplete()&&this._onMediaInfo(Hn)}else if(sr.packetType===1){let Rn=this._timestampBase+Le,Hn={unit:sr.data,length:sr.data.byteLength,dts:Rn,pts:Rn};cr.samples.push(Hn),cr.length+=sr.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${sr.packetType}`)}else if(fn===2){if(!Ot.codec){let tr=this._parseMP3AudioData(he,Se+1,Pe-1,!0);if(tr==null)return;Ot.audioSampleRate=tr.samplingRate,Ot.channelCount=tr.channelCount,Ot.codec=tr.codec,Ot.originalCodec=tr.originalCodec,Ot.refSampleDuration=1152/Ot.audioSampleRate*Ot.timescale,pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Ot);let jr=this._mediaInfo;jr.audioCodec=Ot.codec,jr.audioSampleRate=Ot.audioSampleRate,jr.audioChannelCount=Ot.channelCount,jr.audioDataRate=tr.bitRate,jr.hasVideo?jr.videoCodec!=null&&(jr.mimeType='video/x-flv; codecs="'+jr.videoCodec+","+jr.audioCodec+'"'):jr.mimeType='video/x-flv; codecs="'+jr.audioCodec+'"',jr.isComplete()&&this._onMediaInfo(jr)}let sr=this._parseMP3AudioData(he,Se+1,Pe-1,!1);if(sr==null)return;let Rn=this._timestampBase+Le,Hn={unit:sr,length:sr.byteLength,dts:Rn,pts:Rn};cr.samples.push(Hn),cr.length+=sr.length}}_parseAACAudioData(he,Se,Pe){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Le={},Ne=new Uint8Array(he,Se,Pe);return Le.packetType=Ne[0],Ne[0]===0?Le.data=this._parseAACAudioSpecificConfig(he,Se+1,Pe-1):Le.data=Ne.subarray(1),Le}_parseAACAudioSpecificConfig(he,Se,Pe){let Le=new Uint8Array(he,Se,Pe),Ne=null,nt=0,lt=0,fn=null,tn=0,Tn=null;if(nt=lt=Le[0]>>>3,tn=(Le[0]&7)<<1|Le[1]>>>7,tn<0||tn>=this._mpegSamplingRates.length){this._onError(Pt.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let fr=this._mpegSamplingRates[tn],Lr=(Le[1]&120)>>>3;if(Lr<0||Lr>=8){this._onError(Pt.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}nt===5&&(Tn=(Le[1]&7)<<1|Le[2]>>>7,fn=(Le[2]&124)>>>2);let Ot=self.navigator.userAgent.toLowerCase();return Ot.indexOf("firefox")!==-1?tn>=6?(nt=5,Ne=new Array(4),Tn=tn-3):(nt=2,Ne=new Array(2),Tn=tn):Ot.indexOf("android")!==-1?(nt=2,Ne=new Array(2),Tn=tn):(nt=5,Tn=tn,Ne=new Array(4),tn>=6?Tn=tn-3:Lr===1&&(nt=2,Ne=new Array(2),Tn=tn)),Ne[0]=nt<<3,Ne[0]|=(tn&15)>>>1,Ne[1]=(tn&15)<<7,Ne[1]|=(Lr&15)<<3,nt===5&&(Ne[1]|=(Tn&15)>>>1,Ne[2]=(Tn&1)<<7,Ne[2]|=8,Ne[3]=0),{config:Ne,samplingRate:fr,channelCount:Lr,codec:"mp4a.40."+nt,originalCodec:"mp4a.40."+lt}}_parseMP3AudioData(he,Se,Pe,Le){if(Pe<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ne=this._littleEndian,nt=new Uint8Array(he,Se,Pe),lt=null;if(Le){if(nt[0]!==255)return;let fn=nt[1]>>>3&3,tn=(nt[1]&6)>>1,Tn=(nt[2]&240)>>>4,fr=(nt[2]&12)>>>2,Ot=(nt[3]>>>6&3)!==3?2:1,cr=0,sr=0,Rn=34,Hn="mp3";switch(fn){case 0:cr=this._mpegAudioV25SampleRateTable[fr];break;case 2:cr=this._mpegAudioV20SampleRateTable[fr];break;case 3:cr=this._mpegAudioV10SampleRateTable[fr];break}switch(tn){case 1:Rn=34,Tn<this._mpegAudioL3BitRateTable.length&&(sr=this._mpegAudioL3BitRateTable[Tn]);break;case 2:Rn=33,Tn<this._mpegAudioL2BitRateTable.length&&(sr=this._mpegAudioL2BitRateTable[Tn]);break;case 3:Rn=32,Tn<this._mpegAudioL1BitRateTable.length&&(sr=this._mpegAudioL1BitRateTable[Tn]);break}lt={bitRate:sr,samplingRate:cr,channelCount:Ot,codec:Hn,originalCodec:Hn}}else lt=nt;return lt}_parseVideoData(he,Se,Pe,Le,Ne){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let nt=new Uint8Array(he,Se,Pe)[0],lt=(nt&240)>>>4,fn=nt&15;if(fn!==7){this._onError(Pt.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${fn}`);return}this._parseAVCVideoPacket(he,Se+1,Pe-1,Le,Ne,lt)}_parseAVCVideoPacket(he,Se,Pe,Le,Ne,nt){if(Pe<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let lt=this._littleEndian,fn=new DataView(he,Se,Pe),tn=fn.getUint8(0),fr=(fn.getUint32(0,!lt)&16777215)<<8>>8;if(tn===0)this._parseAVCDecoderConfigurationRecord(he,Se+4,Pe-4);else if(tn===1)this._parseAVCVideoData(he,Se+4,Pe-4,Le,Ne,nt,fr);else if(tn!==2){this._onError(Pt.FORMAT_ERROR,`Flv: Invalid video packet type ${tn}`);return}}_parseAVCDecoderConfigurationRecord(he,Se,Pe){if(Pe<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Le=this._videoMetadata,Ne=this._videoTrack,nt=this._littleEndian,lt=new DataView(he,Se,Pe);Le?typeof Le.avcc!="undefined"&&pe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Le=this._videoMetadata={},Le.type="video",Le.id=Ne.id,Le.timescale=this._timescale,Le.duration=this._duration);let fn=lt.getUint8(0),tn=lt.getUint8(1),Tn=lt.getUint8(2),fr=lt.getUint8(3);if(fn!==1||tn===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(lt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Pt.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Lr=lt.getUint8(5)&31;if(Lr===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Lr>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Lr}`);let Ot=6;for(let sr=0;sr<Lr;sr++){let Rn=lt.getUint16(Ot,!nt);if(Ot+=2,Rn===0)continue;let Hn=new Uint8Array(he,Se+Ot,Rn);Ot+=Rn;let tr=qe.parseSPS(Hn);if(sr!==0)continue;Le.codecWidth=tr.codec_size.width,Le.codecHeight=tr.codec_size.height,Le.presentWidth=tr.present_size.width,Le.presentHeight=tr.present_size.height,Le.profile=tr.profile_string,Le.level=tr.level_string,Le.bitDepth=tr.bit_depth,Le.chromaFormat=tr.chroma_format,Le.sarRatio=tr.sar_ratio,Le.frameRate=tr.frame_rate,(tr.frame_rate.fixed===!1||tr.frame_rate.fps_num===0||tr.frame_rate.fps_den===0)&&(Le.frameRate=this._referenceFrameRate);let jr=Le.frameRate.fps_den,Pr=Le.frameRate.fps_num;Le.refSampleDuration=Le.timescale*(jr/Pr);let Yi=Hn.subarray(1,4),ti="avc1.";for(let yo=0;yo<3;yo++){let Mi=Yi[yo].toString(16);Mi.length<2&&(Mi="0"+Mi),ti+=Mi}Le.codec=ti;let xr=this._mediaInfo;xr.width=Le.codecWidth,xr.height=Le.codecHeight,xr.fps=Le.frameRate.fps,xr.profile=Le.profile,xr.level=Le.level,xr.refFrames=tr.ref_frames,xr.chromaFormat=tr.chroma_format_string,xr.sarNum=Le.sarRatio.width,xr.sarDen=Le.sarRatio.height,xr.videoCodec=ti,xr.hasAudio?xr.audioCodec!=null&&(xr.mimeType='video/x-flv; codecs="'+xr.videoCodec+","+xr.audioCodec+'"'):xr.mimeType='video/x-flv; codecs="'+xr.videoCodec+'"',xr.isComplete()&&this._onMediaInfo(xr)}let cr=lt.getUint8(Ot);if(cr===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else cr>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${cr}`);Ot++;for(let sr=0;sr<cr;sr++){let Rn=lt.getUint16(Ot,!nt);Ot+=2,Rn!==0&&(Ot+=Rn)}Le.avcc=new Uint8Array(Pe),Le.avcc.set(new Uint8Array(he,Se,Pe),0),pe.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",Le)}_parseAVCVideoData(he,Se,Pe,Le,Ne,nt,lt){let fn=this._littleEndian,tn=new DataView(he,Se,Pe),Tn=[],fr=0,Lr=0;const Ot=this._naluLengthSize;let cr=this._timestampBase+Le,sr=nt===1;for(;Lr<Pe;){if(Lr+4>=Pe){pe.w(this.TAG,`Malformed Nalu near timestamp ${cr}, offset = ${Lr}, dataSize = ${Pe}`);break}let Rn=tn.getUint32(Lr,!fn);if(Ot===3&&(Rn>>>=8),Rn>Pe-Ot){pe.w(this.TAG,`Malformed Nalus near timestamp ${cr}, NaluSize > DataSize!`);return}let Hn=tn.getUint8(Lr+Ot)&31;Hn===5&&(sr=!0);let tr=new Uint8Array(he,Se+Lr,Ot+Rn),jr={type:Hn,data:tr};Tn.push(jr),fr+=tr.byteLength,Lr+=Ot+Rn}if(Tn.length){let Rn=this._videoTrack,Hn={units:Tn,length:fr,isKeyframe:sr,dts:cr,cts:lt,pts:cr+lt};sr&&(Hn.fileposition=Ne),Rn.samples.push(Hn),Rn.length+=fr}}}var Tt=yt;class rt{static init(){rt.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 Se in rt.types)rt.types.hasOwnProperty(Se)&&(rt.types[Se]=[Se.charCodeAt(0),Se.charCodeAt(1),Se.charCodeAt(2),Se.charCodeAt(3)]);let he=rt.constants={};he.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),he.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),he.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),he.STSC=he.STCO=he.STTS,he.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),he.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]),he.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]),he.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),he.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),he.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(he){let Se=8,Pe=null,Le=Array.prototype.slice.call(arguments,1),Ne=Le.length;for(let lt=0;lt<Ne;lt++)Se+=Le[lt].byteLength;Pe=new Uint8Array(Se),Pe[0]=Se>>>24&255,Pe[1]=Se>>>16&255,Pe[2]=Se>>>8&255,Pe[3]=Se&255,Pe.set(he,4);let nt=8;for(let lt=0;lt<Ne;lt++)Pe.set(Le[lt],nt),nt+=Le[lt].byteLength;return Pe}static generateInitSegment(he){let Se=rt.box(rt.types.ftyp,rt.constants.FTYP),Pe=rt.moov(he),Le=new Uint8Array(Se.byteLength+Pe.byteLength);return Le.set(Se,0),Le.set(Pe,Se.byteLength),Le}static moov(he){let Se=rt.mvhd(he.timescale,he.duration),Pe=rt.trak(he),Le=rt.mvex(he);return rt.box(rt.types.moov,Se,Pe,Le)}static mvhd(he,Se){return rt.box(rt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,he>>>24&255,he>>>16&255,he>>>8&255,he&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&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(he){return rt.box(rt.types.trak,rt.tkhd(he),rt.mdia(he))}static tkhd(he){let Se=he.id,Pe=he.duration,Le=he.presentWidth,Ne=he.presentHeight;return rt.box(rt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&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,Le>>>8&255,Le&255,0,0,Ne>>>8&255,Ne&255,0,0]))}static mdia(he){return rt.box(rt.types.mdia,rt.mdhd(he),rt.hdlr(he),rt.minf(he))}static mdhd(he){let Se=he.timescale,Pe=he.duration;return rt.box(rt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(he){let Se=null;return he.type==="audio"?Se=rt.constants.HDLR_AUDIO:Se=rt.constants.HDLR_VIDEO,rt.box(rt.types.hdlr,Se)}static minf(he){let Se=null;return he.type==="audio"?Se=rt.box(rt.types.smhd,rt.constants.SMHD):Se=rt.box(rt.types.vmhd,rt.constants.VMHD),rt.box(rt.types.minf,Se,rt.dinf(),rt.stbl(he))}static dinf(){return rt.box(rt.types.dinf,rt.box(rt.types.dref,rt.constants.DREF))}static stbl(he){return rt.box(rt.types.stbl,rt.stsd(he),rt.box(rt.types.stts,rt.constants.STTS),rt.box(rt.types.stsc,rt.constants.STSC),rt.box(rt.types.stsz,rt.constants.STSZ),rt.box(rt.types.stco,rt.constants.STCO))}static stsd(he){return he.type==="audio"?he.codec==="mp3"?rt.box(rt.types.stsd,rt.constants.STSD_PREFIX,rt.mp3(he)):rt.box(rt.types.stsd,rt.constants.STSD_PREFIX,rt.mp4a(he)):rt.box(rt.types.stsd,rt.constants.STSD_PREFIX,rt.avc1(he))}static mp3(he){let Se=he.channelCount,Pe=he.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Se,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return rt.box(rt.types[".mp3"],Le)}static mp4a(he){let Se=he.channelCount,Pe=he.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Se,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return rt.box(rt.types.mp4a,Le,rt.esds(he))}static esds(he){let Se=he.config||[],Pe=Se.length,Le=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(Se).concat([6,1,2]));return rt.box(rt.types.esds,Le)}static avc1(he){let Se=he.avcc,Pe=he.codecWidth,Le=he.codecHeight,Ne=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,Le>>>8&255,Le&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 rt.box(rt.types.avc1,Ne,rt.box(rt.types.avcC,Se))}static mvex(he){return rt.box(rt.types.mvex,rt.trex(he))}static trex(he){let Se=he.id,Pe=new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return rt.box(rt.types.trex,Pe)}static moof(he,Se){return rt.box(rt.types.moof,rt.mfhd(he.sequenceNumber),rt.traf(he,Se))}static mfhd(he){let Se=new Uint8Array([0,0,0,0,he>>>24&255,he>>>16&255,he>>>8&255,he&255]);return rt.box(rt.types.mfhd,Se)}static traf(he,Se){let Pe=he.id,Le=rt.box(rt.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Ne=rt.box(rt.types.tfdt,new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255])),nt=rt.sdtp(he),lt=rt.trun(he,nt.byteLength+16+16+8+16+8+8);return rt.box(rt.types.traf,Le,Ne,lt,nt)}static sdtp(he){let Se=he.samples||[],Pe=Se.length,Le=new Uint8Array(4+Pe);for(let Ne=0;Ne<Pe;Ne++){let nt=Se[Ne].flags;Le[Ne+4]=nt.isLeading<<6|nt.dependsOn<<4|nt.isDependedOn<<2|nt.hasRedundancy}return rt.box(rt.types.sdtp,Le)}static trun(he,Se){let Pe=he.samples||[],Le=Pe.length,Ne=12+16*Le,nt=new Uint8Array(Ne);Se+=8+Ne,nt.set([0,0,15,1,Le>>>24&255,Le>>>16&255,Le>>>8&255,Le&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255],0);for(let lt=0;lt<Le;lt++){let fn=Pe[lt].duration,tn=Pe[lt].size,Tn=Pe[lt].flags,fr=Pe[lt].cts;nt.set([fn>>>24&255,fn>>>16&255,fn>>>8&255,fn&255,tn>>>24&255,tn>>>16&255,tn>>>8&255,tn&255,Tn.isLeading<<2|Tn.dependsOn,Tn.isDependedOn<<6|Tn.hasRedundancy<<4|Tn.isNonSync,0,0,fr>>>24&255,fr>>>16&255,fr>>>8&255,fr&255],12+16*lt)}return rt.box(rt.types.trun,nt)}static mdat(he){return rt.box(rt.types.mdat,he)}}rt.init();var cn=rt;class Ge{static getSilentFrame(he,Se){if(he==="mp4a.40.2"){if(Se===1)return new Uint8Array([0,200,0,128,35,128]);if(Se===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Se===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Se===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Se===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(Se===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(Se===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(Se===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(Se===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 gt=Ge;class Gn{constructor(he,Se,Pe,Le,Ne){this.dts=he,this.pts=Se,this.duration=Pe,this.originalDts=Le,this.isSyncPoint=Ne,this.fileposition=null}}class Nn{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(he){he.isSyncPoint=!0,this.syncPoints.push(he)}}class St{constructor(){this._list=[]}clear(){this._list=[]}appendArray(he){let Se=this._list;he.length!==0&&(Se.length>0&&he[0].originalDts<Se[Se.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Se,he))}getLastSyncPointBeforeDts(he){if(this._list.length==0)return null;let Se=this._list,Pe=0,Le=Se.length-1,Ne=0,nt=0,lt=Le;for(he<Se[0].dts&&(Pe=0,nt=lt+1);nt<=lt;)if(Ne=nt+Math.floor((lt-nt)/2),Ne===Le||he>=Se[Ne].dts&&he<Se[Ne+1].dts){Pe=Ne;break}else Se[Ne].dts<he?nt=Ne+1:lt=Ne-1;return this._list[Pe]}}class Qt{constructor(he){this._type=he,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(he){let Se=this._list;if(Se.length===0)return-2;let Pe=Se.length-1,Le=0,Ne=0,nt=Pe,lt=0;if(he<Se[0].originalBeginDts)return lt=-1,lt;for(;Ne<=nt;)if(Le=Ne+Math.floor((nt-Ne)/2),Le===Pe||he>Se[Le].lastSample.originalDts&&he<Se[Le+1].originalBeginDts){lt=Le;break}else Se[Le].originalBeginDts<he?Ne=Le+1:nt=Le-1;return lt}_searchNearestSegmentAfter(he){return this._searchNearestSegmentBefore(he)+1}append(he){let Se=this._list,Pe=he,Le=this._lastAppendLocation,Ne=0;Le!==-1&&Le<Se.length&&Pe.originalBeginDts>=Se[Le].lastSample.originalDts&&(Le===Se.length-1||Le<Se.length-1&&Pe.originalBeginDts<Se[Le+1].originalBeginDts)?Ne=Le+1:Se.length>0&&(Ne=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Ne,this._list.splice(Ne,0,Pe)}getLastSegmentBefore(he){let Se=this._searchNearestSegmentBefore(he);return Se>=0?this._list[Se]:null}getLastSampleBefore(he){let Se=this.getLastSegmentBefore(he);return Se!=null?Se.lastSample:null}getLastSyncPointBefore(he){let Se=this._searchNearestSegmentBefore(he),Pe=this._list[Se].syncPoints;for(;Pe.length===0&&Se>0;)Se--,Pe=this._list[Se].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class hn{constructor(he){this.TAG="MP4Remuxer",this._config=he,this._isLive=he.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 Qt("audio"),this._videoSegmentInfoList=new Qt("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(he){return he.onDataAvailable=this.remux.bind(this),he.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(he){this._onInitSegment=he}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(he){this._onMediaSegment=he}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(he){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(he,Se){if(!this._onMediaSegment)throw new ce("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(he,Se),this._remuxVideo(Se),this._remuxAudio(he)}_onTrackMetadataReceived(he,Se){let Pe=null,Le="mp4",Ne=Se.codec;if(he==="audio")this._audioMeta=Se,Se.codec==="mp3"&&this._mp3UseMpegAudio?(Le="mpeg",Ne="",Pe=new Uint8Array):Pe=cn.generateInitSegment(Se);else if(he==="video")this._videoMeta=Se,Pe=cn.generateInitSegment(Se);else return;if(!this._onInitSegment)throw new ce("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(he,{type:he,data:Pe.buffer,codec:Ne,container:`${he}/${Le}`,mediaDuration:Se.duration})}_calculateDtsBase(he,Se){this._dtsBaseInited||(he.samples&&he.samples.length&&(this._audioDtsBase=he.samples[0].dts),Se.samples&&Se.samples.length&&(this._videoDtsBase=Se.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let he=this._videoStashedLastSample,Se=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};he!=null&&(Pe.samples.push(he),Pe.length=he.length);let Le={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Se!=null&&(Le.samples.push(Se),Le.length=Se.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(Le,!0)}_remuxAudio(he,Se){if(this._audioMeta==null)return;let Pe=he,Le=Pe.samples,Ne,nt=-1,lt=-1,fn=-1,tn=this._audioMeta.refSampleDuration,Tn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,fr=this._dtsBaseInited&&this._audioNextDts===void 0,Lr=!1;if(!Le||Le.length===0||Le.length===1&&!Se)return;let Ot=0,cr=null,sr=0;Tn?(Ot=0,sr=Pe.length):(Ot=8,sr=8+Pe.length);let Rn=null;if(Le.length>1&&(Rn=Le.pop(),sr-=Rn.length),this._audioStashedLastSample!=null){let xr=this._audioStashedLastSample;this._audioStashedLastSample=null,Le.unshift(xr),sr+=xr.length}Rn!=null&&(this._audioStashedLastSample=Rn);let Hn=Le[0].dts-this._dtsBase;if(this._audioNextDts)Ne=Hn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Lr=!0);else{let xr=this._audioSegmentInfoList.getLastSampleBefore(Hn);if(xr!=null){let yo=Hn-(xr.originalDts+xr.duration);yo<=3&&(yo=0);let Mi=xr.dts+xr.duration+yo;Ne=Hn-Mi}else Ne=0}if(Lr){let xr=Hn-Ne,yo=this._videoSegmentInfoList.getLastSegmentBefore(Hn);if(yo!=null&&yo.beginDts<xr){let Mi=gt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Mi){let Pi=yo.beginDts,Ai=xr-yo.beginDts;pe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${Pi}, duration: ${Ai}`),Le.unshift({unit:Mi,dts:Pi,pts:Pi}),sr+=Mi.byteLength}}else Lr=!1}let tr=[];for(let xr=0;xr<Le.length;xr++){let yo=Le[xr],Mi=yo.unit,Pi=yo.dts-this._dtsBase,Ai=Pi-Ne;nt===-1&&(nt=Ai);let pn=0;xr!==Le.length-1?pn=Le[xr+1].dts-this._dtsBase-Ne-Ai:Rn!=null?pn=Rn.dts-this._dtsBase-Ne-Ai:tr.length>=1?pn=tr[tr.length-1].duration:pn=Math.floor(tn);let Ka=!1,Ui=null;if(pn>tn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Ka=!0;let Vo=Math.abs(pn-tn),Aa=Math.ceil(Vo/tn),Bn=Ai+tn;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
dts: ${Ai+pn} ms, expected: ${Ai+Math.round(tn)} ms, delta: ${Math.round(Vo)} ms, generate: ${Aa} frames`);let mr=gt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);mr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),mr=Mi),Ui=[];for(let rr=0;rr<Aa;rr++){let di=Math.round(Bn);if(Ui.length>0){let la=Ui[Ui.length-1];la.duration=di-la.dts}let bi={dts:di,pts:di,cts:0,unit:mr,size:mr.byteLength,duration:0,originalDts:Pi,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ui.push(bi),sr+=bi.size,Bn+=tn}let Hr=Ui[Ui.length-1];Hr.duration=Ai+pn-Hr.dts,pn=Math.round(tn)}tr.push({dts:Ai,pts:Ai,cts:0,unit:yo.unit,size:yo.unit.byteLength,duration:pn,originalDts:Pi,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ka&&tr.push.apply(tr,Ui)}Tn?cr=new Uint8Array(sr):(cr=new Uint8Array(sr),cr[0]=sr>>>24&255,cr[1]=sr>>>16&255,cr[2]=sr>>>8&255,cr[3]=sr&255,cr.set(cn.types.mdat,4));for(let xr=0;xr<tr.length;xr++){let yo=tr[xr].unit;cr.set(yo,Ot),Ot+=yo.byteLength}let jr=tr[tr.length-1];lt=jr.dts+jr.duration,this._audioNextDts=lt;let Pr=new Nn;Pr.beginDts=nt,Pr.endDts=lt,Pr.beginPts=nt,Pr.endPts=lt,Pr.originalBeginDts=tr[0].originalDts,Pr.originalEndDts=jr.originalDts+jr.duration,Pr.firstSample=new Gn(tr[0].dts,tr[0].pts,tr[0].duration,tr[0].originalDts,!1),Pr.lastSample=new Gn(jr.dts,jr.pts,jr.duration,jr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Pr),Pe.samples=tr,Pe.sequenceNumber++;let Yi=null;Tn?Yi=new Uint8Array:Yi=cn.moof(Pe,nt),Pe.samples=[],Pe.length=0;let ti={type:"audio",data:this._mergeBoxes(Yi,cr).buffer,sampleCount:tr.length,info:Pr};Tn&&fr&&(ti.timestampOffset=nt),this._onMediaSegment("audio",ti)}_remuxVideo(he,Se){if(this._videoMeta==null)return;let Pe=he,Le=Pe.samples,Ne,nt=-1,lt=-1,fn=-1,tn=-1;if(!Le||Le.length===0||Le.length===1&&!Se)return;let Tn=8,fr=null,Lr=8+he.length,Ot=null;if(Le.length>1&&(Ot=Le.pop(),Lr-=Ot.length),this._videoStashedLastSample!=null){let jr=this._videoStashedLastSample;this._videoStashedLastSample=null,Le.unshift(jr),Lr+=jr.length}Ot!=null&&(this._videoStashedLastSample=Ot);let cr=Le[0].dts-this._dtsBase;if(this._videoNextDts)Ne=cr-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ne=0;else{let jr=this._videoSegmentInfoList.getLastSampleBefore(cr);if(jr!=null){let Pr=cr-(jr.originalDts+jr.duration);Pr<=3&&(Pr=0);let Yi=jr.dts+jr.duration+Pr;Ne=cr-Yi}else Ne=0}let sr=new Nn,Rn=[];for(let jr=0;jr<Le.length;jr++){let Pr=Le[jr],Yi=Pr.dts-this._dtsBase,ti=Pr.isKeyframe,xr=Yi-Ne,yo=Pr.cts,Mi=xr+yo;nt===-1&&(nt=xr,fn=Mi);let Pi=0;if(jr!==Le.length-1?Pi=Le[jr+1].dts-this._dtsBase-Ne-xr:Ot!=null?Pi=Ot.dts-this._dtsBase-Ne-xr:Rn.length>=1?Pi=Rn[Rn.length-1].duration:Pi=Math.floor(this._videoMeta.refSampleDuration),ti){let Ai=new Gn(xr,Mi,Pi,Pr.dts,!0);Ai.fileposition=Pr.fileposition,sr.appendSyncPoint(Ai)}Rn.push({dts:xr,pts:Mi,cts:yo,units:Pr.units,size:Pr.length,isKeyframe:ti,duration:Pi,originalDts:Yi,flags:{isLeading:0,dependsOn:ti?2:1,isDependedOn:ti?1:0,hasRedundancy:0,isNonSync:ti?0:1}})}fr=new Uint8Array(Lr),fr[0]=Lr>>>24&255,fr[1]=Lr>>>16&255,fr[2]=Lr>>>8&255,fr[3]=Lr&255,fr.set(cn.types.mdat,4);for(let jr=0;jr<Rn.length;jr++){let Pr=Rn[jr].units;for(;Pr.length;){let ti=Pr.shift().data;fr.set(ti,Tn),Tn+=ti.byteLength}}let Hn=Rn[Rn.length-1];if(lt=Hn.dts+Hn.duration,tn=Hn.pts+Hn.duration,this._videoNextDts=lt,sr.beginDts=nt,sr.endDts=lt,sr.beginPts=fn,sr.endPts=tn,sr.originalBeginDts=Rn[0].originalDts,sr.originalEndDts=Hn.originalDts+Hn.duration,sr.firstSample=new Gn(Rn[0].dts,Rn[0].pts,Rn[0].duration,Rn[0].originalDts,Rn[0].isKeyframe),sr.lastSample=new Gn(Hn.dts,Hn.pts,Hn.duration,Hn.originalDts,Hn.isKeyframe),this._isLive||this._videoSegmentInfoList.append(sr),Pe.samples=Rn,Pe.sequenceNumber++,this._forceFirstIDR){let jr=Rn[0].flags;jr.dependsOn=2,jr.isNonSync=0}let tr=cn.moof(Pe,nt);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(tr,fr).buffer,sampleCount:Rn.length,info:sr})}_mergeBoxes(he,Se){let Pe=new Uint8Array(he.byteLength+Se.byteLength);return Pe.set(he,0),Pe.set(Se,he.byteLength),Pe}}var jn=hn,Ft={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 nr{constructor(he,Se){this.TAG="TransmuxingController",this._emitter=new(ve()),this._config=Se,he.segments||(he.segments=[{duration:he.duration,filesize:he.filesize,url:he.url}]),typeof he.cors!="boolean"&&(he.cors=!0),typeof he.withCredentials!="boolean"&&(he.withCredentials=!1),this._mediaDataSource=he,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(Le=>{Le.timestampBase=Pe,Pe+=Le.duration,Le.cors=he.cors,Le.withCredentials=he.withCredentials,Se.referrerPolicy&&(Le.referrerPolicy=Se.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(he,Se){this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(he,Se){this._currentSegmentIndex=he;let Pe=this._mediaDataSource.segments[he],Le=this._ioctl=new De(Pe,this._config,he);Le.onError=this._onIOException.bind(this),Le.onSeeked=this._onIOSeeked.bind(this),Le.onComplete=this._onIOComplete.bind(this),Le.onRedirect=this._onIORedirect.bind(this),Le.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Se?this._demuxer.bindDataSource(this._ioctl):Le.onDataArrival=this._onInitChunkArrival.bind(this),Le.open(Se)}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(he){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let Se=this._searchSegmentIndexContains(he);if(Se===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=he;else{let Le=Pe.getNearestKeyframe(he);this._remuxer.seek(Le.milliseconds),this._ioctl.seek(Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds}}else{let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=he,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Se);else{let Le=Pe.getNearestKeyframe(he);this._internalAbort(),this._remuxer.seek(he),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Se].timestampBase,this._loadSegment(Se,Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds,this._reportSegmentMediaInfo(Se)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(he){let Se=this._mediaDataSource.segments,Pe=Se.length-1;for(let Le=0;Le<Se.length;Le++)if(he<Se[Le].timestampBase){Pe=Le-1;break}return Pe}_onInitChunkArrival(he,Se){let Pe=null,Le=0;if(Se>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Le=this._demuxer.parseChunks(he,Se);else if((Pe=Tt.probe(he)).match){this._demuxer=new Tt(Pe,this._config),this._remuxer||(this._remuxer=new jn(this._config));let Ne=this._mediaDataSource;Ne.duration!=null&&!isNaN(Ne.duration)&&(this._demuxer.overridedDuration=Ne.duration),typeof Ne.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ne.hasAudio),typeof Ne.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ne.hasVideo),this._demuxer.timestampBase=Ne.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),Le=this._demuxer.parseChunks(he,Se)}else Pe=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ft.DEMUX_ERROR,Pt.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Le=0;return Le}_onMediaInfo(he){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},he),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,wt.prototype));let Se=Object.assign({},he);Object.setPrototypeOf(Se,wt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Se,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(he){this._emitter.emit(Ft.METADATA_ARRIVED,he)}_onScriptDataArrived(he){this._emitter.emit(Ft.SCRIPTDATA_ARRIVED,he)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(he){let Pe=he+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Ft.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(he){let Se=this._ioctl.extraData;this._mediaDataSource.segments[Se].redirectedURL=he}_onIORecoveredEarlyEof(){this._emitter.emit(Ft.RECOVERED_EARLY_EOF)}_onIOException(he,Se){pe.e(this.TAG,`IOException: type = ${he}, code = ${Se.code}, msg = ${Se.msg}`),this._emitter.emit(Ft.IO_ERROR,he,Se),this._disableStatisticsReporter()}_onDemuxException(he,Se){pe.e(this.TAG,`DemuxException: type = ${he}, info = ${Se}`),this._emitter.emit(Ft.DEMUX_ERROR,he,Se)}_onRemuxerInitSegmentArrival(he,Se){this._emitter.emit(Ft.INIT_SEGMENT,he,Se)}_onRemuxerMediaSegmentArrival(he,Se){if(this._pendingSeekTime==null&&(this._emitter.emit(Ft.MEDIA_SEGMENT,he,Se),this._pendingResolveSeekPoint!=null&&he==="video")){let Pe=Se.info.syncPoints,Le=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===Le&&(Le=Pe[0].pts),this._emitter.emit(Ft.RECOMMEND_SEEKPOINT,Le)}}_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(he){let Se=this._mediaInfo.segments[he],Pe=Object.assign({},Se);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(Ft.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let he={};he.url=this._ioctl.currentURL,he.hasRedirect=this._ioctl.hasRedirect,he.hasRedirect&&(he.redirectedURL=this._ioctl.currentRedirectedURL),he.speed=this._ioctl.currentSpeed,he.loaderType=this._ioctl.loaderType,he.currentSegmentIndex=this._currentSegmentIndex,he.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ft.STATISTICS_INFO,he)}}var ar=nr,Kr=function(_n){let he="TransmuxingWorker",Se=null,Pe=sr.bind(this);ge.install(),_n.addEventListener("message",function(Rn){switch(Rn.data.cmd){case"init":Se=new ar(Rn.data.param[0],Rn.data.param[1]),Se.on(Ft.IO_ERROR,Lr.bind(this)),Se.on(Ft.DEMUX_ERROR,Ot.bind(this)),Se.on(Ft.INIT_SEGMENT,Le.bind(this)),Se.on(Ft.MEDIA_SEGMENT,Ne.bind(this)),Se.on(Ft.LOADING_COMPLETE,nt.bind(this)),Se.on(Ft.RECOVERED_EARLY_EOF,lt.bind(this)),Se.on(Ft.MEDIA_INFO,fn.bind(this)),Se.on(Ft.METADATA_ARRIVED,tn.bind(this)),Se.on(Ft.SCRIPTDATA_ARRIVED,Tn.bind(this)),Se.on(Ft.STATISTICS_INFO,fr.bind(this)),Se.on(Ft.RECOMMEND_SEEKPOINT,cr.bind(this));break;case"destroy":Se&&(Se.destroy(),Se=null),_n.postMessage({msg:"destroyed"});break;case"start":Se.start();break;case"stop":Se.stop();break;case"seek":Se.seek(Rn.data.param);break;case"pause":Se.pause();break;case"resume":Se.resume();break;case"logging_config":{let Hn=Rn.data.param;it.applyConfig(Hn),Hn.enableCallback===!0?it.addLogListener(Pe):it.removeLogListener(Pe);break}}});function Le(Rn,Hn){let tr={msg:Ft.INIT_SEGMENT,data:{type:Rn,data:Hn}};_n.postMessage(tr,[Hn.data])}function Ne(Rn,Hn){let tr={msg:Ft.MEDIA_SEGMENT,data:{type:Rn,data:Hn}};_n.postMessage(tr,[Hn.data])}function nt(){let Rn={msg:Ft.LOADING_COMPLETE};_n.postMessage(Rn)}function lt(){let Rn={msg:Ft.RECOVERED_EARLY_EOF};_n.postMessage(Rn)}function fn(Rn){let Hn={msg:Ft.MEDIA_INFO,data:Rn};_n.postMessage(Hn)}function tn(Rn){let Hn={msg:Ft.METADATA_ARRIVED,data:Rn};_n.postMessage(Hn)}function Tn(Rn){let Hn={msg:Ft.SCRIPTDATA_ARRIVED,data:Rn};_n.postMessage(Hn)}function fr(Rn){let Hn={msg:Ft.STATISTICS_INFO,data:Rn};_n.postMessage(Hn)}function Lr(Rn,Hn){_n.postMessage({msg:Ft.IO_ERROR,data:{type:Rn,info:Hn}})}function Ot(Rn,Hn){_n.postMessage({msg:Ft.DEMUX_ERROR,data:{type:Rn,info:Hn}})}function cr(Rn){_n.postMessage({msg:Ft.RECOMMEND_SEEKPOINT,data:Rn})}function sr(Rn,Hn){_n.postMessage({msg:"logcat_callback",data:{type:Rn,logcat:Hn}})}};class Ur{constructor(he,Se){if(this.TAG="Transmuxer",this._emitter=new(ve()),Se.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(18034);this._worker=Pe(Kr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[he,Se]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},it.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:it.getConfig()})}catch(Pe){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ar(he,Se)}else this._controller=new ar(he,Se);if(this._controller){let Pe=this._controller;Pe.on(Ft.IO_ERROR,this._onIOError.bind(this)),Pe.on(Ft.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(Ft.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(Ft.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(Ft.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(Ft.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(Ft.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(Ft.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(Ft.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(Ft.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(Ft.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),it.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(he,Se){this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}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(he){this._worker?this._worker.postMessage({cmd:"seek",param:he}):this._controller.seek(he)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.INIT_SEGMENT,he,Se)})}_onMediaSegment(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.MEDIA_SEGMENT,he,Se)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ft.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ft.RECOVERED_EARLY_EOF)})}_onMediaInfo(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.MEDIA_INFO,he)})}_onMetaDataArrived(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.METADATA_ARRIVED,he)})}_onScriptDataArrived(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.SCRIPTDATA_ARRIVED,he)})}_onStatisticsInfo(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.STATISTICS_INFO,he)})}_onIOError(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.IO_ERROR,he,Se)})}_onDemuxError(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.DEMUX_ERROR,he,Se)})}_onRecommendSeekpoint(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.RECOMMEND_SEEKPOINT,he)})}_onLoggingConfigChanged(he){this._worker&&this._worker.postMessage({cmd:"logging_config",param:he})}_onWorkerMessage(he){let Se=he.data,Pe=Se.data;if(Se.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Se.msg){case Ft.INIT_SEGMENT:case Ft.MEDIA_SEGMENT:this._emitter.emit(Se.msg,Pe.type,Pe.data);break;case Ft.LOADING_COMPLETE:case Ft.RECOVERED_EARLY_EOF:this._emitter.emit(Se.msg);break;case Ft.MEDIA_INFO:Object.setPrototypeOf(Pe,wt.prototype),this._emitter.emit(Se.msg,Pe);break;case Ft.METADATA_ARRIVED:case Ft.SCRIPTDATA_ARRIVED:case Ft.STATISTICS_INFO:this._emitter.emit(Se.msg,Pe);break;case Ft.IO_ERROR:case Ft.DEMUX_ERROR:this._emitter.emit(Se.msg,Pe.type,Pe.info);break;case Ft.RECOMMEND_SEEKPOINT:this._emitter.emit(Se.msg,Pe);break;case"logcat_callback":pe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var Ho=Ur,Po={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class pi{constructor(he){this.TAG="MSEController",this._config=he,this._emitter=new(ve()),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 St}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(he,Se){this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}attachMediaElement(he){if(this._mediaSource)throw new ce("MediaSource has been attached to an HTMLMediaElement!");let Se=this._mediaSource=new window.MediaSource;Se.addEventListener("sourceopen",this.e.onSourceOpen),Se.addEventListener("sourceended",this.e.onSourceEnded),Se.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=he,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),he.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let he=this._mediaSource;for(let Se in this._sourceBuffers){let Pe=this._pendingSegments[Se];Pe.splice(0,Pe.length),this._pendingSegments[Se]=null,this._pendingRemoveRanges[Se]=null,this._lastInitSegments[Se]=null;let Le=this._sourceBuffers[Se];if(Le){if(he.readyState!=="closed"){try{he.removeSourceBuffer(Le)}catch(Ne){pe.e(this.TAG,Ne.message)}Le.removeEventListener("error",this.e.onSourceBufferError),Le.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Se]=null,this._sourceBuffers[Se]=null}}if(he.readyState==="open")try{he.endOfStream()}catch(Se){pe.e(this.TAG,Se.message)}he.removeEventListener("sourceopen",this.e.onSourceOpen),he.removeEventListener("sourceended",this.e.onSourceEnded),he.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(he,Se){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(he),this._pendingSegments[he.type].push(he);return}let Pe=he,Le=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(Le+=`;codecs=${Pe.codec}`);let Ne=!1;if(pe.v(this.TAG,"Received Initialization Segment, mimeType: "+Le),this._lastInitSegments[Pe.type]=Pe,Le!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])pe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${Le}`);else{Ne=!0;try{let nt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Le);nt.addEventListener("error",this.e.onSourceBufferError),nt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(nt){pe.e(this.TAG,nt.message),this._emitter.emit(Po.ERROR,{code:nt.code,msg:nt.message});return}}this._mimeTypes[Pe.type]=Le}Se||this._pendingSegments[Pe.type].push(Pe),Ne||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(he){let Se=he;this._pendingSegments[Se.type].push(Se),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[Se.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(he){for(let Se in this._sourceBuffers){if(!this._sourceBuffers[Se])continue;let Pe=this._sourceBuffers[Se];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Ne){pe.e(this.TAG,Ne.message)}this._idrList.clear();let Le=this._pendingSegments[Se];if(Le.splice(0,Le.length),this._mediaSource.readyState!=="closed"){for(let Ne=0;Ne<Pe.buffered.length;Ne++){let nt=Pe.buffered.start(Ne),lt=Pe.buffered.end(Ne);this._pendingRemoveRanges[Se].push({start:nt,end:lt})}if(Pe.updating||this._doRemoveRanges(),b.safari){let Ne=this._lastInitSegments[Se];Ne&&(this._pendingSegments[Se].push(Ne),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let he=this._mediaSource,Se=this._sourceBuffers;if(!he||he.readyState!=="open"){he&&he.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Se.video&&Se.video.updating||Se.audio&&Se.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,he.endOfStream())}getNearestKeyframe(he){return this._idrList.getLastSyncPointBeforeDts(he)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let he=this._mediaElement.currentTime;for(let Se in this._sourceBuffers){let Pe=this._sourceBuffers[Se];if(Pe){let Le=Pe.buffered;if(Le.length>=1&&he-Le.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let he=this._mediaElement.currentTime;for(let Se in this._sourceBuffers){let Pe=this._sourceBuffers[Se];if(Pe){let Le=Pe.buffered,Ne=!1;for(let nt=0;nt<Le.length;nt++){let lt=Le.start(nt),fn=Le.end(nt);if(lt<=he&&he<fn+3){if(he-lt>=this._config.autoCleanupMaxBackwardDuration){Ne=!0;let tn=he-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Se].push({start:lt,end:tn})}}else fn<he&&(Ne=!0,this._pendingRemoveRanges[Se].push({start:lt,end:fn}))}Ne&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let he=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||he.video&&he.video.updating||he.audio&&he.audio.updating)return;let Se=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(Se)||Pe>Se)&&(pe.v(this.TAG,`Update MediaSource duration from ${Se} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let he in this._pendingRemoveRanges){if(!this._sourceBuffers[he]||this._sourceBuffers[he].updating)continue;let Se=this._sourceBuffers[he],Pe=this._pendingRemoveRanges[he];for(;Pe.length&&!Se.updating;){let Le=Pe.shift();Se.remove(Le.start,Le.end)}}}_doAppendSegments(){let he=this._pendingSegments;for(let Se in he)if(!(!this._sourceBuffers[Se]||this._sourceBuffers[Se].updating)&&he[Se].length>0){let Pe=he[Se].shift();if(Pe.timestampOffset){let Le=this._sourceBuffers[Se].timestampOffset,Ne=Pe.timestampOffset/1e3;Math.abs(Le-Ne)>.1&&(pe.v(this.TAG,`Update MPEG audio timestampOffset from ${Le} to ${Ne}`),this._sourceBuffers[Se].timestampOffset=Ne),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[Se].appendBuffer(Pe.data),this._isBufferFull=!1,Se==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Le){this._pendingSegments[Se].unshift(Pe),Le.code===22?(this._isBufferFull||this._emitter.emit(Po.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Le.message),this._emitter.emit(Po.ERROR,{code:Le.code,msg:Le.message}))}}}_onSourceOpen(){if(pe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let he=this._pendingSourceBufferInit;for(;he.length;){let Se=he.shift();this.appendInitSegment(Se,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Po.SOURCE_OPEN)}_onSourceEnded(){pe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){pe.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 he=this._pendingSegments;return he.video.length>0||he.audio.length>0}_hasPendingRemoveRanges(){let he=this._pendingRemoveRanges;return he.video.length>0||he.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Po.UPDATE_END)}_onSourceBufferError(he){pe.e(this.TAG,`SourceBuffer Error: ${he}`)}}var sa=pi;const qi={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Vr={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:Pt.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Pt.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Pt.CODEC_UNSUPPORTED};class $o{constructor(he,Se){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=tt(),typeof Se=="object"&&Object.assign(this._config,Se),he.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");he.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=he,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(he,Se){he===en.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}):he===en.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}attachMediaElement(he){if(this._mediaElement=he,he.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),he.addEventListener("seeking",this.e.onvSeeking),he.addEventListener("canplay",this.e.onvCanPlay),he.addEventListener("stalled",this.e.onvStalled),he.addEventListener("progress",this.e.onvProgress),this._msectl=new sa(this._config),this._msectl.on(Po.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Po.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Po.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Po.ERROR,Se=>{this._emitter.emit(en.ERROR,qi.MEDIA_ERROR,Vr.MEDIA_MSE_ERROR,Se)}),this._msectl.attachMediaElement(he),this._pendingSeekTime!=null)try{he.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Se){}}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 ce("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ce("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 Ho(this._mediaDataSource,this._config),this._transmuxer.on(Ft.INIT_SEGMENT,(he,Se)=>{this._msectl.appendInitSegment(Se)}),this._transmuxer.on(Ft.MEDIA_SEGMENT,(he,Se)=>{if(this._msectl.appendMediaSegment(Se),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;Se.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ft.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(en.LOADING_COMPLETE)}),this._transmuxer.on(Ft.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(en.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ft.IO_ERROR,(he,Se)=>{this._emitter.emit(en.ERROR,qi.NETWORK_ERROR,he,Se)}),this._transmuxer.on(Ft.DEMUX_ERROR,(he,Se)=>{this._emitter.emit(en.ERROR,qi.MEDIA_ERROR,he,{code:-1,msg:Se})}),this._transmuxer.on(Ft.MEDIA_INFO,he=>{this._mediaInfo=he,this._emitter.emit(en.MEDIA_INFO,Object.assign({},he))}),this._transmuxer.on(Ft.METADATA_ARRIVED,he=>{this._emitter.emit(en.METADATA_ARRIVED,he)}),this._transmuxer.on(Ft.SCRIPTDATA_ARRIVED,he=>{this._emitter.emit(en.SCRIPTDATA_ARRIVED,he)}),this._transmuxer.on(Ft.STATISTICS_INFO,he=>{this._statisticsInfo=this._fillStatisticsInfo(he),this._emitter.emit(en.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ft.RECOMMEND_SEEKPOINT,he=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=he/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(he){this._mediaElement.volume=he}get muted(){return this._mediaElement.muted}set muted(he){this._mediaElement.muted=he}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(he){this._mediaElement?this._internalSeek(he):this._pendingSeekTime=he}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(he){if(he.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return he;let Se=!0,Pe=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();Pe=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):Se=!1;return Se&&(he.decodedFrames=Pe,he.droppedFrames=Le),he}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let he=this._mediaElement.buffered,Se=this._mediaElement.currentTime,Pe=0,Le=0;for(let Ne=0;Ne<he.length;Ne++){let nt=he.start(Ne),lt=he.end(Ne);if(nt<=Se&&Se<lt){Pe=nt,Le=lt;break}}Le>=Se+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){pe.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 he=this._mediaElement.currentTime,Se=this._mediaElement.buffered,Pe=!1;for(let Le=0;Le<Se.length;Le++){let Ne=Se.start(Le),nt=Se.end(Le);if(he>=Ne&&he<nt){he>=nt-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(he){let Se=this._mediaElement.buffered;for(let Pe=0;Pe<Se.length;Pe++){let Le=Se.start(Pe),Ne=Se.end(Pe);if(he>=Le&&he<Ne)return!0}return!1}_internalSeek(he){let Se=this._isTimepointBuffered(he),Pe=!1,Le=0;if(he<1&&this._mediaElement.buffered.length>0){let Ne=this._mediaElement.buffered.start(0);(Ne<1&&he<Ne||b.safari)&&(Pe=!0,Le=b.safari?.1:Ne)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=Le;else if(Se){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=he;else{let Ne=this._msectl.getNearestKeyframe(Math.floor(he*1e3));this._requestSetTime=!0,Ne!=null?this._mediaElement.currentTime=Ne.dts/1e3:this._mediaElement.currentTime=he}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(he),this._transmuxer.seek(Math.floor(he*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=he)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let he=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(he)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(he),this._transmuxer.seek(Math.floor(he*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=he))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(he){let Se=this._mediaElement;if(he||!this._receivedCanPlay||Se.readyState<2){let Pe=Se.buffered;Pe.length>0&&Se.currentTime<Pe.start(0)&&(pe.w(this.TAG,`Playback seems stuck at ${Se.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(he){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(he){let Se=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Se<1&&Pe.length>0){let Le=Pe.start(0);if(Le<1&&Se<Le||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:Le;return}}if(this._isTimepointBuffered(Se)){if(this._alwaysSeekKeyframe){let Le=this._msectl.getNearestKeyframe(Math.floor(Se*1e3));Le!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Le.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Se,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(he){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(he){this._checkAndResumeStuckPlayback(!0)}_onvProgress(he){this._checkAndResumeStuckPlayback()}}var Jo=$o;class Li{constructor(he,Se){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ve()),this._config=tt(),typeof Se=="object"&&Object.assign(this._config,Se),he.type.toLowerCase()==="flv")throw new se("NativePlayer does't support flv MediaDataSource input!");if(he.hasOwnProperty("segments"))throw new se(`NativePlayer(${he.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=he,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(he,Se){he===en.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}):he===en.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}attachMediaElement(he){if(this._mediaElement=he,he.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{he.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Se){}}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 ce("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(he){this._mediaElement.volume=he}get muted(){return this._mediaElement.muted}set muted(he){this._mediaElement.muted=he}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(he){this._mediaElement?this._mediaElement.currentTime=he:this._pendingSeekTime=he}get mediaInfo(){let Se={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(Se.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Se.width=this._mediaElement.videoWidth,Se.height=this._mediaElement.videoHeight)),Se}get statisticsInfo(){let he={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return he;let Se=!0,Pe=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();Pe=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):Se=!1;return Se&&(he.decodedFrames=Pe,he.droppedFrames=Le),he}_onvLoadedMetadata(he){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}}var Lo=Li;ge.install();function Ii(_n,he){let Se=_n;if(Se==null||typeof Se!="object")throw new se("MediaDataSource must be an javascript object!");if(!Se.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(Se.type){case"flv":return new Jo(Se,he);default:return new Lo(Se,he)}}function xi(){return Ct.supportMSEH264Playback()}function Bo(){return Ct.getFeatureList()}let Xr={};Xr.createPlayer=Ii,Xr.isSupported=xi,Xr.getFeatureList=Bo,Xr.BaseLoader=a,Xr.LoaderStatus=re,Xr.LoaderErrors=ne,Xr.Events=en,Xr.ErrorTypes=qi,Xr.ErrorDetails=Vr,Xr.FlvPlayer=Jo,Xr.NativePlayer=Lo,Xr.LoggingControl=it,Object.defineProperty(Xr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var La=Xr},38780:function(at,We){"use strict";function ee(){const z=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(ve=>{const fe=be[ve];fe!==void 0&&(z[ve]=fe)})}return z}We.Z=ee},66367:function(at,We,ee){"use strict";ee.d(We,{F:function(){return z},Z:function(){return ge}});function z(be){return be!=null&&be===be.window}function ge(be,ve){var fe,pe;if(typeof window=="undefined")return 0;const ie=ve?"scrollTop":"scrollLeft";let de=0;return z(be)?de=be[ve?"pageYOffset":"pageXOffset"]:be instanceof Document?de=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(de=be[ie]),be&&!z(be)&&typeof de!="number"&&(de=(pe=((fe=be.ownerDocument)!==null&&fe!==void 0?fe:be).documentElement)===null||pe===void 0?void 0:pe[ie]),de}},57838:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ge}});var z=ee(67294);function ge(){const[,be]=z.useReducer(ve=>ve+1,0);return be}},58375:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ve}});var z=ee(96523);function ge(fe,pe,ie,de){const le=ie-pe;return fe/=de/2,fe<1?le/2*fe*fe*fe+pe:le/2*((fe-=2)*fe*fe+2)+pe}var be=ee(66367);function ve(fe){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:de,duration:le=450}=pe,ce=ie(),se=(0,be.Z)(ce,!0),me=Date.now(),re=()=>{const a=Date.now()-me,y=ge(a>le?le:a,se,fe,le);(0,be.F)(ce)?ce.scrollTo(window.pageXOffset,y):ce instanceof Document||ce.constructor.name==="HTMLDocument"?ce.documentElement.scrollTop=y:ce.scrollTop=y,a<le?(0,z.Z)(re):typeof de=="function"&&de()};(0,z.Z)(re)}},84567:function(at,We,ee){"use strict";ee.d(We,{default:function(){return ye}});var z=ee(94184),ge=ee.n(z),be=ee(95860),ve=ee(67294),fe=ee(53124),pe=ee(98866),ie=ee(65223),le=ve.createContext(null),ce=ee(63185),se=ee(45353),me=ee(92429),re=function(_e,xe){var Ce={};for(var Be in _e)Object.prototype.hasOwnProperty.call(_e,Be)&&xe.indexOf(Be)<0&&(Ce[Be]=_e[Be]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Be=Object.getOwnPropertySymbols(_e);Me<Be.length;Me++)xe.indexOf(Be[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,Be[Me])&&(Ce[Be[Me]]=_e[Be[Me]]);return Ce};const ne=(_e,xe)=>{var Ce;const{prefixCls:Be,className:Me,rootClassName:mt,children:Qe,indeterminate:pt=!1,style:Ae,onMouseEnter:De,onMouseLeave:Fe,skipGroup:tt=!1,disabled:Ve}=_e,Ct=re(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Mt,direction:en,checkbox:nn}=ve.useContext(fe.E_),it=ve.useContext(le),{isFormItemInput:ct}=ve.useContext(ie.aM),wt=ve.useContext(pe.Z),Vt=(Ce=(it==null?void 0:it.disabled)||Ve)!==null&&Ce!==void 0?Ce:wt,Gt=ve.useRef(Ct.value);ve.useEffect(()=>{it==null||it.registerValue(Ct.value)},[]),ve.useEffect(()=>{if(!tt)return Ct.value!==Gt.current&&(it==null||it.cancelValue(Gt.current),it==null||it.registerValue(Ct.value),Gt.current=Ct.value),()=>it==null?void 0:it.cancelValue(Ct.value)},[Ct.value]);const Ln=Mt("checkbox",Be),[He,on]=(0,ce.ZP)(Ln),In=Object.assign({},Ct);it&&!tt&&(In.onChange=function(){Ct.onChange&&Ct.onChange.apply(Ct,arguments),it.toggleOption&&it.toggleOption({label:Qe,value:Ct.value})},In.name=it.name,In.checked=it.value.includes(Ct.value));const or=ge()(`${Ln}-wrapper`,{[`${Ln}-rtl`]:en==="rtl",[`${Ln}-wrapper-checked`]:In.checked,[`${Ln}-wrapper-disabled`]:Vt,[`${Ln}-wrapper-in-form-item`]:ct},nn==null?void 0:nn.className,Me,mt,on),bn=ge()({[`${Ln}-indeterminate`]:pt},me.A,on),$t=pt?"mixed":void 0;return He(ve.createElement(se.Z,{component:"Checkbox",disabled:Vt},ve.createElement("label",{className:or,style:Object.assign(Object.assign({},nn==null?void 0:nn.style),Ae),onMouseEnter:De,onMouseLeave:Fe},ve.createElement(be.Z,Object.assign({"aria-checked":$t},In,{prefixCls:Ln,className:bn,disabled:Vt,ref:xe})),Qe!==void 0&&ve.createElement("span",null,Qe))))};var y=ve.forwardRef(ne),E=ee(74902),b=ee(10366),x=function(_e,xe){var Ce={};for(var Be in _e)Object.prototype.hasOwnProperty.call(_e,Be)&&xe.indexOf(Be)<0&&(Ce[Be]=_e[Be]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Be=Object.getOwnPropertySymbols(_e);Me<Be.length;Me++)xe.indexOf(Be[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,Be[Me])&&(Ce[Be[Me]]=_e[Be[Me]]);return Ce};const te=(_e,xe)=>{const{defaultValue:Ce,children:Be,options:Me=[],prefixCls:mt,className:Qe,rootClassName:pt,style:Ae,onChange:De}=_e,Fe=x(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:tt,direction:Ve}=ve.useContext(fe.E_),[Ct,Mt]=ve.useState(Fe.value||Ce||[]),[en,nn]=ve.useState([]);ve.useEffect(()=>{"value"in Fe&&Mt(Fe.value||[])},[Fe.value]);const it=ve.useMemo(()=>Me.map(qe=>typeof qe=="string"||typeof qe=="number"?{label:qe,value:qe}:qe),[Me]),ct=qe=>{nn(Je=>Je.filter(Pt=>Pt!==qe))},wt=qe=>{nn(Je=>[].concat((0,E.Z)(Je),[qe]))},Vt=qe=>{const Je=Ct.indexOf(qe.value),Pt=(0,E.Z)(Ct);Je===-1?Pt.push(qe.value):Pt.splice(Je,1),"value"in Fe||Mt(Pt),De==null||De(Pt.filter(Nt=>en.includes(Nt)).sort((Nt,Wt)=>{const dt=it.findIndex(Tt=>Tt.value===Nt),yt=it.findIndex(Tt=>Tt.value===Wt);return dt-yt}))},Gt=tt("checkbox",mt),Ln=`${Gt}-group`,[He,on]=(0,ce.ZP)(Gt),In=(0,b.Z)(Fe,["value","disabled"]),or=Me.length?it.map(qe=>ve.createElement(y,{prefixCls:Gt,key:qe.value.toString(),disabled:"disabled"in qe?qe.disabled:Fe.disabled,value:qe.value,checked:Ct.includes(qe.value),onChange:qe.onChange,className:`${Ln}-item`,style:qe.style,title:qe.title},qe.label)):Be,bn={toggleOption:Vt,value:Ct,disabled:Fe.disabled,name:Fe.name,registerValue:wt,cancelValue:ct},$t=ge()(Ln,{[`${Ln}-rtl`]:Ve==="rtl"},Qe,pt,on);return He(ve.createElement("div",Object.assign({className:$t,style:Ae},In,{ref:xe}),ve.createElement(le.Provider,{value:bn},or)))},oe=ve.forwardRef(te);var ae=ve.memo(oe);const ue=y;ue.Group=ae,ue.__ANT_CHECKBOX=!0;var ye=ue},63185:function(at,We,ee){"use strict";ee.d(We,{C2:function(){return fe}});var z=ee(14747),ge=ee(45503),be=ee(67968);const ve=pe=>{const{checkboxCls:ie}=pe,de=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{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,z.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,z.oN)(pe))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:pe.checkboxSize,height:pe.checkboxSize,direction:"ltr",backgroundColor:pe.colorBgContainer,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:pe.checkboxSize/14*5,height:pe.checkboxSize/14*8,border:`${pe.lineWidthBold}px solid ${pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pe.motionDurationFast} ${pe.motionEaseInBack}, opacity ${pe.motionDurationFast}`}},"& + span":{paddingInlineStart:pe.paddingXS,paddingInlineEnd:pe.paddingXS}})},{[`
|
|
|
${de}:not(${de}-disabled),
|
|
|
${ie}:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{borderColor:pe.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:pe.colorPrimary,borderColor:pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pe.motionDurationMid} ${pe.motionEaseOutBack} ${pe.motionDurationFast}`}}},[`
|
|
|
${de}-checked:not(${de}-disabled),
|
|
|
${ie}-checked:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:pe.fontSizeLG/2,height:pe.fontSizeLG/2,backgroundColor:pe.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:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:pe.colorTextDisabled}}}]};function fe(pe,ie){const de=(0,ge.TS)(ie,{checkboxCls:`.${pe}`,checkboxSize:ie.controlInteractiveSize});return[ve(de)]}We.ZP=(0,be.Z)("Checkbox",(pe,ie)=>{let{prefixCls:de}=ie;return[fe(de,pe)]})},72565:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return Wa}});var z=ee(94184),ge=ee.n(z),be=ee(1413),ve=ee(97685),fe=ee(67294),pe=ee(73935);function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var de={};function le(ft,ut){}function ce(ft,ut){}function se(){de={}}function me(ft,ut,Ht){!ut&&!de[Ht]&&(ft(!1,Ht),de[Ht]=!0)}function re(ft,ut){me(le,ft,ut)}function ne(ft,ut){me(ce,ft,ut)}var a=null,y=ee(71002),E=ee(18459);function b(ft,ut,Ht){var Yt=fe.useRef({});return(!("value"in Yt.current)||Ht(Yt.current.condition,ut))&&(Yt.current.value=ft(),Yt.current.condition=ut),Yt.current.value}function x(ft,ut){typeof ft=="function"?ft(ut):(0,y.Z)(ft)==="object"&&ft&&"current"in ft&&(ft.current=ut)}function te(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht<ft;Ht++)ut[Ht]=arguments[Ht];var Yt=ut.filter(function(xn){return xn});return Yt.length<=1?Yt[0]:function(xn){ut.forEach(function(Ar){x(Ar,xn)})}}function oe(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht<ft;Ht++)ut[Ht]=arguments[Ht];return b(function(){return te.apply(void 0,ut)},ut,function(Yt,xn){return Yt.length===xn.length&&Yt.every(function(Ar,Dr){return Ar===xn[Dr]})})}function ae(ft){var ut,Ht,Yt=(0,E.isMemo)(ft)?ft.type.type:ft.type;return!(typeof Yt=="function"&&!((ut=Yt.prototype)!==null&&ut!==void 0&&ut.render)||typeof ft=="function"&&!((Ht=ft.prototype)!==null&&Ht!==void 0&&Ht.render))}var ue=fe.createContext(null),ye=ue,_e=ee(74902),xe=ie()?fe.useLayoutEffect:fe.useEffect,Ce=xe,Be=function(ut,Ht){var Yt=React.useRef(!0);xe(function(){if(!Yt.current)return ut()},Ht),xe(function(){return Yt.current=!1,function(){Yt.current=!0}},[])},Me=[];function mt(ft,ut){var Ht=fe.useState(function(){if(!ie())return null;var Et=document.createElement("div");return Et}),Yt=(0,ve.Z)(Ht,1),xn=Yt[0],Ar=fe.useRef(!1),Dr=fe.useContext(ye),lo=fe.useState(Me),_o=(0,ve.Z)(lo,2),uo=_o[0],ni=_o[1],vi=Dr||(Ar.current?void 0:function(Et){ni(function(jt){var Ue=[Et].concat((0,_e.Z)(jt));return Ue})});function Di(){xn.parentElement||document.body.appendChild(xn),Ar.current=!0}function _t(){var Et;(Et=xn.parentElement)===null||Et===void 0||Et.removeChild(xn),Ar.current=!1}return Ce(function(){return ft?Dr?Dr(Di):Di():_t(),_t},[ft]),Ce(function(){uo.length&&(uo.forEach(function(Et){return Et()}),ni(Me))},[uo]),[xn,vi]}function Qe(ft,ut){if(!ft)return!1;if(ft.contains)return ft.contains(ut);for(var Ht=ut;Ht;){if(Ht===ft)return!0;Ht=Ht.parentNode}return!1}var pt="data-rc-order",Ae="rc-util-key",De=new Map;function Fe(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ut=ft.mark;return ut?ut.startsWith("data-")?ut:"data-".concat(ut):Ae}function tt(ft){if(ft.attachTo)return ft.attachTo;var ut=document.querySelector("head");return ut||document.body}function Ve(ft){return ft==="queue"?"prependQueue":ft?"prepend":"append"}function Ct(ft){return Array.from((De.get(ft)||ft).children).filter(function(ut){return ut.tagName==="STYLE"})}function Mt(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ie())return null;var Ht=ut.csp,Yt=ut.prepend,xn=document.createElement("style");xn.setAttribute(pt,Ve(Yt)),Ht!=null&&Ht.nonce&&(xn.nonce=Ht==null?void 0:Ht.nonce),xn.innerHTML=ft;var Ar=tt(ut),Dr=Ar.firstChild;if(Yt){if(Yt==="queue"){var lo=Ct(Ar).filter(function(_o){return["prepend","prependQueue"].includes(_o.getAttribute(pt))});if(lo.length)return Ar.insertBefore(xn,lo[lo.length-1].nextSibling),xn}Ar.insertBefore(xn,Dr)}else Ar.appendChild(xn);return xn}function en(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=tt(ut);return Ct(Ht).find(function(Yt){return Yt.getAttribute(Fe(ut))===ft})}function nn(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=en(ft,ut);if(Ht){var Yt=tt(ut);Yt.removeChild(Ht)}}function it(ft,ut){var Ht=De.get(ft);if(!Ht||!Qe(document,Ht)){var Yt=Mt("",ut),xn=Yt.parentNode;De.set(ft,xn),ft.removeChild(Yt)}}function ct(){De.clear()}function wt(ft,ut){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Yt=tt(Ht);it(Yt,Ht);var xn=en(ut,Ht);if(xn){var Ar,Dr;if((Ar=Ht.csp)!==null&&Ar!==void 0&&Ar.nonce&&xn.nonce!==((Dr=Ht.csp)===null||Dr===void 0?void 0:Dr.nonce)){var lo;xn.nonce=(lo=Ht.csp)===null||lo===void 0?void 0:lo.nonce}return xn.innerHTML!==ft&&(xn.innerHTML=ft),xn}var _o=Mt(ft,Ht);return _o.setAttribute(Fe(Ht),ut),_o}var Vt;function Gt(ft){if(typeof document=="undefined")return 0;if(ft||Vt===void 0){var ut=document.createElement("div");ut.style.width="100%",ut.style.height="200px";var Ht=document.createElement("div"),Yt=Ht.style;Yt.position="absolute",Yt.top="0",Yt.left="0",Yt.pointerEvents="none",Yt.visibility="hidden",Yt.width="200px",Yt.height="150px",Yt.overflow="hidden",Ht.appendChild(ut),document.body.appendChild(Ht);var xn=ut.offsetWidth;Ht.style.overflow="scroll";var Ar=ut.offsetWidth;xn===Ar&&(Ar=Ht.clientWidth),document.body.removeChild(Ht),Vt=xn-Ar}return Vt}function Ln(ft){var ut=ft.match(/^(.*)px$/),Ht=Number(ut==null?void 0:ut[1]);return Number.isNaN(Ht)?Gt():Ht}function He(ft){if(typeof document=="undefined"||!ft||!(ft instanceof Element))return{width:0,height:0};var ut=getComputedStyle(ft,"::-webkit-scrollbar"),Ht=ut.width,Yt=ut.height;return{width:Ln(Ht),height:Ln(Yt)}}function on(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var In="rc-util-locker-".concat(Date.now()),or=0;function bn(ft){var ut=!!ft,Ht=fe.useState(function(){return or+=1,"".concat(In,"_").concat(or)}),Yt=(0,ve.Z)(Ht,1),xn=Yt[0];Ce(function(){if(ut){var Ar=He(document.body).width,Dr=on();wt(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(Dr?"width: calc(100% - ".concat(Ar,"px);"):"",`
|
|
|
}`),xn)}else nn(xn);return function(){nn(xn)}},[ut,xn])}var $t=!1;function qe(ft){return typeof ft=="boolean"&&($t=ft),$t}var Je=function(ut){return ut===!1?!1:!ie()||!ut?null:typeof ut=="string"?document.querySelector(ut):typeof ut=="function"?ut():ut},Pt=fe.forwardRef(function(ft,ut){var Ht=ft.open,Yt=ft.autoLock,xn=ft.getContainer,Ar=ft.debug,Dr=ft.autoDestroy,lo=Dr===void 0?!0:Dr,_o=ft.children,uo=fe.useState(Ht),ni=(0,ve.Z)(uo,2),vi=ni[0],Di=ni[1],_t=vi||Ht;fe.useEffect(function(){(lo||Ht)&&Di(Ht)},[Ht,lo]);var Et=fe.useState(function(){return Je(xn)}),jt=(0,ve.Z)(Et,2),Ue=jt[0],zt=jt[1];fe.useEffect(function(){var br=Je(xn);zt(br!=null?br:null)});var ln=mt(_t&&!Ue,Ar),gn=(0,ve.Z)(ln,2),Lt=gn[0],Ut=gn[1],Rt=Ue!=null?Ue:Lt;bn(Yt&&Ht&&ie()&&(Rt===Lt||Rt===document.body));var Pn=null;if(_o&&ae(_o)&&ut){var $n=_o;Pn=$n.ref}var ir=oe(Pn,ut);if(!_t||!ie()||Ue===void 0)return null;var Qn=Rt===!1||qe(),dr=_o;return ut&&(dr=fe.cloneElement(_o,{ref:ir})),fe.createElement(ye.Provider,{value:Ut},Qn?dr:(0,pe.createPortal)(dr,Rt))}),Nt=Pt,Wt=Nt;function dt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var yt=dt()?fe.useLayoutEffect:fe.useEffect,Tt=function(ut,Ht){var Yt=fe.useRef(!0);yt(function(){return ut(Yt.current)},Ht),yt(function(){return Yt.current=!1,function(){Yt.current=!0}},[])},rt=function(ut,Ht){Tt(function(Yt){if(!Yt)return ut()},Ht)},cn=Tt,Ge=fe.createContext(null),gt=fe.createContext({}),Gn=Ge,Nn=ee(4942),St=ee(87462),Qt=ee(62874),hn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ut){var Ht=ut.keyCode;if(ut.altKey&&!ut.ctrlKey||ut.metaKey||Ht>=hn.F1&&Ht<=hn.F12)return!1;switch(Ht){case hn.ALT:case hn.CAPS_LOCK:case hn.CONTEXT_MENU:case hn.CTRL:case hn.DOWN:case hn.END:case hn.ESC:case hn.HOME:case hn.INSERT:case hn.LEFT:case hn.MAC_FF_META:case hn.META:case hn.NUMLOCK:case hn.NUM_CENTER:case hn.PAGE_DOWN:case hn.PAGE_UP:case hn.PAUSE:case hn.PRINT_SCREEN:case hn.RIGHT:case hn.SHIFT:case hn.UP:case hn.WIN_KEY:case hn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ut){if(ut>=hn.ZERO&&ut<=hn.NINE||ut>=hn.NUM_ZERO&&ut<=hn.NUM_MULTIPLY||ut>=hn.A&&ut<=hn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ut===0)return!0;switch(ut){case hn.SPACE:case hn.QUESTION_MARK:case hn.NUM_PLUS:case hn.NUM_MINUS:case hn.NUM_PERIOD:case hn.NUM_DIVISION:case hn.SEMICOLON:case hn.DASH:case hn.EQUALS:case hn.COMMA:case hn.PERIOD:case hn.SLASH:case hn.APOSTROPHE:case hn.SINGLE_QUOTE:case hn.OPEN_SQUARE_BRACKET:case hn.BACKSLASH:case hn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jn=hn,lr=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Ft=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,nr="".concat(lr," ").concat(Ft).split(/[\s\n]+/),ar="aria-",wo="data-";function Kr(ft,ut){return ft.indexOf(ut)===0}function Ur(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht;ut===!1?Ht={aria:!0,data:!0,attr:!0}:ut===!0?Ht={aria:!0}:Ht=(0,be.Z)({},ut);var Yt={};return Object.keys(ft).forEach(function(xn){(Ht.aria&&(xn==="role"||Kr(xn,ar))||Ht.data&&Kr(xn,wo)||Ht.attr&&nr.includes(xn))&&(Yt[xn]=ft[xn])}),Yt}function Ho(ft){var ut=React.useRef();ut.current=ft;var Ht=React.useCallback(function(){for(var Yt,xn=arguments.length,Ar=new Array(xn),Dr=0;Dr<xn;Dr++)Ar[Dr]=arguments[Dr];return(Yt=ut.current)===null||Yt===void 0?void 0:Yt.call.apply(Yt,[ut].concat(Ar))},[]);return Ht}function Dn(ft){var ut=React.useRef(!1),Ht=React.useState(ft),Yt=_slicedToArray(Ht,2),xn=Yt[0],Ar=Yt[1];React.useEffect(function(){return ut.current=!1,function(){ut.current=!0}},[]);function Dr(lo,_o){_o&&ut.current||Ar(lo)}return[xn,Dr]}function Po(ft){return ft!==void 0}function pi(ft,ut){var Ht=ut||{},Yt=Ht.defaultValue,xn=Ht.value,Ar=Ht.onChange,Dr=Ht.postState,lo=useState(function(){return Po(xn)?xn:Po(Yt)?typeof Yt=="function"?Yt():Yt:typeof ft=="function"?ft():ft}),_o=_slicedToArray(lo,2),uo=_o[0],ni=_o[1],vi=xn!==void 0?xn:uo,Di=Dr?Dr(vi):vi,_t=useEvent(Ar),Et=useState([vi]),jt=_slicedToArray(Et,2),Ue=jt[0],zt=jt[1];useLayoutUpdateEffect(function(){var gn=Ue[0];uo!==gn&&_t(uo,gn)},[Ue]),useLayoutUpdateEffect(function(){Po(xn)||ni(xn)},[xn]);var ln=useEvent(function(gn,Lt){ni(gn,Lt),zt([vi],Lt)});return[Di,ln]}var sa=ee(33993);function qi(ft,ut,Ht){var Yt=fe.useRef({});return(!("value"in Yt.current)||Ht(Yt.current.condition,ut))&&(Yt.current.value=ft(),Yt.current.condition=ut),Yt.current.value}function Vr(ft,ut){typeof ft=="function"?ft(ut):(0,y.Z)(ft)==="object"&&ft&&"current"in ft&&(ft.current=ut)}function $o(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht<ft;Ht++)ut[Ht]=arguments[Ht];var Yt=ut.filter(function(xn){return xn});return Yt.length<=1?Yt[0]:function(xn){ut.forEach(function(Ar){Vr(Ar,xn)})}}function Jo(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht<ft;Ht++)ut[Ht]=arguments[Ht];return qi(function(){return $o.apply(void 0,ut)},ut,function(Yt,xn){return Yt.length!==xn.length||Yt.every(function(Ar,Dr){return Ar!==xn[Dr]})})}function Li(ft){var ut,Ht,Yt=isMemo(ft)?ft.type.type:ft.type;return!(typeof Yt=="function"&&!((ut=Yt.prototype)!==null&&ut!==void 0&&ut.render)||typeof ft=="function"&&!((Ht=ft.prototype)!==null&&Ht!==void 0&&Ht.render))}function Lo(ft){return!isValidElement(ft)||isFragment(ft)?!1:Li(ft)}function Ii(ft,ut,Ht,Yt){if(!ut.length)return Ht;var xn=_toArray(ut),Ar=xn[0],Dr=xn.slice(1),lo;return!ft&&typeof Ar=="number"?lo=[]:Array.isArray(ft)?lo=_toConsumableArray(ft):lo=_objectSpread({},ft),Yt&&Ht===void 0&&Dr.length===1?delete lo[Ar][Dr[0]]:lo[Ar]=Ii(lo[Ar],Dr,Ht,Yt),lo}function xi(ft,ut,Ht){var Yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ut.length&&Yt&&Ht===void 0&&!get(ft,ut.slice(0,-1))?ft:Ii(ft,ut,Ht,Yt)}function Bo(ft){return _typeof(ft)==="object"&&ft!==null&&Object.getPrototypeOf(ft)===Object.prototype}function Xr(ft){return Array.isArray(ft)?[]:{}}var La=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function _n(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht<ft;Ht++)ut[Ht]=arguments[Ht];var Yt=Xr(ut[0]);return ut.forEach(function(xn){function Ar(Dr,lo){var _o=new Set(lo),uo=get(xn,Dr),ni=Array.isArray(uo);if(ni||Bo(uo)){if(!_o.has(uo)){_o.add(uo);var vi=get(Yt,Dr);ni?Yt=xi(Yt,Dr,[]):(!vi||_typeof(vi)!=="object")&&(Yt=xi(Yt,Dr,Xr(uo))),La(uo).forEach(function(Di){Ar([].concat(_toConsumableArray(Dr),[Di]),_o)})}}else Yt=xi(Yt,Dr,uo)}Ar([])}),Yt}var he={},Se=[],Pe=function(ut){Se.push(ut)};function Le(ft,ut){if(0)var Ht}function Ne(ft,ut){if(0)var Ht}function nt(){he={}}function lt(ft,ut,Ht){!ut&&!he[Ht]&&(ft(!1,Ht),he[Ht]=!0)}function fn(ft,ut){lt(Le,ft,ut)}function tn(ft,ut){lt(Ne,ft,ut)}fn.preMessage=Pe,fn.resetWarned=nt,fn.noteOnce=tn;var Tn=fn,fr=function(ut){var Ht=ut.prefixCls,Yt=ut.className,xn=ut.style,Ar=ut.children,Dr=ut.containerRef,lo=ut.id,_o=ut.onMouseEnter,uo=ut.onMouseOver,ni=ut.onMouseLeave,vi=ut.onClick,Di=ut.onKeyDown,_t=ut.onKeyUp,Et={onMouseEnter:_o,onMouseOver:uo,onMouseLeave:ni,onClick:vi,onKeyDown:Di,onKeyUp:_t},jt=fe.useContext(gt),Ue=jt.panel,zt=Jo(Ue,Dr);return fe.createElement(fe.Fragment,null,fe.createElement("div",(0,St.Z)({id:lo,className:ge()("".concat(Ht,"-content"),Yt),style:(0,be.Z)({},xn),"aria-modal":"true",role:"dialog",ref:zt},Et),Ar))},Lr=fr;function Ot(ft){return typeof ft=="string"&&String(Number(ft))===ft?(Tn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ft)):ft}function cr(ft){warning(!("wrapperClassName"in ft),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ft.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var sr={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Rn(ft,ut){var Ht,Yt,xn,Ar,Dr=ft.prefixCls,lo=ft.open,_o=ft.placement,uo=ft.inline,ni=ft.push,vi=ft.forceRender,Di=ft.autoFocus,_t=ft.keyboard,Et=ft.rootClassName,jt=ft.rootStyle,Ue=ft.zIndex,zt=ft.className,ln=ft.id,gn=ft.style,Lt=ft.motion,Ut=ft.width,Rt=ft.height,Pn=ft.children,$n=ft.contentWrapperStyle,ir=ft.mask,Qn=ft.maskClosable,dr=ft.maskMotion,br=ft.maskClassName,mn=ft.maskStyle,Dt=ft.afterOpenChange,Jt=ft.onClose,vn=ft.onMouseEnter,Vn=ft.onMouseOver,pr=ft.onMouseLeave,Nr=ft.onClick,ao=ft.onKeyDown,Tr=ft.onKeyUp,$e=fe.useRef(),ke=fe.useRef(),et=fe.useRef();fe.useImperativeHandle(ut,function(){return $e.current});var At=function(Zo){var ho=Zo.keyCode,qo=Zo.shiftKey;switch(ho){case jn.TAB:{if(ho===jn.TAB){if(!qo&&document.activeElement===et.current){var wi;(wi=ke.current)===null||wi===void 0||wi.focus({preventScroll:!0})}else if(qo&&document.activeElement===ke.current){var ya;(ya=et.current)===null||ya===void 0||ya.focus({preventScroll:!0})}}break}case jn.ESC:{Jt&&_t&&(Zo.stopPropagation(),Jt(Zo));break}}};fe.useEffect(function(){if(lo&&Di){var zr;(zr=$e.current)===null||zr===void 0||zr.focus({preventScroll:!0})}},[lo]);var kt=fe.useState(!1),Zt=(0,ve.Z)(kt,2),Sn=Zt[0],wn=Zt[1],Fn=fe.useContext(Gn),On;ni===!1?On={distance:0}:ni===!0?On={}:On=ni||{};var Wn=(Ht=(Yt=(xn=On)===null||xn===void 0?void 0:xn.distance)!==null&&Yt!==void 0?Yt:Fn==null?void 0:Fn.pushDistance)!==null&&Ht!==void 0?Ht:180,gr=fe.useMemo(function(){return{pushDistance:Wn,push:function(){wn(!0)},pull:function(){wn(!1)}}},[Wn]);fe.useEffect(function(){if(lo){var zr;Fn==null||(zr=Fn.push)===null||zr===void 0||zr.call(Fn)}else{var Zo;Fn==null||(Zo=Fn.pull)===null||Zo===void 0||Zo.call(Fn)}},[lo]),fe.useEffect(function(){return function(){var zr;Fn==null||(zr=Fn.pull)===null||zr===void 0||zr.call(Fn)}},[]);var so=ir&&fe.createElement(Qt.Z,(0,St.Z)({key:"mask"},dr,{visible:lo}),function(zr,Zo){var ho=zr.className,qo=zr.style;return fe.createElement("div",{className:ge()("".concat(Dr,"-mask"),ho,br),style:(0,be.Z)((0,be.Z)({},qo),mn),onClick:Qn&&lo?Jt:void 0,ref:Zo})}),co=typeof Lt=="function"?Lt(_o):Lt,Jr={};if(Sn&&Wn)switch(_o){case"top":Jr.transform="translateY(".concat(Wn,"px)");break;case"bottom":Jr.transform="translateY(".concat(-Wn,"px)");break;case"left":Jr.transform="translateX(".concat(Wn,"px)");break;default:Jr.transform="translateX(".concat(-Wn,"px)");break}_o==="left"||_o==="right"?Jr.width=Ot(Ut):Jr.height=Ot(Rt);var po={onMouseEnter:vn,onMouseOver:Vn,onMouseLeave:pr,onClick:Nr,onKeyDown:ao,onKeyUp:Tr},Ro=fe.createElement(Qt.Z,(0,St.Z)({key:"panel"},co,{visible:lo,forceRender:vi,onVisibleChanged:function(Zo){Dt==null||Dt(Zo)},removeOnLeave:!1,leavedClassName:"".concat(Dr,"-content-wrapper-hidden")}),function(zr,Zo){var ho=zr.className,qo=zr.style;return fe.createElement("div",(0,St.Z)({className:ge()("".concat(Dr,"-content-wrapper"),ho),style:(0,be.Z)((0,be.Z)((0,be.Z)({},Jr),qo),$n)},Ur(ft,{data:!0})),fe.createElement(Lr,(0,St.Z)({id:ln,containerRef:Zo,prefixCls:Dr,className:zt,style:gn},po),Pn))}),Fo=(0,be.Z)({},jt);return Ue&&(Fo.zIndex=Ue),fe.createElement(Gn.Provider,{value:gr},fe.createElement("div",{className:ge()(Dr,"".concat(Dr,"-").concat(_o),Et,(Ar={},(0,Nn.Z)(Ar,"".concat(Dr,"-open"),lo),(0,Nn.Z)(Ar,"".concat(Dr,"-inline"),uo),Ar)),style:Fo,tabIndex:-1,ref:$e,onKeyDown:At},so,fe.createElement("div",{tabIndex:0,ref:ke,style:sr,"aria-hidden":"true","data-sentinel":"start"}),Ro,fe.createElement("div",{tabIndex:0,ref:et,style:sr,"aria-hidden":"true","data-sentinel":"end"})))}var Hn=fe.forwardRef(Rn),tr=Hn,jr=function(ut){var Ht=ut.open,Yt=Ht===void 0?!1:Ht,xn=ut.prefixCls,Ar=xn===void 0?"rc-drawer":xn,Dr=ut.placement,lo=Dr===void 0?"right":Dr,_o=ut.autoFocus,uo=_o===void 0?!0:_o,ni=ut.keyboard,vi=ni===void 0?!0:ni,Di=ut.width,_t=Di===void 0?378:Di,Et=ut.mask,jt=Et===void 0?!0:Et,Ue=ut.maskClosable,zt=Ue===void 0?!0:Ue,ln=ut.getContainer,gn=ut.forceRender,Lt=ut.afterOpenChange,Ut=ut.destroyOnClose,Rt=ut.onMouseEnter,Pn=ut.onMouseOver,$n=ut.onMouseLeave,ir=ut.onClick,Qn=ut.onKeyDown,dr=ut.onKeyUp,br=ut.panelRef,mn=fe.useState(!1),Dt=(0,ve.Z)(mn,2),Jt=Dt[0],vn=Dt[1],Vn=fe.useState(!1),pr=(0,ve.Z)(Vn,2),Nr=pr[0],ao=pr[1];cn(function(){ao(!0)},[]);var Tr=Nr?Yt:!1,$e=fe.useRef(),ke=fe.useRef();cn(function(){Tr&&(ke.current=document.activeElement)},[Tr]);var et=function(wn){var Fn;if(vn(wn),Lt==null||Lt(wn),!wn&&ke.current&&!((Fn=$e.current)!==null&&Fn!==void 0&&Fn.contains(ke.current))){var On;(On=ke.current)===null||On===void 0||On.focus({preventScroll:!0})}},At=fe.useMemo(function(){return{panel:br}},[br]);if(!gn&&!Jt&&!Tr&&Ut)return null;var kt={onMouseEnter:Rt,onMouseOver:Pn,onMouseLeave:$n,onClick:ir,onKeyDown:Qn,onKeyUp:dr},Zt=(0,be.Z)((0,be.Z)({},ut),{},{open:Tr,prefixCls:Ar,placement:lo,autoFocus:uo,keyboard:vi,width:_t,mask:jt,maskClosable:zt,inline:ln===!1,afterOpenChange:et,ref:$e},kt);return fe.createElement(gt.Provider,{value:At},fe.createElement(Wt,{open:Tr||gn||Jt,autoDestroy:!1,getContainer:ln,autoLock:jt&&(Tr||Jt)},fe.createElement(tr,Zt)))},Pr=jr,Yi=Pr,ti=ee(33603),xr=ee(53124),yo=ee(65223),Mi=ee(69760),Ai=ft=>{const{prefixCls:ut,title:Ht,footer:Yt,extra:xn,closeIcon:Ar,closable:Dr,onClose:lo,headerStyle:_o,drawerStyle:uo,bodyStyle:ni,footerStyle:vi,children:Di}=ft,_t=fe.useCallback(ln=>fe.createElement("button",{type:"button",onClick:lo,"aria-label":"Close",className:`${ut}-close`},ln),[lo]),[Et,jt]=(0,Mi.Z)(Dr,Ar,_t,void 0,!0),Ue=fe.useMemo(()=>!Ht&&!Et?null:fe.createElement("div",{style:_o,className:ge()(`${ut}-header`,{[`${ut}-header-close-only`]:Et&&!Ht&&!xn})},fe.createElement("div",{className:`${ut}-header-title`},jt,Ht&&fe.createElement("div",{className:`${ut}-title`},Ht)),xn&&fe.createElement("div",{className:`${ut}-extra`},xn)),[Et,jt,xn,_o,ut,Ht]),zt=fe.useMemo(()=>{if(!Yt)return null;const ln=`${ut}-footer`;return fe.createElement("div",{className:ln,style:vi},Yt)},[Yt,vi,ut]);return fe.createElement("div",{className:`${ut}-wrapper-body`,style:uo},Ue,fe.createElement("div",{className:`${ut}-body`,style:ni},Di),zt)},pn=ee(4173),Ka=ee(67968),Ui=ee(45503),Aa=ft=>{const{componentCls:ut,motionDurationSlow:Ht}=ft,Yt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ht}`}}};return{[ut]:{[`${ut}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Ht}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ut}-panel-motion`]:{"&-left":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Bn=ft=>{const{componentCls:ut,zIndexPopup:Ht,colorBgMask:Yt,colorBgElevated:xn,motionDurationSlow:Ar,motionDurationMid:Dr,padding:lo,paddingLG:_o,fontSizeLG:uo,lineHeightLG:ni,lineWidth:vi,lineType:Di,colorSplit:_t,marginSM:Et,colorIcon:jt,colorIconHover:Ue,colorText:zt,fontWeightStrong:ln,footerPaddingBlock:gn,footerPaddingInline:Lt}=ft,Ut=`${ut}-content-wrapper`;return{[ut]:{position:"fixed",inset:0,zIndex:Ht,pointerEvents:"none","&-pure":{position:"relative",background:xn,[`&${ut}-left`]:{boxShadow:ft.boxShadowDrawerLeft},[`&${ut}-right`]:{boxShadow:ft.boxShadowDrawerRight},[`&${ut}-top`]:{boxShadow:ft.boxShadowDrawerUp},[`&${ut}-bottom`]:{boxShadow:ft.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ut}-mask`]:{position:"absolute",inset:0,zIndex:Ht,background:Yt,pointerEvents:"auto"},[Ut]:{position:"absolute",zIndex:Ht,maxWidth:"100vw",transition:`all ${Ar}`,"&-hidden":{display:"none"}},[`&-left > ${Ut}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ft.boxShadowDrawerLeft},[`&-right > ${Ut}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ft.boxShadowDrawerRight},[`&-top > ${Ut}`]:{top:0,insetInline:0,boxShadow:ft.boxShadowDrawerUp},[`&-bottom > ${Ut}`]:{bottom:0,insetInline:0,boxShadow:ft.boxShadowDrawerDown},[`${ut}-content`]:{width:"100%",height:"100%",overflow:"auto",background:xn,pointerEvents:"auto"},[`${ut}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ut}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${lo}px ${_o}px`,fontSize:uo,lineHeight:ni,borderBottom:`${vi}px ${Di} ${_t}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ut}-extra`]:{flex:"none"},[`${ut}-close`]:{display:"inline-block",marginInlineEnd:Et,color:jt,fontWeight:ln,fontSize:uo,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Dr}`,textRendering:"auto","&:focus, &:hover":{color:Ue,textDecoration:"none"}},[`${ut}-title`]:{flex:1,margin:0,color:zt,fontWeight:ft.fontWeightStrong,fontSize:uo,lineHeight:ni},[`${ut}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_o,overflow:"auto"},[`${ut}-footer`]:{flexShrink:0,padding:`${gn}px ${Lt}px`,borderTop:`${vi}px ${Di} ${_t}`},"&-rtl":{direction:"rtl"}}}};var mr=(0,Ka.Z)("Drawer",ft=>{const ut=(0,Ui.TS)(ft,{});return[Bn(ut),Aa(ut)]},ft=>({zIndexPopup:ft.zIndexPopupBase,footerPaddingBlock:ft.paddingXS,footerPaddingInline:ft.padding})),Hr=ee(16569),rr=function(ft,ut){var Ht={};for(var Yt in ft)Object.prototype.hasOwnProperty.call(ft,Yt)&&ut.indexOf(Yt)<0&&(Ht[Yt]=ft[Yt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,Yt=Object.getOwnPropertySymbols(ft);xn<Yt.length;xn++)ut.indexOf(Yt[xn])<0&&Object.prototype.propertyIsEnumerable.call(ft,Yt[xn])&&(Ht[Yt[xn]]=ft[Yt[xn]]);return Ht};const di=null,bi={distance:180},la=ft=>{var ut;const{rootClassName:Ht,width:Yt,height:xn,size:Ar="default",mask:Dr=!0,push:lo=bi,open:_o,afterOpenChange:uo,onClose:ni,prefixCls:vi,getContainer:Di,style:_t,className:Et,visible:jt,afterVisibleChange:Ue}=ft,zt=rr(ft,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:ln,getPrefixCls:gn,direction:Lt,drawer:Ut}=fe.useContext(xr.E_),Rt=gn("drawer",vi),[Pn,$n]=mr(Rt),ir=Di===void 0&&ln?()=>ln(document.body):Di,Qn=ge()({"no-mask":!Dr,[`${Rt}-rtl`]:Lt==="rtl"},Ht,$n),dr=fe.useMemo(()=>Yt!=null?Yt:Ar==="large"?736:378,[Yt,Ar]),br=fe.useMemo(()=>xn!=null?xn:Ar==="large"?736:378,[xn,Ar]),mn={motionName:(0,ti.m)(Rt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Dt=vn=>({motionName:(0,ti.m)(Rt,`panel-motion-${vn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Jt=(0,Hr.H)();return Pn(fe.createElement(pn.BR,null,fe.createElement(yo.Ux,{status:!0,override:!0},fe.createElement(Yi,Object.assign({prefixCls:Rt,onClose:ni,maskMotion:mn,motion:Dt},zt,{open:_o!=null?_o:jt,mask:Dr,push:lo,width:dr,height:br,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),_t),className:ge()(Ut==null?void 0:Ut.className,Et),rootClassName:Qn,getContainer:ir,afterOpenChange:uo!=null?uo:Ue,panelRef:Jt}),fe.createElement(Ai,Object.assign({prefixCls:Rt},zt,{onClose:ni}))))))},Da=ft=>{const{prefixCls:ut,style:Ht,className:Yt,placement:xn="right"}=ft,Ar=rr(ft,["prefixCls","style","className","placement"]),{getPrefixCls:Dr}=fe.useContext(xr.E_),lo=Dr("drawer",ut),[_o,uo]=mr(lo),ni=ge()(lo,`${lo}-pure`,`${lo}-${xn}`,uo,Yt);return _o(fe.createElement("div",{className:ni,style:Ht},fe.createElement(Ai,Object.assign({prefixCls:lo},Ar))))};la._InternalPanelDoNotUseOrYouWillBeFired=Da;var Wa=la},56153:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return Vs}});var z=ee(67294),ge=ee.t(z,2),be=ee(91034),ve=ee(94184),fe=ee.n(ve),pe=ee(87462),ie=ee(4942),de=ee(97685),le=ee(45987),ce=ee(1413),se=ee(73935);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re={};function ne(Oe,Xe){}function a(Oe,Xe){}function y(){re={}}function E(Oe,Xe,Ye){!Xe&&!re[Ye]&&(Oe(!1,Ye),re[Ye]=!0)}function b(Oe,Xe){E(ne,Oe,Xe)}function x(Oe,Xe){E(a,Oe,Xe)}var te=null,oe=ee(71002),ae=ee(12060);function ue(Oe,Xe,Ye){var vt=z.useRef({});return(!("value"in vt.current)||Ye(vt.current.condition,Xe))&&(vt.current.value=Oe(),vt.current.condition=Xe),vt.current.value}function ye(Oe,Xe){typeof Oe=="function"?Oe(Xe):(0,oe.Z)(Oe)==="object"&&Oe&&"current"in Oe&&(Oe.current=Xe)}function _e(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye<Oe;Ye++)Xe[Ye]=arguments[Ye];var vt=Xe.filter(function(It){return It});return vt.length<=1?vt[0]:function(It){Xe.forEach(function(rn){ye(rn,It)})}}function xe(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye<Oe;Ye++)Xe[Ye]=arguments[Ye];return ue(function(){return _e.apply(void 0,Xe)},Xe,function(vt,It){return vt.length===It.length&&vt.every(function(rn,an){return rn===It[an]})})}function Ce(Oe){var Xe,Ye,vt=(0,ae.isMemo)(Oe)?Oe.type.type:Oe.type;return!(typeof vt=="function"&&!((Xe=vt.prototype)!==null&&Xe!==void 0&&Xe.render)||typeof Oe=="function"&&!((Ye=Oe.prototype)!==null&&Ye!==void 0&&Ye.render))}var Be=z.createContext(null),Me=Be,mt=ee(74902),Qe=me()?z.useLayoutEffect:z.useEffect,pt=Qe,Ae=function(Xe,Ye){var vt=React.useRef(!0);Qe(function(){if(!vt.current)return Xe()},Ye),Qe(function(){return vt.current=!1,function(){vt.current=!0}},[])},De=[];function Fe(Oe,Xe){var Ye=z.useState(function(){if(!me())return null;var no=document.createElement("div");return no}),vt=(0,de.Z)(Ye,1),It=vt[0],rn=z.useRef(!1),an=z.useContext(Me),An=z.useState(De),un=(0,de.Z)(An,2),Jn=un[0],Cr=un[1],Yn=an||(rn.current?void 0:function(no){Cr(function(ri){var Uo=[no].concat((0,mt.Z)(ri));return Uo})});function Br(){It.parentElement||document.body.appendChild(It),rn.current=!0}function Sr(){var no;(no=It.parentElement)===null||no===void 0||no.removeChild(It),rn.current=!1}return pt(function(){return Oe?an?an(Br):Br():Sr(),Sr},[Oe]),pt(function(){Jn.length&&(Jn.forEach(function(no){return no()}),Cr(De))},[Jn]),[It,Yn]}function tt(Oe,Xe){if(!Oe)return!1;if(Oe.contains)return Oe.contains(Xe);for(var Ye=Xe;Ye;){if(Ye===Oe)return!0;Ye=Ye.parentNode}return!1}var Ve="data-rc-order",Ct="rc-util-key",Mt=new Map;function en(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Xe=Oe.mark;return Xe?Xe.startsWith("data-")?Xe:"data-".concat(Xe):Ct}function nn(Oe){if(Oe.attachTo)return Oe.attachTo;var Xe=document.querySelector("head");return Xe||document.body}function it(Oe){return Oe==="queue"?"prependQueue":Oe?"prepend":"append"}function ct(Oe){return Array.from((Mt.get(Oe)||Oe).children).filter(function(Xe){return Xe.tagName==="STYLE"})}function wt(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var Ye=Xe.csp,vt=Xe.prepend,It=document.createElement("style");It.setAttribute(Ve,it(vt)),Ye!=null&&Ye.nonce&&(It.nonce=Ye==null?void 0:Ye.nonce),It.innerHTML=Oe;var rn=nn(Xe),an=rn.firstChild;if(vt){if(vt==="queue"){var An=ct(rn).filter(function(un){return["prepend","prependQueue"].includes(un.getAttribute(Ve))});if(An.length)return rn.insertBefore(It,An[An.length-1].nextSibling),It}rn.insertBefore(It,an)}else rn.appendChild(It);return It}function Vt(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=nn(Xe);return ct(Ye).find(function(vt){return vt.getAttribute(en(Xe))===Oe})}function Gt(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=Vt(Oe,Xe);if(Ye){var vt=nn(Xe);vt.removeChild(Ye)}}function Ln(Oe,Xe){var Ye=Mt.get(Oe);if(!Ye||!tt(document,Ye)){var vt=wt("",Xe),It=vt.parentNode;Mt.set(Oe,It),Oe.removeChild(vt)}}function He(){Mt.clear()}function on(Oe,Xe){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=nn(Ye);Ln(vt,Ye);var It=Vt(Xe,Ye);if(It){var rn,an;if((rn=Ye.csp)!==null&&rn!==void 0&&rn.nonce&&It.nonce!==((an=Ye.csp)===null||an===void 0?void 0:an.nonce)){var An;It.nonce=(An=Ye.csp)===null||An===void 0?void 0:An.nonce}return It.innerHTML!==Oe&&(It.innerHTML=Oe),It}var un=wt(Oe,Ye);return un.setAttribute(en(Ye),Xe),un}var In;function or(Oe){if(typeof document=="undefined")return 0;if(Oe||In===void 0){var Xe=document.createElement("div");Xe.style.width="100%",Xe.style.height="200px";var Ye=document.createElement("div"),vt=Ye.style;vt.position="absolute",vt.top="0",vt.left="0",vt.pointerEvents="none",vt.visibility="hidden",vt.width="200px",vt.height="150px",vt.overflow="hidden",Ye.appendChild(Xe),document.body.appendChild(Ye);var It=Xe.offsetWidth;Ye.style.overflow="scroll";var rn=Xe.offsetWidth;It===rn&&(rn=Ye.clientWidth),document.body.removeChild(Ye),In=It-rn}return In}function bn(Oe){var Xe=Oe.match(/^(.*)px$/),Ye=Number(Xe==null?void 0:Xe[1]);return Number.isNaN(Ye)?or():Ye}function $t(Oe){if(typeof document=="undefined"||!Oe||!(Oe instanceof Element))return{width:0,height:0};var Xe=getComputedStyle(Oe,"::-webkit-scrollbar"),Ye=Xe.width,vt=Xe.height;return{width:bn(Ye),height:bn(vt)}}function qe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Je="rc-util-locker-".concat(Date.now()),Pt=0;function Nt(Oe){var Xe=!!Oe,Ye=z.useState(function(){return Pt+=1,"".concat(Je,"_").concat(Pt)}),vt=(0,de.Z)(Ye,1),It=vt[0];pt(function(){if(Xe){var rn=$t(document.body).width,an=qe();on(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(an?"width: calc(100% - ".concat(rn,"px);"):"",`
|
|
|
}`),It)}else Gt(It);return function(){Gt(It)}},[Xe,It])}var Wt=!1;function dt(Oe){return typeof Oe=="boolean"&&(Wt=Oe),Wt}var yt=function(Xe){return Xe===!1?!1:!me()||!Xe?null:typeof Xe=="string"?document.querySelector(Xe):typeof Xe=="function"?Xe():Xe},Tt=z.forwardRef(function(Oe,Xe){var Ye=Oe.open,vt=Oe.autoLock,It=Oe.getContainer,rn=Oe.debug,an=Oe.autoDestroy,An=an===void 0?!0:an,un=Oe.children,Jn=z.useState(Ye),Cr=(0,de.Z)(Jn,2),Yn=Cr[0],Br=Cr[1],Sr=Yn||Ye;z.useEffect(function(){(An||Ye)&&Br(Ye)},[Ye,An]);var no=z.useState(function(){return yt(It)}),ri=(0,de.Z)(no,2),Uo=ri[0],oi=ri[1];z.useEffect(function(){var va=yt(It);oi(va!=null?va:null)});var Wo=Fe(Sr&&!Uo,rn),No=(0,de.Z)(Wo,2),$r=No[0],Ri=No[1],$i=Uo!=null?Uo:$r;Nt(vt&&Ye&&me()&&($i===$r||$i===document.body));var Gi=null;if(un&&Ce(un)&&Xe){var ba=un;Gi=ba.ref}var Ga=xe(Gi,Xe);if(!Sr||!me()||Uo===void 0)return null;var Zi=$i===!1||dt(),yi=un;return Xe&&(yi=z.cloneElement(un,{ref:Ga})),z.createElement(Me.Provider,{value:Ri},Zi?yi:(0,se.createPortal)(yi,$i))}),rt=Tt,cn=rt,Ge=ee(48555);function gt(Oe){return Oe instanceof HTMLElement||Oe instanceof SVGElement}function Gn(Oe){return gt(Oe)?Oe:Oe instanceof React.Component?ReactDOM.findDOMNode(Oe):null}function Nn(Oe){var Xe;return Oe==null||(Xe=Oe.getRootNode)===null||Xe===void 0?void 0:Xe.call(Oe)}function St(Oe){return Nn(Oe)instanceof ShadowRoot}function Qt(Oe){return St(Oe)?Nn(Oe):null}function hn(Oe){var Xe=z.useRef();Xe.current=Oe;var Ye=z.useCallback(function(){for(var vt,It=arguments.length,rn=new Array(It),an=0;an<It;an++)rn[an]=arguments[an];return(vt=Xe.current)===null||vt===void 0?void 0:vt.call.apply(vt,[Xe].concat(rn))},[]);return Ye}function jn(){var Oe=(0,ce.Z)({},ge);return Oe.useId}var lr=0;function Ft(){}var nr=jn(),ar=nr?function(Xe){var Ye=nr();return Xe||Ye}:function(Xe){var Ye=z.useState("ssr-id"),vt=(0,de.Z)(Ye,2),It=vt[0],rn=vt[1];return z.useEffect(function(){var an=lr;lr+=1,rn("rc_unique_".concat(an))},[]),Xe||It};function wo(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Kr=wo()?z.useLayoutEffect:z.useEffect,Ur=function(Xe,Ye){var vt=z.useRef(!0);Kr(function(){return Xe(vt.current)},Ye),Kr(function(){return vt.current=!1,function(){vt.current=!0}},[])},Ho=function(Xe,Ye){Ur(function(vt){if(!vt)return Xe()},Ye)},Dn=Ur,Po=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Oe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Oe==null?void 0:Oe.substr(0,4))},pi=z.createContext(null),sa=pi;function qi(Oe){return Oe?Array.isArray(Oe)?Oe:[Oe]:[]}function Vr(Oe,Xe,Ye,vt){return z.useMemo(function(){var It=qi(Ye!=null?Ye:Xe),rn=qi(vt!=null?vt:Xe),an=new Set(It),An=new Set(rn);return Oe&&(an.has("hover")&&(an.delete("hover"),an.add("click")),An.has("hover")&&(An.delete("hover"),An.add("click"))),[an,An]},[Oe,Xe,Ye,vt])}var $o=function(Oe){if(!Oe)return!1;if(Oe instanceof Element){if(Oe.offsetParent)return!0;if(Oe.getBBox){var Xe=Oe.getBBox(),Ye=Xe.width,vt=Xe.height;if(Ye||vt)return!0}if(Oe.getBoundingClientRect){var It=Oe.getBoundingClientRect(),rn=It.width,an=It.height;if(rn||an)return!0}}return!1};function Jo(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=arguments.length>2?arguments[2]:void 0;return Ye?Oe[0]===Xe[0]:Oe[0]===Xe[0]&&Oe[1]===Xe[1]}function Li(Oe,Xe,Ye,vt){for(var It=Ye.points,rn=Object.keys(Oe),an=0;an<rn.length;an+=1){var An,un=rn[an];if(Jo((An=Oe[un])===null||An===void 0?void 0:An.points,It,vt))return"".concat(Xe,"-placement-").concat(un)}return""}function Lo(Oe,Xe,Ye,vt){return Xe||(Ye?{motionName:"".concat(Oe,"-").concat(Ye)}:vt?{motionName:vt}:null)}function Ii(Oe){return Oe.ownerDocument.defaultView}function xi(Oe){for(var Xe=[],Ye=Oe==null?void 0:Oe.parentElement,vt=["hidden","scroll","clip","auto"];Ye;){var It=Ii(Ye).getComputedStyle(Ye),rn=It.overflowX,an=It.overflowY,An=It.overflow;[rn,an,An].some(function(un){return vt.includes(un)})&&Xe.push(Ye),Ye=Ye.parentElement}return Xe}function Bo(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Oe)?Xe:Oe}function Xr(Oe){return Bo(parseFloat(Oe),0)}function La(Oe,Xe){var Ye=(0,ce.Z)({},Oe);return(Xe||[]).forEach(function(vt){if(!(vt instanceof HTMLBodyElement||vt instanceof HTMLHtmlElement)){var It=Ii(vt).getComputedStyle(vt),rn=It.overflow,an=It.overflowClipMargin,An=It.borderTopWidth,un=It.borderBottomWidth,Jn=It.borderLeftWidth,Cr=It.borderRightWidth,Yn=vt.getBoundingClientRect(),Br=vt.offsetHeight,Sr=vt.clientHeight,no=vt.offsetWidth,ri=vt.clientWidth,Uo=Xr(An),oi=Xr(un),Wo=Xr(Jn),No=Xr(Cr),$r=Bo(Math.round(Yn.width/no*1e3)/1e3),Ri=Bo(Math.round(Yn.height/Br*1e3)/1e3),$i=(no-ri-Wo-No)*$r,Gi=(Br-Sr-Uo-oi)*Ri,ba=Uo*Ri,Ga=oi*Ri,Zi=Wo*$r,yi=No*$r,va=0,Ma=0;if(rn==="clip"){var ta=Xr(an);va=ta*$r,Ma=ta*Ri}var gi=Yn.x+Zi-va,Wi=Yn.y+ba-Ma,ko=gi+Yn.width+2*va-Zi-yi-$i,Er=Wi+Yn.height+2*Ma-ba-Ga-Gi;Ye.left=Math.max(Ye.left,gi),Ye.top=Math.max(Ye.top,Wi),Ye.right=Math.min(Ye.right,ko),Ye.bottom=Math.min(Ye.bottom,Er)}}),Ye}function _n(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ye="".concat(Xe),vt=Ye.match(/^(.*)\%$/);return vt?Oe*(parseFloat(vt[1])/100):parseFloat(Ye)}function he(Oe,Xe){var Ye=Xe||[],vt=(0,de.Z)(Ye,2),It=vt[0],rn=vt[1];return[_n(Oe.width,It),_n(Oe.height,rn)]}function Se(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Oe[0],Oe[1]]}function Pe(Oe,Xe){var Ye=Xe[0],vt=Xe[1],It,rn;return Ye==="t"?rn=Oe.y:Ye==="b"?rn=Oe.y+Oe.height:rn=Oe.y+Oe.height/2,vt==="l"?It=Oe.x:vt==="r"?It=Oe.x+Oe.width:It=Oe.x+Oe.width/2,{x:It,y:rn}}function Le(Oe,Xe){var Ye={t:"b",b:"t",l:"r",r:"l"};return Oe.map(function(vt,It){return It===Xe?Ye[vt]||"c":vt}).join("")}function Ne(Oe,Xe,Ye,vt,It,rn,an){var An=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:It[vt]||{}}),un=(0,de.Z)(An,2),Jn=un[0],Cr=un[1],Yn=z.useRef(0),Br=z.useMemo(function(){return Xe?xi(Xe):[]},[Xe]),Sr=z.useRef({}),no=function(){Sr.current={}};Oe||no();var ri=hn(function(){if(Xe&&Ye&&Oe){let Gr=function(Co,Zr){var Io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Te,Yo=ji.x+Co,ki=ji.y+Zr,hi=Yo+Ki,Ea=ki+ii,Ca=Math.max(Yo,Io.left),Do=Math.max(ki,Io.top),Ba=Math.min(hi,Io.right),Kn=Math.min(Ea,Io.bottom);return Math.max(0,(Ba-Ca)*(Kn-Do))},Ao=function(){Xa=ji.y+Eo,ys=Xa+ii,eo=ji.x+mo,Vi=eo+Ki};var Wo,No,$r=Xe,Ri=$r.ownerDocument,$i=Ii($r),Gi=$i.getComputedStyle($r),ba=Gi.width,Ga=Gi.height,Zi=Gi.position,yi=$r.style.left,va=$r.style.top,Ma=$r.style.right,ta=$r.style.bottom,gi=(0,ce.Z)((0,ce.Z)({},It[vt]),rn),Wi=Ri.createElement("div");(Wo=$r.parentElement)===null||Wo===void 0||Wo.appendChild(Wi),Wi.style.left="".concat($r.offsetLeft,"px"),Wi.style.top="".concat($r.offsetTop,"px"),Wi.style.position=Zi,Wi.style.height="".concat($r.offsetHeight,"px"),Wi.style.width="".concat($r.offsetWidth,"px"),$r.style.left="0",$r.style.top="0",$r.style.right="auto",$r.style.bottom="auto";var ko;if(Array.isArray(Ye))ko={x:Ye[0],y:Ye[1],width:0,height:0};else{var Er=Ye.getBoundingClientRect();ko={x:Er.x,y:Er.y,width:Er.width,height:Er.height}}var ji=$r.getBoundingClientRect(),Ua=Ri.documentElement,ss=Ua.clientWidth,Oa=Ua.clientHeight,us=Ua.scrollWidth,ds=Ua.scrollHeight,Bi=Ua.scrollTop,ai=Ua.scrollLeft,ii=ji.height,Ki=ji.width,Ni=ko.height,gs=ko.width,Ts={left:0,top:0,right:ss,bottom:Oa},Gs={left:-ai,top:-Bi,right:us-ai,bottom:ds-Bi},Za=gi.htmlRegion,os="visible",Es="visibleFirst";Za!=="scroll"&&Za!==Es&&(Za=os);var is=Za===Es,na=La(Gs,Br),To=La(Ts,Br),Te=Za===os?To:na,ze=is?To:Te;$r.style.left="auto",$r.style.top="auto",$r.style.right="0",$r.style.bottom="0";var Ke=$r.getBoundingClientRect();$r.style.left=yi,$r.style.top=va,$r.style.right=Ma,$r.style.bottom=ta,(No=$r.parentElement)===null||No===void 0||No.removeChild(Wi);var ur=Bo(Math.round(Ki/parseFloat(ba)*1e3)/1e3),En=Bo(Math.round(ii/parseFloat(Ga)*1e3)/1e3);if(ur===0||En===0||gt(Ye)&&!$o(Ye))return;var dn=gi.offset,Cn=gi.targetOffset,Kt=he(ji,dn),yn=(0,de.Z)(Kt,2),zn=yn[0],bo=yn[1],Yr=he(ko,Cn),Oo=(0,de.Z)(Yr,2),Fr=Oo[0],Ko=Oo[1];ko.x-=Fr,ko.y-=Ko;var qr=gi.points||[],ci=(0,de.Z)(qr,2),xo=ci[0],si=ci[1],Fi=Se(si),fo=Se(xo),zi=Pe(ko,Fi),Xn=Pe(ji,fo),Ei=(0,ce.Z)({},gi),mo=zi.x-Xn.x+zn,Eo=zi.y-Xn.y+bo,Ra=Gr(mo,Eo),yr=Gr(mo,Eo,To),Qi=Pe(ko,["t","l"]),ui=Pe(ji,["t","l"]),kr=Pe(ko,["b","r"]),So=Pe(ji,["b","r"]),li=gi.overflow||{},fi=li.adjustX,zs=li.adjustY,Os=li.shiftX,Cs=li.shiftY,Us=function(Zr){return typeof Zr=="boolean"?Zr:Zr>=0},Xa,ys,eo,Vi;Ao();var Qa=Us(zs),Is=fo[0]===Fi[0];if(Qa&&fo[0]==="t"&&(ys>ze.bottom||Sr.current.bt)){var Ia=Eo;Is?Ia-=ii-Ni:Ia=Qi.y-So.y-bo;var ls=Gr(mo,Ia),Ha=Gr(mo,Ia,To);ls>Ra||ls===Ra&&(!is||Ha>=yr)?(Sr.current.bt=!0,Eo=Ia,bo=-bo,Ei.points=[Le(fo,0),Le(Fi,0)]):Sr.current.bt=!1}if(Qa&&fo[0]==="b"&&(Xa<ze.top||Sr.current.tb)){var Sa=Eo;Is?Sa+=ii-Ni:Sa=kr.y-ui.y-bo;var Ee=Gr(mo,Sa),we=Gr(mo,Sa,To);Ee>Ra||Ee===Ra&&(!is||we>=yr)?(Sr.current.tb=!0,Eo=Sa,bo=-bo,Ei.points=[Le(fo,0),Le(Fi,0)]):Sr.current.tb=!1}var Re=Us(fi),Ie=fo[1]===Fi[1];if(Re&&fo[1]==="l"&&(Vi>ze.right||Sr.current.rl)){var je=mo;Ie?je-=Ki-gs:je=Qi.x-So.x-zn;var Ze=Gr(je,Eo),ot=Gr(je,Eo,To);Ze>Ra||Ze===Ra&&(!is||ot>=yr)?(Sr.current.rl=!0,mo=je,zn=-zn,Ei.points=[Le(fo,1),Le(Fi,1)]):Sr.current.rl=!1}if(Re&&fo[1]==="r"&&(eo<ze.left||Sr.current.lr)){var ht=mo;Ie?ht+=Ki-gs:ht=kr.x-ui.x-zn;var st=Gr(ht,Eo),bt=Gr(ht,Eo,To);st>Ra||st===Ra&&(!is||bt>=yr)?(Sr.current.lr=!0,mo=ht,zn=-zn,Ei.points=[Le(fo,1),Le(Fi,1)]):Sr.current.lr=!1}Ao();var Bt=Os===!0?0:Os;typeof Bt=="number"&&(eo<To.left&&(mo-=eo-To.left-zn,ko.x+gs<To.left+Bt&&(mo+=ko.x-To.left+gs-Bt)),Vi>To.right&&(mo-=Vi-To.right-zn,ko.x>To.right-Bt&&(mo+=ko.x-To.right+Bt)));var xt=Cs===!0?0:Cs;typeof xt=="number"&&(Xa<To.top&&(Eo-=Xa-To.top-bo,ko.y+Ni<To.top+xt&&(Eo+=ko.y-To.top+Ni-xt)),ys>To.bottom&&(Eo-=ys-To.bottom-bo,ko.y>To.bottom-xt&&(Eo+=ko.y-To.bottom+xt)));var qt=ji.x+mo,Xt=qt+Ki,sn=ji.y+Eo,kn=sn+ii,Mn=ko.x,Zn=Mn+gs,Un=ko.y,qn=Un+Ni,Ir=Math.max(qt,Mn),Qr=Math.min(Xt,Zn),Mr=(Ir+Qr)/2,vo=Mr-qt,Mo=Math.max(sn,Un),vr=Math.min(kn,qn),Rr=(Mo+vr)/2,hr=Rr-sn;an==null||an(Xe,Ei);var er=Ke.right-ji.x-(mo+ji.width),wr=Ke.bottom-ji.y-(Eo+ji.height);Cr({ready:!0,offsetX:mo/ur,offsetY:Eo/En,offsetR:er/ur,offsetB:wr/En,arrowX:vo/ur,arrowY:hr/En,scaleX:ur,scaleY:En,align:Ei})}}),Uo=function(){Yn.current+=1;var No=Yn.current;Promise.resolve().then(function(){Yn.current===No&&ri()})},oi=function(){Cr(function(No){return(0,ce.Z)((0,ce.Z)({},No),{},{ready:!1})})};return Dn(oi,[vt]),Dn(function(){Oe||oi()},[Oe]),[Jn.ready,Jn.offsetX,Jn.offsetY,Jn.offsetR,Jn.offsetB,Jn.arrowX,Jn.arrowY,Jn.scaleX,Jn.scaleY,Jn.align,Uo]}function nt(Oe,Xe,Ye,vt,It){Dn(function(){if(Oe&&Xe&&Ye){let Yn=function(){vt(),It()};var rn=Xe,an=Ye,An=xi(rn),un=xi(an),Jn=Ii(an),Cr=new Set([Jn].concat((0,mt.Z)(An),(0,mt.Z)(un)));return Cr.forEach(function(Br){Br.addEventListener("scroll",Yn,{passive:!0})}),Jn.addEventListener("resize",Yn,{passive:!0}),vt(),function(){Cr.forEach(function(Br){Br.removeEventListener("scroll",Yn),Jn.removeEventListener("resize",Yn)})}}},[Oe,Xe,Ye])}function lt(Oe){var Xe=React.useRef(!1),Ye=React.useState(Oe),vt=_slicedToArray(Ye,2),It=vt[0],rn=vt[1];React.useEffect(function(){return Xe.current=!1,function(){Xe.current=!0}},[]);function an(An,un){un&&Xe.current||rn(An)}return[It,an]}function fn(Oe){return Oe!==void 0}function tn(Oe,Xe){var Ye=Xe||{},vt=Ye.defaultValue,It=Ye.value,rn=Ye.onChange,an=Ye.postState,An=useState(function(){return fn(It)?It:fn(vt)?typeof vt=="function"?vt():vt:typeof Oe=="function"?Oe():Oe}),un=_slicedToArray(An,2),Jn=un[0],Cr=un[1],Yn=It!==void 0?It:Jn,Br=an?an(Yn):Yn,Sr=useEvent(rn),no=useState([Yn]),ri=_slicedToArray(no,2),Uo=ri[0],oi=ri[1];useLayoutUpdateEffect(function(){var No=Uo[0];Jn!==No&&Sr(Jn,No)},[Uo]),useLayoutUpdateEffect(function(){fn(It)||Cr(It)},[It]);var Wo=useEvent(function(No,$r){Cr(No,$r),oi([Yn],$r)});return[Br,Wo]}var Tn=ee(95845);function fr(Oe,Xe,Ye){var vt=z.useRef({});return(!("value"in vt.current)||Ye(vt.current.condition,Xe))&&(vt.current.value=Oe(),vt.current.condition=Xe),vt.current.value}function Lr(Oe,Xe){typeof Oe=="function"?Oe(Xe):(0,oe.Z)(Oe)==="object"&&Oe&&"current"in Oe&&(Oe.current=Xe)}function Ot(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye<Oe;Ye++)Xe[Ye]=arguments[Ye];var vt=Xe.filter(function(It){return It});return vt.length<=1?vt[0]:function(It){Xe.forEach(function(rn){Lr(rn,It)})}}function cr(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye<Oe;Ye++)Xe[Ye]=arguments[Ye];return fr(function(){return Ot.apply(void 0,Xe)},Xe,function(vt,It){return vt.length!==It.length||vt.every(function(rn,an){return rn!==It[an]})})}function sr(Oe){var Xe,Ye,vt=(0,Tn.isMemo)(Oe)?Oe.type.type:Oe.type;return!(typeof vt=="function"&&!((Xe=vt.prototype)!==null&&Xe!==void 0&&Xe.render)||typeof Oe=="function"&&!((Ye=Oe.prototype)!==null&&Ye!==void 0&&Ye.render))}function Rn(Oe){return!isValidElement(Oe)||isFragment(Oe)?!1:sr(Oe)}function Hn(Oe,Xe,Ye,vt){if(!Xe.length)return Ye;var It=_toArray(Xe),rn=It[0],an=It.slice(1),An;return!Oe&&typeof rn=="number"?An=[]:Array.isArray(Oe)?An=_toConsumableArray(Oe):An=_objectSpread({},Oe),vt&&Ye===void 0&&an.length===1?delete An[rn][an[0]]:An[rn]=Hn(An[rn],an,Ye,vt),An}function tr(Oe,Xe,Ye){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Xe.length&&vt&&Ye===void 0&&!get(Oe,Xe.slice(0,-1))?Oe:Hn(Oe,Xe,Ye,vt)}function jr(Oe){return _typeof(Oe)==="object"&&Oe!==null&&Object.getPrototypeOf(Oe)===Object.prototype}function Pr(Oe){return Array.isArray(Oe)?[]:{}}var Yi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ti(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye<Oe;Ye++)Xe[Ye]=arguments[Ye];var vt=Pr(Xe[0]);return Xe.forEach(function(It){function rn(an,An){var un=new Set(An),Jn=get(It,an),Cr=Array.isArray(Jn);if(Cr||jr(Jn)){if(!un.has(Jn)){un.add(Jn);var Yn=get(vt,an);Cr?vt=tr(vt,an,[]):(!Yn||_typeof(Yn)!=="object")&&(vt=tr(vt,an,Pr(Jn))),Yi(Jn).forEach(function(Br){rn([].concat(_toConsumableArray(an),[Br]),un)})}}else vt=tr(vt,an,Jn)}rn([])}),vt}var xr={},yo=[],Mi=function(Xe){yo.push(Xe)};function Pi(Oe,Xe){if(0)var Ye}function Ai(Oe,Xe){if(0)var Ye}function pn(){xr={}}function Ka(Oe,Xe,Ye){!Xe&&!xr[Ye]&&(Oe(!1,Ye),xr[Ye]=!0)}function Ui(Oe,Xe){Ka(Pi,Oe,Xe)}function Vo(Oe,Xe){Ka(Ai,Oe,Xe)}Ui.preMessage=Mi,Ui.resetWarned=pn,Ui.noteOnce=Vo;var Aa=null,Bn=function(Xe){return+setTimeout(Xe,16)},mr=function(Xe){return clearTimeout(Xe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Bn=function(Xe){return window.requestAnimationFrame(Xe)},mr=function(Xe){return window.cancelAnimationFrame(Xe)});var Hr=0,rr=new Map;function di(Oe){rr.delete(Oe)}var bi=function(Xe){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Hr+=1;var vt=Hr;function It(rn){if(rn===0)di(vt),Xe();else{var an=Bn(function(){It(rn-1)});rr.set(vt,an)}}return It(Ye),vt};bi.cancel=function(Oe){var Xe=rr.get(Oe);return di(Xe),mr(Xe)};var la=bi;function Da(Oe,Xe,Ye,vt,It,rn,an,An){var un=z.useRef(Oe),Jn=z.useRef(!1);un.current!==Oe&&(Jn.current=!0,un.current=Oe),z.useEffect(function(){var Cr=la(function(){Jn.current=!1});return function(){la.cancel(Cr)}},[Oe]),z.useEffect(function(){if(Xe&&vt&&(!It||rn)){var Cr=function(){var Zi=!1,yi=function(ta){var gi=ta.target;Zi=an(gi)},va=function(ta){var gi=ta.target;!Jn.current&&un.current&&!Zi&&!an(gi)&&An(!1)};return[yi,va]},Yn=Cr(),Br=(0,de.Z)(Yn,2),Sr=Br[0],no=Br[1],ri=Cr(),Uo=(0,de.Z)(ri,2),oi=Uo[0],Wo=Uo[1],No=Ii(vt);No.addEventListener("mousedown",Sr,!0),No.addEventListener("click",no,!0),No.addEventListener("contextmenu",no,!0);var $r=Qt(Ye);if($r&&($r.addEventListener("mousedown",oi,!0),$r.addEventListener("click",Wo,!0),$r.addEventListener("contextmenu",Wo,!0)),0)var Ri,$i,Gi,ba;return function(){No.removeEventListener("mousedown",Sr,!0),No.removeEventListener("click",no,!0),No.removeEventListener("contextmenu",no,!0),$r&&($r.removeEventListener("mousedown",oi,!0),$r.removeEventListener("click",Wo,!0),$r.removeEventListener("contextmenu",Wo,!0))}}},[Xe,Ye,vt,It,rn])}function Wa(Oe){return Oe instanceof HTMLElement||Oe instanceof SVGElement}function ft(Oe){return Wa(Oe)?Oe:Oe instanceof z.Component?se.findDOMNode(Oe):null}function ut(Oe,Xe){var Ye={};return Ye[Oe.toLowerCase()]=Xe.toLowerCase(),Ye["Webkit".concat(Oe)]="webkit".concat(Xe),Ye["Moz".concat(Oe)]="moz".concat(Xe),Ye["ms".concat(Oe)]="MS".concat(Xe),Ye["O".concat(Oe)]="o".concat(Xe.toLowerCase()),Ye}function Ht(Oe,Xe){var Ye={animationend:ut("Animation","AnimationEnd"),transitionend:ut("Transition","TransitionEnd")};return Oe&&("AnimationEvent"in Xe||delete Ye.animationend.animation,"TransitionEvent"in Xe||delete Ye.transitionend.transition),Ye}var Yt=Ht(me(),typeof window!="undefined"?window:{}),xn={};if(me()){var Ar=document.createElement("div");xn=Ar.style}var Dr={};function lo(Oe){if(Dr[Oe])return Dr[Oe];var Xe=Yt[Oe];if(Xe)for(var Ye=Object.keys(Xe),vt=Ye.length,It=0;It<vt;It+=1){var rn=Ye[It];if(Object.prototype.hasOwnProperty.call(Xe,rn)&&rn in xn)return Dr[Oe]=Xe[rn],Dr[Oe]}return""}var _o=lo("animationend"),uo=lo("transitionend"),ni=!!(_o&&uo),vi=_o||"animationend",Di=uo||"transitionend";function _t(Oe,Xe){if(!Oe)return null;if((0,oe.Z)(Oe)==="object"){var Ye=Xe.replace(/-\w/g,function(vt){return vt[1].toUpperCase()});return Oe[Ye]}return"".concat(Oe,"-").concat(Xe)}var Et="none",jt="appear",Ue="enter",zt="leave",ln="none",gn="prepare",Lt="start",Ut="active",Rt="end";function Pn(Oe){var Xe=z.useRef(!1),Ye=z.useState(Oe),vt=(0,de.Z)(Ye,2),It=vt[0],rn=vt[1];z.useEffect(function(){return Xe.current=!1,function(){Xe.current=!0}},[]);function an(An,un){un&&Xe.current||rn(An)}return[It,an]}var $n=function(Xe){return+setTimeout(Xe,16)},ir=function(Xe){return clearTimeout(Xe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&($n=function(Xe){return window.requestAnimationFrame(Xe)},ir=function(Xe){return window.cancelAnimationFrame(Xe)});var Qn=0,dr=new Map;function br(Oe){dr.delete(Oe)}var mn=function(Xe){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qn+=1;var vt=Qn;function It(rn){if(rn===0)br(vt),Xe();else{var an=$n(function(){It(rn-1)});dr.set(vt,an)}}return It(Ye),vt};mn.cancel=function(Oe){var Xe=dr.get(Oe);return br(Xe),ir(Xe)};var Dt=mn,Jt=function(){var Oe=z.useRef(null);function Xe(){Dt.cancel(Oe.current)}function Ye(vt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Xe();var rn=Dt(function(){It<=1?vt({isCanceled:function(){return rn!==Oe.current}}):Ye(vt,It-1)});Oe.current=rn}return z.useEffect(function(){return function(){Xe()}},[]),[Ye,Xe]},vn=me()?z.useLayoutEffect:z.useEffect,Vn=vn,pr=[gn,Lt,Ut,Rt],Nr=!1,ao=!0;function Tr(Oe){return Oe===Ut||Oe===Rt}var $e=function(Oe,Xe){var Ye=Pn(ln),vt=(0,de.Z)(Ye,2),It=vt[0],rn=vt[1],an=Jt(),An=(0,de.Z)(an,2),un=An[0],Jn=An[1];function Cr(){rn(gn,!0)}return Vn(function(){if(It!==ln&&It!==Rt){var Yn=pr.indexOf(It),Br=pr[Yn+1],Sr=Xe(It);Sr===Nr?rn(Br,!0):un(function(no){function ri(){no.isCanceled()||rn(Br,!0)}Sr===!0?ri():Promise.resolve(Sr).then(ri)})}},[Oe,It]),z.useEffect(function(){return function(){Jn()}},[]),[Cr,It]},ke=function(Oe){var Xe=(0,z.useRef)(),Ye=(0,z.useRef)(Oe);Ye.current=Oe;var vt=z.useCallback(function(an){Ye.current(an)},[]);function It(an){an&&(an.removeEventListener(Di,vt),an.removeEventListener(vi,vt))}function rn(an){Xe.current&&Xe.current!==an&&It(Xe.current),an&&an!==Xe.current&&(an.addEventListener(Di,vt),an.addEventListener(vi,vt),Xe.current=an)}return z.useEffect(function(){return function(){It(Xe.current)}},[]),[rn,It]};function et(Oe,Xe,Ye,vt){var It=vt.motionEnter,rn=It===void 0?!0:It,an=vt.motionAppear,An=an===void 0?!0:an,un=vt.motionLeave,Jn=un===void 0?!0:un,Cr=vt.motionDeadline,Yn=vt.motionLeaveImmediately,Br=vt.onAppearPrepare,Sr=vt.onEnterPrepare,no=vt.onLeavePrepare,ri=vt.onAppearStart,Uo=vt.onEnterStart,oi=vt.onLeaveStart,Wo=vt.onAppearActive,No=vt.onEnterActive,$r=vt.onLeaveActive,Ri=vt.onAppearEnd,$i=vt.onEnterEnd,Gi=vt.onLeaveEnd,ba=vt.onVisibleChanged,Ga=Pn(),Zi=(0,de.Z)(Ga,2),yi=Zi[0],va=Zi[1],Ma=Pn(Et),ta=(0,de.Z)(Ma,2),gi=ta[0],Wi=ta[1],ko=Pn(null),Er=(0,de.Z)(ko,2),ji=Er[0],Ua=Er[1],ss=(0,z.useRef)(!1),Oa=(0,z.useRef)(null);function us(){return Ye()}var ds=(0,z.useRef)(!1);function Bi(na){var To=us();if(!(na&&!na.deadline&&na.target!==To)){var Te=ds.current,ze;gi===jt&&Te?ze=Ri==null?void 0:Ri(To,na):gi===Ue&&Te?ze=$i==null?void 0:$i(To,na):gi===zt&&Te&&(ze=Gi==null?void 0:Gi(To,na)),gi!==Et&&Te&&ze!==!1&&(Wi(Et,!0),Ua(null,!0))}}var ai=ke(Bi),ii=(0,de.Z)(ai,1),Ki=ii[0],Ni=z.useMemo(function(){var na,To,Te;switch(gi){case jt:return na={},(0,ie.Z)(na,gn,Br),(0,ie.Z)(na,Lt,ri),(0,ie.Z)(na,Ut,Wo),na;case Ue:return To={},(0,ie.Z)(To,gn,Sr),(0,ie.Z)(To,Lt,Uo),(0,ie.Z)(To,Ut,No),To;case zt:return Te={},(0,ie.Z)(Te,gn,no),(0,ie.Z)(Te,Lt,oi),(0,ie.Z)(Te,Ut,$r),Te;default:return{}}},[gi]),gs=$e(gi,function(na){if(na===gn){var To=Ni[gn];return To?To(us()):Nr}if(Za in Ni){var Te;Ua(((Te=Ni[Za])===null||Te===void 0?void 0:Te.call(Ni,us(),null))||null)}return Za===Ut&&(Ki(us()),Cr>0&&(clearTimeout(Oa.current),Oa.current=setTimeout(function(){Bi({deadline:!0})},Cr))),ao}),Ts=(0,de.Z)(gs,2),Gs=Ts[0],Za=Ts[1],os=Tr(Za);ds.current=os,Vn(function(){va(Xe);var na=ss.current;if(ss.current=!0,!!Oe){var To;!na&&Xe&&An&&(To=jt),na&&Xe&&rn&&(To=Ue),(na&&!Xe&&Jn||!na&&Yn&&!Xe&&Jn)&&(To=zt),To&&(Wi(To),Gs())}},[Xe]),(0,z.useEffect)(function(){(gi===jt&&!An||gi===Ue&&!rn||gi===zt&&!Jn)&&Wi(Et)},[An,rn,Jn]),(0,z.useEffect)(function(){return function(){ss.current=!1,clearTimeout(Oa.current)}},[]);var Es=z.useRef(!1);(0,z.useEffect)(function(){yi&&(Es.current=!0),yi!==void 0&&gi===Et&&((Es.current||yi)&&(ba==null||ba(yi)),Es.current=!0)},[yi,gi]);var is=ji;return Ni[gn]&&Za===Lt&&(is=(0,ce.Z)({transition:"none"},is)),[gi,Za,is,yi!=null?yi:Xe]}var At=ee(15671),kt=ee(43144),Zt=ee(60136),Sn=ee(51630),wn=function(Oe){(0,Zt.Z)(Ye,Oe);var Xe=(0,Sn.Z)(Ye);function Ye(){return(0,At.Z)(this,Ye),Xe.apply(this,arguments)}return(0,kt.Z)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(z.Component),Fn=wn;function On(Oe){var Xe=Oe;(0,oe.Z)(Oe)==="object"&&(Xe=Oe.transitionSupport);function Ye(It){return!!(It.motionName&&Xe)}var vt=z.forwardRef(function(It,rn){var an=It.visible,An=an===void 0?!0:an,un=It.removeOnLeave,Jn=un===void 0?!0:un,Cr=It.forceRender,Yn=It.children,Br=It.motionName,Sr=It.leavedClassName,no=It.eventProps,ri=Ye(It),Uo=(0,z.useRef)(),oi=(0,z.useRef)();function Wo(){try{return Uo.current instanceof HTMLElement?Uo.current:ft(oi.current)}catch(ko){return null}}var No=et(ri,An,Wo,It),$r=(0,de.Z)(No,4),Ri=$r[0],$i=$r[1],Gi=$r[2],ba=$r[3],Ga=z.useRef(ba);ba&&(Ga.current=!0);var Zi=z.useCallback(function(ko){Uo.current=ko,ye(rn,ko)},[rn]),yi,va=(0,ce.Z)((0,ce.Z)({},no),{},{visible:An});if(!Yn)yi=null;else if(Ri===Et||!Ye(It))ba?yi=Yn((0,ce.Z)({},va),Zi):!Jn&&Ga.current&&Sr?yi=Yn((0,ce.Z)((0,ce.Z)({},va),{},{className:Sr}),Zi):Cr||!Jn&&!Sr?yi=Yn((0,ce.Z)((0,ce.Z)({},va),{},{style:{display:"none"}}),Zi):yi=null;else{var Ma,ta;$i===gn?ta="prepare":Tr($i)?ta="active":$i===Lt&&(ta="start"),yi=Yn((0,ce.Z)((0,ce.Z)({},va),{},{className:fe()(_t(Br,Ri),(Ma={},(0,ie.Z)(Ma,_t(Br,"".concat(Ri,"-").concat(ta)),ta),(0,ie.Z)(Ma,Br,typeof Br=="string"),Ma)),style:Gi}),Zi)}if(z.isValidElement(yi)&&Ce(yi)){var gi=yi,Wi=gi.ref;Wi||(yi=z.cloneElement(yi,{ref:Zi}))}return z.createElement(Fn,{ref:oi},yi)});return vt.displayName="CSSMotion",vt}var Wn=On(ni),gr=ee(97326),so="add",co="keep",Jr="remove",po="removed";function Ro(Oe){var Xe;return Oe&&(0,oe.Z)(Oe)==="object"&&"key"in Oe?Xe=Oe:Xe={key:Oe},(0,ce.Z)((0,ce.Z)({},Xe),{},{key:String(Xe.key)})}function Fo(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Oe.map(Ro)}function zr(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],vt=0,It=Xe.length,rn=Fo(Oe),an=Fo(Xe);rn.forEach(function(Jn){for(var Cr=!1,Yn=vt;Yn<It;Yn+=1){var Br=an[Yn];if(Br.key===Jn.key){vt<Yn&&(Ye=Ye.concat(an.slice(vt,Yn).map(function(Sr){return(0,ce.Z)((0,ce.Z)({},Sr),{},{status:so})})),vt=Yn),Ye.push((0,ce.Z)((0,ce.Z)({},Br),{},{status:co})),vt+=1,Cr=!0;break}}Cr||Ye.push((0,ce.Z)((0,ce.Z)({},Jn),{},{status:Jr}))}),vt<It&&(Ye=Ye.concat(an.slice(vt).map(function(Jn){return(0,ce.Z)((0,ce.Z)({},Jn),{},{status:so})})));var An={};Ye.forEach(function(Jn){var Cr=Jn.key;An[Cr]=(An[Cr]||0)+1});var un=Object.keys(An).filter(function(Jn){return An[Jn]>1});return un.forEach(function(Jn){Ye=Ye.filter(function(Cr){var Yn=Cr.key,Br=Cr.status;return Yn!==Jn||Br!==Jr}),Ye.forEach(function(Cr){Cr.key===Jn&&(Cr.status=co)})}),Ye}var Zo=["component","children","onVisibleChanged","onAllRemoved"],ho=["status"],qo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function wi(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wn,Ye=function(vt){(0,Zt.Z)(rn,vt);var It=(0,Sn.Z)(rn);function rn(){var an;(0,At.Z)(this,rn);for(var An=arguments.length,un=new Array(An),Jn=0;Jn<An;Jn++)un[Jn]=arguments[Jn];return an=It.call.apply(It,[this].concat(un)),(0,ie.Z)((0,gr.Z)(an),"state",{keyEntities:[]}),(0,ie.Z)((0,gr.Z)(an),"removeKey",function(Cr){var Yn=an.state.keyEntities,Br=Yn.map(function(Sr){return Sr.key!==Cr?Sr:(0,ce.Z)((0,ce.Z)({},Sr),{},{status:po})});return an.setState({keyEntities:Br}),Br.filter(function(Sr){var no=Sr.status;return no!==po}).length}),an}return(0,kt.Z)(rn,[{key:"render",value:function(){var An=this,un=this.state.keyEntities,Jn=this.props,Cr=Jn.component,Yn=Jn.children,Br=Jn.onVisibleChanged,Sr=Jn.onAllRemoved,no=(0,le.Z)(Jn,Zo),ri=Cr||z.Fragment,Uo={};return qo.forEach(function(oi){Uo[oi]=no[oi],delete no[oi]}),delete no.keys,z.createElement(ri,no,un.map(function(oi){var Wo=oi.status,No=(0,le.Z)(oi,ho),$r=Wo===so||Wo===co;return z.createElement(Xe,(0,pe.Z)({},Uo,{key:No.key,visible:$r,eventProps:No,onVisibleChanged:function($i){if(Br==null||Br($i,{key:No.key}),!$i){var Gi=An.removeKey(No.key);Gi===0&&Sr&&Sr()}}}),Yn)}))}}],[{key:"getDerivedStateFromProps",value:function(An,un){var Jn=An.keys,Cr=un.keyEntities,Yn=Fo(Jn),Br=zr(Cr,Yn);return{keyEntities:Br.filter(function(Sr){var no=Cr.find(function(ri){var Uo=ri.key;return Sr.key===Uo});return!(no&&no.status===po&&Sr.status===Jr)})}}}]),rn}(z.Component);return(0,ie.Z)(Ye,"defaultProps",{component:"div"}),Ye}var ya=wi(ni),ei=Wn;function ca(Oe){var Xe=Oe.prefixCls,Ye=Oe.align,vt=Oe.arrow,It=Oe.arrowPos,rn=vt||{},an=rn.className,An=rn.content,un=It.x,Jn=un===void 0?0:un,Cr=It.y,Yn=Cr===void 0?0:Cr,Br=z.useRef();if(!Ye||!Ye.points)return null;var Sr={position:"absolute"};if(Ye.autoArrow!==!1){var no=Ye.points[0],ri=Ye.points[1],Uo=no[0],oi=no[1],Wo=ri[0],No=ri[1];Uo===Wo||!["t","b"].includes(Uo)?Sr.top=Yn:Uo==="t"?Sr.top=0:Sr.bottom=0,oi===No||!["l","r"].includes(oi)?Sr.left=Jn:oi==="l"?Sr.left=0:Sr.right=0}return z.createElement("div",{ref:Br,className:fe()("".concat(Xe,"-arrow"),an),style:Sr},An)}function Hi(Oe){var Xe=Oe.prefixCls,Ye=Oe.open,vt=Oe.zIndex,It=Oe.mask,rn=Oe.motion;return It?z.createElement(ei,(0,pe.Z)({},rn,{motionAppear:!0,visible:Ye,removeOnLeave:!0}),function(an){var An=an.className;return z.createElement("div",{style:{zIndex:vt},className:fe()("".concat(Xe,"-mask"),An)})}):null}var _a=z.memo(function(Oe){var Xe=Oe.children;return Xe},function(Oe,Xe){return Xe.cache}),Xo=_a,zo=z.forwardRef(function(Oe,Xe){var Ye=Oe.popup,vt=Oe.className,It=Oe.prefixCls,rn=Oe.style,an=Oe.target,An=Oe.onVisibleChanged,un=Oe.open,Jn=Oe.keepDom,Cr=Oe.fresh,Yn=Oe.onClick,Br=Oe.mask,Sr=Oe.arrow,no=Oe.arrowPos,ri=Oe.align,Uo=Oe.motion,oi=Oe.maskMotion,Wo=Oe.forceRender,No=Oe.getPopupContainer,$r=Oe.autoDestroy,Ri=Oe.portal,$i=Oe.zIndex,Gi=Oe.onMouseEnter,ba=Oe.onMouseLeave,Ga=Oe.onPointerEnter,Zi=Oe.ready,yi=Oe.offsetX,va=Oe.offsetY,Ma=Oe.offsetR,ta=Oe.offsetB,gi=Oe.onAlign,Wi=Oe.onPrepare,ko=Oe.stretch,Er=Oe.targetWidth,ji=Oe.targetHeight,Ua=typeof Ye=="function"?Ye():Ye,ss=un||Jn,Oa=(No==null?void 0:No.length)>0,us=z.useState(!No||!Oa),ds=(0,de.Z)(us,2),Bi=ds[0],ai=ds[1];if(Dn(function(){!Bi&&Oa&&an&&ai(!0)},[Bi,Oa,an]),!Bi)return null;var ii="auto",Ki={left:"-1000vw",top:"-1000vh",right:ii,bottom:ii};if(Zi||!un){var Ni,gs=ri.points,Ts=ri.dynamicInset||((Ni=ri._experimental)===null||Ni===void 0?void 0:Ni.dynamicInset),Gs=Ts&&gs[0][1]==="r",Za=Ts&&gs[0][0]==="b";Gs?(Ki.right=Ma,Ki.left=ii):(Ki.left=yi,Ki.right=ii),Za?(Ki.bottom=ta,Ki.top=ii):(Ki.top=va,Ki.bottom=ii)}var os={};return ko&&(ko.includes("height")&&ji?os.height=ji:ko.includes("minHeight")&&ji&&(os.minHeight=ji),ko.includes("width")&&Er?os.width=Er:ko.includes("minWidth")&&Er&&(os.minWidth=Er)),un||(os.pointerEvents="none"),z.createElement(Ri,{open:Wo||ss,getContainer:No&&function(){return No(an)},autoDestroy:$r},z.createElement(Hi,{prefixCls:It,open:un,zIndex:$i,mask:Br,motion:oi}),z.createElement(Ge.Z,{onResize:gi,disabled:!un},function(Es){return z.createElement(ei,(0,pe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Wo,leavedClassName:"".concat(It,"-hidden")},Uo,{onAppearPrepare:Wi,onEnterPrepare:Wi,visible:un,onVisibleChanged:function(na){var To;Uo==null||(To=Uo.onVisibleChanged)===null||To===void 0||To.call(Uo,na),An(na)}}),function(is,na){var To=is.className,Te=is.style,ze=fe()(It,To,vt);return z.createElement("div",{ref:Ot(Es,Xe,na),className:ze,style:(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({"--arrow-x":"".concat(no.x||0,"px"),"--arrow-y":"".concat(no.y||0,"px")},Ki),os),Te),{},{boxSizing:"border-box",zIndex:$i},rn),onMouseEnter:Gi,onMouseLeave:ba,onPointerEnter:Ga,onClick:Yn},Sr&&z.createElement(ca,{prefixCls:It,arrow:Sr,arrowPos:no,align:ri}),z.createElement(Xo,{cache:!un&&!Cr},Ua))})}))}),Si=zo,xa=z.forwardRef(function(Oe,Xe){var Ye=Oe.children,vt=Oe.getTriggerDOMNode,It=sr(Ye),rn=z.useCallback(function(An){Lr(Xe,vt?vt(An):An)},[vt]),an=cr(rn,Ye.ref);return It?z.cloneElement(Ye,{ref:an}):Ye}),za=xa,Qo=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ea(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cn,Xe=z.forwardRef(function(Ye,vt){var It=Ye.prefixCls,rn=It===void 0?"rc-trigger-popup":It,an=Ye.children,An=Ye.action,un=An===void 0?"hover":An,Jn=Ye.showAction,Cr=Ye.hideAction,Yn=Ye.popupVisible,Br=Ye.defaultPopupVisible,Sr=Ye.onPopupVisibleChange,no=Ye.afterPopupVisibleChange,ri=Ye.mouseEnterDelay,Uo=Ye.mouseLeaveDelay,oi=Uo===void 0?.1:Uo,Wo=Ye.focusDelay,No=Ye.blurDelay,$r=Ye.mask,Ri=Ye.maskClosable,$i=Ri===void 0?!0:Ri,Gi=Ye.getPopupContainer,ba=Ye.forceRender,Ga=Ye.autoDestroy,Zi=Ye.destroyPopupOnHide,yi=Ye.popup,va=Ye.popupClassName,Ma=Ye.popupStyle,ta=Ye.popupPlacement,gi=Ye.builtinPlacements,Wi=gi===void 0?{}:gi,ko=Ye.popupAlign,Er=Ye.zIndex,ji=Ye.stretch,Ua=Ye.getPopupClassNameFromAlign,ss=Ye.fresh,Oa=Ye.alignPoint,us=Ye.onPopupClick,ds=Ye.onPopupAlign,Bi=Ye.arrow,ai=Ye.popupMotion,ii=Ye.maskMotion,Ki=Ye.popupTransitionName,Ni=Ye.popupAnimation,gs=Ye.maskTransitionName,Ts=Ye.maskAnimation,Gs=Ye.className,Za=Ye.getTriggerDOMNode,os=(0,le.Z)(Ye,Qo),Es=Ga||Zi||!1,is=z.useState(!1),na=(0,de.Z)(is,2),To=na[0],Te=na[1];Dn(function(){Te(Po())},[]);var ze=z.useRef({}),Ke=z.useContext(sa),ur=z.useMemo(function(){return{registerSubPopup:function(ro,Go){ze.current[ro]=Go,Ke==null||Ke.registerSubPopup(ro,Go)}}},[Ke]),En=ar(),dn=z.useState(null),Cn=(0,de.Z)(dn,2),Kt=Cn[0],yn=Cn[1],zn=hn(function(Kn){gt(Kn)&&Kt!==Kn&&yn(Kn),Ke==null||Ke.registerSubPopup(En,Kn)}),bo=z.useState(null),Yr=(0,de.Z)(bo,2),Oo=Yr[0],Fr=Yr[1],Ko=hn(function(Kn){gt(Kn)&&Oo!==Kn&&Fr(Kn)}),qr=z.Children.only(an),ci=(qr==null?void 0:qr.props)||{},xo={},si=hn(function(Kn){var ro,Go,ra=Oo;return(ra==null?void 0:ra.contains(Kn))||((ro=Qt(ra))===null||ro===void 0?void 0:ro.host)===Kn||Kn===ra||(Kt==null?void 0:Kt.contains(Kn))||((Go=Qt(Kt))===null||Go===void 0?void 0:Go.host)===Kn||Kn===Kt||Object.values(ze.current).some(function(_r){return(_r==null?void 0:_r.contains(Kn))||Kn===_r})}),Fi=Lo(rn,ai,Ni,Ki),fo=Lo(rn,ii,Ts,gs),zi=z.useState(Br||!1),Xn=(0,de.Z)(zi,2),Ei=Xn[0],mo=Xn[1],Eo=Yn!=null?Yn:Ei,Ra=hn(function(Kn){Yn===void 0&&mo(Kn)});Dn(function(){mo(Yn||!1)},[Yn]);var yr=z.useRef(Eo);yr.current=Eo;var Qi=hn(function(Kn){(0,se.flushSync)(function(){Eo!==Kn&&(Ra(Kn),Sr==null||Sr(Kn))})}),ui=z.useRef(),kr=function(){clearTimeout(ui.current)},So=function(ro){var Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;kr(),Go===0?Qi(ro):ui.current=setTimeout(function(){Qi(ro)},Go*1e3)};z.useEffect(function(){return kr},[]);var li=z.useState(!1),fi=(0,de.Z)(li,2),zs=fi[0],Os=fi[1];Dn(function(Kn){(!Kn||Eo)&&Os(!0)},[Eo]);var Cs=z.useState(null),Us=(0,de.Z)(Cs,2),Xa=Us[0],ys=Us[1],eo=z.useState([0,0]),Vi=(0,de.Z)(eo,2),Qa=Vi[0],Is=Vi[1],Ia=function(ro){Is([ro.clientX,ro.clientY])},ls=Ne(Eo,Kt,Oa?Qa:Oo,ta,Wi,ko,ds),Ha=(0,de.Z)(ls,11),Sa=Ha[0],Ee=Ha[1],we=Ha[2],Re=Ha[3],Ie=Ha[4],je=Ha[5],Ze=Ha[6],ot=Ha[7],ht=Ha[8],st=Ha[9],bt=Ha[10],Bt=Vr(To,un,Jn,Cr),xt=(0,de.Z)(Bt,2),qt=xt[0],Xt=xt[1],sn=qt.has("click"),kn=Xt.has("click")||Xt.has("contextMenu"),Mn=hn(function(){zs||bt()}),Zn=function(){yr.current&&Oa&&kn&&So(!1)};nt(Eo,Oo,Kt,Mn,Zn),Dn(function(){Mn()},[Qa,ta]),Dn(function(){Eo&&!(Wi!=null&&Wi[ta])&&Mn()},[JSON.stringify(ko)]);var Un=z.useMemo(function(){var Kn=Li(Wi,rn,st,Oa);return fe()(Kn,Ua==null?void 0:Ua(st))},[st,Ua,Wi,rn,Oa]);z.useImperativeHandle(vt,function(){return{forceAlign:Mn}});var qn=z.useState(0),Ir=(0,de.Z)(qn,2),Qr=Ir[0],Mr=Ir[1],vo=z.useState(0),Mo=(0,de.Z)(vo,2),vr=Mo[0],Rr=Mo[1],hr=function(){if(ji&&Oo){var ro=Oo.getBoundingClientRect();Mr(ro.width),Rr(ro.height)}},er=function(){hr(),Mn()},wr=function(ro){Os(!1),bt(),no==null||no(ro)},Gr=function(){return new Promise(function(ro){hr(),ys(function(){return ro})})};Dn(function(){Xa&&(bt(),Xa(),ys(null))},[Xa]);function Ao(Kn,ro,Go,ra){xo[Kn]=function(_r){var oo;ra==null||ra(_r),So(ro,Go);for(var io=arguments.length,Wr=new Array(io>1?io-1:0),_i=1;_i<io;_i++)Wr[_i-1]=arguments[_i];(oo=ci[Kn])===null||oo===void 0||oo.call.apply(oo,[ci,_r].concat(Wr))}}(sn||kn)&&(xo.onClick=function(Kn){var ro;yr.current&&kn?So(!1):!yr.current&&sn&&(Ia(Kn),So(!0));for(var Go=arguments.length,ra=new Array(Go>1?Go-1:0),_r=1;_r<Go;_r++)ra[_r-1]=arguments[_r];(ro=ci.onClick)===null||ro===void 0||ro.call.apply(ro,[ci,Kn].concat(ra))}),Da(Eo,kn,Oo,Kt,$r,$i,si,So);var Co=qt.has("hover"),Zr=Xt.has("hover"),Io,Yo;Co&&(Ao("onMouseEnter",!0,ri,function(Kn){Ia(Kn)}),Ao("onPointerEnter",!0,ri,function(Kn){Ia(Kn)}),Io=function(){(Eo||zs)&&So(!0,ri)},Oa&&(xo.onMouseMove=function(Kn){var ro;(ro=ci.onMouseMove)===null||ro===void 0||ro.call(ci,Kn)})),Zr&&(Ao("onMouseLeave",!1,oi),Ao("onPointerLeave",!1,oi),Yo=function(){So(!1,oi)}),qt.has("focus")&&Ao("onFocus",!0,Wo),Xt.has("focus")&&Ao("onBlur",!1,No),qt.has("contextMenu")&&(xo.onContextMenu=function(Kn){var ro;yr.current&&Xt.has("contextMenu")?So(!1):(Ia(Kn),So(!0)),Kn.preventDefault();for(var Go=arguments.length,ra=new Array(Go>1?Go-1:0),_r=1;_r<Go;_r++)ra[_r-1]=arguments[_r];(ro=ci.onContextMenu)===null||ro===void 0||ro.call.apply(ro,[ci,Kn].concat(ra))}),Gs&&(xo.className=fe()(ci.className,Gs));var ki=(0,ce.Z)((0,ce.Z)({},ci),xo),hi={},Ea=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ea.forEach(function(Kn){os[Kn]&&(hi[Kn]=function(){for(var ro,Go=arguments.length,ra=new Array(Go),_r=0;_r<Go;_r++)ra[_r]=arguments[_r];(ro=ki[Kn])===null||ro===void 0||ro.call.apply(ro,[ki].concat(ra)),os[Kn].apply(os,ra)})});var Ca=z.cloneElement(qr,(0,ce.Z)((0,ce.Z)({},ki),hi)),Do={x:je,y:Ze},Ba=Bi?(0,ce.Z)({},Bi!==!0?Bi:{}):null;return z.createElement(z.Fragment,null,z.createElement(Ge.Z,{disabled:!Eo,ref:Ko,onResize:er},z.createElement(za,{getTriggerDOMNode:Za},Ca)),z.createElement(sa.Provider,{value:ur},z.createElement(Si,{portal:Oe,ref:zn,prefixCls:rn,popup:yi,className:fe()(va,Un),style:Ma,target:Oo,onMouseEnter:Io,onMouseLeave:Yo,onPointerEnter:Io,zIndex:Er,open:Eo,keepDom:zs,fresh:ss,onClick:us,mask:$r,motion:Fi,maskMotion:fo,onVisibleChanged:wr,onPrepare:Gr,forceRender:ba,autoDestroy:Es,getPopupContainer:Gi,align:st,arrow:Ba,arrowPos:Do,ready:Sa,offsetX:Ee,offsetY:we,offsetR:Re,offsetB:Ie,onAlign:Mn,stretch:ji,targetWidth:Qr/ot,targetHeight:vr/ht})))});return Xe}var ua=ea(cn),Or={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Xe){var Ye=Xe.keyCode;if(Xe.altKey&&!Xe.ctrlKey||Xe.metaKey||Ye>=Or.F1&&Ye<=Or.F12)return!1;switch(Ye){case Or.ALT:case Or.CAPS_LOCK:case Or.CONTEXT_MENU:case Or.CTRL:case Or.DOWN:case Or.END:case Or.ESC:case Or.HOME:case Or.INSERT:case Or.LEFT:case Or.MAC_FF_META:case Or.META:case Or.NUMLOCK:case Or.NUM_CENTER:case Or.PAGE_DOWN:case Or.PAGE_UP:case Or.PAUSE:case Or.PRINT_SCREEN:case Or.RIGHT:case Or.SHIFT:case Or.UP:case Or.WIN_KEY:case Or.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Xe){if(Xe>=Or.ZERO&&Xe<=Or.NINE||Xe>=Or.NUM_ZERO&&Xe<=Or.NUM_MULTIPLY||Xe>=Or.A&&Xe<=Or.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Xe===0)return!0;switch(Xe){case Or.SPACE:case Or.QUESTION_MARK:case Or.NUM_PLUS:case Or.NUM_MINUS:case Or.NUM_PERIOD:case Or.NUM_DIVISION:case Or.SEMICOLON:case Or.DASH:case Or.EQUALS:case Or.COMMA:case Or.PERIOD:case Or.SLASH:case Or.APOSTROPHE:case Or.SINGLE_QUOTE:case Or.OPEN_SQUARE_BRACKET:case Or.BACKSLASH:case Or.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},fa=Or,ha=fa.ESC,ma=fa.TAB;function aa(Oe){var Xe=Oe.visible,Ye=Oe.triggerRef,vt=Oe.onVisibleChange,It=Oe.autoFocus,rn=Oe.overlayRef,an=z.useRef(!1),An=function(){if(Xe){var Yn,Br;(Yn=Ye.current)===null||Yn===void 0||(Br=Yn.focus)===null||Br===void 0||Br.call(Yn),vt==null||vt(!1)}},un=function(){var Yn;return(Yn=rn.current)!==null&&Yn!==void 0&&Yn.focus?(rn.current.focus(),an.current=!0,!0):!1},Jn=function(Yn){switch(Yn.keyCode){case ha:An();break;case ma:{var Br=!1;an.current||(Br=un()),Br?Yn.preventDefault():An();break}}};z.useEffect(function(){return Xe?(window.addEventListener("keydown",Jn),It&&Dt(un,3),function(){window.removeEventListener("keydown",Jn),an.current=!1}):function(){an.current=!1}},[Xe])}var Ta=(0,z.forwardRef)(function(Oe,Xe){var Ye=Oe.overlay,vt=Oe.arrow,It=Oe.prefixCls,rn=(0,z.useMemo)(function(){var An;return typeof Ye=="function"?An=Ye():An=Ye,An},[Ye]),an=_e(Xe,rn==null?void 0:rn.ref);return z.createElement(z.Fragment,null,vt&&z.createElement("div",{className:"".concat(It,"-arrow")}),z.cloneElement(rn,{ref:Ce(rn)?an:void 0}))}),da=Ta,pa={adjustX:1,adjustY:1},$a=[0,0],rs={topLeft:{points:["bl","tl"],overflow:pa,offset:[0,-4],targetOffset:$a},top:{points:["bc","tc"],overflow:pa,offset:[0,-4],targetOffset:$a},topRight:{points:["br","tr"],overflow:pa,offset:[0,-4],targetOffset:$a},bottomLeft:{points:["tl","bl"],overflow:pa,offset:[0,4],targetOffset:$a},bottom:{points:["tc","bc"],overflow:pa,offset:[0,4],targetOffset:$a},bottomRight:{points:["tr","br"],overflow:pa,offset:[0,4],targetOffset:$a}},Xi=rs,ga=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Pa(Oe,Xe){var Ye,vt=Oe.arrow,It=vt===void 0?!1:vt,rn=Oe.prefixCls,an=rn===void 0?"rc-dropdown":rn,An=Oe.transitionName,un=Oe.animation,Jn=Oe.align,Cr=Oe.placement,Yn=Cr===void 0?"bottomLeft":Cr,Br=Oe.placements,Sr=Br===void 0?Xi:Br,no=Oe.getPopupContainer,ri=Oe.showAction,Uo=Oe.hideAction,oi=Oe.overlayClassName,Wo=Oe.overlayStyle,No=Oe.visible,$r=Oe.trigger,Ri=$r===void 0?["hover"]:$r,$i=Oe.autoFocus,Gi=Oe.overlay,ba=Oe.children,Ga=Oe.onVisibleChange,Zi=(0,le.Z)(Oe,ga),yi=z.useState(),va=(0,de.Z)(yi,2),Ma=va[0],ta=va[1],gi="visible"in Oe?No:Ma,Wi=z.useRef(null),ko=z.useRef(null),Er=z.useRef(null);z.useImperativeHandle(Xe,function(){return Wi.current});var ji=function(Ki){ta(Ki),Ga==null||Ga(Ki)};aa({visible:gi,triggerRef:Er,onVisibleChange:ji,autoFocus:$i,overlayRef:ko});var Ua=function(Ki){var Ni=Oe.onOverlayClick;ta(!1),Ni&&Ni(Ki)},ss=function(){return z.createElement(da,{ref:ko,overlay:Gi,prefixCls:an,arrow:It})},Oa=function(){return typeof Gi=="function"?ss:ss()},us=function(){var Ki=Oe.minOverlayWidthMatchTrigger,Ni=Oe.alignPoint;return"minOverlayWidthMatchTrigger"in Oe?Ki:!Ni},ds=function(){var Ki=Oe.openClassName;return Ki!==void 0?Ki:"".concat(an,"-open")},Bi=z.cloneElement(ba,{className:fe()((Ye=ba.props)===null||Ye===void 0?void 0:Ye.className,gi&&ds()),ref:Ce(ba)?_e(Er,ba.ref):void 0}),ai=Uo;return!ai&&Ri.indexOf("contextMenu")!==-1&&(ai=["click"]),z.createElement(ua,(0,pe.Z)({builtinPlacements:Sr},Zi,{prefixCls:an,ref:Wi,popupClassName:fe()(oi,(0,ie.Z)({},"".concat(an,"-show-arrow"),It)),popupStyle:Wo,action:Ri,showAction:ri,hideAction:ai,popupPlacement:Yn,popupAlign:Jn,popupTransitionName:An,popupAnimation:un,popupVisible:gi,stretch:us()?"minWidth":"",popup:Oa(),onPopupVisibleChange:ji,onPopupClick:Ua,getPopupContainer:no}),Bi)}var as=z.forwardRef(Pa),As=as,Ds=ee(60276),Fs=ee(5663),hs=ee(10366),ts=ee(80636),ns=ee(8745),ms=ee(96159),bs=ee(53124),el=ee(68508),tl=ee(76529),Rs=ee(46605),Hs=ee(66748);const nl=null,ks=Oe=>{const{menu:Xe,arrow:Ye,prefixCls:vt,children:It,trigger:rn,disabled:an,dropdownRender:An,getPopupContainer:un,overlayClassName:Jn,rootClassName:Cr,open:Yn,onOpenChange:Br,visible:Sr,onVisibleChange:no,mouseEnterDelay:ri=.15,mouseLeaveDelay:Uo=.1,autoAdjustOverflow:oi=!0,placement:Wo="",overlay:No,transitionName:$r}=Oe,{getPopupContainer:Ri,getPrefixCls:$i,direction:Gi}=z.useContext(bs.E_),ba=z.useMemo(()=>{const Bi=$i();return $r!==void 0?$r:Wo.includes("top")?`${Bi}-slide-down`:`${Bi}-slide-up`},[$i,Wo,$r]),Ga=z.useMemo(()=>Wo?Wo.includes("Center")?Wo.slice(0,Wo.indexOf("Center")):Wo:Gi==="rtl"?"bottomRight":"bottomLeft",[Wo,Gi]),Zi=$i("dropdown",vt),[yi,va]=(0,Hs.Z)(Zi),[,Ma]=(0,Rs.Z)(),ta=z.Children.only(It),gi=(0,ms.Tm)(ta,{className:fe()(`${Zi}-trigger`,{[`${Zi}-rtl`]:Gi==="rtl"},ta.props.className),disabled:an}),Wi=an?[]:rn;let ko;Wi&&Wi.includes("contextMenu")&&(ko=!0);const[Er,ji]=(0,Fs.Z)(!1,{value:Yn!=null?Yn:Sr}),Ua=(0,Ds.useEvent)(Bi=>{Br==null||Br(Bi),no==null||no(Bi),ji(Bi)}),ss=fe()(Jn,Cr,va,{[`${Zi}-rtl`]:Gi==="rtl"}),Oa=(0,ts.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:oi,offset:Ma.marginXXS,arrowWidth:Ye?Ma.sizePopupArrow:0,borderRadius:Ma.borderRadius}),us=z.useCallback(()=>{ji(!1)},[]),ds=()=>{let Bi;return Xe!=null&&Xe.items?Bi=z.createElement(el.default,Object.assign({},Xe)):typeof No=="function"?Bi=No():Bi=No,An&&(Bi=An(Bi)),Bi=z.Children.only(typeof Bi=="string"?z.createElement("span",null,Bi):Bi),z.createElement(tl.J,{prefixCls:`${Zi}-menu`,expandIcon:z.createElement("span",{className:`${Zi}-menu-submenu-arrow`},z.createElement(be.Z,{className:`${Zi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:us,validator:ai=>{let{mode:ii}=ai}},Bi)};return yi(z.createElement(As,Object.assign({alignPoint:ko},(0,hs.Z)(Oe,["rootClassName"]),{mouseEnterDelay:ri,mouseLeaveDelay:Uo,visible:Er,builtinPlacements:Oa,arrow:!!Ye,overlayClassName:ss,prefixCls:Zi,getPopupContainer:un||Ri,transitionName:ba,trigger:Wi,overlay:ds,placement:Ga,onVisibleChange:Ua}),gi))};function Ns(Oe){return Object.assign(Object.assign({},Oe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const js=(0,ns.Z)(ks,"dropdown",Oe=>Oe,Ns),$s=Oe=>z.createElement(js,Object.assign({},Oe),z.createElement("span",null));ks._InternalPanelDoNotUseOrYouWillBeFired=$s;var Vs=ks},85418:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return a}});var z=ee(56153),ge=ee(94184),be=ee.n(ge),ve=ee(67294),fe=ee(25877),pe=ee(71577),ie=ee(53124),de=ee(93421),le=ee(4173),ce=ee(66748),se=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,x=Object.getOwnPropertySymbols(y);te<x.length;te++)E.indexOf(x[te])<0&&Object.prototype.propertyIsEnumerable.call(y,x[te])&&(b[x[te]]=y[x[te]]);return b};const me=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ie.E_),{prefixCls:te,type:oe="default",danger:ae,disabled:ue,loading:ye,onClick:_e,htmlType:xe,children:Ce,className:Be,menu:Me,arrow:mt,autoFocus:Qe,overlay:pt,trigger:Ae,align:De,open:Fe,onOpenChange:tt,placement:Ve,getPopupContainer:Ct,href:Mt,icon:en=ve.createElement(fe.Z,null),title:nn,buttonsRender:it=rt=>rt,mouseEnterDelay:ct,mouseLeaveDelay:wt,overlayClassName:Vt,overlayStyle:Gt,destroyPopupOnHide:Ln,dropdownRender:He}=y,on=se(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),In=b("dropdown",te),or=`${In}-button`,[bn,$t]=(0,ce.Z)(In),qe={menu:Me,arrow:mt,autoFocus:Qe,align:De,disabled:ue,trigger:ue?[]:Ae,onOpenChange:tt,getPopupContainer:Ct||E,mouseEnterDelay:ct,mouseLeaveDelay:wt,overlayClassName:Vt,overlayStyle:Gt,destroyPopupOnHide:Ln,dropdownRender:He},{compactSize:Je,compactItemClassnames:Pt}=(0,le.ri)(In,x),Nt=be()(or,Pt,Be,$t);"overlay"in y&&(qe.overlay=pt),"open"in y&&(qe.open=Fe),"placement"in y?qe.placement=Ve:qe.placement=x==="rtl"?"bottomLeft":"bottomRight";const Wt=ve.createElement(pe.ZP,{type:oe,danger:ae,disabled:ue,loading:ye,onClick:_e,htmlType:xe,href:Mt,title:nn},Ce),dt=ve.createElement(pe.ZP,{type:oe,danger:ae,icon:en}),[yt,Tt]=it([Wt,dt]);return bn(ve.createElement(de.Z.Compact,Object.assign({className:Nt,size:Je,block:!0},on),yt,ve.createElement(z.Z,Object.assign({},qe),Tt)))};me.__ANT_BUTTON=!0;var re=me;const ne=z.Z;ne.Button=re;var a=ne},66748:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return se}});var z=ee(14747),ge=ee(67771),be=ee(33297),ve=ee(50438),fe=ee(97414),pe=ee(67968),ie=ee(45503),le=me=>{const{componentCls:re,menuCls:ne,colorError:a,colorTextLightSolid:y}=me,E=`${ne}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ce=me=>{const{componentCls:re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:te,dropdownPaddingVertical:oe,fontSize:ae,dropdownEdgeChildPadding:ue,colorTextDisabled:ye,fontSizeIcon:_e,controlPaddingHorizontal:xe,colorBgElevated:Ce}=me;return[{[re]:Object.assign(Object.assign({},(0,z.Wf)(me)),{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:_e}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:_e},[`${x}-down::before`]:{transition:`transform ${te}`}},[`${re}-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${re}-placement-bottomLeft,
|
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft,
|
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom,
|
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom,
|
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight,
|
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:ge.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft,
|
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft,
|
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top,
|
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top,
|
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight,
|
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:ge.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft,
|
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom,
|
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:ge.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft,
|
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top,
|
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:ge.ly}})},(0,fe.ZP)(me,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${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}},[`${re}, ${re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ue,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,z.Qy)(me)),{[`${ne}-item-group-title`]:{padding:`${oe}px ${xe}px`,color:me.colorTextDescription,transition:`all ${te}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:ae,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${xe}px`,color:me.colorText,fontWeight:"normal",fontSize:ae,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,z.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:ye,cursor:"not-allowed","&:hover":{color:ye,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:_e,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:xe+me.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:ye,backgroundColor:Ce,cursor:"not-allowed"}},[`${ne}-submenu-selected ${re}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,ge.oN)(me,"slide-up"),(0,ge.oN)(me,"slide-down"),(0,be.Fm)(me,"move-up"),(0,be.Fm)(me,"move-down"),(0,ve._y)(me,"zoom-big")]]};var se=(0,pe.Z)("Dropdown",(me,re)=>{let{rootPrefixCls:ne}=re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:te,componentCls:oe,borderRadiusLG:ae}=me,ue=(E-b*x)/2,{dropdownArrowOffset:ye}=(0,fe.fS)({contentRadius:ae}),_e=(0,ie.TS)(me,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ye,dropdownPaddingVertical:ue,dropdownEdgeChildPadding:te});return[ce(_e),le(_e)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},25378:function(at,We,ee){"use strict";var z=ee(67294),ge=ee(14075),be=ee(57838),ve=ee(74443);function fe(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,z.useRef)({}),de=(0,be.Z)(),le=(0,ve.ZP)();return(0,ge.Z)(()=>{const ce=le.subscribe(se=>{ie.current=se,pe&&de()});return()=>le.unsubscribe(ce)},[]),ie.current}We.Z=fe},71322:function(at,We,ee){"use strict";ee.d(We,{D:function(){return x},Z:function(){return ae}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(ye,_e){return ge.createElement(fe.Z,(0,z.Z)({},ye,{ref:_e,icon:ve}))},ie=ge.forwardRef(pe),de=ee(22751),le=ee(91034),ce=ee(94184),se=ee.n(ce),me=ee(10366),ne=ue=>!isNaN(parseFloat(ue))&&isFinite(ue),a=ee(53124),y=ee(84321),E=function(ue,ye){var _e={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&ye.indexOf(xe)<0&&(_e[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,xe=Object.getOwnPropertySymbols(ue);Ce<xe.length;Ce++)ye.indexOf(xe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ue,xe[Ce])&&(_e[xe[Ce]]=ue[xe[Ce]]);return _e};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ge.createContext({}),te=(()=>{let ue=0;return function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ue+=1,`${ye}${ue}`}})();var ae=ge.forwardRef((ue,ye)=>{const{prefixCls:_e,className:xe,trigger:Ce,children:Be,defaultCollapsed:Me=!1,theme:mt="dark",style:Qe={},collapsible:pt=!1,reverseArrow:Ae=!1,width:De=200,collapsedWidth:Fe=80,zeroWidthTriggerStyle:tt,breakpoint:Ve,onCollapse:Ct,onBreakpoint:Mt}=ue,en=E(ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nn}=(0,ge.useContext)(y.Gs),[it,ct]=(0,ge.useState)("collapsed"in ue?ue.collapsed:Me),[wt,Vt]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in ue&&ct(ue.collapsed)},[ue.collapsed]);const Gt=(bn,$t)=>{"collapsed"in ue||ct(bn),Ct==null||Ct(bn,$t)},Ln=(0,ge.useRef)();Ln.current=bn=>{Vt(bn.matches),Mt==null||Mt(bn.matches),it!==bn.matches&&Gt(bn.matches,"responsive")},(0,ge.useEffect)(()=>{function bn(qe){return Ln.current(qe)}let $t;if(typeof window!="undefined"){const{matchMedia:qe}=window;if(qe&&Ve&&Ve in b){$t=qe(`(max-width: ${b[Ve]})`);try{$t.addEventListener("change",bn)}catch(Je){$t.addListener(bn)}bn($t)}}return()=>{try{$t==null||$t.removeEventListener("change",bn)}catch(qe){$t==null||$t.removeListener(bn)}}},[Ve]),(0,ge.useEffect)(()=>{const bn=te("ant-sider-");return nn.addSider(bn),()=>nn.removeSider(bn)},[]);const He=()=>{Gt(!it,"clickTrigger")},{getPrefixCls:on}=(0,ge.useContext)(a.E_),In=()=>{const bn=on("layout-sider",_e),$t=(0,me.Z)(en,["collapsed"]),qe=it?Fe:De,Je=ne(qe)?`${qe}px`:String(qe),Pt=parseFloat(String(Fe||0))===0?ge.createElement("span",{onClick:He,className:se()(`${bn}-zero-width-trigger`,`${bn}-zero-width-trigger-${Ae?"right":"left"}`),style:tt},Ce||ge.createElement(ie,null)):null,dt={expanded:Ae?ge.createElement(le.Z,null):ge.createElement(de.Z,null),collapsed:Ae?ge.createElement(de.Z,null):ge.createElement(le.Z,null)}[it?"collapsed":"expanded"],yt=Ce!==null?Pt||ge.createElement("div",{className:`${bn}-trigger`,onClick:He,style:{width:Je}},Ce||dt):null,Tt=Object.assign(Object.assign({},Qe),{flex:`0 0 ${Je}`,maxWidth:Je,minWidth:Je,width:Je}),rt=se()(bn,`${bn}-${mt}`,{[`${bn}-collapsed`]:!!it,[`${bn}-has-trigger`]:pt&&Ce!==null&&!Pt,[`${bn}-below`]:!!wt,[`${bn}-zero-width`]:parseFloat(Je)===0},xe);return ge.createElement("aside",Object.assign({className:rt},$t,{style:Tt,ref:ye}),ge.createElement("div",{className:`${bn}-children`},Be),pt||wt&&Pt?yt:null)},or=ge.useMemo(()=>({siderCollapsed:it}),[it]);return ge.createElement(x.Provider,{value:or},In())})},84321:function(at,We,ee){"use strict";ee.d(We,{VY:function(){return te},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var z=ee(74902),ge=ee(94184),be=ee.n(ge),ve=ee(10366),fe=ee(67294),pe=ee(53124),ie=ee(67968),le=ae=>{const{componentCls:ue,bodyBg:ye,lightSiderBg:_e,lightTriggerBg:xe,lightTriggerColor:Ce}=ae;return{[`${ue}-sider-light`]:{background:_e,[`${ue}-sider-trigger`]:{color:Ce,background:xe},[`${ue}-sider-zero-width-trigger`]:{color:Ce,background:xe,border:`1px solid ${ye}`,borderInlineStart:0}}}};const ce=ae=>{const{antCls:ue,componentCls:ye,colorText:_e,triggerColor:xe,footerBg:Ce,triggerBg:Be,headerHeight:Me,headerPadding:mt,headerColor:Qe,footerPadding:pt,triggerHeight:Ae,zeroTriggerHeight:De,zeroTriggerWidth:Fe,motionDurationMid:tt,motionDurationSlow:Ve,fontSize:Ct,borderRadius:Mt,bodyBg:en,headerBg:nn,siderBg:it}=ae;return{[ye]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:en,"&, *":{boxSizing:"border-box"},[`&${ye}-has-sider`]:{flexDirection:"row",[`> ${ye}, > ${ye}-content`]:{width:0}},[`${ye}-header, &${ye}-footer`]:{flex:"0 0 auto"},[`${ye}-sider`]:{position:"relative",minWidth:0,background:it,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ue}-menu${ue}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ae},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ae,color:xe,lineHeight:`${Ae}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Fe,zIndex:1,width:Fe,height:De,color:xe,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:it,borderStartStartRadius:0,borderStartEndRadius:Mt,borderEndEndRadius:Mt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Fe,borderStartStartRadius:Mt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Mt}}}}},le(ae)),{"&-rtl":{direction:"rtl"}}),[`${ye}-header`]:{height:Me,padding:mt,color:Qe,lineHeight:`${Me}px`,background:nn,[`${ue}-menu`]:{lineHeight:"inherit"}},[`${ye}-footer`]:{padding:pt,color:_e,fontSize:Ct,background:Ce},[`${ye}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ie.Z)("Layout",ae=>[ce(ae)],ae=>{const{colorBgLayout:ue,controlHeight:ye,controlHeightLG:_e,colorText:xe,controlHeightSM:Ce,marginXXS:Be,colorTextLightSolid:Me,colorBgContainer:mt}=ae,Qe=_e*1.25;return{colorBgHeader:"#001529",colorBgBody:ue,colorBgTrigger:"#002140",bodyBg:ue,headerBg:"#001529",headerHeight:ye*2,headerPadding:`0 ${Qe}px`,headerColor:xe,footerPadding:`${Ce}px ${Qe}px`,footerBg:ue,siderBg:"#001529",triggerHeight:_e+Be*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:_e,zeroTriggerHeight:_e,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(ae,ue){var ye={};for(var _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&ue.indexOf(_e)<0&&(ye[_e]=ae[_e]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(ae);xe<_e.length;xe++)ue.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(ae,_e[xe])&&(ye[_e[xe]]=ae[_e[xe]]);return ye};const re=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ae){let{suffixCls:ue,tagName:ye,displayName:_e}=ae;return xe=>fe.forwardRef((Be,Me)=>fe.createElement(xe,Object.assign({ref:Me,suffixCls:ue,tagName:ye},Be)))}const a=fe.forwardRef((ae,ue)=>{const{prefixCls:ye,suffixCls:_e,className:xe,tagName:Ce}=ae,Be=me(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=fe.useContext(pe.E_),mt=Me("layout",ye),[Qe,pt]=se(mt),Ae=_e?`${mt}-${_e}`:mt;return Qe(fe.createElement(Ce,Object.assign({className:be()(ye||Ae,xe,pt),ref:ue},Be)))}),y=fe.forwardRef((ae,ue)=>{const{direction:ye}=fe.useContext(pe.E_),[_e,xe]=fe.useState([]),{prefixCls:Ce,className:Be,rootClassName:Me,children:mt,hasSider:Qe,tagName:pt,style:Ae}=ae,De=me(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Fe=(0,ve.Z)(De,["suffixCls"]),{getPrefixCls:tt,layout:Ve}=fe.useContext(pe.E_),Ct=tt("layout",Ce),[Mt,en]=se(Ct),nn=be()(Ct,{[`${Ct}-has-sider`]:typeof Qe=="boolean"?Qe:_e.length>0,[`${Ct}-rtl`]:ye==="rtl"},Ve==null?void 0:Ve.className,Be,Me,en),it=fe.useMemo(()=>({siderHook:{addSider:ct=>{xe(wt=>[].concat((0,z.Z)(wt),[ct]))},removeSider:ct=>{xe(wt=>wt.filter(Vt=>Vt!==ct))}}}),[]);return Mt(fe.createElement(re.Provider,{value:it},fe.createElement(pt,Object.assign({ref:ue,className:nn,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Ae)},Fe),mt)))}),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),te=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var oe=E},76529:function(at,We,ee){"use strict";ee.d(We,{J:function(){return pe}});var z=ee(67294),ge=ee(4173),be=ee(60276),ve=function(ie,de){var le={};for(var ce in ie)Object.prototype.hasOwnProperty.call(ie,ce)&&de.indexOf(ce)<0&&(le[ce]=ie[ce]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ce=Object.getOwnPropertySymbols(ie);se<ce.length;se++)de.indexOf(ce[se])<0&&Object.prototype.propertyIsEnumerable.call(ie,ce[se])&&(le[ce[se]]=ie[ce[se]]);return le};const fe=z.createContext(null),pe=z.forwardRef((ie,de)=>{const{children:le}=ie,ce=ve(ie,["children"]),se=z.useContext(fe),me=z.useMemo(()=>Object.assign(Object.assign({},se),ce),[se,ce.prefixCls,ce.mode,ce.selectable]);return z.createElement(fe.Provider,{value:me},z.createElement(ge.BR,null,(0,be.supportNodeRef)(le)?z.cloneElement(le,{ref:de}):le))});We.Z=fe},68508:function(at,We,ee){"use strict";ee.d(We,{default:function(){return bn}});var z=ee(52073),ge=ee(67294),be=ee(71322),ve=ee(94184),fe=ee.n(ve),pe=ee(53124),ie=function($t,qe){var Je={};for(var Pt in $t)Object.prototype.hasOwnProperty.call($t,Pt)&&qe.indexOf(Pt)<0&&(Je[Pt]=$t[Pt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols($t);Nt<Pt.length;Nt++)qe.indexOf(Pt[Nt])<0&&Object.prototype.propertyIsEnumerable.call($t,Pt[Nt])&&(Je[Pt[Nt]]=$t[Pt[Nt]]);return Je},le=$t=>{const{prefixCls:qe,className:Je,dashed:Pt}=$t,Nt=ie($t,["prefixCls","className","dashed"]),{getPrefixCls:Wt}=ge.useContext(pe.E_),dt=Wt("menu",qe),yt=fe()({[`${dt}-item-divider-dashed`]:!!Pt},Je);return ge.createElement(z.iz,Object.assign({className:yt},Nt))},ce=ee(37419),se=ee(10366),me=ee(83062),re=ee(96159),a=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=$t=>{var qe;const{className:Je,children:Pt,icon:Nt,title:Wt,danger:dt}=$t,{prefixCls:yt,firstLevel:Tt,direction:rt,disableMenuItemTitleTooltip:cn,inlineCollapsed:Ge}=ge.useContext(a),gt=jn=>{const lr=ge.createElement("span",{className:`${yt}-title-content`},Pt);return(!Nt||(0,re.l$)(Pt)&&Pt.type==="span")&&Pt&&jn&&Tt&&typeof Pt=="string"?ge.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Pt.charAt(0)):lr},{siderCollapsed:Gn}=ge.useContext(be.D);let Nn=Wt;typeof Wt=="undefined"?Nn=Tt?Pt:"":Wt===!1&&(Nn="");const St={title:Nn};!Gn&&!Ge&&(St.title=null,St.open=!1);const Qt=(0,ce.Z)(Pt).length;let hn=ge.createElement(z.ck,Object.assign({},(0,se.Z)($t,["title","icon","danger"]),{className:fe()({[`${yt}-item-danger`]:dt,[`${yt}-item-only-child`]:(Nt?Qt+1:Qt)===1},Je),title:typeof Wt=="string"?Wt:void 0}),(0,re.Tm)(Nt,{className:fe()((0,re.l$)(Nt)?(qe=Nt.props)===null||qe===void 0?void 0:qe.className:"",`${yt}-item-icon`)}),gt(Ge));return cn||(hn=ge.createElement(me.Z,Object.assign({},St,{placement:rt==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),hn)),hn},x=$t=>{var qe;const{popupClassName:Je,icon:Pt,title:Nt,theme:Wt}=$t,dt=ge.useContext(a),{prefixCls:yt,inlineCollapsed:Tt,theme:rt}=dt,cn=(0,z.Xl)();let Ge;if(!Pt)Ge=Tt&&!cn.length&&Nt&&typeof Nt=="string"?ge.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Nt.charAt(0)):ge.createElement("span",{className:`${yt}-title-content`},Nt);else{const Gn=(0,re.l$)(Nt)&&Nt.type==="span";Ge=ge.createElement(ge.Fragment,null,(0,re.Tm)(Pt,{className:fe()((0,re.l$)(Pt)?(qe=Pt.props)===null||qe===void 0?void 0:qe.className:"",`${yt}-item-icon`)}),Gn?Nt:ge.createElement("span",{className:`${yt}-title-content`},Nt))}const gt=ge.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]);return ge.createElement(a.Provider,{value:gt},ge.createElement(z.Wd,Object.assign({},(0,se.Z)($t,["icon"]),{title:Ge,popupClassName:fe()(yt,Je,`${yt}-${Wt||rt}`)})))},te=ee(25877),oe=ee(60276),ae=ee(33603),ue=ee(76529),ye=function($t,qe){var Je={};for(var Pt in $t)Object.prototype.hasOwnProperty.call($t,Pt)&&qe.indexOf(Pt)<0&&(Je[Pt]=$t[Pt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols($t);Nt<Pt.length;Nt++)qe.indexOf(Pt[Nt])<0&&Object.prototype.propertyIsEnumerable.call($t,Pt[Nt])&&(Je[Pt[Nt]]=$t[Pt[Nt]]);return Je};function _e($t){return($t||[]).map((qe,Je)=>{if(qe&&typeof qe=="object"){const Pt=qe,{label:Nt,children:Wt,key:dt,type:yt}=Pt,Tt=ye(Pt,["label","children","key","type"]),rt=dt!=null?dt:`tmp-${Je}`;return Wt||yt==="group"?yt==="group"?ge.createElement(z.BW,Object.assign({key:rt},Tt,{title:Nt}),_e(Wt)):ge.createElement(x,Object.assign({key:rt},Tt,{title:Nt}),_e(Wt)):yt==="divider"?ge.createElement(le,Object.assign({key:rt},Tt)):ge.createElement(E,Object.assign({key:rt},Tt),Nt)}return null}).filter(qe=>qe)}function xe($t){return ge.useMemo(()=>$t&&_e($t),[$t])}var Ce=ee(84780),Be=ee(14747),Me=ee(33507),mt=ee(67771),Qe=ee(50438),pt=ee(67968),Ae=ee(45503),Fe=$t=>{const{componentCls:qe,motionDurationSlow:Je,horizontalLineHeight:Pt,colorSplit:Nt,lineWidth:Wt,lineType:dt,itemPaddingInline:yt}=$t;return{[`${qe}-horizontal`]:{lineHeight:Pt,border:0,borderBottom:`${Wt}px ${dt} ${Nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${qe}-item, ${qe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${qe}-item:hover,
|
|
|
> ${qe}-item-active,
|
|
|
> ${qe}-submenu ${qe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${qe}-item, ${qe}-submenu-title`]:{transition:[`border-color ${Je}`,`background ${Je}`].join(",")},[`${qe}-submenu-arrow`]:{display:"none"}}}},Ve=$t=>{let{componentCls:qe,menuArrowOffset:Je}=$t;return{[`${qe}-rtl`]:{direction:"rtl"},[`${qe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${qe}-rtl${qe}-vertical,
|
|
|
${qe}-submenu-rtl ${qe}-vertical`]:{[`${qe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Je})`},"&::after":{transform:`rotate(45deg) translateY(${Je})`}}}}};const Ct=$t=>Object.assign({},(0,Be.oN)($t));var en=($t,qe)=>{const{componentCls:Je,itemColor:Pt,itemSelectedColor:Nt,groupTitleColor:Wt,itemBg:dt,subMenuItemBg:yt,itemSelectedBg:Tt,activeBarHeight:rt,activeBarWidth:cn,activeBarBorderWidth:Ge,motionDurationSlow:gt,motionEaseInOut:Gn,motionEaseOut:Nn,itemPaddingInline:St,motionDurationMid:Qt,itemHoverColor:hn,lineType:jn,colorSplit:lr,itemDisabledColor:Ft,dangerItemColor:nr,dangerItemHoverColor:ar,dangerItemSelectedColor:wo,dangerItemActiveBg:Kr,dangerItemSelectedBg:Ur,itemHoverBg:Ho,itemActiveBg:Dn,menuSubMenuBg:Po,horizontalItemSelectedColor:pi,horizontalItemSelectedBg:sa,horizontalItemBorderRadius:qi,horizontalItemHoverBg:Vr,popupBg:$o}=$t;return{[`${Je}-${qe}, ${Je}-${qe} > ${Je}`]:{color:Pt,background:dt,[`&${Je}-root:focus-visible`]:Object.assign({},Ct($t)),[`${Je}-item-group-title`]:{color:Wt},[`${Je}-submenu-selected`]:{[`> ${Je}-submenu-title`]:{color:Nt}},[`${Je}-item-disabled, ${Je}-submenu-disabled`]:{color:`${Ft} !important`},[`${Je}-item:not(${Je}-item-selected):not(${Je}-submenu-selected)`]:{[`&:hover, > ${Je}-submenu-title:hover`]:{color:hn}},[`&:not(${Je}-horizontal)`]:{[`${Je}-item:not(${Je}-item-selected)`]:{"&:hover":{backgroundColor:Ho},"&:active":{backgroundColor:Dn}},[`${Je}-submenu-title`]:{"&:hover":{backgroundColor:Ho},"&:active":{backgroundColor:Dn}}},[`${Je}-item-danger`]:{color:nr,[`&${Je}-item:hover`]:{[`&:not(${Je}-item-selected):not(${Je}-submenu-selected)`]:{color:ar}},[`&${Je}-item:active`]:{background:Kr}},[`${Je}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Je}-item-selected`]:{color:Nt,[`&${Je}-item-danger`]:{color:wo},"a, a:hover":{color:"inherit"}},[`& ${Je}-item-selected`]:{backgroundColor:Tt,[`&${Je}-item-danger`]:{backgroundColor:Ur}},[`${Je}-item, ${Je}-submenu-title`]:{[`&:not(${Je}-item-disabled):focus-visible`]:Object.assign({},Ct($t))},[`&${Je}-submenu > ${Je}`]:{backgroundColor:Po},[`&${Je}-popup > ${Je}`]:{backgroundColor:$o},[`&${Je}-horizontal`]:Object.assign(Object.assign({},qe==="dark"?{borderBottom:0}:{}),{[`> ${Je}-item, > ${Je}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:qi,"&::after":{position:"absolute",insetInline:St,bottom:0,borderBottom:`${rt}px solid transparent`,transition:`border-color ${gt} ${Gn}`,content:'""'},"&:hover, &-active, &-open":{background:Vr,"&::after":{borderBottomWidth:rt,borderBottomColor:pi}},"&-selected":{color:pi,backgroundColor:sa,"&:hover":{backgroundColor:sa},"&::after":{borderBottomWidth:rt,borderBottomColor:pi}}}}),[`&${Je}-root`]:{[`&${Je}-inline, &${Je}-vertical`]:{borderInlineEnd:`${Ge}px ${jn} ${lr}`}},[`&${Je}-inline`]:{[`${Je}-sub${Je}-inline`]:{background:yt},[`${Je}-item, ${Je}-submenu-title`]:Ge&&cn?{width:`calc(100% + ${Ge}px)`}:{},[`${Je}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${cn}px solid ${Nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qt} ${Nn}`,`opacity ${Qt} ${Nn}`].join(","),content:'""'},[`&${Je}-item-danger`]:{"&::after":{borderInlineEndColor:wo}}},[`${Je}-selected, ${Je}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qt} ${Gn}`,`opacity ${Qt} ${Gn}`].join(",")}}}}}};const nn=$t=>{const{componentCls:qe,itemHeight:Je,itemMarginInline:Pt,padding:Nt,menuArrowSize:Wt,marginXS:dt,itemMarginBlock:yt}=$t,Tt=Nt+Wt+dt;return{[`${qe}-item`]:{position:"relative",overflow:"hidden"},[`${qe}-item, ${qe}-submenu-title`]:{height:Je,lineHeight:`${Je}px`,paddingInline:Nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Pt,marginBlock:yt,width:`calc(100% - ${Pt*2}px)`},[`> ${qe}-item,
|
|
|
> ${qe}-submenu > ${qe}-submenu-title`]:{height:Je,lineHeight:`${Je}px`},[`${qe}-item-group-list ${qe}-submenu-title,
|
|
|
${qe}-submenu-title`]:{paddingInlineEnd:Tt}}};var ct=$t=>{const{componentCls:qe,iconCls:Je,itemHeight:Pt,colorTextLightSolid:Nt,dropdownWidth:Wt,controlHeightLG:dt,motionDurationMid:yt,motionEaseOut:Tt,paddingXL:rt,itemMarginInline:cn,fontSizeLG:Ge,motionDurationSlow:gt,paddingXS:Gn,boxShadowSecondary:Nn,collapsedWidth:St,collapsedIconSize:Qt}=$t,hn={height:Pt,lineHeight:`${Pt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[qe]:{"&-inline, &-vertical":Object.assign({[`&${qe}-root`]:{boxShadow:"none"}},nn($t))},[`${qe}-submenu-popup`]:{[`${qe}-vertical`]:Object.assign(Object.assign({},nn($t)),{boxShadow:Nn})}},{[`${qe}-submenu-popup ${qe}-vertical${qe}-sub`]:{minWidth:Wt,maxHeight:`calc(100vh - ${dt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${qe}-inline`]:{width:"100%",[`&${qe}-root`]:{[`${qe}-item, ${qe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${gt}`,`background ${gt}`,`padding ${yt} ${Tt}`].join(","),[`> ${qe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${qe}-sub${qe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${qe}-submenu > ${qe}-submenu-title`]:hn,[`& ${qe}-item-group-title`]:{paddingInlineStart:rt}},[`${qe}-item`]:hn}},{[`${qe}-inline-collapsed`]:{width:St,[`&${qe}-root`]:{[`${qe}-item, ${qe}-submenu ${qe}-submenu-title`]:{[`> ${qe}-inline-collapsed-noicon`]:{fontSize:Ge,textAlign:"center"}}},[`> ${qe}-item,
|
|
|
> ${qe}-item-group > ${qe}-item-group-list > ${qe}-item,
|
|
|
> ${qe}-item-group > ${qe}-item-group-list > ${qe}-submenu > ${qe}-submenu-title,
|
|
|
> ${qe}-submenu > ${qe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ge/2}px - ${cn}px)`,textOverflow:"clip",[`
|
|
|
${qe}-submenu-arrow,
|
|
|
${qe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${qe}-item-icon, ${Je}`]:{margin:0,fontSize:Qt,lineHeight:`${Pt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${qe}-item-icon, ${Je}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${qe}-item-icon, ${Je}`]:{display:"none"},"a, a:hover":{color:Nt}},[`${qe}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Gn})}}]};const wt=$t=>{const{componentCls:qe,motionDurationSlow:Je,motionDurationMid:Pt,motionEaseInOut:Nt,motionEaseOut:Wt,iconCls:dt,iconSize:yt,iconMarginInlineEnd:Tt}=$t;return{[`${qe}-item, ${qe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Je}`,`background ${Je}`,`padding ${Je} ${Nt}`].join(","),[`${qe}-item-icon, ${dt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${Pt} ${Wt}`,`margin ${Je} ${Nt}`,`color ${Je}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${Je} ${Nt}`,`margin ${Je}`,`color ${Je}`].join(",")}},[`${qe}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${qe}-item-only-child`]:{[`> ${dt}, > ${qe}-item-icon`]:{marginInlineEnd:0}}},[`${qe}-item-disabled, ${qe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${qe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Vt=$t=>{const{componentCls:qe,motionDurationSlow:Je,motionEaseInOut:Pt,borderRadius:Nt,menuArrowSize:Wt,menuArrowOffset:dt}=$t;return{[`${qe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:$t.margin,width:Wt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Je} ${Pt}, opacity ${Je}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Wt*.6,height:Wt*.15,backgroundColor:"currentcolor",borderRadius:Nt,transition:[`background ${Je} ${Pt}`,`transform ${Je} ${Pt}`,`top ${Je} ${Pt}`,`color ${Je} ${Pt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${dt})`},"&::after":{transform:`rotate(-45deg) translateY(${dt})`}}}}},Gt=$t=>{const{antCls:qe,componentCls:Je,fontSize:Pt,motionDurationSlow:Nt,motionDurationMid:Wt,motionEaseInOut:dt,paddingXS:yt,padding:Tt,colorSplit:rt,lineWidth:cn,zIndexPopup:Ge,borderRadiusLG:gt,subMenuItemBorderRadius:Gn,menuArrowSize:Nn,menuArrowOffset:St,lineType:Qt,menuPanelMaskInset:hn,groupTitleLineHeight:jn,groupTitleFontSize:lr}=$t;return[{"":{[`${Je}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Je}-submenu-hidden`]:{display:"none"}},{[Je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)($t)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Pt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Je}-item`]:{flex:"none"}},[`${Je}-item, ${Je}-submenu, ${Je}-submenu-title`]:{borderRadius:$t.itemBorderRadius},[`${Je}-item-group-title`]:{padding:`${yt}px ${Tt}px`,fontSize:lr,lineHeight:jn,transition:`all ${Nt}`},[`&-horizontal ${Je}-submenu`]:{transition:[`border-color ${Nt} ${dt}`,`background ${Nt} ${dt}`].join(",")},[`${Je}-submenu, ${Je}-submenu-inline`]:{transition:[`border-color ${Nt} ${dt}`,`background ${Nt} ${dt}`,`padding ${Wt} ${dt}`].join(",")},[`${Je}-submenu ${Je}-sub`]:{cursor:"initial",transition:[`background ${Nt} ${dt}`,`padding ${Nt} ${dt}`].join(",")},[`${Je}-title-content`]:{transition:`color ${Nt}`},[`${Je}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Je}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rt,borderStyle:Qt,borderWidth:0,borderTopWidth:cn,marginBlock:cn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),wt($t)),{[`${Je}-item-group`]:{[`${Je}-item-group-list`]:{margin:0,padding:0,[`${Je}-item, ${Je}-submenu-title`]:{paddingInline:`${Pt*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:gt,boxShadow:"none",transformOrigin:"0 0",[`&${Je}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${hn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:hn},"\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:$t.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:$t.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:$t.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:$t.paddingXS},[`> ${Je}`]:Object.assign(Object.assign(Object.assign({borderRadius:gt},wt($t)),Vt($t)),{[`${Je}-item, ${Je}-submenu > ${Je}-submenu-title`]:{borderRadius:Gn},[`${Je}-submenu-title::after`]:{transition:`transform ${Nt} ${dt}`}})}}),Vt($t)),{[`&-inline-collapsed ${Je}-submenu-arrow,
|
|
|
&-inline ${Je}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${St})`},"&::after":{transform:`rotate(45deg) translateX(-${St})`}},[`${Je}-submenu-open${Je}-submenu-inline > ${Je}-submenu-title > ${Je}-submenu-arrow`]:{transform:`translateY(-${Nn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${St})`},"&::before":{transform:`rotate(45deg) translateX(${St})`}}})},{[`${qe}-layout-header`]:{[Je]:{lineHeight:"inherit"}}}]};var Ln=($t,qe)=>(0,pt.Z)("Menu",Pt=>{if(qe===!1)return[];const{colorBgElevated:Nt,colorPrimary:Wt,colorTextLightSolid:dt,controlHeightLG:yt,fontSize:Tt,darkItemColor:rt,darkDangerItemColor:cn,darkItemBg:Ge,darkSubMenuItemBg:gt,darkItemSelectedColor:Gn,darkItemSelectedBg:Nn,darkDangerItemSelectedBg:St,darkItemHoverBg:Qt,darkGroupTitleColor:hn,darkItemHoverColor:jn,darkItemDisabledColor:lr,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:nr,darkDangerItemActiveBg:ar}=Pt,wo=Tt/7*5,Kr=(0,Ae.TS)(Pt,{menuArrowSize:wo,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${wo*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Nt}),Ur=(0,Ae.TS)(Kr,{itemColor:rt,itemHoverColor:jn,groupTitleColor:hn,itemSelectedColor:Gn,itemBg:Ge,popupBg:Ge,subMenuItemBg:gt,itemActiveBg:"transparent",itemSelectedBg:Nn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qt,itemDisabledColor:lr,dangerItemColor:cn,dangerItemHoverColor:Ft,dangerItemSelectedColor:nr,dangerItemActiveBg:ar,dangerItemSelectedBg:St,menuSubMenuBg:gt,horizontalItemSelectedColor:dt,horizontalItemSelectedBg:Wt});return[Gt(Kr),Fe(Kr),ct(Kr),en(Kr,"light"),en(Ur,"dark"),Ve(Kr),(0,Me.Z)(Kr),(0,mt.oN)(Kr,"slide-up"),(0,mt.oN)(Kr,"slide-down"),(0,Qe._y)(Kr,"zoom-big")]},Pt=>{const{colorPrimary:Nt,colorError:Wt,colorTextDisabled:dt,colorErrorBg:yt,colorText:Tt,colorTextDescription:rt,colorBgContainer:cn,colorFillAlter:Ge,colorFillContent:gt,lineWidth:Gn,lineWidthBold:Nn,controlItemBgActive:St,colorBgTextHover:Qt,controlHeightLG:hn,lineHeight:jn,colorBgElevated:lr,marginXXS:Ft,padding:nr,fontSize:ar,controlHeightSM:wo,fontSizeLG:Kr,colorTextLightSolid:Ur,colorErrorHover:Ho}=Pt,Dn=new Ce.C(Ur).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pt.zIndexPopupBase+50,radiusItem:Pt.borderRadiusLG,itemBorderRadius:Pt.borderRadiusLG,radiusSubMenuItem:Pt.borderRadiusSM,subMenuItemBorderRadius:Pt.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:Nt,horizontalItemHoverColor:Nt,colorGroupTitle:rt,groupTitleColor:rt,colorItemTextSelected:Nt,itemSelectedColor:Nt,colorItemTextSelectedHorizontal:Nt,horizontalItemSelectedColor:Nt,colorItemBg:cn,itemBg:cn,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:gt,itemActiveBg:St,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:St,itemSelectedBg:St,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Nn,activeBarHeight:Nn,colorActiveBarBorderSize:Gn,activeBarBorderWidth:Gn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Wt,dangerItemColor:Wt,colorDangerItemTextHover:Wt,dangerItemHoverColor:Wt,colorDangerItemTextSelected:Wt,dangerItemSelectedColor:Wt,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:Pt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:hn,groupTitleLineHeight:jn,collapsedWidth:hn*2,popupBg:lr,itemMarginBlock:Ft,itemPaddingInline:nr,horizontalLineHeight:`${hn*1.15}px`,iconSize:ar,iconMarginInlineEnd:wo-ar,collapsedIconSize:Kr,groupTitleFontSize:ar,darkItemDisabledColor:new Ce.C(Ur).setAlpha(.25).toRgbString(),darkItemColor:Dn,darkDangerItemColor:Wt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ur,darkItemSelectedBg:Nt,darkDangerItemSelectedBg:Wt,darkItemHoverBg:"transparent",darkGroupTitleColor:Dn,darkItemHoverColor:Ur,darkDangerItemHoverColor:Ho,darkDangerItemSelectedColor:Ur,darkDangerItemActiveBg:Wt}},{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"]]})($t),He=function($t,qe){var Je={};for(var Pt in $t)Object.prototype.hasOwnProperty.call($t,Pt)&&qe.indexOf(Pt)<0&&(Je[Pt]=$t[Pt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols($t);Nt<Pt.length;Nt++)qe.indexOf(Pt[Nt])<0&&Object.prototype.propertyIsEnumerable.call($t,Pt[Nt])&&(Je[Pt[Nt]]=$t[Pt[Nt]]);return Je},In=(0,ge.forwardRef)(($t,qe)=>{var Je,Pt;const Nt=ge.useContext(ue.Z),Wt=Nt||{},{getPrefixCls:dt,getPopupContainer:yt,direction:Tt,menu:rt}=ge.useContext(pe.E_),cn=dt(),{prefixCls:Ge,className:gt,style:Gn,theme:Nn="light",expandIcon:St,_internalDisableMenuItemTitleTooltip:Qt,inlineCollapsed:hn,siderCollapsed:jn,items:lr,children:Ft,rootClassName:nr,mode:ar,selectable:wo,onClick:Kr,overflowedIndicatorPopupClassName:Ur}=$t,Ho=He($t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dn=(0,se.Z)(Ho,["collapsedWidth"]),Po=xe(lr)||Ft;(Je=Wt.validator)===null||Je===void 0||Je.call(Wt,{mode:ar});const pi=(0,oe.useEvent)(function(){var Xr;Kr==null||Kr.apply(void 0,arguments),(Xr=Wt.onClick)===null||Xr===void 0||Xr.call(Wt)}),sa=Wt.mode||ar,qi=wo!=null?wo:Wt.selectable,Vr=ge.useMemo(()=>jn!==void 0?jn:hn,[hn,jn]),$o={horizontal:{motionName:`${cn}-slide-up`},inline:(0,ae.Z)(cn),other:{motionName:`${cn}-zoom-big`}},Jo=dt("menu",Ge||Wt.prefixCls),[Li,Lo]=Ln(Jo,!Nt),Ii=fe()(`${Jo}-${Nn}`,rt==null?void 0:rt.className,gt);let xi;if(typeof St=="function")xi=St;else if(St===null||St===!1)xi=null;else if(Wt.expandIcon===null||Wt.expandIcon===!1)xi=null;else{const Xr=St!=null?St:Wt.expandIcon;xi=(0,re.Tm)(Xr,{className:fe()(`${Jo}-submenu-expand-icon`,(0,re.l$)(Xr)?(Pt=Xr.props)===null||Pt===void 0?void 0:Pt.className:"")})}const Bo=ge.useMemo(()=>({prefixCls:Jo,inlineCollapsed:Vr||!1,direction:Tt,firstLevel:!0,theme:Nn,mode:sa,disableMenuItemTitleTooltip:Qt}),[Jo,Vr,Tt,Qt,Nn]);return Li(ge.createElement(ue.Z.Provider,{value:null},ge.createElement(a.Provider,{value:Bo},ge.createElement(z.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:ge.createElement(te.Z,null),overflowedIndicatorPopupClassName:fe()(Jo,`${Jo}-${Nn}`,Ur),mode:sa,selectable:qi,onClick:pi},Dn,{inlineCollapsed:Vr,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Gn),className:Ii,prefixCls:Jo,direction:Tt,defaultMotions:$o,expandIcon:xi,ref:qe,rootClassName:fe()(nr,Lo)}),Po))))});const or=(0,ge.forwardRef)(($t,qe)=>{const Je=(0,ge.useRef)(null),Pt=ge.useContext(be.D);return(0,ge.useImperativeHandle)(qe,()=>({menu:Je.current,focus:Nt=>{var Wt;(Wt=Je.current)===null||Wt===void 0||Wt.focus(Nt)}})),ge.createElement(In,Object.assign({ref:Je},$t,Pt))});or.Item=E,or.SubMenu=x,or.Divider=le,or.ItemGroup=z.BW;var bn=or},28452:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return cn}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(gt,Gn){return ge.createElement(fe.Z,(0,z.Z)({},gt,{ref:Gn,icon:ve}))},ie=ge.forwardRef(pe),de=ee(81893),le=ee(22751),ce=ee(91034),se=ee(94184),me=ee.n(se),re=ee(4942),ne=ee(1413),a=ee(15671),y=ee(43144),E=ee(60136),b=ee(51630),x=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,te=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,oe="".concat(x," ").concat(te).split(/[\s\n]+/),ae="aria-",ue="data-";function ye(Ge,gt){return Ge.indexOf(gt)===0}function _e(Ge){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gn;gt===!1?Gn={aria:!0,data:!0,attr:!0}:gt===!0?Gn={aria:!0}:Gn=(0,ne.Z)({},gt);var Nn={};return Object.keys(Ge).forEach(function(St){(Gn.aria&&(St==="role"||ye(St,ae))||Gn.data&&ye(St,ue)||Gn.attr&&oe.includes(St))&&(Nn[St]=Ge[St])}),Nn}var xe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ce=xe,Be=ee(81626),Me=function(Ge){(0,E.Z)(Gn,Ge);var gt=(0,b.Z)(Gn);function Gn(){var Nn;(0,a.Z)(this,Gn);for(var St=arguments.length,Qt=new Array(St),hn=0;hn<St;hn++)Qt[hn]=arguments[hn];return Nn=gt.call.apply(gt,[this].concat(Qt)),Nn.state={goInputText:""},Nn.getValidValue=function(){var jn=Nn.state.goInputText;return!jn||Number.isNaN(jn)?void 0:Number(jn)},Nn.buildOptionText=function(jn){return"".concat(jn," ").concat(Nn.props.locale.items_per_page)},Nn.changeSize=function(jn){Nn.props.changeSize(Number(jn))},Nn.handleChange=function(jn){Nn.setState({goInputText:jn.target.value})},Nn.handleBlur=function(jn){var lr=Nn.props,Ft=lr.goButton,nr=lr.quickGo,ar=lr.rootPrefixCls,wo=Nn.state.goInputText;Ft||wo===""||(Nn.setState({goInputText:""}),!(jn.relatedTarget&&(jn.relatedTarget.className.indexOf("".concat(ar,"-item-link"))>=0||jn.relatedTarget.className.indexOf("".concat(ar,"-item"))>=0))&&nr(Nn.getValidValue()))},Nn.go=function(jn){var lr=Nn.state.goInputText;lr!==""&&(jn.keyCode===Ce.ENTER||jn.type==="click")&&(Nn.setState({goInputText:""}),Nn.props.quickGo(Nn.getValidValue()))},Nn}return(0,y.Z)(Gn,[{key:"getPageSizeOptions",value:function(){var St=this.props,Qt=St.pageSize,hn=St.pageSizeOptions;return hn.some(function(jn){return jn.toString()===Qt.toString()})?hn:hn.concat([Qt.toString()]).sort(function(jn,lr){var Ft=Number.isNaN(Number(jn))?0:Number(jn),nr=Number.isNaN(Number(lr))?0:Number(lr);return Ft-nr})}},{key:"render",value:function(){var St=this,Qt=this.props,hn=Qt.pageSize,jn=Qt.locale,lr=Qt.rootPrefixCls,Ft=Qt.changeSize,nr=Qt.quickGo,ar=Qt.goButton,wo=Qt.selectComponentClass,Kr=Qt.buildOptionText,Ur=Qt.selectPrefixCls,Ho=Qt.disabled,Dn=this.state.goInputText,Po="".concat(lr,"-options"),pi=wo,sa=null,qi=null,Vr=null;if(!Ft&&!nr)return null;var $o=this.getPageSizeOptions();if(Ft&&pi){var Jo=$o.map(function(Li,Lo){return ge.createElement(pi.Option,{key:Lo,value:Li.toString()},(Kr||St.buildOptionText)(Li))});sa=ge.createElement(pi,{disabled:Ho,prefixCls:Ur,showSearch:!1,className:"".concat(Po,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(hn||$o[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Lo){return Lo.parentNode},"aria-label":jn.page_size,defaultOpen:!1},Jo)}return nr&&(ar&&(Vr=typeof ar=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ho,className:"".concat(Po,"-quick-jumper-button")},jn.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},ar)),qi=ge.createElement("div",{className:"".concat(Po,"-quick-jumper")},jn.jump_to,ge.createElement("input",{disabled:Ho,type:"text",value:Dn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":jn.page}),jn.page,Vr)),ge.createElement("li",{className:"".concat(Po)},sa,qi)}}]),Gn}(ge.Component);Me.defaultProps={pageSizeOptions:["10","20","50","100"]};var mt=Me,Qe=function(gt){var Gn,Nn=gt.rootPrefixCls,St=gt.page,Qt=gt.active,hn=gt.className,jn=gt.showTitle,lr=gt.onClick,Ft=gt.onKeyPress,nr=gt.itemRender,ar="".concat(Nn,"-item"),wo=me()(ar,"".concat(ar,"-").concat(St),(Gn={},(0,re.Z)(Gn,"".concat(ar,"-active"),Qt),(0,re.Z)(Gn,"".concat(ar,"-disabled"),!St),(0,re.Z)(Gn,gt.className,hn),Gn)),Kr=function(){lr(St)},Ur=function(Po){Ft(Po,lr,St)},Ho=nr(St,"page",ge.createElement("a",{rel:"nofollow"},St));return Ho?ge.createElement("li",{title:jn?St.toString():null,className:wo,onClick:Kr,onKeyPress:Ur,tabIndex:0},Ho):null},pt=Qe;function Ae(){}function De(Ge){var gt=Number(Ge);return typeof gt=="number"&&!Number.isNaN(gt)&&isFinite(gt)&&Math.floor(gt)===gt}var Fe=function(gt,Gn,Nn){return Nn};function tt(Ge,gt,Gn){var Nn=typeof Ge=="undefined"?gt.pageSize:Ge;return Math.floor((Gn.total-1)/Nn)+1}var Ve=function(Ge){(0,E.Z)(Gn,Ge);var gt=(0,b.Z)(Gn);function Gn(Nn){var St;(0,a.Z)(this,Gn),St=gt.call(this,Nn),St.paginationNode=ge.createRef(),St.getJumpPrevPage=function(){return Math.max(1,St.state.current-(St.props.showLessItems?3:5))},St.getJumpNextPage=function(){return Math.min(tt(void 0,St.state,St.props),St.state.current+(St.props.showLessItems?3:5))},St.getItemIcon=function(Ft,nr){var ar=St.props.prefixCls,wo=Ft||ge.createElement("button",{type:"button","aria-label":nr,className:"".concat(ar,"-item-link")});return typeof Ft=="function"&&(wo=ge.createElement(Ft,(0,ne.Z)({},St.props))),wo},St.isValid=function(Ft){var nr=St.props.total;return De(Ft)&&Ft!==St.state.current&&De(nr)&&nr>0},St.shouldDisplayQuickJumper=function(){var Ft=St.props,nr=Ft.showQuickJumper,ar=Ft.total,wo=St.state.pageSize;return ar<=wo?!1:nr},St.handleKeyDown=function(Ft){(Ft.keyCode===Ce.ARROW_UP||Ft.keyCode===Ce.ARROW_DOWN)&&Ft.preventDefault()},St.handleKeyUp=function(Ft){var nr=St.getValidValue(Ft),ar=St.state.currentInputValue;nr!==ar&&St.setState({currentInputValue:nr}),Ft.keyCode===Ce.ENTER?St.handleChange(nr):Ft.keyCode===Ce.ARROW_UP?St.handleChange(nr-1):Ft.keyCode===Ce.ARROW_DOWN&&St.handleChange(nr+1)},St.handleBlur=function(Ft){var nr=St.getValidValue(Ft);St.handleChange(nr)},St.changePageSize=function(Ft){var nr=St.state.current,ar=tt(Ft,St.state,St.props);nr=nr>ar?ar:nr,ar===0&&(nr=St.state.current),typeof Ft=="number"&&("pageSize"in St.props||St.setState({pageSize:Ft}),"current"in St.props||St.setState({current:nr,currentInputValue:nr})),St.props.onShowSizeChange(nr,Ft),"onChange"in St.props&&St.props.onChange&&St.props.onChange(nr,Ft)},St.handleChange=function(Ft){var nr=St.props,ar=nr.disabled,wo=nr.onChange,Kr=St.state,Ur=Kr.pageSize,Ho=Kr.current,Dn=Kr.currentInputValue;if(St.isValid(Ft)&&!ar){var Po=tt(void 0,St.state,St.props),pi=Ft;return Ft>Po?pi=Po:Ft<1&&(pi=1),"current"in St.props||St.setState({current:pi}),pi!==Dn&&St.setState({currentInputValue:pi}),wo(pi,Ur),pi}return Ho},St.prev=function(){St.hasPrev()&&St.handleChange(St.state.current-1)},St.next=function(){St.hasNext()&&St.handleChange(St.state.current+1)},St.jumpPrev=function(){St.handleChange(St.getJumpPrevPage())},St.jumpNext=function(){St.handleChange(St.getJumpNextPage())},St.hasPrev=function(){return St.state.current>1},St.hasNext=function(){return St.state.current<tt(void 0,St.state,St.props)},St.runIfEnter=function(Ft,nr){if(Ft.key==="Enter"||Ft.charCode===13){for(var ar=arguments.length,wo=new Array(ar>2?ar-2:0),Kr=2;Kr<ar;Kr++)wo[Kr-2]=arguments[Kr];nr.apply(void 0,wo)}},St.runIfEnterPrev=function(Ft){St.runIfEnter(Ft,St.prev)},St.runIfEnterNext=function(Ft){St.runIfEnter(Ft,St.next)},St.runIfEnterJumpPrev=function(Ft){St.runIfEnter(Ft,St.jumpPrev)},St.runIfEnterJumpNext=function(Ft){St.runIfEnter(Ft,St.jumpNext)},St.handleGoTO=function(Ft){(Ft.keyCode===Ce.ENTER||Ft.type==="click")&&St.handleChange(St.state.currentInputValue)},St.renderPrev=function(Ft){var nr=St.props,ar=nr.prevIcon,wo=nr.itemRender,Kr=wo(Ft,"prev",St.getItemIcon(ar,"prev page")),Ur=!St.hasPrev();return(0,ge.isValidElement)(Kr)?(0,ge.cloneElement)(Kr,{disabled:Ur}):Kr},St.renderNext=function(Ft){var nr=St.props,ar=nr.nextIcon,wo=nr.itemRender,Kr=wo(Ft,"next",St.getItemIcon(ar,"next page")),Ur=!St.hasNext();return(0,ge.isValidElement)(Kr)?(0,ge.cloneElement)(Kr,{disabled:Ur}):Kr};var Qt=Nn.onChange!==Ae,hn="current"in Nn;hn&&!Qt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var jn=Nn.defaultCurrent;"current"in Nn&&(jn=Nn.current);var lr=Nn.defaultPageSize;return"pageSize"in Nn&&(lr=Nn.pageSize),jn=Math.min(jn,tt(lr,void 0,Nn)),St.state={current:jn,currentInputValue:jn,pageSize:lr},St}return(0,y.Z)(Gn,[{key:"componentDidUpdate",value:function(St,Qt){var hn=this.props.prefixCls;if(Qt.current!==this.state.current&&this.paginationNode.current){var jn=this.paginationNode.current.querySelector(".".concat(hn,"-item-").concat(Qt.current));if(jn&&document.activeElement===jn){var lr;jn==null||(lr=jn.blur)===null||lr===void 0||lr.call(jn)}}}},{key:"getValidValue",value:function(St){var Qt=St.target.value,hn=tt(void 0,this.state,this.props),jn=this.state.currentInputValue,lr;return Qt===""?lr=Qt:Number.isNaN(Number(Qt))?lr=jn:Qt>=hn?lr=hn:lr=Number(Qt),lr}},{key:"getShowSizeChanger",value:function(){var St=this.props,Qt=St.showSizeChanger,hn=St.total,jn=St.totalBoundaryShowSizeChanger;return typeof Qt!="undefined"?Qt:hn>jn}},{key:"render",value:function(){var St=this.props,Qt=St.prefixCls,hn=St.className,jn=St.style,lr=St.disabled,Ft=St.hideOnSinglePage,nr=St.total,ar=St.locale,wo=St.showQuickJumper,Kr=St.showLessItems,Ur=St.showTitle,Ho=St.showTotal,Dn=St.simple,Po=St.itemRender,pi=St.showPrevNextJumpers,sa=St.jumpPrevIcon,qi=St.jumpNextIcon,Vr=St.selectComponentClass,$o=St.selectPrefixCls,Jo=St.pageSizeOptions,Li=this.state,Lo=Li.current,Ii=Li.pageSize,xi=Li.currentInputValue;if(Ft===!0&&nr<=Ii)return null;var Bo=tt(void 0,this.state,this.props),Xr=[],La=null,_n=null,he=null,Se=null,Pe=null,Le=wo&&wo.goButton,Ne=Kr?1:2,nt=Lo-1>0?Lo-1:0,lt=Lo+1<Bo?Lo+1:Bo,fn=_e(this.props,{aria:!0,data:!0}),tn=Ho&&ge.createElement("li",{className:"".concat(Qt,"-total-text")},Ho(nr,[nr===0?0:(Lo-1)*Ii+1,Lo*Ii>nr?nr:Lo*Ii]));if(Dn){Le&&(typeof Le=="boolean"?Pe=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ar.jump_to_confirm):Pe=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le),Pe=ge.createElement("li",{title:Ur?"".concat(ar.jump_to).concat(Lo,"/").concat(Bo):null,className:"".concat(Qt,"-simple-pager")},Pe));var Tn=this.renderPrev(nt);return ge.createElement("ul",(0,z.Z)({className:me()(Qt,"".concat(Qt,"-simple"),(0,re.Z)({},"".concat(Qt,"-disabled"),lr),hn),style:jn,ref:this.paginationNode},fn),tn,Tn?ge.createElement("li",{title:Ur?ar.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:me()("".concat(Qt,"-prev"),(0,re.Z)({},"".concat(Qt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Tn):null,ge.createElement("li",{title:Ur?"".concat(Lo,"/").concat(Bo):null,className:"".concat(Qt,"-simple-pager")},ge.createElement("input",{type:"text",value:xi,disabled:lr,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(Qt,"-slash")},"/"),Bo),ge.createElement("li",{title:Ur?ar.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:me()("".concat(Qt,"-next"),(0,re.Z)({},"".concat(Qt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(lt)),Pe)}if(Bo<=3+Ne*2){var fr={locale:ar,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ur,itemRender:Po};Bo||Xr.push(ge.createElement(pt,(0,z.Z)({},fr,{key:"noPager",page:1,className:"".concat(Qt,"-item-disabled")})));for(var Lr=1;Lr<=Bo;Lr+=1){var Ot=Lo===Lr;Xr.push(ge.createElement(pt,(0,z.Z)({},fr,{key:Lr,page:Lr,active:Ot})))}}else{var cr=Kr?ar.prev_3:ar.prev_5,sr=Kr?ar.next_3:ar.next_5,Rn=Po(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(sa,"prev page")),Hn=Po(this.getJumpNextPage(),"jump-next",this.getItemIcon(qi,"next page"));pi&&(La=Rn?ge.createElement("li",{title:Ur?cr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:me()("".concat(Qt,"-jump-prev"),(0,re.Z)({},"".concat(Qt,"-jump-prev-custom-icon"),!!sa))},Rn):null,_n=Hn?ge.createElement("li",{title:Ur?sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:me()("".concat(Qt,"-jump-next"),(0,re.Z)({},"".concat(Qt,"-jump-next-custom-icon"),!!qi))},Hn):null),Se=ge.createElement(pt,{locale:ar,last:!0,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Bo,page:Bo,active:!1,showTitle:Ur,itemRender:Po}),he=ge.createElement(pt,{locale:ar,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ur,itemRender:Po});var tr=Math.max(1,Lo-Ne),jr=Math.min(Lo+Ne,Bo);Lo-1<=Ne&&(jr=1+Ne*2),Bo-Lo<=Ne&&(tr=Bo-Ne*2);for(var Pr=tr;Pr<=jr;Pr+=1){var Yi=Lo===Pr;Xr.push(ge.createElement(pt,{locale:ar,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pr,page:Pr,active:Yi,showTitle:Ur,itemRender:Po}))}Lo-1>=Ne*2&&Lo!==3&&(Xr[0]=(0,ge.cloneElement)(Xr[0],{className:"".concat(Qt,"-item-after-jump-prev")}),Xr.unshift(La)),Bo-Lo>=Ne*2&&Lo!==Bo-2&&(Xr[Xr.length-1]=(0,ge.cloneElement)(Xr[Xr.length-1],{className:"".concat(Qt,"-item-before-jump-next")}),Xr.push(_n)),tr!==1&&Xr.unshift(he),jr!==Bo&&Xr.push(Se)}var ti=!this.hasPrev()||!Bo,xr=!this.hasNext()||!Bo,yo=this.renderPrev(nt),Mi=this.renderNext(lt);return ge.createElement("ul",(0,z.Z)({className:me()(Qt,hn,(0,re.Z)({},"".concat(Qt,"-disabled"),lr)),style:jn,ref:this.paginationNode},fn),tn,yo?ge.createElement("li",{title:Ur?ar.prev_page:null,onClick:this.prev,tabIndex:ti?null:0,onKeyPress:this.runIfEnterPrev,className:me()("".concat(Qt,"-prev"),(0,re.Z)({},"".concat(Qt,"-disabled"),ti)),"aria-disabled":ti},yo):null,Xr,Mi?ge.createElement("li",{title:Ur?ar.next_page:null,onClick:this.next,tabIndex:xr?null:0,onKeyPress:this.runIfEnterNext,className:me()("".concat(Qt,"-next"),(0,re.Z)({},"".concat(Qt,"-disabled"),xr)),"aria-disabled":xr},Mi):null,ge.createElement(mt,{disabled:lr,locale:ar,rootPrefixCls:Qt,selectComponentClass:Vr,selectPrefixCls:$o,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Lo,pageSize:Ii,pageSizeOptions:Jo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(St,Qt){var hn={};if("current"in St&&(hn.current=St.current,St.current!==Qt.current&&(hn.currentInputValue=hn.current)),"pageSize"in St&&St.pageSize!==Qt.pageSize){var jn=Qt.current,lr=tt(St.pageSize,Qt,St);jn=jn>lr?lr:jn,"current"in St||(hn.current=jn,hn.currentInputValue=jn),hn.pageSize=St.pageSize}return hn}}]),Gn}(ge.Component);Ve.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ae,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ae,locale:Be.Z,style:{},itemRender:Fe,totalBoundaryShowSizeChanger:50};var Ct=Ve,Mt=ee(62906),en=ee(53124),nn=ee(98675),it=ee(25378),ct=ee(10110),wt=ee(42563);const Vt=Ge=>ge.createElement(wt.default,Object.assign({},Ge,{showSearch:!0,size:"small"})),Gt=Ge=>ge.createElement(wt.default,Object.assign({},Ge,{showSearch:!0,size:"middle"}));Vt.Option=wt.default.Option,Gt.Option=wt.default.Option;var Ln=ee(47673),He=ee(14747),on=ee(67968),In=ee(45503);const or=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${gt}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${gt}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}}},[`&${gt}-disabled`]:{cursor:"not-allowed",[`${gt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ge.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ge.colorBorder,backgroundColor:Ge.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ge.itemActiveBgDisabled},a:{color:Ge.itemActiveColorDisabled}}},[`${gt}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${gt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${gt}-simple-pager`]:{color:Ge.colorTextDisabled},[`${gt}-jump-prev, ${gt}-jump-next`]:{[`${gt}-item-link-icon`]:{opacity:0},[`${gt}-item-ellipsis`]:{opacity:1}}},[`&${gt}-simple`]:{[`${gt}-prev, ${gt}-next`]:{[`&${gt}-disabled ${gt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bn=Ge=>{const{componentCls:gt}=Ge;return{[`&${gt}-mini ${gt}-total-text, &${gt}-mini ${gt}-simple-pager`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`},[`&${gt}-mini ${gt}-item`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM-2}px`},[`&${gt}-mini:not(${gt}-disabled) ${gt}-item:not(${gt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},[`&${gt}-mini ${gt}-prev, &${gt}-mini ${gt}-next`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${gt}-mini:not(${gt}-disabled)`]:{[`${gt}-prev, ${gt}-next`]:{[`&:hover ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${gt}-disabled:hover ${gt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${gt}-mini ${gt}-prev ${gt}-item-link,
|
|
|
&${gt}-mini ${gt}-next ${gt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}},[`&${gt}-mini ${gt}-jump-prev, &${gt}-mini ${gt}-jump-next`]:{height:Ge.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${gt}-mini ${gt}-options`]:{marginInlineStart:Ge.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ge.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ln.x0)(Ge)),{width:Ge.paginationMiniQuickJumperInputWidth,height:Ge.controlHeightSM})}}}},$t=Ge=>{const{componentCls:gt}=Ge;return{[`
|
|
|
&${gt}-simple ${gt}-prev,
|
|
|
&${gt}-simple ${gt}-next
|
|
|
`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,verticalAlign:"top",[`${gt}-item-link`]:{height:Ge.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive},"&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}}},[`&${gt}-simple ${gt}-simple-pager`]:{display:"inline-block",height:Ge.itemSizeSM,marginInlineEnd:Ge.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ge.marginXS,padding:`0 ${Ge.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ge.itemInputBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,borderRadius:Ge.borderRadius,outline:"none",transition:`border-color ${Ge.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ge.colorPrimary},"&:focus":{borderColor:Ge.colorPrimaryHover,boxShadow:`${Ge.inputOutlineOffset}px 0 ${Ge.controlOutlineWidth}px ${Ge.controlOutline}`},"&[disabled]":{color:Ge.colorTextDisabled,backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,cursor:"not-allowed"}}}}},qe=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}-jump-prev, ${gt}-jump-next`]:{outline:0,[`${gt}-item-container`]:{position:"relative",[`${gt}-item-link-icon`]:{color:Ge.colorPrimary,fontSize:Ge.fontSizeSM,opacity:0,transition:`all ${Ge.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${gt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ge.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ge.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ge.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ge.motionDurationMid}`}},"&:hover":{[`${gt}-item-link-icon`]:{opacity:1},[`${gt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${gt}-prev,
|
|
|
${gt}-jump-prev,
|
|
|
${gt}-jump-next
|
|
|
`]:{marginInlineEnd:Ge.marginXS},[`
|
|
|
${gt}-prev,
|
|
|
${gt}-next,
|
|
|
${gt}-jump-prev,
|
|
|
${gt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,color:Ge.colorText,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ge.borderRadius,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`},[`${gt}-prev, ${gt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ge.colorText,cursor:"pointer",userSelect:"none"},[`${gt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ge.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:"none",transition:`all ${Ge.motionDurationMid}`},[`&:hover ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${gt}-disabled:hover`]:{[`${gt}-item-link`]:{backgroundColor:"transparent"}}},[`${gt}-slash`]:{marginInlineEnd:Ge.paginationSlashMarginInlineEnd,marginInlineStart:Ge.paginationSlashMarginInlineStart},[`${gt}-options`]:{display:"inline-block",marginInlineStart:Ge.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ge.controlHeight,marginInlineStart:Ge.marginXS,lineHeight:`${Ge.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ln.ik)(Ge)),{width:Ge.controlHeightLG*1.25,height:Ge.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ge.marginXS,marginInlineEnd:Ge.marginXS})}}}},Je=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}-item`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,marginInlineEnd:Ge.marginXS,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ge.paginationItemPaddingInline}px`,color:Ge.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${gt}-item-active)`]:{"&:hover":{transition:`all ${Ge.motionDurationMid}`,backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},"&-active":{fontWeight:Ge.fontWeightStrong,backgroundColor:Ge.itemActiveBg,borderColor:Ge.colorPrimary,a:{color:Ge.colorPrimary},"&:hover":{borderColor:Ge.colorPrimaryHover},"&:hover a":{color:Ge.colorPrimaryHover}}}}},Pt=Ge=>{const{componentCls:gt}=Ge;return{[gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,He.Wf)(Ge)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${gt}-total-text`]:{display:"inline-block",height:Ge.itemSize,marginInlineEnd:Ge.marginXS,lineHeight:`${Ge.itemSize-2}px`,verticalAlign:"middle"}}),Je(Ge)),qe(Ge)),$t(Ge)),bn(Ge)),or(Ge)),{[`@media only screen and (max-width: ${Ge.screenLG}px)`]:{[`${gt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ge.screenSM}px)`]:{[`${gt}-options`]:{display:"none"}}}),[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}}},Nt=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}${gt}-disabled:not(${gt}-mini)`]:{"&, &:hover":{[`${gt}-item-link`]:{borderColor:Ge.colorBorder}},"&:focus-visible":{[`${gt}-item-link`]:{borderColor:Ge.colorBorder}},[`${gt}-item, ${gt}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,[`&:hover:not(${gt}-item-active)`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,a:{color:Ge.colorTextDisabled}},[`&${gt}-item-active`]:{backgroundColor:Ge.itemActiveBgDisabled}},[`${gt}-prev, ${gt}-next`]:{"&:hover button":{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,color:Ge.colorTextDisabled},[`${gt}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder}}},[`${gt}:not(${gt}-mini)`]:{[`${gt}-prev, ${gt}-next`]:{"&:hover button":{borderColor:Ge.colorPrimaryHover,backgroundColor:Ge.itemBg},[`${gt}-item-link`]:{backgroundColor:Ge.itemLinkBg,borderColor:Ge.colorBorder},[`&:hover ${gt}-item-link`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,color:Ge.colorPrimary},[`&${gt}-disabled`]:{[`${gt}-item-link`]:{borderColor:Ge.colorBorder,color:Ge.colorTextDisabled}}},[`${gt}-item`]:{backgroundColor:Ge.itemBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,[`&:hover:not(${gt}-item-active)`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,a:{color:Ge.colorPrimary}},"&-active":{borderColor:Ge.colorPrimary}}}}},Wt=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}:not(${gt}-disabled)`]:{[`${gt}-item`]:Object.assign({},(0,He.Qy)(Ge)),[`${gt}-jump-prev, ${gt}-jump-next`]:{"&:focus-visible":Object.assign({[`${gt}-item-link-icon`]:{opacity:1},[`${gt}-item-ellipsis`]:{opacity:0}},(0,He.oN)(Ge))},[`${gt}-prev, ${gt}-next`]:{[`&:focus-visible ${gt}-item-link`]:Object.assign({},(0,He.oN)(Ge))}}}};var dt=(0,on.Z)("Pagination",Ge=>{const gt=(0,In.TS)(Ge,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ge.marginXXS/2,paginationMiniQuickJumperInputWidth:Ge.controlHeightLG*1.1,paginationItemPaddingInline:Ge.marginXXS*1.5,paginationEllipsisLetterSpacing:Ge.marginXXS/2,paginationSlashMarginInlineStart:Ge.marginXXS,paginationSlashMarginInlineEnd:Ge.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ln.e5)(Ge),(0,Ln.TM)(Ge));return[Pt(gt),Wt(gt),Ge.wireframe&&Nt(gt)]},Ge=>({itemBg:Ge.colorBgContainer,itemSize:Ge.controlHeight,itemSizeSM:Ge.controlHeightSM,itemActiveBg:Ge.colorBgContainer,itemLinkBg:Ge.colorBgContainer,itemActiveColorDisabled:Ge.colorTextDisabled,itemActiveBgDisabled:Ge.controlItemBgActiveDisabled,itemInputBg:Ge.colorBgContainer,miniOptionsSizeChangerTop:0})),yt=function(Ge,gt){var Gn={};for(var Nn in Ge)Object.prototype.hasOwnProperty.call(Ge,Nn)&>.indexOf(Nn)<0&&(Gn[Nn]=Ge[Nn]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Nn=Object.getOwnPropertySymbols(Ge);St<Nn.length;St++)gt.indexOf(Nn[St])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Nn[St])&&(Gn[Nn[St]]=Ge[Nn[St]]);return Gn},rt=Ge=>{const{prefixCls:gt,selectPrefixCls:Gn,className:Nn,rootClassName:St,style:Qt,size:hn,locale:jn,selectComponentClass:lr,responsive:Ft,showSizeChanger:nr}=Ge,ar=yt(Ge,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:wo}=(0,it.Z)(Ft),{getPrefixCls:Kr,direction:Ur,pagination:Ho={}}=ge.useContext(en.E_),Dn=Kr("pagination",gt),[Po,pi]=dt(Dn),sa=nr!=null?nr:Ho.showSizeChanger,qi=ge.useMemo(()=>{const Bo=ge.createElement("span",{className:`${Dn}-item-ellipsis`},"\u2022\u2022\u2022"),Xr=ge.createElement("button",{className:`${Dn}-item-link`,type:"button",tabIndex:-1},Ur==="rtl"?ge.createElement(ce.Z,null):ge.createElement(le.Z,null)),La=ge.createElement("button",{className:`${Dn}-item-link`,type:"button",tabIndex:-1},Ur==="rtl"?ge.createElement(le.Z,null):ge.createElement(ce.Z,null)),_n=ge.createElement("a",{className:`${Dn}-item-link`},ge.createElement("div",{className:`${Dn}-item-container`},Ur==="rtl"?ge.createElement(de.Z,{className:`${Dn}-item-link-icon`}):ge.createElement(ie,{className:`${Dn}-item-link-icon`}),Bo)),he=ge.createElement("a",{className:`${Dn}-item-link`},ge.createElement("div",{className:`${Dn}-item-container`},Ur==="rtl"?ge.createElement(ie,{className:`${Dn}-item-link-icon`}):ge.createElement(de.Z,{className:`${Dn}-item-link-icon`}),Bo));return{prevIcon:Xr,nextIcon:La,jumpPrevIcon:_n,jumpNextIcon:he}},[Ur,Dn]),[Vr]=(0,ct.Z)("Pagination",Mt.Z),$o=Object.assign(Object.assign({},Vr),jn),Jo=(0,nn.Z)(hn),Li=Jo==="small"||!!(wo&&!Jo&&Ft),Lo=Kr("select",Gn),Ii=me()({[`${Dn}-mini`]:Li,[`${Dn}-rtl`]:Ur==="rtl"},Ho==null?void 0:Ho.className,Nn,St,pi),xi=Object.assign(Object.assign({},Ho==null?void 0:Ho.style),Qt);return Po(ge.createElement(Ct,Object.assign({},qi,ar,{style:xi,prefixCls:Dn,selectPrefixCls:Lo,className:Ii,selectComponentClass:lr||(Li?Vt:Gt),locale:$o,showSizeChanger:sa})))},cn=rt},46303:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return $t}});var z=ee(94184),ge=ee.n(z),be=ee(67294),ve=ee(53124),fe=ee(10366),ie=qe=>{const{prefixCls:Je,className:Pt,style:Nt,size:Wt,shape:dt}=qe,yt=ge()({[`${Je}-lg`]:Wt==="large",[`${Je}-sm`]:Wt==="small"}),Tt=ge()({[`${Je}-circle`]:dt==="circle",[`${Je}-square`]:dt==="square",[`${Je}-round`]:dt==="round"}),rt=be.useMemo(()=>typeof Wt=="number"?{width:Wt,height:Wt,lineHeight:`${Wt}px`}:{},[Wt]);return be.createElement("span",{className:ge()(Je,yt,Tt,Pt),style:Object.assign(Object.assign({},rt),Nt)})},de=ee(45930),le=ee(67968),ce=ee(45503);const se=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=qe=>({height:qe,lineHeight:`${qe}px`}),re=qe=>Object.assign({width:qe},me(qe)),ne=qe=>({background:qe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:qe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=qe=>Object.assign({width:qe*5,minWidth:qe*5},me(qe)),y=qe=>{const{skeletonAvatarCls:Je,gradientFromColor:Pt,controlHeight:Nt,controlHeightLG:Wt,controlHeightSM:dt}=qe;return{[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt},re(Nt)),[`${Je}${Je}-circle`]:{borderRadius:"50%"},[`${Je}${Je}-lg`]:Object.assign({},re(Wt)),[`${Je}${Je}-sm`]:Object.assign({},re(dt))}},E=qe=>{const{controlHeight:Je,borderRadiusSM:Pt,skeletonInputCls:Nt,controlHeightLG:Wt,controlHeightSM:dt,gradientFromColor:yt}=qe;return{[`${Nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:Pt},a(Je)),[`${Nt}-lg`]:Object.assign({},a(Wt)),[`${Nt}-sm`]:Object.assign({},a(dt))}},b=qe=>Object.assign({width:qe},me(qe)),x=qe=>{const{skeletonImageCls:Je,imageSizeBase:Pt,gradientFromColor:Nt,borderRadiusSM:Wt}=qe;return{[`${Je}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Nt,borderRadius:Wt},b(Pt*2)),{[`${Je}-path`]:{fill:"#bfbfbf"},[`${Je}-svg`]:Object.assign(Object.assign({},b(Pt)),{maxWidth:Pt*4,maxHeight:Pt*4}),[`${Je}-svg${Je}-svg-circle`]:{borderRadius:"50%"}}),[`${Je}${Je}-circle`]:{borderRadius:"50%"}}},te=(qe,Je,Pt)=>{const{skeletonButtonCls:Nt}=qe;return{[`${Pt}${Nt}-circle`]:{width:Je,minWidth:Je,borderRadius:"50%"},[`${Pt}${Nt}-round`]:{borderRadius:Je}}},oe=qe=>Object.assign({width:qe*2,minWidth:qe*2},me(qe)),ae=qe=>{const{borderRadiusSM:Je,skeletonButtonCls:Pt,controlHeight:Nt,controlHeightLG:Wt,controlHeightSM:dt,gradientFromColor:yt}=qe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Pt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:Je,width:Nt*2,minWidth:Nt*2},oe(Nt))},te(qe,Nt,Pt)),{[`${Pt}-lg`]:Object.assign({},oe(Wt))}),te(qe,Wt,`${Pt}-lg`)),{[`${Pt}-sm`]:Object.assign({},oe(dt))}),te(qe,dt,`${Pt}-sm`))},ue=qe=>{const{componentCls:Je,skeletonAvatarCls:Pt,skeletonTitleCls:Nt,skeletonParagraphCls:Wt,skeletonButtonCls:dt,skeletonInputCls:yt,skeletonImageCls:Tt,controlHeight:rt,controlHeightLG:cn,controlHeightSM:Ge,gradientFromColor:gt,padding:Gn,marginSM:Nn,borderRadius:St,titleHeight:Qt,blockRadius:hn,paragraphLiHeight:jn,controlHeightXS:lr,paragraphMarginTop:Ft}=qe;return{[`${Je}`]:{display:"table",width:"100%",[`${Je}-header`]:{display:"table-cell",paddingInlineEnd:Gn,verticalAlign:"top",[`${Pt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:gt},re(rt)),[`${Pt}-circle`]:{borderRadius:"50%"},[`${Pt}-lg`]:Object.assign({},re(cn)),[`${Pt}-sm`]:Object.assign({},re(Ge))},[`${Je}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Nt}`]:{width:"100%",height:Qt,background:gt,borderRadius:hn,[`+ ${Wt}`]:{marginBlockStart:Ge}},[`${Wt}`]:{padding:0,"> li":{width:"100%",height:jn,listStyle:"none",background:gt,borderRadius:hn,"+ li":{marginBlockStart:lr}}},[`${Wt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Je}-content`]:{[`${Nt}, ${Wt} > li`]:{borderRadius:St}}},[`${Je}-with-avatar ${Je}-content`]:{[`${Nt}`]:{marginBlockStart:Nn,[`+ ${Wt}`]:{marginBlockStart:Ft}}},[`${Je}${Je}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ae(qe)),y(qe)),E(qe)),x(qe)),[`${Je}${Je}-block`]:{width:"100%",[`${dt}`]:{width:"100%"},[`${yt}`]:{width:"100%"}},[`${Je}${Je}-active`]:{[`
|
|
|
${Nt},
|
|
|
${Wt} > li,
|
|
|
${Pt},
|
|
|
${dt},
|
|
|
${yt},
|
|
|
${Tt}
|
|
|
`]:Object.assign({},ne(qe))}}};var ye=(0,le.Z)("Skeleton",qe=>{const{componentCls:Je}=qe,Pt=(0,ce.TS)(qe,{skeletonAvatarCls:`${Je}-avatar`,skeletonTitleCls:`${Je}-title`,skeletonParagraphCls:`${Je}-paragraph`,skeletonButtonCls:`${Je}-button`,skeletonInputCls:`${Je}-input`,skeletonImageCls:`${Je}-image`,imageSizeBase:qe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${qe.gradientFromColor} 25%, ${qe.gradientToColor} 37%, ${qe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ue(Pt)]},qe=>{const{colorFillContent:Je,colorFill:Pt}=qe,Nt=Je,Wt=Pt;return{color:Nt,colorGradientEnd:Wt,gradientFromColor:Nt,gradientToColor:Wt,titleHeight:qe.controlHeight/2,blockRadius:qe.borderRadiusSM,paragraphMarginTop:qe.marginLG+qe.marginXXS,paragraphLiHeight:qe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xe=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,active:Wt,shape:dt="circle",size:yt="default"}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=(0,fe.Z)(qe,["prefixCls","className"]),Gn=ge()(rt,`${rt}-element`,{[`${rt}-active`]:Wt},Pt,Nt,Ge);return cn(be.createElement("div",{className:Gn},be.createElement(ie,Object.assign({prefixCls:`${rt}-avatar`,shape:dt,size:yt},gt))))},Be=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,active:Wt,block:dt=!1,size:yt="default"}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=(0,fe.Z)(qe,["prefixCls"]),Gn=ge()(rt,`${rt}-element`,{[`${rt}-active`]:Wt,[`${rt}-block`]:dt},Pt,Nt,Ge);return cn(be.createElement("div",{className:Gn},be.createElement(ie,Object.assign({prefixCls:`${rt}-button`,size:yt},gt))))};const Me="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 Qe=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,style:Wt,active:dt}=qe,{getPrefixCls:yt}=be.useContext(ve.E_),Tt=yt("skeleton",Je),[rt,cn]=ye(Tt),Ge=ge()(Tt,`${Tt}-element`,{[`${Tt}-active`]:dt},Pt,Nt,cn);return rt(be.createElement("div",{className:Ge},be.createElement("div",{className:ge()(`${Tt}-image`,Pt),style:Wt},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Tt}-image-svg`},be.createElement("path",{d:Me,className:`${Tt}-image-path`})))))},Ae=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,active:Wt,block:dt,size:yt="default"}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=(0,fe.Z)(qe,["prefixCls"]),Gn=ge()(rt,`${rt}-element`,{[`${rt}-active`]:Wt,[`${rt}-block`]:dt},Pt,Nt,Ge);return cn(be.createElement("div",{className:Gn},be.createElement(ie,Object.assign({prefixCls:`${rt}-input`,size:yt},gt))))},De=ee(87462),Fe={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"},tt=Fe,Ve=ee(74643),Ct=function(Je,Pt){return be.createElement(Ve.Z,(0,De.Z)({},Je,{ref:Pt,icon:tt}))},Mt=be.forwardRef(Ct),nn=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,style:Wt,active:dt,children:yt}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=ge()(rt,`${rt}-element`,{[`${rt}-active`]:dt},Ge,Pt,Nt),Gn=yt!=null?yt:be.createElement(Mt,null);return cn(be.createElement("div",{className:gt},be.createElement("div",{className:ge()(`${rt}-image`,Pt),style:Wt},Gn)))},it=ee(74902),wt=qe=>{const Je=Tt=>{const{width:rt,rows:cn=2}=qe;if(Array.isArray(rt))return rt[Tt];if(cn-1===Tt)return rt},{prefixCls:Pt,className:Nt,style:Wt,rows:dt}=qe,yt=(0,it.Z)(Array(dt)).map((Tt,rt)=>be.createElement("li",{key:rt,style:{width:Je(rt)}}));return be.createElement("ul",{className:ge()(Pt,Nt),style:Wt},yt)},Gt=qe=>{let{prefixCls:Je,className:Pt,width:Nt,style:Wt}=qe;return be.createElement("h3",{className:ge()(Je,Pt),style:Object.assign({width:Nt},Wt)})};function Ln(qe){return qe&&typeof qe=="object"?qe:{}}function He(qe,Je){return qe&&!Je?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function on(qe,Je){return!qe&&Je?{width:"38%"}:qe&&Je?{width:"50%"}:{}}function In(qe,Je){const Pt={};return(!qe||!Je)&&(Pt.width="61%"),!qe&&Je?Pt.rows=3:Pt.rows=2,Pt}const or=qe=>{const{prefixCls:Je,loading:Pt,className:Nt,rootClassName:Wt,style:dt,children:yt,avatar:Tt=!1,title:rt=!0,paragraph:cn=!0,active:Ge,round:gt}=qe,{getPrefixCls:Gn,direction:Nn,skeleton:St}=be.useContext(ve.E_),Qt=Gn("skeleton",Je),[hn,jn]=ye(Qt);if(Pt||!("loading"in qe)){const lr=!!Tt,Ft=!!rt,nr=!!cn;let ar;if(lr){const Ur=Object.assign(Object.assign({prefixCls:`${Qt}-avatar`},He(Ft,nr)),Ln(Tt));ar=be.createElement("div",{className:`${Qt}-header`},be.createElement(ie,Object.assign({},Ur)))}let wo;if(Ft||nr){let Ur;if(Ft){const Dn=Object.assign(Object.assign({prefixCls:`${Qt}-title`},on(lr,nr)),Ln(rt));Ur=be.createElement(Gt,Object.assign({},Dn))}let Ho;if(nr){const Dn=Object.assign(Object.assign({prefixCls:`${Qt}-paragraph`},In(lr,Ft)),Ln(cn));Ho=be.createElement(wt,Object.assign({},Dn))}wo=be.createElement("div",{className:`${Qt}-content`},Ur,Ho)}const Kr=ge()(Qt,{[`${Qt}-with-avatar`]:lr,[`${Qt}-active`]:Ge,[`${Qt}-rtl`]:Nn==="rtl",[`${Qt}-round`]:gt},St==null?void 0:St.className,Nt,Wt,jn);return hn(be.createElement("div",{className:Kr,style:Object.assign(Object.assign({},St==null?void 0:St.style),dt)},ar,wo))}return typeof yt!="undefined"?yt:null};or.Button=Be,or.Avatar=xe,or.Input=Ae,or.Image=Qe,or.Node=nn;var bn=or,$t=bn},55054:function(at,We,ee){"use strict";ee.d(We,{default:function(){return ye}});var z=ee(67294),ge=ee(57838),be=ee(96159),ve=ee(94184),fe=ee.n(ve),pe=ee(53124),ie=ee(46303),le=_e=>{const{value:xe,formatter:Ce,precision:Be,decimalSeparator:Me,groupSeparator:mt="",prefixCls:Qe}=_e;let pt;if(typeof Ce=="function")pt=Ce(xe);else{const Ae=String(xe),De=Ae.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ae==="-")pt=Ae;else{const Fe=De[1];let tt=De[2]||"0",Ve=De[4]||"";tt=tt.replace(/\B(?=(\d{3})+(?!\d))/g,mt),typeof Be=="number"&&(Ve=Ve.padEnd(Be,"0").slice(0,Be>0?Be:0)),Ve&&(Ve=`${Me}${Ve}`),pt=[z.createElement("span",{key:"int",className:`${Qe}-content-value-int`},Fe,tt),Ve&&z.createElement("span",{key:"decimal",className:`${Qe}-content-value-decimal`},Ve)]}}return z.createElement("span",{className:`${Qe}-content-value`},pt)},ce=ee(14747),se=ee(67968),me=ee(45503);const re=_e=>{const{componentCls:xe,marginXXS:Ce,padding:Be,colorTextDescription:Me,titleFontSize:mt,colorTextHeading:Qe,contentFontSize:pt,fontFamily:Ae}=_e;return{[`${xe}`]:Object.assign(Object.assign({},(0,ce.Wf)(_e)),{[`${xe}-title`]:{marginBottom:Ce,color:Me,fontSize:mt},[`${xe}-skeleton`]:{paddingTop:Be},[`${xe}-content`]:{color:Qe,fontSize:pt,fontFamily:Ae,[`${xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xe}-content-prefix, ${xe}-content-suffix`]:{display:"inline-block"},[`${xe}-content-prefix`]:{marginInlineEnd:Ce},[`${xe}-content-suffix`]:{marginInlineStart:Ce}}})}};var ne=(0,se.Z)("Statistic",_e=>{const xe=(0,me.TS)(_e,{});return[re(xe)]},_e=>{const{fontSizeHeading3:xe,fontSize:Ce}=_e;return{titleFontSize:Ce,contentFontSize:xe}}),y=_e=>{const{prefixCls:xe,className:Ce,rootClassName:Be,style:Me,valueStyle:mt,value:Qe=0,title:pt,valueRender:Ae,prefix:De,suffix:Fe,loading:tt=!1,onMouseEnter:Ve,onMouseLeave:Ct,decimalSeparator:Mt=".",groupSeparator:en=","}=_e,{getPrefixCls:nn,direction:it,statistic:ct}=z.useContext(pe.E_),wt=nn("statistic",xe),[Vt,Gt]=ne(wt),Ln=z.createElement(le,Object.assign({decimalSeparator:Mt,groupSeparator:en,prefixCls:wt},_e,{value:Qe})),He=fe()(wt,{[`${wt}-rtl`]:it==="rtl"},ct==null?void 0:ct.className,Ce,Be,Gt);return Vt(z.createElement("div",{className:He,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),Me),onMouseEnter:Ve,onMouseLeave:Ct},pt&&z.createElement("div",{className:`${wt}-title`},pt),z.createElement(ie.Z,{paragraph:!1,loading:tt,className:`${wt}-skeleton`},z.createElement("div",{style:mt,className:`${wt}-content`},De&&z.createElement("span",{className:`${wt}-content-prefix`},De),Ae?Ae(Ln):Ln,Fe&&z.createElement("span",{className:`${wt}-content-suffix`},Fe)))))};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(_e,xe){let Ce=_e;const Be=/\[[^\]]*]/g,Me=(xe.match(Be)||[]).map(Ae=>Ae.slice(1,-1)),mt=xe.replace(Be,"[]"),Qe=E.reduce((Ae,De)=>{let[Fe,tt]=De;if(Ae.includes(Fe)){const Ve=Math.floor(Ce/tt);return Ce-=Ve*tt,Ae.replace(new RegExp(`${Fe}+`,"g"),Ct=>{const Mt=Ct.length;return Ve.toString().padStart(Mt,"0")})}return Ae},mt);let pt=0;return Qe.replace(Be,()=>{const Ae=Me[pt];return pt+=1,Ae})}function x(_e,xe){const{format:Ce=""}=xe,Be=new Date(_e).getTime(),Me=Date.now(),mt=Math.max(Be-Me,0);return b(mt,Ce)}const te=1e3/30;function oe(_e){return new Date(_e).getTime()}const ae=_e=>{const{value:xe,format:Ce="HH:mm:ss",onChange:Be,onFinish:Me}=_e,mt=(0,ge.Z)(),Qe=z.useRef(null),pt=()=>{Me==null||Me(),Qe.current&&(clearInterval(Qe.current),Qe.current=null)},Ae=()=>{const tt=oe(xe);tt>=Date.now()&&(Qe.current=setInterval(()=>{mt(),Be==null||Be(tt-Date.now()),tt<Date.now()&&pt()},te))};z.useEffect(()=>(Ae(),()=>{Qe.current&&(clearInterval(Qe.current),Qe.current=null)}),[xe]);const De=(tt,Ve)=>x(tt,Object.assign(Object.assign({},Ve),{format:Ce})),Fe=tt=>(0,be.Tm)(tt,{title:void 0});return z.createElement(y,Object.assign({},_e,{valueRender:Fe,formatter:De}))};var ue=z.memo(ae);y.Countdown=ue;var ye=y},49867:function(at,We,ee){"use strict";ee.d(We,{N:function(){return z}});const z=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},9430:function(at,We,ee){"use strict";ee.d(We,{default:function(){return Sa}});var z={},ge="rc-table-internal-hook",be=ee(97685),ve=ee(66680),fe=ee(8410),pe=ee(91881),ie=ee(67294),de=ee(73935);function le(Ee){var we=ie.createContext(void 0),Re=function(je){var Ze=je.value,ot=je.children,ht=ie.useRef(Ze);ht.current=Ze;var st=ie.useState(function(){return{getValue:function(){return ht.current},listeners:new Set}}),bt=(0,be.Z)(st,1),Bt=bt[0];return(0,fe.Z)(function(){(0,de.unstable_batchedUpdates)(function(){Bt.listeners.forEach(function(xt){xt(Ze)})})},[Ze]),ie.createElement(we.Provider,{value:Bt},ot)};return{Context:we,Provider:Re,defaultValue:Ee}}function ce(Ee,we){var Re=(0,ve.Z)(typeof we=="function"?we:function(xt){if(we===void 0)return xt;if(!Array.isArray(we))return xt[we];var qt={};return we.forEach(function(Xt){qt[Xt]=xt[Xt]}),qt}),Ie=ie.useContext(Ee==null?void 0:Ee.Context),je=Ie||{},Ze=je.listeners,ot=je.getValue,ht=ie.useRef();ht.current=Re(Ie?ot():Ee==null?void 0:Ee.defaultValue);var st=ie.useState({}),bt=(0,be.Z)(st,2),Bt=bt[1];return(0,fe.Z)(function(){if(!Ie)return;function xt(qt){var Xt=Re(qt);(0,pe.Z)(ht.current,Xt,!0)||Bt({})}return Ze.add(xt),function(){Ze.delete(xt)}},[Ie]),ht.current}var se=ee(87462),me=ee(42550);function re(){var Ee=ie.createContext(null);function we(){return ie.useContext(Ee)}function Re(je,Ze){var ot=(0,me.Yr)(je),ht=function(bt,Bt){var xt=ot?{ref:Bt}:{},qt=ie.useRef(0),Xt=ie.useRef(bt),sn=we();return sn!==null?ie.createElement(je,(0,se.Z)({},bt,xt)):((!Ze||Ze(Xt.current,bt))&&(qt.current+=1),Xt.current=bt,ie.createElement(Ee.Provider,{value:qt.current},ie.createElement(je,(0,se.Z)({},bt,xt))))};return ot?ie.forwardRef(ht):ht}function Ie(je,Ze){var ot=(0,me.Yr)(je),ht=function(bt,Bt){var xt=ot?{ref:Bt}:{};return we(),ie.createElement(je,(0,se.Z)({},bt,xt))};return ot?ie.memo(ie.forwardRef(ht),Ze):ie.memo(ht,Ze)}return{makeImmutable:Re,responseImmutable:Ie,useImmutableMark:we}}var ne=re(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,te=b.responseImmutable,oe=b.useImmutableMark,ae=le(),ue=ae;function ye(Ee,we){var Re=ie.useRef(0);Re.current+=1;var Ie=ie.useRef(Ee),je=[];Object.keys(Ee||{}).map(function(ot){var ht;(Ee==null?void 0:Ee[ot])!==((ht=Ie.current)===null||ht===void 0?void 0:ht[ot])&&je.push(ot)}),Ie.current=Ee;var Ze=ie.useRef([]);return je.length&&(Ze.current=je),ie.useDebugValue(Re.current),ie.useDebugValue(Ze.current.join(", ")),we&&console.log("".concat(we,":"),Re.current,Ze.current),Re.current}var _e=null,xe=ie.memo(function(){var Ee=ye();return ie.createElement("h1",null,"Render Times: ",Ee)});xe.displayName="RenderBlock";var Ce=ee(71002),Be=ee(1413),Me=ee(4942),mt=ee(94184),Qe=ee.n(mt);function pt(Ee,we,Re){var Ie=ie.useRef({});return(!("value"in Ie.current)||Re(Ie.current.condition,we))&&(Ie.current.value=Ee(),Ie.current.condition=we),Ie.current.value}var Ae={},De=[],Fe=function(we){De.push(we)};function tt(Ee,we){if(0)var Re}function Ve(Ee,we){if(0)var Re}function Ct(){Ae={}}function Mt(Ee,we,Re){!we&&!Ae[Re]&&(Ee(!1,Re),Ae[Re]=!0)}function en(Ee,we){Mt(tt,Ee,we)}function nn(Ee,we){Mt(Ve,Ee,we)}en.preMessage=Fe,en.resetWarned=Ct,en.noteOnce=nn;var it=en;function ct(Ee,we){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ie=new Set;function je(Ze,ot){var ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,st=Ie.has(Ze);if(it(!st,"Warning: There may be circular references"),st)return!1;if(Ze===ot)return!0;if(Re&&ht>1)return!1;Ie.add(Ze);var bt=ht+1;if(Array.isArray(Ze)){if(!Array.isArray(ot)||Ze.length!==ot.length)return!1;for(var Bt=0;Bt<Ze.length;Bt++)if(!je(Ze[Bt],ot[Bt],bt))return!1;return!0}if(Ze&&ot&&(0,Ce.Z)(Ze)==="object"&&(0,Ce.Z)(ot)==="object"){var xt=Object.keys(Ze);return xt.length!==Object.keys(ot).length?!1:xt.every(function(qt){return je(Ze[qt],ot[qt],bt)})}return!1}return je(Ee,we)}var wt=ct;function Vt(Ee,we){for(var Re=Ee,Ie=0;Ie<we.length;Ie+=1){if(Re==null)return;Re=Re[we[Ie]]}return Re}var Gt=ie.createContext({renderWithProps:!1}),Ln=Gt,He="RC_TABLE_KEY";function on(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function In(Ee){var we=[],Re={};return Ee.forEach(function(Ie){for(var je=Ie||{},Ze=je.key,ot=je.dataIndex,ht=Ze||on(ot).join("-")||He;Re[ht];)ht="".concat(ht,"_next");Re[ht]=!0,we.push(ht)}),we}function or(Ee){return Ee!=null}function bn(Ee){return Ee&&(0,Ce.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!ie.isValidElement(Ee)}function $t(Ee,we,Re,Ie,je,Ze){var ot=ie.useContext(Ln),ht=oe(),st=pt(function(){if(or(Ie))return[Ie];var bt=we==null||we===""?[]:Array.isArray(we)?we:[we],Bt=Vt(Ee,bt),xt=Bt,qt=void 0;if(je){var Xt=je(Bt,Ee,Re);bn(Xt)?(xt=Xt.children,qt=Xt.props,ot.renderWithProps=!0):xt=Xt}return[xt,qt]},[ht,Ee,Ie,we,je,Re],function(bt,Bt){if(Ze){var xt=(0,be.Z)(bt,2),qt=xt[1],Xt=(0,be.Z)(Bt,2),sn=Xt[1];return Ze(sn,qt)}return ot.renderWithProps?!0:!wt(bt,Bt,!0)});return st}function qe(Ee,we,Re,Ie){var je=Ee+we-1;return Ee<=Ie&&je>=Re}function Je(Ee,we){return ce(ue,function(Re){var Ie=qe(Ee,we||1,Re.hoverStartRow,Re.hoverEndRow);return[Ie,Re.onHover]})}var Pt=function(we){var Re=we.ellipsis,Ie=we.rowType,je=we.children,Ze,ot=Re===!0?{showTitle:!0}:Re;return ot&&(ot.showTitle||Ie==="header")&&(typeof je=="string"||typeof je=="number"?Ze=je.toString():ie.isValidElement(je)&&typeof je.props.children=="string"&&(Ze=je.props.children)),Ze};function Nt(Ee){var we,Re,Ie,je,Ze,ot,ht,st,bt=Ee.component,Bt=Ee.children,xt=Ee.ellipsis,qt=Ee.scope,Xt=Ee.prefixCls,sn=Ee.className,kn=Ee.align,Mn=Ee.record,Zn=Ee.render,Un=Ee.dataIndex,qn=Ee.renderIndex,Ir=Ee.shouldCellUpdate,Qr=Ee.index,Mr=Ee.rowType,vo=Ee.colSpan,Mo=Ee.rowSpan,vr=Ee.fixLeft,Rr=Ee.fixRight,hr=Ee.firstFixLeft,er=Ee.lastFixLeft,wr=Ee.firstFixRight,Gr=Ee.lastFixRight,Ao=Ee.appendNode,Co=Ee.additionalProps,Zr=Co===void 0?{}:Co,Io=Ee.isSticky,Yo="".concat(Xt,"-cell"),ki=ce(ue,["supportSticky","allColumnsFixedLeft"]),hi=ki.supportSticky,Ea=ki.allColumnsFixedLeft,Ca=$t(Mn,Un,qn,Bt,Zn,Ir),Do=(0,be.Z)(Ca,2),Ba=Do[0],Kn=Do[1],ro={},Go=typeof vr=="number"&&hi,ra=typeof Rr=="number"&&hi;Go&&(ro.position="sticky",ro.left=vr),ra&&(ro.position="sticky",ro.right=Rr);var _r=(we=(Re=(Ie=Kn==null?void 0:Kn.colSpan)!==null&&Ie!==void 0?Ie:Zr.colSpan)!==null&&Re!==void 0?Re:vo)!==null&&we!==void 0?we:1,oo=(je=(Ze=(ot=Kn==null?void 0:Kn.rowSpan)!==null&&ot!==void 0?ot:Zr.rowSpan)!==null&&Ze!==void 0?Ze:Mo)!==null&&je!==void 0?je:1,io=Je(Qr,oo),Wr=(0,be.Z)(io,2),_i=Wr[0],to=Wr[1],jo=function(Ya){var ws;Mn&&to(Qr,Qr+oo-1),Zr==null||(ws=Zr.onMouseEnter)===null||ws===void 0||ws.call(Zr,Ya)},Ti=function(Ya){var ws;Mn&&to(-1,-1),Zr==null||(ws=Zr.onMouseLeave)===null||ws===void 0||ws.call(Zr,Ya)};if(_r===0||oo===0)return null;var Ci=(ht=Zr.title)!==null&&ht!==void 0?ht:Pt({rowType:Mr,ellipsis:xt,children:Ba}),ps=Qe()(Yo,sn,(st={},(0,Me.Z)(st,"".concat(Yo,"-fix-left"),Go&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-left-first"),hr&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-left-last"),er&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-left-all"),er&&Ea&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-right"),ra&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-right-first"),wr&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-right-last"),Gr&&hi),(0,Me.Z)(st,"".concat(Yo,"-ellipsis"),xt),(0,Me.Z)(st,"".concat(Yo,"-with-append"),Ao),(0,Me.Z)(st,"".concat(Yo,"-fix-sticky"),(Go||ra)&&Io&&hi),(0,Me.Z)(st,"".concat(Yo,"-row-hover"),!Kn&&_i),st),Zr.className,Kn==null?void 0:Kn.className),cs={};kn&&(cs.textAlign=kn);var Ys=(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},ro),Zr.style),cs),Kn==null?void 0:Kn.style),Va=Ba;return(0,Ce.Z)(Va)==="object"&&!Array.isArray(Va)&&!ie.isValidElement(Va)&&(Va=null),xt&&(er||wr)&&(Va=ie.createElement("span",{className:"".concat(Yo,"-content")},Va)),ie.createElement(bt,(0,se.Z)({},Kn,Zr,{className:ps,style:Ys,title:Ci,scope:qt,onMouseEnter:jo,onMouseLeave:Ti,colSpan:_r!==1?_r:null,rowSpan:oo!==1?oo:null}),Ao,Va)}var Wt=ie.memo(Nt);function dt(Ee,we,Re,Ie,je,Ze){var ot=Re[Ee]||{},ht=Re[we]||{},st,bt;ot.fixed==="left"?st=Ie.left[je==="rtl"?we:Ee]:ht.fixed==="right"&&(bt=Ie.right[je==="rtl"?Ee:we]);var Bt=!1,xt=!1,qt=!1,Xt=!1,sn=Re[we+1],kn=Re[Ee-1],Mn=!(Ze!=null&&Ze.children);if(je==="rtl"){if(st!==void 0){var Zn=kn&&kn.fixed==="left";Xt=!Zn&&Mn}else if(bt!==void 0){var Un=sn&&sn.fixed==="right";qt=!Un&&Mn}}else if(st!==void 0){var qn=sn&&sn.fixed==="left";Bt=!qn&&Mn}else if(bt!==void 0){var Ir=kn&&kn.fixed==="right";xt=!Ir&&Mn}return{fixLeft:st,fixRight:bt,lastFixLeft:Bt,firstFixRight:xt,lastFixRight:qt,firstFixLeft:Xt,isSticky:Ie.isSticky}}var yt=ie.createContext({}),Tt=yt;function rt(Ee){var we=Ee.className,Re=Ee.index,Ie=Ee.children,je=Ee.colSpan,Ze=je===void 0?1:je,ot=Ee.rowSpan,ht=Ee.align,st=ce(ue,["prefixCls","direction"]),bt=st.prefixCls,Bt=st.direction,xt=ie.useContext(Tt),qt=xt.scrollColumnIndex,Xt=xt.stickyOffsets,sn=xt.flattenColumns,kn=xt.columns,Mn=Re+Ze-1,Zn=Mn+1===qt?Ze+1:Ze,Un=dt(Re,Re+Zn-1,sn,Xt,Bt,kn==null?void 0:kn[Re]);return ie.createElement(Wt,(0,se.Z)({className:we,index:Re,component:"td",prefixCls:bt,record:null,dataIndex:null,align:ht,colSpan:Zn,rowSpan:ot,render:function(){return Ie}},Un))}var cn=ee(45987),Ge=["children"];function gt(Ee){var we=Ee.children,Re=(0,cn.Z)(Ee,Ge);return ie.createElement("tr",Re,we)}function Gn(Ee){var we=Ee.children;return we}Gn.Row=gt,Gn.Cell=rt;var Nn=Gn;function St(Ee){var we=Ee.children,Re=Ee.stickyOffsets,Ie=Ee.flattenColumns,je=Ee.columns,Ze=ce(ue,"prefixCls"),ot=Ie.length-1,ht=Ie[ot],st=ie.useMemo(function(){return{stickyOffsets:Re,flattenColumns:Ie,scrollColumnIndex:ht!=null&&ht.scrollbar?ot:null,columns:je}},[ht,Ie,ot,Re,je]);return ie.createElement(Tt.Provider,{value:st},ie.createElement("tfoot",{className:"".concat(Ze,"-summary")},we))}var Qt=te(St),hn=Nn;function jn(Ee){var we=ie.useRef();we.current=Ee;var Re=ie.useCallback(function(){for(var Ie,je=arguments.length,Ze=new Array(je),ot=0;ot<je;ot++)Ze[ot]=arguments[ot];return(Ie=we.current)===null||Ie===void 0?void 0:Ie.call.apply(Ie,[we].concat(Ze))},[]);return Re}function lr(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ft=lr()?ie.useLayoutEffect:ie.useEffect,nr=function(we,Re){var Ie=React.useRef(!0);Ft(function(){return we(Ie.current)},Re),Ft(function(){return Ie.current=!1,function(){Ie.current=!0}},[])},ar=function(we,Re){nr(function(Ie){if(!Ie)return we()},Re)},wo=null;function Kr(Ee){var we=React.useRef(!1),Re=React.useState(Ee),Ie=_slicedToArray(Re,2),je=Ie[0],Ze=Ie[1];React.useEffect(function(){return we.current=!1,function(){we.current=!0}},[]);function ot(ht,st){st&&we.current||Ze(ht)}return[je,ot]}function Ur(Ee){return Ee!==void 0}function Ho(Ee,we){var Re=we||{},Ie=Re.defaultValue,je=Re.value,Ze=Re.onChange,ot=Re.postState,ht=useState(function(){return Ur(je)?je:Ur(Ie)?typeof Ie=="function"?Ie():Ie:typeof Ee=="function"?Ee():Ee}),st=_slicedToArray(ht,2),bt=st[0],Bt=st[1],xt=je!==void 0?je:bt,qt=ot?ot(xt):xt,Xt=useEvent(Ze),sn=useState([xt]),kn=_slicedToArray(sn,2),Mn=kn[0],Zn=kn[1];useLayoutUpdateEffect(function(){var qn=Mn[0];bt!==qn&&Xt(bt,qn)},[Mn]),useLayoutUpdateEffect(function(){Ur(je)||Bt(je)},[je]);var Un=useEvent(function(qn,Ir){Bt(qn,Ir),Zn([xt],Ir)});return[qt,Un]}var Dn=ee(35110);function Po(Ee,we){typeof Ee=="function"?Ee(we):(0,Ce.Z)(Ee)==="object"&&Ee&&"current"in Ee&&(Ee.current=we)}function pi(){for(var Ee=arguments.length,we=new Array(Ee),Re=0;Re<Ee;Re++)we[Re]=arguments[Re];var Ie=we.filter(function(je){return je});return Ie.length<=1?Ie[0]:function(je){we.forEach(function(Ze){Po(Ze,je)})}}function sa(){for(var Ee=arguments.length,we=new Array(Ee),Re=0;Re<Ee;Re++)we[Re]=arguments[Re];return useMemo(function(){return pi.apply(void 0,we)},we,function(Ie,je){return Ie.length!==je.length||Ie.every(function(Ze,ot){return Ze!==je[ot]})})}function qi(Ee){var we,Re,Ie=isMemo(Ee)?Ee.type.type:Ee.type;return!(typeof Ie=="function"&&!((we=Ie.prototype)!==null&&we!==void 0&&we.render)||typeof Ee=="function"&&!((Re=Ee.prototype)!==null&&Re!==void 0&&Re.render))}function Vr(Ee){return!isValidElement(Ee)||isFragment(Ee)?!1:qi(Ee)}function $o(Ee,we,Re,Ie){if(!we.length)return Re;var je=_toArray(we),Ze=je[0],ot=je.slice(1),ht;return!Ee&&typeof Ze=="number"?ht=[]:Array.isArray(Ee)?ht=_toConsumableArray(Ee):ht=_objectSpread({},Ee),Ie&&Re===void 0&&ot.length===1?delete ht[Ze][ot[0]]:ht[Ze]=$o(ht[Ze],ot,Re,Ie),ht}function Jo(Ee,we,Re){var Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return we.length&&Ie&&Re===void 0&&!get(Ee,we.slice(0,-1))?Ee:$o(Ee,we,Re,Ie)}function Li(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function Lo(Ee){return Array.isArray(Ee)?[]:{}}var Ii=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function xi(){for(var Ee=arguments.length,we=new Array(Ee),Re=0;Re<Ee;Re++)we[Re]=arguments[Re];var Ie=Lo(we[0]);return we.forEach(function(je){function Ze(ot,ht){var st=new Set(ht),bt=get(je,ot),Bt=Array.isArray(bt);if(Bt||Li(bt)){if(!st.has(bt)){st.add(bt);var xt=get(Ie,ot);Bt?Ie=Jo(Ie,ot,[]):(!xt||_typeof(xt)!=="object")&&(Ie=Jo(Ie,ot,Lo(bt))),Ii(bt).forEach(function(qt){Ze([].concat(_toConsumableArray(ot),[qt]),st)})}}else Ie=Jo(Ie,ot,bt)}Ze([])}),Ie}var Bo=ee(48555),Xr=function(Ee){if(!Ee)return!1;if(Ee instanceof Element){if(Ee.offsetParent)return!0;if(Ee.getBBox){var we=Ee.getBBox(),Re=we.width,Ie=we.height;if(Re||Ie)return!0}if(Ee.getBoundingClientRect){var je=Ee.getBoundingClientRect(),Ze=je.width,ot=je.height;if(Ze||ot)return!0}}return!1},La=function(we){if(lr()&&window.document.documentElement){var Re=Array.isArray(we)?we:[we],Ie=window.document.documentElement;return Re.some(function(je){return je in Ie.style})}return!1},_n=function(we,Re){if(!La(we))return!1;var Ie=document.createElement("div"),je=Ie.style[we];return Ie.style[we]=Re,Ie.style[we]!==je};function he(Ee,we){return!Array.isArray(Ee)&&we!==void 0?_n(Ee,we):La(Ee)}var Se;function Pe(Ee){if(typeof document=="undefined")return 0;if(Ee||Se===void 0){var we=document.createElement("div");we.style.width="100%",we.style.height="200px";var Re=document.createElement("div"),Ie=Re.style;Ie.position="absolute",Ie.top="0",Ie.left="0",Ie.pointerEvents="none",Ie.visibility="hidden",Ie.width="200px",Ie.height="150px",Ie.overflow="hidden",Re.appendChild(we),document.body.appendChild(Re);var je=we.offsetWidth;Re.style.overflow="scroll";var Ze=we.offsetWidth;je===Ze&&(Ze=Re.clientWidth),document.body.removeChild(Re),Se=je-Ze}return Se}function Le(Ee){var we=Ee.match(/^(.*)px$/),Re=Number(we==null?void 0:we[1]);return Number.isNaN(Re)?Pe():Re}function Ne(Ee){if(typeof document=="undefined"||!Ee||!(Ee instanceof Element))return{width:0,height:0};var we=getComputedStyle(Ee,"::-webkit-scrollbar"),Re=we.width,Ie=we.height;return{width:Le(Re),height:Le(Ie)}}var nt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,lt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,fn="".concat(nt," ").concat(lt).split(/[\s\n]+/),tn="aria-",Tn="data-";function fr(Ee,we){return Ee.indexOf(we)===0}function Lr(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re;we===!1?Re={aria:!0,data:!0,attr:!0}:we===!0?Re={aria:!0}:Re=(0,Be.Z)({},we);var Ie={};return Object.keys(Ee).forEach(function(je){(Re.aria&&(je==="role"||fr(je,tn))||Re.data&&fr(je,Tn)||Re.attr&&fn.includes(je))&&(Ie[je]=Ee[je])}),Ie}function Ot(Ee,we,Re,Ie,je,Ze,ot){Ee.push({record:we,indent:Re,index:ot});var ht=Ze(we),st=je==null?void 0:je.has(ht);if(we&&Array.isArray(we[Ie])&&st)for(var bt=0;bt<we[Ie].length;bt+=1)Ot(Ee,we[Ie][bt],Re+1,Ie,je,Ze,bt)}function cr(Ee,we,Re,Ie){var je=ie.useMemo(function(){if(Re!=null&&Re.size){for(var Ze=[],ot=0;ot<(Ee==null?void 0:Ee.length);ot+=1){var ht=Ee[ot];Ot(Ze,ht,0,we,Re,Ie,ot)}return Ze}return Ee==null?void 0:Ee.map(function(st,bt){return{record:st,indent:0,index:bt}})},[Ee,we,Re,Ie]);return je}function sr(Ee){var we=Ee.prefixCls,Re=Ee.children,Ie=Ee.component,je=Ee.cellComponent,Ze=Ee.className,ot=Ee.expanded,ht=Ee.colSpan,st=Ee.isEmpty,bt=ce(ue,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Bt=bt.scrollbarSize,xt=bt.fixHeader,qt=bt.fixColumn,Xt=bt.componentWidth,sn=bt.horizonScroll,kn=Re;return(st?sn&&Xt:qt)&&(kn=ie.createElement("div",{style:{width:Xt-(xt?Bt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(we,"-expanded-row-fixed")},kn)),ie.createElement(Ie,{className:Ze,style:{display:ot?null:"none"}},ie.createElement(Wt,{component:je,prefixCls:we,colSpan:ht},kn))}var Rn=sr;function Hn(Ee,we,Re,Ie){var je=ce(ue,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ze=je.flattenColumns,ot=je.expandableType,ht=je.expandedKeys,st=je.childrenColumnName,bt=je.onTriggerExpand,Bt=je.rowExpandable,xt=je.onRow,qt=je.expandRowByClick,Xt=je.rowClassName,sn=ot==="nest",kn=ot==="row"&&(!Bt||Bt(Ee)),Mn=kn||sn,Zn=ht&&ht.has(we),Un=st&&Ee&&Ee[st],qn=jn(bt),Ir=xt==null?void 0:xt(Ee,Re),Qr=Ir==null?void 0:Ir.onClick,Mr=function(Rr){qt&&Mn&&bt(Ee,Rr);for(var hr=arguments.length,er=new Array(hr>1?hr-1:0),wr=1;wr<hr;wr++)er[wr-1]=arguments[wr];Qr==null||Qr.apply(void 0,[Rr].concat(er))},vo;typeof Xt=="string"?vo=Xt:typeof Xt=="function"&&(vo=Xt(Ee,Re,Ie));var Mo=In(Ze);return(0,Be.Z)((0,Be.Z)({},je),{},{columnsKey:Mo,nestExpandable:sn,expanded:Zn,hasNestChildren:Un,record:Ee,onTriggerExpand:qn,rowSupportExpand:kn,expandable:Mn,rowProps:(0,Be.Z)((0,Be.Z)({},Ir),{},{className:Qe()(vo,Ir==null?void 0:Ir.className),onClick:Mr})})}function tr(Ee,we,Re,Ie,je){var Ze=Ee.record,ot=Ee.prefixCls,ht=Ee.columnsKey,st=Ee.fixedInfoList,bt=Ee.expandIconColumnIndex,Bt=Ee.nestExpandable,xt=Ee.indentSize,qt=Ee.expandIcon,Xt=Ee.expanded,sn=Ee.hasNestChildren,kn=Ee.onTriggerExpand,Mn=ht[Re],Zn=st[Re],Un;Re===(bt||0)&&Bt&&(Un=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(xt*Ie,"px")},className:"".concat(ot,"-row-indent indent-level-").concat(Ie)}),qt({prefixCls:ot,expanded:Xt,expandable:sn,record:Ze,onExpand:kn})));var qn;return we.onCell&&(qn=we.onCell(Ze,je)),{key:Mn,fixedInfo:Zn,appendCellNode:Un,additionalCellProps:qn||{}}}function jr(Ee){var we=Ee.className,Re=Ee.style,Ie=Ee.record,je=Ee.index,Ze=Ee.renderIndex,ot=Ee.rowKey,ht=Ee.indent,st=ht===void 0?0:ht,bt=Ee.rowComponent,Bt=Ee.cellComponent,xt=Ee.scopeCellComponent,qt=Hn(Ie,ot,je,st),Xt=qt.prefixCls,sn=qt.flattenColumns,kn=qt.expandedRowClassName,Mn=qt.expandedRowRender,Zn=qt.rowProps,Un=qt.expanded,qn=qt.rowSupportExpand,Ir=ie.useState(!1),Qr=(0,be.Z)(Ir,2),Mr=Qr[0],vo=Qr[1];ie.useEffect(function(){Un&&vo(!0)},[Un]);var Mo=ie.createElement(bt,(0,se.Z)({},Zn,{"data-row-key":ot,className:Qe()(we,"".concat(Xt,"-row"),"".concat(Xt,"-row-level-").concat(st),Zn==null?void 0:Zn.className),style:(0,Be.Z)((0,Be.Z)({},Re),Zn==null?void 0:Zn.style)}),sn.map(function(er,wr){var Gr=er.render,Ao=er.dataIndex,Co=er.className,Zr=tr(qt,er,wr,st,je),Io=Zr.key,Yo=Zr.fixedInfo,ki=Zr.appendCellNode,hi=Zr.additionalCellProps;return ie.createElement(Wt,(0,se.Z)({className:Co,ellipsis:er.ellipsis,align:er.align,scope:er.rowScope,component:er.rowScope?xt:Bt,prefixCls:Xt,key:Io,record:Ie,index:je,renderIndex:Ze,dataIndex:Ao,render:Gr,shouldCellUpdate:er.shouldCellUpdate},Yo,{appendNode:ki,additionalProps:hi}))})),vr;if(qn&&(Mr||Un)){var Rr=Mn(Ie,je,st+1,Un),hr=kn&&kn(Ie,je,st);vr=ie.createElement(Rn,{expanded:Un,className:Qe()("".concat(Xt,"-expanded-row"),"".concat(Xt,"-expanded-row-level-").concat(st+1),hr),prefixCls:Xt,component:bt,cellComponent:Bt,colSpan:sn.length,isEmpty:!1},Rr)}return ie.createElement(ie.Fragment,null,Mo,vr)}jr.displayName="BodyRow";var Pr=te(jr);function Yi(Ee){var we=Ee.columnKey,Re=Ee.onColumnResize,Ie=ie.useRef();return ie.useEffect(function(){Ie.current&&Re(we,Ie.current.offsetWidth)},[]),ie.createElement(Bo.Z,{data:we},ie.createElement("td",{ref:Ie,style:{padding:0,border:0,height:0}},ie.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ti(Ee){var we=Ee.prefixCls,Re=Ee.columnsKey,Ie=Ee.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(we,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(Bo.Z.Collection,{onBatchResize:function(Ze){Ze.forEach(function(ot){var ht=ot.data,st=ot.size;Ie(ht,st.offsetWidth)})}},Re.map(function(je){return ie.createElement(Yi,{key:je,columnKey:je,onColumnResize:Ie})})))}function xr(Ee){var we=Ee.data,Re=Ee.measureColumnWidth,Ie=ce(ue,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),je=Ie.prefixCls,Ze=Ie.getComponent,ot=Ie.onColumnResize,ht=Ie.flattenColumns,st=Ie.getRowKey,bt=Ie.expandedKeys,Bt=Ie.childrenColumnName,xt=Ie.emptyNode,qt=cr(we,Bt,bt,st),Xt=ie.useRef({renderWithProps:!1}),sn=Ze(["body","wrapper"],"tbody"),kn=Ze(["body","row"],"tr"),Mn=Ze(["body","cell"],"td"),Zn=Ze(["body","cell"],"th"),Un;we.length?Un=qt.map(function(Ir,Qr){var Mr=Ir.record,vo=Ir.indent,Mo=Ir.index,vr=st(Mr,Qr);return ie.createElement(Pr,{key:vr,rowKey:vr,record:Mr,index:Qr,renderIndex:Mo,rowComponent:kn,cellComponent:Mn,scopeCellComponent:Zn,getRowKey:st,indent:vo})}):Un=ie.createElement(Rn,{expanded:!0,className:"".concat(je,"-placeholder"),prefixCls:je,component:kn,cellComponent:Mn,colSpan:ht.length,isEmpty:!0},xt);var qn=In(ht);return ie.createElement(Ln.Provider,{value:Xt.current},ie.createElement(sn,{className:"".concat(je,"-tbody")},Re&&ie.createElement(ti,{prefixCls:je,columnsKey:qn,onColumnResize:ot}),Un))}xr.displayName="Body";var yo=te(xr),Mi=["expandable"],Pi="RC_TABLE_INTERNAL_COL_DEFINE";function Ai(Ee){var we=Ee.expandable,Re=(0,cn.Z)(Ee,Mi),Ie;return"expandable"in Ee?Ie=(0,Be.Z)((0,Be.Z)({},Re),we):Ie=Re,Ie.showExpandColumn===!1&&(Ie.expandIconColumnIndex=-1),Ie}var pn=["columnType"];function Ka(Ee){for(var we=Ee.colWidths,Re=Ee.columns,Ie=Ee.columCount,je=[],Ze=Ie||Re.length,ot=!1,ht=Ze-1;ht>=0;ht-=1){var st=we[ht],bt=Re&&Re[ht],Bt=bt&&bt[Pi];if(st||Bt||ot){var xt=Bt||{},qt=xt.columnType,Xt=(0,cn.Z)(xt,pn);je.unshift(ie.createElement("col",(0,se.Z)({key:ht,style:{width:st}},Xt))),ot=!0}}return ie.createElement("colgroup",null,je)}var Ui=Ka,Vo=ee(74902),Aa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Bn(Ee,we){return(0,ie.useMemo)(function(){for(var Re=[],Ie=0;Ie<we;Ie+=1){var je=Ee[Ie];if(je!==void 0)Re[Ie]=je;else return null}return Re},[Ee.join("_"),we])}var mr=ie.forwardRef(function(Ee,we){var Re=Ee.className,Ie=Ee.noData,je=Ee.columns,Ze=Ee.flattenColumns,ot=Ee.colWidths,ht=Ee.columCount,st=Ee.stickyOffsets,bt=Ee.direction,Bt=Ee.fixHeader,xt=Ee.stickyTopOffset,qt=Ee.stickyBottomOffset,Xt=Ee.stickyClassName,sn=Ee.onScroll,kn=Ee.maxContentScroll,Mn=Ee.children,Zn=(0,cn.Z)(Ee,Aa),Un=ce(ue,["prefixCls","scrollbarSize","isSticky"]),qn=Un.prefixCls,Ir=Un.scrollbarSize,Qr=Un.isSticky,Mr=Qr&&!Bt?0:Ir,vo=ie.useRef(null),Mo=ie.useCallback(function(Co){Po(we,Co),Po(vo,Co)},[]);ie.useEffect(function(){var Co;function Zr(Io){var Yo=Io,ki=Yo.currentTarget,hi=Yo.deltaX;hi&&(sn({currentTarget:ki,scrollLeft:ki.scrollLeft+hi}),Io.preventDefault())}return(Co=vo.current)===null||Co===void 0||Co.addEventListener("wheel",Zr),function(){var Io;(Io=vo.current)===null||Io===void 0||Io.removeEventListener("wheel",Zr)}},[]);var vr=ie.useMemo(function(){return Ze.every(function(Co){return Co.width})},[Ze]),Rr=Ze[Ze.length-1],hr={fixed:Rr?Rr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(qn,"-cell-scrollbar")}}},er=(0,ie.useMemo)(function(){return Mr?[].concat((0,Vo.Z)(je),[hr]):je},[Mr,je]),wr=(0,ie.useMemo)(function(){return Mr?[].concat((0,Vo.Z)(Ze),[hr]):Ze},[Mr,Ze]),Gr=(0,ie.useMemo)(function(){var Co=st.right,Zr=st.left;return(0,Be.Z)((0,Be.Z)({},st),{},{left:bt==="rtl"?[].concat((0,Vo.Z)(Zr.map(function(Io){return Io+Mr})),[0]):Zr,right:bt==="rtl"?Co:[].concat((0,Vo.Z)(Co.map(function(Io){return Io+Mr})),[0]),isSticky:Qr})},[Mr,st,Qr]),Ao=Bn(ot,ht);return ie.createElement("div",{style:(0,Be.Z)({overflow:"hidden"},Qr?{top:xt,bottom:qt}:{}),ref:Mo,className:Qe()(Re,(0,Me.Z)({},Xt,!!Xt))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Ie||Ao?null:"hidden"}},(!Ie||!kn||vr)&&ie.createElement(Ui,{colWidths:Ao?[].concat((0,Vo.Z)(Ao),[Mr]):[],columCount:ht+1,columns:wr}),Mn((0,Be.Z)((0,Be.Z)({},Zn),{},{stickyOffsets:Gr,columns:er,flattenColumns:wr}))))});mr.displayName="FixedHolder";var Hr=ie.memo(mr);function rr(Ee){var we=Ee.cells,Re=Ee.stickyOffsets,Ie=Ee.flattenColumns,je=Ee.rowComponent,Ze=Ee.cellComponent,ot=Ee.tdCellComponent,ht=Ee.onHeaderRow,st=Ee.index,bt=ce(ue,["prefixCls","direction"]),Bt=bt.prefixCls,xt=bt.direction,qt;ht&&(qt=ht(we.map(function(sn){return sn.column}),st));var Xt=In(we.map(function(sn){return sn.column}));return ie.createElement(je,qt,we.map(function(sn,kn){var Mn=sn.column,Zn=dt(sn.colStart,sn.colEnd,Ie,Re,xt,Mn),Un;return Mn&&Mn.onHeaderCell&&(Un=sn.column.onHeaderCell(Mn)),ie.createElement(Wt,(0,se.Z)({},sn,{scope:Mn.title?sn.colSpan>1?"colgroup":"col":null,ellipsis:Mn.ellipsis,align:Mn.align,component:Mn.title?Ze:ot,prefixCls:Bt,key:Xt[kn]},Zn,{additionalProps:Un,rowType:"header"}))}))}rr.displayName="HeaderRow";var di=rr;function bi(Ee){var we=[];function Re(ot,ht){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[st]=we[st]||[];var bt=ht,Bt=ot.filter(Boolean).map(function(xt){var qt={key:xt.key,className:xt.className||"",children:xt.title,column:xt,colStart:bt},Xt=1,sn=xt.children;return sn&&sn.length>0&&(Xt=Re(sn,bt,st+1).reduce(function(kn,Mn){return kn+Mn},0),qt.hasSubColumns=!0),"colSpan"in xt&&(Xt=xt.colSpan),"rowSpan"in xt&&(qt.rowSpan=xt.rowSpan),qt.colSpan=Xt,qt.colEnd=qt.colStart+Xt-1,we[st].push(qt),bt+=Xt,Xt});return Bt}Re(Ee,0);for(var Ie=we.length,je=function(ht){we[ht].forEach(function(st){!("rowSpan"in st)&&!st.hasSubColumns&&(st.rowSpan=Ie-ht)})},Ze=0;Ze<Ie;Ze+=1)je(Ze);return we}function la(Ee){var we=Ee.stickyOffsets,Re=Ee.columns,Ie=Ee.flattenColumns,je=Ee.onHeaderRow,Ze=ce(ue,["prefixCls","getComponent"]),ot=Ze.prefixCls,ht=Ze.getComponent,st=ie.useMemo(function(){return bi(Re)},[Re]),bt=ht(["header","wrapper"],"thead"),Bt=ht(["header","row"],"tr"),xt=ht(["header","cell"],"th"),qt=ht(["header","cell"],"td");return ie.createElement(bt,{className:"".concat(ot,"-thead")},st.map(function(Xt,sn){var kn=ie.createElement(di,{key:sn,flattenColumns:Ie,cells:Xt,stickyOffsets:we,rowComponent:Bt,cellComponent:xt,tdCellComponent:qt,onHeaderRow:je,index:sn});return kn}))}var Da=te(la);function Wa(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=[];return ie.Children.forEach(Ee,function(Ie){Ie==null&&!we.keepEmpty||(Array.isArray(Ie)?Re=Re.concat(Wa(Ie)):(0,Dn.isFragment)(Ie)&&Ie.props?Re=Re.concat(Wa(Ie.props.children,we)):Re.push(Ie))}),Re}function ft(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof we=="number"?we:we.endsWith("%")?Ee*parseFloat(we)/100:null}function ut(Ee,we){return ie.useMemo(function(){if(we&&we>0){var Re=0,Ie=0;Ee.forEach(function(bt){var Bt=ft(we,bt.width);Bt?Re+=Bt:Ie+=1});var je=we-Re,Ze=Ie,ot=je/Ie,ht=0,st=Ee.map(function(bt){var Bt=(0,Be.Z)({},bt),xt=ft(we,Bt.width);if(xt)Bt.width=xt;else{var qt=Math.floor(ot);Bt.width=Ze===1?je:qt,je-=qt,Ze-=1}return ht+=Bt.width,Bt});return[st,ht]}return[Ee,we]},[Ee,we])}var Ht=["children"],Yt=["fixed"];function xn(Ee){return Wa(Ee).filter(function(we){return ie.isValidElement(we)}).map(function(we){var Re=we.key,Ie=we.props,je=Ie.children,Ze=(0,cn.Z)(Ie,Ht),ot=(0,Be.Z)({key:Re},Ze);return je&&(ot.children=xn(je)),ot})}function Ar(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(Re){return Re&&(0,Ce.Z)(Re)==="object"}).reduce(function(Re,Ie,je){var Ze=Ie.fixed,ot=Ze===!0?"left":Ze,ht="".concat(we,"-").concat(je),st=Ie.children;return st&&st.length>0?[].concat((0,Vo.Z)(Re),(0,Vo.Z)(Ar(st,ht).map(function(bt){return(0,Be.Z)({fixed:ot},bt)}))):[].concat((0,Vo.Z)(Re),[(0,Be.Z)((0,Be.Z)({key:ht},Ie),{},{fixed:ot})])},[])}function Dr(Ee){for(var we=!0,Re=0;Re<Ee.length;Re+=1){var Ie=Ee[Re];if(we&&Ie.fixed!=="left")we=!1;else if(!we&&Ie.fixed==="left"){warning(!1,"Index ".concat(Re-1," of `columns` missing `fixed='left'` prop."));break}}for(var je=!0,Ze=Ee.length-1;Ze>=0;Ze-=1){var ot=Ee[Ze];if(je&&ot.fixed!=="right")je=!1;else if(!je&&ot.fixed==="right"){warning(!1,"Index ".concat(Ze+1," of `columns` missing `fixed='right'` prop."));break}}}function lo(Ee){return Ee.map(function(we){var Re=we.fixed,Ie=(0,cn.Z)(we,Yt),je=Re;return Re==="left"?je="right":Re==="right"&&(je="left"),(0,Be.Z)({fixed:je},Ie)})}function _o(Ee,we){var Re=Ee.prefixCls,Ie=Ee.columns,je=Ee.children,Ze=Ee.expandable,ot=Ee.expandedKeys,ht=Ee.columnTitle,st=Ee.getRowKey,bt=Ee.onTriggerExpand,Bt=Ee.expandIcon,xt=Ee.rowExpandable,qt=Ee.expandIconColumnIndex,Xt=Ee.direction,sn=Ee.expandRowByClick,kn=Ee.columnWidth,Mn=Ee.fixed,Zn=Ee.scrollWidth,Un=ie.useMemo(function(){return Ie||xn(je)},[Ie,je]),qn=ie.useMemo(function(){if(Ze){var Rr,hr=Un.slice();if(!hr.includes(z)){var er=qt||0;er>=0&&hr.splice(er,0,z)}var wr=hr.indexOf(z);hr=hr.filter(function(Zr,Io){return Zr!==z||Io===wr});var Gr=Un[wr],Ao;(Mn==="left"||Mn)&&!qt?Ao="left":(Mn==="right"||Mn)&&qt===Un.length?Ao="right":Ao=Gr?Gr.fixed:null;var Co=(Rr={},(0,Me.Z)(Rr,Pi,{className:"".concat(Re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Me.Z)(Rr,"title",ht),(0,Me.Z)(Rr,"fixed",Ao),(0,Me.Z)(Rr,"className","".concat(Re,"-row-expand-icon-cell")),(0,Me.Z)(Rr,"width",kn),(0,Me.Z)(Rr,"render",function(Io,Yo,ki){var hi=st(Yo,ki),Ea=ot.has(hi),Ca=xt?xt(Yo):!0,Do=Bt({prefixCls:Re,expanded:Ea,expandable:Ca,record:Yo,onExpand:bt});return sn?ie.createElement("span",{onClick:function(Kn){return Kn.stopPropagation()}},Do):Do}),Rr);return hr.map(function(Zr){return Zr===z?Co:Zr})}return Un.filter(function(Zr){return Zr!==z})},[Ze,Un,st,ot,Bt,Xt]),Ir=ie.useMemo(function(){var Rr=qn;return we&&(Rr=we(Rr)),Rr.length||(Rr=[{render:function(){return null}}]),Rr},[we,qn,Xt]),Qr=ie.useMemo(function(){return Xt==="rtl"?lo(Ar(Ir)):Ar(Ir)},[Ir,Xt,Zn]),Mr=ut(Qr,Zn),vo=(0,be.Z)(Mr,2),Mo=vo[0],vr=vo[1];return[Ir,Mo,vr]}var uo=_o;function ni(Ee){var we,Re=Ee.prefixCls,Ie=Ee.record,je=Ee.onExpand,Ze=Ee.expanded,ot=Ee.expandable,ht="".concat(Re,"-row-expand-icon");if(!ot)return ie.createElement("span",{className:Qe()(ht,"".concat(Re,"-row-spaced"))});var st=function(Bt){je(Ie,Bt),Bt.stopPropagation()};return ie.createElement("span",{className:Qe()(ht,(we={},(0,Me.Z)(we,"".concat(Re,"-row-expanded"),Ze),(0,Me.Z)(we,"".concat(Re,"-row-collapsed"),!Ze),we)),onClick:st})}function vi(Ee,we,Re){var Ie=[];function je(Ze){(Ze||[]).forEach(function(ot,ht){Ie.push(we(ot,ht)),je(ot[Re])})}return je(Ee),Ie}function Di(Ee,we,Re){var Ie=Ai(Ee),je=Ie.expandIcon,Ze=Ie.expandedRowKeys,ot=Ie.defaultExpandedRowKeys,ht=Ie.defaultExpandAllRows,st=Ie.expandedRowRender,bt=Ie.onExpand,Bt=Ie.onExpandedRowsChange,xt=Ie.childrenColumnName,qt=je||ni,Xt=xt||"children",sn=ie.useMemo(function(){return st?"row":Ee.expandable&&Ee.internalHooks===ge&&Ee.expandable.__PARENT_RENDER_ICON__||we.some(function(Qr){return Qr&&(0,Ce.Z)(Qr)==="object"&&Qr[Xt]})?"nest":!1},[!!st,we]),kn=ie.useState(function(){return ot||(ht?vi(we,Re,Xt):[])}),Mn=(0,be.Z)(kn,2),Zn=Mn[0],Un=Mn[1],qn=ie.useMemo(function(){return new Set(Ze||Zn||[])},[Ze,Zn]),Ir=ie.useCallback(function(Qr){var Mr=Re(Qr,we.indexOf(Qr)),vo,Mo=qn.has(Mr);Mo?(qn.delete(Mr),vo=(0,Vo.Z)(qn)):vo=[].concat((0,Vo.Z)(qn),[Mr]),Un(vo),bt&&bt(!Mo,Qr),Bt&&Bt(vo)},[Re,qn,we,bt,Bt]);return[Ie,sn,qn,qt,Xt,Ir]}function _t(Ee,we,Re,Ie){var je=Ee.map(function(Ze,ot){return dt(ot,ot,Ee,we,Re,Ie==null?void 0:Ie[ot])});return pt(function(){return je},[je],function(Ze,ot){return!wt(Ze,ot)})}function Et(Ee){var we=(0,ie.useRef)(Ee),Re=(0,ie.useState)({}),Ie=(0,be.Z)(Re,2),je=Ie[1],Ze=(0,ie.useRef)(null),ot=(0,ie.useRef)([]);function ht(st){ot.current.push(st);var bt=Promise.resolve();Ze.current=bt,bt.then(function(){if(Ze.current===bt){var Bt=ot.current,xt=we.current;ot.current=[],Bt.forEach(function(qt){we.current=qt(we.current)}),Ze.current=null,xt!==we.current&&je({})}})}return(0,ie.useEffect)(function(){return function(){Ze.current=null}},[]),[we.current,ht]}function jt(Ee){var we=(0,ie.useRef)(Ee||null),Re=(0,ie.useRef)();function Ie(){window.clearTimeout(Re.current)}function je(ot){we.current=ot,Ie(),Re.current=window.setTimeout(function(){we.current=null,Re.current=void 0},100)}function Ze(){return we.current}return(0,ie.useEffect)(function(){return Ie},[]),[je,Ze]}function Ue(){var Ee=ie.useState(-1),we=(0,be.Z)(Ee,2),Re=we[0],Ie=we[1],je=ie.useState(-1),Ze=(0,be.Z)(je,2),ot=Ze[0],ht=Ze[1],st=ie.useCallback(function(bt,Bt){Ie(bt),ht(Bt)},[]);return[Re,ot,st]}var zt=lr()?window:null;function ln(Ee,we){var Re=(0,Ce.Z)(Ee)==="object"?Ee:{},Ie=Re.offsetHeader,je=Ie===void 0?0:Ie,Ze=Re.offsetSummary,ot=Ze===void 0?0:Ze,ht=Re.offsetScroll,st=ht===void 0?0:ht,bt=Re.getContainer,Bt=bt===void 0?function(){return zt}:bt,xt=Bt()||zt;return ie.useMemo(function(){var qt=!!Ee;return{isSticky:qt,stickyClassName:qt?"".concat(we,"-sticky-holder"):"",offsetHeader:je,offsetSummary:ot,offsetScroll:st,container:xt}},[st,je,ot,we,xt])}function gn(Ee,we,Re){var Ie=(0,ie.useMemo)(function(){for(var je=[],Ze=[],ot=0,ht=0,st=0;st<we;st+=1)if(Re==="rtl"){Ze[st]=ht,ht+=Ee[st]||0;var bt=we-st-1;je[bt]=ot,ot+=Ee[bt]||0}else{je[st]=ot,ot+=Ee[st]||0;var Bt=we-st-1;Ze[Bt]=ht,ht+=Ee[Bt]||0}return{left:je,right:Ze}},[Ee,we,Re]);return Ie}var Lt=gn;function Ut(Ee){var we=Ee.className,Re=Ee.children;return ie.createElement("div",{className:we},Re)}var Rt=Ut;function Pn(Ee,we,Re,Ie){var je=de.unstable_batchedUpdates?function(ot){de.unstable_batchedUpdates(Re,ot)}:Re;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(we,je,Ie),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(we,je,Ie)}}}var $n=/margin|padding|width|height|max|min|offset/,ir={left:!0,top:!0},Qn={cssFloat:1,styleFloat:1,float:1};function dr(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function br(Ee,we,Re){if(we=we.toLowerCase(),Re==="auto"){if(we==="height")return Ee.offsetHeight;if(we==="width")return Ee.offsetWidth}return we in ir||(ir[we]=$n.test(we)),ir[we]?parseFloat(Re)||0:Re}function mn(Ee,we){var Re=arguments.length,Ie=dr(Ee);return we=Qn[we]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":we,Re===1?Ie:br(Ee,we,Ie[we]||Ee.style[we])}function Dt(Ee,we,Re){var Ie=arguments.length;if(we=Qn[we]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":we,Ie===3)return typeof Re=="number"&&$n.test(we)&&(Re="".concat(Re,"px")),Ee.style[we]=Re,Re;for(var je in we)we.hasOwnProperty(je)&&Dt(Ee,je,we[je]);return dr(Ee)}function Jt(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function vn(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function Vn(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),we=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:we}}function pr(){var Ee=document.documentElement.clientWidth,we=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:we}}function Nr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ao(Ee){var we=Ee.getBoundingClientRect(),Re=document.documentElement;return{left:we.left+(window.pageXOffset||Re.scrollLeft)-(Re.clientLeft||document.body.clientLeft||0),top:we.top+(window.pageYOffset||Re.scrollTop)-(Re.clientTop||document.body.clientTop||0)}}var Tr=function(we,Re){var Ie,je,Ze=we.scrollBodyRef,ot=we.onScroll,ht=we.offsetScroll,st=we.container,bt=ce(ue,"prefixCls"),Bt=((Ie=Ze.current)===null||Ie===void 0?void 0:Ie.scrollWidth)||0,xt=((je=Ze.current)===null||je===void 0?void 0:je.clientWidth)||0,qt=Bt&&xt*(xt/Bt),Xt=ie.useRef(),sn=Et({scrollLeft:0,isHiddenScrollBar:!1}),kn=(0,be.Z)(sn,2),Mn=kn[0],Zn=kn[1],Un=ie.useRef({delta:0,x:0}),qn=ie.useState(!1),Ir=(0,be.Z)(qn,2),Qr=Ir[0],Mr=Ir[1],vo=function(){Mr(!1)},Mo=function(wr){wr.persist(),Un.current.delta=wr.pageX-Mn.scrollLeft,Un.current.x=0,Mr(!0),wr.preventDefault()},vr=function(wr){var Gr,Ao=wr||((Gr=window)===null||Gr===void 0?void 0:Gr.event),Co=Ao.buttons;if(!Qr||Co===0){Qr&&Mr(!1);return}var Zr=Un.current.x+wr.pageX-Un.current.x-Un.current.delta;Zr<=0&&(Zr=0),Zr+qt>=xt&&(Zr=xt-qt),ot({scrollLeft:Zr/xt*(Bt+2)}),Un.current.x=wr.pageX},Rr=function(){if(Ze.current){var wr=ao(Ze.current).top,Gr=wr+Ze.current.offsetHeight,Ao=st===window?document.documentElement.scrollTop+window.innerHeight:ao(st).top+st.clientHeight;Gr-Pe()<=Ao||wr>=Ao-ht?Zn(function(Co){return(0,Be.Z)((0,Be.Z)({},Co),{},{isHiddenScrollBar:!0})}):Zn(function(Co){return(0,Be.Z)((0,Be.Z)({},Co),{},{isHiddenScrollBar:!1})})}},hr=function(wr){Zn(function(Gr){return(0,Be.Z)((0,Be.Z)({},Gr),{},{scrollLeft:wr/Bt*xt||0})})};return ie.useImperativeHandle(Re,function(){return{setScrollLeft:hr}}),ie.useEffect(function(){var er=Pn(document.body,"mouseup",vo,!1),wr=Pn(document.body,"mousemove",vr,!1);return Rr(),function(){er.remove(),wr.remove()}},[qt,Qr]),ie.useEffect(function(){var er=Pn(st,"scroll",Rr,!1),wr=Pn(window,"resize",Rr,!1);return function(){er.remove(),wr.remove()}},[st]),ie.useEffect(function(){Mn.isHiddenScrollBar||Zn(function(er){var wr=Ze.current;return wr?(0,Be.Z)((0,Be.Z)({},er),{},{scrollLeft:wr.scrollLeft/wr.scrollWidth*wr.clientWidth}):er})},[Mn.isHiddenScrollBar]),Bt<=xt||!qt||Mn.isHiddenScrollBar?null:ie.createElement("div",{style:{height:Pe(),width:xt,bottom:ht},className:"".concat(bt,"-sticky-scroll")},ie.createElement("div",{onMouseDown:Mo,ref:Xt,className:Qe()("".concat(bt,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(bt,"-sticky-scroll-bar-active"),Qr)),style:{width:"".concat(qt,"px"),transform:"translate3d(".concat(Mn.scrollLeft,"px, 0, 0)")}}))},$e=ie.forwardRef(Tr);function ke(Ee){return null}var et=ke;function At(Ee){return null}var kt=At,Zt="rc-table",Sn=[],wn={};function Fn(){return"No Data"}function On(Ee){var we,Re=(0,Be.Z)({rowKey:"key",prefixCls:Zt,emptyText:Fn},Ee),Ie=Re.prefixCls,je=Re.className,Ze=Re.rowClassName,ot=Re.style,ht=Re.data,st=Re.rowKey,bt=Re.scroll,Bt=Re.tableLayout,xt=Re.direction,qt=Re.title,Xt=Re.footer,sn=Re.summary,kn=Re.caption,Mn=Re.id,Zn=Re.showHeader,Un=Re.components,qn=Re.emptyText,Ir=Re.onRow,Qr=Re.onHeaderRow,Mr=Re.internalHooks,vo=Re.transformColumns,Mo=Re.internalRefs,vr=Re.tailor,Rr=Re.sticky,hr=ht||Sn,er=!!hr.length,wr=Mr===ge,Gr=ie.useCallback(function(ia,Na){return Vt(Un,ia)||Na},[Un]),Ao=ie.useMemo(function(){return typeof st=="function"?st:function(ia){var Na=ia&&ia[st];return Na}},[st]),Co=Gr(["body"]),Zr=Ue(),Io=(0,be.Z)(Zr,3),Yo=Io[0],ki=Io[1],hi=Io[2],Ea=Di(Re,hr,Ao),Ca=(0,be.Z)(Ea,6),Do=Ca[0],Ba=Ca[1],Kn=Ca[2],ro=Ca[3],Go=Ca[4],ra=Ca[5],_r=bt==null?void 0:bt.x,oo=ie.useState(0),io=(0,be.Z)(oo,2),Wr=io[0],_i=io[1],to=uo((0,Be.Z)((0,Be.Z)((0,Be.Z)({},Re),Do),{},{expandable:!!Do.expandedRowRender,columnTitle:Do.columnTitle,expandedKeys:Kn,getRowKey:Ao,onTriggerExpand:ra,expandIcon:ro,expandIconColumnIndex:Do.expandIconColumnIndex,direction:xt,scrollWidth:wr&&vr&&typeof _r=="number"?_r:null}),wr?vo:null),jo=(0,be.Z)(to,3),Ti=jo[0],Ci=jo[1],ps=jo[2],cs=ps!=null?ps:_r,Ys=ie.useMemo(function(){return{columns:Ti,flattenColumns:Ci}},[Ti,Ci]),Va=ie.useRef(),Zs=ie.useRef(),Ya=ie.useRef(),ws=ie.useRef(),ll=ie.useRef(),Ji=ie.useState(!1),oa=(0,be.Z)(Ji,2),Fa=oa[0],Ja=oa[1],qa=ie.useState(!1),mi=(0,be.Z)(qa,2),_s=mi[0],vs=mi[1],Bs=Et(new Map),Qs=(0,be.Z)(Bs,2),Xs=Qs[0],dl=Qs[1],rl=In(Ci),Ws=rl.map(function(ia){return Xs.get(ia)}),Ls=ie.useMemo(function(){return Ws},[Ws.join("_")]),Ps=Lt(Ls,Ci.length,xt),es=bt&&or(bt.y),ka=bt&&or(cs)||!!Do.fixed,Js=ka&&Ci.some(function(ia){var Na=ia.fixed;return Na}),cl=ie.useRef(),il=ln(Rr,Ie),qs=il.isSticky,gl=il.offsetHeader,pl=il.offsetSummary,Oi=il.offsetScroll,wa=il.stickyClassName,fs=il.container,ja=ie.useMemo(function(){return sn==null?void 0:sn(hr)},[sn,hr]),Ss=(es||qs)&&ie.isValidElement(ja)&&ja.type===Nn&&ja.props.fixed,xs,Ms,ol;es&&(Ms={overflowY:"scroll",maxHeight:bt.y}),ka&&(xs={overflowX:"auto"},es||(Ms={overflowY:"hidden"}),ol={width:cs===!0?"auto":cs,minWidth:"100%"});var wl=ie.useCallback(function(ia,Na){Xr(Va.current)&&dl(function(Ks){if(Ks.get(ia)!==Na){var al=new Map(Ks);return al.set(ia,Na),al}return Ks})},[]),$l=jt(null),Ll=(0,be.Z)($l,2),Gl=Ll[0],xl=Ll[1];function fl(ia,Na){Na&&(typeof Na=="function"?Na(ia):Na.scrollLeft!==ia&&(Na.scrollLeft=ia,Na.scrollLeft!==ia&&setTimeout(function(){Na.scrollLeft=ia},0)))}var ul=jn(function(ia){var Na=ia.currentTarget,Ks=ia.scrollLeft,al=xt==="rtl",sl=typeof Ks=="number"?Ks:Na.scrollLeft,Hl=Na||wn;if(!xl()||xl()===Hl){var Pl;Gl(Hl),fl(sl,Zs.current),fl(sl,Ya.current),fl(sl,ll.current),fl(sl,(Pl=cl.current)===null||Pl===void 0?void 0:Pl.setScrollLeft)}var bl=Na||Zs.current;if(bl){var El=bl.scrollWidth,Cl=bl.clientWidth;if(El===Cl){Ja(!1),vs(!1);return}al?(Ja(-sl<El-Cl),vs(-sl>0)):(Ja(sl>0),vs(sl<El-Cl))}}),Ml=function(){ka&&Ya.current?ul({currentTarget:Ya.current}):(Ja(!1),vs(!1))},Zl=function(Na){var Ks=Na.width;Ks!==Wr&&(Ml(),_i(Va.current?Va.current.offsetWidth:Ks))},Al=ie.useRef(!1);ie.useEffect(function(){Al.current&&Ml()},[ka,ht,Ti.length]),ie.useEffect(function(){Al.current=!0},[]);var Wl=ie.useState(0),Dl=(0,be.Z)(Wl,2),hl=Dl[0],Rl=Dl[1],Kl=ie.useState(!0),Nl=(0,be.Z)(Kl,2),Tl=Nl[0],Vl=Nl[1];ie.useEffect(function(){(!vr||!wr)&&(Ya.current instanceof Element?Rl(Ne(Ya.current).width):Rl(Ne(ws.current).width)),Vl(he("position","sticky"))},[]),ie.useEffect(function(){wr&&Mo&&(Mo.body.current=Ya.current)});var Yl=ie.useCallback(function(ia){return ie.createElement(ie.Fragment,null,ie.createElement(Da,ia),Ss==="top"&&ie.createElement(Qt,ia,ja))},[Ss,ja]),Xl=ie.useCallback(function(ia){return ie.createElement(Qt,ia,ja)},[ja]),Ol=Gr(["table"],"table"),ml=ie.useMemo(function(){return Bt||(Js?cs==="max-content"?"auto":"fixed":es||qs||Ci.some(function(ia){var Na=ia.ellipsis;return Na})?"fixed":"auto")},[es,Js,Ci,Bt,qs]),vl,Sl={colWidths:Ls,columCount:Ci.length,stickyOffsets:Ps,onHeaderRow:Qr,fixHeader:es,scroll:bt},Il=ie.useMemo(function(){return er?null:typeof qn=="function"?qn():qn},[er,qn]),Bl=ie.createElement(yo,{data:hr,measureColumnWidth:es||ka||qs}),Fl=ie.createElement(Ui,{colWidths:Ci.map(function(ia){var Na=ia.width;return Na}),columns:Ci}),kl=kn!=null?ie.createElement("caption",{className:"".concat(Ie,"-caption")},kn):void 0,Ql=Lr(Re,{data:!0}),jl=Lr(Re,{aria:!0});if(es||qs){var yl;typeof Co=="function"?(yl=Co(hr,{scrollbarSize:hl,ref:Ya,onScroll:ul}),Sl.colWidths=Ci.map(function(ia,Na){var Ks=ia.width,al=Na===Ci.length-1?Ks-hl:Ks;return typeof al=="number"&&!Number.isNaN(al)?al:0})):yl=ie.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},xs),Ms),onScroll:ul,ref:Ya,className:Qe()("".concat(Ie,"-body"))},ie.createElement(Ol,(0,se.Z)({style:(0,Be.Z)((0,Be.Z)({},ol),{},{tableLayout:ml})},jl),kl,Fl,Bl,!Ss&&ja&&ie.createElement(Qt,{stickyOffsets:Ps,flattenColumns:Ci,columns:Ti},ja)));var zl=(0,Be.Z)((0,Be.Z)((0,Be.Z)({noData:!hr.length,maxContentScroll:ka&&cs==="max-content"},Sl),Ys),{},{direction:xt,stickyClassName:wa,onScroll:ul});vl=ie.createElement(ie.Fragment,null,Zn!==!1&&ie.createElement(Hr,(0,se.Z)({},zl,{stickyTopOffset:gl,className:"".concat(Ie,"-header"),ref:Zs}),Yl),yl,Ss&&Ss!=="top"&&ie.createElement(Hr,(0,se.Z)({},zl,{stickyBottomOffset:pl,className:"".concat(Ie,"-summary"),ref:ll}),Xl),qs&&ie.createElement($e,{ref:cl,offsetScroll:Oi,scrollBodyRef:Ya,onScroll:ul,container:fs}))}else vl=ie.createElement("div",{style:(0,Be.Z)((0,Be.Z)({},xs),Ms),className:Qe()("".concat(Ie,"-content")),onScroll:ul,ref:Ya},ie.createElement(Ol,(0,se.Z)({style:(0,Be.Z)((0,Be.Z)({},ol),{},{tableLayout:ml})},jl),kl,Fl,Zn!==!1&&ie.createElement(Da,(0,se.Z)({},Sl,Ys)),Bl,ja&&ie.createElement(Qt,{stickyOffsets:Ps,flattenColumns:Ci,columns:Ti},ja)));var _l=ie.createElement("div",(0,se.Z)({className:Qe()(Ie,je,(we={},(0,Me.Z)(we,"".concat(Ie,"-rtl"),xt==="rtl"),(0,Me.Z)(we,"".concat(Ie,"-ping-left"),Fa),(0,Me.Z)(we,"".concat(Ie,"-ping-right"),_s),(0,Me.Z)(we,"".concat(Ie,"-layout-fixed"),Bt==="fixed"),(0,Me.Z)(we,"".concat(Ie,"-fixed-header"),es),(0,Me.Z)(we,"".concat(Ie,"-fixed-column"),Js),(0,Me.Z)(we,"".concat(Ie,"-scroll-horizontal"),ka),(0,Me.Z)(we,"".concat(Ie,"-has-fix-left"),Ci[0]&&Ci[0].fixed),(0,Me.Z)(we,"".concat(Ie,"-has-fix-right"),Ci[Ci.length-1]&&Ci[Ci.length-1].fixed==="right"),we)),style:ot,id:Mn,ref:Va},Ql),qt&&ie.createElement(Rt,{className:"".concat(Ie,"-title")},qt(hr)),ie.createElement("div",{ref:ws,className:"".concat(Ie,"-container")},vl),Xt&&ie.createElement(Rt,{className:"".concat(Ie,"-footer")},Xt(hr)));ka&&(_l=ie.createElement(Bo.Z,{onResize:Zl},_l));var Ul=_t(Ci,Ps,xt,Ti),Jl=ie.useMemo(function(){return{scrollX:cs,prefixCls:Ie,getComponent:Gr,scrollbarSize:hl,direction:xt,fixedInfoList:Ul,isSticky:qs,supportSticky:Tl,componentWidth:Wr,fixHeader:es,fixColumn:Js,horizonScroll:ka,tableLayout:ml,rowClassName:Ze,expandedRowClassName:Do.expandedRowClassName,expandIcon:ro,expandableType:Ba,expandRowByClick:Do.expandRowByClick,expandedRowRender:Do.expandedRowRender,onTriggerExpand:ra,expandIconColumnIndex:Do.expandIconColumnIndex,indentSize:Do.indentSize,allColumnsFixedLeft:Ci.every(function(ia){return ia.fixed==="left"}),emptyNode:Il,columns:Ti,flattenColumns:Ci,onColumnResize:wl,hoverStartRow:Yo,hoverEndRow:ki,onHover:hi,rowExpandable:Do.rowExpandable,onRow:Ir,getRowKey:Ao,expandedKeys:Kn,childrenColumnName:Go}},[cs,Ie,Gr,hl,xt,Ul,qs,Tl,Wr,es,Js,ka,ml,Ze,Do.expandedRowClassName,ro,Ba,Do.expandRowByClick,Do.expandedRowRender,ra,Do.expandIconColumnIndex,Do.indentSize,Il,Ti,Ci,wl,Yo,ki,hi,Do.rowExpandable,Ir,Ao,Kn,Go]);return ie.createElement(ue.Provider,{value:Jl},_l)}function Wn(Ee){return x(On,Ee)}var gr=Wn();gr.EXPAND_COLUMN=z,gr.INTERNAL_HOOKS=ge,gr.Column=et,gr.ColumnGroup=kt,gr.Summary=hn;var so=gr,co=ee(73299),Jr=le(null),po=le(null);function Ro(Ee,we,Re){var Ie=we||1;return Re[Ee+Ie]-(Re[Ee]||0)}function Fo(Ee){var we=Ee.rowInfo,Re=Ee.column,Ie=Ee.colIndex,je=Ee.indent,Ze=Ee.index,ot=Ee.renderIndex,ht=Ee.record,st=Ee.style,bt=Ee.className,Bt=Ee.inverse,xt=Ee.getHeight,qt=Re.render,Xt=Re.dataIndex,sn=Re.className,kn=Re.width,Mn=ce(po,["columnsOffset"]),Zn=Mn.columnsOffset,Un=tr(we,Re,Ie,je,Ze),qn=Un.key,Ir=Un.fixedInfo,Qr=Un.appendCellNode,Mr=Un.additionalCellProps,vo=Mr.style,Mo=Mr.colSpan,vr=Mo===void 0?1:Mo,Rr=Mr.rowSpan,hr=Rr===void 0?1:Rr,er=Ie-1,wr=Ro(er,vr,Zn),Gr=vr>1?kn-wr:0,Ao=(0,Be.Z)((0,Be.Z)((0,Be.Z)({},vo),st),{},{flex:"0 0 ".concat(wr,"px"),width:"".concat(wr,"px"),marginRight:Gr,pointerEvents:"auto"}),Co=ie.useMemo(function(){return Bt?hr<=1:vr===0||hr===0||hr>1},[hr,vr,Bt]);Co?Ao.visibility="hidden":Bt&&(Ao.height=xt==null?void 0:xt(hr));var Zr=Co?function(){return null}:qt,Io={};return(hr===0||vr===0)&&(Io.rowSpan=1,Io.colSpan=1),ie.createElement(Wt,(0,se.Z)({className:Qe()(sn,bt),ellipsis:Re.ellipsis,align:Re.align,scope:Re.rowScope,component:"div",prefixCls:we.prefixCls,key:qn,record:ht,index:Ze,renderIndex:ot,dataIndex:Xt,render:Zr,shouldCellUpdate:Re.shouldCellUpdate},Ir,{appendNode:Qr,additionalProps:(0,Be.Z)((0,Be.Z)({},Mr),{},{style:Ao},Io)}))}var zr=Fo,Zo=["data","index","className","rowKey","style","extra","getHeight"],ho=ie.forwardRef(function(Ee,we){var Re=Ee.data,Ie=Ee.index,je=Ee.className,Ze=Ee.rowKey,ot=Ee.style,ht=Ee.extra,st=Ee.getHeight,bt=(0,cn.Z)(Ee,Zo),Bt=Re.record,xt=Re.indent,qt=Re.index,Xt=ce(ue,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),sn=Xt.scrollX,kn=Xt.flattenColumns,Mn=Xt.prefixCls,Zn=Xt.fixColumn,Un=Xt.componentWidth,qn=Hn(Bt,Ze,Ie,xt),Ir=qn.rowSupportExpand,Qr=qn.expanded,Mr=qn.rowProps,vo=qn.expandedRowRender,Mo=qn.expandedRowClassName,vr;if(Ir&&Qr){var Rr=vo(Bt,Ie,xt+1,Qr),hr=Mo==null?void 0:Mo(Bt,Ie,xt),er={};Zn&&(er={style:(0,Me.Z)({},"--virtual-width","".concat(Un,"px"))});var wr="".concat(Mn,"-expanded-row-cell");vr=ie.createElement("div",{className:Qe()("".concat(Mn,"-expanded-row"),"".concat(Mn,"-expanded-row-level-").concat(xt+1),hr)},ie.createElement(Wt,{component:"div",prefixCls:Mn,className:Qe()(wr,(0,Me.Z)({},"".concat(wr,"-fixed"),Zn)),additionalProps:er},Rr))}var Gr=(0,Be.Z)((0,Be.Z)({},ot),{},{width:sn});ht&&(Gr.position="absolute",Gr.pointerEvents="none");var Ao=ie.createElement("div",(0,se.Z)({},Mr,bt,{ref:Ir?null:we,className:Qe()(je,"".concat(Mn,"-row"),Mr==null?void 0:Mr.className,(0,Me.Z)({},"".concat(Mn,"-row-extra"),ht)),style:(0,Be.Z)((0,Be.Z)({},Gr),Mr==null?void 0:Mr.style)}),kn.map(function(Co,Zr){return ie.createElement(zr,{key:Zr,rowInfo:qn,column:Co,colIndex:Zr,indent:xt,index:Ie,renderIndex:qt,record:Bt,inverse:ht,getHeight:st})}));return Ir?ie.createElement("div",{ref:we},Ao,vr):Ao}),qo=te(ho),wi=qo,ya=ie.forwardRef(function(Ee,we){var Re=Ee.data,Ie=Ee.onScroll,je=ce(ue,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ze=je.flattenColumns,ot=je.onColumnResize,ht=je.getRowKey,st=je.expandedKeys,bt=je.prefixCls,Bt=je.childrenColumnName,xt=je.emptyNode,qt=je.scrollX,Xt=ce(Jr),sn=Xt.scrollY,kn=Xt.listItemHeight,Mn=ie.useRef(),Zn=cr(Re,Bt,st,ht),Un=ie.useMemo(function(){var vr=0;return Ze.map(function(Rr){var hr=Rr.width,er=Rr.key;return vr+=hr,[er,hr,vr]})},[Ze]),qn=ie.useMemo(function(){return Un.map(function(vr){return vr[2]})},[Un]);ie.useEffect(function(){Un.forEach(function(vr){var Rr=(0,be.Z)(vr,2),hr=Rr[0],er=Rr[1];ot(hr,er)})},[Un]),ie.useImperativeHandle(we,function(){var vr={};return Object.defineProperty(vr,"scrollLeft",{get:function(){var hr;return((hr=Mn.current)===null||hr===void 0?void 0:hr.getScrollInfo().x)||0},set:function(hr){var er;(er=Mn.current)===null||er===void 0||er.scrollTo({left:hr})}}),vr});var Ir=function(Rr,hr){var er,wr=(er=Zn[hr])===null||er===void 0?void 0:er.record,Gr=Rr.onCell;if(Gr){var Ao,Co=Gr(wr,hr);return(Ao=Co==null?void 0:Co.rowSpan)!==null&&Ao!==void 0?Ao:1}return 1},Qr=function(Rr){var hr=Rr.start,er=Rr.end,wr=Rr.getSize,Gr=Rr.offsetY;if(er<0)return null;for(var Ao=Ze.filter(function(_r){return Ir(_r,hr)===0}),Co=hr,Zr=function(oo){if(Ao=Ao.filter(function(io){return Ir(io,oo)===0}),!Ao.length)return Co=oo,"break"},Io=hr;Io>=0;Io-=1){var Yo=Zr(Io);if(Yo==="break")break}for(var ki=Ze.filter(function(_r){return Ir(_r,er)!==1}),hi=er,Ea=function(oo){if(ki=ki.filter(function(io){return Ir(io,oo)!==1}),!ki.length)return hi=Math.max(oo-1,er),"break"},Ca=er;Ca<Zn.length;Ca+=1){var Do=Ea(Ca);if(Do==="break")break}for(var Ba=[],Kn=function(oo){var io=Zn[oo];if(!io)return"continue";Ze.some(function(Wr){return Ir(Wr,oo)>1})&&Ba.push(oo)},ro=Co;ro<=hi;ro+=1)var Go=Kn(ro);var ra=Ba.map(function(_r){var oo=Zn[_r],io=ht(oo.record,_r),Wr=function(jo){var Ti=_r+jo-1,Ci=ht(Zn[Ti].record,Ti),ps=wr(io,Ci);return ps.bottom-ps.top},_i=wr(io);return ie.createElement(wi,{key:_r,data:oo,rowKey:io,index:_r,style:{top:-Gr+_i.top},extra:!0,getHeight:Wr})});return ra},Mr=ie.useMemo(function(){return{columnsOffset:qn}},[qn]),vo="".concat(bt,"-tbody"),Mo;return Zn.length?Mo=ie.createElement(co.Z,{fullHeight:!1,ref:Mn,className:Qe()(vo,"".concat(vo,"-virtual")),height:sn,itemHeight:kn||24,data:Zn,itemKey:function(Rr){return ht(Rr.record)},scrollWidth:qt,onVirtualScroll:function(Rr){var hr=Rr.x;Ie({scrollLeft:hr})},extraRender:Qr},function(vr,Rr,hr){var er=ht(vr.record,Rr);return ie.createElement(wi,(0,se.Z)({data:vr,rowKey:er,index:Rr},hr))}):Mo=ie.createElement("div",{className:Qe()("".concat(bt,"-placeholder"))},ie.createElement(Wt,{component:"div",prefixCls:bt},xt)),ie.createElement(po.Provider,{value:Mr},Mo)}),ei=te(ya),ca=ei,Hi=function(we,Re){var Ie=Re.ref,je=Re.onScroll;return ie.createElement(ca,{ref:Ie,data:we,onScroll:je})},_a=100;function Xo(Ee){var we=Ee.columns,Re=Ee.scroll,Ie=Ee.prefixCls,je=Ie===void 0?Zt:Ie,Ze=Ee.className,ot=Ee.listItemHeight,ht=Re||{},st=ht.x,bt=ht.y;typeof st!="number"&&(st=((we||[]).length+1)*_a),typeof bt!="number"&&(bt=500);var Bt=ie.useMemo(function(){return{scrollY:bt,listItemHeight:ot}},[bt,ot]);return ie.createElement(Jr.Provider,{value:Bt},ie.createElement(so,(0,se.Z)({},Ee,{className:Qe()(Ze,"".concat(je,"-virtual")),scroll:(0,Be.Z)((0,Be.Z)({},Re),{},{x:st}),components:{body:Hi},columns:we,internalHooks:ge,tailor:!0})))}function zo(Ee){return x(Xo,Ee)}var Si=zo(),xa=null;function za(Ee){return null}var Qo=za;function ea(Ee){return null}var ua=ea,Or=ee(10366),fa=ee(58375),ha=ee(53124),ma=ee(88258),aa=ee(98675),Ta=ee(25378),da=ee(24457),pa=ee(28452),$a=ee(57953),rs=ee(46605);function Xi(Ee){return function(Re){let{prefixCls:Ie,onExpand:je,record:Ze,expanded:ot,expandable:ht}=Re;const st=`${Ie}-row-expand-icon`;return ie.createElement("button",{type:"button",onClick:bt=>{je(Ze,bt),bt.stopPropagation()},className:Qe()(st,{[`${st}-spaced`]:!ht,[`${st}-expanded`]:ht&&ot,[`${st}-collapsed`]:ht&&!ot}),"aria-label":ot?Ee.collapse:Ee.expand,"aria-expanded":ot})}}var ga=Xi;function Pa(Ee,we){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:we}function as(Ee,we){return we?`${we}-${Ee}`:`${Ee}`}function As(Ee,we){return typeof Ee=="function"?Ee(we):Ee}function Ds(Ee,we){const Re=As(Ee,we);return Object.prototype.toString.call(Re)==="[object Object]"?"":Re}var Fs={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"},hs=Fs,ts=ee(74643),ns=function(we,Re){return ie.createElement(ts.Z,(0,se.Z)({},we,{ref:Re,icon:hs}))},ms=ie.forwardRef(ns),bs=ee(7699),el=ee(57838);function tl(Ee){const we=ie.useRef(Ee),Re=(0,el.Z)();return[()=>we.current,Ie=>{we.current=Ie,Re()}]}var Rs=ee(71577),Hs=ee(84567),nl=ee(85418),ks=ee(32983),Ns=ee(68508),js=ee(76529),$s=ee(78045),Vs=ee(79870),Oe=ee(72395),Xe=ee(69677);function Ye(Ee){let{value:we,onChange:Re,filterSearch:Ie,tablePrefixCls:je,locale:Ze}=Ee;return Ie?ie.createElement("div",{className:`${je}-filter-dropdown-search`},ie.createElement(Xe.default,{prefix:ie.createElement(Oe.Z,null),placeholder:Ze.filterSearchPlaceholder,onChange:Re,value:we,htmlSize:1,className:`${je}-filter-dropdown-search-input`})):null}var vt=Ye,It=ee(92389);const rn=Ee=>{const{keyCode:we}=Ee;we===It.Z.ENTER&&Ee.stopPropagation()};var An=ie.forwardRef((Ee,we)=>ie.createElement("div",{className:Ee.className,onClick:Re=>Re.stopPropagation(),onKeyDown:rn,ref:we},Ee.children));function un(Ee){let we=[];return(Ee||[]).forEach(Re=>{let{value:Ie,children:je}=Re;we.push(Ie),je&&(we=[].concat((0,Vo.Z)(we),(0,Vo.Z)(un(je))))}),we}function Jn(Ee){return Ee.some(we=>{let{children:Re}=we;return Re})}function Cr(Ee,we){return typeof we=="string"||typeof we=="number"?we==null?void 0:we.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function Yn(Ee){let{filters:we,prefixCls:Re,filteredKeys:Ie,filterMultiple:je,searchValue:Ze,filterSearch:ot}=Ee;return we.map((ht,st)=>{const bt=String(ht.value);if(ht.children)return{key:bt||st,label:ht.text,popupClassName:`${Re}-dropdown-submenu`,children:Yn({filters:ht.children,prefixCls:Re,filteredKeys:Ie,filterMultiple:je,searchValue:Ze,filterSearch:ot})};const Bt=je?Hs.default:$s.ZP,xt={key:ht.value!==void 0?bt:st,label:ie.createElement(ie.Fragment,null,ie.createElement(Bt,{checked:Ie.includes(bt)}),ie.createElement("span",null,ht.text))};return Ze.trim()?typeof ot=="function"?ot(Ze,ht)?xt:null:Cr(Ze,ht.text)?xt:null:xt})}function Br(Ee){var we,Re;const{tablePrefixCls:Ie,prefixCls:je,column:Ze,dropdownPrefixCls:ot,columnKey:ht,filterMultiple:st,filterMode:bt="menu",filterSearch:Bt=!1,filterState:xt,triggerFilter:qt,locale:Xt,children:sn,getPopupContainer:kn}=Ee,{filterDropdownOpen:Mn,onFilterDropdownOpenChange:Zn,filterResetToDefaultFilteredValue:Un,defaultFilteredValue:qn,filterDropdownVisible:Ir,onFilterDropdownVisibleChange:Qr}=Ze,[Mr,vo]=ie.useState(!1),Mo=!!(xt&&(!((we=xt.filteredKeys)===null||we===void 0)&&we.length||xt.forceFiltered)),vr=to=>{vo(to),Zn==null||Zn(to),Qr==null||Qr(to)},Rr=(Re=Mn!=null?Mn:Ir)!==null&&Re!==void 0?Re:Mr,hr=xt==null?void 0:xt.filteredKeys,[er,wr]=tl(hr||[]),Gr=to=>{let{selectedKeys:jo}=to;wr(jo)},Ao=(to,jo)=>{let{node:Ti,checked:Ci}=jo;Gr(st?{selectedKeys:to}:{selectedKeys:Ci&&Ti.key?[Ti.key]:[]})};ie.useEffect(()=>{Mr&&Gr({selectedKeys:hr||[]})},[hr]);const[Co,Zr]=ie.useState([]),Io=to=>{Zr(to)},[Yo,ki]=ie.useState(""),hi=to=>{const{value:jo}=to.target;ki(jo)};ie.useEffect(()=>{Mr||ki("")},[Mr]);const Ea=to=>{const jo=to&&to.length?to:null;if(jo===null&&(!xt||!xt.filteredKeys)||(0,bs.Z)(jo,xt==null?void 0:xt.filteredKeys,!0))return null;qt({column:Ze,key:ht,filteredKeys:jo})},Ca=()=>{vr(!1),Ea(er())},Do=function(){let{confirm:to,closeDropdown:jo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};to&&Ea([]),jo&&vr(!1),ki(""),wr(Un?(qn||[]).map(Ti=>String(Ti)):[])},Ba=function(){let{closeDropdown:to}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};to&&vr(!1),Ea(er())},Kn=to=>{to&&hr!==void 0&&wr(hr||[]),vr(to),!to&&!Ze.filterDropdown&&Ca()},ro=Qe()({[`${ot}-menu-without-submenu`]:!Jn(Ze.filters||[])}),Go=to=>{if(to.target.checked){const jo=un(Ze==null?void 0:Ze.filters).map(Ti=>String(Ti));wr(jo)}else wr([])},ra=to=>{let{filters:jo}=to;return(jo||[]).map((Ti,Ci)=>{const ps=String(Ti.value),cs={title:Ti.text,key:Ti.value!==void 0?ps:Ci};return Ti.children&&(cs.children=ra({filters:Ti.children})),cs})},_r=to=>{var jo;return Object.assign(Object.assign({},to),{text:to.title,value:to.key,children:((jo=to.children)===null||jo===void 0?void 0:jo.map(Ti=>_r(Ti)))||[]})};let oo;if(typeof Ze.filterDropdown=="function")oo=Ze.filterDropdown({prefixCls:`${ot}-custom`,setSelectedKeys:to=>Gr({selectedKeys:to}),selectedKeys:er(),confirm:Ba,clearFilters:Do,filters:Ze.filters,visible:Rr,close:()=>{vr(!1)}});else if(Ze.filterDropdown)oo=Ze.filterDropdown;else{const to=er()||[],jo=()=>(Ze.filters||[]).length===0?ie.createElement(ks.Z,{image:ks.Z.PRESENTED_IMAGE_SIMPLE,description:Xt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):bt==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(vt,{filterSearch:Bt,value:Yo,onChange:hi,tablePrefixCls:Ie,locale:Xt}),ie.createElement("div",{className:`${Ie}-filter-dropdown-tree`},st?ie.createElement(Hs.default,{checked:to.length===un(Ze.filters).length,indeterminate:to.length>0&&to.length<un(Ze.filters).length,className:`${Ie}-filter-dropdown-checkall`,onChange:Go},Xt.filterCheckall):null,ie.createElement(Vs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:st,checkStrictly:!st,className:`${ot}-menu`,onCheck:Ao,checkedKeys:to,selectedKeys:to,showIcon:!1,treeData:ra({filters:Ze.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Yo.trim()?Ci=>typeof Bt=="function"?Bt(Yo,_r(Ci)):Cr(Yo,Ci.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(vt,{filterSearch:Bt,value:Yo,onChange:hi,tablePrefixCls:Ie,locale:Xt}),ie.createElement(Ns.default,{selectable:!0,multiple:st,prefixCls:`${ot}-menu`,className:ro,onSelect:Gr,onDeselect:Gr,selectedKeys:to,getPopupContainer:kn,openKeys:Co,onOpenChange:Io,items:Yn({filters:Ze.filters||[],filterSearch:Bt,prefixCls:je,filteredKeys:er(),filterMultiple:st,searchValue:Yo})})),Ti=()=>Un?(0,bs.Z)((qn||[]).map(Ci=>String(Ci)),to,!0):to.length===0;oo=ie.createElement(ie.Fragment,null,jo(),ie.createElement("div",{className:`${je}-dropdown-btns`},ie.createElement(Rs.ZP,{type:"link",size:"small",disabled:Ti(),onClick:()=>Do()},Xt.filterReset),ie.createElement(Rs.ZP,{type:"primary",size:"small",onClick:Ca},Xt.filterConfirm)))}Ze.filterDropdown&&(oo=ie.createElement(js.J,{selectable:void 0},oo));const io=()=>ie.createElement(An,{className:`${je}-dropdown`},oo);let Wr;typeof Ze.filterIcon=="function"?Wr=Ze.filterIcon(Mo):Ze.filterIcon?Wr=Ze.filterIcon:Wr=ie.createElement(ms,null);const{direction:_i}=ie.useContext(ha.E_);return ie.createElement("div",{className:`${je}-column`},ie.createElement("span",{className:`${Ie}-column-title`},sn),ie.createElement(nl.Z,{dropdownRender:io,trigger:["click"],open:Rr,onOpenChange:Kn,getPopupContainer:kn,placement:_i==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Qe()(`${je}-trigger`,{active:Mo}),onClick:to=>{to.stopPropagation()}},Wr)))}var Sr=Br;function no(Ee,we,Re){let Ie=[];return(Ee||[]).forEach((je,Ze)=>{var ot;const ht=as(Ze,Re);if(je.filters||"filterDropdown"in je||"onFilter"in je)if("filteredValue"in je){let st=je.filteredValue;"filterDropdown"in je||(st=(ot=st==null?void 0:st.map(String))!==null&&ot!==void 0?ot:st),Ie.push({column:je,key:Pa(je,ht),filteredKeys:st,forceFiltered:je.filtered})}else Ie.push({column:je,key:Pa(je,ht),filteredKeys:we&&je.defaultFilteredValue?je.defaultFilteredValue:void 0,forceFiltered:je.filtered});"children"in je&&(Ie=[].concat((0,Vo.Z)(Ie),(0,Vo.Z)(no(je.children,we,ht))))}),Ie}function ri(Ee,we,Re,Ie,je,Ze,ot,ht){return Re.map((st,bt)=>{const Bt=as(bt,ht),{filterMultiple:xt=!0,filterMode:qt,filterSearch:Xt}=st;let sn=st;if(sn.filters||sn.filterDropdown){const kn=Pa(sn,Bt),Mn=Ie.find(Zn=>{let{key:Un}=Zn;return kn===Un});sn=Object.assign(Object.assign({},sn),{title:Zn=>ie.createElement(Sr,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:we,column:sn,columnKey:kn,filterState:Mn,filterMultiple:xt,filterMode:qt,filterSearch:Xt,triggerFilter:Ze,locale:je,getPopupContainer:ot},As(st.title,Zn))})}return"children"in sn&&(sn=Object.assign(Object.assign({},sn),{children:ri(Ee,we,sn.children,Ie,je,Ze,ot,Bt)})),sn})}function Uo(Ee){const we={};return Ee.forEach(Re=>{let{key:Ie,filteredKeys:je,column:Ze}=Re;const{filters:ot,filterDropdown:ht}=Ze;if(ht)we[Ie]=je||null;else if(Array.isArray(je)){const st=un(ot);we[Ie]=st.filter(bt=>je.includes(String(bt)))}else we[Ie]=null}),we}function oi(Ee,we){return we.reduce((Re,Ie)=>{const{column:{onFilter:je,filters:Ze},filteredKeys:ot}=Ie;return je&&ot&&ot.length?Re.filter(ht=>ot.some(st=>{const bt=un(Ze),Bt=bt.findIndex(qt=>String(qt)===String(st)),xt=Bt!==-1?bt[Bt]:st;return je(xt,ht)})):Re},Ee)}const Wo=Ee=>Ee.flatMap(we=>"children"in we?[we].concat((0,Vo.Z)(Wo(we.children||[]))):[we]);function No(Ee){let{prefixCls:we,dropdownPrefixCls:Re,mergedColumns:Ie,onFilterChange:je,getPopupContainer:Ze,locale:ot}=Ee;const ht=ie.useMemo(()=>Wo(Ie||[]),[Ie]),[st,bt]=ie.useState(()=>no(ht,!0)),Bt=ie.useMemo(()=>{const sn=no(ht,!1);if(sn.length===0)return sn;let kn=!0,Mn=!0;if(sn.forEach(Zn=>{let{filteredKeys:Un}=Zn;Un!==void 0?kn=!1:Mn=!1}),kn){const Zn=(ht||[]).map((Un,qn)=>Pa(Un,as(qn)));return st.filter(Un=>{let{key:qn}=Un;return Zn.includes(qn)}).map(Un=>{const qn=ht[Zn.findIndex(Ir=>Ir===Un.key)];return Object.assign(Object.assign({},Un),{column:Object.assign(Object.assign({},Un.column),qn),forceFiltered:qn.filtered})})}return sn},[ht,st]),xt=ie.useMemo(()=>Uo(Bt),[Bt]),qt=sn=>{const kn=Bt.filter(Mn=>{let{key:Zn}=Mn;return Zn!==sn.key});kn.push(sn),bt(kn),je(Uo(kn),kn)};return[sn=>ri(we,Re,sn,Bt,ot,qt,Ze),Bt,xt]}var $r=No;function Ri(Ee,we,Re){const Ie=ie.useRef({});function je(Ze){if(!Ie.current||Ie.current.data!==Ee||Ie.current.childrenColumnName!==we||Ie.current.getRowKey!==Re){let ht=function(st){st.forEach((bt,Bt)=>{const xt=Re(bt,Bt);ot.set(xt,bt),bt&&typeof bt=="object"&&we in bt&&ht(bt[we]||[])})};const ot=new Map;ht(Ee),Ie.current={data:Ee,childrenColumnName:we,kvMap:ot,getRowKey:Re}}return Ie.current.kvMap.get(Ze)}return[je]}var $i=ee(38780),Gi=function(Ee,we){var Re={};for(var Ie in Ee)Object.prototype.hasOwnProperty.call(Ee,Ie)&&we.indexOf(Ie)<0&&(Re[Ie]=Ee[Ie]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ie=Object.getOwnPropertySymbols(Ee);je<Ie.length;je++)we.indexOf(Ie[je])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ie[je])&&(Re[Ie[je]]=Ee[Ie[je]]);return Re};const ba=10;function Ga(Ee,we){const Re={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(we&&typeof we=="object"?we:{}).forEach(je=>{const Ze=Ee[je];typeof Ze!="function"&&(Re[je]=Ze)}),Re}function Zi(Ee,we,Re){const Ie=Re&&typeof Re=="object"?Re:{},{total:je=0}=Ie,Ze=Gi(Ie,["total"]),[ot,ht]=(0,ie.useState)(()=>({current:"defaultCurrent"in Ze?Ze.defaultCurrent:1,pageSize:"defaultPageSize"in Ze?Ze.defaultPageSize:ba})),st=(0,$i.Z)(ot,Ze,{total:je>0?je:Ee}),bt=Math.ceil((je||Ee)/st.pageSize);st.current>bt&&(st.current=bt||1);const Bt=(qt,Xt)=>{ht({current:qt!=null?qt:1,pageSize:Xt||st.pageSize})},xt=(qt,Xt)=>{var sn;Re&&((sn=Re.onChange)===null||sn===void 0||sn.call(Re,qt,Xt)),Bt(qt,Xt),we(qt,Xt||(st==null?void 0:st.pageSize))};return Re===!1?[{},()=>{}]:[Object.assign(Object.assign({},st),{onChange:xt}),Bt]}var yi=Zi,va=ee(42922),Ma=ee(29873),ta=ee(97153),gi=ee(83898),Wi=ee(5663);const ko={},Er="SELECT_ALL",ji="SELECT_INVERT",Ua="SELECT_NONE",ss=[],Oa=(Ee,we)=>{let Re=[];return(we||[]).forEach(Ie=>{Re.push(Ie),Ie&&typeof Ie=="object"&&Ee in Ie&&(Re=[].concat((0,Vo.Z)(Re),(0,Vo.Z)(Oa(Ee,Ie[Ee]))))}),Re};var ds=(Ee,we)=>{const{preserveSelectedRowKeys:Re,selectedRowKeys:Ie,defaultSelectedRowKeys:je,getCheckboxProps:Ze,onChange:ot,onSelect:ht,onSelectAll:st,onSelectInvert:bt,onSelectNone:Bt,onSelectMultiple:xt,columnWidth:qt,type:Xt,selections:sn,fixed:kn,renderCell:Mn,hideSelectAll:Zn,checkStrictly:Un=!0}=we||{},{prefixCls:qn,data:Ir,pageData:Qr,getRecordByKey:Mr,getRowKey:vo,expandType:Mo,childrenColumnName:vr,locale:Rr,getPopupContainer:hr}=Ee,[er,wr]=(0,Wi.Z)(Ie||je||ss,{value:Ie}),Gr=ie.useRef(new Map),Ao=(0,ie.useCallback)(_r=>{if(Re){const oo=new Map;_r.forEach(io=>{let Wr=Mr(io);!Wr&&Gr.current.has(io)&&(Wr=Gr.current.get(io)),oo.set(io,Wr)}),Gr.current=oo}},[Mr,Re]);ie.useEffect(()=>{Ao(er)},[er]);const{keyEntities:Co}=(0,ie.useMemo)(()=>{if(Un)return{keyEntities:null};let _r=Ir;if(Re){const oo=new Set(Ir.map((Wr,_i)=>vo(Wr,_i))),io=Array.from(Gr.current).reduce((Wr,_i)=>{let[to,jo]=_i;return oo.has(to)?Wr:Wr.concat(jo)},[]);_r=[].concat((0,Vo.Z)(_r),(0,Vo.Z)(io))}return(0,gi.I8)(_r,{externalGetKey:vo,childrenPropName:vr})},[Ir,vo,Un,vr,Re]),Zr=(0,ie.useMemo)(()=>Oa(vr,Qr),[vr,Qr]),Io=(0,ie.useMemo)(()=>{const _r=new Map;return Zr.forEach((oo,io)=>{const Wr=vo(oo,io),_i=(Ze?Ze(oo):null)||{};_r.set(Wr,_i)}),_r},[Zr,vo,Ze]),Yo=(0,ie.useCallback)(_r=>{var oo;return!!(!((oo=Io.get(vo(_r)))===null||oo===void 0)&&oo.disabled)},[Io,vo]),[ki,hi]=(0,ie.useMemo)(()=>{if(Un)return[er||[],[]];const{checkedKeys:_r,halfCheckedKeys:oo}=(0,ta.S)(er,!0,Co,Yo);return[_r||[],oo]},[er,Un,Co,Yo]),Ea=(0,ie.useMemo)(()=>{const _r=Xt==="radio"?ki.slice(0,1):ki;return new Set(_r)},[ki,Xt]),Ca=(0,ie.useMemo)(()=>Xt==="radio"?new Set:new Set(hi),[hi,Xt]),[Do,Ba]=(0,ie.useState)(null);ie.useEffect(()=>{we||wr(ss)},[!!we]);const Kn=(0,ie.useCallback)((_r,oo)=>{let io,Wr;Ao(_r),Re?(io=_r,Wr=_r.map(_i=>Gr.current.get(_i))):(io=[],Wr=[],_r.forEach(_i=>{const to=Mr(_i);to!==void 0&&(io.push(_i),Wr.push(to))})),wr(io),ot==null||ot(io,Wr,{type:oo})},[wr,Mr,ot,Re]),ro=(0,ie.useCallback)((_r,oo,io,Wr)=>{if(ht){const _i=io.map(to=>Mr(to));ht(Mr(_r),oo,_i,Wr)}Kn(io,"single")},[ht,Mr,Kn]),Go=(0,ie.useMemo)(()=>!sn||Zn?null:(sn===!0?[Er,ji,Ua]:sn).map(oo=>oo===Er?{key:"all",text:Rr.selectionAll,onSelect(){Kn(Ir.map((io,Wr)=>vo(io,Wr)).filter(io=>{const Wr=Io.get(io);return!(Wr!=null&&Wr.disabled)||Ea.has(io)}),"all")}}:oo===ji?{key:"invert",text:Rr.selectInvert,onSelect(){const io=new Set(Ea);Qr.forEach((_i,to)=>{const jo=vo(_i,to),Ti=Io.get(jo);Ti!=null&&Ti.disabled||(io.has(jo)?io.delete(jo):io.add(jo))});const Wr=Array.from(io);bt&&bt(Wr),Kn(Wr,"invert")}}:oo===Ua?{key:"none",text:Rr.selectNone,onSelect(){Bt==null||Bt(),Kn(Array.from(Ea).filter(io=>{const Wr=Io.get(io);return Wr==null?void 0:Wr.disabled}),"none")}}:oo).map(oo=>Object.assign(Object.assign({},oo),{onSelect:function(){for(var io,Wr,_i=arguments.length,to=new Array(_i),jo=0;jo<_i;jo++)to[jo]=arguments[jo];(Wr=oo.onSelect)===null||Wr===void 0||(io=Wr).call.apply(io,[oo].concat(to)),Ba(null)}})),[sn,Ea,Qr,vo,bt,Kn]);return[(0,ie.useCallback)(_r=>{var oo;if(!we)return _r.filter(Ji=>Ji!==ko);let io=(0,Vo.Z)(_r);const Wr=new Set(Ea),_i=Zr.map(vo).filter(Ji=>!Io.get(Ji).disabled),to=_i.every(Ji=>Wr.has(Ji)),jo=_i.some(Ji=>Wr.has(Ji)),Ti=()=>{const Ji=[];to?_i.forEach(Fa=>{Wr.delete(Fa),Ji.push(Fa)}):_i.forEach(Fa=>{Wr.has(Fa)||(Wr.add(Fa),Ji.push(Fa))});const oa=Array.from(Wr);st==null||st(!to,oa.map(Fa=>Mr(Fa)),Ji.map(Fa=>Mr(Fa))),Kn(oa,"all"),Ba(null)};let Ci;if(Xt!=="radio"){let Ji;if(Go){const mi={getPopupContainer:hr,items:Go.map((_s,vs)=>{const{key:Bs,text:Qs,onSelect:Xs}=_s;return{key:Bs!=null?Bs:vs,onClick:()=>{Xs==null||Xs(_i)},label:Qs}})};Ji=ie.createElement("div",{className:`${qn}-selection-extra`},ie.createElement(nl.Z,{menu:mi,getPopupContainer:hr},ie.createElement("span",null,ie.createElement(va.Z,null))))}const oa=Zr.map((mi,_s)=>{const vs=vo(mi,_s),Bs=Io.get(vs)||{};return Object.assign({checked:Wr.has(vs)},Bs)}).filter(mi=>{let{disabled:_s}=mi;return _s}),Fa=!!oa.length&&oa.length===Zr.length,Ja=Fa&&oa.every(mi=>{let{checked:_s}=mi;return _s}),qa=Fa&&oa.some(mi=>{let{checked:_s}=mi;return _s});Ci=!Zn&&ie.createElement("div",{className:`${qn}-selection`},ie.createElement(Hs.default,{checked:Fa?Ja:!!Zr.length&&to,indeterminate:Fa?!Ja&&qa:!to&&jo,onChange:Ti,disabled:Zr.length===0||Fa,"aria-label":Ji?"Custom selection":"Select all",skipGroup:!0}),Ji)}let ps;Xt==="radio"?ps=(Ji,oa,Fa)=>{const Ja=vo(oa,Fa),qa=Wr.has(Ja);return{node:ie.createElement($s.ZP,Object.assign({},Io.get(Ja),{checked:qa,onClick:mi=>mi.stopPropagation(),onChange:mi=>{Wr.has(Ja)||ro(Ja,!0,[Ja],mi.nativeEvent)}})),checked:qa}}:ps=(Ji,oa,Fa)=>{var Ja;const qa=vo(oa,Fa),mi=Wr.has(qa),_s=Ca.has(qa),vs=Io.get(qa);let Bs;return Mo==="nest"?Bs=_s:Bs=(Ja=vs==null?void 0:vs.indeterminate)!==null&&Ja!==void 0?Ja:_s,{node:ie.createElement(Hs.default,Object.assign({},vs,{indeterminate:Bs,checked:mi,skipGroup:!0,onClick:Qs=>Qs.stopPropagation(),onChange:Qs=>{let{nativeEvent:Xs}=Qs;const{shiftKey:dl}=Xs;let rl=-1,Ws=-1;if(dl&&Un){const Ls=new Set([Do,qa]);_i.some((Ps,es)=>{if(Ls.has(Ps))if(rl===-1)rl=es;else return Ws=es,!0;return!1})}if(Ws!==-1&&rl!==Ws&&Un){const Ls=_i.slice(rl,Ws+1),Ps=[];mi?Ls.forEach(ka=>{Wr.has(ka)&&(Ps.push(ka),Wr.delete(ka))}):Ls.forEach(ka=>{Wr.has(ka)||(Ps.push(ka),Wr.add(ka))});const es=Array.from(Wr);xt==null||xt(!mi,es.map(ka=>Mr(ka)),Ps.map(ka=>Mr(ka))),Kn(es,"multiple")}else{const Ls=ki;if(Un){const Ps=mi?(0,Ma._5)(Ls,qa):(0,Ma.L0)(Ls,qa);ro(qa,!mi,Ps,Xs)}else{const Ps=(0,ta.S)([].concat((0,Vo.Z)(Ls),[qa]),!0,Co,Yo),{checkedKeys:es,halfCheckedKeys:ka}=Ps;let Js=es;if(mi){const cl=new Set(es);cl.delete(qa),Js=(0,ta.S)(Array.from(cl),{checked:!1,halfCheckedKeys:ka},Co,Yo).checkedKeys}ro(qa,!mi,Js,Xs)}}Ba(mi?null:qa)}})),checked:mi}};const cs=(Ji,oa,Fa)=>{const{node:Ja,checked:qa}=ps(Ji,oa,Fa);return Mn?Mn(qa,oa,Fa,Ja):Ja};if(!io.includes(ko))if(io.findIndex(Ji=>{var oa;return((oa=Ji[Pi])===null||oa===void 0?void 0:oa.columnType)==="EXPAND_COLUMN"})===0){const[Ji,...oa]=io;io=[Ji,ko].concat((0,Vo.Z)(oa))}else io=[ko].concat((0,Vo.Z)(io));const Ys=io.indexOf(ko);io=io.filter((Ji,oa)=>Ji!==ko||oa===Ys);const Va=io[Ys-1],Zs=io[Ys+1];let Ya=kn;Ya===void 0&&((Zs==null?void 0:Zs.fixed)!==void 0?Ya=Zs.fixed:(Va==null?void 0:Va.fixed)!==void 0&&(Ya=Va.fixed)),Ya&&Va&&((oo=Va[Pi])===null||oo===void 0?void 0:oo.columnType)==="EXPAND_COLUMN"&&Va.fixed===void 0&&(Va.fixed=Ya);const ws=Qe()(`${qn}-selection-col`,{[`${qn}-selection-col-with-dropdown`]:sn&&Xt==="checkbox"}),ll={fixed:Ya,width:qt,className:`${qn}-selection-column`,title:we.columnTitle||Ci,render:cs,onCell:we.onCell,[Pi]:{className:ws}};return io.map(Ji=>Ji===ko?ll:Ji)},[vo,Zr,we,ki,Ea,Ca,qt,Go,Mo,Do,Io,xt,ro,Yo]),Ea]},Bi=ee(33463),ai=ee(28575),ii=ee(83062);const Ki="ascend",Ni="descend";function gs(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function Ts(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function Gs(Ee,we){return we?Ee[Ee.indexOf(we)+1]:Ee[0]}function Za(Ee,we,Re){let Ie=[];function je(Ze,ot){Ie.push({column:Ze,key:Pa(Ze,ot),multiplePriority:gs(Ze),sortOrder:Ze.sortOrder})}return(Ee||[]).forEach((Ze,ot)=>{const ht=as(ot,Re);Ze.children?("sortOrder"in Ze&&je(Ze,ht),Ie=[].concat((0,Vo.Z)(Ie),(0,Vo.Z)(Za(Ze.children,we,ht)))):Ze.sorter&&("sortOrder"in Ze?je(Ze,ht):we&&Ze.defaultSortOrder&&Ie.push({column:Ze,key:Pa(Ze,ht),multiplePriority:gs(Ze),sortOrder:Ze.defaultSortOrder}))}),Ie}function os(Ee,we,Re,Ie,je,Ze,ot,ht){return(we||[]).map((st,bt)=>{const Bt=as(bt,ht);let xt=st;if(xt.sorter){const qt=xt.sortDirections||je,Xt=xt.showSorterTooltip===void 0?ot:xt.showSorterTooltip,sn=Pa(xt,Bt),kn=Re.find(Mo=>{let{key:vr}=Mo;return vr===sn}),Mn=kn?kn.sortOrder:null,Zn=Gs(qt,Mn);let Un;if(st.sortIcon)Un=st.sortIcon({sortOrder:Mn});else{const Mo=qt.includes(Ki)&&ie.createElement(ai.Z,{className:Qe()(`${Ee}-column-sorter-up`,{active:Mn===Ki})}),vr=qt.includes(Ni)&&ie.createElement(Bi.Z,{className:Qe()(`${Ee}-column-sorter-down`,{active:Mn===Ni})});Un=ie.createElement("span",{className:Qe()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!(Mo&&vr)})},ie.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},Mo,vr))}const{cancelSort:qn,triggerAsc:Ir,triggerDesc:Qr}=Ze||{};let Mr=qn;Zn===Ni?Mr=Qr:Zn===Ki&&(Mr=Ir);const vo=typeof Xt=="object"?Xt:{title:Mr};xt=Object.assign(Object.assign({},xt),{className:Qe()(xt.className,{[`${Ee}-column-sort`]:Mn}),title:Mo=>{const vr=ie.createElement("div",{className:`${Ee}-column-sorters`},ie.createElement("span",{className:`${Ee}-column-title`},As(st.title,Mo)),Un);return Xt?ie.createElement(ii.Z,Object.assign({},vo),vr):vr},onHeaderCell:Mo=>{const vr=st.onHeaderCell&&st.onHeaderCell(Mo)||{},Rr=vr.onClick,hr=vr.onKeyDown;vr.onClick=Gr=>{Ie({column:st,key:sn,sortOrder:Zn,multiplePriority:gs(st)}),Rr==null||Rr(Gr)},vr.onKeyDown=Gr=>{Gr.keyCode===It.Z.ENTER&&(Ie({column:st,key:sn,sortOrder:Zn,multiplePriority:gs(st)}),hr==null||hr(Gr))};const er=Ds(st.title,{}),wr=er==null?void 0:er.toString();return Mn?vr["aria-sort"]=Mn==="ascend"?"ascending":"descending":vr["aria-label"]=wr||"",vr.className=Qe()(vr.className,`${Ee}-column-has-sorters`),vr.tabIndex=0,st.ellipsis&&(vr.title=(er!=null?er:"").toString()),vr}})}return"children"in xt&&(xt=Object.assign(Object.assign({},xt),{children:os(Ee,xt.children,Re,Ie,je,Ze,ot,Bt)})),xt})}function Es(Ee){const{column:we,sortOrder:Re}=Ee;return{column:we,order:Re,field:we.dataIndex,columnKey:we.key}}function is(Ee){const we=Ee.filter(Re=>{let{sortOrder:Ie}=Re;return Ie}).map(Es);return we.length===0&&Ee.length?Object.assign(Object.assign({},Es(Ee[Ee.length-1])),{column:void 0}):we.length<=1?we[0]||{}:we}function na(Ee,we,Re){const Ie=we.slice().sort((ot,ht)=>ht.multiplePriority-ot.multiplePriority),je=Ee.slice(),Ze=Ie.filter(ot=>{let{column:{sorter:ht},sortOrder:st}=ot;return Ts(ht)&&st});return Ze.length?je.sort((ot,ht)=>{for(let st=0;st<Ze.length;st+=1){const bt=Ze[st],{column:{sorter:Bt},sortOrder:xt}=bt,qt=Ts(Bt);if(qt&&xt){const Xt=qt(ot,ht,xt);if(Xt!==0)return xt===Ki?Xt:-Xt}}return 0}).map(ot=>{const ht=ot[Re];return ht?Object.assign(Object.assign({},ot),{[Re]:na(ht,we,Re)}):ot}):je}function To(Ee){let{prefixCls:we,mergedColumns:Re,onSorterChange:Ie,sortDirections:je,tableLocale:Ze,showSorterTooltip:ot}=Ee;const[ht,st]=ie.useState(Za(Re,!0)),bt=ie.useMemo(()=>{let sn=!0;const kn=Za(Re,!1);if(!kn.length)return ht;const Mn=[];function Zn(qn){sn?Mn.push(qn):Mn.push(Object.assign(Object.assign({},qn),{sortOrder:null}))}let Un=null;return kn.forEach(qn=>{Un===null?(Zn(qn),qn.sortOrder&&(qn.multiplePriority===!1?sn=!1:Un=!0)):(Un&&qn.multiplePriority!==!1||(sn=!1),Zn(qn))}),Mn},[Re,ht]),Bt=ie.useMemo(()=>{const sn=bt.map(kn=>{let{column:Mn,sortOrder:Zn}=kn;return{column:Mn,order:Zn}});return{sortColumns:sn,sortColumn:sn[0]&&sn[0].column,sortOrder:sn[0]&&sn[0].order}},[bt]);function xt(sn){let kn;sn.multiplePriority===!1||!bt.length||bt[0].multiplePriority===!1?kn=[sn]:kn=[].concat((0,Vo.Z)(bt.filter(Mn=>{let{key:Zn}=Mn;return Zn!==sn.key})),[sn]),st(kn),Ie(is(kn),kn)}return[sn=>os(we,sn,bt,xt,je,Ze,ot),bt,Bt,()=>is(bt)]}function Te(Ee,we){return Ee.map(Re=>{const Ie=Object.assign({},Re);return Ie.title=As(Re.title,we),"children"in Ie&&(Ie.children=Te(Ie.children,we)),Ie})}function ze(Ee){return[ie.useCallback(Re=>Te(Re,Ee),[Ee])]}var Ke=Wn((Ee,we)=>{const{_renderTimes:Re}=Ee,{_renderTimes:Ie}=we;return Re!==Ie}),ur=zo((Ee,we)=>{const{_renderTimes:Re}=Ee,{_renderTimes:Ie}=we;return Re!==Ie}),En=ee(84780),dn=ee(14747),Cn=ee(67968),Kt=ee(45503),zn=Ee=>{const{componentCls:we}=Ee,Re=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Ie=(je,Ze,ot)=>({[`&${we}-${je}`]:{[`> ${we}-container`]:{[`> ${we}-content, > ${we}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${Ze}px -${ot+Ee.lineWidth}px`}}}}}});return{[`${we}-wrapper`]:{[`${we}${we}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${we}-title`]:{border:Re,borderBottom:0},[`> ${we}-container`]:{borderInlineStart:Re,borderTop:Re,[`
|
|
|
> ${we}-content,
|
|
|
> ${we}-header,
|
|
|
> ${we}-body,
|
|
|
> ${we}-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:Re},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Re},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${we}-cell-fix-right-first::after`]:{borderInlineEnd:Re}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:Re,content:'""'}}}}}},[`&${we}-scroll-horizontal`]:{[`> ${we}-container > ${we}-body`]:{"> table > tbody":{[`
|
|
|
> tr${we}-expanded-row,
|
|
|
> tr${we}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ie("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),Ie("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${we}-footer`]:{border:Re,borderTop:0}}),[`${we}-cell`]:{[`${we}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${we}-bordered ${we}-cell-scrollbar`]:{borderInlineEnd:Re}}}},Yr=Ee=>{const{componentCls:we}=Ee;return{[`${we}-wrapper`]:{[`${we}-cell-ellipsis`]:Object.assign(Object.assign({},dn.vS),{wordBreak:"keep-all",[`
|
|
|
&${we}-cell-fix-left-last,
|
|
|
&${we}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${we}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${we}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Fr=Ee=>{const{componentCls:we}=Ee;return{[`${we}-wrapper`]:{[`${we}-tbody > tr${we}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},Ko=ee(49867),ci=Ee=>{const{componentCls:we,antCls:Re,controlInteractiveSize:Ie,motionDurationSlow:je,lineWidth:Ze,paddingXS:ot,lineType:ht,tableBorderColor:st,tableExpandIconBg:bt,tableExpandColumnWidth:Bt,borderRadius:xt,fontSize:qt,fontSizeSM:Xt,lineHeight:sn,tablePaddingVertical:kn,tablePaddingHorizontal:Mn,tableExpandedRowBg:Zn,paddingXXS:Un}=Ee,qn=Ie/2-Ze,Ir=qn*2+Ze*3,Qr=`${Ze}px ${ht} ${st}`,Mr=Un-Ze;return{[`${we}-wrapper`]:{[`${we}-expand-icon-col`]:{width:Bt},[`${we}-row-expand-icon-cell`]:{textAlign:"center",[`${we}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${we}-row-indent`]:{height:1,float:"left"},[`${we}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ko.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:Ir,height:Ir,padding:0,color:"inherit",lineHeight:`${Ir}px`,background:bt,border:Qr,borderRadius:xt,transform:`scale(${Ie/Ir})`,transition:`all ${je}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${je} ease-out`,content:'""'},"&::before":{top:qn,insetInlineEnd:Mr,insetInlineStart:Mr,height:Ze},"&::after":{top:Mr,bottom:Mr,insetInlineStart:qn,width:Ze,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"}}),[`${we}-row-indent + ${we}-row-expand-icon`]:{marginTop:(qt*sn-Ze*3)/2-Math.ceil((Xt*1.4-Ze*3)/2),marginInlineEnd:ot},[`tr${we}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Zn}},[`${Re}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${we}-expanded-row-fixed`]:{position:"relative",margin:`-${kn}px -${Mn}px`,padding:`${kn}px ${Mn}px`}}}},si=Ee=>{const{componentCls:we,antCls:Re,iconCls:Ie,tableFilterDropdownWidth:je,tableFilterDropdownSearchWidth:Ze,paddingXXS:ot,paddingXS:ht,colorText:st,lineWidth:bt,lineType:Bt,tableBorderColor:xt,tableHeaderIconColor:qt,fontSizeSM:Xt,tablePaddingHorizontal:sn,borderRadius:kn,motionDurationSlow:Mn,colorTextDescription:Zn,colorPrimary:Un,tableHeaderFilterActiveBg:qn,colorTextDisabled:Ir,tableFilterDropdownBg:Qr,tableFilterDropdownHeight:Mr,controlItemBgHover:vo,controlItemBgActive:Mo,boxShadowSecondary:vr,filterDropdownMenuBg:Rr}=Ee,hr=`${Re}-dropdown`,er=`${we}-filter-dropdown`,wr=`${Re}-tree`,Gr=`${bt}px ${Bt} ${xt}`;return[{[`${we}-wrapper`]:{[`${we}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${we}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ot,marginInline:`${ot}px ${-sn/2}px`,padding:`0 ${ot}px`,color:qt,fontSize:Xt,borderRadius:kn,cursor:"pointer",transition:`all ${Mn}`,"&:hover":{color:Zn,background:qn},"&.active":{color:Un}}}},{[`${Re}-dropdown`]:{[er]:Object.assign(Object.assign({},(0,dn.Wf)(Ee)),{minWidth:je,backgroundColor:Qr,borderRadius:kn,boxShadow:vr,overflow:"hidden",[`${hr}-menu`]:{maxHeight:Mr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Rr,"&:empty::after":{display:"block",padding:`${ht}px 0`,color:Ir,fontSize:Xt,textAlign:"center",content:'"Not Found"'}},[`${er}-tree`]:{paddingBlock:`${ht}px 0`,paddingInline:ht,[wr]:{padding:0},[`${wr}-treenode ${wr}-node-content-wrapper:hover`]:{backgroundColor:vo},[`${wr}-treenode-checkbox-checked ${wr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Mo}}},[`${er}-search`]:{padding:ht,borderBottom:Gr,"&-input":{input:{minWidth:Ze},[Ie]:{color:Ir}}},[`${er}-checkall`]:{width:"100%",marginBottom:ot,marginInlineStart:ot},[`${er}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ht-bt}px ${ht}px`,overflow:"hidden",borderTop:Gr}})}},{[`${Re}-dropdown ${er}, ${er}-submenu`]:{[`${Re}-checkbox-wrapper + span`]:{paddingInlineStart:ht,color:st},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},fo=Ee=>{const{componentCls:we,lineWidth:Re,colorSplit:Ie,motionDurationSlow:je,zIndexTableFixed:Ze,tableBg:ot,zIndexTableSticky:ht}=Ee,st=Ie;return{[`${we}-wrapper`]:{[`
|
|
|
${we}-cell-fix-left,
|
|
|
${we}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ze,background:ot},[`
|
|
|
${we}-cell-fix-left-first::after,
|
|
|
${we}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Re,width:30,transform:"translateX(100%)",transition:`box-shadow ${je}`,content:'""',pointerEvents:"none"},[`${we}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${we}-cell-fix-right-first::after,
|
|
|
${we}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Re,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${je}`,content:'""',pointerEvents:"none"},[`${we}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:ht+1,width:30,transition:`box-shadow ${je}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${we}-ping-left`]:{[`&:not(${we}-has-fix-left) ${we}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${st}`}},[`
|
|
|
${we}-cell-fix-left-first::after,
|
|
|
${we}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${st}`},[`${we}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${we}-ping-right`]:{[`&:not(${we}-has-fix-right) ${we}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${st}`}},[`
|
|
|
${we}-cell-fix-right-first::after,
|
|
|
${we}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${st}`}}}}},Xn=Ee=>{const{componentCls:we,antCls:Re}=Ee;return{[`${we}-wrapper`]:{[`${we}-pagination${Re}-pagination`]:{margin:`${Ee.margin}px 0`},[`${we}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},mo=Ee=>{const{componentCls:we,tableRadius:Re}=Ee;return{[`${we}-wrapper`]:{[we]:{[`${we}-title, ${we}-header`]:{borderRadius:`${Re}px ${Re}px 0 0`},[`${we}-title + ${we}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${we}-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:Re,borderStartEndRadius:Re,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Re},"> *:last-child":{borderStartEndRadius:Re}}},"&-footer":{borderRadius:`0 0 ${Re}px ${Re}px`}}}}},Ra=Ee=>{const{componentCls:we}=Ee;return{[`${we}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${we}-pagination-left`]:{justifyContent:"flex-end"},[`${we}-pagination-right`]:{justifyContent:"flex-start"},[`${we}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${we}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${we}-row-indent`]:{float:"right"}}}}},Qi=Ee=>{const{componentCls:we,antCls:Re,iconCls:Ie,fontSizeIcon:je,padding:Ze,paddingXS:ot,tableHeaderIconColor:ht,tableHeaderIconColorHover:st,tableSelectionColumnWidth:bt}=Ee;return{[`${we}-wrapper`]:{[`${we}-selection-col`]:{width:bt,[`&${we}-selection-col-with-dropdown`]:{width:bt+je+Ze/4}},[`${we}-bordered ${we}-selection-col`]:{width:bt+ot*2,[`&${we}-selection-col-with-dropdown`]:{width:bt+je+Ze/4+ot*2}},[`
|
|
|
table tr th${we}-selection-column,
|
|
|
table tr td${we}-selection-column
|
|
|
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${Re}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${we}-selection-column${we}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${we}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${we}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${we}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[Ie]:{color:ht,fontSize:je,verticalAlign:"baseline","&:hover":{color:st}}}}}},kr=Ee=>{const{componentCls:we}=Ee,Re=(Ie,je,Ze,ot)=>({[`${we}${we}-${Ie}`]:{fontSize:ot,[`
|
|
|
${we}-title,
|
|
|
${we}-footer,
|
|
|
${we}-cell,
|
|
|
${we}-thead > tr > th,
|
|
|
${we}-tbody > tr > th,
|
|
|
${we}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${je}px ${Ze}px`},[`${we}-filter-trigger`]:{marginInlineEnd:`-${Ze/2}px`},[`${we}-expanded-row-fixed`]:{margin:`-${je}px -${Ze}px`},[`${we}-tbody`]:{[`${we}-wrapper:only-child ${we}`]:{marginBlock:`-${je}px`,marginInline:`${Ee.tableExpandColumnWidth-Ze}px -${Ze}px`}},[`${we}-selection-column`]:{paddingInlineStart:`${Ze/4}px`}}});return{[`${we}-wrapper`]:Object.assign(Object.assign({},Re("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),Re("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},li=Ee=>{const{componentCls:we,marginXXS:Re,fontSizeIcon:Ie,tableHeaderIconColor:je,tableHeaderIconColorHover:Ze}=Ee;return{[`${we}-wrapper`]:{[`${we}-thead th${we}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
|
|
|
&${we}-cell-fix-left:hover,
|
|
|
&${we}-cell-fix-right:hover
|
|
|
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${we}-thead th${we}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${we}-column-sort`]:{background:Ee.tableBodySortBg},[`${we}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${we}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${we}-column-sorter`]:{marginInlineStart:Re,color:je,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ie,"&.active":{color:Ee.colorPrimary}},[`${we}-column-sorter-up + ${we}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${we}-column-sorters:hover ${we}-column-sorter`]:{color:Ze}}}},zs=Ee=>{const{componentCls:we,opacityLoading:Re,tableScrollThumbBg:Ie,tableScrollThumbBgHover:je,tableScrollThumbSize:Ze,tableScrollBg:ot,zIndexTableSticky:ht,stickyScrollBarBorderRadius:st}=Ee,bt=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${we}-wrapper`]:{[`${we}-sticky`]:{"&-holder":{position:"sticky",zIndex:ht,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ze}px !important`,zIndex:ht,display:"flex",alignItems:"center",background:ot,borderTop:bt,opacity:Re,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ze,backgroundColor:Ie,borderRadius:st,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:je}}}}}}},Cs=Ee=>{const{componentCls:we,lineWidth:Re,tableBorderColor:Ie}=Ee,je=`${Re}px ${Ee.lineType} ${Ie}`;return{[`${we}-wrapper`]:{[`${we}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:je}}},[`div${we}-summary`]:{boxShadow:`0 -${Re}px 0 ${Ie}`}}}},Xa=Ee=>{const{componentCls:we}=Ee,Re=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Ie=`${we}-expanded-row-cell`;return{[`${we}-wrapper`]:{[`${we}-tbody-virtual`]:{[`${we}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${we}-cell`]:{borderBottom:Re},[`${we}-expanded-row`]:{[`${Ie}${Ie}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${we}-bordered`]:{[`${we}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Re,position:"absolute"},[`${we}-cell`]:{borderInlineEnd:Re,[`&${we}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:Re}}}}}}};const ys=Ee=>{const{componentCls:we,fontWeightStrong:Re,tablePaddingVertical:Ie,tablePaddingHorizontal:je,lineWidth:Ze,lineType:ot,tableBorderColor:ht,tableFontSize:st,tableBg:bt,tableRadius:Bt,tableHeaderTextColor:xt,motionDurationMid:qt,tableHeaderBg:Xt,tableHeaderCellSplitColor:sn,tableRowHoverBg:kn,tableSelectedRowBg:Mn,tableSelectedRowHoverBg:Zn,tableFooterTextColor:Un,tableFooterBg:qn,paddingContentVerticalLG:Ir}=Ee,Qr=`${Ze}px ${ot} ${ht}`;return{[`${we}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,dn.dF)()),{[we]:Object.assign(Object.assign({},(0,dn.Wf)(Ee)),{fontSize:st,background:bt,borderRadius:`${Bt}px ${Bt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Bt}px ${Bt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${we}-cell,
|
|
|
${we}-thead > tr > th,
|
|
|
${we}-tbody > tr > th,
|
|
|
${we}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Ir}px ${je}px`,overflowWrap:"break-word"},[`${we}-title`]:{padding:`${Ie}px ${je}px`},[`${we}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:xt,fontWeight:Re,textAlign:"start",background:Xt,borderBottom:Qr,transition:`background ${qt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${we}-selection-column):not(${we}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:sn,transform:"translateY(-50%)",transition:`background-color ${qt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${we}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${qt}, border-color ${qt}`,borderBottom:Qr,[`
|
|
|
> ${we}-wrapper:only-child,
|
|
|
> ${we}-expanded-row-fixed > ${we}-wrapper:only-child
|
|
|
`]:{[we]:{marginBlock:`-${Ie}px`,marginInline:`${Ee.tableExpandColumnWidth-je}px -${je}px`,[`${we}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:xt,fontWeight:Re,textAlign:"start",background:Xt,borderBottom:Qr,transition:`background ${qt} ease`},[`
|
|
|
&${we}-row:hover > th,
|
|
|
&${we}-row:hover > td,
|
|
|
> th${we}-cell-row-hover,
|
|
|
> td${we}-cell-row-hover
|
|
|
`]:{background:kn},[`&${we}-row-selected`]:{"> th, > td":{background:Mn},"&:hover > th, &:hover > td":{background:Zn}}}},[`${we}-footer`]:{padding:`${Ie}px ${je}px`,color:Un,background:qn}})}};var eo=(0,Cn.Z)("Table",Ee=>{const{colorTextHeading:we,colorSplit:Re,colorIcon:Ie,colorIconHover:je,opacityLoading:Ze,colorBgContainer:ot,controlInteractiveSize:ht,headerBg:st,headerColor:bt,headerSortActiveBg:Bt,headerSortHoverBg:xt,bodySortBg:qt,rowHoverBg:Xt,rowSelectedBg:sn,rowSelectedHoverBg:kn,rowExpandedBg:Mn,cellPaddingBlock:Zn,cellPaddingInline:Un,cellPaddingBlockMD:qn,cellPaddingInlineMD:Ir,cellPaddingBlockSM:Qr,cellPaddingInlineSM:Mr,borderColor:vo,footerBg:Mo,footerColor:vr,headerBorderRadius:Rr,cellFontSize:hr,cellFontSizeMD:er,cellFontSizeSM:wr,headerSplitColor:Gr,fixedHeaderSortActiveBg:Ao,headerFilterHoverBg:Co,filterDropdownBg:Zr,expandIconBg:Io,selectionColumnWidth:Yo,stickyScrollBarBg:ki}=Ee,hi=new En.C(Ie),Ea=new En.C(je),Ca=2,Do=(0,Kt.TS)(Ee,{tableFontSize:hr,tableBg:ot,tableRadius:Rr,tablePaddingVertical:Zn,tablePaddingHorizontal:Un,tablePaddingVerticalMiddle:qn,tablePaddingHorizontalMiddle:Ir,tablePaddingVerticalSmall:Qr,tablePaddingHorizontalSmall:Mr,tableBorderColor:vo,tableHeaderTextColor:bt,tableHeaderBg:st,tableFooterTextColor:vr,tableFooterBg:Mo,tableHeaderCellSplitColor:Gr,tableHeaderSortBg:Bt,tableHeaderSortHoverBg:xt,tableHeaderIconColor:hi.clone().setAlpha(hi.getAlpha()*Ze).toRgbString(),tableHeaderIconColorHover:Ea.clone().setAlpha(Ea.getAlpha()*Ze).toRgbString(),tableBodySortBg:qt,tableFixedHeaderSortActiveBg:Ao,tableHeaderFilterActiveBg:Co,tableFilterDropdownBg:Zr,tableRowHoverBg:Xt,tableSelectedRowBg:sn,tableSelectedRowHoverBg:kn,zIndexTableFixed:Ca,zIndexTableSticky:Ca+1,tableFontSizeMiddle:er,tableFontSizeSmall:wr,tableSelectionColumnWidth:Yo,tableExpandIconBg:Io,tableExpandColumnWidth:ht+2*Ee.padding,tableExpandedRowBg:Mn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ki,tableScrollThumbBgHover:we,tableScrollBg:Re});return[ys(Do),Xn(Do),Cs(Do),li(Do),si(Do),zn(Do),mo(Do),ci(Do),Cs(Do),Fr(Do),Qi(Do),fo(Do),zs(Do),Yr(Do),kr(Do),Ra(Do),Xa(Do)]},Ee=>{const{colorFillAlter:we,colorBgContainer:Re,colorTextHeading:Ie,colorFillSecondary:je,colorFillContent:Ze,controlItemBgActive:ot,controlItemBgActiveHover:ht,padding:st,paddingSM:bt,paddingXS:Bt,colorBorderSecondary:xt,borderRadiusLG:qt,fontSize:Xt,controlHeight:sn,colorTextPlaceholder:kn}=Ee,Mn=new En.C(je).onBackground(Re).toHexShortString(),Zn=new En.C(Ze).onBackground(Re).toHexShortString(),Un=new En.C(we).onBackground(Re).toHexShortString();return{headerBg:Un,headerColor:Ie,headerSortActiveBg:Mn,headerSortHoverBg:Zn,bodySortBg:Un,rowHoverBg:Un,rowSelectedBg:ot,rowSelectedHoverBg:ht,rowExpandedBg:we,cellPaddingBlock:st,cellPaddingInline:st,cellPaddingBlockMD:bt,cellPaddingInlineMD:Bt,cellPaddingBlockSM:Bt,cellPaddingInlineSM:Bt,borderColor:xt,headerBorderRadius:qt,footerBg:Un,footerColor:Ie,cellFontSize:Xt,cellFontSizeMD:Xt,cellFontSizeSM:Xt,headerSplitColor:xt,fixedHeaderSortActiveBg:Mn,headerFilterHoverBg:Ze,filterDropdownMenuBg:Re,filterDropdownBg:Re,expandIconBg:Re,selectionColumnWidth:sn,stickyScrollBarBg:kn,stickyScrollBarBorderRadius:100}});const Vi=[],Qa=(Ee,we)=>{const{prefixCls:Re,className:Ie,rootClassName:je,style:Ze,size:ot,bordered:ht,dropdownPrefixCls:st,dataSource:bt,pagination:Bt,rowSelection:xt,rowKey:qt="key",rowClassName:Xt,columns:sn,children:kn,childrenColumnName:Mn,onChange:Zn,getPopupContainer:Un,loading:qn,expandIcon:Ir,expandable:Qr,expandedRowRender:Mr,expandIconColumnIndex:vo,indentSize:Mo,scroll:vr,sortDirections:Rr,locale:hr,showSorterTooltip:er=!0,virtual:wr}=Ee,Gr=ie.useMemo(()=>sn||xn(kn),[sn,kn]),Ao=ie.useMemo(()=>Gr.some(Oi=>Oi.responsive),[Gr]),Co=(0,Ta.Z)(Ao),Zr=ie.useMemo(()=>{const Oi=new Set(Object.keys(Co).filter(wa=>Co[wa]));return Gr.filter(wa=>!wa.responsive||wa.responsive.some(fs=>Oi.has(fs)))},[Gr,Co]),Io=(0,Or.Z)(Ee,["className","style","columns"]),{locale:Yo=da.Z,direction:ki,table:hi,renderEmpty:Ea,getPrefixCls:Ca,getPopupContainer:Do}=ie.useContext(ha.E_),Ba=(0,aa.Z)(ot),Kn=Object.assign(Object.assign({},Yo.Table),hr),ro=bt||Vi,Go=Ca("table",Re),ra=Ca("dropdown",st),_r=Object.assign({childrenColumnName:Mn,expandIconColumnIndex:vo},Qr),{childrenColumnName:oo="children"}=_r,io=ie.useMemo(()=>ro.some(Oi=>Oi==null?void 0:Oi[oo])?"nest":Mr||Qr&&Qr.expandedRowRender?"row":null,[ro]),Wr={body:ie.useRef()},_i=ie.useMemo(()=>typeof qt=="function"?qt:Oi=>Oi==null?void 0:Oi[qt],[qt]),[to]=Ri(ro,oo,_i),jo={},Ti=function(Oi,wa){let fs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ja,Ss,xs;const Ms=Object.assign(Object.assign({},jo),Oi);fs&&((ja=jo.resetPagination)===null||ja===void 0||ja.call(jo),!((Ss=Ms.pagination)===null||Ss===void 0)&&Ss.current&&(Ms.pagination.current=1),Bt&&Bt.onChange&&Bt.onChange(1,(xs=Ms.pagination)===null||xs===void 0?void 0:xs.pageSize)),vr&&vr.scrollToFirstRowOnChange!==!1&&Wr.body.current&&(0,fa.Z)(0,{getContainer:()=>Wr.body.current}),Zn==null||Zn(Ms.pagination,Ms.filters,Ms.sorter,{currentDataSource:oi(na(ro,Ms.sorterStates,oo),Ms.filterStates),action:wa})},Ci=(Oi,wa)=>{Ti({sorter:Oi,sorterStates:wa},"sort",!1)},[ps,cs,Ys,Va]=To({prefixCls:Go,mergedColumns:Zr,onSorterChange:Ci,sortDirections:Rr||["ascend","descend"],tableLocale:Kn,showSorterTooltip:er}),Zs=ie.useMemo(()=>na(ro,cs,oo),[ro,cs]);jo.sorter=Va(),jo.sorterStates=cs;const Ya=(Oi,wa)=>{Ti({filters:Oi,filterStates:wa},"filter",!0)},[ws,ll,Ji]=$r({prefixCls:Go,locale:Kn,dropdownPrefixCls:ra,mergedColumns:Zr,onFilterChange:Ya,getPopupContainer:Un||Do}),oa=oi(Zs,ll);jo.filters=Ji,jo.filterStates=ll;const Fa=ie.useMemo(()=>{const Oi={};return Object.keys(Ji).forEach(wa=>{Ji[wa]!==null&&(Oi[wa]=Ji[wa])}),Object.assign(Object.assign({},Ys),{filters:Oi})},[Ys,Ji]),[Ja]=ze(Fa),qa=(Oi,wa)=>{Ti({pagination:Object.assign(Object.assign({},jo.pagination),{current:Oi,pageSize:wa})},"paginate")},[mi,_s]=yi(oa.length,qa,Bt);jo.pagination=Bt===!1?{}:Ga(mi,Bt),jo.resetPagination=_s;const vs=ie.useMemo(()=>{if(Bt===!1||!mi.pageSize)return oa;const{current:Oi=1,total:wa,pageSize:fs=ba}=mi;return oa.length<wa?oa.length>fs?oa.slice((Oi-1)*fs,Oi*fs):oa:oa.slice((Oi-1)*fs,Oi*fs)},[!!Bt,oa,mi&&mi.current,mi&&mi.pageSize,mi&&mi.total]),[Bs,Qs]=ds({prefixCls:Go,data:oa,pageData:vs,getRowKey:_i,getRecordByKey:to,expandType:io,childrenColumnName:oo,locale:Kn,getPopupContainer:Un||Do},xt),Xs=(Oi,wa,fs)=>{let ja;return typeof Xt=="function"?ja=Qe()(Xt(Oi,wa,fs)):ja=Qe()(Xt),Qe()({[`${Go}-row-selected`]:Qs.has(_i(Oi,wa))},ja)};_r.__PARENT_RENDER_ICON__=_r.expandIcon,_r.expandIcon=_r.expandIcon||Ir||ga(Kn),io==="nest"&&_r.expandIconColumnIndex===void 0?_r.expandIconColumnIndex=xt?1:0:_r.expandIconColumnIndex>0&&xt&&(_r.expandIconColumnIndex-=1),typeof _r.indentSize!="number"&&(_r.indentSize=typeof Mo=="number"?Mo:15);const dl=ie.useCallback(Oi=>Ja(Bs(ws(ps(Oi)))),[ps,ws,Bs]);let rl,Ws;if(Bt!==!1&&(mi!=null&&mi.total)){let Oi;mi.size?Oi=mi.size:Oi=Ba==="small"||Ba==="middle"?"small":void 0;const wa=Ss=>ie.createElement(pa.Z,Object.assign({},mi,{className:Qe()(`${Go}-pagination ${Go}-pagination-${Ss}`,mi.className),size:Oi})),fs=ki==="rtl"?"left":"right",{position:ja}=mi;if(ja!==null&&Array.isArray(ja)){const Ss=ja.find(ol=>ol.includes("top")),xs=ja.find(ol=>ol.includes("bottom")),Ms=ja.every(ol=>`${ol}`=="none");!Ss&&!xs&&!Ms&&(Ws=wa(fs)),Ss&&(rl=wa(Ss.toLowerCase().replace("top",""))),xs&&(Ws=wa(xs.toLowerCase().replace("bottom","")))}else Ws=wa(fs)}let Ls;typeof qn=="boolean"?Ls={spinning:qn}:typeof qn=="object"&&(Ls=Object.assign({spinning:!0},qn));const[Ps,es]=eo(Go),[,ka]=(0,rs.Z)(),Js=Qe()(`${Go}-wrapper`,hi==null?void 0:hi.className,{[`${Go}-wrapper-rtl`]:ki==="rtl"},Ie,je,es),cl=Object.assign(Object.assign({},hi==null?void 0:hi.style),Ze),il=hr&&hr.emptyText||(Ea==null?void 0:Ea("Table"))||ie.createElement(ma.Z,{componentName:"Table"}),qs=wr?ur:Ke,gl={},pl=ie.useMemo(()=>{const{fontSize:Oi,lineHeight:wa,padding:fs,paddingXS:ja,paddingSM:Ss}=ka,xs=Math.floor(Oi*wa);switch(Ba){case"large":return fs*2+xs;case"small":return ja*2+xs;default:return Ss*2+xs}},[ka,Ba]);return wr&&(gl.listItemHeight=pl),Ps(ie.createElement("div",{ref:we,className:Js,style:cl},ie.createElement($a.Z,Object.assign({spinning:!1},Ls),rl,ie.createElement(qs,Object.assign({},gl,Io,{columns:Zr,direction:ki,expandable:_r,prefixCls:Go,className:Qe()({[`${Go}-middle`]:Ba==="middle",[`${Go}-small`]:Ba==="small",[`${Go}-bordered`]:ht,[`${Go}-empty`]:ro.length===0}),data:vs,rowKey:_i,rowClassName:Xs,emptyText:il,internalHooks:ge,internalRefs:Wr,transformColumns:dl})),Ws)))};var Is=ie.forwardRef(Qa);const Ia=(Ee,we)=>{const Re=ie.useRef(0);return Re.current+=1,ie.createElement(Is,Object.assign({},Ee,{ref:we,_renderTimes:Re.current}))},ls=ie.forwardRef(Ia);ls.SELECTION_COLUMN=ko,ls.EXPAND_COLUMN=z,ls.SELECTION_ALL=Er,ls.SELECTION_INVERT=ji,ls.SELECTION_NONE=Ua,ls.Column=Qo,ls.ColumnGroup=ua,ls.Summary=hn;var Ha=ls,Sa=Ha},66309:function(at,We,ee){"use strict";ee.d(We,{default:function(){return Be}});var z=ee(67294),ge=ee(73475),be=ee(94184),ve=ee.n(be),fe=ee(98787),pe=ee(69760),ie=ee(45353),de=ee(53124),le=ee(14747),ce=ee(45503),se=ee(67968);const me=Me=>{const{paddingXXS:mt,lineWidth:Qe,tagPaddingHorizontal:pt,componentCls:Ae}=Me,De=pt-Qe,Fe=mt-Qe;return{[Ae]:Object.assign(Object.assign({},(0,le.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:De,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ae}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${Ae}-close-icon`]:{marginInlineStart:Fe,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${Ae}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ae}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:De}}),[`${Ae}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},re=Me=>{const{lineWidth:mt,fontSizeIcon:Qe}=Me,pt=Me.fontSizeSM,Ae=`${Me.lineHeightSM*pt}px`;return(0,ce.TS)(Me,{tagFontSize:pt,tagLineHeight:Ae,tagIconSize:Qe-2*mt,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},ne=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var a=(0,se.Z)("Tag",Me=>{const mt=re(Me);return me(mt)},ne),y=function(Me,mt){var Qe={};for(var pt in Me)Object.prototype.hasOwnProperty.call(Me,pt)&&mt.indexOf(pt)<0&&(Qe[pt]=Me[pt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,pt=Object.getOwnPropertySymbols(Me);Ae<pt.length;Ae++)mt.indexOf(pt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Me,pt[Ae])&&(Qe[pt[Ae]]=Me[pt[Ae]]);return Qe},b=Me=>{const{prefixCls:mt,style:Qe,className:pt,checked:Ae,onChange:De,onClick:Fe}=Me,tt=y(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ve,tag:Ct}=z.useContext(de.E_),Mt=wt=>{De==null||De(!Ae),Fe==null||Fe(wt)},en=Ve("tag",mt),[nn,it]=a(en),ct=ve()(en,`${en}-checkable`,{[`${en}-checkable-checked`]:Ae},Ct==null?void 0:Ct.className,pt,it);return nn(z.createElement("span",Object.assign({},tt,{style:Object.assign(Object.assign({},Qe),Ct==null?void 0:Ct.style),className:ct,onClick:Mt})))},x=ee(98719);const te=Me=>(0,x.Z)(Me,(mt,Qe)=>{let{textColor:pt,lightBorderColor:Ae,lightColor:De,darkColor:Fe}=Qe;return{[`${Me.componentCls}-${mt}`]:{color:pt,background:De,borderColor:Ae,"&-inverse":{color:Me.colorTextLightSolid,background:Fe,borderColor:Fe},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,se.b)(["Tag","preset"],Me=>{const mt=re(Me);return te(mt)},ne);function ae(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const ue=(Me,mt,Qe)=>{const pt=ae(Qe);return{[`${Me.componentCls}-${mt}`]:{color:Me[`color${Qe}`],background:Me[`color${pt}Bg`],borderColor:Me[`color${pt}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ye=(0,se.b)(["Tag","status"],Me=>{const mt=re(Me);return[ue(mt,"success","Success"),ue(mt,"processing","Info"),ue(mt,"error","Error"),ue(mt,"warning","Warning")]},ne),_e=function(Me,mt){var Qe={};for(var pt in Me)Object.prototype.hasOwnProperty.call(Me,pt)&&mt.indexOf(pt)<0&&(Qe[pt]=Me[pt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,pt=Object.getOwnPropertySymbols(Me);Ae<pt.length;Ae++)mt.indexOf(pt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Me,pt[Ae])&&(Qe[pt[Ae]]=Me[pt[Ae]]);return Qe};const xe=(Me,mt)=>{const{prefixCls:Qe,className:pt,rootClassName:Ae,style:De,children:Fe,icon:tt,color:Ve,onClose:Ct,closeIcon:Mt,closable:en,bordered:nn=!0}=Me,it=_e(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ct,direction:wt,tag:Vt}=z.useContext(de.E_),[Gt,Ln]=z.useState(!0);z.useEffect(()=>{"visible"in it&&Ln(it.visible)},[it.visible]);const He=(0,fe.o2)(Ve),on=(0,fe.yT)(Ve),In=He||on,or=Object.assign(Object.assign({backgroundColor:Ve&&!In?Ve:void 0},Vt==null?void 0:Vt.style),De),bn=ct("tag",Qe),[$t,qe]=a(bn),Je=ve()(bn,Vt==null?void 0:Vt.className,{[`${bn}-${Ve}`]:In,[`${bn}-has-color`]:Ve&&!In,[`${bn}-hidden`]:!Gt,[`${bn}-rtl`]:wt==="rtl",[`${bn}-borderless`]:!nn},pt,Ae,qe),Pt=rt=>{rt.stopPropagation(),Ct==null||Ct(rt),!rt.defaultPrevented&&Ln(!1)},[,Nt]=(0,pe.Z)(en,Mt,rt=>rt===null?z.createElement(ge.Z,{className:`${bn}-close-icon`,onClick:Pt}):z.createElement("span",{className:`${bn}-close-icon`,onClick:Pt},rt),null,!1),Wt=typeof it.onClick=="function"||Fe&&Fe.type==="a",dt=tt||null,yt=dt?z.createElement(z.Fragment,null,dt,Fe&&z.createElement("span",null,Fe)):Fe,Tt=z.createElement("span",Object.assign({},it,{ref:mt,className:Je,style:or}),yt,Nt,He&&z.createElement(oe,{key:"preset",prefixCls:bn}),on&&z.createElement(ye,{key:"status",prefixCls:bn}));return $t(Wt?z.createElement(ie.Z,{component:"Tag"},Tt):Tt)},Ce=z.forwardRef(xe);Ce.CheckableTag=b;var Be=Ce},79870:function(at,We,ee){"use strict";ee.d(We,{default:function(){return Di}});var z=ee(87462),ge=ee(4942),be=ee(71002),ve=ee(1413),fe=ee(74902),pe=ee(15671),ie=ee(43144),de=ee(97326),le=ee(60136),ce=ee(51630),se=ee(94184),me=ee.n(se),re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Et){var jt=Et.keyCode;if(Et.altKey&&!Et.ctrlKey||Et.metaKey||jt>=re.F1&&jt<=re.F12)return!1;switch(jt){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Et){if(Et>=re.ZERO&&Et<=re.NINE||Et>=re.NUM_ZERO&&Et<=re.NUM_MULTIPLY||Et>=re.A&&Et<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Et===0)return!0;switch(Et){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ne=re,a=ee(34952),y=ee(72978),E=ee(67294),b=ee(69610);function x(_t){var Et=_t.dropPosition,jt=_t.dropLevelOffset,Ue=_t.indent,zt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Et){case-1:zt.top=0,zt.left=-jt*Ue;break;case 1:zt.bottom=0,zt.left=-jt*Ue;break;case 0:zt.bottom=0,zt.left=Ue;break}return E.createElement("div",{style:zt})}var te=ee(36459),oe=ee(97685),ae=ee(45987);function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ye=ue()?E.useLayoutEffect:E.useEffect,_e=ye,xe=function(Et,jt){var Ue=React.useRef(!0);ye(function(){if(!Ue.current)return Et()},jt),ye(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},Ce=ee(73299),Be=ee(73935);function Me(_t){return _t instanceof HTMLElement||_t instanceof SVGElement}function mt(_t){return Me(_t)?_t:_t instanceof E.Component?Be.findDOMNode(_t):null}var Qe=ee(28580);function pt(_t,Et,jt){var Ue=React.useRef({});return(!("value"in Ue.current)||jt(Ue.current.condition,Et))&&(Ue.current.value=_t(),Ue.current.condition=Et),Ue.current.value}function Ae(_t,Et){typeof _t=="function"?_t(Et):(0,be.Z)(_t)==="object"&&_t&&"current"in _t&&(_t.current=Et)}function De(){for(var _t=arguments.length,Et=new Array(_t),jt=0;jt<_t;jt++)Et[jt]=arguments[jt];var Ue=Et.filter(function(zt){return zt});return Ue.length<=1?Ue[0]:function(zt){Et.forEach(function(ln){Ae(ln,zt)})}}function Fe(){for(var _t=arguments.length,Et=new Array(_t),jt=0;jt<_t;jt++)Et[jt]=arguments[jt];return useMemo(function(){return De.apply(void 0,Et)},Et,function(Ue,zt){return Ue.length===zt.length&&Ue.every(function(ln,gn){return ln===zt[gn]})})}function tt(_t){var Et,jt,Ue=(0,Qe.isMemo)(_t)?_t.type.type:_t.type;return!(typeof Ue=="function"&&!((Et=Ue.prototype)!==null&&Et!==void 0&&Et.render)||typeof _t=="function"&&!((jt=_t.prototype)!==null&&jt!==void 0&&jt.render))}function Ve(_t,Et){var jt={};return jt[_t.toLowerCase()]=Et.toLowerCase(),jt["Webkit".concat(_t)]="webkit".concat(Et),jt["Moz".concat(_t)]="moz".concat(Et),jt["ms".concat(_t)]="MS".concat(Et),jt["O".concat(_t)]="o".concat(Et.toLowerCase()),jt}function Ct(_t,Et){var jt={animationend:Ve("Animation","AnimationEnd"),transitionend:Ve("Transition","TransitionEnd")};return _t&&("AnimationEvent"in Et||delete jt.animationend.animation,"TransitionEvent"in Et||delete jt.transitionend.transition),jt}var Mt=Ct(ue(),typeof window!="undefined"?window:{}),en={};if(ue()){var nn=document.createElement("div");en=nn.style}var it={};function ct(_t){if(it[_t])return it[_t];var Et=Mt[_t];if(Et)for(var jt=Object.keys(Et),Ue=jt.length,zt=0;zt<Ue;zt+=1){var ln=jt[zt];if(Object.prototype.hasOwnProperty.call(Et,ln)&&ln in en)return it[_t]=Et[ln],it[_t]}return""}var wt=ct("animationend"),Vt=ct("transitionend"),Gt=!!(wt&&Vt),Ln=wt||"animationend",He=Vt||"transitionend";function on(_t,Et){if(!_t)return null;if((0,be.Z)(_t)==="object"){var jt=Et.replace(/-\w/g,function(Ue){return Ue[1].toUpperCase()});return _t[jt]}return"".concat(_t,"-").concat(Et)}var In="none",or="appear",bn="enter",$t="leave",qe="none",Je="prepare",Pt="start",Nt="active",Wt="end";function dt(_t){var Et=E.useRef(!1),jt=E.useState(_t),Ue=(0,oe.Z)(jt,2),zt=Ue[0],ln=Ue[1];E.useEffect(function(){return Et.current=!1,function(){Et.current=!0}},[]);function gn(Lt,Ut){Ut&&Et.current||ln(Lt)}return[zt,gn]}var yt=function(Et){return+setTimeout(Et,16)},Tt=function(Et){return clearTimeout(Et)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(yt=function(Et){return window.requestAnimationFrame(Et)},Tt=function(Et){return window.cancelAnimationFrame(Et)});var rt=0,cn=new Map;function Ge(_t){cn.delete(_t)}var gt=function(Et){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rt+=1;var Ue=rt;function zt(ln){if(ln===0)Ge(Ue),Et();else{var gn=yt(function(){zt(ln-1)});cn.set(Ue,gn)}}return zt(jt),Ue};gt.cancel=function(_t){var Et=cn.get(_t);return Ge(Et),Tt(Et)};var Gn=gt,Nn=function(){var _t=E.useRef(null);function Et(){Gn.cancel(_t.current)}function jt(Ue){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Et();var ln=Gn(function(){zt<=1?Ue({isCanceled:function(){return ln!==_t.current}}):jt(Ue,zt-1)});_t.current=ln}return E.useEffect(function(){return function(){Et()}},[]),[jt,Et]},St=ue()?E.useLayoutEffect:E.useEffect,Qt=St,hn=[Je,Pt,Nt,Wt],jn=!1,lr=!0;function Ft(_t){return _t===Nt||_t===Wt}var nr=function(_t,Et){var jt=dt(qe),Ue=(0,oe.Z)(jt,2),zt=Ue[0],ln=Ue[1],gn=Nn(),Lt=(0,oe.Z)(gn,2),Ut=Lt[0],Rt=Lt[1];function Pn(){ln(Je,!0)}return Qt(function(){if(zt!==qe&&zt!==Wt){var $n=hn.indexOf(zt),ir=hn[$n+1],Qn=Et(zt);Qn===jn?ln(ir,!0):Ut(function(dr){function br(){dr.isCanceled()||ln(ir,!0)}Qn===!0?br():Promise.resolve(Qn).then(br)})}},[_t,zt]),E.useEffect(function(){return function(){Rt()}},[]),[Pn,zt]},ar=function(_t){var Et=(0,E.useRef)(),jt=(0,E.useRef)(_t);jt.current=_t;var Ue=E.useCallback(function(gn){jt.current(gn)},[]);function zt(gn){gn&&(gn.removeEventListener(He,Ue),gn.removeEventListener(Ln,Ue))}function ln(gn){Et.current&&Et.current!==gn&&zt(Et.current),gn&&gn!==Et.current&&(gn.addEventListener(He,Ue),gn.addEventListener(Ln,Ue),Et.current=gn)}return E.useEffect(function(){return function(){zt(Et.current)}},[]),[ln,zt]};function wo(_t,Et,jt,Ue){var zt=Ue.motionEnter,ln=zt===void 0?!0:zt,gn=Ue.motionAppear,Lt=gn===void 0?!0:gn,Ut=Ue.motionLeave,Rt=Ut===void 0?!0:Ut,Pn=Ue.motionDeadline,$n=Ue.motionLeaveImmediately,ir=Ue.onAppearPrepare,Qn=Ue.onEnterPrepare,dr=Ue.onLeavePrepare,br=Ue.onAppearStart,mn=Ue.onEnterStart,Dt=Ue.onLeaveStart,Jt=Ue.onAppearActive,vn=Ue.onEnterActive,Vn=Ue.onLeaveActive,pr=Ue.onAppearEnd,Nr=Ue.onEnterEnd,ao=Ue.onLeaveEnd,Tr=Ue.onVisibleChanged,$e=dt(),ke=(0,oe.Z)($e,2),et=ke[0],At=ke[1],kt=dt(In),Zt=(0,oe.Z)(kt,2),Sn=Zt[0],wn=Zt[1],Fn=dt(null),On=(0,oe.Z)(Fn,2),Wn=On[0],gr=On[1],so=(0,E.useRef)(!1),co=(0,E.useRef)(null);function Jr(){return jt()}var po=(0,E.useRef)(!1);function Ro(Xo){var zo=Jr();if(!(Xo&&!Xo.deadline&&Xo.target!==zo)){var Si=po.current,xa;Sn===or&&Si?xa=pr==null?void 0:pr(zo,Xo):Sn===bn&&Si?xa=Nr==null?void 0:Nr(zo,Xo):Sn===$t&&Si&&(xa=ao==null?void 0:ao(zo,Xo)),Sn!==In&&Si&&xa!==!1&&(wn(In,!0),gr(null,!0))}}var Fo=ar(Ro),zr=(0,oe.Z)(Fo,1),Zo=zr[0],ho=E.useMemo(function(){var Xo,zo,Si;switch(Sn){case or:return Xo={},(0,ge.Z)(Xo,Je,ir),(0,ge.Z)(Xo,Pt,br),(0,ge.Z)(Xo,Nt,Jt),Xo;case bn:return zo={},(0,ge.Z)(zo,Je,Qn),(0,ge.Z)(zo,Pt,mn),(0,ge.Z)(zo,Nt,vn),zo;case $t:return Si={},(0,ge.Z)(Si,Je,dr),(0,ge.Z)(Si,Pt,Dt),(0,ge.Z)(Si,Nt,Vn),Si;default:return{}}},[Sn]),qo=nr(Sn,function(Xo){if(Xo===Je){var zo=ho[Je];return zo?zo(Jr()):jn}if(ei in ho){var Si;gr(((Si=ho[ei])===null||Si===void 0?void 0:Si.call(ho,Jr(),null))||null)}return ei===Nt&&(Zo(Jr()),Pn>0&&(clearTimeout(co.current),co.current=setTimeout(function(){Ro({deadline:!0})},Pn))),lr}),wi=(0,oe.Z)(qo,2),ya=wi[0],ei=wi[1],ca=Ft(ei);po.current=ca,Qt(function(){At(Et);var Xo=so.current;if(so.current=!0,!!_t){var zo;!Xo&&Et&&Lt&&(zo=or),Xo&&Et&&ln&&(zo=bn),(Xo&&!Et&&Rt||!Xo&&$n&&!Et&&Rt)&&(zo=$t),zo&&(wn(zo),ya())}},[Et]),(0,E.useEffect)(function(){(Sn===or&&!Lt||Sn===bn&&!ln||Sn===$t&&!Rt)&&wn(In)},[Lt,ln,Rt]),(0,E.useEffect)(function(){return function(){so.current=!1,clearTimeout(co.current)}},[]);var Hi=E.useRef(!1);(0,E.useEffect)(function(){et&&(Hi.current=!0),et!==void 0&&Sn===In&&((Hi.current||et)&&(Tr==null||Tr(et)),Hi.current=!0)},[et,Sn]);var _a=Wn;return ho[Je]&&ei===Pt&&(_a=(0,ve.Z)({transition:"none"},_a)),[Sn,ei,_a,et!=null?et:Et]}var Kr=function(_t){(0,le.Z)(jt,_t);var Et=(0,ce.Z)(jt);function jt(){return(0,pe.Z)(this,jt),Et.apply(this,arguments)}return(0,ie.Z)(jt,[{key:"render",value:function(){return this.props.children}}]),jt}(E.Component),Ur=Kr;function Ho(_t){var Et=_t;(0,be.Z)(_t)==="object"&&(Et=_t.transitionSupport);function jt(zt){return!!(zt.motionName&&Et)}var Ue=E.forwardRef(function(zt,ln){var gn=zt.visible,Lt=gn===void 0?!0:gn,Ut=zt.removeOnLeave,Rt=Ut===void 0?!0:Ut,Pn=zt.forceRender,$n=zt.children,ir=zt.motionName,Qn=zt.leavedClassName,dr=zt.eventProps,br=jt(zt),mn=(0,E.useRef)(),Dt=(0,E.useRef)();function Jt(){try{return mn.current instanceof HTMLElement?mn.current:mt(Dt.current)}catch(Fn){return null}}var vn=wo(br,Lt,Jt,zt),Vn=(0,oe.Z)(vn,4),pr=Vn[0],Nr=Vn[1],ao=Vn[2],Tr=Vn[3],$e=E.useRef(Tr);Tr&&($e.current=!0);var ke=E.useCallback(function(Fn){mn.current=Fn,Ae(ln,Fn)},[ln]),et,At=(0,ve.Z)((0,ve.Z)({},dr),{},{visible:Lt});if(!$n)et=null;else if(pr===In||!jt(zt))Tr?et=$n((0,ve.Z)({},At),ke):!Rt&&$e.current&&Qn?et=$n((0,ve.Z)((0,ve.Z)({},At),{},{className:Qn}),ke):Pn||!Rt&&!Qn?et=$n((0,ve.Z)((0,ve.Z)({},At),{},{style:{display:"none"}}),ke):et=null;else{var kt,Zt;Nr===Je?Zt="prepare":Ft(Nr)?Zt="active":Nr===Pt&&(Zt="start"),et=$n((0,ve.Z)((0,ve.Z)({},At),{},{className:me()(on(ir,pr),(kt={},(0,ge.Z)(kt,on(ir,"".concat(pr,"-").concat(Zt)),Zt),(0,ge.Z)(kt,ir,typeof ir=="string"),kt)),style:ao}),ke)}if(E.isValidElement(et)&&tt(et)){var Sn=et,wn=Sn.ref;wn||(et=E.cloneElement(et,{ref:ke}))}return E.createElement(Ur,{ref:Dt},et)});return Ue.displayName="CSSMotion",Ue}var Dn=Ho(Gt),Po="add",pi="keep",sa="remove",qi="removed";function Vr(_t){var Et;return _t&&(0,be.Z)(_t)==="object"&&"key"in _t?Et=_t:Et={key:_t},(0,ve.Z)((0,ve.Z)({},Et),{},{key:String(Et.key)})}function $o(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return _t.map(Vr)}function Jo(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=[],Ue=0,zt=Et.length,ln=$o(_t),gn=$o(Et);ln.forEach(function(Rt){for(var Pn=!1,$n=Ue;$n<zt;$n+=1){var ir=gn[$n];if(ir.key===Rt.key){Ue<$n&&(jt=jt.concat(gn.slice(Ue,$n).map(function(Qn){return(0,ve.Z)((0,ve.Z)({},Qn),{},{status:Po})})),Ue=$n),jt.push((0,ve.Z)((0,ve.Z)({},ir),{},{status:pi})),Ue+=1,Pn=!0;break}}Pn||jt.push((0,ve.Z)((0,ve.Z)({},Rt),{},{status:sa}))}),Ue<zt&&(jt=jt.concat(gn.slice(Ue).map(function(Rt){return(0,ve.Z)((0,ve.Z)({},Rt),{},{status:Po})})));var Lt={};jt.forEach(function(Rt){var Pn=Rt.key;Lt[Pn]=(Lt[Pn]||0)+1});var Ut=Object.keys(Lt).filter(function(Rt){return Lt[Rt]>1});return Ut.forEach(function(Rt){jt=jt.filter(function(Pn){var $n=Pn.key,ir=Pn.status;return $n!==Rt||ir!==sa}),jt.forEach(function(Pn){Pn.key===Rt&&(Pn.status=pi)})}),jt}var Li=["component","children","onVisibleChanged","onAllRemoved"],Lo=["status"],Ii=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function xi(_t){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dn,jt=function(Ue){(0,le.Z)(ln,Ue);var zt=(0,ce.Z)(ln);function ln(){var gn;(0,pe.Z)(this,ln);for(var Lt=arguments.length,Ut=new Array(Lt),Rt=0;Rt<Lt;Rt++)Ut[Rt]=arguments[Rt];return gn=zt.call.apply(zt,[this].concat(Ut)),(0,ge.Z)((0,de.Z)(gn),"state",{keyEntities:[]}),(0,ge.Z)((0,de.Z)(gn),"removeKey",function(Pn){var $n=gn.state.keyEntities,ir=$n.map(function(Qn){return Qn.key!==Pn?Qn:(0,ve.Z)((0,ve.Z)({},Qn),{},{status:qi})});return gn.setState({keyEntities:ir}),ir.filter(function(Qn){var dr=Qn.status;return dr!==qi}).length}),gn}return(0,ie.Z)(ln,[{key:"render",value:function(){var Lt=this,Ut=this.state.keyEntities,Rt=this.props,Pn=Rt.component,$n=Rt.children,ir=Rt.onVisibleChanged,Qn=Rt.onAllRemoved,dr=(0,ae.Z)(Rt,Li),br=Pn||E.Fragment,mn={};return Ii.forEach(function(Dt){mn[Dt]=dr[Dt],delete dr[Dt]}),delete dr.keys,E.createElement(br,dr,Ut.map(function(Dt){var Jt=Dt.status,vn=(0,ae.Z)(Dt,Lo),Vn=Jt===Po||Jt===pi;return E.createElement(Et,(0,z.Z)({},mn,{key:vn.key,visible:Vn,eventProps:vn,onVisibleChanged:function(Nr){if(ir==null||ir(Nr,{key:vn.key}),!Nr){var ao=Lt.removeKey(vn.key);ao===0&&Qn&&Qn()}}}),$n)}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,Ut){var Rt=Lt.keys,Pn=Ut.keyEntities,$n=$o(Rt),ir=Jo(Pn,$n);return{keyEntities:ir.filter(function(Qn){var dr=Pn.find(function(br){var mn=br.key;return Qn.key===mn});return!(dr&&dr.status===qi&&Qn.status===sa)})}}}]),ln}(E.Component);return(0,ge.Z)(jt,"defaultProps",{component:"div"}),jt}var Bo=xi(Gt),Xr=Dn,La=ee(56261);function _n(_t,Et){var jt=E.useState(!1),Ue=(0,oe.Z)(jt,2),zt=Ue[0],ln=Ue[1];E.useLayoutEffect(function(){if(zt)return _t(),function(){Et()}},[zt]),E.useLayoutEffect(function(){return ln(!0),function(){ln(!1)}},[])}var he=ee(83898),Se=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pe=function(Et,jt){var Ue=Et.className,zt=Et.style,ln=Et.motion,gn=Et.motionNodes,Lt=Et.motionType,Ut=Et.onMotionStart,Rt=Et.onMotionEnd,Pn=Et.active,$n=Et.treeNodeRequiredProps,ir=(0,ae.Z)(Et,Se),Qn=E.useState(!0),dr=(0,oe.Z)(Qn,2),br=dr[0],mn=dr[1],Dt=E.useContext(b.k),Jt=Dt.prefixCls,vn=gn&&Lt!=="hide";_e(function(){gn&&vn!==br&&mn(vn)},[gn]);var Vn=function(){gn&&Ut()},pr=E.useRef(!1),Nr=function(){gn&&!pr.current&&(pr.current=!0,Rt())};_n(Vn,Nr);var ao=function($e){vn===$e&&Nr()};return gn?E.createElement(Xr,(0,z.Z)({ref:jt,visible:br},ln,{motionAppear:Lt==="show",onVisibleChanged:ao}),function(Tr,$e){var ke=Tr.className,et=Tr.style;return E.createElement("div",{ref:$e,className:me()("".concat(Jt,"-treenode-motion"),ke),style:et},gn.map(function(At){var kt=(0,z.Z)({},((0,te.Z)(At.data),At.data)),Zt=At.title,Sn=At.key,wn=At.isStart,Fn=At.isEnd;delete kt.children;var On=(0,he.H8)(Sn,$n);return E.createElement(La.Z,(0,z.Z)({},kt,On,{title:Zt,active:Pn,data:At.data,key:Sn,isStart:wn,isEnd:Fn}))}))}):E.createElement(La.Z,(0,z.Z)({domRef:jt,className:Ue,style:zt},ir,{active:Pn}))};Pe.displayName="MotionTreeNode";var Le=E.forwardRef(Pe),Ne=Le;function nt(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=_t.length,Ue=Et.length;if(Math.abs(jt-Ue)!==1)return{add:!1,key:null};function zt(ln,gn){var Lt=new Map;ln.forEach(function(Rt){Lt.set(Rt,!0)});var Ut=gn.filter(function(Rt){return!Lt.has(Rt)});return Ut.length===1?Ut[0]:null}return jt<Ue?{add:!0,key:zt(_t,Et)}:{add:!1,key:zt(Et,_t)}}function lt(_t,Et,jt){var Ue=_t.findIndex(function(Lt){return Lt.key===jt}),zt=_t[Ue+1],ln=Et.findIndex(function(Lt){return Lt.key===jt});if(zt){var gn=Et.findIndex(function(Lt){return Lt.key===zt.key});return Et.slice(ln+1,gn)}return Et.slice(ln+1)}var fn=["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"],tn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Tn=function(){},fr="RC_TREE_MOTION_".concat(Math.random()),Lr={key:fr},Ot={key:fr,level:0,index:0,pos:"0",node:Lr,nodes:[Lr]},cr={parent:null,children:[],pos:Ot.pos,data:Lr,title:null,key:fr,isStart:[],isEnd:[]};function sr(_t,Et,jt,Ue){return Et===!1||!jt?_t:_t.slice(0,Math.ceil(jt/Ue)+1)}function Rn(_t){var Et=_t.key,jt=_t.pos;return(0,he.km)(Et,jt)}function Hn(_t){for(var Et=String(_t.data.key),jt=_t;jt.parent;)jt=jt.parent,Et="".concat(jt.data.key," > ").concat(Et);return Et}var tr=E.forwardRef(function(_t,Et){var jt=_t.prefixCls,Ue=_t.data,zt=_t.selectable,ln=_t.checkable,gn=_t.expandedKeys,Lt=_t.selectedKeys,Ut=_t.checkedKeys,Rt=_t.loadedKeys,Pn=_t.loadingKeys,$n=_t.halfCheckedKeys,ir=_t.keyEntities,Qn=_t.disabled,dr=_t.dragging,br=_t.dragOverNodeKey,mn=_t.dropPosition,Dt=_t.motion,Jt=_t.height,vn=_t.itemHeight,Vn=_t.virtual,pr=_t.focusable,Nr=_t.activeItem,ao=_t.focused,Tr=_t.tabIndex,$e=_t.onKeyDown,ke=_t.onFocus,et=_t.onBlur,At=_t.onActiveChange,kt=_t.onListChangeStart,Zt=_t.onListChangeEnd,Sn=(0,ae.Z)(_t,fn),wn=E.useRef(null),Fn=E.useRef(null);E.useImperativeHandle(Et,function(){return{scrollTo:function(ea){wn.current.scrollTo(ea)},getIndentWidth:function(){return Fn.current.offsetWidth}}});var On=E.useState(gn),Wn=(0,oe.Z)(On,2),gr=Wn[0],so=Wn[1],co=E.useState(Ue),Jr=(0,oe.Z)(co,2),po=Jr[0],Ro=Jr[1],Fo=E.useState(Ue),zr=(0,oe.Z)(Fo,2),Zo=zr[0],ho=zr[1],qo=E.useState([]),wi=(0,oe.Z)(qo,2),ya=wi[0],ei=wi[1],ca=E.useState(null),Hi=(0,oe.Z)(ca,2),_a=Hi[0],Xo=Hi[1],zo=E.useRef(Ue);zo.current=Ue;function Si(){var Qo=zo.current;Ro(Qo),ho(Qo),ei([]),Xo(null),Zt()}_e(function(){so(gn);var Qo=nt(gr,gn);if(Qo.key!==null)if(Qo.add){var ea=po.findIndex(function(aa){var Ta=aa.key;return Ta===Qo.key}),ua=sr(lt(po,Ue,Qo.key),Vn,Jt,vn),Or=po.slice();Or.splice(ea+1,0,cr),ho(Or),ei(ua),Xo("show")}else{var fa=Ue.findIndex(function(aa){var Ta=aa.key;return Ta===Qo.key}),ha=sr(lt(Ue,po,Qo.key),Vn,Jt,vn),ma=Ue.slice();ma.splice(fa+1,0,cr),ho(ma),ei(ha),Xo("hide")}else po!==Ue&&(Ro(Ue),ho(Ue))},[gn,Ue]),E.useEffect(function(){dr||Si()},[dr]);var xa=Dt?Zo:Ue,za={expandedKeys:gn,selectedKeys:Lt,loadedKeys:Rt,loadingKeys:Pn,checkedKeys:Ut,halfCheckedKeys:$n,dragOverNodeKey:br,dropPosition:mn,keyEntities:ir};return E.createElement(E.Fragment,null,ao&&Nr&&E.createElement("span",{style:tn,"aria-live":"assertive"},Hn(Nr)),E.createElement("div",null,E.createElement("input",{style:tn,disabled:pr===!1||Qn,tabIndex:pr!==!1?Tr:null,onKeyDown:$e,onFocus:ke,onBlur:et,value:"",onChange:Tn,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(jt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(jt,"-indent")},E.createElement("div",{ref:Fn,className:"".concat(jt,"-indent-unit")}))),E.createElement(Ce.Z,(0,z.Z)({},Sn,{data:xa,itemKey:Rn,height:Jt,fullHeight:!1,virtual:Vn,itemHeight:vn,prefixCls:"".concat(jt,"-list"),ref:wn,onVisibleChange:function(ea,ua){var Or=new Set(ea),fa=ua.filter(function(ha){return!Or.has(ha)});fa.some(function(ha){return Rn(ha)===fr})&&Si()}}),function(Qo){var ea=Qo.pos,ua=(0,z.Z)({},((0,te.Z)(Qo.data),Qo.data)),Or=Qo.title,fa=Qo.key,ha=Qo.isStart,ma=Qo.isEnd,aa=(0,he.km)(fa,ea);delete ua.key,delete ua.children;var Ta=(0,he.H8)(aa,za);return E.createElement(Ne,(0,z.Z)({},ua,Ta,{title:Or,active:!!Nr&&fa===Nr.key,pos:ea,data:Qo.data,isStart:ha,isEnd:ma,motion:Dt,motionNodes:fa===fr?ya:null,motionType:_a,onMotionStart:kt,onMotionEnd:Si,treeNodeRequiredProps:za,onMouseMove:function(){At(null)}}))}))});tr.displayName="NodeList";var jr=tr,Pr=ee(29873),Yi=ee(97153),ti=ee(3596),xr=10,yo=function(_t){(0,le.Z)(jt,_t);var Et=(0,ce.Z)(jt);function jt(){var Ue;(0,pe.Z)(this,jt);for(var zt=arguments.length,ln=new Array(zt),gn=0;gn<zt;gn++)ln[gn]=arguments[gn];return Ue=Et.call.apply(Et,[this].concat(ln)),Ue.destroyed=!1,Ue.delayedDragEnterLogic=void 0,Ue.loadingRetryTimes={},Ue.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,he.w$)()},Ue.dragStartMousePosition=null,Ue.dragNode=void 0,Ue.currentMouseOverDroppableNodeKey=null,Ue.listRef=E.createRef(),Ue.onNodeDragStart=function(Lt,Ut){var Rt=Ue.state,Pn=Rt.expandedKeys,$n=Rt.keyEntities,ir=Ue.props.onDragStart,Qn=Ut.props.eventKey;Ue.dragNode=Ut,Ue.dragStartMousePosition={x:Lt.clientX,y:Lt.clientY};var dr=(0,Pr._5)(Pn,Qn);Ue.setState({draggingNodeKey:Qn,dragChildrenKeys:(0,Pr.wA)(Qn,$n),indent:Ue.listRef.current.getIndentWidth()}),Ue.setExpandedKeys(dr),window.addEventListener("dragend",Ue.onWindowDragEnd),ir==null||ir({event:Lt,node:(0,he.F)(Ut.props)})},Ue.onNodeDragEnter=function(Lt,Ut){var Rt=Ue.state,Pn=Rt.expandedKeys,$n=Rt.keyEntities,ir=Rt.dragChildrenKeys,Qn=Rt.flattenNodes,dr=Rt.indent,br=Ue.props,mn=br.onDragEnter,Dt=br.onExpand,Jt=br.allowDrop,vn=br.direction,Vn=Ut.props,pr=Vn.pos,Nr=Vn.eventKey,ao=(0,de.Z)(Ue),Tr=ao.dragNode;if(Ue.currentMouseOverDroppableNodeKey!==Nr&&(Ue.currentMouseOverDroppableNodeKey=Nr),!Tr){Ue.resetDragState();return}var $e=(0,Pr.OM)(Lt,Tr,Ut,dr,Ue.dragStartMousePosition,Jt,Qn,$n,Pn,vn),ke=$e.dropPosition,et=$e.dropLevelOffset,At=$e.dropTargetKey,kt=$e.dropContainerKey,Zt=$e.dropTargetPos,Sn=$e.dropAllowed,wn=$e.dragOverNodeKey;if(ir.indexOf(At)!==-1||!Sn){Ue.resetDragState();return}if(Ue.delayedDragEnterLogic||(Ue.delayedDragEnterLogic={}),Object.keys(Ue.delayedDragEnterLogic).forEach(function(Fn){clearTimeout(Ue.delayedDragEnterLogic[Fn])}),Tr.props.eventKey!==Ut.props.eventKey&&(Lt.persist(),Ue.delayedDragEnterLogic[pr]=window.setTimeout(function(){if(Ue.state.draggingNodeKey!==null){var Fn=(0,fe.Z)(Pn),On=(0,ti.Z)($n,Ut.props.eventKey);On&&(On.children||[]).length&&(Fn=(0,Pr.L0)(Pn,Ut.props.eventKey)),"expandedKeys"in Ue.props||Ue.setExpandedKeys(Fn),Dt==null||Dt(Fn,{node:(0,he.F)(Ut.props),expanded:!0,nativeEvent:Lt.nativeEvent})}},800)),Tr.props.eventKey===At&&et===0){Ue.resetDragState();return}Ue.setState({dragOverNodeKey:wn,dropPosition:ke,dropLevelOffset:et,dropTargetKey:At,dropContainerKey:kt,dropTargetPos:Zt,dropAllowed:Sn}),mn==null||mn({event:Lt,node:(0,he.F)(Ut.props),expandedKeys:Pn})},Ue.onNodeDragOver=function(Lt,Ut){var Rt=Ue.state,Pn=Rt.dragChildrenKeys,$n=Rt.flattenNodes,ir=Rt.keyEntities,Qn=Rt.expandedKeys,dr=Rt.indent,br=Ue.props,mn=br.onDragOver,Dt=br.allowDrop,Jt=br.direction,vn=(0,de.Z)(Ue),Vn=vn.dragNode;if(Vn){var pr=(0,Pr.OM)(Lt,Vn,Ut,dr,Ue.dragStartMousePosition,Dt,$n,ir,Qn,Jt),Nr=pr.dropPosition,ao=pr.dropLevelOffset,Tr=pr.dropTargetKey,$e=pr.dropContainerKey,ke=pr.dropAllowed,et=pr.dropTargetPos,At=pr.dragOverNodeKey;Pn.indexOf(Tr)!==-1||!ke||(Vn.props.eventKey===Tr&&ao===0?Ue.state.dropPosition===null&&Ue.state.dropLevelOffset===null&&Ue.state.dropTargetKey===null&&Ue.state.dropContainerKey===null&&Ue.state.dropTargetPos===null&&Ue.state.dropAllowed===!1&&Ue.state.dragOverNodeKey===null||Ue.resetDragState():Nr===Ue.state.dropPosition&&ao===Ue.state.dropLevelOffset&&Tr===Ue.state.dropTargetKey&&$e===Ue.state.dropContainerKey&&et===Ue.state.dropTargetPos&&ke===Ue.state.dropAllowed&&At===Ue.state.dragOverNodeKey||Ue.setState({dropPosition:Nr,dropLevelOffset:ao,dropTargetKey:Tr,dropContainerKey:$e,dropTargetPos:et,dropAllowed:ke,dragOverNodeKey:At}),mn==null||mn({event:Lt,node:(0,he.F)(Ut.props)}))}},Ue.onNodeDragLeave=function(Lt,Ut){Ue.currentMouseOverDroppableNodeKey===Ut.props.eventKey&&!Lt.currentTarget.contains(Lt.relatedTarget)&&(Ue.resetDragState(),Ue.currentMouseOverDroppableNodeKey=null);var Rt=Ue.props.onDragLeave;Rt==null||Rt({event:Lt,node:(0,he.F)(Ut.props)})},Ue.onWindowDragEnd=function(Lt){Ue.onNodeDragEnd(Lt,null,!0),window.removeEventListener("dragend",Ue.onWindowDragEnd)},Ue.onNodeDragEnd=function(Lt,Ut){var Rt=Ue.props.onDragEnd;Ue.setState({dragOverNodeKey:null}),Ue.cleanDragState(),Rt==null||Rt({event:Lt,node:(0,he.F)(Ut.props)}),Ue.dragNode=null,window.removeEventListener("dragend",Ue.onWindowDragEnd)},Ue.onNodeDrop=function(Lt,Ut){var Rt,Pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$n=Ue.state,ir=$n.dragChildrenKeys,Qn=$n.dropPosition,dr=$n.dropTargetKey,br=$n.dropTargetPos,mn=$n.dropAllowed;if(mn){var Dt=Ue.props.onDrop;if(Ue.setState({dragOverNodeKey:null}),Ue.cleanDragState(),dr!==null){var Jt=(0,ve.Z)((0,ve.Z)({},(0,he.H8)(dr,Ue.getTreeNodeRequiredProps())),{},{active:((Rt=Ue.getActiveItem())===null||Rt===void 0?void 0:Rt.key)===dr,data:(0,ti.Z)(Ue.state.keyEntities,dr).node}),vn=ir.indexOf(dr)!==-1;(0,y.ZP)(!vn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Vn=(0,Pr.yx)(br),pr={event:Lt,node:(0,he.F)(Jt),dragNode:Ue.dragNode?(0,he.F)(Ue.dragNode.props):null,dragNodesKeys:[Ue.dragNode.props.eventKey].concat(ir),dropToGap:Qn!==0,dropPosition:Qn+Number(Vn[Vn.length-1])};Pn||Dt==null||Dt(pr),Ue.dragNode=null}}},Ue.cleanDragState=function(){var Lt=Ue.state.draggingNodeKey;Lt!==null&&Ue.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ue.dragStartMousePosition=null,Ue.currentMouseOverDroppableNodeKey=null},Ue.triggerExpandActionExpand=function(Lt,Ut){var Rt=Ue.state,Pn=Rt.expandedKeys,$n=Rt.flattenNodes,ir=Ut.expanded,Qn=Ut.key,dr=Ut.isLeaf;if(!(dr||Lt.shiftKey||Lt.metaKey||Lt.ctrlKey)){var br=$n.filter(function(Dt){return Dt.key===Qn})[0],mn=(0,he.F)((0,ve.Z)((0,ve.Z)({},(0,he.H8)(Qn,Ue.getTreeNodeRequiredProps())),{},{data:br.data}));Ue.setExpandedKeys(ir?(0,Pr._5)(Pn,Qn):(0,Pr.L0)(Pn,Qn)),Ue.onNodeExpand(Lt,mn)}},Ue.onNodeClick=function(Lt,Ut){var Rt=Ue.props,Pn=Rt.onClick,$n=Rt.expandAction;$n==="click"&&Ue.triggerExpandActionExpand(Lt,Ut),Pn==null||Pn(Lt,Ut)},Ue.onNodeDoubleClick=function(Lt,Ut){var Rt=Ue.props,Pn=Rt.onDoubleClick,$n=Rt.expandAction;$n==="doubleClick"&&Ue.triggerExpandActionExpand(Lt,Ut),Pn==null||Pn(Lt,Ut)},Ue.onNodeSelect=function(Lt,Ut){var Rt=Ue.state.selectedKeys,Pn=Ue.state,$n=Pn.keyEntities,ir=Pn.fieldNames,Qn=Ue.props,dr=Qn.onSelect,br=Qn.multiple,mn=Ut.selected,Dt=Ut[ir.key],Jt=!mn;Jt?br?Rt=(0,Pr.L0)(Rt,Dt):Rt=[Dt]:Rt=(0,Pr._5)(Rt,Dt);var vn=Rt.map(function(Vn){var pr=(0,ti.Z)($n,Vn);return pr?pr.node:null}).filter(function(Vn){return Vn});Ue.setUncontrolledState({selectedKeys:Rt}),dr==null||dr(Rt,{event:"select",selected:Jt,node:Ut,selectedNodes:vn,nativeEvent:Lt.nativeEvent})},Ue.onNodeCheck=function(Lt,Ut,Rt){var Pn=Ue.state,$n=Pn.keyEntities,ir=Pn.checkedKeys,Qn=Pn.halfCheckedKeys,dr=Ue.props,br=dr.checkStrictly,mn=dr.onCheck,Dt=Ut.key,Jt,vn={event:"check",node:Ut,checked:Rt,nativeEvent:Lt.nativeEvent};if(br){var Vn=Rt?(0,Pr.L0)(ir,Dt):(0,Pr._5)(ir,Dt),pr=(0,Pr._5)(Qn,Dt);Jt={checked:Vn,halfChecked:pr},vn.checkedNodes=Vn.map(function(et){return(0,ti.Z)($n,et)}).filter(function(et){return et}).map(function(et){return et.node}),Ue.setUncontrolledState({checkedKeys:Vn})}else{var Nr=(0,Yi.S)([].concat((0,fe.Z)(ir),[Dt]),!0,$n),ao=Nr.checkedKeys,Tr=Nr.halfCheckedKeys;if(!Rt){var $e=new Set(ao);$e.delete(Dt);var ke=(0,Yi.S)(Array.from($e),{checked:!1,halfCheckedKeys:Tr},$n);ao=ke.checkedKeys,Tr=ke.halfCheckedKeys}Jt=ao,vn.checkedNodes=[],vn.checkedNodesPositions=[],vn.halfCheckedKeys=Tr,ao.forEach(function(et){var At=(0,ti.Z)($n,et);if(At){var kt=At.node,Zt=At.pos;vn.checkedNodes.push(kt),vn.checkedNodesPositions.push({node:kt,pos:Zt})}}),Ue.setUncontrolledState({checkedKeys:ao},!1,{halfCheckedKeys:Tr})}mn==null||mn(Jt,vn)},Ue.onNodeLoad=function(Lt){var Ut=Lt.key,Rt=new Promise(function(Pn,$n){Ue.setState(function(ir){var Qn=ir.loadedKeys,dr=Qn===void 0?[]:Qn,br=ir.loadingKeys,mn=br===void 0?[]:br,Dt=Ue.props,Jt=Dt.loadData,vn=Dt.onLoad;if(!Jt||dr.indexOf(Ut)!==-1||mn.indexOf(Ut)!==-1)return null;var Vn=Jt(Lt);return Vn.then(function(){var pr=Ue.state.loadedKeys,Nr=(0,Pr.L0)(pr,Ut);vn==null||vn(Nr,{event:"load",node:Lt}),Ue.setUncontrolledState({loadedKeys:Nr}),Ue.setState(function(ao){return{loadingKeys:(0,Pr._5)(ao.loadingKeys,Ut)}}),Pn()}).catch(function(pr){if(Ue.setState(function(ao){return{loadingKeys:(0,Pr._5)(ao.loadingKeys,Ut)}}),Ue.loadingRetryTimes[Ut]=(Ue.loadingRetryTimes[Ut]||0)+1,Ue.loadingRetryTimes[Ut]>=xr){var Nr=Ue.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ue.setUncontrolledState({loadedKeys:(0,Pr.L0)(Nr,Ut)}),Pn()}$n(pr)}),{loadingKeys:(0,Pr.L0)(mn,Ut)}})});return Rt.catch(function(){}),Rt},Ue.onNodeMouseEnter=function(Lt,Ut){var Rt=Ue.props.onMouseEnter;Rt==null||Rt({event:Lt,node:Ut})},Ue.onNodeMouseLeave=function(Lt,Ut){var Rt=Ue.props.onMouseLeave;Rt==null||Rt({event:Lt,node:Ut})},Ue.onNodeContextMenu=function(Lt,Ut){var Rt=Ue.props.onRightClick;Rt&&(Lt.preventDefault(),Rt({event:Lt,node:Ut}))},Ue.onFocus=function(){var Lt=Ue.props.onFocus;Ue.setState({focused:!0});for(var Ut=arguments.length,Rt=new Array(Ut),Pn=0;Pn<Ut;Pn++)Rt[Pn]=arguments[Pn];Lt==null||Lt.apply(void 0,Rt)},Ue.onBlur=function(){var Lt=Ue.props.onBlur;Ue.setState({focused:!1}),Ue.onActiveChange(null);for(var Ut=arguments.length,Rt=new Array(Ut),Pn=0;Pn<Ut;Pn++)Rt[Pn]=arguments[Pn];Lt==null||Lt.apply(void 0,Rt)},Ue.getTreeNodeRequiredProps=function(){var Lt=Ue.state,Ut=Lt.expandedKeys,Rt=Lt.selectedKeys,Pn=Lt.loadedKeys,$n=Lt.loadingKeys,ir=Lt.checkedKeys,Qn=Lt.halfCheckedKeys,dr=Lt.dragOverNodeKey,br=Lt.dropPosition,mn=Lt.keyEntities;return{expandedKeys:Ut||[],selectedKeys:Rt||[],loadedKeys:Pn||[],loadingKeys:$n||[],checkedKeys:ir||[],halfCheckedKeys:Qn||[],dragOverNodeKey:dr,dropPosition:br,keyEntities:mn}},Ue.setExpandedKeys=function(Lt){var Ut=Ue.state,Rt=Ut.treeData,Pn=Ut.fieldNames,$n=(0,he.oH)(Rt,Lt,Pn);Ue.setUncontrolledState({expandedKeys:Lt,flattenNodes:$n},!0)},Ue.onNodeExpand=function(Lt,Ut){var Rt=Ue.state.expandedKeys,Pn=Ue.state,$n=Pn.listChanging,ir=Pn.fieldNames,Qn=Ue.props,dr=Qn.onExpand,br=Qn.loadData,mn=Ut.expanded,Dt=Ut[ir.key];if(!$n){var Jt=Rt.indexOf(Dt),vn=!mn;if((0,y.ZP)(mn&&Jt!==-1||!mn&&Jt===-1,"Expand state not sync with index check"),vn?Rt=(0,Pr.L0)(Rt,Dt):Rt=(0,Pr._5)(Rt,Dt),Ue.setExpandedKeys(Rt),dr==null||dr(Rt,{node:Ut,expanded:vn,nativeEvent:Lt.nativeEvent}),vn&&br){var Vn=Ue.onNodeLoad(Ut);Vn&&Vn.then(function(){var pr=(0,he.oH)(Ue.state.treeData,Rt,ir);Ue.setUncontrolledState({flattenNodes:pr})}).catch(function(){var pr=Ue.state.expandedKeys,Nr=(0,Pr._5)(pr,Dt);Ue.setExpandedKeys(Nr)})}}},Ue.onListChangeStart=function(){Ue.setUncontrolledState({listChanging:!0})},Ue.onListChangeEnd=function(){setTimeout(function(){Ue.setUncontrolledState({listChanging:!1})})},Ue.onActiveChange=function(Lt){var Ut=Ue.state.activeKey,Rt=Ue.props.onActiveChange;Ut!==Lt&&(Ue.setState({activeKey:Lt}),Lt!==null&&Ue.scrollTo({key:Lt}),Rt==null||Rt(Lt))},Ue.getActiveItem=function(){var Lt=Ue.state,Ut=Lt.activeKey,Rt=Lt.flattenNodes;return Ut===null?null:Rt.find(function(Pn){var $n=Pn.key;return $n===Ut})||null},Ue.offsetActiveKey=function(Lt){var Ut=Ue.state,Rt=Ut.flattenNodes,Pn=Ut.activeKey,$n=Rt.findIndex(function(dr){var br=dr.key;return br===Pn});$n===-1&&Lt<0&&($n=Rt.length),$n=($n+Lt+Rt.length)%Rt.length;var ir=Rt[$n];if(ir){var Qn=ir.key;Ue.onActiveChange(Qn)}else Ue.onActiveChange(null)},Ue.onKeyDown=function(Lt){var Ut=Ue.state,Rt=Ut.activeKey,Pn=Ut.expandedKeys,$n=Ut.checkedKeys,ir=Ut.fieldNames,Qn=Ue.props,dr=Qn.onKeyDown,br=Qn.checkable,mn=Qn.selectable;switch(Lt.which){case ne.UP:{Ue.offsetActiveKey(-1),Lt.preventDefault();break}case ne.DOWN:{Ue.offsetActiveKey(1),Lt.preventDefault();break}}var Dt=Ue.getActiveItem();if(Dt&&Dt.data){var Jt=Ue.getTreeNodeRequiredProps(),vn=Dt.data.isLeaf===!1||!!(Dt.data[ir.children]||[]).length,Vn=(0,he.F)((0,ve.Z)((0,ve.Z)({},(0,he.H8)(Rt,Jt)),{},{data:Dt.data,active:!0}));switch(Lt.which){case ne.LEFT:{vn&&Pn.includes(Rt)?Ue.onNodeExpand({},Vn):Dt.parent&&Ue.onActiveChange(Dt.parent.key),Lt.preventDefault();break}case ne.RIGHT:{vn&&!Pn.includes(Rt)?Ue.onNodeExpand({},Vn):Dt.children&&Dt.children.length&&Ue.onActiveChange(Dt.children[0].key),Lt.preventDefault();break}case ne.ENTER:case ne.SPACE:{br&&!Vn.disabled&&Vn.checkable!==!1&&!Vn.disableCheckbox?Ue.onNodeCheck({},Vn,!$n.includes(Rt)):!br&&mn&&!Vn.disabled&&Vn.selectable!==!1&&Ue.onNodeSelect({},Vn);break}}}dr==null||dr(Lt)},Ue.setUncontrolledState=function(Lt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ue.destroyed){var Pn=!1,$n=!0,ir={};Object.keys(Lt).forEach(function(Qn){if(Qn in Ue.props){$n=!1;return}Pn=!0,ir[Qn]=Lt[Qn]}),Pn&&(!Ut||$n)&&Ue.setState((0,ve.Z)((0,ve.Z)({},ir),Rt))}},Ue.scrollTo=function(Lt){Ue.listRef.current.scrollTo(Lt)},Ue}return(0,ie.Z)(jt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var zt=this.props.activeKey;zt!==void 0&&zt!==this.state.activeKey&&(this.setState({activeKey:zt}),zt!==null&&this.scrollTo({key:zt}))}},{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 zt,ln=this.state,gn=ln.focused,Lt=ln.flattenNodes,Ut=ln.keyEntities,Rt=ln.draggingNodeKey,Pn=ln.activeKey,$n=ln.dropLevelOffset,ir=ln.dropContainerKey,Qn=ln.dropTargetKey,dr=ln.dropPosition,br=ln.dragOverNodeKey,mn=ln.indent,Dt=this.props,Jt=Dt.prefixCls,vn=Dt.className,Vn=Dt.style,pr=Dt.showLine,Nr=Dt.focusable,ao=Dt.tabIndex,Tr=ao===void 0?0:ao,$e=Dt.selectable,ke=Dt.showIcon,et=Dt.icon,At=Dt.switcherIcon,kt=Dt.draggable,Zt=Dt.checkable,Sn=Dt.checkStrictly,wn=Dt.disabled,Fn=Dt.motion,On=Dt.loadData,Wn=Dt.filterTreeNode,gr=Dt.height,so=Dt.itemHeight,co=Dt.virtual,Jr=Dt.titleRender,po=Dt.dropIndicatorRender,Ro=Dt.onContextMenu,Fo=Dt.onScroll,zr=Dt.direction,Zo=Dt.rootClassName,ho=Dt.rootStyle,qo=(0,a.Z)(this.props,{aria:!0,data:!0}),wi;return kt&&((0,be.Z)(kt)==="object"?wi=kt:typeof kt=="function"?wi={nodeDraggable:kt}:wi={}),E.createElement(b.k.Provider,{value:{prefixCls:Jt,selectable:$e,showIcon:ke,icon:et,switcherIcon:At,draggable:wi,draggingNodeKey:Rt,checkable:Zt,checkStrictly:Sn,disabled:wn,keyEntities:Ut,dropLevelOffset:$n,dropContainerKey:ir,dropTargetKey:Qn,dropPosition:dr,dragOverNodeKey:br,indent:mn,direction:zr,dropIndicatorRender:po,loadData:On,filterTreeNode:Wn,titleRender:Jr,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}},E.createElement("div",{role:"tree",className:me()(Jt,vn,Zo,(zt={},(0,ge.Z)(zt,"".concat(Jt,"-show-line"),pr),(0,ge.Z)(zt,"".concat(Jt,"-focused"),gn),(0,ge.Z)(zt,"".concat(Jt,"-active-focused"),Pn!==null),zt)),style:ho},E.createElement(jr,(0,z.Z)({ref:this.listRef,prefixCls:Jt,style:Vn,data:Lt,disabled:wn,selectable:$e,checkable:!!Zt,motion:Fn,dragging:Rt!==null,height:gr,itemHeight:so,virtual:co,focusable:Nr,focused:gn,tabIndex:Tr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ro,onScroll:Fo},this.getTreeNodeRequiredProps(),qo))))}}],[{key:"getDerivedStateFromProps",value:function(zt,ln){var gn=ln.prevProps,Lt={prevProps:zt};function Ut(Nr){return!gn&&Nr in zt||gn&&gn[Nr]!==zt[Nr]}var Rt,Pn=ln.fieldNames;if(Ut("fieldNames")&&(Pn=(0,he.w$)(zt.fieldNames),Lt.fieldNames=Pn),Ut("treeData")?Rt=zt.treeData:Ut("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Rt=(0,he.zn)(zt.children)),Rt){Lt.treeData=Rt;var $n=(0,he.I8)(Rt,{fieldNames:Pn});Lt.keyEntities=(0,ve.Z)((0,ge.Z)({},fr,Ot),$n.keyEntities)}var ir=Lt.keyEntities||ln.keyEntities;if(Ut("expandedKeys")||gn&&Ut("autoExpandParent"))Lt.expandedKeys=zt.autoExpandParent||!gn&&zt.defaultExpandParent?(0,Pr.r7)(zt.expandedKeys,ir):zt.expandedKeys;else if(!gn&&zt.defaultExpandAll){var Qn=(0,ve.Z)({},ir);delete Qn[fr],Lt.expandedKeys=Object.keys(Qn).map(function(Nr){return Qn[Nr].key})}else!gn&&zt.defaultExpandedKeys&&(Lt.expandedKeys=zt.autoExpandParent||zt.defaultExpandParent?(0,Pr.r7)(zt.defaultExpandedKeys,ir):zt.defaultExpandedKeys);if(Lt.expandedKeys||delete Lt.expandedKeys,Rt||Lt.expandedKeys){var dr=(0,he.oH)(Rt||ln.treeData,Lt.expandedKeys||ln.expandedKeys,Pn);Lt.flattenNodes=dr}if(zt.selectable&&(Ut("selectedKeys")?Lt.selectedKeys=(0,Pr.BT)(zt.selectedKeys,zt):!gn&&zt.defaultSelectedKeys&&(Lt.selectedKeys=(0,Pr.BT)(zt.defaultSelectedKeys,zt))),zt.checkable){var br;if(Ut("checkedKeys")?br=(0,Pr.E6)(zt.checkedKeys)||{}:!gn&&zt.defaultCheckedKeys?br=(0,Pr.E6)(zt.defaultCheckedKeys)||{}:Rt&&(br=(0,Pr.E6)(zt.checkedKeys)||{checkedKeys:ln.checkedKeys,halfCheckedKeys:ln.halfCheckedKeys}),br){var mn=br,Dt=mn.checkedKeys,Jt=Dt===void 0?[]:Dt,vn=mn.halfCheckedKeys,Vn=vn===void 0?[]:vn;if(!zt.checkStrictly){var pr=(0,Yi.S)(Jt,!0,ir);Jt=pr.checkedKeys,Vn=pr.halfCheckedKeys}Lt.checkedKeys=Jt,Lt.halfCheckedKeys=Vn}}return Ut("loadedKeys")&&(Lt.loadedKeys=zt.loadedKeys),Lt}}]),jt}(E.Component);yo.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:x,allowDrop:function(){return!0},expandAction:!1},yo.TreeNode=La.Z;var Mi=yo,Pi=Mi,Ai=ee(73148),pn=ee(56747),Ka={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"},Ui=Ka,Vo=ee(74643),Aa=function(Et,jt){return E.createElement(Vo.Z,(0,z.Z)({},Et,{ref:jt,icon:Ui}))},Bn=E.forwardRef(Aa),mr=ee(53124),Hr=ee(50881),rr=ee(33603),di=ee(32157);const bi=4;function la(_t){const{dropPosition:Et,dropLevelOffset:jt,prefixCls:Ue,indent:zt,direction:ln="ltr"}=_t,gn=ln==="ltr"?"left":"right",Lt=ln==="ltr"?"right":"left",Ut={[gn]:-jt*zt+bi,[Lt]:0};switch(Et){case-1:Ut.top=-3;break;case 1:Ut.bottom=-3;break;default:Ut.bottom=-3,Ut[gn]=zt+bi;break}return E.createElement("div",{style:Ut,className:`${Ue}-drop-indicator`})}var Da=ee(99184),ft=E.forwardRef((_t,Et)=>{const{getPrefixCls:jt,direction:Ue,virtual:zt,tree:ln}=E.useContext(mr.E_),{prefixCls:gn,className:Lt,showIcon:Ut=!1,showLine:Rt,switcherIcon:Pn,blockNode:$n=!1,children:ir,checkable:Qn=!1,selectable:dr=!0,draggable:br,motion:mn,style:Dt}=_t,Jt=jt("tree",gn),vn=jt(),Vn=mn!=null?mn:Object.assign(Object.assign({},(0,rr.Z)(vn)),{motionAppear:!1}),pr=Object.assign(Object.assign({},_t),{checkable:Qn,selectable:dr,showIcon:Ut,motion:Vn,blockNode:$n,showLine:!!Rt,dropIndicatorRender:la}),[Nr,ao]=(0,di.ZP)(Jt),Tr=E.useMemo(()=>{if(!br)return!1;let ke={};switch(typeof br){case"function":ke.nodeDraggable=br;break;case"object":ke=Object.assign({},br);break;default:break}return ke.icon!==!1&&(ke.icon=ke.icon||E.createElement(Hr.Z,null)),ke},[br]),$e=ke=>E.createElement(Da.Z,{prefixCls:Jt,switcherIcon:Pn,treeNodeProps:ke,showLine:Rt});return Nr(E.createElement(Pi,Object.assign({itemHeight:20,ref:Et,virtual:zt},pr,{style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Dt),prefixCls:Jt,className:me()({[`${Jt}-icon-hide`]:!Ut,[`${Jt}-block-node`]:$n,[`${Jt}-unselectable`]:!dr,[`${Jt}-rtl`]:Ue==="rtl"},ln==null?void 0:ln.className,Lt,ao),direction:Ue,checkable:Qn&&E.createElement("span",{className:`${Jt}-checkbox-inner`}),selectable:dr,switcherIcon:$e,draggable:Tr}),ir))}),ut;(function(_t){_t[_t.None=0]="None",_t[_t.Start=1]="Start",_t[_t.End=2]="End"})(ut||(ut={}));function Ht(_t,Et){function jt(Ue){const{key:zt,children:ln}=Ue;Et(zt,Ue)!==!1&&Ht(ln||[],Et)}_t.forEach(jt)}function Yt(_t){let{treeData:Et,expandedKeys:jt,startKey:Ue,endKey:zt}=_t;const ln=[];let gn=ut.None;if(Ue&&Ue===zt)return[Ue];if(!Ue||!zt)return[];function Lt(Ut){return Ut===Ue||Ut===zt}return Ht(Et,Ut=>{if(gn===ut.End)return!1;if(Lt(Ut)){if(ln.push(Ut),gn===ut.None)gn=ut.Start;else if(gn===ut.Start)return gn=ut.End,!1}else gn===ut.Start&&ln.push(Ut);return jt.includes(Ut)}),ln}function xn(_t,Et){const jt=(0,fe.Z)(Et),Ue=[];return Ht(_t,(zt,ln)=>{const gn=jt.indexOf(zt);return gn!==-1&&(Ue.push(ln),jt.splice(gn,1)),!!jt.length}),Ue}var Ar=function(_t,Et){var jt={};for(var Ue in _t)Object.prototype.hasOwnProperty.call(_t,Ue)&&Et.indexOf(Ue)<0&&(jt[Ue]=_t[Ue]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Ue=Object.getOwnPropertySymbols(_t);zt<Ue.length;zt++)Et.indexOf(Ue[zt])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ue[zt])&&(jt[Ue[zt]]=_t[Ue[zt]]);return jt};function Dr(_t){const{isLeaf:Et,expanded:jt}=_t;return Et?E.createElement(Ai.Z,null):jt?E.createElement(pn.Z,null):E.createElement(Bn,null)}function lo(_t){let{treeData:Et,children:jt}=_t;return Et||(0,he.zn)(jt)}const _o=(_t,Et)=>{var{defaultExpandAll:jt,defaultExpandParent:Ue,defaultExpandedKeys:zt}=_t,ln=Ar(_t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const gn=E.useRef(),Lt=E.useRef(),Ut=()=>{const{keyEntities:Tr}=(0,he.I8)(lo(ln));let $e;return jt?$e=Object.keys(Tr):Ue?$e=(0,Pr.r7)(ln.expandedKeys||zt||[],Tr):$e=ln.expandedKeys||zt,$e},[Rt,Pn]=E.useState(ln.selectedKeys||ln.defaultSelectedKeys||[]),[$n,ir]=E.useState(()=>Ut());E.useEffect(()=>{"selectedKeys"in ln&&Pn(ln.selectedKeys)},[ln.selectedKeys]),E.useEffect(()=>{"expandedKeys"in ln&&ir(ln.expandedKeys)},[ln.expandedKeys]);const Qn=(Tr,$e)=>{var ke;return"expandedKeys"in ln||ir(Tr),(ke=ln.onExpand)===null||ke===void 0?void 0:ke.call(ln,Tr,$e)},dr=(Tr,$e)=>{var ke;const{multiple:et}=ln,{node:At,nativeEvent:kt}=$e,{key:Zt=""}=At,Sn=lo(ln),wn=Object.assign(Object.assign({},$e),{selected:!0}),Fn=(kt==null?void 0:kt.ctrlKey)||(kt==null?void 0:kt.metaKey),On=kt==null?void 0:kt.shiftKey;let Wn;et&&Fn?(Wn=Tr,gn.current=Zt,Lt.current=Wn,wn.selectedNodes=xn(Sn,Wn)):et&&On?(Wn=Array.from(new Set([].concat((0,fe.Z)(Lt.current||[]),(0,fe.Z)(Yt({treeData:Sn,expandedKeys:$n,startKey:Zt,endKey:gn.current}))))),wn.selectedNodes=xn(Sn,Wn)):(Wn=[Zt],gn.current=Zt,Lt.current=Wn,wn.selectedNodes=xn(Sn,Wn)),(ke=ln.onSelect)===null||ke===void 0||ke.call(ln,Wn,wn),"selectedKeys"in ln||Pn(Wn)},{getPrefixCls:br,direction:mn}=E.useContext(mr.E_),{prefixCls:Dt,className:Jt,showIcon:vn=!0,expandAction:Vn="click"}=ln,pr=Ar(ln,["prefixCls","className","showIcon","expandAction"]),Nr=br("tree",Dt),ao=me()(`${Nr}-directory`,{[`${Nr}-directory-rtl`]:mn==="rtl"},Jt);return E.createElement(ft,Object.assign({icon:Dr,ref:Et,blockNode:!0},pr,{showIcon:vn,expandAction:Vn,prefixCls:Nr,className:ao,expandedKeys:$n,selectedKeys:Rt,onSelect:dr,onExpand:Qn}))};var ni=E.forwardRef(_o);const vi=ft;vi.DirectoryTree=ni,vi.TreeNode=La.Z;var Di=vi},32157:function(at,We,ee){"use strict";ee.d(We,{TM:function(){return re},Yk:function(){return me}});var z=ee(45930),ge=ee(63185),be=ee(14747),ve=ee(33507),fe=ee(45503),pe=ee(67968);const ie=new z.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:'""'}}}),ce=(ne,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:te,nodeHoverBg:oe}=a,ae=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:ae},[`${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:oe},[`&${y}-node-selected`]:{backgroundColor:te},[`${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`}}}}})}},se=ne=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:x},[`${a}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},me=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,fe.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[ce(ne,x),se(x)]},re=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};We.ZP=(0,pe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,ge.C2)(`${y}-checkbox`,ne)},me(y,ne),(0,ve.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},re(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},99184:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return y}});var z=ee(87462),ge=ee(67294),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"},ve=be,fe=ee(74643),pe=function(b,x){return ge.createElement(fe.Z,(0,z.Z)({},b,{ref:x,icon:ve}))},ie=ge.forwardRef(pe),de=ee(73148),le=ee(3407),ce=ee(34182),se=ee(74664),me=ee(94184),re=ee.n(me),ne=ee(96159),y=E=>{const{prefixCls:b,switcherIcon:x,treeNodeProps:te,showLine:oe}=E,{isLeaf:ae,expanded:ue,loading:ye}=te;if(ye)return ge.createElement(le.Z,{className:`${b}-switcher-loading-icon`});let _e;if(oe&&typeof oe=="object"&&(_e=oe.showLeafIcon),ae){if(!oe)return null;if(typeof _e!="boolean"&&_e){const Be=typeof _e=="function"?_e(te):_e,Me=`${b}-switcher-line-custom-icon`;return(0,ne.l$)(Be)?(0,ne.Tm)(Be,{className:re()(Be.props.className||"",Me)}):Be}return _e?ge.createElement(de.Z,{className:`${b}-switcher-line-icon`}):ge.createElement("span",{className:`${b}-switcher-leaf-line`})}const xe=`${b}-switcher-icon`,Ce=typeof x=="function"?x(te):x;return(0,ne.l$)(Ce)?(0,ne.Tm)(Ce,{className:re()(Ce.props.className||"",xe)}):Ce!==void 0?Ce:oe?ue?ge.createElement(ce.Z,{className:`${b}-switcher-line-icon`}):ge.createElement(se.Z,{className:`${b}-switcher-line-icon`}):ge.createElement(ie,{className:xe})}},62661:function(at,We){"use strict";var ee;var z=Symbol.for("react.element"),ge=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ie=Symbol.for("react.context"),de=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case z:switch(E=E.type,E){case be:case fe:case ve:case ce:case se:return E;default:switch(E=E&&E.$$typeof,E){case de:case ie:case le:case re:case me:case pe:return E;default:return b}}case ge:return b}}}ee=ie,ee=pe,ee=z,ee=le,ee=be,ee=re,ee=me,ee=ge,ee=fe,ee=ve,ee=ce,ee=se,ee=function(){return!1},ee=function(){return!1},ee=function(E){return y(E)===ie},ee=function(E){return y(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===z},ee=function(E){return y(E)===le},ee=function(E){return y(E)===be},ee=function(E){return y(E)===re},We.isMemo=function(E){return y(E)===me},ee=function(E){return y(E)===ge},ee=function(E){return y(E)===fe},ee=function(E){return y(E)===ve},ee=function(E){return y(E)===ce},ee=function(E){return y(E)===se},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===fe||E===ve||E===ce||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ie||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},ee=y},95845:function(at,We,ee){"use strict";at.exports=ee(62661)},72665:function(at,We){"use strict";var ee;var z=typeof Symbol=="function"&&Symbol.for,ge=z?Symbol.for("react.element"):60103,be=z?Symbol.for("react.portal"):60106,ve=z?Symbol.for("react.fragment"):60107,fe=z?Symbol.for("react.strict_mode"):60108,pe=z?Symbol.for("react.profiler"):60114,ie=z?Symbol.for("react.provider"):60109,de=z?Symbol.for("react.context"):60110,le=z?Symbol.for("react.async_mode"):60111,ce=z?Symbol.for("react.concurrent_mode"):60111,se=z?Symbol.for("react.forward_ref"):60112,me=z?Symbol.for("react.suspense"):60113,re=z?Symbol.for("react.suspense_list"):60120,ne=z?Symbol.for("react.memo"):60115,a=z?Symbol.for("react.lazy"):60116,y=z?Symbol.for("react.block"):60121,E=z?Symbol.for("react.fundamental"):60117,b=z?Symbol.for("react.responder"):60118,x=z?Symbol.for("react.scope"):60119;function te(ae){if(typeof ae=="object"&&ae!==null){var ue=ae.$$typeof;switch(ue){case ge:switch(ae=ae.type,ae){case le:case ce:case ve:case pe:case fe:case me:return ae;default:switch(ae=ae&&ae.$$typeof,ae){case de:case se:case a:case ne:case ie:return ae;default:return ue}}case be:return ue}}}function oe(ae){return te(ae)===ce}ee=le,ee=ce,ee=de,ee=ie,ee=ge,ee=se,ee=ve,ee=a,ee=ne,ee=be,ee=pe,ee=fe,ee=me,ee=function(ae){return oe(ae)||te(ae)===le},ee=oe,ee=function(ae){return te(ae)===de},ee=function(ae){return te(ae)===ie},ee=function(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===ge},ee=function(ae){return te(ae)===se},ee=function(ae){return te(ae)===ve},ee=function(ae){return te(ae)===a},We.isMemo=function(ae){return te(ae)===ne},ee=function(ae){return te(ae)===be},ee=function(ae){return te(ae)===pe},ee=function(ae){return te(ae)===fe},ee=function(ae){return te(ae)===me},ee=function(ae){return typeof ae=="string"||typeof ae=="function"||ae===ve||ae===ce||ae===pe||ae===fe||ae===me||ae===re||typeof ae=="object"&&ae!==null&&(ae.$$typeof===a||ae.$$typeof===ne||ae.$$typeof===ie||ae.$$typeof===de||ae.$$typeof===se||ae.$$typeof===E||ae.$$typeof===b||ae.$$typeof===x||ae.$$typeof===y)},ee=te},12060:function(at,We,ee){"use strict";at.exports=ee(72665)},56261:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return _e}});var z=ee(87462),ge=ee(4942),be=ee(45987),ve=ee(1413),fe=ee(15671),pe=ee(43144),ie=ee(97326),de=ee(60136),le=ee(51630),ce=ee(94184),se=ee.n(ce),me=ee(34952),re=ee(67294),ne=ee(69610),a=function(Ce){for(var Be=Ce.prefixCls,Me=Ce.level,mt=Ce.isStart,Qe=Ce.isEnd,pt="".concat(Be,"-indent-unit"),Ae=[],De=0;De<Me;De+=1){var Fe;Ae.push(re.createElement("span",{key:De,className:se()(pt,(Fe={},(0,ge.Z)(Fe,"".concat(pt,"-start"),mt[De]),(0,ge.Z)(Fe,"".concat(pt,"-end"),Qe[De]),Fe))}))}return re.createElement("span",{"aria-hidden":"true",className:"".concat(Be,"-indent")},Ae)},y=re.memo(a),E=ee(3596),b=ee(83898),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",oe="close",ae="---",ue=function(xe){(0,de.Z)(Be,xe);var Ce=(0,le.Z)(Be);function Be(){var Me;(0,fe.Z)(this,Be);for(var mt=arguments.length,Qe=new Array(mt),pt=0;pt<mt;pt++)Qe[pt]=arguments[pt];return Me=Ce.call.apply(Ce,[this].concat(Qe)),Me.state={dragNodeHighlight:!1},Me.selectHandle=void 0,Me.cacheIndent=void 0,Me.onSelectorClick=function(Ae){var De=Me.props.context.onNodeClick;De(Ae,(0,b.F)(Me.props)),Me.isSelectable()?Me.onSelect(Ae):Me.onCheck(Ae)},Me.onSelectorDoubleClick=function(Ae){var De=Me.props.context.onNodeDoubleClick;De(Ae,(0,b.F)(Me.props))},Me.onSelect=function(Ae){if(!Me.isDisabled()){var De=Me.props.context.onNodeSelect;De(Ae,(0,b.F)(Me.props))}},Me.onCheck=function(Ae){if(!Me.isDisabled()){var De=Me.props,Fe=De.disableCheckbox,tt=De.checked,Ve=Me.props.context.onNodeCheck;if(!(!Me.isCheckable()||Fe)){var Ct=!tt;Ve(Ae,(0,b.F)(Me.props),Ct)}}},Me.onMouseEnter=function(Ae){var De=Me.props.context.onNodeMouseEnter;De(Ae,(0,b.F)(Me.props))},Me.onMouseLeave=function(Ae){var De=Me.props.context.onNodeMouseLeave;De(Ae,(0,b.F)(Me.props))},Me.onContextMenu=function(Ae){var De=Me.props.context.onNodeContextMenu;De(Ae,(0,b.F)(Me.props))},Me.onDragStart=function(Ae){var De=Me.props.context.onNodeDragStart;Ae.stopPropagation(),Me.setState({dragNodeHighlight:!0}),De(Ae,(0,ie.Z)(Me));try{Ae.dataTransfer.setData("text/plain","")}catch(Fe){}},Me.onDragEnter=function(Ae){var De=Me.props.context.onNodeDragEnter;Ae.preventDefault(),Ae.stopPropagation(),De(Ae,(0,ie.Z)(Me))},Me.onDragOver=function(Ae){var De=Me.props.context.onNodeDragOver;Ae.preventDefault(),Ae.stopPropagation(),De(Ae,(0,ie.Z)(Me))},Me.onDragLeave=function(Ae){var De=Me.props.context.onNodeDragLeave;Ae.stopPropagation(),De(Ae,(0,ie.Z)(Me))},Me.onDragEnd=function(Ae){var De=Me.props.context.onNodeDragEnd;Ae.stopPropagation(),Me.setState({dragNodeHighlight:!1}),De(Ae,(0,ie.Z)(Me))},Me.onDrop=function(Ae){var De=Me.props.context.onNodeDrop;Ae.preventDefault(),Ae.stopPropagation(),Me.setState({dragNodeHighlight:!1}),De(Ae,(0,ie.Z)(Me))},Me.onExpand=function(Ae){var De=Me.props,Fe=De.loading,tt=De.context.onNodeExpand;Fe||tt(Ae,(0,b.F)(Me.props))},Me.setSelectHandle=function(Ae){Me.selectHandle=Ae},Me.getNodeState=function(){var Ae=Me.props.expanded;return Me.isLeaf()?null:Ae?te:oe},Me.hasChildren=function(){var Ae=Me.props.eventKey,De=Me.props.context.keyEntities,Fe=(0,E.Z)(De,Ae)||{},tt=Fe.children;return!!(tt||[]).length},Me.isLeaf=function(){var Ae=Me.props,De=Ae.isLeaf,Fe=Ae.loaded,tt=Me.props.context.loadData,Ve=Me.hasChildren();return De===!1?!1:De||!tt&&!Ve||tt&&Fe&&!Ve},Me.isDisabled=function(){var Ae=Me.props.disabled,De=Me.props.context.disabled;return!!(De||Ae)},Me.isCheckable=function(){var Ae=Me.props.checkable,De=Me.props.context.checkable;return!De||Ae===!1?!1:De},Me.syncLoadData=function(Ae){var De=Ae.expanded,Fe=Ae.loading,tt=Ae.loaded,Ve=Me.props.context,Ct=Ve.loadData,Mt=Ve.onNodeLoad;Fe||Ct&&De&&!Me.isLeaf()&&!Me.hasChildren()&&!tt&&Mt((0,b.F)(Me.props))},Me.isDraggable=function(){var Ae=Me.props,De=Ae.data,Fe=Ae.context.draggable;return!!(Fe&&(!Fe.nodeDraggable||Fe.nodeDraggable(De)))},Me.renderDragHandler=function(){var Ae=Me.props.context,De=Ae.draggable,Fe=Ae.prefixCls;return De!=null&&De.icon?re.createElement("span",{className:"".concat(Fe,"-draggable-icon")},De.icon):null},Me.renderSwitcherIconDom=function(Ae){var De=Me.props.switcherIcon,Fe=Me.props.context.switcherIcon,tt=De||Fe;return typeof tt=="function"?tt((0,ve.Z)((0,ve.Z)({},Me.props),{},{isLeaf:Ae})):tt},Me.renderSwitcher=function(){var Ae=Me.props.expanded,De=Me.props.context.prefixCls;if(Me.isLeaf()){var Fe=Me.renderSwitcherIconDom(!0);return Fe!==!1?re.createElement("span",{className:se()("".concat(De,"-switcher"),"".concat(De,"-switcher-noop"))},Fe):null}var tt=se()("".concat(De,"-switcher"),"".concat(De,"-switcher_").concat(Ae?te:oe)),Ve=Me.renderSwitcherIconDom(!1);return Ve!==!1?re.createElement("span",{onClick:Me.onExpand,className:tt},Ve):null},Me.renderCheckbox=function(){var Ae=Me.props,De=Ae.checked,Fe=Ae.halfChecked,tt=Ae.disableCheckbox,Ve=Me.props.context.prefixCls,Ct=Me.isDisabled(),Mt=Me.isCheckable();if(!Mt)return null;var en=typeof Mt!="boolean"?Mt:null;return re.createElement("span",{className:se()("".concat(Ve,"-checkbox"),De&&"".concat(Ve,"-checkbox-checked"),!De&&Fe&&"".concat(Ve,"-checkbox-indeterminate"),(Ct||tt)&&"".concat(Ve,"-checkbox-disabled")),onClick:Me.onCheck},en)},Me.renderIcon=function(){var Ae=Me.props.loading,De=Me.props.context.prefixCls;return re.createElement("span",{className:se()("".concat(De,"-iconEle"),"".concat(De,"-icon__").concat(Me.getNodeState()||"docu"),Ae&&"".concat(De,"-icon_loading"))})},Me.renderSelector=function(){var Ae=Me.state.dragNodeHighlight,De=Me.props,Fe=De.title,tt=Fe===void 0?ae:Fe,Ve=De.selected,Ct=De.icon,Mt=De.loading,en=De.data,nn=Me.props.context,it=nn.prefixCls,ct=nn.showIcon,wt=nn.icon,Vt=nn.loadData,Gt=nn.titleRender,Ln=Me.isDisabled(),He="".concat(it,"-node-content-wrapper"),on;if(ct){var In=Ct||wt;on=In?re.createElement("span",{className:se()("".concat(it,"-iconEle"),"".concat(it,"-icon__customize"))},typeof In=="function"?In(Me.props):In):Me.renderIcon()}else Vt&&Mt&&(on=Me.renderIcon());var or;typeof tt=="function"?or=tt(en):Gt?or=Gt(en):or=tt;var bn=re.createElement("span",{className:"".concat(it,"-title")},or);return re.createElement("span",{ref:Me.setSelectHandle,title:typeof tt=="string"?tt:"",className:se()("".concat(He),"".concat(He,"-").concat(Me.getNodeState()||"normal"),!Ln&&(Ve||Ae)&&"".concat(it,"-node-selected")),onMouseEnter:Me.onMouseEnter,onMouseLeave:Me.onMouseLeave,onContextMenu:Me.onContextMenu,onClick:Me.onSelectorClick,onDoubleClick:Me.onSelectorDoubleClick},on,bn,Me.renderDropIndicator())},Me.renderDropIndicator=function(){var Ae=Me.props,De=Ae.disabled,Fe=Ae.eventKey,tt=Me.props.context,Ve=tt.draggable,Ct=tt.dropLevelOffset,Mt=tt.dropPosition,en=tt.prefixCls,nn=tt.indent,it=tt.dropIndicatorRender,ct=tt.dragOverNodeKey,wt=tt.direction,Vt=!!Ve,Gt=!De&&Vt&&ct===Fe,Ln=nn!=null?nn:Me.cacheIndent;return Me.cacheIndent=nn,Gt?it({dropPosition:Mt,dropLevelOffset:Ct,indent:Ln,prefixCls:en,direction:wt}):null},Me}return(0,pe.Z)(Be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var mt=this.props.selectable,Qe=this.props.context.selectable;return typeof mt=="boolean"?mt:Qe}},{key:"render",value:function(){var mt,Qe=this.props,pt=Qe.eventKey,Ae=Qe.className,De=Qe.style,Fe=Qe.dragOver,tt=Qe.dragOverGapTop,Ve=Qe.dragOverGapBottom,Ct=Qe.isLeaf,Mt=Qe.isStart,en=Qe.isEnd,nn=Qe.expanded,it=Qe.selected,ct=Qe.checked,wt=Qe.halfChecked,Vt=Qe.loading,Gt=Qe.domRef,Ln=Qe.active,He=Qe.data,on=Qe.onMouseMove,In=Qe.selectable,or=(0,be.Z)(Qe,x),bn=this.props.context,$t=bn.prefixCls,qe=bn.filterTreeNode,Je=bn.keyEntities,Pt=bn.dropContainerKey,Nt=bn.dropTargetKey,Wt=bn.draggingNodeKey,dt=this.isDisabled(),yt=(0,me.Z)(or,{aria:!0,data:!0}),Tt=(0,E.Z)(Je,pt)||{},rt=Tt.level,cn=en[en.length-1],Ge=this.isDraggable(),gt=!dt&&Ge,Gn=Wt===pt,Nn=In!==void 0?{"aria-selected":!!In}:void 0;return re.createElement("div",(0,z.Z)({ref:Gt,className:se()(Ae,"".concat($t,"-treenode"),(mt={},(0,ge.Z)(mt,"".concat($t,"-treenode-disabled"),dt),(0,ge.Z)(mt,"".concat($t,"-treenode-switcher-").concat(nn?"open":"close"),!Ct),(0,ge.Z)(mt,"".concat($t,"-treenode-checkbox-checked"),ct),(0,ge.Z)(mt,"".concat($t,"-treenode-checkbox-indeterminate"),wt),(0,ge.Z)(mt,"".concat($t,"-treenode-selected"),it),(0,ge.Z)(mt,"".concat($t,"-treenode-loading"),Vt),(0,ge.Z)(mt,"".concat($t,"-treenode-active"),Ln),(0,ge.Z)(mt,"".concat($t,"-treenode-leaf-last"),cn),(0,ge.Z)(mt,"".concat($t,"-treenode-draggable"),Ge),(0,ge.Z)(mt,"dragging",Gn),(0,ge.Z)(mt,"drop-target",Nt===pt),(0,ge.Z)(mt,"drop-container",Pt===pt),(0,ge.Z)(mt,"drag-over",!dt&&Fe),(0,ge.Z)(mt,"drag-over-gap-top",!dt&&tt),(0,ge.Z)(mt,"drag-over-gap-bottom",!dt&&Ve),(0,ge.Z)(mt,"filter-node",qe&&qe((0,b.F)(this.props))),mt)),style:De,draggable:gt,"aria-grabbed":Gn,onDragStart:gt?this.onDragStart:void 0,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:on},Nn,yt),re.createElement(y,{prefixCls:$t,level:rt,isStart:Mt,isEnd:en}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Be}(re.Component),ye=function(Ce){return re.createElement(ne.k.Consumer,null,function(Be){return re.createElement(ue,(0,z.Z)({},Ce,{context:Be}))})};ye.displayName="TreeNode",ye.isTreeNode=1;var _e=ye},69610:function(at,We,ee){"use strict";ee.d(We,{k:function(){return ge}});var z=ee(67294),ge=z.createContext(null)},29873:function(at,We,ee){"use strict";ee.d(We,{BT:function(){return y},E6:function(){return x},L0:function(){return ce},OM:function(){return a},_5:function(){return le},r7:function(){return te},wA:function(){return me},yx:function(){return se}});var z=ee(74902),ge=ee(71002),be=ee(72978),ve=ee(67294),fe=ee(56261),pe=ee(3596),ie=ee(83898),de=null;function le(oe,ae){if(!oe)return[];var ue=oe.slice(),ye=ue.indexOf(ae);return ye>=0&&ue.splice(ye,1),ue}function ce(oe,ae){var ue=(oe||[]).slice();return ue.indexOf(ae)===-1&&ue.push(ae),ue}function se(oe){return oe.split("-")}function me(oe,ae){var ue=[],ye=(0,pe.Z)(ae,oe);function _e(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(Ce){var Be=Ce.key,Me=Ce.children;ue.push(Be),_e(Me)})}return _e(ye.children),ue}function re(oe){if(oe.parent){var ae=se(oe.pos);return Number(ae[ae.length-1])===oe.parent.children.length-1}return!1}function ne(oe){var ae=se(oe.pos);return Number(ae[ae.length-1])===0}function a(oe,ae,ue,ye,_e,xe,Ce,Be,Me,mt){var Qe,pt=oe.clientX,Ae=oe.clientY,De=oe.target.getBoundingClientRect(),Fe=De.top,tt=De.height,Ve=(mt==="rtl"?-1:1)*(((_e==null?void 0:_e.x)||0)-pt),Ct=(Ve-12)/ye,Mt=(0,pe.Z)(Be,ue.props.eventKey);if(Ae<Fe+tt/2){var en=Ce.findIndex(function(bn){return bn.key===Mt.key}),nn=en<=0?0:en-1,it=Ce[nn].key;Mt=(0,pe.Z)(Be,it)}var ct=Mt.key,wt=Mt,Vt=Mt.key,Gt=0,Ln=0;if(!Me.includes(ct))for(var He=0;He<Ct&&re(Mt);He+=1)Mt=Mt.parent,Ln+=1;var on=ae.props.data,In=Mt.node,or=!0;return ne(Mt)&&Mt.level===0&&Ae<Fe+tt/2&&xe({dragNode:on,dropNode:In,dropPosition:-1})&&Mt.key===ue.props.eventKey?Gt=-1:(wt.children||[]).length&&Me.includes(Vt)?xe({dragNode:on,dropNode:In,dropPosition:0})?Gt=0:or=!1:Ln===0?Ct>-1.5?xe({dragNode:on,dropNode:In,dropPosition:1})?Gt=1:or=!1:xe({dragNode:on,dropNode:In,dropPosition:0})?Gt=0:xe({dragNode:on,dropNode:In,dropPosition:1})?Gt=1:or=!1:xe({dragNode:on,dropNode:In,dropPosition:1})?Gt=1:or=!1,{dropPosition:Gt,dropLevelOffset:Ln,dropTargetKey:Mt.key,dropTargetPos:Mt.pos,dragOverNodeKey:Vt,dropContainerKey:Gt===0?null:((Qe=Mt.parent)===null||Qe===void 0?void 0:Qe.key)||null,dropAllowed:or}}function y(oe,ae){if(oe){var ue=ae.multiple;return ue?oe.slice():oe.length?[oe[0]]:oe}}var E=function(ae){return ae};function b(oe,ae){if(!oe)return[];var ue=ae||{},ye=ue.processProps,_e=ye===void 0?E:ye,xe=Array.isArray(oe)?oe:[oe];return xe.map(function(Ce){var Be=Ce.children,Me=_objectWithoutProperties(Ce,de),mt=b(Be,ae);return React.createElement(TreeNode,_extends({key:Me.key},_e(Me)),mt)})}function x(oe){if(!oe)return null;var ae;if(Array.isArray(oe))ae={checkedKeys:oe,halfCheckedKeys:void 0};else if((0,ge.Z)(oe)==="object")ae={checkedKeys:oe.checked||void 0,halfCheckedKeys:oe.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ae}function te(oe,ae){var ue=new Set;function ye(_e){if(!ue.has(_e)){var xe=(0,pe.Z)(ae,_e);if(xe){ue.add(_e);var Ce=xe.parent,Be=xe.node;Be.disabled||Ce&&ye(Ce.key)}}}return(oe||[]).forEach(function(_e){ye(_e)}),(0,z.Z)(ue)}},97153:function(at,We,ee){"use strict";ee.d(We,{S:function(){return ie}});var z=ee(72978),ge=ee(3596);function be(de,le){var ce=new Set;return de.forEach(function(se){le.has(se)||ce.add(se)}),ce}function ve(de){var le=de||{},ce=le.disabled,se=le.disableCheckbox,me=le.checkable;return!!(ce||se)||me===!1}function fe(de,le,ce,se){for(var me=new Set(de),re=new Set,ne=0;ne<=ce;ne+=1){var a=le.get(ne)||new Set;a.forEach(function(x){var te=x.key,oe=x.node,ae=x.children,ue=ae===void 0?[]:ae;me.has(te)&&!se(oe)&&ue.filter(function(ye){return!se(ye.node)}).forEach(function(ye){me.add(ye.key)})})}for(var y=new Set,E=ce;E>=0;E-=1){var b=le.get(E)||new Set;b.forEach(function(x){var te=x.parent,oe=x.node;if(!(se(oe)||!x.parent||y.has(x.parent.key))){if(se(x.parent.node)){y.add(te.key);return}var ae=!0,ue=!1;(te.children||[]).filter(function(ye){return!se(ye.node)}).forEach(function(ye){var _e=ye.key,xe=me.has(_e);ae&&!xe&&(ae=!1),!ue&&(xe||re.has(_e))&&(ue=!0)}),ae&&me.add(te.key),ue&&re.add(te.key),y.add(te.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(be(re,me))}}function pe(de,le,ce,se,me){for(var re=new Set(de),ne=new Set(le),a=0;a<=se;a+=1){var y=ce.get(a)||new Set;y.forEach(function(te){var oe=te.key,ae=te.node,ue=te.children,ye=ue===void 0?[]:ue;!re.has(oe)&&!ne.has(oe)&&!me(ae)&&ye.filter(function(_e){return!me(_e.node)}).forEach(function(_e){re.delete(_e.key)})})}ne=new Set;for(var E=new Set,b=se;b>=0;b-=1){var x=ce.get(b)||new Set;x.forEach(function(te){var oe=te.parent,ae=te.node;if(!(me(ae)||!te.parent||E.has(te.parent.key))){if(me(te.parent.node)){E.add(oe.key);return}var ue=!0,ye=!1;(oe.children||[]).filter(function(_e){return!me(_e.node)}).forEach(function(_e){var xe=_e.key,Ce=re.has(xe);ue&&!Ce&&(ue=!1),!ye&&(Ce||ne.has(xe))&&(ye=!0)}),ue||re.delete(oe.key),ye&&ne.add(oe.key),E.add(oe.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(be(ne,re))}}function ie(de,le,ce,se){var me=[],re;se?re=se:re=ve;var ne=new Set(de.filter(function(b){var x=!!(0,ge.Z)(ce,b);return x||me.push(b),x})),a=new Map,y=0;Object.keys(ce).forEach(function(b){var x=ce[b],te=x.level,oe=a.get(te);oe||(oe=new Set,a.set(te,oe)),oe.add(x),y=Math.max(y,te)}),(0,z.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return le===!0?E=fe(ne,a,y,re):E=pe(ne,le.halfCheckedKeys,a,y,re),E}},3596:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return z}});function z(ge,be){return ge[be]}},83898:function(at,We,ee){"use strict";ee.d(We,{I8:function(){return te},F:function(){return ae},zn:function(){return E},w$:function(){return a},oH:function(){return b},km:function(){return ne},H8:function(){return oe}});var z=ee(71002),ge=ee(74902),be=ee(1413),ve=ee(45987),fe=ee(67294),pe=ee(28580);function ie(ue){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=[];return fe.Children.forEach(ue,function(xe){xe==null&&!ye.keepEmpty||(Array.isArray(xe)?_e=_e.concat(ie(xe)):(0,pe.isFragment)(xe)&&xe.props?_e=_e.concat(ie(xe.props.children,ye)):_e.push(xe))}),_e}function de(ue,ye){var _e=(0,be.Z)({},ue);return Array.isArray(ye)&&ye.forEach(function(xe){delete _e[xe]}),_e}var le=ee(72978),ce=ee(3596),se=["children"];function me(ue,ye){return"".concat(ue,"-").concat(ye)}function re(ue){return ue&&ue.type&&ue.type.isTreeNode}function ne(ue,ye){return ue!=null?ue:ye}function a(ue){var ye=ue||{},_e=ye.title,xe=ye._title,Ce=ye.key,Be=ye.children,Me=_e||"title";return{title:Me,_title:xe||[Me],key:Ce||"key",children:Be||"children"}}function y(ue,ye){var _e=new Map;function xe(Ce){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ce||[]).forEach(function(Me){var mt=Me[ye.key],Qe=Me[ye.children];warning(mt!=null,"Tree node must have a certain key: [".concat(Be).concat(mt,"]"));var pt=String(mt);warning(!_e.has(pt)||mt===null||mt===void 0,"Same 'key' exist in the Tree: ".concat(pt)),_e.set(pt,!0),xe(Qe,"".concat(Be).concat(pt," > "))})}xe(ue)}function E(ue){function ye(_e){var xe=ie(_e);return xe.map(function(Ce){if(!re(Ce))return(0,le.ZP)(!Ce,"Tree/TreeNode can only accept TreeNode as children."),null;var Be=Ce.key,Me=Ce.props,mt=Me.children,Qe=(0,ve.Z)(Me,se),pt=(0,be.Z)({key:Be},Qe),Ae=ye(mt);return Ae.length&&(pt.children=Ae),pt}).filter(function(Ce){return Ce})}return ye(ue)}function b(ue,ye,_e){var xe=a(_e),Ce=xe._title,Be=xe.key,Me=xe.children,mt=new Set(ye===!0?[]:ye),Qe=[];function pt(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Fe,tt){for(var Ve=me(De?De.pos:"0",tt),Ct=ne(Fe[Be],Ve),Mt,en=0;en<Ce.length;en+=1){var nn=Ce[en];if(Fe[nn]!==void 0){Mt=Fe[nn];break}}var it=(0,be.Z)((0,be.Z)({},de(Fe,[].concat((0,ge.Z)(Ce),[Be,Me]))),{},{title:Mt,key:Ct,parent:De,pos:Ve,children:null,data:Fe,isStart:[].concat((0,ge.Z)(De?De.isStart:[]),[tt===0]),isEnd:[].concat((0,ge.Z)(De?De.isEnd:[]),[tt===Ae.length-1])});return Qe.push(it),ye===!0||mt.has(Ct)?it.children=pt(Fe[Me]||[],it):it.children=[],it})}return pt(ue),Qe}function x(ue,ye,_e){var xe={};(0,z.Z)(_e)==="object"?xe=_e:xe={externalGetKey:_e},xe=xe||{};var Ce=xe,Be=Ce.childrenPropName,Me=Ce.externalGetKey,mt=Ce.fieldNames,Qe=a(mt),pt=Qe.key,Ae=Qe.children,De=Be||Ae,Fe;Me?typeof Me=="string"?Fe=function(Ct){return Ct[Me]}:typeof Me=="function"&&(Fe=function(Ct){return Me(Ct)}):Fe=function(Ct,Mt){return ne(Ct[pt],Mt)};function tt(Ve,Ct,Mt,en){var nn=Ve?Ve[De]:ue,it=Ve?me(Mt.pos,Ct):"0",ct=Ve?[].concat((0,ge.Z)(en),[Ve]):[];if(Ve){var wt=Fe(Ve,it),Vt={node:Ve,index:Ct,pos:it,key:wt,parentPos:Mt.node?Mt.pos:null,level:Mt.level+1,nodes:ct};ye(Vt)}nn&&nn.forEach(function(Gt,Ln){tt(Gt,Ln,{node:Ve,pos:it,level:Mt?Mt.level+1:-1},ct)})}tt(null)}function te(ue){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=ye.initWrapper,xe=ye.processEntity,Ce=ye.onProcessFinished,Be=ye.externalGetKey,Me=ye.childrenPropName,mt=ye.fieldNames,Qe=arguments.length>2?arguments[2]:void 0,pt=Be||Qe,Ae={},De={},Fe={posEntities:Ae,keyEntities:De};return _e&&(Fe=_e(Fe)||Fe),x(ue,function(tt){var Ve=tt.node,Ct=tt.index,Mt=tt.pos,en=tt.key,nn=tt.parentPos,it=tt.level,ct=tt.nodes,wt={node:Ve,nodes:ct,index:Ct,key:en,pos:Mt,level:it},Vt=ne(en,Mt);Ae[Mt]=wt,De[Vt]=wt,wt.parent=Ae[nn],wt.parent&&(wt.parent.children=wt.parent.children||[],wt.parent.children.push(wt)),xe&&xe(wt,Fe)},{externalGetKey:pt,childrenPropName:Me,fieldNames:mt}),Ce&&Ce(Fe),Fe}function oe(ue,ye){var _e=ye.expandedKeys,xe=ye.selectedKeys,Ce=ye.loadedKeys,Be=ye.loadingKeys,Me=ye.checkedKeys,mt=ye.halfCheckedKeys,Qe=ye.dragOverNodeKey,pt=ye.dropPosition,Ae=ye.keyEntities,De=(0,ce.Z)(Ae,ue),Fe={eventKey:ue,expanded:_e.indexOf(ue)!==-1,selected:xe.indexOf(ue)!==-1,loaded:Ce.indexOf(ue)!==-1,loading:Be.indexOf(ue)!==-1,checked:Me.indexOf(ue)!==-1,halfChecked:mt.indexOf(ue)!==-1,pos:String(De?De.pos:""),dragOver:Qe===ue&&pt===0,dragOverGapTop:Qe===ue&&pt===-1,dragOverGapBottom:Qe===ue&&pt===1};return Fe}function ae(ue){var ye=ue.data,_e=ue.expanded,xe=ue.selected,Ce=ue.checked,Be=ue.loaded,Me=ue.loading,mt=ue.halfChecked,Qe=ue.dragOver,pt=ue.dragOverGapTop,Ae=ue.dragOverGapBottom,De=ue.pos,Fe=ue.active,tt=ue.eventKey,Ve=(0,be.Z)((0,be.Z)({},ye),{},{expanded:_e,selected:xe,checked:Ce,loaded:Be,loading:Me,halfChecked:mt,dragOver:Qe,dragOverGapTop:pt,dragOverGapBottom:Ae,pos:De,active:Fe,key:tt});return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,le.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ue}}),Ve}},34952:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return de}});var z=ee(1413),ge=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ve="".concat(ge," ").concat(be).split(/[\s\n]+/),fe="aria-",pe="data-";function ie(le,ce){return le.indexOf(ce)===0}function de(le){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se;ce===!1?se={aria:!0,data:!0,attr:!0}:ce===!0?se={aria:!0}:se=(0,z.Z)({},ce);var me={};return Object.keys(le).forEach(function(re){(se.aria&&(re==="role"||ie(re,fe))||se.data&&ie(re,pe)||se.attr&&ve.includes(re))&&(me[re]=le[re])}),me}},72978:function(at,We,ee){"use strict";var z={};function ge(de,le){}function be(de,le){}function ve(){z={}}function fe(de,le,ce){!le&&!z[ce]&&(de(!1,ce),z[ce]=!0)}function pe(de,le){fe(ge,de,le)}function ie(de,le){fe(be,de,le)}We.ZP=pe},81533:function(at,We){"use strict";var ee;var z=typeof Symbol=="function"&&Symbol.for,ge=z?Symbol.for("react.element"):60103,be=z?Symbol.for("react.portal"):60106,ve=z?Symbol.for("react.fragment"):60107,fe=z?Symbol.for("react.strict_mode"):60108,pe=z?Symbol.for("react.profiler"):60114,ie=z?Symbol.for("react.provider"):60109,de=z?Symbol.for("react.context"):60110,le=z?Symbol.for("react.async_mode"):60111,ce=z?Symbol.for("react.concurrent_mode"):60111,se=z?Symbol.for("react.forward_ref"):60112,me=z?Symbol.for("react.suspense"):60113,re=z?Symbol.for("react.suspense_list"):60120,ne=z?Symbol.for("react.memo"):60115,a=z?Symbol.for("react.lazy"):60116,y=z?Symbol.for("react.block"):60121,E=z?Symbol.for("react.fundamental"):60117,b=z?Symbol.for("react.responder"):60118,x=z?Symbol.for("react.scope"):60119;function te(ae){if(typeof ae=="object"&&ae!==null){var ue=ae.$$typeof;switch(ue){case ge:switch(ae=ae.type,ae){case le:case ce:case ve:case pe:case fe:case me:return ae;default:switch(ae=ae&&ae.$$typeof,ae){case de:case se:case a:case ne:case ie:return ae;default:return ue}}case be:return ue}}}function oe(ae){return te(ae)===ce}ee=le,ee=ce,ee=de,ee=ie,ee=ge,ee=se,ee=ve,ee=a,ee=ne,ee=be,ee=pe,ee=fe,ee=me,ee=function(ae){return oe(ae)||te(ae)===le},ee=oe,ee=function(ae){return te(ae)===de},ee=function(ae){return te(ae)===ie},ee=function(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===ge},ee=function(ae){return te(ae)===se},We.isFragment=function(ae){return te(ae)===ve},ee=function(ae){return te(ae)===a},We.isMemo=function(ae){return te(ae)===ne},ee=function(ae){return te(ae)===be},ee=function(ae){return te(ae)===pe},ee=function(ae){return te(ae)===fe},ee=function(ae){return te(ae)===me},ee=function(ae){return typeof ae=="string"||typeof ae=="function"||ae===ve||ae===ce||ae===pe||ae===fe||ae===me||ae===re||typeof ae=="object"&&ae!==null&&(ae.$$typeof===a||ae.$$typeof===ne||ae.$$typeof===ie||ae.$$typeof===de||ae.$$typeof===se||ae.$$typeof===E||ae.$$typeof===b||ae.$$typeof===x||ae.$$typeof===y)},ee=te},28580:function(at,We,ee){"use strict";at.exports=ee(81533)},92389:function(at,We){"use strict";var ee={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ge){var be=ge.keyCode;if(ge.altKey&&!ge.ctrlKey||ge.metaKey||be>=ee.F1&&be<=ee.F12)return!1;switch(be){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ge){if(ge>=ee.ZERO&&ge<=ee.NINE||ge>=ee.NUM_ZERO&&ge<=ee.NUM_MULTIPLY||ge>=ee.A&&ge<=ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ge===0)return!0;switch(ge){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};We.Z=ee},82702:function(at,We,ee){var z=ee(34155);(function(ge,be){at.exports=be()})(this,function(){"use strict";function ge(dt){var yt=typeof dt;return dt!==null&&(yt==="object"||yt==="function")}function be(dt){return typeof dt=="function"}var ve=void 0;Array.isArray?ve=Array.isArray:ve=function(dt){return Object.prototype.toString.call(dt)==="[object Array]"};var fe=ve,pe=0,ie=void 0,de=void 0,le=function(yt,Tt){ae[pe]=yt,ae[pe+1]=Tt,pe+=2,pe===2&&(de?de(ue):_e())};function ce(dt){de=dt}function se(dt){le=dt}var me=typeof window!="undefined"?window:void 0,re=me||{},ne=re.MutationObserver||re.WebKitMutationObserver,a=typeof self=="undefined"&&typeof z!="undefined"&&{}.toString.call(z)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return z.nextTick(ue)}}function b(){return typeof ie!="undefined"?function(){ie(ue)}:oe()}function x(){var dt=0,yt=new ne(ue),Tt=document.createTextNode("");return yt.observe(Tt,{characterData:!0}),function(){Tt.data=dt=++dt%2}}function te(){var dt=new MessageChannel;return dt.port1.onmessage=ue,function(){return dt.port2.postMessage(0)}}function oe(){var dt=setTimeout;return function(){return dt(ue,1)}}var ae=new Array(1e3);function ue(){for(var dt=0;dt<pe;dt+=2){var yt=ae[dt],Tt=ae[dt+1];yt(Tt),ae[dt]=void 0,ae[dt+1]=void 0}pe=0}function ye(){try{var dt=Function("return this")().require("vertx");return ie=dt.runOnLoop||dt.runOnContext,b()}catch(yt){return oe()}}var _e=void 0;a?_e=E():ne?_e=x():y?_e=te():me===void 0?_e=ye():_e=oe();function xe(dt,yt){var Tt=this,rt=new this.constructor(Me);rt[Be]===void 0&&on(rt);var cn=Tt._state;if(cn){var Ge=arguments[cn-1];le(function(){return Vt(cn,rt,Ge,Tt._result)})}else ct(Tt,rt,dt,yt);return rt}function Ce(dt){var yt=this;if(dt&&typeof dt=="object"&&dt.constructor===yt)return dt;var Tt=new yt(Me);return Mt(Tt,dt),Tt}var Be=Math.random().toString(36).substring(2);function Me(){}var mt=void 0,Qe=1,pt=2;function Ae(){return new TypeError("You cannot resolve a promise with itself")}function De(){return new TypeError("A promises callback cannot return that same promise.")}function Fe(dt,yt,Tt,rt){try{dt.call(yt,Tt,rt)}catch(cn){return cn}}function tt(dt,yt,Tt){le(function(rt){var cn=!1,Ge=Fe(Tt,yt,function(gt){cn||(cn=!0,yt!==gt?Mt(rt,gt):nn(rt,gt))},function(gt){cn||(cn=!0,it(rt,gt))},"Settle: "+(rt._label||" unknown promise"));!cn&&Ge&&(cn=!0,it(rt,Ge))},dt)}function Ve(dt,yt){yt._state===Qe?nn(dt,yt._result):yt._state===pt?it(dt,yt._result):ct(yt,void 0,function(Tt){return Mt(dt,Tt)},function(Tt){return it(dt,Tt)})}function Ct(dt,yt,Tt){yt.constructor===dt.constructor&&Tt===xe&&yt.constructor.resolve===Ce?Ve(dt,yt):Tt===void 0?nn(dt,yt):be(Tt)?tt(dt,yt,Tt):nn(dt,yt)}function Mt(dt,yt){if(dt===yt)it(dt,Ae());else if(ge(yt)){var Tt=void 0;try{Tt=yt.then}catch(rt){it(dt,rt);return}Ct(dt,yt,Tt)}else nn(dt,yt)}function en(dt){dt._onerror&&dt._onerror(dt._result),wt(dt)}function nn(dt,yt){dt._state===mt&&(dt._result=yt,dt._state=Qe,dt._subscribers.length!==0&&le(wt,dt))}function it(dt,yt){dt._state===mt&&(dt._state=pt,dt._result=yt,le(en,dt))}function ct(dt,yt,Tt,rt){var cn=dt._subscribers,Ge=cn.length;dt._onerror=null,cn[Ge]=yt,cn[Ge+Qe]=Tt,cn[Ge+pt]=rt,Ge===0&&dt._state&&le(wt,dt)}function wt(dt){var yt=dt._subscribers,Tt=dt._state;if(yt.length!==0){for(var rt=void 0,cn=void 0,Ge=dt._result,gt=0;gt<yt.length;gt+=3)rt=yt[gt],cn=yt[gt+Tt],rt?Vt(Tt,rt,cn,Ge):cn(Ge);dt._subscribers.length=0}}function Vt(dt,yt,Tt,rt){var cn=be(Tt),Ge=void 0,gt=void 0,Gn=!0;if(cn){try{Ge=Tt(rt)}catch(Nn){Gn=!1,gt=Nn}if(yt===Ge){it(yt,De());return}}else Ge=rt;yt._state!==mt||(cn&&Gn?Mt(yt,Ge):Gn===!1?it(yt,gt):dt===Qe?nn(yt,Ge):dt===pt&&it(yt,Ge))}function Gt(dt,yt){try{yt(function(rt){Mt(dt,rt)},function(rt){it(dt,rt)})}catch(Tt){it(dt,Tt)}}var Ln=0;function He(){return Ln++}function on(dt){dt[Be]=Ln++,dt._state=void 0,dt._result=void 0,dt._subscribers=[]}function In(){return new Error("Array Methods must be provided an Array")}var or=function(){function dt(yt,Tt){this._instanceConstructor=yt,this.promise=new yt(Me),this.promise[Be]||on(this.promise),fe(Tt)?(this.length=Tt.length,this._remaining=Tt.length,this._result=new Array(this.length),this.length===0?nn(this.promise,this._result):(this.length=this.length||0,this._enumerate(Tt),this._remaining===0&&nn(this.promise,this._result))):it(this.promise,In())}return dt.prototype._enumerate=function(Tt){for(var rt=0;this._state===mt&&rt<Tt.length;rt++)this._eachEntry(Tt[rt],rt)},dt.prototype._eachEntry=function(Tt,rt){var cn=this._instanceConstructor,Ge=cn.resolve;if(Ge===Ce){var gt=void 0,Gn=void 0,Nn=!1;try{gt=Tt.then}catch(Qt){Nn=!0,Gn=Qt}if(gt===xe&&Tt._state!==mt)this._settledAt(Tt._state,rt,Tt._result);else if(typeof gt!="function")this._remaining--,this._result[rt]=Tt;else if(cn===Nt){var St=new cn(Me);Nn?it(St,Gn):Ct(St,Tt,gt),this._willSettleAt(St,rt)}else this._willSettleAt(new cn(function(Qt){return Qt(Tt)}),rt)}else this._willSettleAt(Ge(Tt),rt)},dt.prototype._settledAt=function(Tt,rt,cn){var Ge=this.promise;Ge._state===mt&&(this._remaining--,Tt===pt?it(Ge,cn):this._result[rt]=cn),this._remaining===0&&nn(Ge,this._result)},dt.prototype._willSettleAt=function(Tt,rt){var cn=this;ct(Tt,void 0,function(Ge){return cn._settledAt(Qe,rt,Ge)},function(Ge){return cn._settledAt(pt,rt,Ge)})},dt}();function bn(dt){return new or(this,dt).promise}function $t(dt){var yt=this;return fe(dt)?new yt(function(Tt,rt){for(var cn=dt.length,Ge=0;Ge<cn;Ge++)yt.resolve(dt[Ge]).then(Tt,rt)}):new yt(function(Tt,rt){return rt(new TypeError("You must pass an array to race."))})}function qe(dt){var yt=this,Tt=new yt(Me);return it(Tt,dt),Tt}function Je(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Pt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Nt=function(){function dt(yt){this[Be]=He(),this._result=this._state=void 0,this._subscribers=[],Me!==yt&&(typeof yt!="function"&&Je(),this instanceof dt?Gt(this,yt):Pt())}return dt.prototype.catch=function(Tt){return this.then(null,Tt)},dt.prototype.finally=function(Tt){var rt=this,cn=rt.constructor;return be(Tt)?rt.then(function(Ge){return cn.resolve(Tt()).then(function(){return Ge})},function(Ge){return cn.resolve(Tt()).then(function(){throw Ge})}):rt.then(Tt,Tt)},dt}();Nt.prototype.then=xe,Nt.all=bn,Nt.race=$t,Nt.resolve=Ce,Nt.reject=qe,Nt._setScheduler=ce,Nt._setAsap=se,Nt._asap=le;function Wt(){var dt=void 0;if(typeof ee.g!="undefined")dt=ee.g;else if(typeof self!="undefined")dt=self;else try{dt=Function("return this")()}catch(rt){throw new Error("polyfill failed because global object is unavailable in this environment")}var yt=dt.Promise;if(yt){var Tt=null;try{Tt=Object.prototype.toString.call(yt.resolve())}catch(rt){}if(Tt==="[object Promise]"&&!yt.cast)return}dt.Promise=Nt}return Nt.polyfill=Wt,Nt.Promise=Nt,Nt})},17187:function(at){"use strict";var We=typeof Reflect=="object"?Reflect:null,ee=We&&typeof We.apply=="function"?We.apply:function(te,oe,ae){return Function.prototype.apply.call(te,oe,ae)},z;We&&typeof We.ownKeys=="function"?z=We.ownKeys:Object.getOwnPropertySymbols?z=function(te){return Object.getOwnPropertyNames(te).concat(Object.getOwnPropertySymbols(te))}:z=function(te){return Object.getOwnPropertyNames(te)};function ge(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(te){return te!==te};function ve(){ve.init.call(this)}at.exports=ve,at.exports.once=y,ve.EventEmitter=ve,ve.prototype._events=void 0,ve.prototype._eventsCount=0,ve.prototype._maxListeners=void 0;var fe=10;function pe(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(ve,"defaultMaxListeners",{enumerable:!0,get:function(){return fe},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+".");fe=x}}),ve.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},ve.prototype.setMaxListeners=function(te){if(typeof te!="number"||te<0||be(te))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+te+".");return this._maxListeners=te,this};function ie(x){return x._maxListeners===void 0?ve.defaultMaxListeners:x._maxListeners}ve.prototype.getMaxListeners=function(){return ie(this)},ve.prototype.emit=function(te){for(var oe=[],ae=1;ae<arguments.length;ae++)oe.push(arguments[ae]);var ue=te==="error",ye=this._events;if(ye!==void 0)ue=ue&&ye.error===void 0;else if(!ue)return!1;if(ue){var _e;if(oe.length>0&&(_e=oe[0]),_e instanceof Error)throw _e;var xe=new Error("Unhandled error."+(_e?" ("+_e.message+")":""));throw xe.context=_e,xe}var Ce=ye[te];if(Ce===void 0)return!1;if(typeof Ce=="function")ee(Ce,this,oe);else for(var Be=Ce.length,Me=re(Ce,Be),ae=0;ae<Be;++ae)ee(Me[ae],this,oe);return!0};function de(x,te,oe,ae){var ue,ye,_e;if(pe(oe),ye=x._events,ye===void 0?(ye=x._events=Object.create(null),x._eventsCount=0):(ye.newListener!==void 0&&(x.emit("newListener",te,oe.listener?oe.listener:oe),ye=x._events),_e=ye[te]),_e===void 0)_e=ye[te]=oe,++x._eventsCount;else if(typeof _e=="function"?_e=ye[te]=ae?[oe,_e]:[_e,oe]:ae?_e.unshift(oe):_e.push(oe),ue=ie(x),ue>0&&_e.length>ue&&!_e.warned){_e.warned=!0;var xe=new Error("Possible EventEmitter memory leak detected. "+_e.length+" "+String(te)+" listeners added. Use emitter.setMaxListeners() to increase limit");xe.name="MaxListenersExceededWarning",xe.emitter=x,xe.type=te,xe.count=_e.length,ge(xe)}return x}ve.prototype.addListener=function(te,oe){return de(this,te,oe,!1)},ve.prototype.on=ve.prototype.addListener,ve.prototype.prependListener=function(te,oe){return de(this,te,oe,!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 ce(x,te,oe){var ae={fired:!1,wrapFn:void 0,target:x,type:te,listener:oe},ue=le.bind(ae);return ue.listener=oe,ae.wrapFn=ue,ue}ve.prototype.once=function(te,oe){return pe(oe),this.on(te,ce(this,te,oe)),this},ve.prototype.prependOnceListener=function(te,oe){return pe(oe),this.prependListener(te,ce(this,te,oe)),this},ve.prototype.removeListener=function(te,oe){var ae,ue,ye,_e,xe;if(pe(oe),ue=this._events,ue===void 0)return this;if(ae=ue[te],ae===void 0)return this;if(ae===oe||ae.listener===oe)--this._eventsCount===0?this._events=Object.create(null):(delete ue[te],ue.removeListener&&this.emit("removeListener",te,ae.listener||oe));else if(typeof ae!="function"){for(ye=-1,_e=ae.length-1;_e>=0;_e--)if(ae[_e]===oe||ae[_e].listener===oe){xe=ae[_e].listener,ye=_e;break}if(ye<0)return this;ye===0?ae.shift():ne(ae,ye),ae.length===1&&(ue[te]=ae[0]),ue.removeListener!==void 0&&this.emit("removeListener",te,xe||oe)}return this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.removeAllListeners=function(te){var oe,ae,ue;if(ae=this._events,ae===void 0)return this;if(ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ae[te]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ae[te]),this;if(arguments.length===0){var ye=Object.keys(ae),_e;for(ue=0;ue<ye.length;++ue)_e=ye[ue],_e!=="removeListener"&&this.removeAllListeners(_e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(oe=ae[te],typeof oe=="function")this.removeListener(te,oe);else if(oe!==void 0)for(ue=oe.length-1;ue>=0;ue--)this.removeListener(te,oe[ue]);return this};function se(x,te,oe){var ae=x._events;if(ae===void 0)return[];var ue=ae[te];return ue===void 0?[]:typeof ue=="function"?oe?[ue.listener||ue]:[ue]:oe?a(ue):re(ue,ue.length)}ve.prototype.listeners=function(te){return se(this,te,!0)},ve.prototype.rawListeners=function(te){return se(this,te,!1)},ve.listenerCount=function(x,te){return typeof x.listenerCount=="function"?x.listenerCount(te):me.call(x,te)},ve.prototype.listenerCount=me;function me(x){var te=this._events;if(te!==void 0){var oe=te[x];if(typeof oe=="function")return 1;if(oe!==void 0)return oe.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?z(this._events):[]};function re(x,te){for(var oe=new Array(te),ae=0;ae<te;++ae)oe[ae]=x[ae];return oe}function ne(x,te){for(;te+1<x.length;te++)x[te]=x[te+1];x.pop()}function a(x){for(var te=new Array(x.length),oe=0;oe<te.length;++oe)te[oe]=x[oe].listener||x[oe];return te}function y(x,te){return new Promise(function(oe,ae){function ue(_e){x.removeListener(te,ye),ae(_e)}function ye(){typeof x.removeListener=="function"&&x.removeListener("error",ue),oe([].slice.call(arguments))}b(x,te,ye,{once:!0}),te!=="error"&&E(x,ue,{once:!0})})}function E(x,te,oe){typeof x.on=="function"&&b(x,"error",te,oe)}function b(x,te,oe,ae){if(typeof x.on=="function")ae.once?x.once(te,oe):x.on(te,oe);else if(typeof x.addEventListener=="function")x.addEventListener(te,function ue(ye){ae.once&&x.removeEventListener(te,ue),oe(ye)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},19575:function(at,We,ee){var z,ge;(function(be,ve){at.exports=ve(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(be){"use strict";be=be||{};var ve=be.Base64,fe="2.6.4",pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Qe){for(var pt={},Ae=0,De=Qe.length;Ae<De;Ae++)pt[Qe.charAt(Ae)]=Ae;return pt}(pe),de=String.fromCharCode,le=function(Qe){if(Qe.length<2){var pt=Qe.charCodeAt(0);return pt<128?Qe:pt<2048?de(192|pt>>>6)+de(128|pt&63):de(224|pt>>>12&15)+de(128|pt>>>6&63)+de(128|pt&63)}else{var pt=65536+(Qe.charCodeAt(0)-55296)*1024+(Qe.charCodeAt(1)-56320);return de(240|pt>>>18&7)+de(128|pt>>>12&63)+de(128|pt>>>6&63)+de(128|pt&63)}},ce=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Qe){return Qe.replace(ce,le)},me=function(Qe){var pt=[0,2,1][Qe.length%3],Ae=Qe.charCodeAt(0)<<16|(Qe.length>1?Qe.charCodeAt(1):0)<<8|(Qe.length>2?Qe.charCodeAt(2):0),De=[pe.charAt(Ae>>>18),pe.charAt(Ae>>>12&63),pt>=2?"=":pe.charAt(Ae>>>6&63),pt>=1?"=":pe.charAt(Ae&63)];return De.join("")},re=be.btoa&&typeof be.btoa=="function"?function(Qe){return be.btoa(Qe)}:function(Qe){if(Qe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Qe.replace(/[\s\S]{1,3}/g,me)},ne=function(Qe){return re(se(String(Qe)))},a=function(Qe){return Qe.replace(/[+\/]/g,function(pt){return pt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Qe,pt){return pt?a(ne(Qe)):ne(Qe)},E=function(Qe){return y(Qe,!0)},b;be.Uint8Array&&(b=function(Qe,pt){for(var Ae="",De=0,Fe=Qe.length;De<Fe;De+=3){var tt=Qe[De],Ve=Qe[De+1],Ct=Qe[De+2],Mt=tt<<16|Ve<<8|Ct;Ae+=pe.charAt(Mt>>>18)+pe.charAt(Mt>>>12&63)+(typeof Ve!="undefined"?pe.charAt(Mt>>>6&63):"=")+(typeof Ct!="undefined"?pe.charAt(Mt&63):"=")}return pt?a(Ae):Ae});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Qe){switch(Qe.length){case 4:var pt=(7&Qe.charCodeAt(0))<<18|(63&Qe.charCodeAt(1))<<12|(63&Qe.charCodeAt(2))<<6|63&Qe.charCodeAt(3),Ae=pt-65536;return de((Ae>>>10)+55296)+de((Ae&1023)+56320);case 3:return de((15&Qe.charCodeAt(0))<<12|(63&Qe.charCodeAt(1))<<6|63&Qe.charCodeAt(2));default:return de((31&Qe.charCodeAt(0))<<6|63&Qe.charCodeAt(1))}},oe=function(Qe){return Qe.replace(x,te)},ae=function(Qe){var pt=Qe.length,Ae=pt%4,De=(pt>0?ie[Qe.charAt(0)]<<18:0)|(pt>1?ie[Qe.charAt(1)]<<12:0)|(pt>2?ie[Qe.charAt(2)]<<6:0)|(pt>3?ie[Qe.charAt(3)]:0),Fe=[de(De>>>16),de(De>>>8&255),de(De&255)];return Fe.length-=[0,0,2,1][Ae],Fe.join("")},ue=be.atob&&typeof be.atob=="function"?function(Qe){return be.atob(Qe)}:function(Qe){return Qe.replace(/\S{1,4}/g,ae)},ye=function(Qe){return ue(String(Qe).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(Qe){return oe(ue(Qe))},xe=function(Qe){return String(Qe).replace(/[-_]/g,function(pt){return pt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ce=function(Qe){return _e(xe(Qe))},Be;be.Uint8Array&&(Be=function(Qe){return Uint8Array.from(ye(xe(Qe)),function(pt){return pt.charCodeAt(0)})});var Me=function(){var Qe=be.Base64;return be.Base64=ve,Qe};if(be.Base64={VERSION:fe,atob:ye,btoa:re,fromBase64:Ce,toBase64:y,utob:se,encode:y,encodeURI:E,btou:oe,decode:Ce,noConflict:Me,fromUint8Array:b,toUint8Array:Be},typeof Object.defineProperty=="function"){var mt=function(Qe){return{value:Qe,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",mt(function(){return Ce(this)})),Object.defineProperty(String.prototype,"toBase64",mt(function(Qe){return y(this,Qe)})),Object.defineProperty(String.prototype,"toBase64URI",mt(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),at.exports?at.exports.Base64=be.Base64:(z=[],ge=function(){return be.Base64}.apply(We,z),ge!==void 0&&(at.exports=ge)),{Base64:be.Base64}})},26819:function(at,We){"use strict";var ee;var z=typeof Symbol=="function"&&Symbol.for,ge=z?Symbol.for("react.element"):60103,be=z?Symbol.for("react.portal"):60106,ve=z?Symbol.for("react.fragment"):60107,fe=z?Symbol.for("react.strict_mode"):60108,pe=z?Symbol.for("react.profiler"):60114,ie=z?Symbol.for("react.provider"):60109,de=z?Symbol.for("react.context"):60110,le=z?Symbol.for("react.async_mode"):60111,ce=z?Symbol.for("react.concurrent_mode"):60111,se=z?Symbol.for("react.forward_ref"):60112,me=z?Symbol.for("react.suspense"):60113,re=z?Symbol.for("react.suspense_list"):60120,ne=z?Symbol.for("react.memo"):60115,a=z?Symbol.for("react.lazy"):60116,y=z?Symbol.for("react.block"):60121,E=z?Symbol.for("react.fundamental"):60117,b=z?Symbol.for("react.responder"):60118,x=z?Symbol.for("react.scope"):60119;function te(ae){if(typeof ae=="object"&&ae!==null){var ue=ae.$$typeof;switch(ue){case ge:switch(ae=ae.type,ae){case le:case ce:case ve:case pe:case fe:case me:return ae;default:switch(ae=ae&&ae.$$typeof,ae){case de:case se:case a:case ne:case ie:return ae;default:return ue}}case be:return ue}}}function oe(ae){return te(ae)===ce}ee=le,ee=ce,ee=de,ee=ie,ee=ge,ee=se,ee=ve,ee=a,ee=ne,ee=be,ee=pe,ee=fe,ee=me,ee=function(ae){return oe(ae)||te(ae)===le},ee=oe,ee=function(ae){return te(ae)===de},ee=function(ae){return te(ae)===ie},ee=function(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===ge},ee=function(ae){return te(ae)===se},ee=function(ae){return te(ae)===ve},ee=function(ae){return te(ae)===a},We.isMemo=function(ae){return te(ae)===ne},ee=function(ae){return te(ae)===be},ee=function(ae){return te(ae)===pe},ee=function(ae){return te(ae)===fe},ee=function(ae){return te(ae)===me},ee=function(ae){return typeof ae=="string"||typeof ae=="function"||ae===ve||ae===ce||ae===pe||ae===fe||ae===me||ae===re||typeof ae=="object"&&ae!==null&&(ae.$$typeof===a||ae.$$typeof===ne||ae.$$typeof===ie||ae.$$typeof===de||ae.$$typeof===se||ae.$$typeof===E||ae.$$typeof===b||ae.$$typeof===x||ae.$$typeof===y)},ee=te},18459:function(at,We,ee){"use strict";at.exports=ee(26819)},16651:function(at,We){"use strict";var ee;var z=Symbol.for("react.element"),ge=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ie=Symbol.for("react.context"),de=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case z:switch(E=E.type,E){case be:case fe:case ve:case ce:case se:return E;default:switch(E=E&&E.$$typeof,E){case de:case ie:case le:case re:case me:case pe:return E;default:return b}}case ge:return b}}}ee=ie,ee=pe,ee=z,ee=le,ee=be,ee=re,ee=me,ee=ge,ee=fe,ee=ve,ee=ce,ee=se,ee=function(){return!1},ee=function(){return!1},ee=function(E){return y(E)===ie},ee=function(E){return y(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===z},ee=function(E){return y(E)===le},ee=function(E){return y(E)===be},ee=function(E){return y(E)===re},ee=function(E){return y(E)===me},ee=function(E){return y(E)===ge},ee=function(E){return y(E)===fe},ee=function(E){return y(E)===ve},ee=function(E){return y(E)===ce},ee=function(E){return y(E)===se},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===fe||E===ve||E===ce||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ie||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},ee=y},33993:function(at,We,ee){"use strict";ee(16651)},46762:function(at,We){"use strict";var ee;var z=Symbol.for("react.element"),ge=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ie=Symbol.for("react.context"),de=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case z:switch(E=E.type,E){case be:case fe:case ve:case ce:case se:return E;default:switch(E=E&&E.$$typeof,E){case de:case ie:case le:case re:case me:case pe:return E;default:return b}}case ge:return b}}}ee=ie,ee=pe,ee=z,ee=le,ee=be,ee=re,ee=me,ee=ge,ee=fe,ee=ve,ee=ce,ee=se,ee=function(){return!1},ee=function(){return!1},ee=function(E){return y(E)===ie},ee=function(E){return y(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===z},ee=function(E){return y(E)===le},We.isFragment=function(E){return y(E)===be},ee=function(E){return y(E)===re},ee=function(E){return y(E)===me},ee=function(E){return y(E)===ge},ee=function(E){return y(E)===fe},ee=function(E){return y(E)===ve},ee=function(E){return y(E)===ce},ee=function(E){return y(E)===se},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===fe||E===ve||E===ce||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ie||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},ee=y},35110:function(at,We,ee){"use strict";at.exports=ee(46762)},58971:function(at,We,ee){var z=ee(62195),ge=ee(39015),be=[ee(19257)];at.exports=z.createStore(ge,be)},19257:function(at,We,ee){at.exports=z;function z(){return ee(55703),{}}},55703: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(at){return at<10?"0"+at:at}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(at){return rx_escapable.lastIndex=0,rx_escapable.test(at)?'"'+at.replace(rx_escapable,function(We){var ee=meta[We];return typeof ee=="string"?ee:"\\u"+("0000"+We.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+at+'"'}function str(at,We){var ee,z,ge,be,ve=gap,fe,pe=We[at];switch(pe&&typeof pe=="object"&&typeof pe.toJSON=="function"&&(pe=pe.toJSON(at)),typeof rep=="function"&&(pe=rep.call(We,at,pe)),typeof pe){case"string":return quote(pe);case"number":return isFinite(pe)?String(pe):"null";case"boolean":case"null":return String(pe);case"object":if(!pe)return"null";if(gap+=indent,fe=[],Object.prototype.toString.apply(pe)==="[object Array]"){for(be=pe.length,ee=0;ee<be;ee+=1)fe[ee]=str(ee,pe)||"null";return ge=fe.length===0?"[]":gap?`[
|
|
|
`+gap+fe.join(`,
|
|
|
`+gap)+`
|
|
|
`+ve+"]":"["+fe.join(",")+"]",gap=ve,ge}if(rep&&typeof rep=="object")for(be=rep.length,ee=0;ee<be;ee+=1)typeof rep[ee]=="string"&&(z=rep[ee],ge=str(z,pe),ge&&fe.push(quote(z)+(gap?": ":":")+ge));else for(z in pe)Object.prototype.hasOwnProperty.call(pe,z)&&(ge=str(z,pe),ge&&fe.push(quote(z)+(gap?": ":":")+ge));return ge=fe.length===0?"{}":gap?`{
|
|
|
`+gap+fe.join(`,
|
|
|
`+gap)+`
|
|
|
`+ve+"}":"{"+fe.join(",")+"}",gap=ve,ge}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(at,We,ee){var z;if(gap="",indent="",typeof ee=="number")for(z=0;z<ee;z+=1)indent+=" ";else typeof ee=="string"&&(indent=ee);if(rep=We,We&&typeof We!="function"&&(typeof We!="object"||typeof We.length!="number"))throw new Error("JSON.stringify");return str("",{"":at})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(at,We){var ee,z,ge=at[We];if(ge&&typeof ge=="object")for(ee in ge)Object.prototype.hasOwnProperty.call(ge,ee)&&(z=walk(ge,ee),z!==void 0?ge[ee]=z:delete ge[ee]);return reviver.call(at,We,ge)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(at){return"\\u"+("0000"+at.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")})}()},62195:function(at,We,ee){var z=ee(69078),ge=z.slice,be=z.pluck,ve=z.each,fe=z.bind,pe=z.create,ie=z.isList,de=z.isFunction,le=z.isObject;at.exports={createStore:me};var ce={version:"2.0.12",enabled:!1,get:function(re,ne){var a=this.storage.read(this._namespacePrefix+re);return this._deserialize(a,ne)},set:function(re,ne){return ne===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(ne)),ne)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var ne=this;this.storage.each(function(a,y){re.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return me.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return me(this.storage,this.plugins,re)}};function se(){var re=typeof console=="undefined"?null:console;if(re){var ne=re.warn?re.warn:re.log;ne.apply(re,arguments)}}function me(re,ne,a){a||(a=""),re&&!ie(re)&&(re=[re]),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(oe){try{var ae="__storejs__test__";oe.write(ae,ae);var ue=oe.read(ae)===ae;return oe.remove(ae),ue}catch(ye){return!1}},_assignPluginFnProp:function(oe,ae){var ue=this[ae];this[ae]=function(){var _e=ge(arguments,0),xe=this;function Ce(){if(ue)return ve(arguments,function(Me,mt){_e[mt]=Me}),ue.apply(xe,_e)}var Be=[Ce].concat(_e);return oe.apply(xe,Be)}},_serialize:function(oe){return JSON.stringify(oe)},_deserialize:function(oe,ae){if(!oe)return ae;var ue="";try{ue=JSON.parse(oe)}catch(ye){ue=oe}return ue!==void 0?ue:ae},_addStorage:function(oe){this.enabled||this._testStorage(oe)&&(this.storage=oe,this.enabled=!0)},_addPlugin:function(oe){var ae=this;if(ie(oe)){ve(oe,function(_e){ae._addPlugin(_e)});return}var ue=be(this.plugins,function(_e){return oe===_e});if(!ue){if(this.plugins.push(oe),!de(oe))throw new Error("Plugins must be function values that return objects");var ye=oe.call(this);if(!le(ye))throw new Error("Plugins must return an object of function properties");ve(ye,function(_e,xe){if(!de(_e))throw new Error("Bad plugin property: "+xe+" from plugin "+oe.name+". Plugins should only return functions.");ae._assignPluginFnProp(_e,xe)})}},addStorage:function(oe){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(oe)}},te=pe(x,ce,{plugins:[]});return te.raw={},ve(te,function(oe,ae){de(oe)&&(te.raw[ae]=fe(te,oe))}),ve(re,function(oe){te._addStorage(oe)}),ve(ne,function(oe){te._addPlugin(oe)}),te}},69078:function(at,We,ee){var z=fe(),ge=pe(),be=ie(),ve=typeof window!="undefined"?window:ee.g;at.exports={assign:z,create:ge,trim:be,bind:de,slice:le,each:ce,map:se,pluck:me,isList:re,isFunction:ne,isObject:a,Global:ve};function fe(){return Object.assign?Object.assign:function(E,b,x,te){for(var oe=1;oe<arguments.length;oe++)ce(Object(arguments[oe]),function(ae,ue){E[ue]=ae});return E}}function pe(){if(Object.create)return function(b,x,te,oe){var ae=le(arguments,1);return z.apply(this,[Object.create(b)].concat(ae))};{let E=function(){};var y=E;return function(x,te,oe,ae){var ue=le(arguments,1);return E.prototype=x,z.apply(this,[new E].concat(ue))}}}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 ce(y,E){me(y,function(b,x){return E(b,x),!1})}function se(y,E){var b=re(y)?[]:{};return me(y,function(x,te){return b[te]=E(x,te),!1}),b}function me(y,E){if(re(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 re(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]"}},39015:function(at,We,ee){at.exports=[ee(39627),ee(95347),ee(34524),ee(45580),ee(58855),ee(8728)]},45580:function(at,We,ee){var z=ee(69078),ge=z.Global,be=z.trim;at.exports={name:"cookieStorage",read:fe,write:ie,each:pe,remove:de,clearAll:le};var ve=ge.document;function fe(se){if(!se||!ce(se))return null;var me="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ve.cookie.replace(new RegExp(me),"$1"))}function pe(se){for(var me=ve.cookie.split(/; ?/g),re=me.length-1;re>=0;re--)if(be(me[re])){var ne=me[re].split("="),a=unescape(ne[0]),y=unescape(ne[1]);se(y,a)}}function ie(se,me){se&&(ve.cookie=escape(se)+"="+escape(me)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function de(se){!se||!ce(se)||(ve.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){pe(function(se,me){de(me)})}function ce(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ve.cookie)}},39627:function(at,We,ee){var z=ee(69078),ge=z.Global;at.exports={name:"localStorage",read:ve,write:fe,each:pe,remove:ie,clearAll:de};function be(){return ge.localStorage}function ve(le){return be().getItem(le)}function fe(le,ce){return be().setItem(le,ce)}function pe(le){for(var ce=be().length-1;ce>=0;ce--){var se=be().key(ce);le(ve(se),se)}}function ie(le){return be().removeItem(le)}function de(){return be().clear()}},8728:function(at){at.exports={name:"memoryStorage",read:ee,write:z,each:ge,remove:be,clearAll:ve};var We={};function ee(fe){return We[fe]}function z(fe,pe){We[fe]=pe}function ge(fe){for(var pe in We)We.hasOwnProperty(pe)&&fe(We[pe],pe)}function be(fe){delete We[fe]}function ve(fe){We={}}},95347:function(at,We,ee){var z=ee(69078),ge=z.Global;at.exports={name:"oldFF-globalStorage",read:ve,write:fe,each:pe,remove:ie,clearAll:de};var be=ge.globalStorage;function ve(le){return be[le]}function fe(le,ce){be[le]=ce}function pe(le){for(var ce=be.length-1;ce>=0;ce--){var se=be.key(ce);le(be[se],se)}}function ie(le){return be.removeItem(le)}function de(){pe(function(le,ce){delete be[le]})}},34524:function(at,We,ee){var z=ee(69078),ge=z.Global;at.exports={name:"oldIE-userDataStorage",write:ie,read:de,each:le,remove:ce,clearAll:se};var be="storejs",ve=ge.document,fe=ne(),pe=(ge.navigator?ge.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(a,y){if(!pe){var E=re(a);fe(function(b){b.setAttribute(E,y),b.save(be)})}}function de(a){if(!pe){var y=re(a),E=null;return fe(function(b){E=b.getAttribute(y)}),E}}function le(a){fe(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 ce(a){var y=re(a);fe(function(E){E.removeAttribute(y),E.save(be)})}function se(){fe(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 me=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(a){return a.replace(/^\d/,"___$&").replace(me,"___")}function ne(){if(!ve||!ve.documentElement||!ve.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=ve.createElement("div"),y=ve.body}return function(x){var te=[].slice.call(arguments,0);te.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(be),x.apply(this,te),y.removeChild(b)}}},58855:function(at,We,ee){var z=ee(69078),ge=z.Global;at.exports={name:"sessionStorage",read:ve,write:fe,each:pe,remove:ie,clearAll:de};function be(){return ge.sessionStorage}function ve(le){return be().getItem(le)}function fe(le,ce){return be().setItem(le,ce)}function pe(le){for(var ce=be().length-1;ce>=0;ce--){var se=be().key(ce);le(ve(se),se)}}function ie(le){return be().removeItem(le)}function de(){return be().clear()}},18034:function(at){var We=arguments[3],ee=arguments[4],z=arguments[5],ge=JSON.stringify;at.exports=function(be,ve){for(var fe,pe=Object.keys(z),ie=0,de=pe.length;ie<de;ie++){var le=pe[ie],ce=z[le].exports;if(ce===be||ce&&ce.default===be){fe=le;break}}if(!fe){fe=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var se={},ie=0,de=pe.length;ie<de;ie++){var le=pe[ie];se[le]=le}ee[fe]=["function(require,module,exports){"+be+"(self); }",se]}var me=Math.floor(Math.pow(16,8)*Math.random()).toString(16),re={};re[fe]=fe,ee[me]=["function(require,module,exports){var f = require("+ge(fe)+");(f.default ? f.default : f)(self);}",re];var ne={};a(me);function a(oe){ne[oe]=!0;for(var ae in ee[oe][1]){var ue=ee[oe][1][ae];ne[ue]||a(ue)}}var y="("+We+")({"+Object.keys(ne).map(function(oe){return ge(oe)+":["+ee[oe][0]+","+ge(ee[oe][1])+"]"}).join(",")+"},{},["+ge(me)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(ve&&ve.bare)return b;var x=E.createObjectURL(b),te=new Worker(x);return te.objectURL=x,te}},12320:function(at){(function(We,ee){if(1)at.exports=ee();else var z,ge})(window,function(){return function(We){var ee={};function z(ge){if(ee[ge])return ee[ge].exports;var be=ee[ge]={i:ge,l:!1,exports:{}};return We[ge].call(be.exports,be,be.exports,z),be.l=!0,be.exports}return z.m=We,z.c=ee,z.d=function(ge,be,ve){z.o(ge,be)||Object.defineProperty(ge,be,{enumerable:!0,get:ve})},z.r=function(ge){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ge,"__esModule",{value:!0})},z.t=function(ge,be){if(1&be&&(ge=z(ge)),8&be||4&be&&typeof ge=="object"&&ge&&ge.__esModule)return ge;var ve=Object.create(null);if(z.r(ve),Object.defineProperty(ve,"default",{enumerable:!0,value:ge}),2&be&&typeof ge!="string")for(var fe in ge)z.d(ve,fe,function(pe){return ge[pe]}.bind(null,fe));return ve},z.n=function(ge){var be=ge&&ge.__esModule?function(){return ge.default}:function(){return ge};return z.d(be,"a",be),be},z.o=function(ge,be){return Object.prototype.hasOwnProperty.call(ge,be)},z.p="",z(z.s=34)}([function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.forwardEvent=ee.EventEmitter=void 0;var ge=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var ve=this;return this._event||(this._event=function(fe){return ve._listeners.push(fe),{dispose:function(){if(!ve._disposed){for(var pe=0;pe<ve._listeners.length;pe++)if(ve._listeners[pe]===fe)return void ve._listeners.splice(pe,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(ve,fe){for(var pe=[],ie=0;ie<this._listeners.length;ie++)pe.push(this._listeners[ie]);for(ie=0;ie<pe.length;ie++)pe[ie].call(void 0,ve,fe)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();ee.EventEmitter=ge,ee.forwardEvent=function(be,ve){return be(function(fe){return ve.fire(fe)})}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.IUnicodeService=ee.IOptionsService=ee.ILogService=ee.IInstantiationService=ee.IDirtyRowService=ee.ICharsetService=ee.ICoreService=ee.ICoreMouseService=ee.IBufferService=void 0;var ge=z(14);ee.IBufferService=ge.createDecorator("BufferService"),ee.ICoreMouseService=ge.createDecorator("CoreMouseService"),ee.ICoreService=ge.createDecorator("CoreService"),ee.ICharsetService=ge.createDecorator("CharsetService"),ee.IDirtyRowService=ge.createDecorator("DirtyRowService"),ee.IInstantiationService=ge.createDecorator("InstantiationService"),ee.ILogService=ge.createDecorator("LogService"),ee.IOptionsService=ge.createDecorator("OptionsService"),ee.IUnicodeService=ge.createDecorator("UnicodeService")},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.getDisposeArrayDisposable=ee.disposeArray=ee.Disposable=void 0;var ge=function(){function ve(){this._disposables=[],this._isDisposed=!1}return ve.prototype.dispose=function(){this._isDisposed=!0;for(var fe=0,pe=this._disposables;fe<pe.length;fe++)pe[fe].dispose();this._disposables.length=0},ve.prototype.register=function(fe){return this._disposables.push(fe),fe},ve.prototype.unregister=function(fe){var pe=this._disposables.indexOf(fe);pe!==-1&&this._disposables.splice(pe,1)},ve}();function be(ve){for(var fe=0,pe=ve;fe<pe.length;fe++)pe[fe].dispose();ve.length=0}ee.Disposable=ge,ee.disposeArray=be,ee.getDisposeArrayDisposable=function(ve){return{dispose:function(){return be(ve)}}}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WHITESPACE_CELL_CODE=ee.WHITESPACE_CELL_WIDTH=ee.WHITESPACE_CELL_CHAR=ee.NULL_CELL_CODE=ee.NULL_CELL_WIDTH=ee.NULL_CELL_CHAR=ee.CHAR_DATA_CODE_INDEX=ee.CHAR_DATA_WIDTH_INDEX=ee.CHAR_DATA_CHAR_INDEX=ee.CHAR_DATA_ATTR_INDEX=ee.DEFAULT_ATTR=ee.DEFAULT_COLOR=void 0,ee.DEFAULT_COLOR=256,ee.DEFAULT_ATTR=256|ee.DEFAULT_COLOR<<9,ee.CHAR_DATA_ATTR_INDEX=0,ee.CHAR_DATA_CHAR_INDEX=1,ee.CHAR_DATA_WIDTH_INDEX=2,ee.CHAR_DATA_CODE_INDEX=3,ee.NULL_CELL_CHAR="",ee.NULL_CELL_WIDTH=1,ee.NULL_CELL_CODE=0,ee.WHITESPACE_CELL_CHAR=" ",ee.WHITESPACE_CELL_WIDTH=1,ee.WHITESPACE_CELL_CODE=32},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,se){ce.__proto__=se}||function(ce,se){for(var me in se)se.hasOwnProperty(me)&&(ce[me]=se[me])})(de,le)},function(de,le){function ce(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(ce.prototype=le.prototype,new ce)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CellData=void 0;var ve=z(8),fe=z(3),pe=z(6),ie=function(de){function le(){var ce=de!==null&&de.apply(this,arguments)||this;return ce.content=0,ce.fg=0,ce.bg=0,ce.extended=new pe.ExtendedAttrs,ce.combinedData="",ce}return be(le,de),le.fromCharData=function(ce){var se=new le;return se.setFromCharData(ce),se},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?ve.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(ce){this.fg=ce[fe.CHAR_DATA_ATTR_INDEX],this.bg=0;var se=!1;if(ce[fe.CHAR_DATA_CHAR_INDEX].length>2)se=!0;else if(ce[fe.CHAR_DATA_CHAR_INDEX].length===2){var me=ce[fe.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=me&&me<=56319){var re=ce[fe.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=re&&re<=57343?this.content=1024*(me-55296)+re-56320+65536|ce[fe.CHAR_DATA_WIDTH_INDEX]<<22:se=!0}else se=!0}else this.content=ce[fe.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ce[fe.CHAR_DATA_WIDTH_INDEX]<<22;se&&(this.combinedData=ce[fe.CHAR_DATA_CHAR_INDEX],this.content=2097152|ce[fe.CHAR_DATA_WIDTH_INDEX]<<22)},le.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},le}(pe.AttributeData);ee.CellData=ie},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ISoundService=ee.ISelectionService=ee.IRenderService=ee.IMouseService=ee.ICoreBrowserService=ee.ICharSizeService=void 0;var ge=z(14);ee.ICharSizeService=ge.createDecorator("CharSizeService"),ee.ICoreBrowserService=ge.createDecorator("CoreBrowserService"),ee.IMouseService=ge.createDecorator("MouseService"),ee.IRenderService=ge.createDecorator("RenderService"),ee.ISelectionService=ge.createDecorator("SelectionService"),ee.ISoundService=ge.createDecorator("SoundService")},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ExtendedAttrs=ee.AttributeData=void 0;var ge=function(){function ve(){this.fg=0,this.bg=0,this.extended=new be}return ve.toColorRGB=function(fe){return[fe>>>16&255,fe>>>8&255,255&fe]},ve.fromColorRGB=function(fe){return(255&fe[0])<<16|(255&fe[1])<<8|255&fe[2]},ve.prototype.clone=function(){var fe=new ve;return fe.fg=this.fg,fe.bg=this.bg,fe.extended=this.extended.clone(),fe},ve.prototype.isInverse=function(){return 67108864&this.fg},ve.prototype.isBold=function(){return 134217728&this.fg},ve.prototype.isUnderline=function(){return 268435456&this.fg},ve.prototype.isBlink=function(){return 536870912&this.fg},ve.prototype.isInvisible=function(){return 1073741824&this.fg},ve.prototype.isItalic=function(){return 67108864&this.bg},ve.prototype.isDim=function(){return 134217728&this.bg},ve.prototype.getFgColorMode=function(){return 50331648&this.fg},ve.prototype.getBgColorMode=function(){return 50331648&this.bg},ve.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},ve.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},ve.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},ve.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},ve.prototype.isFgDefault=function(){return(50331648&this.fg)==0},ve.prototype.isBgDefault=function(){return(50331648&this.bg)==0},ve.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},ve.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},ve.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},ve.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},ve.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},ve.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()},ve.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},ve.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},ve.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},ve.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},ve.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},ve}();ee.AttributeData=ge;var be=function(){function ve(fe,pe){fe===void 0&&(fe=0),pe===void 0&&(pe=-1),this.underlineStyle=fe,this.underlineColor=pe}return ve.prototype.clone=function(){return new ve(this.underlineStyle,this.underlineColor)},ve.prototype.isEmpty=function(){return this.underlineStyle===0},ve}();ee.ExtendedAttrs=be},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.addDisposableDomListener=void 0,ee.addDisposableDomListener=function(ge,be,ve,fe){ge.addEventListener(be,ve,fe);var pe=!1;return{dispose:function(){pe||(pe=!0,ge.removeEventListener(be,ve,fe))}}}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Utf8ToUtf32=ee.StringToUtf32=ee.utf32ToString=ee.stringFromCodePoint=void 0,ee.stringFromCodePoint=function(ve){return ve>65535?(ve-=65536,String.fromCharCode(55296+(ve>>10))+String.fromCharCode(ve%1024+56320)):String.fromCharCode(ve)},ee.utf32ToString=function(ve,fe,pe){fe===void 0&&(fe=0),pe===void 0&&(pe=ve.length);for(var ie="",de=fe;de<pe;++de){var le=ve[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 ve(){this._interim=0}return ve.prototype.clear=function(){this._interim=0},ve.prototype.decode=function(fe,pe){var ie=fe.length;if(!ie)return 0;var de=0,le=0;this._interim&&(56320<=(me=fe.charCodeAt(le++))&&me<=57343?pe[de++]=1024*(this._interim-55296)+me-56320+65536:(pe[de++]=this._interim,pe[de++]=me),this._interim=0);for(var ce=le;ce<ie;++ce){var se=fe.charCodeAt(ce);if(55296<=se&&se<=56319){if(++ce>=ie)return this._interim=se,de;var me;56320<=(me=fe.charCodeAt(ce))&&me<=57343?pe[de++]=1024*(se-55296)+me-56320+65536:(pe[de++]=se,pe[de++]=me)}else pe[de++]=se}return de},ve}();ee.StringToUtf32=ge;var be=function(){function ve(){this.interim=new Uint8Array(3)}return ve.prototype.clear=function(){this.interim.fill(0)},ve.prototype.decode=function(fe,pe){var ie=fe.length;if(!ie)return 0;var de,le,ce,se,me=0,re=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,te=x-E;ne<te;){if(ne>=ie)return 0;if((192&(b=fe[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:pe[me++]=y:x===3?y<2048||y>=55296&&y<=57343||(pe[me++]=y):y<65536||y>1114111||(pe[me++]=y)),this.interim.fill(0)}for(var oe=ie-4,ae=ne;ae<ie;){for(;!(!(ae<oe)||128&(de=fe[ae])||128&(le=fe[ae+1])||128&(ce=fe[ae+2])||128&(se=fe[ae+3]));)pe[me++]=de,pe[me++]=le,pe[me++]=ce,pe[me++]=se,ae+=4;if((de=fe[ae++])<128)pe[me++]=de;else if((224&de)==192){if(ae>=ie)return this.interim[0]=de,me;if((192&(le=fe[ae++]))!=128){ae--;continue}if((re=(31&de)<<6|63&le)<128){ae--;continue}pe[me++]=re}else if((240&de)==224){if(ae>=ie)return this.interim[0]=de,me;if((192&(le=fe[ae++]))!=128){ae--;continue}if(ae>=ie)return this.interim[0]=de,this.interim[1]=le,me;if((192&(ce=fe[ae++]))!=128){ae--;continue}if((re=(15&de)<<12|(63&le)<<6|63&ce)<2048||re>=55296&&re<=57343)continue;pe[me++]=re}else if((248&de)==240){if(ae>=ie)return this.interim[0]=de,me;if((192&(le=fe[ae++]))!=128){ae--;continue}if(ae>=ie)return this.interim[0]=de,this.interim[1]=le,me;if((192&(ce=fe[ae++]))!=128){ae--;continue}if(ae>=ie)return this.interim[0]=de,this.interim[1]=le,this.interim[2]=ce,me;if((192&(se=fe[ae++]))!=128){ae--;continue}if((re=(7&de)<<18|(63&le)<<12|(63&ce)<<6|63&se)<65536||re>1114111)continue;pe[me++]=re}}return me},ve}();ee.Utf8ToUtf32=be},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CHAR_ATLAS_CELL_SPACING=ee.DIM_OPACITY=ee.INVERTED_DEFAULT_COLOR=void 0,ee.INVERTED_DEFAULT_COLOR=257,ee.DIM_OPACITY=.5,ee.CHAR_ATLAS_CELL_SPACING=1},function(We,ee,z){"use strict";var ge,be,ve,fe;function pe(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(ee,"__esModule",{value:!0}),ee.contrastRatio=ee.toPaddedHex=ee.rgba=ee.rgb=ee.css=ee.color=ee.channels=void 0,function(de){de.toCss=function(le,ce,se,me){return me!==void 0?"#"+pe(le)+pe(ce)+pe(se)+pe(me):"#"+pe(le)+pe(ce)+pe(se)},de.toRgba=function(le,ce,se,me){return me===void 0&&(me=255),(le<<24|ce<<16|se<<8|me)>>>0}}(ge=ee.channels||(ee.channels={})),(be=ee.color||(ee.color={})).blend=function(de,le){var ce=(255&le.rgba)/255;if(ce===1)return{css:le.css,rgba:le.rgba};var se=le.rgba>>24&255,me=le.rgba>>16&255,re=le.rgba>>8&255,ne=de.rgba>>24&255,a=de.rgba>>16&255,y=de.rgba>>8&255,E=ne+Math.round((se-ne)*ce),b=a+Math.round((me-a)*ce),x=y+Math.round((re-y)*ce);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,ce){var se=fe.ensureContrastRatio(de.rgba,le.rgba,ce);if(se)return fe.toColor(se>>24&255,se>>16&255,se>>8&255)},be.opaque=function(de){var le=(255|de.rgba)>>>0,ce=fe.toChannels(le),se=ce[0],me=ce[1],re=ce[2];return{css:ge.toCss(se,me,re),rgba:le}},be.opacity=function(de,le){var ce=Math.round(255*le),se=fe.toChannels(de.rgba),me=se[0],re=se[1],ne=se[2];return{css:ge.toCss(me,re,ne,ce),rgba:ge.toRgba(me,re,ne,ce)}},(ee.css||(ee.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(ce,se,me){var re=ce/255,ne=se/255,a=me/255;return .2126*(re<=.03928?re/12.92:Math.pow((re+.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(ce){return le(ce>>16&255,ce>>8&255,255&ce)},de.relativeLuminance2=le}(ve=ee.rgb||(ee.rgb={})),function(de){function le(se,me,re){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=me>>24&255,b=me>>16&255,x=me>>8&255,te=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));te<re&&(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)),te=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function ce(se,me,re){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=me>>24&255,b=me>>16&255,x=me>>8&255,te=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));te<re&&(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))),te=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}de.ensureContrastRatio=function(se,me,re){var ne=ve.relativeLuminance(se>>8),a=ve.relativeLuminance(me>>8);if(ie(ne,a)<re)return a<ne?le(se,me,re):ce(se,me,re)},de.reduceLuminance=le,de.increaseLuminance=ce,de.toChannels=function(se){return[se>>24&255,se>>16&255,se>>8&255,255&se]},de.toColor=function(se,me,re){return{css:ge.toCss(se,me,re),rgba:ge.toRgba(se,me,re)}}}(fe=ee.rgba||(ee.rgba={})),ee.toPaddedHex=pe,ee.contrastRatio=ie},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isLinux=ee.isWindows=ee.isIphone=ee.isIpad=ee.isMac=ee.isSafari=ee.isFirefox=void 0;var ge=typeof navigator=="undefined",be=ge?"node":navigator.userAgent,ve=ge?"node":navigator.platform;function fe(pe,ie){return pe.indexOf(ie)>=0}ee.isFirefox=!!~be.indexOf("Firefox"),ee.isSafari=/^((?!chrome|android).)*safari/i.test(be),ee.isMac=fe(["Macintosh","MacIntel","MacPPC","Mac68K"],ve),ee.isIpad=ve==="iPad",ee.isIphone=ve==="iPhone",ee.isWindows=fe(["Windows","Win16","Win32","WinCE"],ve),ee.isLinux=ve.indexOf("Linux")>=0},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.C1=ee.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"}(ee.C0||(ee.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"}(ee.C1||(ee.C1={}))},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseRenderLayer=void 0;var ge=z(3),be=z(9),ve=z(25),fe=z(6),pe=z(28),ie=z(10),de=z(17),le=function(){function ce(se,me,re,ne,a,y,E,b){this._container=se,this._alpha=ne,this._colors=a,this._rendererId=y,this._bufferService=E,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+me+"-layer"),this._canvas.style.zIndex=re.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return ce.prototype.dispose=function(){var se;de.removeElementFromParent(this._canvas),(se=this._charAtlas)===null||se===void 0||se.dispose()},ce.prototype._initCanvas=function(){this._ctx=pe.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},ce.prototype.onOptionsChanged=function(){},ce.prototype.onBlur=function(){},ce.prototype.onFocus=function(){},ce.prototype.onCursorMove=function(){},ce.prototype.onGridChanged=function(se,me){},ce.prototype.onSelectionChanged=function(se,me,re){re===void 0&&(re=!1)},ce.prototype.setColors=function(se){this._refreshCharAtlas(se)},ce.prototype._setTransparency=function(se){if(se!==this._alpha){var me=this._canvas;this._alpha=se,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,me),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},ce.prototype._refreshCharAtlas=function(se){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ve.acquireCharAtlas(this._optionsService.options,this._rendererId,se,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},ce.prototype.resize=function(se){this._scaledCellWidth=se.scaledCellWidth,this._scaledCellHeight=se.scaledCellHeight,this._scaledCharWidth=se.scaledCharWidth,this._scaledCharHeight=se.scaledCharHeight,this._scaledCharLeft=se.scaledCharLeft,this._scaledCharTop=se.scaledCharTop,this._canvas.width=se.scaledCanvasWidth,this._canvas.height=se.scaledCanvasHeight,this._canvas.style.width=se.canvasWidth+"px",this._canvas.style.height=se.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},ce.prototype._fillCells=function(se,me,re,ne){this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight)},ce.prototype._fillBottomLineAtCells=function(se,me,re){re===void 0&&(re=1),this._ctx.fillRect(se*this._scaledCellWidth,(me+1)*this._scaledCellHeight-window.devicePixelRatio-1,re*this._scaledCellWidth,window.devicePixelRatio)},ce.prototype._fillLeftLineAtCell=function(se,me,re){this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,window.devicePixelRatio*re,this._scaledCellHeight)},ce.prototype._strokeRectAtCell=function(se,me,re,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(se*this._scaledCellWidth+window.devicePixelRatio/2,me*this._scaledCellHeight+window.devicePixelRatio/2,re*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},ce.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))},ce.prototype._clearCells=function(se,me,re,ne){this._alpha?this._ctx.clearRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight))},ce.prototype._fillCharTrueColor=function(se,me,re){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(re),this._ctx.fillText(se.getChars(),me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},ce.prototype._drawChars=function(se,me,re){var ne,a,y=this._getContrastColor(se);y||se.isFgRGB()||se.isBgRGB()?this._drawUncachedChars(se,me,re,y):(se.isInverse()?(ne=se.isBgDefault()?be.INVERTED_DEFAULT_COLOR:se.getBgColor(),a=se.isFgDefault()?be.INVERTED_DEFAULT_COLOR:se.getFgColor()):(a=se.isBgDefault()?ge.DEFAULT_COLOR:se.getBgColor(),ne=se.isFgDefault()?ge.DEFAULT_COLOR:se.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=se.getChars()||ge.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=se.getCode()||ge.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!se.isBold(),this._currentGlyphIdentifier.dim=!!se.isDim(),this._currentGlyphIdentifier.italic=!!se.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(se,me,re))},ce.prototype._drawUncachedChars=function(se,me,re,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!se.isBold(),!!se.isItalic()),this._ctx.textBaseline="middle",se.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(se.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(se.isBgRGB())this._ctx.fillStyle="rgb("+fe.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var a=se.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(se.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(se.isFgRGB())this._ctx.fillStyle="rgb("+fe.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var y=se.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(re),se.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(se.getChars(),me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},ce.prototype._clipRow=function(se){this._ctx.beginPath(),this._ctx.rect(0,se*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},ce.prototype._getFont=function(se,me){return(me?"italic":"")+" "+(se?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},ce.prototype._getContrastColor=function(se){if(this._optionsService.options.minimumContrastRatio!==1){var me=this._colors.contrastCache.getColor(se.bg,se.fg);if(me!==void 0)return me||void 0;var re=se.getFgColor(),ne=se.getFgColorMode(),a=se.getBgColor(),y=se.getBgColorMode(),E=!!se.isInverse(),b=!!se.isInverse();if(E){var x=re;re=a,a=x;var te=ne;ne=y,y=te}var oe=this._resolveBackgroundRgba(y,a,E),ae=this._resolveForegroundRgba(ne,re,E,b),ue=ie.rgba.ensureContrastRatio(oe,ae,this._optionsService.options.minimumContrastRatio);if(ue){var ye={css:ie.channels.toCss(ue>>24&255,ue>>16&255,ue>>8&255),rgba:ue};return this._colors.contrastCache.setColor(se.bg,se.fg,ye),ye}this._colors.contrastCache.setColor(se.bg,se.fg,null)}},ce.prototype._resolveBackgroundRgba=function(se,me,re){switch(se){case 16777216:case 33554432:return this._colors.ansi[me].rgba;case 50331648:return me<<8;case 0:default:return re?this._colors.foreground.rgba:this._colors.background.rgba}},ce.prototype._resolveForegroundRgba=function(se,me,re,ne){switch(se){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&me<8&&(me+=8),this._colors.ansi[me].rgba;case 50331648:return me<<8;case 0:default:return re?this._colors.background.rgba:this._colors.foreground.rgba}},ce}();ee.BaseRenderLayer=le},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDecorator=ee.getServiceDependencies=ee.serviceRegistry=void 0;function ge(be,ve,fe){ve.di$target===ve?ve.di$dependencies.push({id:be,index:fe}):(ve.di$dependencies=[{id:be,index:fe}],ve.di$target=ve)}ee.serviceRegistry=new Map,ee.getServiceDependencies=function(be){return be.di$dependencies||[]},ee.createDecorator=function(be){if(ee.serviceRegistry.has(be))return ee.serviceRegistry.get(be);var ve=function(fe,pe,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ge(ve,fe,ie)};return ve.toString=function(){return be},ee.serviceRegistry.set(be,ve),ve}},function(We,ee,z){"use strict";function ge(be,ve,fe,pe){if(fe===void 0&&(fe=0),pe===void 0&&(pe=be.length),fe>=be.length)return be;fe=(be.length+fe)%be.length,pe=pe>=be.length?be.length:(be.length+pe)%be.length;for(var ie=fe;ie<pe;++ie)be[ie]=ve;return be}Object.defineProperty(ee,"__esModule",{value:!0}),ee.concat=ee.fillFallback=ee.fill=void 0,ee.fill=function(be,ve,fe,pe){return be.fill?be.fill(ve,fe,pe):ge(be,ve,fe,pe)},ee.fillFallback=ge,ee.concat=function(be,ve){var fe=new be.constructor(be.length+ve.length);return fe.set(be),fe.set(ve,be.length),fe}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferLine=ee.DEFAULT_ATTR_DATA=void 0;var ge=z(8),be=z(3),ve=z(4),fe=z(6);ee.DEFAULT_ATTR_DATA=Object.freeze(new fe.AttributeData);var pe=function(){function ie(de,le,ce){ce===void 0&&(ce=!1),this.isWrapped=ce,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*de);for(var se=le||ve.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),me=0;me<de;++me)this.setCell(me,se);this.length=de}return ie.prototype.get=function(de){var le=this._data[3*de+0],ce=2097151≤return[this._data[3*de+1],2097152&le?this._combined[de]:ce?ge.stringFromCodePoint(ce):"",le>>22,2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):ce]},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 ce=3*de;return le.content=this._data[ce+0],le.fg=this._data[ce+1],le.bg=this._data[ce+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,ce,se,me,re){268435456&me&&(this._extendedAttrs[de]=re),this._data[3*de+0]=le|ce<<22,this._data[3*de+1]=se,this._data[3*de+2]=me},ie.prototype.addCodepointToCell=function(de,le){var ce=this._data[3*de+0];2097152&ce?this._combined[de]+=ge.stringFromCodePoint(le):(2097151&ce?(this._combined[de]=ge.stringFromCodePoint(2097151&ce)+ge.stringFromCodePoint(le),ce&=-2097152,ce|=2097152):ce=le|1<<22,this._data[3*de+0]=ce)},ie.prototype.insertCells=function(de,le,ce,se){if((de%=this.length)&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new fe.ExtendedAttrs),le<this.length-de){for(var me=new ve.CellData,re=this.length-de-le-1;re>=0;--re)this.setCell(de+le+re,this.loadCell(de+re,me));for(re=0;re<le;++re)this.setCell(de+re,ce)}else for(re=de;re<this.length;++re)this.setCell(re,ce);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new fe.ExtendedAttrs)},ie.prototype.deleteCells=function(de,le,ce,se){if(de%=this.length,le<this.length-de){for(var me=new ve.CellData,re=0;re<this.length-de-le;++re)this.setCell(de+re,this.loadCell(de+le+re,me));for(re=this.length-le;re<this.length;++re)this.setCell(re,ce)}else for(re=de;re<this.length;++re)this.setCell(re,ce);de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new fe.ExtendedAttrs),this.getWidth(de)!==0||this.hasContent(de)||this.setCellFromCodePoint(de,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new fe.ExtendedAttrs)},ie.prototype.replaceCells=function(de,le,ce,se){for(de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new fe.ExtendedAttrs),le<this.length&&this.getWidth(le-1)===2&&this.setCellFromCodePoint(le,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new fe.ExtendedAttrs);de<le&&de<this.length;)this.setCell(de++,ce)},ie.prototype.resize=function(de,le){if(de!==this.length){if(de>this.length){var ce=new Uint32Array(3*de);this.length&&(3*de<this._data.length?ce.set(this._data.subarray(0,3*de)):ce.set(this._data)),this._data=ce;for(var se=this.length;se<de;++se)this.setCell(se,le)}else if(de){(ce=new Uint32Array(3*de)).set(this._data.subarray(0,3*de)),this._data=ce;var me=Object.keys(this._combined);for(se=0;se<me.length;se++){var re=parseInt(me[se],10);re>=de&&delete this._combined[re]}}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,ce,se,me){var re=de._data;if(me)for(var ne=se-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(ce+ne)+a]=re[3*(le+ne)+a];else for(ne=0;ne<se;ne++)for(a=0;a<3;a++)this._data[3*(ce+ne)+a]=re[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+ce]=de._combined[E])}},ie.prototype.translateToString=function(de,le,ce){de===void 0&&(de=!1),le===void 0&&(le=0),ce===void 0&&(ce=this.length),de&&(ce=Math.min(ce,this.getTrimmedLength()));for(var se="";le<ce;){var me=this._data[3*le+0],re=2097151&me;se+=2097152&me?this._combined[le]:re?ge.stringFromCodePoint(re):be.WHITESPACE_CELL_CHAR,le+=me>>22||1}return se},ie}();ee.BufferLine=pe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeElementFromParent=void 0,ee.removeElementFromParent=function(){for(var ge,be=[],ve=0;ve<arguments.length;ve++)be[ve]=arguments[ve];for(var fe=0,pe=be;fe<pe.length;fe++){var ie=pe[fe];(ge=ie==null?void 0:ie.parentElement)===null||ge===void 0||ge.removeChild(ie)}}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.tooMuchOutput=ee.promptLabel=void 0,ee.promptLabel="Terminal input",ee.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,ue){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,_e){ye.__proto__=_e}||function(ye,_e){for(var xe in _e)_e.hasOwnProperty(xe)&&(ye[xe]=_e[xe])})(ae,ue)},function(ae,ue){function ye(){this.constructor=ae}ge(ae,ue),ae.prototype=ue===null?Object.create(ue):(ye.prototype=ue.prototype,new ye)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.InputHandler=ee.WindowsOptionsReportType=void 0;var ve,fe=z(12),pe=z(20),ie=z(39),de=z(2),le=z(15),ce=z(8),se=z(16),me=z(0),re=z(3),ne=z(4),a=z(6),y=z(22),E=z(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(ae,ue){if(ae>24)return ue.setWinLines||!1;switch(ae){case 1:return!!ue.restoreWin;case 2:return!!ue.minimizeWin;case 3:return!!ue.setWinPosition;case 4:return!!ue.setWinSizePixels;case 5:return!!ue.raiseWin;case 6:return!!ue.lowerWin;case 7:return!!ue.refreshWin;case 8:return!!ue.setWinSizeChars;case 9:return!!ue.maximizeWin;case 10:return!!ue.fullscreenWin;case 11:return!!ue.getWinState;case 13:return!!ue.getWinPosition;case 14:return!!ue.getWinSizePixels;case 15:return!!ue.getScreenSizePixels;case 16:return!!ue.getCellSizePixels;case 18:return!!ue.getWinSizeChars;case 19:return!!ue.getScreenSizeChars;case 20:return!!ue.getIconTitle;case 21:return!!ue.getWinTitle;case 22:return!!ue.pushTitle;case 23:return!!ue.popTitle;case 24:return!!ue.setWinLines}return!1}(function(ae){ae[ae.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ae[ae.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ve=ee.WindowsOptionsReportType||(ee.WindowsOptionsReportType={}));var te=function(){function ae(ue,ye,_e,xe){this._bufferService=ue,this._coreService=ye,this._logService=_e,this._optionsService=xe,this._data=new Uint32Array(0)}return ae.prototype.hook=function(ue){this._data=new Uint32Array(0)},ae.prototype.put=function(ue,ye,_e){this._data=le.concat(this._data,ue.subarray(ye,_e))},ae.prototype.unhook=function(ue){if(ue){var ye=ce.utf32ToString(this._data);switch(this._data=new Uint32Array(0),ye){case'"q':return this._coreService.triggerDataEvent(fe.C0.ESC+'P1$r0"q'+fe.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(fe.C0.ESC+'P1$r61;1"p'+fe.C0.ESC+"\\");case"r":var _e=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(fe.C0.ESC+"P1$r"+_e+fe.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(fe.C0.ESC+"P1$r0m"+fe.C0.ESC+"\\");case" q":var xe={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return xe-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(fe.C0.ESC+"P1$r"+xe+" q"+fe.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",ye),this._coreService.triggerDataEvent(fe.C0.ESC+"P0$r"+fe.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},ae}(),oe=function(ae){function ue(ye,_e,xe,Ce,Be,Me,mt,Qe,pt){pt===void 0&&(pt=new ie.EscapeSequenceParser);var Ae=ae.call(this)||this;Ae._bufferService=ye,Ae._charsetService=_e,Ae._coreService=xe,Ae._dirtyRowService=Ce,Ae._logService=Be,Ae._optionsService=Me,Ae._coreMouseService=mt,Ae._unicodeService=Qe,Ae._parser=pt,Ae._parseBuffer=new Uint32Array(4096),Ae._stringDecoder=new ce.StringToUtf32,Ae._utf8Decoder=new ce.Utf8ToUtf32,Ae._workCell=new ne.CellData,Ae._windowTitle="",Ae._iconName="",Ae._windowTitleStack=[],Ae._iconNameStack=[],Ae._curAttrData=se.DEFAULT_ATTR_DATA.clone(),Ae._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone(),Ae._onRequestBell=new me.EventEmitter,Ae._onRequestRefreshRows=new me.EventEmitter,Ae._onRequestReset=new me.EventEmitter,Ae._onRequestScroll=new me.EventEmitter,Ae._onRequestSyncScrollBar=new me.EventEmitter,Ae._onRequestWindowsOptionsReport=new me.EventEmitter,Ae._onA11yChar=new me.EventEmitter,Ae._onA11yTab=new me.EventEmitter,Ae._onCursorMove=new me.EventEmitter,Ae._onLineFeed=new me.EventEmitter,Ae._onScroll=new me.EventEmitter,Ae._onTitleChange=new me.EventEmitter,Ae.register(Ae._parser),Ae._parser.setCsiHandlerFallback(function(Ve,Ct){Ae._logService.debug("Unknown CSI code: ",{identifier:Ae._parser.identToString(Ve),params:Ct.toArray()})}),Ae._parser.setEscHandlerFallback(function(Ve){Ae._logService.debug("Unknown ESC code: ",{identifier:Ae._parser.identToString(Ve)})}),Ae._parser.setExecuteHandlerFallback(function(Ve){Ae._logService.debug("Unknown EXECUTE code: ",{code:Ve})}),Ae._parser.setOscHandlerFallback(function(Ve,Ct,Mt){Ae._logService.debug("Unknown OSC code: ",{identifier:Ve,action:Ct,data:Mt})}),Ae._parser.setDcsHandlerFallback(function(Ve,Ct,Mt){Ct==="HOOK"&&(Mt=Mt.toArray()),Ae._logService.debug("Unknown DCS code: ",{identifier:Ae._parser.identToString(Ve),action:Ct,payload:Mt})}),Ae._parser.setPrintHandler(function(Ve,Ct,Mt){return Ae.print(Ve,Ct,Mt)}),Ae._parser.setCsiHandler({final:"@"},function(Ve){return Ae.insertChars(Ve)}),Ae._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ve){return Ae.scrollLeft(Ve)}),Ae._parser.setCsiHandler({final:"A"},function(Ve){return Ae.cursorUp(Ve)}),Ae._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ve){return Ae.scrollRight(Ve)}),Ae._parser.setCsiHandler({final:"B"},function(Ve){return Ae.cursorDown(Ve)}),Ae._parser.setCsiHandler({final:"C"},function(Ve){return Ae.cursorForward(Ve)}),Ae._parser.setCsiHandler({final:"D"},function(Ve){return Ae.cursorBackward(Ve)}),Ae._parser.setCsiHandler({final:"E"},function(Ve){return Ae.cursorNextLine(Ve)}),Ae._parser.setCsiHandler({final:"F"},function(Ve){return Ae.cursorPrecedingLine(Ve)}),Ae._parser.setCsiHandler({final:"G"},function(Ve){return Ae.cursorCharAbsolute(Ve)}),Ae._parser.setCsiHandler({final:"H"},function(Ve){return Ae.cursorPosition(Ve)}),Ae._parser.setCsiHandler({final:"I"},function(Ve){return Ae.cursorForwardTab(Ve)}),Ae._parser.setCsiHandler({final:"J"},function(Ve){return Ae.eraseInDisplay(Ve)}),Ae._parser.setCsiHandler({prefix:"?",final:"J"},function(Ve){return Ae.eraseInDisplay(Ve)}),Ae._parser.setCsiHandler({final:"K"},function(Ve){return Ae.eraseInLine(Ve)}),Ae._parser.setCsiHandler({prefix:"?",final:"K"},function(Ve){return Ae.eraseInLine(Ve)}),Ae._parser.setCsiHandler({final:"L"},function(Ve){return Ae.insertLines(Ve)}),Ae._parser.setCsiHandler({final:"M"},function(Ve){return Ae.deleteLines(Ve)}),Ae._parser.setCsiHandler({final:"P"},function(Ve){return Ae.deleteChars(Ve)}),Ae._parser.setCsiHandler({final:"S"},function(Ve){return Ae.scrollUp(Ve)}),Ae._parser.setCsiHandler({final:"T"},function(Ve){return Ae.scrollDown(Ve)}),Ae._parser.setCsiHandler({final:"X"},function(Ve){return Ae.eraseChars(Ve)}),Ae._parser.setCsiHandler({final:"Z"},function(Ve){return Ae.cursorBackwardTab(Ve)}),Ae._parser.setCsiHandler({final:"`"},function(Ve){return Ae.charPosAbsolute(Ve)}),Ae._parser.setCsiHandler({final:"a"},function(Ve){return Ae.hPositionRelative(Ve)}),Ae._parser.setCsiHandler({final:"b"},function(Ve){return Ae.repeatPrecedingCharacter(Ve)}),Ae._parser.setCsiHandler({final:"c"},function(Ve){return Ae.sendDeviceAttributesPrimary(Ve)}),Ae._parser.setCsiHandler({prefix:">",final:"c"},function(Ve){return Ae.sendDeviceAttributesSecondary(Ve)}),Ae._parser.setCsiHandler({final:"d"},function(Ve){return Ae.linePosAbsolute(Ve)}),Ae._parser.setCsiHandler({final:"e"},function(Ve){return Ae.vPositionRelative(Ve)}),Ae._parser.setCsiHandler({final:"f"},function(Ve){return Ae.hVPosition(Ve)}),Ae._parser.setCsiHandler({final:"g"},function(Ve){return Ae.tabClear(Ve)}),Ae._parser.setCsiHandler({final:"h"},function(Ve){return Ae.setMode(Ve)}),Ae._parser.setCsiHandler({prefix:"?",final:"h"},function(Ve){return Ae.setModePrivate(Ve)}),Ae._parser.setCsiHandler({final:"l"},function(Ve){return Ae.resetMode(Ve)}),Ae._parser.setCsiHandler({prefix:"?",final:"l"},function(Ve){return Ae.resetModePrivate(Ve)}),Ae._parser.setCsiHandler({final:"m"},function(Ve){return Ae.charAttributes(Ve)}),Ae._parser.setCsiHandler({final:"n"},function(Ve){return Ae.deviceStatus(Ve)}),Ae._parser.setCsiHandler({prefix:"?",final:"n"},function(Ve){return Ae.deviceStatusPrivate(Ve)}),Ae._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ve){return Ae.softReset(Ve)}),Ae._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ve){return Ae.setCursorStyle(Ve)}),Ae._parser.setCsiHandler({final:"r"},function(Ve){return Ae.setScrollRegion(Ve)}),Ae._parser.setCsiHandler({final:"s"},function(Ve){return Ae.saveCursor(Ve)}),Ae._parser.setCsiHandler({final:"t"},function(Ve){return Ae.windowOptions(Ve)}),Ae._parser.setCsiHandler({final:"u"},function(Ve){return Ae.restoreCursor(Ve)}),Ae._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ve){return Ae.insertColumns(Ve)}),Ae._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ve){return Ae.deleteColumns(Ve)}),Ae._parser.setExecuteHandler(fe.C0.BEL,function(){return Ae.bell()}),Ae._parser.setExecuteHandler(fe.C0.LF,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(fe.C0.VT,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(fe.C0.FF,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(fe.C0.CR,function(){return Ae.carriageReturn()}),Ae._parser.setExecuteHandler(fe.C0.BS,function(){return Ae.backspace()}),Ae._parser.setExecuteHandler(fe.C0.HT,function(){return Ae.tab()}),Ae._parser.setExecuteHandler(fe.C0.SO,function(){return Ae.shiftOut()}),Ae._parser.setExecuteHandler(fe.C0.SI,function(){return Ae.shiftIn()}),Ae._parser.setExecuteHandler(fe.C1.IND,function(){return Ae.index()}),Ae._parser.setExecuteHandler(fe.C1.NEL,function(){return Ae.nextLine()}),Ae._parser.setExecuteHandler(fe.C1.HTS,function(){return Ae.tabSet()}),Ae._parser.setOscHandler(0,new y.OscHandler(function(Ve){Ae.setTitle(Ve),Ae.setIconName(Ve)})),Ae._parser.setOscHandler(1,new y.OscHandler(function(Ve){return Ae.setIconName(Ve)})),Ae._parser.setOscHandler(2,new y.OscHandler(function(Ve){return Ae.setTitle(Ve)})),Ae._parser.setEscHandler({final:"7"},function(){return Ae.saveCursor()}),Ae._parser.setEscHandler({final:"8"},function(){return Ae.restoreCursor()}),Ae._parser.setEscHandler({final:"D"},function(){return Ae.index()}),Ae._parser.setEscHandler({final:"E"},function(){return Ae.nextLine()}),Ae._parser.setEscHandler({final:"H"},function(){return Ae.tabSet()}),Ae._parser.setEscHandler({final:"M"},function(){return Ae.reverseIndex()}),Ae._parser.setEscHandler({final:"="},function(){return Ae.keypadApplicationMode()}),Ae._parser.setEscHandler({final:">"},function(){return Ae.keypadNumericMode()}),Ae._parser.setEscHandler({final:"c"},function(){return Ae.fullReset()}),Ae._parser.setEscHandler({final:"n"},function(){return Ae.setgLevel(2)}),Ae._parser.setEscHandler({final:"o"},function(){return Ae.setgLevel(3)}),Ae._parser.setEscHandler({final:"|"},function(){return Ae.setgLevel(3)}),Ae._parser.setEscHandler({final:"}"},function(){return Ae.setgLevel(2)}),Ae._parser.setEscHandler({final:"~"},function(){return Ae.setgLevel(1)}),Ae._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ae.selectDefaultCharset()}),Ae._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ae.selectDefaultCharset()});var De=function(Ve){Fe._parser.setEscHandler({intermediates:"(",final:Ve},function(){return Ae.selectCharset("("+Ve)}),Fe._parser.setEscHandler({intermediates:")",final:Ve},function(){return Ae.selectCharset(")"+Ve)}),Fe._parser.setEscHandler({intermediates:"*",final:Ve},function(){return Ae.selectCharset("*"+Ve)}),Fe._parser.setEscHandler({intermediates:"+",final:Ve},function(){return Ae.selectCharset("+"+Ve)}),Fe._parser.setEscHandler({intermediates:"-",final:Ve},function(){return Ae.selectCharset("-"+Ve)}),Fe._parser.setEscHandler({intermediates:".",final:Ve},function(){return Ae.selectCharset("."+Ve)}),Fe._parser.setEscHandler({intermediates:"/",final:Ve},function(){return Ae.selectCharset("/"+Ve)})},Fe=this;for(var tt in pe.CHARSETS)De(tt);return Ae._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ae.screenAlignmentPattern()}),Ae._parser.setErrorHandler(function(Ve){return Ae._logService.error("Parsing error: ",Ve),Ve}),Ae._parser.setDcsHandler({intermediates:"$",final:"q"},new te(Ae._bufferService,Ae._coreService,Ae._logService,Ae._optionsService)),Ae}return be(ue,ae),Object.defineProperty(ue.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ue.prototype.dispose=function(){ae.prototype.dispose.call(this)},ue.prototype.parse=function(ye){var _e=this._bufferService.buffer,xe=_e.x,Ce=_e.y;if(this._logService.debug("parsing data",ye),this._parseBuffer.length<ye.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(ye.length,131072))),this._dirtyRowService.clearRange(),ye.length>131072)for(var Be=0;Be<ye.length;Be+=131072){var Me=Be+131072<ye.length?Be+131072:ye.length,mt=typeof ye=="string"?this._stringDecoder.decode(ye.substring(Be,Me),this._parseBuffer):this._utf8Decoder.decode(ye.subarray(Be,Me),this._parseBuffer);this._parser.parse(this._parseBuffer,mt)}else mt=typeof ye=="string"?this._stringDecoder.decode(ye,this._parseBuffer):this._utf8Decoder.decode(ye,this._parseBuffer),this._parser.parse(this._parseBuffer,mt);(_e=this._bufferService.buffer).x===xe&&_e.y===Ce||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ue.prototype.print=function(ye,_e,xe){var Ce,Be,Me=this._bufferService.buffer,mt=this._charsetService.charset,Qe=this._optionsService.options.screenReaderMode,pt=this._bufferService.cols,Ae=this._coreService.decPrivateModes.wraparound,De=this._coreService.modes.insertMode,Fe=this._curAttrData,tt=Me.lines.get(Me.ybase+Me.y);this._dirtyRowService.markDirty(Me.y),Me.x&&xe-_e>0&&tt.getWidth(Me.x-1)===2&&tt.setCellFromCodePoint(Me.x-1,0,1,Fe.fg,Fe.bg,Fe.extended);for(var Ve=_e;Ve<xe;++Ve){if(Ce=ye[Ve],Be=this._unicodeService.wcwidth(Ce),Ce<127&&mt){var Ct=mt[String.fromCharCode(Ce)];Ct&&(Ce=Ct.charCodeAt(0))}if(Qe&&this._onA11yChar.fire(ce.stringFromCodePoint(Ce)),Be||!Me.x){if(Me.x+Be-1>=pt){if(Ae){for(;Me.x<pt;)tt.setCellFromCodePoint(Me.x++,0,1,Fe.fg,Fe.bg,Fe.extended);Me.x=0,Me.y++,Me.y===Me.scrollBottom+1?(Me.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Me.y>=this._bufferService.rows&&(Me.y=this._bufferService.rows-1),Me.lines.get(Me.ybase+Me.y).isWrapped=!0),tt=Me.lines.get(Me.ybase+Me.y)}else if(Me.x=pt-1,Be===2)continue}if(De&&(tt.insertCells(Me.x,Be,Me.getNullCell(Fe),Fe),tt.getWidth(pt-1)===2&&tt.setCellFromCodePoint(pt-1,re.NULL_CELL_CODE,re.NULL_CELL_WIDTH,Fe.fg,Fe.bg,Fe.extended)),tt.setCellFromCodePoint(Me.x++,Ce,Be,Fe.fg,Fe.bg,Fe.extended),Be>0)for(;--Be;)tt.setCellFromCodePoint(Me.x++,0,0,Fe.fg,Fe.bg,Fe.extended)}else tt.getWidth(Me.x-1)?tt.addCodepointToCell(Me.x-1,Ce):tt.addCodepointToCell(Me.x-2,Ce)}xe-_e>0&&(tt.loadCell(Me.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),Me.x<pt&&xe-_e>0&&tt.getWidth(Me.x)===0&&!tt.hasContent(Me.x)&&tt.setCellFromCodePoint(Me.x,0,1,Fe.fg,Fe.bg,Fe.extended),this._dirtyRowService.markDirty(Me.y)},ue.prototype.addCsiHandler=function(ye,_e){var xe=this;return ye.final!=="t"||ye.prefix||ye.intermediates?this._parser.addCsiHandler(ye,_e):this._parser.addCsiHandler(ye,function(Ce){return!x(Ce.params[0],xe._optionsService.options.windowOptions)||_e(Ce)})},ue.prototype.addDcsHandler=function(ye,_e){return this._parser.addDcsHandler(ye,new E.DcsHandler(_e))},ue.prototype.addEscHandler=function(ye,_e){return this._parser.addEscHandler(ye,_e)},ue.prototype.addOscHandler=function(ye,_e){return this._parser.addOscHandler(ye,new y.OscHandler(_e))},ue.prototype.bell=function(){this._onRequestBell.fire()},ue.prototype.lineFeed=function(){var ye=this._bufferService.buffer;this._dirtyRowService.markDirty(ye.y),this._optionsService.options.convertEol&&(ye.x=0),ye.y++,ye.y===ye.scrollBottom+1?(ye.y--,this._onRequestScroll.fire(this._eraseAttrData())):ye.y>=this._bufferService.rows&&(ye.y=this._bufferService.rows-1),ye.x>=this._bufferService.cols&&ye.x--,this._dirtyRowService.markDirty(ye.y),this._onLineFeed.fire()},ue.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ue.prototype.backspace=function(){var ye,_e=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(_e.x>0&&_e.x--);if(this._restrictCursor(this._bufferService.cols),_e.x>0)_e.x--;else if(_e.x===0&&_e.y>_e.scrollTop&&_e.y<=_e.scrollBottom&&(!((ye=_e.lines.get(_e.ybase+_e.y))===null||ye===void 0)&&ye.isWrapped)){_e.lines.get(_e.ybase+_e.y).isWrapped=!1,_e.y--,_e.x=this._bufferService.cols-1;var xe=_e.lines.get(_e.ybase+_e.y);xe.hasWidth(_e.x)&&!xe.hasContent(_e.x)&&_e.x--}this._restrictCursor()},ue.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var ye=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-ye)}},ue.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ue.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ue.prototype._restrictCursor=function(ye){ye===void 0&&(ye=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(ye,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)},ue.prototype._setCursor=function(ye,_e){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=ye,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+_e):(this._bufferService.buffer.x=ye,this._bufferService.buffer.y=_e),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ue.prototype._moveCursor=function(ye,_e){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+ye,this._bufferService.buffer.y+_e)},ue.prototype.cursorUp=function(ye){var _e=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;_e>=0?this._moveCursor(0,-Math.min(_e,ye.params[0]||1)):this._moveCursor(0,-(ye.params[0]||1))},ue.prototype.cursorDown=function(ye){var _e=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;_e>=0?this._moveCursor(0,Math.min(_e,ye.params[0]||1)):this._moveCursor(0,ye.params[0]||1)},ue.prototype.cursorForward=function(ye){this._moveCursor(ye.params[0]||1,0)},ue.prototype.cursorBackward=function(ye){this._moveCursor(-(ye.params[0]||1),0)},ue.prototype.cursorNextLine=function(ye){this.cursorDown(ye),this._bufferService.buffer.x=0},ue.prototype.cursorPrecedingLine=function(ye){this.cursorUp(ye),this._bufferService.buffer.x=0},ue.prototype.cursorCharAbsolute=function(ye){this._setCursor((ye.params[0]||1)-1,this._bufferService.buffer.y)},ue.prototype.cursorPosition=function(ye){this._setCursor(ye.length>=2?(ye.params[1]||1)-1:0,(ye.params[0]||1)-1)},ue.prototype.charPosAbsolute=function(ye){this._setCursor((ye.params[0]||1)-1,this._bufferService.buffer.y)},ue.prototype.hPositionRelative=function(ye){this._moveCursor(ye.params[0]||1,0)},ue.prototype.linePosAbsolute=function(ye){this._setCursor(this._bufferService.buffer.x,(ye.params[0]||1)-1)},ue.prototype.vPositionRelative=function(ye){this._moveCursor(0,ye.params[0]||1)},ue.prototype.hVPosition=function(ye){this.cursorPosition(ye)},ue.prototype.tabClear=function(ye){var _e=ye.params[0];_e===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:_e===3&&(this._bufferService.buffer.tabs={})},ue.prototype.cursorForwardTab=function(ye){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var _e=ye.params[0]||1;_e--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ue.prototype.cursorBackwardTab=function(ye){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var _e=ye.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.x=xe.prevStop()},ue.prototype._eraseInBufferLine=function(ye,_e,xe,Ce){Ce===void 0&&(Ce=!1);var Be=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ye);Be.replaceCells(_e,xe,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ce&&(Be.isWrapped=!1)},ue.prototype._resetBufferLine=function(ye){var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ye);_e.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),_e.isWrapped=!1},ue.prototype.eraseInDisplay=function(ye){var _e;switch(this._restrictCursor(),ye.params[0]){case 0:for(_e=this._bufferService.buffer.y,this._dirtyRowService.markDirty(_e),this._eraseInBufferLine(_e++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);_e<this._bufferService.rows;_e++)this._resetBufferLine(_e);this._dirtyRowService.markDirty(_e);break;case 1:for(_e=this._bufferService.buffer.y,this._dirtyRowService.markDirty(_e),this._eraseInBufferLine(_e,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(_e+1).isWrapped=!1);_e--;)this._resetBufferLine(_e);this._dirtyRowService.markDirty(0);break;case 2:for(_e=this._bufferService.rows,this._dirtyRowService.markDirty(_e-1);_e--;)this._resetBufferLine(_e);this._dirtyRowService.markDirty(0);break;case 3:var xe=this._bufferService.buffer.lines.length-this._bufferService.rows;xe>0&&(this._bufferService.buffer.lines.trimStart(xe),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-xe,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-xe,0),this._onScroll.fire(0))}},ue.prototype.eraseInLine=function(ye){switch(this._restrictCursor(),ye.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)},ue.prototype.insertLines=function(ye){this._restrictCursor();var _e=ye.params[0]||1,xe=this._bufferService.buffer;if(!(xe.y>xe.scrollBottom||xe.y<xe.scrollTop)){for(var Ce=xe.ybase+xe.y,Be=this._bufferService.rows-1-xe.scrollBottom,Me=this._bufferService.rows-1+xe.ybase-Be+1;_e--;)xe.lines.splice(Me-1,1),xe.lines.splice(Ce,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.y,xe.scrollBottom),xe.x=0}},ue.prototype.deleteLines=function(ye){this._restrictCursor();var _e=ye.params[0]||1,xe=this._bufferService.buffer;if(!(xe.y>xe.scrollBottom||xe.y<xe.scrollTop)){var Ce,Be=xe.ybase+xe.y;for(Ce=this._bufferService.rows-1-xe.scrollBottom,Ce=this._bufferService.rows-1+xe.ybase-Ce;_e--;)xe.lines.splice(Be,1),xe.lines.splice(Ce,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.y,xe.scrollBottom),xe.x=0}},ue.prototype.insertChars=function(ye){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.insertCells(this._bufferService.buffer.x,ye.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ue.prototype.deleteChars=function(ye){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.deleteCells(this._bufferService.buffer.x,ye.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ue.prototype.scrollUp=function(ye){for(var _e=ye.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.lines.splice(xe.ybase+xe.scrollTop,1),xe.lines.splice(xe.ybase+xe.scrollBottom,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)},ue.prototype.scrollDown=function(ye){for(var _e=ye.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.lines.splice(xe.ybase+xe.scrollBottom,1),xe.lines.splice(xe.ybase+xe.scrollTop,0,xe.getBlankLine(se.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)},ue.prototype.scrollLeft=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Be=_e.lines.get(_e.ybase+Ce);Be.deleteCells(0,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Be.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ue.prototype.scrollRight=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Be=_e.lines.get(_e.ybase+Ce);Be.insertCells(0,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Be.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ue.prototype.insertColumns=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Be=this._bufferService.buffer.lines.get(_e.ybase+Ce);Be.insertCells(_e.x,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Be.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ue.prototype.deleteColumns=function(ye){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=ye.params[0]||1,Ce=_e.scrollTop;Ce<=_e.scrollBottom;++Ce){var Be=_e.lines.get(_e.ybase+Ce);Be.deleteCells(_e.x,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Be.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ue.prototype.eraseChars=function(ye){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(ye.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ue.prototype.repeatPrecedingCharacter=function(ye){if(this._parser.precedingCodepoint){for(var _e=ye.params[0]||1,xe=new Uint32Array(_e),Ce=0;Ce<_e;++Ce)xe[Ce]=this._parser.precedingCodepoint;this.print(xe,0,xe.length)}},ue.prototype.sendDeviceAttributesPrimary=function(ye){ye.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(fe.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(fe.C0.ESC+"[?6c"))},ue.prototype.sendDeviceAttributesSecondary=function(ye){ye.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(fe.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(fe.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ye.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(fe.C0.ESC+"[>83;40003;0c"))},ue.prototype._is=function(ye){return(this._optionsService.options.termName+"").indexOf(ye)===0},ue.prototype.setMode=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 4:this._coreService.modes.insertMode=!0}},ue.prototype.setModePrivate=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,pe.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}},ue.prototype.resetMode=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){case 4:this._coreService.modes.insertMode=!1}},ue.prototype.resetModePrivate=function(ye){for(var _e=0;_e<ye.length;_e++)switch(ye.params[_e]){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(),ye.params[_e]===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}},ue.prototype._updateAttrColor=function(ye,_e,xe,Ce,Be){return _e===2?(ye|=50331648,ye&=-16777216,ye|=a.AttributeData.fromColorRGB([xe,Ce,Be])):_e===5&&(ye&=-50331904,ye|=33554432|255&xe),ye},ue.prototype._extractColor=function(ye,_e,xe){var Ce=[0,0,-1,0,0,0],Be=0,Me=0;do{if(Ce[Me+Be]=ye.params[_e+Me],ye.hasSubParams(_e+Me)){var mt=ye.getSubParams(_e+Me),Qe=0;do Ce[1]===5&&(Be=1),Ce[Me+Qe+1+Be]=mt[Qe];while(++Qe<mt.length&&Qe+Me+1+Be<Ce.length);break}if(Ce[1]===5&&Me+Be>=2||Ce[1]===2&&Me+Be>=5)break;Ce[1]&&(Be=1)}while(++Me+_e<ye.length&&Me+Be<Ce.length);for(Qe=2;Qe<Ce.length;++Qe)Ce[Qe]===-1&&(Ce[Qe]=0);switch(Ce[0]){case 38:xe.fg=this._updateAttrColor(xe.fg,Ce[1],Ce[3],Ce[4],Ce[5]);break;case 48:xe.bg=this._updateAttrColor(xe.bg,Ce[1],Ce[3],Ce[4],Ce[5]);break;case 58:xe.extended=xe.extended.clone(),xe.extended.underlineColor=this._updateAttrColor(xe.extended.underlineColor,Ce[1],Ce[3],Ce[4],Ce[5])}return Me},ue.prototype._processUnderline=function(ye,_e){_e.extended=_e.extended.clone(),(!~ye||ye>5)&&(ye=1),_e.extended.underlineStyle=ye,_e.fg|=268435456,ye===0&&(_e.fg&=-268435457),_e.updateExtended()},ue.prototype.charAttributes=function(ye){if(ye.length===1&&ye.params[0]===0)return this._curAttrData.fg=se.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=se.DEFAULT_ATTR_DATA.bg);for(var _e,xe=ye.length,Ce=this._curAttrData,Be=0;Be<xe;Be++)(_e=ye.params[Be])>=30&&_e<=37?(Ce.fg&=-50331904,Ce.fg|=16777216|_e-30):_e>=40&&_e<=47?(Ce.bg&=-50331904,Ce.bg|=16777216|_e-40):_e>=90&&_e<=97?(Ce.fg&=-50331904,Ce.fg|=16777224|_e-90):_e>=100&&_e<=107?(Ce.bg&=-50331904,Ce.bg|=16777224|_e-100):_e===0?(Ce.fg=se.DEFAULT_ATTR_DATA.fg,Ce.bg=se.DEFAULT_ATTR_DATA.bg):_e===1?Ce.fg|=134217728:_e===3?Ce.bg|=67108864:_e===4?(Ce.fg|=268435456,this._processUnderline(ye.hasSubParams(Be)?ye.getSubParams(Be)[0]:1,Ce)):_e===5?Ce.fg|=536870912:_e===7?Ce.fg|=67108864:_e===8?Ce.fg|=1073741824:_e===2?Ce.bg|=134217728:_e===21?this._processUnderline(2,Ce):_e===22?(Ce.fg&=-134217729,Ce.bg&=-134217729):_e===23?Ce.bg&=-67108865:_e===24?Ce.fg&=-268435457:_e===25?Ce.fg&=-536870913:_e===27?Ce.fg&=-67108865:_e===28?Ce.fg&=-1073741825:_e===39?(Ce.fg&=-67108864,Ce.fg|=16777215&se.DEFAULT_ATTR_DATA.fg):_e===49?(Ce.bg&=-67108864,Ce.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):_e===38||_e===48||_e===58?Be+=this._extractColor(ye,Be,Ce):_e===59?(Ce.extended=Ce.extended.clone(),Ce.extended.underlineColor=-1,Ce.updateExtended()):_e===100?(Ce.fg&=-67108864,Ce.fg|=16777215&se.DEFAULT_ATTR_DATA.fg,Ce.bg&=-67108864,Ce.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",_e)},ue.prototype.deviceStatus=function(ye){switch(ye.params[0]){case 5:this._coreService.triggerDataEvent(fe.C0.ESC+"[0n");break;case 6:var _e=this._bufferService.buffer.y+1,xe=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(fe.C0.ESC+"["+_e+";"+xe+"R")}},ue.prototype.deviceStatusPrivate=function(ye){switch(ye.params[0]){case 6:var _e=this._bufferService.buffer.y+1,xe=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(fe.C0.ESC+"[?"+_e+";"+xe+"R")}},ue.prototype.softReset=function(ye){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},ue.prototype.setCursorStyle=function(ye){var _e=ye.params[0]||1;switch(_e){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 xe=_e%2==1;this._optionsService.options.cursorBlink=xe},ue.prototype.setScrollRegion=function(ye){var _e,xe=ye.params[0]||1;(ye.length<2||(_e=ye.params[1])>this._bufferService.rows||_e===0)&&(_e=this._bufferService.rows),_e>xe&&(this._bufferService.buffer.scrollTop=xe-1,this._bufferService.buffer.scrollBottom=_e-1,this._setCursor(0,0))},ue.prototype.windowOptions=function(ye){if(x(ye.params[0],this._optionsService.options.windowOptions)){var _e=ye.length>1?ye.params[1]:0;switch(ye.params[0]){case 14:_e!==2&&this._onRequestWindowsOptionsReport.fire(ve.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(ve.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(fe.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:_e!==0&&_e!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),_e!==0&&_e!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:_e!==0&&_e!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),_e!==0&&_e!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ue.prototype.saveCursor=function(ye){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},ue.prototype.restoreCursor=function(ye){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()},ue.prototype.setTitle=function(ye){this._windowTitle=ye,this._onTitleChange.fire(ye)},ue.prototype.setIconName=function(ye){this._iconName=ye},ue.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ue.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ue.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ue.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET)},ue.prototype.selectCharset=function(ye){ye.length===2?ye[0]!=="/"&&this._charsetService.setgCharset(b[ye[0]],pe.CHARSETS[ye[1]]||pe.DEFAULT_CHARSET):this.selectDefaultCharset()},ue.prototype.index=function(){this._restrictCursor();var ye=this._bufferService.buffer;this._bufferService.buffer.y++,ye.y===ye.scrollBottom+1?(ye.y--,this._onRequestScroll.fire(this._eraseAttrData())):ye.y>=this._bufferService.rows&&(ye.y=this._bufferService.rows-1),this._restrictCursor()},ue.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ue.prototype.reverseIndex=function(){this._restrictCursor();var ye=this._bufferService.buffer;if(ye.y===ye.scrollTop){var _e=ye.scrollBottom-ye.scrollTop;ye.lines.shiftElements(ye.ybase+ye.y,_e,1),ye.lines.set(ye.ybase+ye.y,ye.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom)}else ye.y--,this._restrictCursor()},ue.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ue.prototype.reset=function(){this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone()},ue.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ue.prototype.setgLevel=function(ye){this._charsetService.setgLevel(ye)},ue.prototype.screenAlignmentPattern=function(){var ye=new ne.CellData;ye.content=1<<22|69,ye.fg=this._curAttrData.fg,ye.bg=this._curAttrData.bg;var _e=this._bufferService.buffer;this._setCursor(0,0);for(var xe=0;xe<this._bufferService.rows;++xe){var Ce=_e.ybase+_e.y+xe,Be=_e.lines.get(Ce);Be&&(Be.fill(ye),Be.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ue}(de.Disposable);ee.InputHandler=oe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DEFAULT_CHARSET=ee.CHARSETS=void 0,ee.CHARSETS={},ee.DEFAULT_CHARSET=ee.CHARSETS.B,ee.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},ee.CHARSETS.A={"#":"\xA3"},ee.CHARSETS.B=void 0,ee.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},ee.CHARSETS.C=ee.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},ee.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},ee.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},ee.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},ee.CHARSETS.E=ee.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},ee.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},ee.CHARSETS.H=ee.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Params=void 0;var ge=function(){function be(ve,fe){if(ve===void 0&&(ve=32),fe===void 0&&(fe=32),this.maxLength=ve,this.maxSubParamsLength=fe,fe>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ve),this.length=0,this._subParams=new Int32Array(fe),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ve),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(ve){var fe=new be;if(!ve.length)return fe;for(var pe=ve[0]instanceof Array?1:0;pe<ve.length;++pe){var ie=ve[pe];if(ie instanceof Array)for(var de=0;de<ie.length;++de)fe.addSubParam(ie[de]);else fe.addParam(ie)}return fe},be.prototype.clone=function(){var ve=new be(this.maxLength,this.maxSubParamsLength);return ve.params.set(this.params),ve.length=this.length,ve._subParams.set(this._subParams),ve._subParamsLength=this._subParamsLength,ve._subParamsIdx.set(this._subParamsIdx),ve._rejectDigits=this._rejectDigits,ve._rejectSubDigits=this._rejectSubDigits,ve._digitIsSub=this._digitIsSub,ve},be.prototype.toArray=function(){for(var ve=[],fe=0;fe<this.length;++fe){ve.push(this.params[fe]);var pe=this._subParamsIdx[fe]>>8,ie=255&this._subParamsIdx[fe];ie-pe>0&&ve.push(Array.prototype.slice.call(this._subParams,pe,ie))}return ve},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(ve){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(ve<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=ve>2147483647?2147483647:ve}},be.prototype.addSubParam=function(ve){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(ve<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=ve>2147483647?2147483647:ve,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(ve){return(255&this._subParamsIdx[ve])-(this._subParamsIdx[ve]>>8)>0},be.prototype.getSubParams=function(ve){var fe=this._subParamsIdx[ve]>>8,pe=255&this._subParamsIdx[ve];return pe-fe>0?this._subParams.subarray(fe,pe):null},be.prototype.getSubParamsAll=function(){for(var ve={},fe=0;fe<this.length;++fe){var pe=this._subParamsIdx[fe]>>8,ie=255&this._subParamsIdx[fe];ie-pe>0&&(ve[fe]=this._subParams.slice(pe,ie))}return ve},be.prototype.addDigit=function(ve){var fe;if(!(this._rejectDigits||!(fe=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var pe=this._digitIsSub?this._subParams:this.params,ie=pe[fe-1];pe[fe-1]=~ie?Math.min(10*ie+ve,2147483647):ve}},be}();ee.Params=ge},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OscHandler=ee.OscParser=void 0;var ge=z(23),be=z(8),ve=function(){function pe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return pe.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 ce=le.indexOf(de);ce!==-1&&le.splice(ce,1)}}},pe.prototype.setHandler=function(ie,de){this._handlers[ie]=[de]},pe.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},pe.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},pe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},pe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},pe.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")},pe.prototype._put=function(ie,de,le){var ce=this._handlers[this._id];if(ce)for(var se=ce.length-1;se>=0;se--)ce[se].put(ie,de,le);else this._handlerFb(this._id,"PUT",be.utf32ToString(ie,de,le))},pe.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)},pe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},pe.prototype.put=function(ie,de,le){if(this._state!==3){if(this._state===1)for(;de<le;){var ce=ie[de++];if(ce===59){this._state=2,this._start();break}if(ce<48||57<ce)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+ce-48}this._state===2&&le-de>0&&this._put(ie,de,le)}},pe.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},pe}();ee.OscParser=ve;var fe=function(){function pe(ie){this._handler=ie,this._data="",this._hitLimit=!1}return pe.prototype.start=function(){this._data="",this._hitLimit=!1},pe.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))},pe.prototype.end=function(ie){var de;return this._hitLimit?de=!1:ie&&(de=this._handler(this._data)),this._data="",this._hitLimit=!1,de},pe}();ee.OscHandler=fe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.PAYLOAD_LIMIT=void 0,ee.PAYLOAD_LIMIT=1e7},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DcsHandler=ee.DcsParser=void 0;var ge=z(8),be=z(21),ve=z(23),fe=[],pe=function(){function de(){this._handlers=Object.create(null),this._active=fe,this._ident=0,this._handlerFb=function(){}}return de.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},de.prototype.addHandler=function(le,ce){this._handlers[le]===void 0&&(this._handlers[le]=[]);var se=this._handlers[le];return se.push(ce),{dispose:function(){var me=se.indexOf(ce);me!==-1&&se.splice(me,1)}}},de.prototype.setHandler=function(le,ce){this._handlers[le]=[ce]},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=fe,this._ident=0},de.prototype.hook=function(le,ce){if(this.reset(),this._ident=le,this._active=this._handlers[le]||fe,this._active.length)for(var se=this._active.length-1;se>=0;se--)this._active[se].hook(ce);else this._handlerFb(this._ident,"HOOK",ce)},de.prototype.put=function(le,ce,se){if(this._active.length)for(var me=this._active.length-1;me>=0;me--)this._active[me].put(le,ce,se);else this._handlerFb(this._ident,"PUT",ge.utf32ToString(le,ce,se))},de.prototype.unhook=function(le){if(this._active.length){for(var ce=this._active.length-1;ce>=0&&this._active[ce].unhook(le)===!1;ce--);for(ce--;ce>=0;ce--)this._active[ce].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",le);this._active=fe,this._ident=0},de}();ee.DcsParser=pe;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,ce,se){this._hitLimit||(this._data+=ge.utf32ToString(le,ce,se),this._data.length>ve.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},de.prototype.unhook=function(le){var ce;return this._hitLimit?ce=!1:le&&(ce=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,ce},de}();ee.DcsHandler=ie},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeTerminalFromCache=ee.acquireCharAtlas=void 0;var ge=z(26),be=z(43),ve=[];ee.acquireCharAtlas=function(fe,pe,ie,de,le){for(var ce=ge.generateConfig(de,le,fe,ie),se=0;se<ve.length;se++){var me=(re=ve[se]).ownedBy.indexOf(pe);if(me>=0){if(ge.configEquals(re.config,ce))return re.atlas;re.ownedBy.length===1?(re.atlas.dispose(),ve.splice(se,1)):re.ownedBy.splice(me,1);break}}for(se=0;se<ve.length;se++){var re=ve[se];if(ge.configEquals(re.config,ce))return re.ownedBy.push(pe),re.atlas}var ne={atlas:new be.DynamicCharAtlas(document,ce),config:ce,ownedBy:[pe]};return ve.push(ne),ne.atlas},ee.removeTerminalFromCache=function(fe){for(var pe=0;pe<ve.length;pe++){var ie=ve[pe].ownedBy.indexOf(fe);if(ie!==-1){ve[pe].ownedBy.length===1?(ve[pe].atlas.dispose(),ve.splice(pe,1)):ve[pe].ownedBy.splice(ie,1);break}}}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.is256Color=ee.configEquals=ee.generateConfig=void 0;var ge=z(3);ee.generateConfig=function(be,ve,fe,pe){var ie={foreground:pe.foreground,background:pe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:pe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:ve,fontFamily:fe.fontFamily,fontSize:fe.fontSize,fontWeight:fe.fontWeight,fontWeightBold:fe.fontWeightBold,allowTransparency:fe.allowTransparency,colors:ie}},ee.configEquals=function(be,ve){for(var fe=0;fe<be.colors.ansi.length;fe++)if(be.colors.ansi[fe].rgba!==ve.colors.ansi[fe].rgba)return!1;return be.devicePixelRatio===ve.devicePixelRatio&&be.fontFamily===ve.fontFamily&&be.fontSize===ve.fontSize&&be.fontWeight===ve.fontWeight&&be.fontWeightBold===ve.fontWeightBold&&be.allowTransparency===ve.allowTransparency&&be.scaledCharWidth===ve.scaledCharWidth&&be.scaledCharHeight===ve.scaledCharHeight&&be.colors.foreground===ve.colors.foreground&&be.colors.background===ve.colors.background},ee.is256Color=function(be){return be<ge.DEFAULT_COLOR}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorManager=ee.DEFAULT_ANSI_COLORS=void 0;var ge=z(10),be=z(45),ve=ge.css.toColor("#ffffff"),fe=ge.css.toColor("#000000"),pe=ge.css.toColor("#ffffff"),ie=ge.css.toColor("#000000"),de={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};ee.DEFAULT_ANSI_COLORS=function(){for(var ce=[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")],se=[0,95,135,175,215,255],me=0;me<216;me++){var re=se[me/36%6|0],ne=se[me/6%6|0],a=se[me%6];ce.push({css:ge.channels.toCss(re,ne,a),rgba:ge.channels.toRgba(re,ne,a)})}for(me=0;me<24;me++){var y=8+10*me;ce.push({css:ge.channels.toCss(y,y,y),rgba:ge.channels.toRgba(y,y,y)})}return ce}();var le=function(){function ce(se,me){this.allowTransparency=me;var re=se.createElement("canvas");re.width=1,re.height=1;var ne=re.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:ve,background:fe,cursor:pe,cursorAccent:ie,selectionTransparent:de,selectionOpaque:ge.color.blend(fe,de),ansi:ee.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return ce.prototype.onOptionsChange=function(se){se==="minimumContrastRatio"&&this._contrastCache.clear()},ce.prototype.setTheme=function(se){se===void 0&&(se={}),this.colors.foreground=this._parseColor(se.foreground,ve),this.colors.background=this._parseColor(se.background,fe),this.colors.cursor=this._parseColor(se.cursor,pe,!0),this.colors.cursorAccent=this._parseColor(se.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(se.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(se.black,ee.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(se.red,ee.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(se.green,ee.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(se.yellow,ee.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(se.blue,ee.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(se.magenta,ee.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(se.cyan,ee.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(se.white,ee.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(se.brightBlack,ee.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(se.brightRed,ee.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(se.brightGreen,ee.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(se.brightYellow,ee.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(se.brightBlue,ee.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(se.brightMagenta,ee.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(se.brightCyan,ee.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(se.brightWhite,ee.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},ce.prototype._parseColor=function(se,me,re){if(re===void 0&&(re=this.allowTransparency),se===void 0)return me;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=se,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+se+" is invalid using fallback "+me.css),me;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!re)return console.warn("Color: "+se+" is using transparency, but allowTransparency is false. Using fallback "+me.css+"."),me;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),y=a[0],E=a[1],b=a[2],x=a[3],te=Math.round(255*x);return{rgba:ge.channels.toRgba(y,E,b,te),css:se}}return{css:this._ctx.fillStyle,rgba:ge.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},ce}();ee.ColorManager=le},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.throwIfFalsy=void 0,ee.throwIfFalsy=function(ge){if(!ge)throw new Error("value must not be falsy");return ge}},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(le,ce){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,me){se.__proto__=me}||function(se,me){for(var re in me)me.hasOwnProperty(re)&&(se[re]=me[re])})(le,ce)},function(le,ce){function se(){this.constructor=le}ge(le,ce),le.prototype=ce===null?Object.create(ce):(se.prototype=ce.prototype,new se)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharacterJoinerRegistry=ee.JoinedCellData=void 0;var ve=z(6),fe=z(3),pe=z(4),ie=function(le){function ce(se,me,re){var ne=le.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=se.fg,ne.bg=se.bg,ne.combinedData=me,ne._width=re,ne}return be(ce,le),ce.prototype.isCombined=function(){return 2097152},ce.prototype.getWidth=function(){return this._width},ce.prototype.getChars=function(){return this.combinedData},ce.prototype.getCode=function(){return 2097151},ce.prototype.setFromCharData=function(se){throw new Error("not implemented")},ce.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ce}(ve.AttributeData);ee.JoinedCellData=ie;var de=function(){function le(ce){this._bufferService=ce,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new pe.CellData}return le.prototype.registerCharacterJoiner=function(ce){var se={id:this._nextCharacterJoinerId++,handler:ce};return this._characterJoiners.push(se),se.id},le.prototype.deregisterCharacterJoiner=function(ce){for(var se=0;se<this._characterJoiners.length;se++)if(this._characterJoiners[se].id===ce)return this._characterJoiners.splice(se,1),!0;return!1},le.prototype.getJoinedCharacters=function(ce){if(this._characterJoiners.length===0)return[];var se=this._bufferService.buffer.lines.get(ce);if(!se||se.length===0)return[];for(var me=[],re=se.translateToString(!0),ne=0,a=0,y=0,E=se.getFg(0),b=se.getBg(0),x=0;x<se.getTrimmedLength();x++)if(se.loadCell(x,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==E||this._workCell.bg!==b){if(x-ne>1)for(var te=this._getJoinedRanges(re,y,a,se,ne),oe=0;oe<te.length;oe++)me.push(te[oe]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||fe.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(te=this._getJoinedRanges(re,y,a,se,ne),oe=0;oe<te.length;oe++)me.push(te[oe]);return me},le.prototype._getJoinedRanges=function(ce,se,me,re,ne){for(var a=ce.substring(se,me),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,re,ne),y},le.prototype._stringRangesToCellRanges=function(ce,se,me){var re=0,ne=!1,a=0,y=ce[re];if(y){for(var E=me;E<this._bufferService.cols;E++){var b=se.getWidth(E),x=se.getString(E).length||fe.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=ce[++re]))break;y[0]<=a?(y[0]=E,ne=!0):ne=!1}a+=x}}y&&(y[1]=this._bufferService.cols)}},le._mergeRanges=function(ce,se){for(var me=!1,re=0;re<ce.length;re++){var ne=ce[re];if(me){if(se[1]<=ne[0])return ce[re-1][1]=se[1],ce;if(se[1]<=ne[1])return ce[re-1][1]=Math.max(se[1],ne[1]),ce.splice(re,1),ce;ce.splice(re,1),re--}else{if(se[1]<=ne[0])return ce.splice(re,0,se),ce;if(se[1]<=ne[1])return ne[0]=Math.min(se[0],ne[0]),ce;se[0]<ne[1]&&(ne[0]=Math.min(se[0],ne[0]),me=!0)}}return me?ce[ce.length-1][1]=se[1]:ce.push(se),ce},le}();ee.CharacterJoinerRegistry=de},function(We,ee,z){"use strict";function ge(be,ve){var fe=ve.getBoundingClientRect();return[be.clientX-fe.left,be.clientY-fe.top]}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getRawByteCoords=ee.getCoords=ee.getCoordsRelativeToElement=void 0,ee.getCoordsRelativeToElement=ge,ee.getCoords=function(be,ve,fe,pe,ie,de,le,ce){if(ie){var se=ge(be,ve);if(se)return se[0]=Math.ceil((se[0]+(ce?de/2:0))/de),se[1]=Math.ceil(se[1]/le),se[0]=Math.min(Math.max(se[0],1),fe+(ce?1:0)),se[1]=Math.min(Math.max(se[1],1),pe),se}},ee.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderDebouncer=void 0;var ge=function(){function be(ve){this._renderCallback=ve}return be.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},be.prototype.refresh=function(ve,fe,pe){var ie=this;this._rowCount=pe,ve=ve!==void 0?ve:0,fe=fe!==void 0?fe:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,ve):ve,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,fe):fe,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 ve=Math.max(this._rowStart,0),fe=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ve,fe)}},be}();ee.RenderDebouncer=ge},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(fe,pe){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])})(fe,pe)},function(fe,pe){function ie(){this.constructor=fe}ge(fe,pe),fe.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.ScreenDprMonitor=void 0;var ve=function(fe){function pe(){var ie=fe!==null&&fe.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return be(pe,fe),pe.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()},pe.prototype.dispose=function(){fe.prototype.dispose.call(this),this.clearListener()},pe.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))},pe.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)},pe}(z(2).Disposable);ee.ScreenDprMonitor=ve},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.clone=void 0,ee.clone=function ge(be,ve){if(ve===void 0&&(ve=5),typeof be!="object")return be;var fe=Array.isArray(be)?[]:{};for(var pe in be)fe[pe]=ve<=1?be[pe]:be[pe]?ge(be[pe],ve-1):be[pe];return fe}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var ge=z(4),be=z(35),ve=z(18),fe=z(0),pe=z(83),ie=function(){function re(ne){this._core=new be.Terminal(ne),this._addonManager=new pe.AddonManager}return re.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(re.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new se(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"unicode",{get:function(){return this._checkProposedApi(),new me(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffer",{get:function(){return this._checkProposedApi(),new le(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),re.prototype.blur=function(){this._core.blur()},re.prototype.focus=function(){this._core.focus()},re.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},re.prototype.open=function(ne){this._core.open(ne)},re.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},re.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},re.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},re.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},re.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},re.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},re.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},re.prototype.addMarker=function(ne){return this.registerMarker(ne)},re.prototype.hasSelection=function(){return this._core.hasSelection()},re.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},re.prototype.getSelection=function(){return this._core.getSelection()},re.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},re.prototype.clearSelection=function(){this._core.clearSelection()},re.prototype.selectAll=function(){this._core.selectAll()},re.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},re.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},re.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},re.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},re.prototype.scrollToTop=function(){this._core.scrollToTop()},re.prototype.scrollToBottom=function(){this._core.scrollToBottom()},re.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},re.prototype.clear=function(){this._core.clear()},re.prototype.write=function(ne,a){this._core.write(ne,a)},re.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},re.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
|
|
|
`,a)},re.prototype.paste=function(ne){this._core.paste(ne)},re.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},re.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},re.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},re.prototype.reset=function(){this._core.reset()},re.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(re,"strings",{get:function(){return ve},enumerable:!1,configurable:!0}),re.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")}},re}();ee.Terminal=ie;var de=function(){function re(ne,a){this._buffer=ne,this.type=a}return re.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(re.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),re.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new ce(a)},re.prototype.getNullCell=function(){return new ge.CellData},re}(),le=function(){function re(ne){var a=this;this._buffers=ne,this._onBufferChange=new fe.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(re.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.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(re.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),re}(),ce=function(){function re(ne){this._line=ne}return Object.defineProperty(re.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),re.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)},re.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},re}(),se=function(){function re(ne){this._core=ne}return re.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},re.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},re.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},re.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},re.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},re.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},re.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},re.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},re}(),me=function(){function re(ne){this._core=ne}return re.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(re.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),re}()},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(pt,Ae){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Fe){De.__proto__=Fe}||function(De,Fe){for(var tt in Fe)Fe.hasOwnProperty(tt)&&(De[tt]=Fe[tt])})(pt,Ae)},function(pt,Ae){function De(){this.constructor=pt}ge(pt,Ae),pt.prototype=Ae===null?Object.create(Ae):(De.prototype=Ae.prototype,new De)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var ve=z(36),fe=z(37),pe=z(38),ie=z(12),de=z(19),le=z(40),ce=z(50),se=z(51),me=z(11),re=z(7),ne=z(18),a=z(54),y=z(55),E=z(56),b=z(57),x=z(59),te=z(0),oe=z(16),ae=z(27),ue=z(60),ye=z(5),_e=z(61),xe=z(62),Ce=z(63),Be=z(64),Me=z(65),mt=typeof window!="undefined"?window.document:null,Qe=function(pt){function Ae(De){De===void 0&&(De={});var Fe=pt.call(this,De)||this;return Fe.browser=me,Fe._keyDownHandled=!1,Fe._onCursorMove=new te.EventEmitter,Fe._onKey=new te.EventEmitter,Fe._onRender=new te.EventEmitter,Fe._onSelectionChange=new te.EventEmitter,Fe._onTitleChange=new te.EventEmitter,Fe._onFocus=new te.EventEmitter,Fe._onBlur=new te.EventEmitter,Fe._onA11yCharEmitter=new te.EventEmitter,Fe._onA11yTabEmitter=new te.EventEmitter,Fe._setup(),Fe.linkifier=Fe._instantiationService.createInstance(ce.Linkifier),Fe.linkifier2=Fe.register(Fe._instantiationService.createInstance(Ce.Linkifier2)),Fe.register(Fe._inputHandler.onRequestBell(function(){return Fe.bell()})),Fe.register(Fe._inputHandler.onRequestRefreshRows(function(tt,Ve){return Fe.refresh(tt,Ve)})),Fe.register(Fe._inputHandler.onRequestReset(function(){return Fe.reset()})),Fe.register(Fe._inputHandler.onRequestScroll(function(tt,Ve){return Fe.scroll(tt,Ve||void 0)})),Fe.register(Fe._inputHandler.onRequestWindowsOptionsReport(function(tt){return Fe._reportWindowsOptions(tt)})),Fe.register(te.forwardEvent(Fe._inputHandler.onCursorMove,Fe._onCursorMove)),Fe.register(te.forwardEvent(Fe._inputHandler.onTitleChange,Fe._onTitleChange)),Fe.register(te.forwardEvent(Fe._inputHandler.onA11yChar,Fe._onA11yCharEmitter)),Fe.register(te.forwardEvent(Fe._inputHandler.onA11yTab,Fe._onA11yTabEmitter)),Fe.register(Fe._bufferService.onResize(function(tt){return Fe._afterResize(tt.cols,tt.rows)})),Fe}return be(Ae,pt),Object.defineProperty(Ae.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ae.prototype.dispose=function(){var De,Fe,tt;this._isDisposed||(pt.prototype.dispose.call(this),(De=this._renderService)===null||De===void 0||De.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(tt=(Fe=this.element)===null||Fe===void 0?void 0:Fe.parentNode)===null||tt===void 0||tt.removeChild(this.element))},Ae.prototype._setup=function(){pt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ae.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ae.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ae.prototype._updateOptions=function(De){var Fe,tt,Ve,Ct;switch(pt.prototype._updateOptions.call(this,De),De){case"fontFamily":case"fontSize":(Fe=this._renderService)===null||Fe===void 0||Fe.clear(),(tt=this._charSizeService)===null||tt===void 0||tt.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":(Ve=this.viewport)===null||Ve===void 0||Ve.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((Ct=this._accessibilityManager)===null||Ct===void 0||Ct.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ae.prototype._onTextAreaFocus=function(De){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(De),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ae.prototype.blur=function(){var De;return(De=this.textarea)===null||De===void 0?void 0:De.blur()},Ae.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()},Ae.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var De=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Fe=this._bufferService.buffer.y*De,tt=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=tt+"px",this.textarea.style.top=Fe+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=De+"px",this.textarea.style.lineHeight=De+"px",this.textarea.style.zIndex="-5"}},Ae.prototype._initGlobal=function(){var De=this;this._bindKeys(),this.register(re.addDisposableDomListener(this.element,"copy",function(tt){De.hasSelection()&&pe.copyHandler(tt,De._selectionService)}));var Fe=function(tt){return pe.handlePasteEvent(tt,De.textarea,De._coreService)};this.register(re.addDisposableDomListener(this.textarea,"paste",Fe)),this.register(re.addDisposableDomListener(this.element,"paste",Fe)),me.isFirefox?this.register(re.addDisposableDomListener(this.element,"mousedown",function(tt){tt.button===2&&pe.rightClickHandler(tt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})):this.register(re.addDisposableDomListener(this.element,"contextmenu",function(tt){pe.rightClickHandler(tt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})),me.isLinux&&this.register(re.addDisposableDomListener(this.element,"auxclick",function(tt){tt.button===1&&pe.moveTextAreaUnderMouseCursor(tt,De.textarea,De.screenElement)}))},Ae.prototype._bindKeys=function(){var De=this;this.register(re.addDisposableDomListener(this.textarea,"keyup",function(Fe){return De._keyUp(Fe)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keydown",function(Fe){return De._keyDown(Fe)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keypress",function(Fe){return De._keyPress(Fe)},!0)),this.register(re.addDisposableDomListener(this.textarea,"compositionstart",function(){return De._compositionHelper.compositionstart()})),this.register(re.addDisposableDomListener(this.textarea,"compositionupdate",function(Fe){return De._compositionHelper.compositionupdate(Fe)})),this.register(re.addDisposableDomListener(this.textarea,"compositionend",function(){return De._compositionHelper.compositionend()})),this.register(this.onRender(function(){return De._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Fe){return De._queueLinkification(Fe.start,Fe.end)}))},Ae.prototype.open=function(De){var Fe=this;if(!De)throw new Error("Terminal requires a parent element.");mt.body.contains(De)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=De.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"),De.appendChild(this.element);var tt=mt.createDocumentFragment();this._viewportElement=mt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),tt.appendChild(this._viewportElement),this._viewportScrollArea=mt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=mt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=mt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),tt.appendChild(this.screenElement),this.textarea=mt.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(re.addDisposableDomListener(this.textarea,"focus",function(Mt){return Fe._onTextAreaFocus(Mt)})),this.register(re.addDisposableDomListener(this.textarea,"blur",function(){return Fe._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ve=this._instantiationService.createInstance(Be.CoreBrowserService,this.textarea);this._instantiationService.setService(ye.ICoreBrowserService,Ve),this._charSizeService=this._instantiationService.createInstance(_e.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ye.ICharSizeService,this._charSizeService),this._compositionView=mt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(ve.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(tt),this._theme=this.options.theme||this._theme,this._colorManager=new ae.ColorManager(mt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Mt){return Fe._colorManager.onOptionsChange(Mt)})),this._colorManager.setTheme(this._theme);var Ct=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ue.RenderService,Ct,this.rows,this.screenElement)),this._instantiationService.setService(ye.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Mt){return Fe._onRender.fire(Mt)})),this.onResize(function(Mt){return Fe._renderService.resize(Mt.cols,Mt.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(ye.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(xe.MouseService),this._instantiationService.setService(ye.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(fe.Viewport,function(Mt,en){return Fe.scrollLines(Mt,en)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Fe.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Fe._renderService.onCursorMove(),Fe._syncTextArea()})),this.register(this.onResize(function(){return Fe._renderService.onResize(Fe.cols,Fe.rows)})),this.register(this.onBlur(function(){return Fe._renderService.onBlur()})),this.register(this.onFocus(function(){return Fe._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Fe.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(se.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(ye.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Mt){return Fe.scrollLines(Mt.amount,Mt.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Fe._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Mt){return Fe._renderService.onSelectionChanged(Mt.start,Mt.end,Mt.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Mt){Fe.textarea.value=Mt,Fe.textarea.focus(),Fe.textarea.select()})),this.register(this.onScroll(function(){Fe.viewport.syncScrollArea(),Fe._selectionService.refresh()})),this.register(re.addDisposableDomListener(this._viewportElement,"scroll",function(){return Fe._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Fe._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(re.addDisposableDomListener(this.element,"mousedown",function(Mt){return Fe._selectionService.onMouseDown(Mt)})),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()},Ae.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+'"')}},Ae.prototype._setTheme=function(De){var Fe,tt,Ve;this._theme=De,(Fe=this._colorManager)===null||Fe===void 0||Fe.setTheme(De),(tt=this._renderService)===null||tt===void 0||tt.setColors(this._colorManager.colors),(Ve=this.viewport)===null||Ve===void 0||Ve.onThemeChange(this._colorManager.colors)},Ae.prototype.bindMouse=function(){var De=this,Fe=this,tt=this.element;function Ve(ct){var wt,Vt,Gt=Fe._mouseService.getRawByteCoords(ct,Fe.screenElement,Fe.cols,Fe.rows);if(!Gt)return!1;switch(ct.overrideType||ct.type){case"mousemove":Vt=32,ct.buttons===void 0?(wt=3,ct.button!==void 0&&(wt=ct.button<3?ct.button:3)):wt=1&ct.buttons?0:4&ct.buttons?1:2&ct.buttons?2:3;break;case"mouseup":Vt=0,wt=ct.button<3?ct.button:3;break;case"mousedown":Vt=1,wt=ct.button<3?ct.button:3;break;case"wheel":ct.deltaY!==0&&(Vt=ct.deltaY<0?0:1),wt=4;break;default:return!1}return!(Vt===void 0||wt===void 0||wt>4)&&Fe._coreMouseService.triggerMouseEvent({col:Gt.x-33,row:Gt.y-33,button:wt,action:Vt,ctrl:ct.ctrlKey,alt:ct.altKey,shift:ct.shiftKey})}var Ct={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Mt=function(ct){return Ve(ct),ct.buttons||(De._document.removeEventListener("mouseup",Ct.mouseup),Ct.mousedrag&&De._document.removeEventListener("mousemove",Ct.mousedrag)),De.cancel(ct)},en=function(ct){return Ve(ct),ct.preventDefault(),De.cancel(ct)},nn=function(ct){ct.buttons&&Ve(ct)},it=function(ct){ct.buttons||Ve(ct)};this.register(this._coreMouseService.onProtocolChange(function(ct){ct?(De.optionsService.options.logLevel==="debug"&&De._logService.debug("Binding to mouse events:",De._coreMouseService.explainEvents(ct)),De.element.classList.add("enable-mouse-events"),De._selectionService.disable()):(De._logService.debug("Unbinding from mouse events."),De.element.classList.remove("enable-mouse-events"),De._selectionService.enable()),8&ct?Ct.mousemove||(tt.addEventListener("mousemove",it),Ct.mousemove=it):(tt.removeEventListener("mousemove",Ct.mousemove),Ct.mousemove=null),16&ct?Ct.wheel||(tt.addEventListener("wheel",en,{passive:!1}),Ct.wheel=en):(tt.removeEventListener("wheel",Ct.wheel),Ct.wheel=null),2&ct?Ct.mouseup||(Ct.mouseup=Mt):(De._document.removeEventListener("mouseup",Ct.mouseup),Ct.mouseup=null),4&ct?Ct.mousedrag||(Ct.mousedrag=nn):(De._document.removeEventListener("mousemove",Ct.mousedrag),Ct.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(re.addDisposableDomListener(tt,"mousedown",function(ct){if(ct.preventDefault(),De.focus(),De._coreMouseService.areMouseEventsActive&&!De._selectionService.shouldForceSelection(ct))return Ve(ct),Ct.mouseup&&De._document.addEventListener("mouseup",Ct.mouseup),Ct.mousedrag&&De._document.addEventListener("mousemove",Ct.mousedrag),De.cancel(ct)})),this.register(re.addDisposableDomListener(tt,"wheel",function(ct){if(!Ct.wheel){if(!De.buffer.hasScrollback){var wt=De.viewport.getLinesScrolled(ct);if(wt===0)return;for(var Vt=ie.C0.ESC+(De._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ct.deltaY<0?"A":"B"),Gt="",Ln=0;Ln<Math.abs(wt);Ln++)Gt+=Vt;De._coreService.triggerDataEvent(Gt,!0)}}},{passive:!0})),this.register(re.addDisposableDomListener(tt,"wheel",function(ct){if(!Ct.wheel)return De.viewport.onWheel(ct)?void 0:De.cancel(ct)},{passive:!1})),this.register(re.addDisposableDomListener(tt,"touchstart",function(ct){if(!De._coreMouseService.areMouseEventsActive)return De.viewport.onTouchStart(ct),De.cancel(ct)},{passive:!0})),this.register(re.addDisposableDomListener(tt,"touchmove",function(ct){if(!De._coreMouseService.areMouseEventsActive)return De.viewport.onTouchMove(ct)?void 0:De.cancel(ct)},{passive:!1}))},Ae.prototype.refresh=function(De,Fe){var tt;(tt=this._renderService)===null||tt===void 0||tt.refreshRows(De,Fe)},Ae.prototype._queueLinkification=function(De,Fe){var tt;(tt=this.linkifier)===null||tt===void 0||tt.linkifyRows(De,Fe)},Ae.prototype.updateCursorStyle=function(De){this._selectionService&&this._selectionService.shouldColumnSelect(De)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ae.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ae.prototype.scrollLines=function(De,Fe){pt.prototype.scrollLines.call(this,De,Fe),this.refresh(0,this.rows-1)},Ae.prototype.paste=function(De){pe.paste(De,this.textarea,this._coreService)},Ae.prototype.attachCustomKeyEventHandler=function(De){this._customKeyEventHandler=De},Ae.prototype.registerLinkMatcher=function(De,Fe,tt){var Ve=this.linkifier.registerLinkMatcher(De,Fe,tt);return this.refresh(0,this.rows-1),Ve},Ae.prototype.deregisterLinkMatcher=function(De){this.linkifier.deregisterLinkMatcher(De)&&this.refresh(0,this.rows-1)},Ae.prototype.registerLinkProvider=function(De){return this.linkifier2.registerLinkProvider(De)},Ae.prototype.registerCharacterJoiner=function(De){var Fe=this._renderService.registerCharacterJoiner(De);return this.refresh(0,this.rows-1),Fe},Ae.prototype.deregisterCharacterJoiner=function(De){this._renderService.deregisterCharacterJoiner(De)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ae.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ae.prototype.addMarker=function(De){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+De)},Ae.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ae.prototype.select=function(De,Fe,tt){this._selectionService.setSelection(De,Fe,tt)},Ae.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ae.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]}},Ae.prototype.clearSelection=function(){var De;(De=this._selectionService)===null||De===void 0||De.clearSelection()},Ae.prototype.selectAll=function(){var De;(De=this._selectionService)===null||De===void 0||De.selectAll()},Ae.prototype.selectLines=function(De,Fe){var tt;(tt=this._selectionService)===null||tt===void 0||tt.selectLines(De,Fe)},Ae.prototype._keyDown=function(De){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1)return!1;if(!this._compositionHelper.keydown(De))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Fe=x.evaluateKeyboardEvent(De,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(De),Fe.type===3||Fe.type===2){var tt=this.rows-1;return this.scrollLines(Fe.type===2?-tt:tt),this.cancel(De,!0)}return Fe.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,De)||(Fe.cancel&&this.cancel(De,!0),!Fe.key||(Fe.key!==ie.C0.ETX&&Fe.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Fe.key,domEvent:De}),this._showCursor(),this._coreService.triggerDataEvent(Fe.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(De,!0)))},Ae.prototype._isThirdLevelShift=function(De,Fe){var tt=De.isMac&&!this.options.macOptionIsMeta&&Fe.altKey&&!Fe.ctrlKey&&!Fe.metaKey||De.isWindows&&Fe.altKey&&Fe.ctrlKey&&!Fe.metaKey;return Fe.type==="keypress"?tt:tt&&(!Fe.keyCode||Fe.keyCode>47)},Ae.prototype._keyUp=function(De){this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1||(function(Fe){return Fe.keyCode===16||Fe.keyCode===17||Fe.keyCode===18}(De)||this.focus(),this.updateCursorStyle(De))},Ae.prototype._keyPress=function(De){var Fe;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1)return!1;if(this.cancel(De),De.charCode)Fe=De.charCode;else if(De.which===null||De.which===void 0)Fe=De.keyCode;else{if(De.which===0||De.charCode===0)return!1;Fe=De.which}return!(!Fe||(De.altKey||De.ctrlKey||De.metaKey)&&!this._isThirdLevelShift(this.browser,De))&&(Fe=String.fromCharCode(Fe),this._onKey.fire({key:Fe,domEvent:De}),this._showCursor(),this._coreService.triggerDataEvent(Fe,!0),!0)},Ae.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ae.prototype.resize=function(De,Fe){De!==this.cols||Fe!==this.rows?pt.prototype.resize.call(this,De,Fe):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ae.prototype._afterResize=function(De,Fe){var tt,Ve;(tt=this._charSizeService)===null||tt===void 0||tt.measure(),(Ve=this.viewport)===null||Ve===void 0||Ve.syncScrollArea(!0)},Ae.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 De=1;De<this.rows;De++)this.buffer.lines.push(this.buffer.getBlankLine(oe.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Ae.prototype.reset=function(){var De,Fe;this.options.rows=this.rows,this.options.cols=this.cols;var tt=this._customKeyEventHandler;this._setup(),pt.prototype.reset.call(this),(De=this._selectionService)===null||De===void 0||De.reset(),this._customKeyEventHandler=tt,this.refresh(0,this.rows-1),(Fe=this.viewport)===null||Fe===void 0||Fe.syncScrollArea()},Ae.prototype._reportWindowsOptions=function(De){if(this._renderService)switch(De){case de.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Fe=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),tt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+tt+";"+Fe+"t");break;case de.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ve=this._renderService.dimensions.scaledCellWidth.toFixed(0),Ct=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+Ct+";"+Ve+"t")}},Ae.prototype.cancel=function(De,Fe){if(this.options.cancelEvents||Fe)return De.preventDefault(),De.stopPropagation(),!1},Ae.prototype._visualBell=function(){return!1},Ae.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Ae}(Me.CoreTerminal);ee.Terminal=Qe},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(ie,de,le,ce){var se,me=arguments.length,re=me<3?de:ce===null?ce=Object.getOwnPropertyDescriptor(de,le):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ie,de,le,ce);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(re=(me<3?se(re):me>3?se(de,le,re):se(de,le))||re);return me>3&&re&&Object.defineProperty(de,le,re),re},be=this&&this.__param||function(ie,de){return function(le,ce){de(le,ce,ie)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CompositionHelper=void 0;var ve=z(5),fe=z(1),pe=function(){function ie(de,le,ce,se,me,re){this._textarea=de,this._compositionView=le,this._bufferService=ce,this._optionsService=se,this._charSizeService=me,this._coreService=re,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 ce={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(le._isSendingComposition){le._isSendingComposition=!1;var me=void 0;me=le._isComposing?le._textarea.value.substring(ce.start,ce.end):le._textarea.value.substring(ce.start),le._coreService.triggerDataEvent(me,!0)}},0)}else{this._isSendingComposition=!1;var se=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(se,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var de=this,le=this._textarea.value;setTimeout(function(){if(!de._isComposing){var ce=de._textarea.value.replace(le,"");ce.length>0&&de._coreService.triggerDataEvent(ce,!0)}},0)},ie.prototype.updateCompositionElements=function(de){var le=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var ce=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),se=this._bufferService.buffer.y*ce,me=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=me+"px",this._compositionView.style.top=se+"px",this._compositionView.style.height=ce+"px",this._compositionView.style.lineHeight=ce+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var re=this._compositionView.getBoundingClientRect();this._textarea.style.left=me+"px",this._textarea.style.top=se+"px",this._textarea.style.width=re.width+"px",this._textarea.style.height=re.height+"px",this._textarea.style.lineHeight=re.height+"px"}de||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},ie=ge([be(2,fe.IBufferService),be(3,fe.IOptionsService),be(4,ve.ICharSizeService),be(5,fe.ICoreService)],ie)}();ee.CompositionHelper=pe},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(se,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ge(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},fe=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Viewport=void 0;var pe=z(2),ie=z(7),de=z(5),le=z(1),ce=function(se){function me(re,ne,a,y,E,b,x){var te=se.call(this)||this;return te._scrollLines=re,te._viewportElement=ne,te._scrollArea=a,te._bufferService=y,te._optionsService=E,te._charSizeService=b,te._renderService=x,te.scrollBarWidth=0,te._currentRowHeight=0,te._lastRecordedBufferLength=0,te._lastRecordedViewportHeight=0,te._lastRecordedBufferHeight=0,te._lastTouchY=0,te._lastScrollTop=0,te._wheelPartialScroll=0,te._refreshAnimationFrame=null,te._ignoreNextScrollEvent=!1,te.scrollBarWidth=te._viewportElement.offsetWidth-te._scrollArea.offsetWidth||15,te.register(ie.addDisposableDomListener(te._viewportElement,"scroll",te._onScroll.bind(te))),setTimeout(function(){return te.syncScrollArea()},0),te}return be(me,se),me.prototype.onThemeChange=function(re){this._viewportElement.style.backgroundColor=re.background.css},me.prototype._refresh=function(re){var ne=this;if(re)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},me.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var re=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==re&&(this._lastRecordedBufferHeight=re,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},me.prototype.syncScrollArea=function(re){if(re===void 0&&(re=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(re);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(re)}else this._refresh(re)},me.prototype._onScroll=function(re){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)}},me.prototype._bubbleScroll=function(re,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(re.cancelable&&re.preventDefault(),!1)},me.prototype.onWheel=function(re){var ne=this._getPixelsScrolled(re);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},me.prototype._getPixelsScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},me.prototype.getLinesScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.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):re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},me.prototype._applyScrollModifier=function(re,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?re*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:re*this._optionsService.options.scrollSensitivity},me.prototype.onTouchStart=function(re){this._lastTouchY=re.touches[0].pageY},me.prototype.onTouchMove=function(re){var ne=this._lastTouchY-re.touches[0].pageY;return this._lastTouchY=re.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},me=ve([fe(3,le.IBufferService),fe(4,le.IOptionsService),fe(5,de.ICharSizeService),fe(6,de.IRenderService)],me)}(pe.Disposable);ee.Viewport=ce},function(We,ee,z){"use strict";function ge(pe){return pe.replace(/\r?\n/g,"\r")}function be(pe,ie){return ie?"\x1B[200~"+pe+"\x1B[201~":pe}function ve(pe,ie,de){pe=be(pe=ge(pe),de.decPrivateModes.bracketedPasteMode),de.triggerDataEvent(pe,!0),ie.value=""}function fe(pe,ie,de){var le=de.getBoundingClientRect(),ce=pe.clientX-le.left-10,se=pe.clientY-le.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=ce+"px",ie.style.top=se+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(ee,"__esModule",{value:!0}),ee.rightClickHandler=ee.moveTextAreaUnderMouseCursor=ee.paste=ee.handlePasteEvent=ee.copyHandler=ee.bracketTextForPaste=ee.prepareTextForTerminal=void 0,ee.prepareTextForTerminal=ge,ee.bracketTextForPaste=be,ee.copyHandler=function(pe,ie){pe.clipboardData&&pe.clipboardData.setData("text/plain",ie.selectionText),pe.preventDefault()},ee.handlePasteEvent=function(pe,ie,de){pe.stopPropagation(),pe.clipboardData&&ve(pe.clipboardData.getData("text/plain"),ie,de)},ee.paste=ve,ee.moveTextAreaUnderMouseCursor=fe,ee.rightClickHandler=function(pe,ie,de,le,ce){fe(pe,ie,de),ce&&!le.isClickInSelection(pe)&&le.selectWordAtCursor(pe),ie.value=le.selectionText,ie.select()}},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(se,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ge(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.EscapeSequenceParser=ee.VT500_TRANSITION_TABLE=ee.TransitionTable=void 0;var ve=z(2),fe=z(15),pe=z(21),ie=z(22),de=z(24),le=function(){function se(me){this.table=new Uint8Array(me)}return se.prototype.setDefault=function(me,re){fe.fill(this.table,me<<4|re)},se.prototype.add=function(me,re,ne,a){this.table[re<<8|me]=ne<<4|a},se.prototype.addMany=function(me,re,ne,a){for(var y=0;y<me.length;y++)this.table[re<<8|me[y]]=ne<<4|a},se}();ee.TransitionTable=le,ee.VT500_TRANSITION_TABLE=function(){var se=new le(4095),me=Array.apply(null,Array(256)).map(function(b,x){return x}),re=function(b,x){return me.slice(b,x)},ne=re(32,127),a=re(0,24);a.push(25),a.push.apply(a,re(28,32));var y,E=re(0,14);for(y in se.setDefault(1,0),se.addMany(ne,0,2,0),E)se.addMany([24,26,153,154],y,3,0),se.addMany(re(128,144),y,3,0),se.addMany(re(144,152),y,3,0),se.add(156,y,0,0),se.add(27,y,11,1),se.add(157,y,4,8),se.addMany([152,158,159],y,0,7),se.add(155,y,11,3),se.add(144,y,11,9);return se.addMany(a,0,3,0),se.addMany(a,1,3,1),se.add(127,1,0,1),se.addMany(a,8,0,8),se.addMany(a,3,3,3),se.add(127,3,0,3),se.addMany(a,4,3,4),se.add(127,4,0,4),se.addMany(a,6,3,6),se.addMany(a,5,3,5),se.add(127,5,0,5),se.addMany(a,2,3,2),se.add(127,2,0,2),se.add(93,1,4,8),se.addMany(ne,8,5,8),se.add(127,8,5,8),se.addMany([156,27,24,26,7],8,6,0),se.addMany(re(28,32),8,0,8),se.addMany([88,94,95],1,0,7),se.addMany(ne,7,0,7),se.addMany(a,7,0,7),se.add(156,7,0,0),se.add(127,7,0,7),se.add(91,1,11,3),se.addMany(re(64,127),3,7,0),se.addMany(re(48,60),3,8,4),se.addMany([60,61,62,63],3,9,4),se.addMany(re(48,60),4,8,4),se.addMany(re(64,127),4,7,0),se.addMany([60,61,62,63],4,0,6),se.addMany(re(32,64),6,0,6),se.add(127,6,0,6),se.addMany(re(64,127),6,0,0),se.addMany(re(32,48),3,9,5),se.addMany(re(32,48),5,9,5),se.addMany(re(48,64),5,0,6),se.addMany(re(64,127),5,7,0),se.addMany(re(32,48),4,9,5),se.addMany(re(32,48),1,9,2),se.addMany(re(32,48),2,9,2),se.addMany(re(48,127),2,10,0),se.addMany(re(48,80),1,10,0),se.addMany(re(81,88),1,10,0),se.addMany([89,90,92],1,10,0),se.addMany(re(96,127),1,10,0),se.add(80,1,11,9),se.addMany(a,9,0,9),se.add(127,9,0,9),se.addMany(re(28,32),9,0,9),se.addMany(re(32,48),9,9,12),se.addMany(re(48,60),9,8,10),se.addMany([60,61,62,63],9,9,10),se.addMany(a,11,0,11),se.addMany(re(32,128),11,0,11),se.addMany(re(28,32),11,0,11),se.addMany(a,10,0,10),se.add(127,10,0,10),se.addMany(re(28,32),10,0,10),se.addMany(re(48,60),10,8,10),se.addMany([60,61,62,63],10,0,11),se.addMany(re(32,48),10,9,12),se.addMany(a,12,0,12),se.add(127,12,0,12),se.addMany(re(28,32),12,0,12),se.addMany(re(32,48),12,9,12),se.addMany(re(48,64),12,0,11),se.addMany(re(64,127),12,12,13),se.addMany(re(64,127),10,12,13),se.addMany(re(64,127),9,12,13),se.addMany(a,13,13,13),se.addMany(ne,13,13,13),se.add(127,13,0,13),se.addMany([27,156,24,26],13,14,0),se.add(160,0,2,0),se.add(160,8,5,8),se.add(160,6,0,6),se.add(160,11,0,11),se.add(160,13,13,13),se}();var ce=function(se){function me(re){re===void 0&&(re=ee.VT500_TRANSITION_TABLE);var ne=se.call(this)||this;return ne._transitions=re,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new pe.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(me,se),me.prototype._identifier=function(re,ne){ne===void 0&&(ne=[64,126]);var a=0;if(re.prefix){if(re.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=re.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(re.intermediates){if(re.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<re.intermediates.length;++y){var E=re.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(re.final.length!==1)throw new Error("final must be a single byte");var b=re.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},me.prototype.identToString=function(re){for(var ne=[];re;)ne.push(String.fromCharCode(255&re)),re>>=8;return ne.reverse().join("")},me.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},me.prototype.setPrintHandler=function(re){this._printHandler=re},me.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},me.prototype.addEscHandler=function(re,ne){var a=this._identifier(re,[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)}}},me.prototype.setEscHandler=function(re,ne){this._escHandlers[this._identifier(re,[48,126])]=[ne]},me.prototype.clearEscHandler=function(re){this._escHandlers[this._identifier(re,[48,126])]&&delete this._escHandlers[this._identifier(re,[48,126])]},me.prototype.setEscHandlerFallback=function(re){this._escHandlerFb=re},me.prototype.setExecuteHandler=function(re,ne){this._executeHandlers[re.charCodeAt(0)]=ne},me.prototype.clearExecuteHandler=function(re){this._executeHandlers[re.charCodeAt(0)]&&delete this._executeHandlers[re.charCodeAt(0)]},me.prototype.setExecuteHandlerFallback=function(re){this._executeHandlerFb=re},me.prototype.addCsiHandler=function(re,ne){var a=this._identifier(re);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)}}},me.prototype.setCsiHandler=function(re,ne){this._csiHandlers[this._identifier(re)]=[ne]},me.prototype.clearCsiHandler=function(re){this._csiHandlers[this._identifier(re)]&&delete this._csiHandlers[this._identifier(re)]},me.prototype.setCsiHandlerFallback=function(re){this._csiHandlerFb=re},me.prototype.addDcsHandler=function(re,ne){return this._dcsParser.addHandler(this._identifier(re),ne)},me.prototype.setDcsHandler=function(re,ne){this._dcsParser.setHandler(this._identifier(re),ne)},me.prototype.clearDcsHandler=function(re){this._dcsParser.clearHandler(this._identifier(re))},me.prototype.setDcsHandlerFallback=function(re){this._dcsParser.setHandlerFallback(re)},me.prototype.addOscHandler=function(re,ne){return this._oscParser.addHandler(re,ne)},me.prototype.setOscHandler=function(re,ne){this._oscParser.setHandler(re,ne)},me.prototype.clearOscHandler=function(re){this._oscParser.clearHandler(re)},me.prototype.setOscHandlerFallback=function(re){this._oscParser.setHandlerFallback(re)},me.prototype.setErrorHandler=function(re){this._errorHandler=re},me.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},me.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},me.prototype.parse=function(re,ne){for(var a=0,y=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,te=this._collect,oe=this._params,ae=this._transitions.table,ue=0;ue<ne;++ue){switch((y=ae[E<<8|((a=re[ue])<160?a:160)])>>4){case 2:for(var ye=ue+1;;++ye){if(ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ue,ye),ue=ye-1;break}if(++ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ue,ye),ue=ye-1;break}if(++ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ue,ye),ue=ye-1;break}if(++ye>=ne||(a=re[ye])<32||a>126&&a<160){this._printHandler(re,ue,ye),ue=ye-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:ue,code:a,currentState:E,collect:te,params:oe,abort:!1}).abort)return;break;case 7:for(var _e=this._csiHandlers[te<<8|a],xe=_e?_e.length-1:-1;xe>=0&&_e[xe](oe)===!1;xe--);xe<0&&this._csiHandlerFb(te<<8|a,oe),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:oe.addParam(0);break;case 58:oe.addSubParam(-1);break;default:oe.addDigit(a-48)}while(++ue<ne&&(a=re[ue])>47&&a<60);ue--;break;case 9:te<<=8,te|=a;break;case 10:for(var Ce=this._escHandlers[te<<8|a],Be=Ce?Ce.length-1:-1;Be>=0&&Ce[Be]()===!1;Be--);Be<0&&this._escHandlerFb(te<<8|a),this.precedingCodepoint=0;break;case 11:oe.reset(),oe.addParam(0),te=0;break;case 12:x.hook(te<<8|a,oe);break;case 13:for(var Me=ue+1;;++Me)if(Me>=ne||(a=re[Me])===24||a===26||a===27||a>127&&a<160){x.put(re,ue,Me),ue=Me-1;break}break;case 14:x.unhook(a!==24&&a!==26),a===27&&(y|=1),oe.reset(),oe.addParam(0),te=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var mt=ue+1;;mt++)if(mt>=ne||(a=re[mt])<32||a>127&&a<=159){b.put(re,ue,mt),ue=mt-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),oe.reset(),oe.addParam(0),te=0,this.precedingCodepoint=0}E=15&y}this._collect=te,this.currentState=E},me}(ve.Disposable);ee.EscapeSequenceParser=ce},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var ae in oe)oe.hasOwnProperty(ae)&&(te[ae]=oe[ae])})(b,x)},function(b,x){function te(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(te.prototype=x.prototype,new te)}),ve=this&&this.__decorate||function(b,x,te,oe){var ae,ue=arguments.length,ye=ue<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,te):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(b,x,te,oe);else for(var _e=b.length-1;_e>=0;_e--)(ae=b[_e])&&(ye=(ue<3?ae(ye):ue>3?ae(x,te,ye):ae(x,te))||ye);return ue>3&&ye&&Object.defineProperty(x,te,ye),ye},fe=this&&this.__param||function(b,x){return function(te,oe){x(te,oe,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Renderer=void 0;var pe=z(41),ie=z(47),de=z(48),le=z(49),ce=z(29),se=z(2),me=z(5),re=z(1),ne=z(25),a=z(0),y=1,E=function(b){function x(te,oe,ae,ue,ye,_e,xe,Ce,Be){var Me=b.call(this)||this;Me._colors=te,Me._screenElement=oe,Me._bufferService=ye,Me._charSizeService=_e,Me._optionsService=xe,Me._id=y++,Me._onRequestRedraw=new a.EventEmitter;var mt=Me._optionsService.options.allowTransparency;return Me._characterJoinerRegistry=new ce.CharacterJoinerRegistry(Me._bufferService),Me._renderLayers=[new pe.TextRenderLayer(Me._screenElement,0,Me._colors,Me._characterJoinerRegistry,mt,Me._id,Me._bufferService,xe),new ie.SelectionRenderLayer(Me._screenElement,1,Me._colors,Me._id,Me._bufferService,xe),new le.LinkRenderLayer(Me._screenElement,2,Me._colors,Me._id,ae,ue,Me._bufferService,xe),new de.CursorRenderLayer(Me._screenElement,3,Me._colors,Me._id,Me._onRequestRedraw,Me._bufferService,xe,Ce,Be)],Me.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},Me._devicePixelRatio=window.devicePixelRatio,Me._updateDimensions(),Me.onOptionsChanged(),Me}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 te=0,oe=this._renderLayers;te<oe.length;te++)oe[te].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(te){this._colors=te;for(var oe=0,ae=this._renderLayers;oe<ae.length;oe++){var ue=ae[oe];ue.setColors(this._colors),ue.reset()}},x.prototype.onResize=function(te,oe){this._updateDimensions();for(var ae=0,ue=this._renderLayers;ae<ue.length;ae++)ue[ae].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(te){return te.onBlur()})},x.prototype.onFocus=function(){this._runOperation(function(te){return te.onFocus()})},x.prototype.onSelectionChanged=function(te,oe,ae){ae===void 0&&(ae=!1),this._runOperation(function(ue){return ue.onSelectionChanged(te,oe,ae)})},x.prototype.onCursorMove=function(){this._runOperation(function(te){return te.onCursorMove()})},x.prototype.onOptionsChanged=function(){this._runOperation(function(te){return te.onOptionsChanged()})},x.prototype.clear=function(){this._runOperation(function(te){return te.reset()})},x.prototype._runOperation=function(te){for(var oe=0,ae=this._renderLayers;oe<ae.length;oe++)te(ae[oe])},x.prototype.renderRows=function(te,oe){for(var ae=0,ue=this._renderLayers;ae<ue.length;ae++)ue[ae].onGridChanged(te,oe)},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(te){return this._characterJoinerRegistry.registerCharacterJoiner(te)},x.prototype.deregisterCharacterJoiner=function(te){return this._characterJoinerRegistry.deregisterCharacterJoiner(te)},x=ve([fe(4,re.IBufferService),fe(5,me.ICharSizeService),fe(6,re.IOptionsService),fe(7,re.ICoreService),fe(8,me.ICoreBrowserService)],x)}(se.Disposable);ee.Renderer=E},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(se,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ge(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.TextRenderLayer=void 0;var ve=z(42),fe=z(13),pe=z(6),ie=z(3),de=z(29),le=z(4),ce=function(se){function me(re,ne,a,y,E,b,x,te){var oe=se.call(this,re,"text",ne,E,a,b,x,te)||this;return oe._characterWidth=0,oe._characterFont="",oe._characterOverlapCache={},oe._workCell=new le.CellData,oe._state=new ve.GridCache,oe._characterJoinerRegistry=y,oe}return be(me,se),me.prototype.resize=function(re){se.prototype.resize.call(this,re);var ne=this._getFont(!1,!1);this._characterWidth===re.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=re.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},me.prototype.reset=function(){this._state.clear(),this._clearAll()},me.prototype._forEachCell=function(re,ne,a,y){for(var E=re;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),te=a?a.getJoinedCharacters(b):[],oe=0;oe<this._bufferService.cols;oe++){x.loadCell(oe,this._workCell);var ae=this._workCell,ue=!1,ye=oe;if(ae.getWidth()!==0){if(te.length>0&&oe===te[0][0]){ue=!0;var _e=te.shift();ae=new de.JoinedCellData(this._workCell,x.translateToString(!0,_e[0],_e[1]),_e[1]-_e[0]),ye=_e[1]-1}!ue&&this._isOverlapping(ae)&&ye<x.length-1&&x.getCodePoint(ye+1)===ie.NULL_CELL_CODE&&(ae.content&=-12582913,ae.content|=2<<22),y(ae,oe,E),oe=ye}}},me.prototype._drawBackground=function(re,ne){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,x=0,te=null;y.save(),this._forEachCell(re,ne,null,function(oe,ae,ue){var ye=null;oe.isInverse()?ye=oe.isFgDefault()?a._colors.foreground.css:oe.isFgRGB()?"rgb("+pe.AttributeData.toColorRGB(oe.getFgColor()).join(",")+")":a._colors.ansi[oe.getFgColor()].css:oe.isBgRGB()?ye="rgb("+pe.AttributeData.toColorRGB(oe.getBgColor()).join(",")+")":oe.isBgPalette()&&(ye=a._colors.ansi[oe.getBgColor()].css),te===null&&(b=ae,x=ue),ue!==x?(y.fillStyle=te||"",a._fillCells(b,x,E-b,1),b=ae,x=ue):te!==ye&&(y.fillStyle=te||"",a._fillCells(b,x,ae-b,1),b=ae,x=ue),te=ye}),te!==null&&(y.fillStyle=te,this._fillCells(b,x,E-b,1)),y.restore()},me.prototype._drawForeground=function(re,ne){var a=this;this._forEachCell(re,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("+pe.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("+pe.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var te=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&te<8&&(te+=8),a._ctx.fillStyle=a._colors.ansi[te].css}a._fillBottomLineAtCells(E,b,y.getWidth()),a._ctx.restore()}})},me.prototype.onGridChanged=function(re,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,re,this._bufferService.cols,ne-re+1),this._drawBackground(re,ne),this._drawForeground(re,ne))},me.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},me.prototype._isOverlapping=function(re){if(re.getWidth()!==1||re.getCode()<256)return!1;var ne=re.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},me}(fe.BaseRenderLayer);ee.TextRenderLayer=ce},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.GridCache=void 0;var ge=function(){function be(){this.cache=[]}return be.prototype.resize=function(ve,fe){for(var pe=0;pe<ve;pe++){this.cache.length<=pe&&this.cache.push([]);for(var ie=this.cache[pe].length;ie<fe;ie++)this.cache[pe].push(void 0);this.cache[pe].length=fe}this.cache.length=ve},be.prototype.clear=function(){for(var ve=0;ve<this.cache.length;ve++)for(var fe=0;fe<this.cache[ve].length;fe++)this.cache[ve][fe]=void 0},be}();ee.GridCache=ge},function(We,ee,z){"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(ee,"__esModule",{value:!0}),ee.NoneCharAtlas=ee.DynamicCharAtlas=ee.getGlyphCacheKey=void 0;var ve=z(9),fe=z(44),pe=z(27),ie=z(46),de=z(11),le=z(28),ce=z(10),se={css:"rgba(0, 0, 0, 0)",rgba:0};function me(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}ee.getGlyphCacheKey=me;var re=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 te=E.createElement("canvas");te.width=x._config.scaledCharWidth,te.height=x._config.scaledCharHeight,x._tmpCtx=le.throwIfFalsy(te.getContext("2d",{alpha:x._config.allowTransparency})),x._width=Math.floor(1024/x._config.scaledCharWidth),x._height=Math.floor(1024/x._config.scaledCharHeight);var oe=x._width*x._height;return x._cacheMap=new ie.LRUMap(oe),x._cacheMap.prealloc(oe),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,te){if(b.code===32)return!0;if(!this._canCache(b))return!1;var oe=me(b),ae=this._cacheMap.get(oe);if(ae!=null)return this._drawFromCache(E,ae,x,te),!0;if(this._drawToCacheCount<100){var ue=void 0;ue=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ye=this._drawToCache(b,ue);return this._cacheMap.set(oe,ye),this._drawFromCache(E,ye,x,te),!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,te){if(!b.isEmpty){var oe=this._toCoordinateX(b.index),ae=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,oe,ae,this._config.scaledCharWidth,this._config.scaledCharHeight,x,te,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:pe.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?se:E.bg===ve.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===ve.INVERTED_DEFAULT_COLOR?ce.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 te=E.bold?this._config.fontWeightBold:this._config.fontWeight,oe=E.italic?"italic":"";this._tmpCtx.font=oe+" "+te+" "+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=ve.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var ae=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ue=!1;this._config.allowTransparency||(ue=function(Ce,Be){for(var Me=!0,mt=Be.rgba>>>24,Qe=Be.rgba>>>16&255,pt=Be.rgba>>>8&255,Ae=0;Ae<Ce.data.length;Ae+=4)Ce.data[Ae]===mt&&Ce.data[Ae+1]===Qe&&Ce.data[Ae+2]===pt?Ce.data[Ae+3]=0:Me=!1;return Me}(ae,x));var ye=this._toCoordinateX(b),_e=this._toCoordinateY(b);this._cacheCtx.putImageData(ae,ye,_e);var xe={index:b,isEmpty:ue,inBitmap:!1};return this._addGlyphToBitmap(xe),xe},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 te=0;te<b.length;te++)b[te].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(fe.BaseCharAtlas);ee.DynamicCharAtlas=re;var ne=function(a){function y(E,b){return a.call(this)||this}return be(y,a),y.prototype.draw=function(E,b,x,te){return!1},y}(fe.BaseCharAtlas);ee.NoneCharAtlas=ne},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.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}();ee.BaseCharAtlas=ge},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.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(ve,fe,pe){this._rgba[ve]||(this._rgba[ve]={}),this._rgba[ve][fe]=pe},be.prototype.getCss=function(ve,fe){return this._rgba[ve]?this._rgba[ve][fe]:void 0},be.prototype.setColor=function(ve,fe,pe){this._color[ve]||(this._color[ve]={}),this._color[ve][fe]=pe},be.prototype.getColor=function(ve,fe){return this._color[ve]?this._color[ve][fe]:void 0},be}();ee.ColorContrastCache=ge},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.LRUMap=void 0;var ge=function(){function be(ve){this.capacity=ve,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return be.prototype._unlinkNode=function(ve){var fe=ve.prev,pe=ve.next;ve===this._head&&(this._head=pe),ve===this._tail&&(this._tail=fe),fe!==null&&(fe.next=pe),pe!==null&&(pe.prev=fe)},be.prototype._appendNode=function(ve){var fe=this._tail;fe!==null&&(fe.next=ve),ve.prev=fe,ve.next=null,this._tail=ve,this._head===null&&(this._head=ve)},be.prototype.prealloc=function(ve){for(var fe=this._nodePool,pe=0;pe<ve;pe++)fe.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(ve){var fe=this._map[ve];return fe!==void 0?(this._unlinkNode(fe),this._appendNode(fe),fe.value):null},be.prototype.peekValue=function(ve){var fe=this._map[ve];return fe!==void 0?fe.value:null},be.prototype.peek=function(){var ve=this._head;return ve===null?null:ve.value},be.prototype.set=function(ve,fe){var pe=this._map[ve];if(pe!==void 0)pe=this._map[ve],this._unlinkNode(pe),pe.value=fe;else if(this.size>=this.capacity)pe=this._head,this._unlinkNode(pe),delete this._map[pe.key],pe.key=ve,pe.value=fe,this._map[ve]=pe;else{var ie=this._nodePool;ie.length>0?((pe=ie.pop()).key=ve,pe.value=fe):pe={prev:null,next:null,key:ve,value:fe},this._map[ve]=pe,this.size++}this._appendNode(pe)},be}();ee.LRUMap=ge},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(fe,pe){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])})(fe,pe)},function(fe,pe){function ie(){this.constructor=fe}ge(fe,pe),fe.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionRenderLayer=void 0;var ve=function(fe){function pe(ie,de,le,ce,se,me){var re=fe.call(this,ie,"selection",de,!0,le,ce,se,me)||this;return re._clearState(),re}return be(pe,fe),pe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},pe.prototype.resize=function(ie){fe.prototype.resize.call(this,ie),this._clearState()},pe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},pe.prototype.onSelectionChanged=function(ie,de,le){if(this._didStateChange(ie,de,le,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&de){var ce=ie[1]-this._bufferService.buffer.ydisp,se=de[1]-this._bufferService.buffer.ydisp,me=Math.max(ce,0),re=Math.min(se,this._bufferService.rows-1);if(!(me>=this._bufferService.rows||re<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=ie[0],a=de[0]-ne,y=re-me+1;this._fillCells(ne,me,a,y)}else{ne=ce===me?ie[0]:0;var E=me===re?de[0]:this._bufferService.cols;this._fillCells(ne,me,E-ne,1);var b=Math.max(re-me-1,0);if(this._fillCells(0,me+1,this._bufferService.cols,b),me!==re){var x=se===re?de[0]:this._bufferService.cols;this._fillCells(0,re,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()},pe.prototype._didStateChange=function(ie,de,le,ce){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(de,this._state.end)||le!==this._state.columnSelectMode||ce!==this._state.ydisp},pe.prototype._areCoordinatesEqual=function(ie,de){return!(!ie||!de)&&ie[0]===de[0]&&ie[1]===de[1]},pe}(z(13).BaseRenderLayer);ee.SelectionRenderLayer=ve},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,se){ce.__proto__=se}||function(ce,se){for(var me in se)se.hasOwnProperty(me)&&(ce[me]=se[me])})(de,le)},function(de,le){function ce(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(ce.prototype=le.prototype,new ce)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CursorRenderLayer=void 0;var ve=z(13),fe=z(4),pe=function(de){function le(ce,se,me,re,ne,a,y,E,b){var x=de.call(this,ce,"cursor",se,!0,me,re,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new fe.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(ce){de.prototype.resize.call(this,ce),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 ce,se=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){se._render(!0)})):((ce=this._cursorBlinkStateManager)===null||ce===void 0||ce.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(ce,se){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype._render=function(ce){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var se=this._bufferService.buffer.ybase+this._bufferService.buffer.y,me=se-this._bufferService.buffer.ydisp;if(me<0||me>=this._bufferService.rows)this._clearCursor();else{var re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(se).loadCell(re,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](re,me,this._cell):this._renderBlurCursor(re,me,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=me,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===re&&this._state.y===me&&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"](re,me,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=me,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(ce,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(ce,se,this._optionsService.options.cursorWidth),this._ctx.restore()},le.prototype._renderBlockCursor=function(ce,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(ce,se,me.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(me,ce,se),this._ctx.restore()},le.prototype._renderUnderlineCursor=function(ce,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(ce,se),this._ctx.restore()},le.prototype._renderBlurCursor=function(ce,se,me){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(ce,se,me.getWidth(),1),this._ctx.restore()},le}(ve.BaseRenderLayer);ee.CursorRenderLayer=pe;var ie=function(){function de(le,ce){this._renderCallback=ce,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 ce=this;le===void 0&&(le=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(ce._animationTimeRestarted){var se=600-(Date.now()-ce._animationTimeRestarted);if(ce._animationTimeRestarted=void 0,se>0)return void ce._restartInterval(se)}ce.isCursorVisible=!1,ce._animationFrame=window.requestAnimationFrame(function(){ce._renderCallback(),ce._animationFrame=void 0}),ce._blinkInterval=window.setInterval(function(){if(ce._animationTimeRestarted){var me=600-(Date.now()-ce._animationTimeRestarted);return ce._animationTimeRestarted=void 0,void ce._restartInterval(me)}ce.isCursorVisible=!ce.isCursorVisible,ce._animationFrame=window.requestAnimationFrame(function(){ce._renderCallback(),ce._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(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,se){ce.__proto__=se}||function(ce,se){for(var me in se)se.hasOwnProperty(me)&&(ce[me]=se[me])})(de,le)},function(de,le){function ce(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(ce.prototype=le.prototype,new ce)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.LinkRenderLayer=void 0;var ve=z(13),fe=z(9),pe=z(26),ie=function(de){function le(ce,se,me,re,ne,a,y,E){var b=de.call(this,ce,"link",se,!0,me,re,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(ce){de.prototype.resize.call(this,ce),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 ce=this._state.y2-this._state.y1-1;ce>0&&this._clearCells(0,this._state.y1+1,this._state.cols,ce),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},le.prototype._onShowLinkUnderline=function(ce){if(ce.fg===fe.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:ce.fg&&pe.is256Color(ce.fg)?this._ctx.fillStyle=this._colors.ansi[ce.fg].css:this._ctx.fillStyle=this._colors.foreground.css,ce.y1===ce.y2)this._fillBottomLineAtCells(ce.x1,ce.y1,ce.x2-ce.x1);else{this._fillBottomLineAtCells(ce.x1,ce.y1,ce.cols-ce.x1);for(var se=ce.y1+1;se<ce.y2;se++)this._fillBottomLineAtCells(0,se,ce.cols);this._fillBottomLineAtCells(0,ce.y2,ce.x2)}this._state=ce},le.prototype._onHideLinkUnderline=function(ce){this._clearCurrentLink()},le}(ve.BaseRenderLayer);ee.LinkRenderLayer=ie},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(de,le,ce,se){var me,re=arguments.length,ne=re<3?le:se===null?se=Object.getOwnPropertyDescriptor(le,ce):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,ce,se);else for(var a=de.length-1;a>=0;a--)(me=de[a])&&(ne=(re<3?me(ne):re>3?me(le,ce,ne):me(le,ce))||ne);return re>3&&ne&&Object.defineProperty(le,ce,ne),ne},be=this&&this.__param||function(de,le){return function(ce,se){le(ce,se,de)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZone=ee.Linkifier=void 0;var ve=z(0),fe=z(1),pe=function(){function de(le,ce,se){this._bufferService=le,this._logService=ce,this._unicodeService=se,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new ve.EventEmitter,this._onHideLinkUnderline=new ve.EventEmitter,this._onLinkTooltip=new ve.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,ce){this._element=le,this._mouseZoneManager=ce},de.prototype.linkifyRows=function(le,ce){var se=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=le,this._rowsToLinkify.end=ce):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,le),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,ce)),this._mouseZoneManager.clearAll(le,ce),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return se._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 ce=le.ydisp+this._rowsToLinkify.start;if(!(ce>=le.lines.length)){for(var se=le.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,me=Math.ceil(2e3/this._bufferService.cols),re=this._bufferService.buffer.iterator(!1,ce,se,me,me);re.hasNext();)for(var ne=re.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,ce,se){if(se===void 0&&(se={}),!ce)throw new Error("handler must be defined");var me={id:this._nextLinkMatcherId++,regex:le,handler:ce,matchIndex:se.matchIndex,validationCallback:se.validationCallback,hoverTooltipCallback:se.tooltipCallback,hoverLeaveCallback:se.leaveCallback,willLinkActivate:se.willLinkActivate,priority:se.priority||0};return this._addLinkMatcherToList(me),me.id},de.prototype._addLinkMatcherToList=function(le){if(this._linkMatchers.length!==0){for(var ce=this._linkMatchers.length-1;ce>=0;ce--)if(le.priority<=this._linkMatchers[ce].priority)return void this._linkMatchers.splice(ce+1,0,le);this._linkMatchers.splice(0,0,le)}else this._linkMatchers.push(le)},de.prototype.deregisterLinkMatcher=function(le){for(var ce=0;ce<this._linkMatchers.length;ce++)if(this._linkMatchers[ce].id===le)return this._linkMatchers.splice(ce,1),!0;return!1},de.prototype._doLinkifyRow=function(le,ce,se){for(var me,re=this,ne=new RegExp(se.regex.source,(se.regex.flags||"")+"g"),a=-1,y=function(){var b=me[typeof se.matchIndex!="number"?0:se.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",me,se),"break";if(a=ce.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 te=E._bufferService.buffer.lines.get(x[0]);if(!te)return"break";var oe=te.getFg(x[1]),ae=oe?oe>>9&511:void 0;se.validationCallback?se.validationCallback(b,function(ue){re._rowsTimeoutId||ue&&re._addLink(x[1],x[0]-re._bufferService.buffer.ydisp,b,se,ae)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,se,ae)},E=this;(me=ne.exec(ce))!==null&&y()!=="break";);},de.prototype._addLink=function(le,ce,se,me,re){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(se),y=le%this._bufferService.cols,E=ce+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(te){if(me.handler)return me.handler(te,se);var oe=window.open();oe?(oe.opener=null,oe.location.href=se):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,re)),ne._element.classList.add("xterm-cursor-pointer")},function(te){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,re)),me.hoverTooltipCallback&&me.hoverTooltipCallback(te,se,{start:{x:y,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,re)),ne._element.classList.remove("xterm-cursor-pointer"),me.hoverLeaveCallback&&me.hoverLeaveCallback()},function(te){return!me.willLinkActivate||me.willLinkActivate(te,se)}))}},de.prototype._createLinkHoverEvent=function(le,ce,se,me,re){return{x1:le,y1:ce,x2:se,y2:me,cols:this._bufferService.cols,fg:re}},de._timeBeforeLatency=200,de=ge([be(0,fe.IBufferService),be(1,fe.ILogService),be(2,fe.IUnicodeService)],de)}();ee.Linkifier=pe;var ie=function(de,le,ce,se,me,re,ne,a,y){this.x1=de,this.y1=le,this.x2=ce,this.y2=se,this.clickCallback=me,this.hoverCallback=re,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};ee.MouseZone=ie},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var ae in oe)oe.hasOwnProperty(ae)&&(te[ae]=oe[ae])})(b,x)},function(b,x){function te(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(te.prototype=x.prototype,new te)}),ve=this&&this.__decorate||function(b,x,te,oe){var ae,ue=arguments.length,ye=ue<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,te):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(b,x,te,oe);else for(var _e=b.length-1;_e>=0;_e--)(ae=b[_e])&&(ye=(ue<3?ae(ye):ue>3?ae(x,te,ye):ae(x,te))||ye);return ue>3&&ye&&Object.defineProperty(x,te,ye),ye},fe=this&&this.__param||function(b,x){return function(te,oe){x(te,oe,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionService=void 0;var pe=z(11),ie=z(52),de=z(4),le=z(0),ce=z(5),se=z(1),me=z(30),re=z(53),ne=z(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(te,oe,ae,ue,ye,_e,xe){var Ce=b.call(this)||this;return Ce._element=te,Ce._screenElement=oe,Ce._bufferService=ae,Ce._coreService=ue,Ce._mouseService=ye,Ce._optionsService=_e,Ce._renderService=xe,Ce._dragScrollAmount=0,Ce._enabled=!0,Ce._workCell=new de.CellData,Ce._mouseDownTimeStamp=0,Ce._onLinuxMouseSelection=Ce.register(new le.EventEmitter),Ce._onRedrawRequest=Ce.register(new le.EventEmitter),Ce._onSelectionChange=Ce.register(new le.EventEmitter),Ce._onRequestScrollLines=Ce.register(new le.EventEmitter),Ce._mouseMoveListener=function(Be){return Ce._onMouseMove(Be)},Ce._mouseUpListener=function(Be){return Ce._onMouseUp(Be)},Ce._coreService.onUserInput(function(){Ce.hasSelection&&Ce.clearSelection()}),Ce._trimListener=Ce._bufferService.buffer.lines.onTrim(function(Be){return Ce._onTrim(Be)}),Ce.register(Ce._bufferService.buffers.onBufferActivate(function(Be){return Ce._onBufferActivate(Be)})),Ce.enable(),Ce._model=new ie.SelectionModel(Ce._bufferService),Ce._activeSelectionMode=0,Ce}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 te=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;return!(!te||!oe)&&(te[0]!==oe[0]||te[1]!==oe[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var te=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;if(!te||!oe)return"";var ae=this._bufferService.buffer,ue=[];if(this._activeSelectionMode===3){if(te[0]===oe[0])return"";for(var ye=te[1];ye<=oe[1];ye++){var _e=ae.translateBufferLineToString(ye,!0,te[0],oe[0]);ue.push(_e)}}else{var xe=te[1]===oe[1]?oe[0]:void 0;for(ue.push(ae.translateBufferLineToString(te[1],!0,te[0],xe)),ye=te[1]+1;ye<=oe[1]-1;ye++){var Ce=ae.lines.get(ye);_e=ae.translateBufferLineToString(ye,!0),Ce&&Ce.isWrapped?ue[ue.length-1]+=_e:ue.push(_e)}te[1]!==oe[1]&&(Ce=ae.lines.get(oe[1]),_e=ae.translateBufferLineToString(oe[1],!0,0,oe[0]),Ce&&Ce.isWrapped?ue[ue.length-1]+=_e:ue.push(_e))}return ue.map(function(Be){return Be.replace(y," ")}).join(pe.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),x.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},x.prototype.refresh=function(te){var oe=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return oe._refresh()})),pe.isLinux&&te&&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(te){var oe=this._getMouseBufferCoords(te),ae=this._model.finalSelectionStart,ue=this._model.finalSelectionEnd;return!!(ae&&ue&&oe)&&this._areCoordsInSelection(oe,ae,ue)},x.prototype._areCoordsInSelection=function(te,oe,ae){return te[1]>oe[1]&&te[1]<ae[1]||oe[1]===ae[1]&&te[1]===oe[1]&&te[0]>=oe[0]&&te[0]<ae[0]||oe[1]<ae[1]&&te[1]===ae[1]&&te[0]<ae[0]||oe[1]<ae[1]&&te[1]===oe[1]&&te[0]>=oe[0]},x.prototype.selectWordAtCursor=function(te){var oe=this._getMouseBufferCoords(te);oe&&(this._selectWordAt(oe,!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(te,oe){this._model.clearSelection(),te=Math.max(te,0),oe=Math.min(oe,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,te],this._model.selectionEnd=[this._bufferService.cols,oe],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(te){this._model.onTrim(te)&&this.refresh()},x.prototype._getMouseBufferCoords=function(te){var oe=this._mouseService.getCoords(te,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(oe)return oe[0]--,oe[1]--,oe[1]+=this._bufferService.buffer.ydisp,oe},x.prototype._getMouseEventScrollAmount=function(te){var oe=me.getCoordsRelativeToElement(te,this._screenElement)[1],ae=this._renderService.dimensions.canvasHeight;return oe>=0&&oe<=ae?0:(oe>ae&&(oe-=ae),oe=Math.min(Math.max(oe,-50),50),(oe/=50)/Math.abs(oe)+Math.round(14*oe))},x.prototype.shouldForceSelection=function(te){return pe.isMac?te.altKey&&this._optionsService.options.macOptionClickForcesSelection:te.shiftKey},x.prototype.onMouseDown=function(te){if(this._mouseDownTimeStamp=te.timeStamp,(te.button!==2||!this.hasSelection)&&te.button===0){if(!this._enabled){if(!this.shouldForceSelection(te))return;te.stopPropagation()}te.preventDefault(),this._dragScrollAmount=0,this._enabled&&te.shiftKey?this._onIncrementalClick(te):te.detail===1?this._onSingleClick(te):te.detail===2?this._onDoubleClick(te):te.detail===3&&this._onTripleClick(te),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var te=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return te._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(te){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(te))},x.prototype._onSingleClick=function(te){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(te)?3:0,this._model.selectionStart=this._getMouseBufferCoords(te),this._model.selectionStart){this._model.selectionEnd=void 0;var oe=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);oe&&oe.length!==this._model.selectionStart[0]&&oe.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(te){var oe=this._getMouseBufferCoords(te);oe&&(this._activeSelectionMode=1,this._selectWordAt(oe,!0))},x.prototype._onTripleClick=function(te){var oe=this._getMouseBufferCoords(te);oe&&(this._activeSelectionMode=2,this._selectLineAt(oe[1]))},x.prototype.shouldColumnSelect=function(te){return te.altKey&&!(pe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(te){if(te.stopImmediatePropagation(),this._model.selectionStart){var oe=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(te),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(te),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ae=this._bufferService.buffer;if(this._model.selectionEnd[1]<ae.lines.length){var ue=ae.lines.get(this._model.selectionEnd[1]);ue&&ue.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}oe&&oe[0]===this._model.selectionEnd[0]&&oe[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 te=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(te.ydisp+this._bufferService.rows,te.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=te.ydisp),this.refresh()}},x.prototype._onMouseUp=function(te){var oe=te.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&oe<500&&te.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ae=this._mouseService.getCoords(te,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ae&&ae[0]!==void 0&&ae[1]!==void 0){var ue=re.moveToCellSequence(ae[0]-1,ae[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ue,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(te){var oe=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=te.activeBuffer.lines.onTrim(function(ae){return oe._onTrim(ae)})},x.prototype._convertViewportColToCharacterIndex=function(te,oe){for(var ae=oe[0],ue=0;oe[0]>=ue;ue++){var ye=te.loadCell(ue,this._workCell).getChars().length;this._workCell.getWidth()===0?ae--:ye>1&&oe[0]!==ue&&(ae+=ye-1)}return ae},x.prototype.setSelection=function(te,oe,ae){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[te,oe],this._model.selectionStartLength=ae,this.refresh()},x.prototype._getWordAt=function(te,oe,ae,ue){if(ae===void 0&&(ae=!0),ue===void 0&&(ue=!0),!(te[0]>=this._bufferService.cols)){var ye=this._bufferService.buffer,_e=ye.lines.get(te[1]);if(_e){var xe=ye.translateBufferLineToString(te[1],!1),Ce=this._convertViewportColToCharacterIndex(_e,te),Be=Ce,Me=te[0]-Ce,mt=0,Qe=0,pt=0,Ae=0;if(xe.charAt(Ce)===" "){for(;Ce>0&&xe.charAt(Ce-1)===" ";)Ce--;for(;Be<xe.length&&xe.charAt(Be+1)===" ";)Be++}else{var De=te[0],Fe=te[0];_e.getWidth(De)===0&&(mt++,De--),_e.getWidth(Fe)===2&&(Qe++,Fe++);var tt=_e.getString(Fe).length;for(tt>1&&(Ae+=tt-1,Be+=tt-1);De>0&&Ce>0&&!this._isCharWordSeparator(_e.loadCell(De-1,this._workCell));){_e.loadCell(De-1,this._workCell);var Ve=this._workCell.getChars().length;this._workCell.getWidth()===0?(mt++,De--):Ve>1&&(pt+=Ve-1,Ce-=Ve-1),Ce--,De--}for(;Fe<_e.length&&Be+1<xe.length&&!this._isCharWordSeparator(_e.loadCell(Fe+1,this._workCell));){_e.loadCell(Fe+1,this._workCell);var Ct=this._workCell.getChars().length;this._workCell.getWidth()===2?(Qe++,Fe++):Ct>1&&(Ae+=Ct-1,Be+=Ct-1),Be++,Fe++}}Be++;var Mt=Ce+Me-mt+pt,en=Math.min(this._bufferService.cols,Be-Ce+mt+Qe-pt-Ae);if(oe||xe.slice(Ce,Be).trim()!==""){if(ae&&Mt===0&&_e.getCodePoint(0)!==32){var nn=ye.lines.get(te[1]-1);if(nn&&_e.isWrapped&&nn.getCodePoint(this._bufferService.cols-1)!==32){var it=this._getWordAt([this._bufferService.cols-1,te[1]-1],!1,!0,!1);if(it){var ct=this._bufferService.cols-it.start;Mt-=ct,en+=ct}}}if(ue&&Mt+en===this._bufferService.cols&&_e.getCodePoint(this._bufferService.cols-1)!==32){var wt=ye.lines.get(te[1]+1);if(wt&&wt.isWrapped&&wt.getCodePoint(0)!==32){var Vt=this._getWordAt([0,te[1]+1],!1,!1,!0);Vt&&(en+=Vt.length)}}return{start:Mt,length:en}}}}},x.prototype._selectWordAt=function(te,oe){var ae=this._getWordAt(te,oe);if(ae){for(;ae.start<0;)ae.start+=this._bufferService.cols,te[1]--;this._model.selectionStart=[ae.start,te[1]],this._model.selectionStartLength=ae.length}},x.prototype._selectToWordAt=function(te){var oe=this._getWordAt(te,!0);if(oe){for(var ae=te[1];oe.start<0;)oe.start+=this._bufferService.cols,ae--;if(!this._model.areSelectionValuesReversed())for(;oe.start+oe.length>this._bufferService.cols;)oe.length-=this._bufferService.cols,ae++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?oe.start:oe.start+oe.length,ae]}},x.prototype._isCharWordSeparator=function(te){return te.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(te.getChars())>=0},x.prototype._selectLineAt=function(te){var oe=this._bufferService.buffer.getWrappedRangeForLine(te);this._model.selectionStart=[0,oe.first],this._model.selectionEnd=[this._bufferService.cols,oe.last],this._model.selectionStartLength=0},x=ve([fe(2,se.IBufferService),fe(3,se.ICoreService),fe(4,ce.IMouseService),fe(5,se.IOptionsService),fe(6,ce.IRenderService)],x)}(ne.Disposable);ee.SelectionService=E},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionModel=void 0;var ge=function(){function be(ve){this._bufferService=ve,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 ve=this.selectionStart[0]+this.selectionStartLength;return ve>this._bufferService.cols?[ve%this._bufferService.cols,this.selectionStart[1]+Math.floor(ve/this._bufferService.cols)]:[ve,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 ve=this.selectionStart,fe=this.selectionEnd;return!(!ve||!fe)&&(ve[1]>fe[1]||ve[1]===fe[1]&&ve[0]>fe[0])},be.prototype.onTrim=function(ve){return this.selectionStart&&(this.selectionStart[1]-=ve),this.selectionEnd&&(this.selectionEnd[1]-=ve),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},be}();ee.SelectionModel=ge},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.moveToCellSequence=void 0;var ge=z(12);function be(le,ce,se,me){var re=le-ve(se,le),ne=ce-ve(se,ce);return de(Math.abs(re-ne)-function(a,y,E){for(var b=0,x=a-ve(E,a),te=y-ve(E,y),oe=0;oe<Math.abs(x-te);oe++){var ae=fe(a,y)==="A"?-1:1,ue=E.buffer.lines.get(x+ae*oe);ue&&ue.isWrapped&&b++}return b}(le,ce,se),ie(fe(le,ce),me))}function ve(le,ce){for(var se=0,me=le.buffer.lines.get(ce),re=me&&me.isWrapped;re&&ce>=0&&ce<le.rows;)se++,re=(me=le.buffer.lines.get(--ce))&&me.isWrapped;return se}function fe(le,ce){return le>ce?"A":"B"}function pe(le,ce,se,me,re,ne){for(var a=le,y=ce,E="";a!==se||y!==me;)a+=re?1:-1,re&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!re&&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,ce){var se=ce?"O":"[";return ge.C0.ESC+se+le}function de(le,ce){le=Math.floor(le);for(var se="",me=0;me<le;me++)se+=ce;return se}ee.moveToCellSequence=function(le,ce,se,me){var re,ne=se.buffer.x,a=se.buffer.y;if(!se.buffer.hasScrollback)return function(E,b,x,te,oe,ae){return be(b,te,oe,ae).length===0?"":de(pe(E,b,E,b-ve(oe,b),!1,oe).length,ie("D",ae))}(ne,a,0,ce,se,me)+be(a,ce,se,me)+function(E,b,x,te,oe,ae){var ue;ue=be(b,te,oe,ae).length>0?te-ve(oe,te):b;var ye=te,_e=function(xe,Ce,Be,Me,mt,Qe){var pt;return pt=be(Be,Me,mt,Qe).length>0?Me-ve(mt,Me):Ce,xe<Be&&pt<=Me||xe>=Be&&pt<Me?"C":"D"}(E,b,x,te,oe,ae);return de(pe(E,ue,x,ye,_e==="C",oe).length,ie(_e,ae))}(ne,a,le,ce,se,me);if(a===ce)return re=ne>le?"D":"C",de(Math.abs(ne-le),ie(re,me));re=a>ce?"D":"C";var y=Math.abs(a-ce);return de(function(E,b){return b.cols-E}(a>ce?le:ne,se)+(y-1)*se.cols+1+((a>ce?ne:le)-1),ie(re,me))}},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(pe,ie,de,le){var ce,se=arguments.length,me=se<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(pe,ie,de,le);else for(var re=pe.length-1;re>=0;re--)(ce=pe[re])&&(me=(se<3?ce(me):se>3?ce(ie,de,me):ce(ie,de))||me);return se>3&&me&&Object.defineProperty(ie,de,me),me},be=this&&this.__param||function(pe,ie){return function(de,le){ie(de,le,pe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SoundService=void 0;var ve=z(1),fe=function(){function pe(ie){this._optionsService=ie}return Object.defineProperty(pe,"audioContext",{get:function(){if(!pe._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;pe._audioContext=new ie}return pe._audioContext},enumerable:!1,configurable:!0}),pe.prototype.playBellSound=function(){var ie=pe.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)})}},pe.prototype._base64ToArrayBuffer=function(ie){for(var de=window.atob(ie),le=de.length,ce=new Uint8Array(le),se=0;se<le;se++)ce[se]=de.charCodeAt(se);return ce.buffer},pe.prototype._removeMimeType=function(ie){return ie.split(",")[1]},pe=ge([be(0,ve.IOptionsService)],pe)}();ee.SoundService=fe},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(se,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ge(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},fe=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZoneManager=void 0;var pe=z(2),ie=z(7),de=z(5),le=z(1),ce=function(se){function me(re,ne,a,y,E,b){var x=se.call(this)||this;return x._element=re,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(te){return x._onMouseDown(te)})),x._mouseMoveListener=function(te){return x._onMouseMove(te)},x._mouseLeaveListener=function(te){return x._onMouseLeave(te)},x._clickListener=function(te){return x._onClick(te)},x}return be(me,se),me.prototype.dispose=function(){se.prototype.dispose.call(this),this._deactivate()},me.prototype.add=function(re){this._zones.push(re),this._zones.length===1&&this._activate()},me.prototype.clearAll=function(re,ne){if(this._zones.length!==0){re&&ne||(re=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>re&&y.y1<=ne+1||y.y2>re&&y.y2<=ne+1||y.y1<re&&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()}},me.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))},me.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))},me.prototype._onMouseMove=function(re){this._lastHoverCoords[0]===re.pageX&&this._lastHoverCoords[1]===re.pageY||(this._onHover(re),this._lastHoverCoords=[re.pageX,re.pageY])},me.prototype._onHover=function(re){var ne=this,a=this._findZoneEventAt(re);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(re),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(re)},this._optionsService.options.linkTooltipHoverDuration)))},me.prototype._onTooltip=function(re){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(re);ne&&ne.tooltipCallback&&ne.tooltipCallback(re)},me.prototype._onMouseDown=function(re){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(re);ne!=null&&ne.willLinkActivate(re)&&(re.preventDefault(),re.stopImmediatePropagation())}},me.prototype._onMouseLeave=function(re){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},me.prototype._onClick=function(re){var ne=this._findZoneEventAt(re),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(re),re.preventDefault(),re.stopImmediatePropagation())},me.prototype._getSelectionLength=function(){var re=this._selectionService.selectionText;return re?re.length:0},me.prototype._findZoneEventAt=function(re){var ne=this._mouseService.getCoords(re,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}},me=ve([fe(2,le.IBufferService),fe(3,de.IMouseService),fe(4,de.ISelectionService),fe(5,le.IOptionsService)],me)}(pe.Disposable);ee.MouseZoneManager=ce},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(me,re){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])})(me,re)},function(me,re){function ne(){this.constructor=me}ge(me,re),me.prototype=re===null?Object.create(re):(ne.prototype=re.prototype,new ne)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AccessibilityManager=void 0;var ve=z(18),fe=z(11),pe=z(31),ie=z(7),de=z(2),le=z(32),ce=z(17),se=function(me){function re(ne,a){var y=me.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 pe.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(re,me),re.prototype.dispose=function(){me.prototype.dispose.call(this),ce.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},re.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 te=this._createAccessibilityTreeNode();this._rowElements.unshift(te),this._rowContainer.insertAdjacentElement("afterbegin",te)}else te=this._createAccessibilityTreeNode(),this._rowElements.push(te),this._rowContainer.appendChild(te);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()}},re.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()},re.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},re.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},re.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+=ve.tooMuchOutput)),fe.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},re.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,fe.isMac&&ce.removeElementFromParent(this._liveRegion)},re.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},re.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},re.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),te=(y.ydisp+b+1).toString(),oe=this._rowElements[b];oe&&(x.length===0?oe.innerHTML=" ":oe.textContent=x,oe.setAttribute("aria-posinset",te),oe.setAttribute("aria-setsize",E))}this._announceCharacters()},re.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])}},re.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},re.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},re}(de.Disposable);ee.AccessibilityManager=se},function(We,ee,z){"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 te in x)x.hasOwnProperty(te)&&(b[te]=x[te])})(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)}),ve=this&&this.__decorate||function(y,E,b,x){var te,oe=arguments.length,ae=oe<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ae=Reflect.decorate(y,E,b,x);else for(var ue=y.length-1;ue>=0;ue--)(te=y[ue])&&(ae=(oe<3?te(ae):oe>3?te(E,b,ae):te(E,b))||ae);return oe>3&&ae&&Object.defineProperty(E,b,ae),ae},fe=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRenderer=void 0;var pe=z(58),ie=z(9),de=z(2),le=z(5),ce=z(1),se=z(0),me=z(10),re=z(17),ne=1,a=function(y){function E(b,x,te,oe,ae,ue,ye,_e,xe){var Ce=y.call(this)||this;return Ce._colors=b,Ce._element=x,Ce._screenElement=te,Ce._viewportElement=oe,Ce._linkifier=ae,Ce._linkifier2=ue,Ce._charSizeService=ye,Ce._optionsService=_e,Ce._bufferService=xe,Ce._terminalClass=ne++,Ce._rowElements=[],Ce._rowContainer=document.createElement("div"),Ce._rowContainer.classList.add("xterm-rows"),Ce._rowContainer.style.lineHeight="normal",Ce._rowContainer.setAttribute("aria-hidden","true"),Ce._refreshRowElements(Ce._bufferService.cols,Ce._bufferService.rows),Ce._selectionContainer=document.createElement("div"),Ce._selectionContainer.classList.add("xterm-selection"),Ce._selectionContainer.setAttribute("aria-hidden","true"),Ce.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},Ce._updateDimensions(),Ce._injectCss(),Ce._rowFactory=new pe.DomRendererRowFactory(document,Ce._optionsService,Ce._colors),Ce._element.classList.add("xterm-dom-renderer-owner-"+Ce._terminalClass),Ce._screenElement.appendChild(Ce._rowContainer),Ce._screenElement.appendChild(Ce._selectionContainer),Ce._linkifier.onShowLinkUnderline(function(Be){return Ce._onLinkHover(Be)}),Ce._linkifier.onHideLinkUnderline(function(Be){return Ce._onLinkLeave(Be)}),Ce._linkifier2.onShowLinkUnderline(function(Be){return Ce._onLinkHover(Be)}),Ce._linkifier2.onHideLinkUnderline(function(Be){return Ce._onLinkLeave(Be)}),Ce}return be(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new se.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),re.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 te=x[b];te.style.width=this.dimensions.canvasWidth+"px",te.style.height=this.dimensions.actualCellHeight+"px",te.style.lineHeight=this.dimensions.actualCellHeight+"px",te.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var oe=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=oe,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(."+pe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+pe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+pe.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) ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+":not(."+pe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.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(te,oe){x+=b._terminalSelector+" .xterm-fg-"+oe+" { color: "+te.css+"; }"+b._terminalSelector+" .xterm-bg-"+oe+" { background-color: "+te.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ie.INVERTED_DEFAULT_COLOR+" { color: "+me.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 te=this._rowElements.length;te<=x;te++){var oe=document.createElement("div");this._rowContainer.appendChild(oe),this._rowElements.push(oe)}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,te){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&x){var oe=b[1]-this._bufferService.buffer.ydisp,ae=x[1]-this._bufferService.buffer.ydisp,ue=Math.max(oe,0),ye=Math.min(ae,this._bufferService.rows-1);if(!(ue>=this._bufferService.rows||ye<0)){var _e=document.createDocumentFragment();if(te)_e.appendChild(this._createSelectionElement(ue,b[0],x[0],ye-ue+1));else{var xe=oe===ue?b[0]:0,Ce=ue===ye?x[0]:this._bufferService.cols;_e.appendChild(this._createSelectionElement(ue,xe,Ce));var Be=ye-ue-1;if(_e.appendChild(this._createSelectionElement(ue+1,0,this._bufferService.cols,Be)),ue!==ye){var Me=ae===ye?x[0]:this._bufferService.cols;_e.appendChild(this._createSelectionElement(ye,0,Me))}}this._selectionContainer.appendChild(_e)}}},E.prototype._createSelectionElement=function(b,x,te,oe){oe===void 0&&(oe=1);var ae=document.createElement("div");return ae.style.height=oe*this.dimensions.actualCellHeight+"px",ae.style.top=b*this.dimensions.actualCellHeight+"px",ae.style.left=x*this.dimensions.actualCellWidth+"px",ae.style.width=this.dimensions.actualCellWidth*(te-x)+"px",ae},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 te=this._bufferService.buffer.ybase+this._bufferService.buffer.y,oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ae=this._optionsService.options.cursorBlink,ue=b;ue<=x;ue++){var ye=this._rowElements[ue];ye.innerHTML="";var _e=ue+this._bufferService.buffer.ydisp,xe=this._bufferService.buffer.lines.get(_e),Ce=this._optionsService.options.cursorStyle;ye.appendChild(this._rowFactory.createRow(xe,_e===te,Ce,oe,ae,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,te,oe,ae,ue){for(;b!==x||te!==oe;){var ye=this._rowElements[te];if(!ye)return;var _e=ye.children[b];_e&&(_e.style.textDecoration=ue?"underline":"none"),++b>=ae&&(b=0,te++)}},E=ve([fe(6,le.ICharSizeService),fe(7,ce.IOptionsService),fe(8,ce.IBufferService)],E)}(de.Disposable);ee.DomRenderer=a},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRendererRowFactory=ee.CURSOR_STYLE_UNDERLINE_CLASS=ee.CURSOR_STYLE_BAR_CLASS=ee.CURSOR_STYLE_BLOCK_CLASS=ee.CURSOR_BLINK_CLASS=ee.CURSOR_CLASS=ee.UNDERLINE_CLASS=ee.ITALIC_CLASS=ee.DIM_CLASS=ee.BOLD_CLASS=void 0;var ge=z(9),be=z(3),ve=z(4),fe=z(10);ee.BOLD_CLASS="xterm-bold",ee.DIM_CLASS="xterm-dim",ee.ITALIC_CLASS="xterm-italic",ee.UNDERLINE_CLASS="xterm-underline",ee.CURSOR_CLASS="xterm-cursor",ee.CURSOR_BLINK_CLASS="xterm-cursor-blink",ee.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ee.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ee.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var pe=function(){function de(le,ce,se){this._document=le,this._optionsService=ce,this._colors=se,this._workCell=new ve.CellData}return de.prototype.setColors=function(le){this._colors=le},de.prototype.createRow=function(le,ce,se,me,re,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||ce&&b===me){E=b+1;break}for(b=0;b<E;b++){le.loadCell(b,this._workCell);var x=this._workCell.getWidth();if(x!==0){var te=this._document.createElement("span");if(x>1&&(te.style.width=ne*x+"px"),ce&&b===me)switch(te.classList.add(ee.CURSOR_CLASS),re&&te.classList.add(ee.CURSOR_BLINK_CLASS),se){case"bar":te.classList.add(ee.CURSOR_STYLE_BAR_CLASS);break;case"underline":te.classList.add(ee.CURSOR_STYLE_UNDERLINE_CLASS);break;default:te.classList.add(ee.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&te.classList.add(ee.BOLD_CLASS),this._workCell.isItalic()&&te.classList.add(ee.ITALIC_CLASS),this._workCell.isDim()&&te.classList.add(ee.DIM_CLASS),this._workCell.isUnderline()&&te.classList.add(ee.UNDERLINE_CLASS),this._workCell.isInvisible()?te.textContent=be.WHITESPACE_CELL_CHAR:te.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var oe=this._workCell.getFgColor(),ae=this._workCell.getFgColorMode(),ue=this._workCell.getBgColor(),ye=this._workCell.getBgColorMode(),_e=!!this._workCell.isInverse();if(_e){var xe=oe;oe=ue,ue=xe;var Ce=ae;ae=ye,ye=Ce}switch(ae){case 16777216:case 33554432:this._workCell.isBold()&&oe<8&&this._optionsService.options.drawBoldTextInBrightColors&&(oe+=8),this._applyMinimumContrast(te,this._colors.background,this._colors.ansi[oe])||te.classList.add("xterm-fg-"+oe);break;case 50331648:var Be=fe.rgba.toColor(oe>>16&255,oe>>8&255,255&oe);this._applyMinimumContrast(te,this._colors.background,Be)||this._addStyle(te,"color:#"+ie(oe.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(te,this._colors.background,this._colors.foreground)||_e&&te.classList.add("xterm-fg-"+ge.INVERTED_DEFAULT_COLOR)}switch(ye){case 16777216:case 33554432:te.classList.add("xterm-bg-"+ue);break;case 50331648:this._addStyle(te,"background-color:#"+ie(ue.toString(16),"0",6));break;case 0:default:_e&&te.classList.add("xterm-bg-"+ge.INVERTED_DEFAULT_COLOR)}y.appendChild(te)}}return y},de.prototype._applyMinimumContrast=function(le,ce,se){if(this._optionsService.options.minimumContrastRatio===1)return!1;var me=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return me===void 0&&(me=fe.color.ensureContrastRatio(ce,se,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,me!=null?me:null)),!!me&&(this._addStyle(le,"color:"+me.css),!0)},de.prototype._addStyle=function(le,ce){le.setAttribute("style",""+(le.getAttribute("style")||"")+ce+";")},de}();function ie(de,le,ce){for(;de.length<ce;)de=le+de;return de}ee.DomRendererRowFactory=pe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.evaluateKeyboardEvent=void 0;var ge=z(12),be={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};ee.evaluateKeyboardEvent=function(ve,fe,pe,ie){var de={type:0,cancel:!1,key:void 0},le=(ve.shiftKey?1:0)|(ve.altKey?2:0)|(ve.ctrlKey?4:0)|(ve.metaKey?8:0);switch(ve.keyCode){case 0:ve.key==="UIKeyInputUpArrow"?de.key=fe?ge.C0.ESC+"OA":ge.C0.ESC+"[A":ve.key==="UIKeyInputLeftArrow"?de.key=fe?ge.C0.ESC+"OD":ge.C0.ESC+"[D":ve.key==="UIKeyInputRightArrow"?de.key=fe?ge.C0.ESC+"OC":ge.C0.ESC+"[C":ve.key==="UIKeyInputDownArrow"&&(de.key=fe?ge.C0.ESC+"OB":ge.C0.ESC+"[B");break;case 8:if(ve.shiftKey){de.key=ge.C0.BS;break}if(ve.altKey){de.key=ge.C0.ESC+ge.C0.DEL;break}de.key=ge.C0.DEL;break;case 9:if(ve.shiftKey){de.key=ge.C0.ESC+"[Z";break}de.key=ge.C0.HT,de.cancel=!0;break;case 13:de.key=ve.altKey?ge.C0.ESC+ge.C0.CR:ge.C0.CR,de.cancel=!0;break;case 27:de.key=ge.C0.ESC,ve.altKey&&(de.key=ge.C0.ESC+ge.C0.ESC),de.cancel=!0;break;case 37:if(ve.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"D",de.key===ge.C0.ESC+"[1;3D"&&(de.key=ge.C0.ESC+(pe?"b":"[1;5D"))):de.key=fe?ge.C0.ESC+"OD":ge.C0.ESC+"[D";break;case 39:if(ve.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"C",de.key===ge.C0.ESC+"[1;3C"&&(de.key=ge.C0.ESC+(pe?"f":"[1;5C"))):de.key=fe?ge.C0.ESC+"OC":ge.C0.ESC+"[C";break;case 38:if(ve.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"A",pe||de.key!==ge.C0.ESC+"[1;3A"||(de.key=ge.C0.ESC+"[1;5A")):de.key=fe?ge.C0.ESC+"OA":ge.C0.ESC+"[A";break;case 40:if(ve.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"B",pe||de.key!==ge.C0.ESC+"[1;3B"||(de.key=ge.C0.ESC+"[1;5B")):de.key=fe?ge.C0.ESC+"OB":ge.C0.ESC+"[B";break;case 45:ve.shiftKey||ve.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":fe?ge.C0.ESC+"OH":ge.C0.ESC+"[H";break;case 35:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"F":fe?ge.C0.ESC+"OF":ge.C0.ESC+"[F";break;case 33:ve.shiftKey?de.type=2:de.key=ge.C0.ESC+"[5~";break;case 34:ve.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(!ve.ctrlKey||ve.shiftKey||ve.altKey||ve.metaKey)if(pe&&!ie||!ve.altKey||ve.metaKey)pe&&!ve.altKey&&!ve.ctrlKey&&ve.metaKey?ve.keyCode===65&&(de.type=1):ve.key&&!ve.ctrlKey&&!ve.altKey&&!ve.metaKey&&ve.keyCode>=48&&ve.key.length===1?de.key=ve.key:ve.key&&ve.ctrlKey&&ve.key==="_"&&(de.key=ge.C0.US);else{var ce=be[ve.keyCode],se=ce&&ce[ve.shiftKey?1:0];if(se)de.key=ge.C0.ESC+se;else if(ve.keyCode>=65&&ve.keyCode<=90){var me=ve.ctrlKey?ve.keyCode-64:ve.keyCode+32;de.key=ge.C0.ESC+String.fromCharCode(me)}}else ve.keyCode>=65&&ve.keyCode<=90?de.key=String.fromCharCode(ve.keyCode-64):ve.keyCode===32?de.key=ge.C0.NUL:ve.keyCode>=51&&ve.keyCode<=55?de.key=String.fromCharCode(ve.keyCode-51+27):ve.keyCode===56?de.key=ge.C0.DEL:ve.keyCode===219?de.key=ge.C0.ESC:ve.keyCode===220?de.key=ge.C0.FS:ve.keyCode===221&&(de.key=ge.C0.GS)}return de}},function(We,ee,z){"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)}),ve=this&&this.__decorate||function(ne,a,y,E){var b,x=arguments.length,te=x<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,y):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(ne,a,y,E);else for(var oe=ne.length-1;oe>=0;oe--)(b=ne[oe])&&(te=(x<3?b(te):x>3?b(a,y,te):b(a,y))||te);return x>3&&te&&Object.defineProperty(a,y,te),te},fe=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderService=void 0;var pe=z(31),ie=z(0),de=z(2),le=z(32),ce=z(7),se=z(1),me=z(5),re=function(ne){function a(y,E,b,x,te,oe){var ae=ne.call(this)||this;if(ae._renderer=y,ae._rowCount=E,ae._isPaused=!1,ae._needsFullRefresh=!1,ae._isNextRenderRedrawOnly=!0,ae._needsSelectionRefresh=!1,ae._canvasWidth=0,ae._canvasHeight=0,ae._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ae._onDimensionsChange=new ie.EventEmitter,ae._onRender=new ie.EventEmitter,ae._onRefreshRequest=new ie.EventEmitter,ae.register({dispose:function(){return ae._renderer.dispose()}}),ae._renderDebouncer=new pe.RenderDebouncer(function(ye,_e){return ae._renderRows(ye,_e)}),ae.register(ae._renderDebouncer),ae._screenDprMonitor=new le.ScreenDprMonitor,ae._screenDprMonitor.setListener(function(){return ae.onDevicePixelRatioChange()}),ae.register(ae._screenDprMonitor),ae.register(oe.onResize(function(ye){return ae._fullRefresh()})),ae.register(x.onOptionChange(function(){return ae._renderer.onOptionsChanged()})),ae.register(te.onCharSizeChange(function(){return ae.onCharSizeChanged()})),ae._renderer.onRequestRedraw(function(ye){return ae.refreshRows(ye.start,ye.end,!0)}),ae.register(ce.addDisposableDomListener(window,"resize",function(){return ae.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ue=new IntersectionObserver(function(ye){return ae._onIntersectionChange(ye[ye.length-1])},{threshold:0});ue.observe(b),ae.register({dispose:function(){return ue.disconnect()}})}return ae}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=ve([fe(3,se.IOptionsService),fe(4,me.ICharSizeService),fe(5,se.IBufferService)],a)}(de.Disposable);ee.RenderService=re},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(de,le,ce,se){var me,re=arguments.length,ne=re<3?le:se===null?se=Object.getOwnPropertyDescriptor(le,ce):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,ce,se);else for(var a=de.length-1;a>=0;a--)(me=de[a])&&(ne=(re<3?me(ne):re>3?me(le,ce,ne):me(le,ce))||ne);return re>3&&ne&&Object.defineProperty(le,ce,ne),ne},be=this&&this.__param||function(de,le){return function(ce,se){le(ce,se,de)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharSizeService=void 0;var ve=z(1),fe=z(0),pe=function(){function de(le,ce,se){this._optionsService=se,this.width=0,this.height=0,this._onCharSizeChange=new fe.EventEmitter,this._measureStrategy=new ie(le,ce,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,ve.IOptionsService)],de)}();ee.CharSizeService=pe;var ie=function(){function de(le,ce,se){this._document=le,this._parentElement=ce,this._optionsService=se,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return 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(We,ee,z){"use strict";var ge=this&&this.__decorate||function(ie,de,le,ce){var se,me=arguments.length,re=me<3?de:ce===null?ce=Object.getOwnPropertyDescriptor(de,le):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ie,de,le,ce);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(re=(me<3?se(re):me>3?se(de,le,re):se(de,le))||re);return me>3&&re&&Object.defineProperty(de,le,re),re},be=this&&this.__param||function(ie,de){return function(le,ce){de(le,ce,ie)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseService=void 0;var ve=z(5),fe=z(30),pe=function(){function ie(de,le){this._renderService=de,this._charSizeService=le}return ie.prototype.getCoords=function(de,le,ce,se,me){return fe.getCoords(de,le,ce,se,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,me)},ie.prototype.getRawByteCoords=function(de,le,ce,se){var me=this.getCoords(de,le,ce,se);return fe.getRawByteCoords(me)},ie=ge([be(0,ve.IRenderService),be(1,ve.ICharSizeService)],ie)}();ee.MouseService=pe},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(se,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ge(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},fe=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Linkifier2=void 0;var pe=z(1),ie=z(0),de=z(2),le=z(7),ce=function(se){function me(re){var ne=se.call(this)||this;return ne._bufferService=re,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(me,se),Object.defineProperty(me.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),me.prototype.registerLinkProvider=function(re){var ne=this;return this._linkProviders.push(re),{dispose:function(){var a=ne._linkProviders.indexOf(re);a!==-1&&ne._linkProviders.splice(a,1)}}},me.prototype.attachToDom=function(re,ne,a){var y=this;this._element=re,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)))},me.prototype._onMouseMove=function(re){if(this._lastMouseEvent=re,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=re.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)}}},me.prototype._onHover=function(re){if(this._activeLine!==re.y)return this._clearCurrentLink(),void this._askForLink(re,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,re)||(this._clearCurrentLink(),this._askForLink(re,!0))},me.prototype._askForLink=function(re,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=re.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,re,y)):E.provideLinks(re.y,function(te){var oe,ae;if(!a._isMouseOut){var ue=te==null?void 0:te.map(function(ye){return{link:ye}});(oe=a._activeProviderReplies)===null||oe===void 0||oe.set(b,ue),y=a._checkLinkProviderResult(b,re,y),((ae=a._activeProviderReplies)===null||ae===void 0?void 0:ae.size)===a._linkProviders.length&&a._removeIntersectingLinks(re.y,a._activeProviderReplies)}})})},me.prototype._removeIntersectingLinks=function(re,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],te=x.link.range.start.y<re?0:x.link.range.start.x,oe=x.link.range.end.y>re?this._bufferService.cols:x.link.range.end.x,ae=te;ae<=oe;ae++){if(a.has(ae)){E.splice(b--,1);break}a.add(ae)}}},me.prototype._checkLinkProviderResult=function(re,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(re),x=!1,te=0;te<re;te++)this._activeProviderReplies.has(te)&&!this._activeProviderReplies.get(te)||(x=!0);if(!x&&b){var oe=b.find(function(ue){return E._linkAtPosition(ue.link,ne)});oe&&(a=!0,this._handleNewLink(oe))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(te=0;te<this._activeProviderReplies.size;te++){var ae=(y=this._activeProviderReplies.get(te))===null||y===void 0?void 0:y.find(function(ue){return E._linkAtPosition(ue.link,ne)});if(ae){a=!0,this._handleNewLink(ae);break}}return a},me.prototype._onClick=function(re){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(re,this._currentLink.link.text)}},me.prototype._clearCurrentLink=function(re,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!re||!ne||this._currentLink.link.range.start.y>=re&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,de.disposeArray(this._linkCacheDisposables))},me.prototype._handleNewLink=function(re){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(re.link,a)&&(this._currentLink=re,this._currentLink.state={decorations:{underline:re.link.decorations===void 0||re.link.decorations.underline,pointerCursor:re.link.decorations===void 0||re.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,re.link,this._lastMouseEvent),re.link.decorations={},Object.defineProperties(re.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(re.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)})))}},me.prototype._linkHover=function(re,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&&re.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},me.prototype._fireUnderlineEvent=function(re,ne){var a=re.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)},me.prototype._linkLeave=function(re,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&&re.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},me.prototype._linkAtPosition=function(re,ne){var a=re.range.start.y===re.range.end.y,y=re.range.start.y<ne.y,E=re.range.end.y>ne.y;return(a&&re.range.start.x<=ne.x&&re.range.end.x>=ne.x||y&&re.range.end.x>=ne.x||E&&re.range.start.x<=ne.x||y&&E)&&re.range.start.y<=ne.y&&re.range.end.y>=ne.y},me.prototype._positionFromMouseEvent=function(re,ne,a){var y=a.getCoords(re,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},me.prototype._createLinkUnderlineEvent=function(re,ne,a,y,E){return{x1:re,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},me=ve([fe(0,pe.IBufferService)],me)}(de.Disposable);ee.Linkifier2=ce},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreBrowserService=void 0;var ge=function(){function be(ve){this._textarea=ve}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();ee.CoreBrowserService=ge},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(te,oe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ue){ae.__proto__=ue}||function(ae,ue){for(var ye in ue)ue.hasOwnProperty(ye)&&(ae[ye]=ue[ye])})(te,oe)},function(te,oe){function ae(){this.constructor=te}ge(te,oe),te.prototype=oe===null?Object.create(oe):(ae.prototype=oe.prototype,new ae)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreTerminal=void 0;var ve=z(2),fe=z(1),pe=z(66),ie=z(67),de=z(68),le=z(74),ce=z(75),se=z(0),me=z(76),re=z(77),ne=z(78),a=z(80),y=z(81),E=z(19),b=z(82),x=function(te){function oe(ae){var ue=te.call(this)||this;return ue._onBinary=new se.EventEmitter,ue._onData=new se.EventEmitter,ue._onLineFeed=new se.EventEmitter,ue._onResize=new se.EventEmitter,ue._onScroll=new se.EventEmitter,ue._instantiationService=new pe.InstantiationService,ue.optionsService=new le.OptionsService(ae),ue._instantiationService.setService(fe.IOptionsService,ue.optionsService),ue._bufferService=ue.register(ue._instantiationService.createInstance(de.BufferService)),ue._instantiationService.setService(fe.IBufferService,ue._bufferService),ue._logService=ue._instantiationService.createInstance(ie.LogService),ue._instantiationService.setService(fe.ILogService,ue._logService),ue._coreService=ue.register(ue._instantiationService.createInstance(ce.CoreService,function(){return ue.scrollToBottom()})),ue._instantiationService.setService(fe.ICoreService,ue._coreService),ue._coreMouseService=ue._instantiationService.createInstance(me.CoreMouseService),ue._instantiationService.setService(fe.ICoreMouseService,ue._coreMouseService),ue._dirtyRowService=ue._instantiationService.createInstance(re.DirtyRowService),ue._instantiationService.setService(fe.IDirtyRowService,ue._dirtyRowService),ue.unicodeService=ue._instantiationService.createInstance(ne.UnicodeService),ue._instantiationService.setService(fe.IUnicodeService,ue.unicodeService),ue._charsetService=ue._instantiationService.createInstance(a.CharsetService),ue._instantiationService.setService(fe.ICharsetService,ue._charsetService),ue._inputHandler=new E.InputHandler(ue._bufferService,ue._charsetService,ue._coreService,ue._dirtyRowService,ue._logService,ue.optionsService,ue._coreMouseService,ue.unicodeService),ue.register(se.forwardEvent(ue._inputHandler.onLineFeed,ue._onLineFeed)),ue.register(ue._inputHandler),ue.register(se.forwardEvent(ue._bufferService.onResize,ue._onResize)),ue.register(se.forwardEvent(ue._coreService.onData,ue._onData)),ue.register(se.forwardEvent(ue._coreService.onBinary,ue._onBinary)),ue.register(ue.optionsService.onOptionChange(function(ye){return ue._updateOptions(ye)})),ue._writeBuffer=new b.WriteBuffer(function(ye){return ue._inputHandler.parse(ye)}),ue}return be(oe,te),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){var ae;this._isDisposed||(te.prototype.dispose.call(this),(ae=this._windowsMode)===null||ae===void 0||ae.dispose(),this._windowsMode=void 0)},oe.prototype.write=function(ae,ue){this._writeBuffer.write(ae,ue)},oe.prototype.writeSync=function(ae){this._writeBuffer.writeSync(ae)},oe.prototype.resize=function(ae,ue){isNaN(ae)||isNaN(ue)||(ae=Math.max(ae,de.MINIMUM_COLS),ue=Math.max(ue,de.MINIMUM_ROWS),this._bufferService.resize(ae,ue))},oe.prototype.scroll=function(ae,ue){ue===void 0&&(ue=!1);var ye,_e=this._bufferService.buffer;(ye=this._cachedBlankLine)&&ye.length===this.cols&&ye.getFg(0)===ae.fg&&ye.getBg(0)===ae.bg||(ye=_e.getBlankLine(ae,ue),this._cachedBlankLine=ye),ye.isWrapped=ue;var xe=_e.ybase+_e.scrollTop,Ce=_e.ybase+_e.scrollBottom;if(_e.scrollTop===0){var Be=_e.lines.isFull;Ce===_e.lines.length-1?Be?_e.lines.recycle().copyFrom(ye):_e.lines.push(ye.clone()):_e.lines.splice(Ce+1,0,ye.clone()),Be?this._bufferService.isUserScrolling&&(_e.ydisp=Math.max(_e.ydisp-1,0)):(_e.ybase++,this._bufferService.isUserScrolling||_e.ydisp++)}else{var Me=Ce-xe+1;_e.lines.shiftElements(xe+1,Me-1,-1),_e.lines.set(Ce,ye.clone())}this._bufferService.isUserScrolling||(_e.ydisp=_e.ybase),this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom),this._onScroll.fire(_e.ydisp)},oe.prototype.scrollLines=function(ae,ue){var ye=this._bufferService.buffer;if(ae<0){if(ye.ydisp===0)return;this._bufferService.isUserScrolling=!0}else ae+ye.ydisp>=ye.ybase&&(this._bufferService.isUserScrolling=!1);var _e=ye.ydisp;ye.ydisp=Math.max(Math.min(ye.ydisp+ae,ye.ybase),0),_e!==ye.ydisp&&(ue||this._onScroll.fire(ye.ydisp))},oe.prototype.scrollPages=function(ae){this.scrollLines(ae*(this.rows-1))},oe.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},oe.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},oe.prototype.scrollToLine=function(ae){var ue=ae-this._bufferService.buffer.ydisp;ue!==0&&this.scrollLines(ue)},oe.prototype.addEscHandler=function(ae,ue){return this._inputHandler.addEscHandler(ae,ue)},oe.prototype.addDcsHandler=function(ae,ue){return this._inputHandler.addDcsHandler(ae,ue)},oe.prototype.addCsiHandler=function(ae,ue){return this._inputHandler.addCsiHandler(ae,ue)},oe.prototype.addOscHandler=function(ae,ue){return this._inputHandler.addOscHandler(ae,ue)},oe.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},oe.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},oe.prototype._updateOptions=function(ae){var ue;switch(ae){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ue=this._windowsMode)===null||ue===void 0||ue.dispose(),this._windowsMode=void 0)}},oe.prototype._enableWindowsMode=function(){var ae=this;if(!this._windowsMode){var ue=[];ue.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ue.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(ae._bufferService),!1})),this._windowsMode={dispose:function(){for(var ye=0,_e=ue;ye<_e.length;ye++)_e[ye].dispose()}}}},oe}(ve.Disposable);ee.CoreTerminal=x},function(We,ee,z){"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 ce=Array(ie),se=0;for(de=0;de<le;de++)for(var me=arguments[de],re=0,ne=me.length;re<ne;re++,se++)ce[se]=me[re];return ce};Object.defineProperty(ee,"__esModule",{value:!0}),ee.InstantiationService=ee.ServiceCollection=void 0;var be=z(1),ve=z(14),fe=function(){function ie(){for(var de=[],le=0;le<arguments.length;le++)de[le]=arguments[le];this._entries=new Map;for(var ce=0,se=de;ce<se.length;ce++){var me=se[ce],re=me[0],ne=me[1];this.set(re,ne)}}return ie.prototype.set=function(de,le){var ce=this._entries.get(de);return this._entries.set(de,le),ce},ie.prototype.forEach=function(de){this._entries.forEach(function(le,ce){return de(ce,le)})},ie.prototype.has=function(de){return this._entries.has(de)},ie.prototype.get=function(de){return this._entries.get(de)},ie}();ee.ServiceCollection=fe;var pe=function(){function ie(){this._services=new fe,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=[],ce=1;ce<arguments.length;ce++)le[ce-1]=arguments[ce];for(var se=ve.getServiceDependencies(de).sort(function(b,x){return b.index-x.index}),me=[],re=0,ne=se;re<ne.length;re++){var a=ne[re],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+de.name+" depends on UNKNOWN service "+a.id+".");me.push(y)}var E=se.length>0?se[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,me))))},ie}();ee.InstantiationService=pe},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(le,ce,se,me){var re,ne=arguments.length,a=ne<3?ce:me===null?me=Object.getOwnPropertyDescriptor(ce,se):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(le,ce,se,me);else for(var y=le.length-1;y>=0;y--)(re=le[y])&&(a=(ne<3?re(a):ne>3?re(ce,se,a):re(ce,se))||a);return ne>3&&a&&Object.defineProperty(ce,se,a),a},be=this&&this.__param||function(le,ce){return function(se,me){ce(se,me,le)}},ve=this&&this.__spreadArrays||function(){for(var le=0,ce=0,se=arguments.length;ce<se;ce++)le+=arguments[ce].length;var me=Array(le),re=0;for(ce=0;ce<se;ce++)for(var ne=arguments[ce],a=0,y=ne.length;a<y;a++,re++)me[re]=ne[a];return me};Object.defineProperty(ee,"__esModule",{value:!0}),ee.LogService=ee.LogLevel=void 0;var fe,pe=z(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"})(fe=ee.LogLevel||(ee.LogLevel={}));var ie={debug:fe.DEBUG,info:fe.INFO,warn:fe.WARN,error:fe.ERROR,off:fe.OFF},de=function(){function le(ce){var se=this;this._optionsService=ce,this._updateLogLevel(),this._optionsService.onOptionChange(function(me){me==="logLevel"&&se._updateLogLevel()})}return le.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},le.prototype._evalLazyOptionalParams=function(ce){for(var se=0;se<ce.length;se++)typeof ce[se]=="function"&&(ce[se]=ce[se]())},le.prototype._log=function(ce,se,me){this._evalLazyOptionalParams(me),ce.call.apply(ce,ve([console,"xterm.js: "+se],me))},le.prototype.debug=function(ce){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=fe.DEBUG&&this._log(console.log,ce,se)},le.prototype.info=function(ce){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=fe.INFO&&this._log(console.info,ce,se)},le.prototype.warn=function(ce){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=fe.WARN&&this._log(console.warn,ce,se)},le.prototype.error=function(ce){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=fe.ERROR&&this._log(console.error,ce,se)},le=ge([be(0,pe.IOptionsService)],le)}();ee.LogService=de},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(se,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}ge(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},fe=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferService=ee.MINIMUM_ROWS=ee.MINIMUM_COLS=void 0;var pe=z(1),ie=z(69),de=z(0),le=z(2);ee.MINIMUM_COLS=2,ee.MINIMUM_ROWS=1;var ce=function(se){function me(re){var ne=se.call(this)||this;return ne._optionsService=re,ne.isUserScrolling=!1,ne._onResize=new de.EventEmitter,ne.cols=Math.max(re.options.cols,ee.MINIMUM_COLS),ne.rows=Math.max(re.options.rows,ee.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(re,ne),ne}return be(me,se),Object.defineProperty(me.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),me.prototype.dispose=function(){se.prototype.dispose.call(this),this.buffers.dispose()},me.prototype.resize=function(re,ne){this.cols=re,this.rows=ne,this.buffers.resize(re,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:re,rows:ne})},me.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},me=ve([fe(0,pe.IOptionsService)],me)}(le.Disposable);ee.BufferService=ce},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(ie,de){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ce){le.__proto__=ce}||function(le,ce){for(var se in ce)ce.hasOwnProperty(se)&&(le[se]=ce[se])})(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(ee,"__esModule",{value:!0}),ee.BufferSet=void 0;var ve=z(70),fe=z(0),pe=function(ie){function de(le,ce){var se=ie.call(this)||this;return se._onBufferActivate=se.register(new fe.EventEmitter),se._normal=new ve.Buffer(!0,le,ce),se._normal.fillViewportRows(),se._alt=new ve.Buffer(!1,le,ce),se._activeBuffer=se._normal,se.setupTabStops(),se}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,ce){this._normal.resize(le,ce),this._alt.resize(le,ce)},de.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},de}(z(2).Disposable);ee.BufferSet=pe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferStringIterator=ee.Buffer=ee.MAX_BUFFER_SIZE=void 0;var ge=z(71),be=z(16),ve=z(4),fe=z(3),pe=z(72),ie=z(73),de=z(20),le=z(6);ee.MAX_BUFFER_SIZE=4294967295;var ce=function(){function me(re,ne,a){this._hasScrollback=re,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=ve.CellData.fromCharData([0,fe.NULL_CELL_CHAR,fe.NULL_CELL_WIDTH,fe.NULL_CELL_CODE]),this._whitespaceCell=ve.CellData.fromCharData([0,fe.WHITESPACE_CELL_CHAR,fe.WHITESPACE_CELL_WIDTH,fe.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 me.prototype.getNullCell=function(re){return re?(this._nullCell.fg=re.fg,this._nullCell.bg=re.bg,this._nullCell.extended=re.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new le.ExtendedAttrs),this._nullCell},me.prototype.getWhitespaceCell=function(re){return re?(this._whitespaceCell.fg=re.fg,this._whitespaceCell.bg=re.bg,this._whitespaceCell.extended=re.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new le.ExtendedAttrs),this._whitespaceCell},me.prototype.getBlankLine=function(re,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(re),ne)},Object.defineProperty(me.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"isCursorInViewport",{get:function(){var re=this.ybase+this.y-this.ydisp;return re>=0&&re<this._rows},enumerable:!1,configurable:!0}),me.prototype._getCorrectBufferLength=function(re){if(!this._hasScrollback)return re;var ne=re+this._optionsService.options.scrollback;return ne>ee.MAX_BUFFER_SIZE?ee.MAX_BUFFER_SIZE:ne},me.prototype.fillViewportRows=function(re){if(this.lines.length===0){re===void 0&&(re=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(re))}},me.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()},me.prototype.resize=function(re,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<re)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,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(re,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(re,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 te=this.lines.length-y;te>0&&(this.lines.trimStart(te),this.ybase=Math.max(this.ybase-te,0),this.ydisp=Math.max(this.ydisp-te,0),this.savedY=Math.max(this.savedY-te,0)),this.lines.maxLength=y}this.x=Math.min(this.x,re-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,re-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(re,ne),this._cols>re))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);this._cols=re,this._rows=ne},Object.defineProperty(me.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),me.prototype._reflow=function(re,ne){this._cols!==re&&(re>this._cols?this._reflowLarger(re,ne):this._reflowSmaller(re,ne))},me.prototype._reflowLarger=function(re,ne){var a=pe.reflowLargerGetLinesToRemove(this.lines,this._cols,re,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(a.length>0){var y=pe.reflowLargerCreateNewLayout(this.lines,a);pe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(re,ne,y.countRemoved)}},me.prototype._reflowLargerAdjustViewport=function(re,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(re,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},me.prototype._reflowSmaller=function(re,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()<=re)){for(var te=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),te.unshift(x);var oe=this.ybase+this.y;if(!(oe>=b&&oe<b+te.length)){var ae=te[te.length-1].getTrimmedLength(),ue=pe.reflowSmallerGetNewLineLengths(te,this._cols,re),ye=ue.length-te.length,_e=void 0;_e=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ye):Math.max(0,this.lines.length-this.lines.maxLength+ye);for(var xe=[],Ce=0;Ce<ye;Ce++){var Be=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);xe.push(Be)}xe.length>0&&(y.push({start:b+te.length+E,newLines:xe}),E+=xe.length),te.push.apply(te,xe);var Me=ue.length-1,mt=ue[Me];mt===0&&(mt=ue[--Me]);for(var Qe=te.length-ye-1,pt=ae;Qe>=0;){var Ae=Math.min(pt,mt);if(te[Me].copyCellsFrom(te[Qe],pt-Ae,mt-Ae,Ae,!0),(mt-=Ae)===0&&(mt=ue[--Me]),(pt-=Ae)===0){Qe--;var De=Math.max(Qe,0);pt=pe.getWrappedLineTrimmedLength(te,De,this._cols)}}for(Ce=0;Ce<te.length;Ce++)ue[Ce]<re&&te[Ce].setCell(ue[Ce],a);for(var Fe=ye-_e;Fe-- >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+ye,this.ybase+ne-1)}}}if(y.length>0){var tt=[],Ve=[];for(Ce=0;Ce<this.lines.length;Ce++)Ve.push(this.lines.get(Ce));var Ct=this.lines.length,Mt=Ct-1,en=0,nn=y[en];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var it=0;for(Ce=Math.min(this.lines.maxLength-1,Ct+E-1);Ce>=0;Ce--)if(nn&&nn.start>Mt+it){for(var ct=nn.newLines.length-1;ct>=0;ct--)this.lines.set(Ce--,nn.newLines[ct]);Ce++,tt.push({index:Mt+1,amount:nn.newLines.length}),it+=nn.newLines.length,nn=y[++en]}else this.lines.set(Ce,Ve[Mt--]);var wt=0;for(Ce=tt.length-1;Ce>=0;Ce--)tt[Ce].index+=wt,this.lines.onInsertEmitter.fire(tt[Ce]),wt+=tt[Ce].amount;var Vt=Math.max(0,Ct+E-this.lines.maxLength);Vt>0&&this.lines.onTrimEmitter.fire(Vt)}},me.prototype.stringIndexToBufferIndex=function(re,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(re);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[fe.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[fe.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[re,b];re++}return[re,0]},me.prototype.translateBufferLineToString=function(re,ne,a,y){a===void 0&&(a=0);var E=this.lines.get(re);return E?E.translateToString(ne,a,y):""},me.prototype.getWrappedRangeForLine=function(re){for(var ne=re,a=re;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}},me.prototype.setupTabStops=function(re){for(re!=null?this.tabs[re]||(re=this.prevStop(re)):(this.tabs={},re=0);re<this._cols;re+=this._optionsService.options.tabStopWidth)this.tabs[re]=!0},me.prototype.prevStop=function(re){for(re==null&&(re=this.x);!this.tabs[--re]&&re>0;);return re>=this._cols?this._cols-1:re<0?0:re},me.prototype.nextStop=function(re){for(re==null&&(re=this.x);!this.tabs[++re]&&re<this._cols;);return re>=this._cols?this._cols-1:re<0?0:re},me.prototype.addMarker=function(re){var ne=this,a=new ie.Marker(re);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},me.prototype._removeMarker=function(re){this.markers.splice(this.markers.indexOf(re),1)},me.prototype.iterator=function(re,ne,a,y,E){return new se(this,re,ne,a,y,E)},me}();ee.Buffer=ce;var se=function(){function me(re,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=re.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=re,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 me.prototype.hasNext=function(){return this._current<this._endIndex},me.prototype.next=function(){var re=this._buffer.getWrappedRangeForLine(this._current);re.first<this._startIndex-this._startOverscan&&(re.first=this._startIndex-this._startOverscan),re.last>this._endIndex+this._endOverscan&&(re.last=this._endIndex+this._endOverscan),re.first=Math.max(re.first,0),re.last=Math.min(re.last,this._buffer.lines.length);for(var ne="",a=re.first;a<=re.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=re.last+1,{range:re,content:ne}},me}();ee.BufferStringIterator=se},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CircularList=void 0;var ge=z(0),be=function(){function ve(fe){this._maxLength=fe,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(ve.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"maxLength",{get:function(){return this._maxLength},set:function(fe){if(this._maxLength!==fe){for(var pe=new Array(fe),ie=0;ie<Math.min(fe,this.length);ie++)pe[ie]=this._array[this._getCyclicIndex(ie)];this._array=pe,this._maxLength=fe,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"length",{get:function(){return this._length},set:function(fe){if(fe>this._length)for(var pe=this._length;pe<fe;pe++)this._array[pe]=void 0;this._length=fe},enumerable:!1,configurable:!0}),ve.prototype.get=function(fe){return this._array[this._getCyclicIndex(fe)]},ve.prototype.set=function(fe,pe){this._array[this._getCyclicIndex(fe)]=pe},ve.prototype.push=function(fe){this._array[this._getCyclicIndex(this._length)]=fe,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},ve.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(ve.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),ve.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},ve.prototype.splice=function(fe,pe){for(var ie=[],de=2;de<arguments.length;de++)ie[de-2]=arguments[de];if(pe){for(var le=fe;le<this._length-pe;le++)this._array[this._getCyclicIndex(le)]=this._array[this._getCyclicIndex(le+pe)];this._length-=pe}for(le=this._length-1;le>=fe;le--)this._array[this._getCyclicIndex(le+ie.length)]=this._array[this._getCyclicIndex(le)];for(le=0;le<ie.length;le++)this._array[this._getCyclicIndex(fe+le)]=ie[le];if(this._length+ie.length>this._maxLength){var ce=this._length+ie.length-this._maxLength;this._startIndex+=ce,this._length=this._maxLength,this.onTrimEmitter.fire(ce)}else this._length+=ie.length},ve.prototype.trimStart=function(fe){fe>this._length&&(fe=this._length),this._startIndex+=fe,this._length-=fe,this.onTrimEmitter.fire(fe)},ve.prototype.shiftElements=function(fe,pe,ie){if(!(pe<=0)){if(fe<0||fe>=this._length)throw new Error("start argument out of range");if(fe+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var de=pe-1;de>=0;de--)this.set(fe+de+ie,this.get(fe+de));var le=fe+pe+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<pe;de++)this.set(fe+de+ie,this.get(fe+de))}},ve.prototype._getCyclicIndex=function(fe){return(this._startIndex+fe)%this._maxLength},ve}();ee.CircularList=be},function(We,ee,z){"use strict";function ge(be,ve,fe){if(ve===be.length-1)return be[ve].getTrimmedLength();var pe=!be[ve].hasContent(fe-1)&&be[ve].getWidth(fe-1)===1,ie=be[ve+1].getWidth(0)===2;return pe&&ie?fe-1:fe}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getWrappedLineTrimmedLength=ee.reflowSmallerGetNewLineLengths=ee.reflowLargerApplyNewLayout=ee.reflowLargerCreateNewLayout=ee.reflowLargerGetLinesToRemove=void 0,ee.reflowLargerGetLinesToRemove=function(be,ve,fe,pe,ie){for(var de=[],le=0;le<be.length-1;le++){var ce=le,se=be.get(++ce);if(se.isWrapped){for(var me=[be.get(le)];ce<be.length&&se.isWrapped;)me.push(se),se=be.get(++ce);if(pe>=le&&pe<ce)le+=me.length-1;else{for(var re=0,ne=ge(me,re,ve),a=1,y=0;a<me.length;){var E=ge(me,a,ve),b=E-y,x=fe-ne,te=Math.min(b,x);me[re].copyCellsFrom(me[a],y,ne,te,!1),(ne+=te)===fe&&(re++,ne=0),(y+=te)===E&&(a++,y=0),ne===0&&re!==0&&me[re-1].getWidth(fe-1)===2&&(me[re].copyCellsFrom(me[re-1],fe-1,ne++,1,!1),me[re-1].setCell(fe-1,ie))}me[re].replaceCells(ne,fe,ie);for(var oe=0,ae=me.length-1;ae>0&&(ae>re||me[ae].getTrimmedLength()===0);ae--)oe++;oe>0&&(de.push(le+me.length-oe),de.push(oe)),le+=me.length-1}}}return de},ee.reflowLargerCreateNewLayout=function(be,ve){for(var fe=[],pe=0,ie=ve[pe],de=0,le=0;le<be.length;le++)if(ie===le){var ce=ve[++pe];be.onDeleteEmitter.fire({index:le-de,amount:ce}),le+=ce-1,de+=ce,ie=ve[++pe]}else fe.push(le);return{layout:fe,countRemoved:de}},ee.reflowLargerApplyNewLayout=function(be,ve){for(var fe=[],pe=0;pe<ve.length;pe++)fe.push(be.get(ve[pe]));for(pe=0;pe<fe.length;pe++)be.set(pe,fe[pe]);be.length=ve.length},ee.reflowSmallerGetNewLineLengths=function(be,ve,fe){for(var pe=[],ie=be.map(function(ne,a){return ge(be,a,ve)}).reduce(function(ne,a){return ne+a}),de=0,le=0,ce=0;ce<ie;){if(ie-ce<fe){pe.push(ie-ce);break}de+=fe;var se=ge(be,le,ve);de>se&&(de-=se,le++);var me=be[le].getWidth(de-1)===2;me&&de--;var re=me?fe-1:fe;pe.push(re),ce+=re}return pe},ee.getWrappedLineTrimmedLength=ge},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(pe,ie){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,le){de.__proto__=le}||function(de,le){for(var ce in le)le.hasOwnProperty(ce)&&(de[ce]=le[ce])})(pe,ie)},function(pe,ie){function de(){this.constructor=pe}ge(pe,ie),pe.prototype=ie===null?Object.create(ie):(de.prototype=ie.prototype,new de)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Marker=void 0;var ve=z(0),fe=function(pe){function ie(de){var le=pe.call(this)||this;return le.line=de,le._id=ie._nextId++,le.isDisposed=!1,le._onDispose=new ve.EventEmitter,le}return be(ie,pe),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}(z(2).Disposable);ee.Marker=fe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OptionsService=ee.DEFAULT_OPTIONS=ee.DEFAULT_BELL_SOUND=void 0;var ge=z(0),be=z(11),ve=z(33);ee.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ee.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ee.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:be.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var fe=["cols","rows"],pe=function(){function ie(de){this._onOptionChange=new ge.EventEmitter,this.options=ve.clone(ee.DEFAULT_OPTIONS);for(var le=0,ce=Object.keys(de);le<ce.length;le++){var se=ce[le];if(se in this.options){var me=de[se];this.options[se]=me}}}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 ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');if(fe.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=ee.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 ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');return this.options[de]},ie}();ee.OptionsService=pe},function(We,ee,z){"use strict";var ge,be=this&&this.__extends||(ge=function(re,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])})(re,ne)},function(re,ne){function a(){this.constructor=re}ge(re,ne),re.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),ve=this&&this.__decorate||function(re,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(re,ne,a,y);else for(var te=re.length-1;te>=0;te--)(E=re[te])&&(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},fe=this&&this.__param||function(re,ne){return function(a,y){ne(a,y,re)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreService=void 0;var pe=z(1),ie=z(0),de=z(33),le=z(2),ce=Object.freeze({insertMode:!1}),se=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),me=function(re){function ne(a,y,E,b){var x=re.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(ce),x.decPrivateModes=de.clone(se),x}return be(ne,re),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(ce),this.decPrivateModes=de.clone(se)},ne.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),y&&this._onUserInput.fire(),this._logService.debug('sending data "'+a+'"',function(){return a.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(a)}},ne.prototype.triggerBinaryEvent=function(a){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+a+'"',function(){return a.split("").map(function(y){return y.charCodeAt(0)})}),this._onBinary.fire(a))},ne=ve([fe(1,pe.IBufferService),fe(2,pe.ILogService),fe(3,pe.IOptionsService)],ne)}(le.Disposable);ee.CoreService=me},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},be=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreMouseService=void 0;var ve=z(1),fe=z(0),pe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(se){return se.button!==4&&se.action===1&&(se.ctrl=!1,se.alt=!1,se.shift=!1,!0)}},VT200:{events:19,restrict:function(se){return se.action!==32}},DRAG:{events:23,restrict:function(se){return se.action!==32||se.button!==3}},ANY:{events:31,restrict:function(se){return!0}}};function ie(se,me){var re=(se.ctrl?16:0)|(se.shift?4:0)|(se.alt?8:0);return se.button===4?(re|=64,re|=se.action):(re|=3&se.button,4&se.button&&(re|=64),8&se.button&&(re|=128),se.action===32?re|=32:se.action!==0||me||(re|=3)),re}var de=String.fromCharCode,le={DEFAULT:function(se){var me=[ie(se,!1)+32,se.col+32,se.row+32];return me[0]>255||me[1]>255||me[2]>255?"":"\x1B[M"+de(me[0])+de(me[1])+de(me[2])},SGR:function(se){var me=se.action===0&&se.button!==4?"m":"M";return"\x1B[<"+ie(se,!0)+";"+se.col+";"+se.row+me}},ce=function(){function se(me,re){this._bufferService=me,this._coreService=re,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new fe.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(pe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,pe[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 se.prototype.addProtocol=function(me,re){this._protocols[me]=re},se.prototype.addEncoding=function(me,re){this._encodings[me]=re},Object.defineProperty(se.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(me){if(!this._protocols[me])throw new Error('unknown protocol "'+me+'"');this._activeProtocol=me,this._onProtocolChange.fire(this._protocols[me].events)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(me){if(!this._encodings[me])throw new Error('unknown encoding "'+me+'"');this._activeEncoding=me},enumerable:!1,configurable:!0}),se.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(se.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),se.prototype.triggerMouseEvent=function(me){if(me.col<0||me.col>=this._bufferService.cols||me.row<0||me.row>=this._bufferService.rows||me.button===4&&me.action===32||me.button===3&&me.action!==32||me.button!==4&&(me.action===2||me.action===3)||(me.col++,me.row++,me.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,me))||!this._protocols[this._activeProtocol].restrict(me))return!1;var re=this._encodings[this._activeEncoding](me);return re&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(re):this._coreService.triggerDataEvent(re,!0)),this._lastEvent=me,!0},se.prototype.explainEvents=function(me){return{down:!!(1&me),up:!!(2&me),drag:!!(4&me),move:!!(8&me),wheel:!!(16&me)}},se.prototype._compareEvents=function(me,re){return me.col===re.col&&me.row===re.row&&me.button===re.button&&me.action===re.action&&me.ctrl===re.ctrl&&me.alt===re.alt&&me.shift===re.shift},se=ge([be(0,ve.IBufferService),be(1,ve.ICoreService)],se)}();ee.CoreMouseService=ce},function(We,ee,z){"use strict";var ge=this&&this.__decorate||function(pe,ie,de,le){var ce,se=arguments.length,me=se<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(pe,ie,de,le);else for(var re=pe.length-1;re>=0;re--)(ce=pe[re])&&(me=(se<3?ce(me):se>3?ce(ie,de,me):ce(ie,de))||me);return se>3&&me&&Object.defineProperty(ie,de,me),me},be=this&&this.__param||function(pe,ie){return function(de,le){ie(de,le,pe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DirtyRowService=void 0;var ve=z(1),fe=function(){function pe(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(pe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),pe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},pe.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},pe.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)},pe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},pe=ge([be(0,ve.IBufferService)],pe)}();ee.DirtyRowService=fe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeService=void 0;var ge=z(0),be=z(79),ve=function(){function fe(){this._providers=Object.create(null),this._active="",this._onChange=new ge.EventEmitter;var pe=new be.UnicodeV6;this.register(pe),this._active=pe.version,this._activeProvider=pe}return Object.defineProperty(fe.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"activeVersion",{get:function(){return this._active},set:function(pe){if(!this._providers[pe])throw new Error('unknown Unicode version "'+pe+'"');this._active=pe,this._activeProvider=this._providers[pe],this._onChange.fire(pe)},enumerable:!1,configurable:!0}),fe.prototype.register=function(pe){this._providers[pe.version]=pe},fe.prototype.wcwidth=function(pe){return this._activeProvider.wcwidth(pe)},fe.prototype.getStringCellWidth=function(pe){for(var ie=0,de=pe.length,le=0;le<de;++le){var ce=pe.charCodeAt(le);if(55296<=ce&&ce<=56319){if(++le>=de)return ie+this.wcwidth(ce);var se=pe.charCodeAt(le);56320<=se&&se<=57343?ce=1024*(ce-55296)+se-56320+65536:ie+=this.wcwidth(se)}ie+=this.wcwidth(ce)}return ie},fe}();ee.UnicodeService=ve},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeV6=void 0;var ge,be=z(15),ve=[[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]],fe=[[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]],pe=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<ve.length;++de)be.fill(ge,0,ve[de][0],ve[de][1]+1)}}return ie.prototype.wcwidth=function(de){return de<32?0:de<127?1:de<65536?ge[de]:function(le,ce){var se,me=0,re=ce.length-1;if(le<ce[0][0]||le>ce[re][1])return!1;for(;re>=me;)if(le>ce[se=me+re>>1][1])me=se+1;else{if(!(le<ce[se][0]))return!0;re=se-1}return!1}(de,fe)?0:de>=131072&&de<=196605||de>=196608&&de<=262141?2:1},ie}();ee.UnicodeV6=pe},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.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(ve){this.glevel=ve,this.charset=this._charsets[ve]},be.prototype.setgCharset=function(ve,fe){this._charsets[ve]=fe,this.glevel===ve&&(this.charset=fe)},be}();ee.CharsetService=ge},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.updateWindowsModeWrappedState=void 0;var ge=z(3);ee.updateWindowsModeWrappedState=function(be){var ve=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),fe=ve==null?void 0:ve.get(be.cols-1),pe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);pe&&fe&&(pe.isWrapped=fe[ge.CHAR_DATA_CODE_INDEX]!==ge.NULL_CELL_CODE&&fe[ge.CHAR_DATA_CODE_INDEX]!==ge.WHITESPACE_CELL_CODE)}},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WriteBuffer=void 0;var ge=function(){function be(ve){this._action=ve,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(ve){if(this._writeBuffer.length){for(var fe=this._bufferOffset;fe<this._writeBuffer.length;++fe){var pe=this._writeBuffer[fe],ie=this._callbacks[fe];this._action(pe),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ve)},be.prototype.write=function(ve,fe){var pe=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 pe._innerWrite()})),this._pendingData+=ve.length,this._writeBuffer.push(ve),this._callbacks.push(fe)},be.prototype._innerWrite=function(){for(var ve=this,fe=Date.now();this._writeBuffer.length>this._bufferOffset;){var pe=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(pe),this._pendingData-=pe.length,ie&&ie(),Date.now()-fe>=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 ve._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();ee.WriteBuffer=ge},function(We,ee,z){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.AddonManager=void 0;var ge=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var ve=this._addons.length-1;ve>=0;ve--)this._addons[ve].instance.dispose()},be.prototype.loadAddon=function(ve,fe){var pe=this,ie={instance:fe,dispose:fe.dispose,isDisposed:!1};this._addons.push(ie),fe.dispose=function(){return pe._wrappedAddonDispose(ie)},fe.activate(ve)},be.prototype._wrappedAddonDispose=function(ve){if(!ve.isDisposed){for(var fe=-1,pe=0;pe<this._addons.length;pe++)if(this._addons[pe]===ve){fe=pe;break}if(fe===-1)throw new Error("Could not dispose an addon that has not been loaded");ve.isDisposed=!0,ve.dispose.apply(ve.instance),this._addons.splice(fe,1)}},be}();ee.AddonManager=ge}])})},62522:function(at){"use strict";at.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="},36459:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return z}});function z(ge){if(ge==null)throw new TypeError("Cannot destructure "+ge)}}}]);
|