(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},28575:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},18699:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},81893:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},55304:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},73148:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},56747:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},53555:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},50881:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},22751:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},34182:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},74664:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},32693:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},91034:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ae}});var te=ee(87462),ue=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,de=ee(74643),pe=function(le,fe){return ue.createElement(de.Z,(0,te.Z)({},le,{ref:fe,icon:ve}))},ae=ue.forwardRef(pe)},71736:function(ot,Ge){"use strict";Ge.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(ot,Ge){"use strict";Ge.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(ot,Ge,ee){"use strict";var te=ee(67294),ue=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(le,fe,se)=>fe in le?ue(le,fe,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[fe]=se,ae=(le,fe)=>{for(var se in fe||(fe={}))ve.call(fe,se)&&pe(le,se,fe[se]);if(be)for(var se of be(fe))de.call(fe,se)&&pe(le,se,fe[se]);return le};const he=le=>React.createElement("svg",ae({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"})));Ge.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(le,fe,se)=>fe in le?ue(le,fe,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[fe]=se,ae=(le,fe)=>{for(var se in fe||(fe={}))ve.call(fe,se)&&pe(le,se,fe[se]);if(be)for(var se of be(fe))de.call(fe,se)&&pe(le,se,fe[se]);return le};const he=le=>React.createElement("svg",ae({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"})));Ge.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function ot(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(ot.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(ot.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(ot.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(ot.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 ot))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.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 Ge=[];function ee(ne,a){var y=Ge.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function te(){var ne=Ge.pop();return ne===void 0?new go.Point:ne}function ue(ne){Ge.push(ne)}function be(ne,a,y,E,b,x,z,oe,ie){ie||(ie=new go.Point);var ce=ne-y,ye=b-z,_e=NaN,xe=NaN;if(ce===0)if(ye===0)ne===y&&(_e=ne,xe=a);else{var Ce=(x-oe)/ye,Te=x-Ce*b;_e=ne,xe=Ce*_e+Te}else if(ye===0){var Me=(a-E)/ce,pt=a-Me*ne;_e=b,xe=Me*_e+pt}else{var Me=(a-E)/ce,Ce=(x-oe)/ye,pt=a-Me*ne,Te=x-Ce*b;_e=(Te-pt)/(Me-Ce),xe=Me*_e+pt}return ie.x=_e,ie.y=xe,ie}function ve(ne,a,y,E,b,x,z,oe,ie,ce,ye,_e,xe,Ce){var Te=1-ie,Me=ie,pt=ne*Te+y*Me,Ve=a*Te+E*Me,gt=y*Te+b*Me,Ae=E*Te+x*Me,De=b*Te+z*Me,Ie=x*Te+oe*Me,tt=pt*Te+gt*Me,Ze=Ve*Te+Ae*Me,bt=gt*Te+De*Me,wt=Ae*Te+Ie*Me,Kt=tt*Te+bt*Me,Qt=Ze*Te+wt*Me;ce.x=pt,ce.y=Ve,ye.x=tt,ye.y=Ze,_e.x=Kt,_e.y=Qt,xe.x=bt,xe.y=wt,Ce.x=De,Ce.y=Ie}var de=new go.Spot(.156,.156),pe=new go.Spot(.844,.844),ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ot("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*ae,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=de,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,ae*a,0,a,(1-ae)*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,ae*y,(1-ae)*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,ae*y,ae*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-ae)*a,0,0,(1-ae)*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 ot("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())),ba&&(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.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())),ba&&(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())),ba&&(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())),b0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+oe,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=de,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 ot("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ot("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,oe=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,x,z,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ae/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 ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,oe=Math.atan2(y,a),ie=E-Math.min(Math.cos(oe)*E/2,x),ce=E-Math.min(Math.sin(oe)*E/2,z),b=new go.Geometry,ye=new go.PathFigure(ie,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-ie,0)),ye.add(new go.PathSegment(go.PathSegment.Line,a,ce)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ie,y)),ye.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,ie,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ot("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 ot("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 ot("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,ae*a,0,a,(.5-ae/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ae/2)*y,ae*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,oe=0,ie=x*ae;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+oe)*y,(.5-x+z)*a,(.5+ie+oe)*y,(.5-ie+z)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+oe)*y,(.5+ie+z)*a,(.5+x+oe)*y,(.5+x+z)*a,(.5+ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+oe)*y,(1-.5+x+z)*a,(.5-ie+oe)*y,(.5+ie+z)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ie+z)*a,(.5-x+oe)*y,(.5-x+z+.05)*a,(.5-ie+oe-.02)*y)),x=.2,z=0,oe=-.3,ie=x*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+oe)*y,(.5+ie+z)*a,(.5+x+oe)*y,(.5+x+z)*a,(.5+ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+oe)*y,(1-.5+x+z)*a,(.5-ie+oe)*y,(.5+ie+z)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+oe)*y,(.5-ie+z)*a,(.5-x+oe)*y,(.5-x+z)*a,(.5-ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+z)*a,(.5+x+oe)*y,(.5-x+z)*a,(.5+ie+oe)*y,(.5-ie+z)*a,(.5+x+oe)*y)),x=.2,z=-.3,oe=0,ie=x*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+oe)*y,(1-.5+x+z-.05)*a,(.5-ie+oe-.02)*y,(.5+ie+z)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+oe)*y,(.5-ie+z)*a,(.5-x+oe)*y,(.5-x+z)*a,(.5-ie+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+oe)*y,(.5-x+z)*a,(.5+ie+oe)*y,(.5-ie+z)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ie+z)*a,(.5+x+oe)*y,(.5+x+z)*a,(.5+ie+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,z=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,oe*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,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((z+x)*a,oe*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,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=ae*.5,x=.5,z=.5,oe=.5,ie=new go.PathFigure(z*a,(oe-x)*y);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),x=.4,b=ae*.4;var ce=te(),ye=te(),_e=te(),xe=te();ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.42,ce,ye,_e,xe,xe);var Ce=te(),Te=te(),Me=te();ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.58,xe,xe,Me,Ce,Te);var pt=te(),Ve=te(),gt=te();ve(z,oe+x,z-b,oe+x,z-x,oe+b,z-x,oe,.42,pt,Ve,gt,xe,xe);var Ae=te(),De=te(),Ie=te();return ve(z,oe+x,z-b,oe+x,z-x,oe+b,z-x,oe,.58,xe,xe,Ie,Ae,De),ie.add(new go.PathSegment(go.PathSegment.Move,Ie.x*a,Ie.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,Ae.x*a,Ae.y*y,De.x*a,De.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,_e.x*a,_e.y*y,ce.x*a,ce.y*y,ye.x*a,ye.y*y)),ie.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y).close()),ie.add(new go.PathSegment(go.PathSegment.Move,gt.x*a,gt.y*y)),ie.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,Ce.x*a,Ce.y*y,Te.x*a,Te.y*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,gt.x*a,gt.y*y,pt.x*a,pt.y*y,Ve.x*a,Ve.y*y).close()),ue(ce),ue(ye),ue(_e),ue(xe),ue(Ce),ue(Te),ue(Me),ue(pt),ue(Ve),ue(gt),ue(Ae),ue(De),ue(Ie),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 ot("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=ae*.4,x=.4,z=.5,oe=.5,ie=te(),ce=te(),ye=te(),_e=te(),xe=new go.PathFigure((z-x)*a,oe*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.44,ye,_e,ce,ie,ie),xe.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y));var Ce=ee(ce.x,ce.y);ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.56,ie,ie,ce,ye,_e);var Te=ee(ce.x,ce.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,(Te.x*.1+.9)*a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*a,(Te.y*.1+.05*.9)*y)),xe.add(new go.PathSegment(go.PathSegment.Line,Te.x*a,Te.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),x=.35,b=ae*.35;var Me=new go.PathFigure(z*a,(oe-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y));var pt=new go.PathFigure((z-x)*a,oe*y,!1);return E.add(pt),ue(ie),ue(ce),ue(ye),ue(_e),ue(Ce),ue(Te),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,oe=b*ae,ie=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+oe+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-oe+z)*y,(.5+oe+x)*a,(.5-b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-oe+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+oe+z)*y,(.5-oe+x)*a,(.5+b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,oe=b*ae;var ie=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+oe+z)*y,(.5+oe+x)*a,(.5+b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-oe+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-oe+z)*y,(.5-oe+x)*a,(.5-b+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+oe+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-oe+z)*y));var ie=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ie),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 ot("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ot("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,oe=(.5+b/2)*y,ie=new go.Geometry,ce=new go.PathFigure(0,z,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ie.spot1=new go.Spot(0,z/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,te());return ie.spot2=new go.Spot(ye.x,ye.y),ue(ye),ie}),go.Shape.setFigureParameter("Arrow2",0,new ot("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ot("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,oe=z+b,ie=new go.Geometry,ce=new go.PathFigure(0,z,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ie.spot1=new go.Spot(0,z/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,te());return ie.spot2=new go.Spot(ye.x,ye.y),ue(ye),ie}),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 ot("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.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 ie=be(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ie.x,ie.y),ie=be(.7,1,1,.5,0,x/y,1,x/y,ie),z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ot("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ot("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,oe=(y-b)/2,ie=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,oe=0,ie=y):(x=0,z=y,oe=0,ie=y));var ce=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ce.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,ie)),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,te());return ce.spot1=new go.Spot(_e.x,_e.y),_e=be(.7,ie/y,1,.5,0,z/y,1,z/y,_e),ce.spot2=new go.Spot(_e.x,_e.y),ue(_e),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new ot("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.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()),z.spot1=new go.Spot(0,b/y);var ie=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ot("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ot("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,oe=(y-b)/2,ie=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,oe=0,ie=y):(x=0,z=y,oe=0,ie=y));var ce=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ce.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,ie)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ie)),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()),ce.spot1=new go.Spot(0,x/y);var _e=be(.7,ie/y,1,.5,0,z/y,1,z/y,te());return ce.spot2=new go.Spot(_e.x,_e.y),ue(_e),ce}),go.Shape.setFigureParameter("Pointer",0,new ot("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=be(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ot("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=be(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ot("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.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()),z.spot1=new go.Spot(.2,.3);var ie=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ot("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);z.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()),z.spot1=new go.Spot(.2,b/y);var ie=be(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ie.x,ie.y),ue(ie),z}),go.Shape.setFigureParameter("SquareArrow",0,new ot("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=ae*.5,x=ae*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ae*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ae*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ae*E)),z.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-ae*E,(.5+x)*a,2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ae*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=ae*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ae*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ae*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ae*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-ae*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-ae*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=ae*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ae*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ae*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ae*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ae*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+ae*E,0,2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ae*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=ae*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ae*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ae*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ae*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ae*E,0)),z.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-ae*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-ae*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=ae*b,oe=ae*x,ie=.5,ce=.1,ye=new go.PathFigure(ie*a,(ce+x)*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-b)*a,ce*y,(ie-z)*a,(ce+x)*y,(ie-b)*a,(ce+oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-x)*y,(ie-b)*a,(ce-oe)*y,(ie-z)*a,(ce-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie+b)*a,ce*y,(ie+z)*a,(ce-x)*y,(ie+b)*a,(ce-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+x)*y,(ie+b)*a,(ce+oe)*y,(ie+z)*a,(ce+x)*y));var _e=.05,xe=ae*_e;ie=.05,ce=.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)),ie=.95,ce=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+_e)*a,ce*y,(ie+xe)*a,(ce-_e)*y,(ie+_e)*a,(ce-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=ae*_e,ie=.825,ce=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y,(ie+xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-_e)*a,ce*y,(ie-xe)*a,(ce-_e)*y,(ie-_e)*a,(ce-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=ae*_e,ie=.5,ce=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y,(ie+xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-_e)*a,ce*y,(ie-xe)*a,(ce-_e)*y,(ie-_e)*a,(ce-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=ae*_e,ie=.175,ce=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie+_e)*a,(ce-xe)*y,(ie+xe)*a,(ce-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-_e)*a,ce*y,(ie-xe)*a,(ce-_e)*y,(ie-_e)*a,(ce-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=ae*_e,ie=.05,ce=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-_e)*y,(ie-_e)*a,(ce-xe)*y,(ie-xe)*a,(ce-_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 ot("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var 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=ae*.5,x=ae*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var 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=ae*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var 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 z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var 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,z=ae*.5,oe=.5,ie=new go.PathFigure(a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,y,a,(oe+z)*y,(oe+z)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*y,(oe-z)*a,y,0,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,0,0,(oe-z)*y,(oe-z)*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,oe*y,(oe+z)*a,0,a,(oe-z)*y));var ce=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ce.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var 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=ae*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var 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 z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ae*.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=ae*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,x*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ie=new go.PathFigure(.8*a,.75*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ie.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=ae*.1,x=.1,z=.9,oe=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ce=new go.PathFigure((z+x)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe-x)*y,(z+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=ae*.5,x=ae*.4,z=ae*.1,oe=.1,ie=.9,ce=.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((ie+oe)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+oe)*y,(ie+oe)*a,(ce+z)*y,(ie+z)*a,(ce+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a,ce*y,(ie-z)*a,(ce+oe)*y,(ie-oe)*a,(ce+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-oe)*y,(ie-oe)*a,(ce-z)*y,(ie-z)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a,ce*y,(ie+z)*a,(ce-oe)*y,(ie+oe)*a,(ce-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*b,z=0,oe=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ae*.1,z=.9,oe=.5;var ce=new go.PathFigure((z-b)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-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=ae*b,z=0,oe=.5,ie=new go.PathFigure(0,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(oe-b)*y,.8*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(oe+x)*y,(z+x+x)*a,(oe+b)*y)),ie.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=ae*b,z=.2,oe=.5,ie=new go.PathFigure(.1*a,0,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.8*a,.5*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ae*.1,z=.9,oe=.5;var ye=new go.PathFigure((z-b)*a,oe*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-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=ae*b,z=.2,oe=.5,ie=new go.PathFigure(.1*a,0,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.2*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(oe-b)*y,.9*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ae*.1,x=.1,z=.1,oe=.5,ie=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ae*.5,x=.5,z=.5,oe=.5,ie=new go.PathFigure((z-x)*a,oe*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-x)*y,(z-x)*a,(oe-b)*y,(z-b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe-x)*y,(z+x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,oe*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,oe*y,z*a,(oe-x)*y,z*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 z=ae*.8,oe=.8,ie=0,ce=.5,ye=(b-a)/2,_e=(x-y)/2,xe=new go.PathFigure(ie*a+ye,(ce+oe)*y+_e,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a+ye,ce*y+_e,(ie-z)*a+ye,(ce+oe)*y+_e,(ie-oe)*a+ye,(ce+z)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie-oe)*a+ye,(ce-z)*y+_e,(ie-z)*a+ye,(ce-oe)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe+z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce-oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce-z)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce+z)*y+_e,ie*a+ye,(ce+oe)*y+_e).close()),z=ae*.4,oe=.4,ie=.2,ce=.5;var Ce=new go.PathFigure(ie*a+ye,(ce+oe)*y+_e,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a+ye,ce*y+_e,(ie-z)*a+ye,(ce+oe)*y+_e,(ie-oe)*a+ye,(ce+z)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie-oe)*a+ye,(ce-z)*y+_e,(ie-z)*a+ye,(ce-oe)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe+z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce-oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce-z)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie-oe+z*.5)*a+ye,(ce+z)*y+_e,ie*a+ye,(ce+oe)*y+_e).close()),z=ae*.2,oe=.2,ie=.5,ce=.5;var Te=new go.PathFigure((ie-oe)*a+ye,ce*y+_e,!0);E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie-oe)*a+ye,(ce-z)*y+_e,(ie-z)*a+ye,(ce-oe)*y+_e)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a+ye,ce*y+_e,(ie+z)*a+ye,(ce-oe)*y+_e,(ie+oe)*a+ye,(ce-z)*y+_e)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie+oe)*a+ye,(ce+z)*y+_e,(ie+z)*a+ye,(ce+oe)*y+_e)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*a+ye,ce*y+_e,(ie-z)*a+ye,(ce+oe)*y+_e,(ie-oe)*a+ye,(ce+z)*y+_e)),z=ae*.4,oe=.4,ie=.8,ce=.5;var Me=new go.PathFigure(ie*a+ye,(ce-oe)*y+_e,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a+ye,ce*y+_e,(ie+z)*a+ye,(ce-oe)*y+_e,(ie+oe)*a+ye,(ce-z)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie+oe)*a+ye,(ce+z)*y+_e,(ie+z)*a+ye,(ce+oe)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe-z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce+oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce+z)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce-z)*y+_e,ie*a+ye,(ce-oe)*y+_e).close()),z=ae*.8,oe=.8,ie=1,ce=.5;var pt=new go.PathFigure(ie*a+ye,(ce-oe)*y+_e,!0);return E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*a+ye,ce*y+_e,(ie+z)*a+ye,(ce-oe)*y+_e,(ie+oe)*a+ye,(ce-z)*y+_e)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce+oe)*y+_e,(ie+oe)*a+ye,(ce+z)*y+_e,(ie+z)*a+ye,(ce+oe)*y+_e)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe-z*.5)*a+ye,ce*y+_e,ie*a+ye,(ce+oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce+z)*y+_e)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+ye,(ce-oe)*y+_e,(ie+oe-z*.5)*a+ye,(ce-z)*y+_e,ie*a+ye,(ce-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 z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var 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=ae*.4,x=.4,z=.5,oe=.5,ie=te(),ce=te(),ye=te(),_e=te();ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.5,ie,ie,ce,ye,_e);var xe=ee(ce.x,ce.y),Ce=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z+x)*a,(oe+b)*y,(z+b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,(z-b)*a,(oe+x)*y,(z-x)*a,(oe+b)*y)),ve(z-x,oe,z-x,oe-b,z-b,oe-x,z,oe-x,.5,ye,_e,ce,ie,ie),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),b=ae*.3,x=.3,ve(z-x,oe,z-x,oe-b,z-b,oe-x,z,oe-x,.5,ye,_e,ce,ie,ie),Ce.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,oe*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+x)*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,oe*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ve(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.5,ie,ie,ce,ye,_e),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y).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()),ue(ie),ue(ce),ue(ye),ue(_e),ue(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(z,oe,ie){z.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*a,(.8+ie)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*a,(.5+ie)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*a,(.5+ie)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*a,(.8+ie)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,oe=b*ae,ie=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,ye=1,_e=.5,xe=.5,Ce=0,Te=new go.PathFigure(ie*a,(1-ce)*y,!1);return E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,_e*y,ye*a,.7*y,ye*a,_e*y)),Te.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)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-oe+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-oe+z)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+oe+z)*y,(.5-oe+x)*a,.9*y)),Te.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Te.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Te.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,oe=.5,ie=z,ce=Math.PI/4,ye=4*(1-Math.cos(ce))/(3*Math.sin(ce)),_e=ye*.5,xe=z,Ce=z,Te=ye*xe,Me=ye*Ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-xe)*a,ie*y,(oe-(Te+xe)/2)*a,(ie+(Ce+Me)/2)*y,(oe-xe)*a,(ie+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie-Ce)*y,(oe-xe)*a,(ie-Me)*y,(oe-Te)*a,(ie-Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+xe)*a,ie*y,(oe+Te)*a,(ie-Ce)*y,(oe+xe)*a,(ie-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(oe+xe)*a,(ie+Me)*y,(oe+(Te+xe)/2)*a,(ie+(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 pt=new go.PathFigure(.2*a,y,!1);E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ve=new go.PathFigure(.8*a,y,!1);return E.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var 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 z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,oe=ae*.1,ie=.2,ce=.9,ye=new go.PathFigure((ie-z)*a,ce*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-z)*y,(ie-z)*a,(ce-oe)*y,(ie-oe)*a,(ce-z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie+z)*a,ce*y,(ie+oe)*a,(ce-z)*y,(ie+z)*a,(ce-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+z)*y,(ie+z)*a,(ce+oe)*y,(ie+oe)*a,(ce+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-z)*a,ce*y,(ie-oe)*a,(ce+z)*y,(ie-z)*a,(ce+oe)*y).close()),z=.1,oe=ae*.1,ie=.8,ce=.9;var _e=new go.PathFigure((ie-z)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce-z)*y,(ie-z)*a,(ce-oe)*y,(ie-oe)*a,(ce-z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie+z)*a,ce*y,(ie+oe)*a,(ce-z)*y,(ie+z)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ce+z)*y,(ie+z)*a,(ce+oe)*y,(ie+oe)*a,(ce+z)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ie-z)*a,ce*y,(ie-oe)*a,(ce+z)*y,(ie-z)*a,(ce+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 z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var oe=new go.PathFigure(.5*a,.7*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ie=.1,ce=ae*.1,ye=.1,_e=.9,xe=new go.PathFigure((ye-ie)*a,_e*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ie)*y,(ye-ie)*a,(_e-ce)*y,(ye-ce)*a,(_e-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ie)*a,_e*y,(ye+ce)*a,(_e-ie)*y,(ye+ie)*a,(_e-ce)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ie)*y,(ye+ie)*a,(_e+ce)*y,(ye+ce)*a,(_e+ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ie)*a,_e*y,(ye-ce)*a,(_e+ie)*y,(ye-ie)*a,(_e+ce)*y)),ie=.1,ce=ae*.1,ye=.4,_e=.9;var Ce=new go.PathFigure((ye-ie)*a,_e*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ie)*y,(ye-ie)*a,(_e-ce)*y,(ye-ce)*a,(_e-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ie)*a,_e*y,(ye+ce)*a,(_e-ie)*y,(ye+ie)*a,(_e-ce)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ie)*y,(ye+ie)*a,(_e+ce)*y,(ye+ce)*a,(_e+ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ie)*a,_e*y,(ye-ce)*a,(_e+ie)*y,(ye-ie)*a,(_e+ce)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ye=.05,_e=ae*.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=ae*.05,xe=.375,Ce=.95,ie=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ie.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=ae*.05,xe=.625,Ce=.95,ce=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ce.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=ae*.05,xe=.825,Ce=.95,Te=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),Te.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 z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var oe=.05,ie=ae*.05,ce=.35,ye=.775,_e=new go.PathFigure((ce-oe)*a,ye*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(ye-oe)*y,(ce-oe)*a,(ye-ie)*y,(ce-ie)*a,(ye-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce+oe)*a,ye*y,(ce+ie)*a,(ye-oe)*y,(ce+oe)*a,(ye-ie)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(ye+oe)*y,(ce+oe)*a,(ye+ie)*y,(ce+ie)*a,(ye+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce-oe)*a,ye*y,(ce-ie)*a,(ye+oe)*y,(ce-oe)*a,(ye+ie)*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=ae*.3,z=.5,oe=.7,ie=new go.PathFigure((z-b)*a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y));var ce=new go.PathFigure(0,.7*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*.5,z=.5,oe=.5,ie=new go.PathFigure((z-b)*a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y));var ce=new go.PathFigure(.15*a,.5*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ae*.5,z=.5,oe=.5,ie=new go.PathFigure((z-b)*a,oe*y,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y).close()),b=.05,x=ae*.05,z=.5,oe=.8;var ce=new go.PathFigure((z-b)*a,oe*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe-b)*y,(z-b)*a,(oe-x)*y,(z-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,oe*y,(z+x)*a,(oe-b)*y,(z+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(oe+b)*y,(z+b)*a,(oe+x)*y,(z+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,oe*y,(z-x)*a,(oe+b)*y,(z-b)*a,(oe+x)*y).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var 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 ie=new go.PathFigure(.5*a,.1*y,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var 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 ie=new go.PathFigure(a*.816,y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var 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 ie=new go.PathFigure(a*1,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var 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 ie=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ie.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*ae,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var 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 ie=new go.PathFigure(a*.83,y*1,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ce=new go.PathFigure(a*.78,y*.05,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ae,x=y*.8,z=new go.Geometry,oe=new go.PathFigure(E,0,!0);return z.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?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ae,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 ot={},Ge="5.0",ee={},te=null,ue=!1,be=!1,ve=null,de=!1,pe=null,ae=null,he=0;he4?parseFloat(rt):5};ot.setHTML5Codebase=function(rt,st){ae=rt,wt(rt,st)},ot.setJavaCodebase=ot.setJavaCodebaseVersion=ot.isCompiledInstalled=ot.setPreCompiledScriptPath=ot.setPreCompiledResourcePath=function(){},ot.setHTML5CodebaseVersion=function(rt,st){var Ct=parseFloat(rt);if(Ct!==NaN&&Ct<5){console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead.");return}pe=rt,bt(rt,st)},ot.getHTML5CodebaseVersion=function(){return ne},ot.getParameters=function(){return ee},ot.setFontsCSSURL=function(rt){z=rt},ot.setGiacJSURL=function(rt){},ot.setJNLPFile=function(rt){fe=rt},ot.setJNLPBaseDir=function(rt){},ot.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var st="auto",Ct=ee.id,Gt,Ht=!1,Bt=0;Bt=5)return!0;var rt=ot.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},ot.startAnimation=function(){var rt=ot.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},ot.stopAnimation=function(){var rt=ot.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},ot.getAppletObject=function(){var rt=ee.id!==void 0?ee.id:"ggbApplet";return window[rt]},ot.resize=function(){};var Te=function(rt,st,Ct){var Gt=document.createElement("param");Gt.setAttribute("name",st),Gt.setAttribute("value",Ct),rt.appendChild(Gt)},Me=function(rt){return rt&&rt!=="false"},pt=function(rt,st,Ct){ie(ne)<=4.2&&(Ct=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ht=document.createElement("div");Ht.classList.add("appletParameters","notranslate");var Bt=st.width,Ke=st.height;if(st.disableAutoScale=st.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():st.disableAutoScale,st.width!==void 0)if(ie(ne)<=4.4)Me(st.showToolBar)&&(st.height-=7),Me(st.showAlgebraInput)&&(st.height-=37),st.width<605&&Me(st.showToolBar)&&(st.width=605,Bt=605);else{var Jt=100;(Me(st.showToolBar)||Me(st.showMenuBar))&&(st.hasOwnProperty("customToolBar")&&(st.customToolbar=st.customToolBar),Jt=Me(st.showMenuBar)?245:155),Bt=5?(st.appletOnLoad=function(Zt){var He=rt.querySelector(".ggb_preview");He&&He.parentNode.removeChild(He),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pn),window.GGBT_wsf_view&&$(window).trigger("resize"),Hn(Zt)},kt||pn.appendChild(Qe)):Ht.appendChild(Qe),pn.appendChild(Ht),kt||rt.appendChild(pn),setTimeout(function(){ot.resize()},1)}else{var Ye=document.createElement("div");Ye.className="applet_scaler",Ye.style.position="relative",Ye.style.display="block",Ye.appendChild(Ht),rt.appendChild(Ye),st.appletOnLoad=function(Zt){ot.resize(),Hn(Zt)}}function Je(Zt,He){He&&typeof He.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Zt,He.appletOnLoad):renderGGBElement(Zt),Kt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",He)}function ft(Zt,He){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Zt,params:He}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ut){Je(ut.article,ut.params)}),html5AppletsToProcess=null)},ie(ne)<5&&(Zt.className+=" geogebraweb")):Je(Zt,He)}if(Gt){scriptLoadStarted=!0;for(var At=0;At0?(Mn.remove(),pn.attr("id","fullscreencontent").show(),jQuery(Hn).append(pn),window.dispatchEvent(new Event("resize"))):pt(Mn,st,!1),window.GGBT_wsf_view.launchFullScreen(Hn)}else re=Gt,pt(rt,st,!1);if(!window.GGBT_wsf_view)for(Ke=0;Kert/4*3&&(Mn=rt/4*3),Hn=Mn/5.8,Jt.setAttribute("src",b),Jt.setAttribute("width",Mn),Jt.setAttribute("height",Hn);var pn=(rt-Mn)/2,kt=(st-Hn)/2;Jt.style.left=pn+"px",Jt.style.top=kt+"px",Ht.appendChild(Jt)}}return Ht.appendChild(Ke),Ht},tt=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Ze=["web","webSimple","web3d","tablet","tablet3d","phone"],bt=function(rt,st){if(ne=rt,st){wt(ne,!0);return}var Ct=!ue;if(Ct){var Gt=ie(ne);!isNaN(Gt)&&Gt<4.4&&(Ct=!1)}var Ht,Bt;window.location.protocol.substr(0,4)==="http"?Ht=window.location.protocol:Ht="http:";var Ke=ne.indexOf("//");Ke>0?Bt=ne:Ke===0?Bt=Ht+ne:Bt="https://www.geogebra.org/apps/5.2.814.0/";for(var Jt in Ze)if(ne.slice(Ze[Jt].length*-1)===Ze[Jt]||ne.slice((Ze[Jt].length+1)*-1)===Ze[Jt]+"/"){wt(Bt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ct&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Me(ee.showToolBar)&&!Me(ee.showMenuBar)&&!Me(ee.showAlgebraInput)&&!Me(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Bt+="webSimple/":Bt+="web3d/",wt(Bt,!1)},wt=function(rt,st){if(rt.requirejs){se=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),se=rt,st===null&&(st=rt.indexOf("http")===-1),me=st,a="web.nocache.js",y=!1;var Ct=se.split("/");Ct.length>1&&(!st&&Ct[Ct.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ze.indexOf(Ct[Ct.length-2])>=0&&(a=Ct[Ct.length-2]+".nocache.js")),Ct=rt.split("/"),ne=Ct[Ct.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Gt=parseFloat(ne);Gt!==NaN&&Gt<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),bt("5.0",st))},Kt=function(rt,st){window.console&&window.console.log&&(!st||typeof st.showLogging=="undefined"||st.showLogging&&st.showLogging!=="false")&&console.log(rt)};ee.material_id!==void 0?_e(Qt):Qt();function Qt(){var rt=Ge;pe!==null?rt=pe:parseFloat(rt)<5&&(rt="5.0"),bt(rt,!1),ae!==null&&wt(ae,me),de=!0}return ot},GGBAppletUtils=function(){"use strict";function ot(){return window.GGBT_wsf_edit!==void 0}function Ge(de,pe){pe!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+pe+","+pe+")",de.style.webkitTransform="scale("+pe+","+pe+")",de.style.maxWidth="initial",de.querySelector(".ggb_preview")!==null&&(de.querySelector(".ggb_preview").style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[0]!==void 0&&(de.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[1]!==void 0&&(de.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(de.style.transform="none",de.style.webkitTransform="none")}function ee(de,pe,ae,he,le,fe){var se=null;if(fe!=null&&fe!="")for(var me=de.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+fe+" ")>-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(he?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),de){var z=de.getBoundingClientRect();z.left>0&&z.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(E=re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=de.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return de&&((ae===void 0||!ae)&&pe>0&&pe+y1&&(fe=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))le=te(de,pe,fe,ae,de.scaleContainerClass);else return he;return fe&&(!de.hasOwnProperty("scale")||he===1)?le:Math.min(he,le)}function be(de){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),he=de.getBoundingClientRect(),le=(pe-he.width)/2,fe=(ae-he.height)/2;fe<0&&(fe=0),de.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?de.style.left="40px":de.style.left=le+"px",de.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?de.style.top="40px":de.style.top=fe+"px",de.style.left=le+"px")}function ve(de,pe){var ae=de.querySelector(".appletParameters");if(ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(ae.parentElement&&/fullscreen/.test(ae.parentElement.className))return;var he=ue(pe,de);ot()&&ae.setAttribute("data-param-scale",he);for(var le=null,fe=0;fe=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(ot){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ot){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ot){var Ge=c[ot];return Ge==null?null:Ge},r=d,webModule.__errFn=e}function B(){function ot(de){var pe=de.lastIndexOf(rb);pe==-1&&(pe=de.length);var ae=de.indexOf(sb);ae==-1&&(ae=de.length);var he=de.lastIndexOf(tb,Math.min(ae,pe));return he>=O?de.substring(O,he+P):W}function Ge(de){if(!de.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=de+vb,de=ot(pe.src)}return de}function ee(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function te(){for(var de=o.getElementsByTagName(_),pe=O;peO?de[de.length-P].href:W}function be(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var ve=ee();return ve==W&&(ve=te()),ve==W&&(ve=ue()),ve==W&&be()&&(ve=ot(o.location.href)),ve=Ge(ve),ve}function C(ot){return ot.match(/^\//)||ot.match(/^[a-zA-Z]+:\/\//)?ot:webModule.__moduleBase+ot}function D(){var ot=[],Ge=O,ee=[],te=[];function ue(de){var pe=te[de](),ae=ee[de];if(pe in ae)return pe;var he=[];for(var le in ae)he[ae[le]]=le;throw r&&r(de,he,pe),null}if(__gwt_isKnownPropertyValue=function(de,pe){return pe in ee[de]},webModule.__getPropMap=function(){var de={};for(var pe in ee)ee.hasOwnProperty(pe)&&(de[pe]=ue(pe));return de},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ve=be.indexOf(Db);ve!=-1&&(Ge=parseInt(be.substring(ve+P),$),be=be.substring(O,ve))}catch(de){}return webModule.__softPermutationId=Ge,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(ot,Ge,ee){"use strict";ee.d(Ge,{Ax:function(){return ve},Ds:function(){return de},KI:function(){return ae},SI:function(){return be},f1:function(){return ue}});var te=ee(11320);function ue(he){let le=!0;if(he.length>0){for(let fe=0;fez in x?ae(x,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[z]=oe,ne=(x,z)=>{for(var oe in z||(z={}))se.call(z,oe)&&re(x,oe,z[oe]);if(fe)for(var oe of fe(z))me.call(z,oe)&&re(x,oe,z[oe]);return x},a=(x,z)=>he(x,le(z)),y=(x,z,oe)=>new Promise((ie,ce)=>{var ye=Ce=>{try{xe(oe.next(Ce))}catch(Te){ce(Te)}},_e=Ce=>{try{xe(oe.throw(Ce))}catch(Te){ce(Te)}},xe=Ce=>Ce.done?ie(Ce.value):Promise.resolve(Ce.value).then(ye,_e);xe((oe=oe.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:oe,onComplete:ie,onError:ce,onProgress:ye,onBefore:_e,onBeginInitFile:xe,children:Ce,accept:Te,className:Me,style:pt={},concurrency:Ve=4},gt)=>{let[Ae,De]=(0,te.useState)("ready");const[Ie,tt]=(0,te.useState)(0),[Ze,bt]=(0,te.useState)(""),[wt,Kt]=(0,te.useState)(null),Qt=(0,te.useRef)(null),rt=(0,te.useRef)((0,be.Z)()),st=(0,te.useRef)(!1);(0,te.useImperativeHandle)(gt,()=>({cancel:Ht,file:wt,uploadStatus:Ae}));const Ct=()=>{const Ke=document.getElementById(rt.current);Ke&&(Ke.value="")},Gt=Ke=>y(void 0,null,function*(){var Jt;if(Ae==="uploading")return;xe&&xe(Ke);const Mn=Ke.size,Hn=Math.ceil(Mn/x);st.current=!1,De("uploading"),tt(0),bt("");try{const pn=yield(0,ue.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ke.name,chunkCount:Hn},z)});if(st.current||(pn==null?void 0:pn.status)!==0)throw new Error;const{upload_id:kt}=pn;Qt.current=new AbortController;const Qe=[];let Ye=0;for(let et=0;et(0,ue.ZP)("/api/attachments/multipart_upload",{method:"POST",body:Zt,signal:Qt.current.signal},!0).then(He=>{console.log(He,444),Ye++;const ut=Math.round(Ye/Hn*100);tt(ut),ye&&ye(a(ne({},He),{file:Ke,percent:ut}))}))}let Je=0,ft=Ve;for(console.log(Qe,"promises");Jevt());if(et.length>0){const vt=yield Promise.all(et);Je+=ft}}const At=yield(0,ue.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ke.name,chunkCount:Hn,uploadId:kt},z)});At.object?(De("success"),Ct(),ie&&ie(a(ne({},At),{file:Ke,percent:100}))):(De("error"),bt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce(Ke.name))}catch(pn){De("error"),bt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce(Ke.name)}}),Ht=(0,te.useCallback)(()=>{st.current=!0,Qt.current&&(Qt.current.abort(),oe&&oe())},[oe]),Bt=Ke=>{var Jt,Mn;const Hn=(Mn=(Jt=Ke==null?void 0:Ke.target)==null?void 0:Jt.files)==null?void 0:Mn[0];if(Kt(Hn),Ae="ready",!!Hn){if(_e){_e(Hn)||Gt(Hn),Ct();return}Gt(Hn)}};return te.createElement(te.Fragment,null,te.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:Bt,accept:Te}),te.createElement("label",{className:de()(pe.upload,Me),htmlFor:rt.current,style:pt},Ce))};var b=(0,te.forwardRef)(E)},63205:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return se}});var te=ee(67294),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(94184),ve=ee.n(be),de=ee(57953),pe=ee(15979),ae=ee(33170),he=ee(28706),le=(me,re,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(oe){y(oe)}},b=z=>{try{x(ne.throw(z))}catch(oe){y(oe)}},x=z=>z.done?a(z.value):Promise.resolve(z.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 z=(0,te.useRef)(null),oe=(0,te.useRef)(null),ie=(0,te.useRef)(null),ce=(0,te.useRef)(null),[ye,_e]=(0,te.useState)(!1),[xe,Ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&Te()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[me==null?void 0:me.visible]);const Te=()=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ae=yield(0,he.ZJ)(me==null?void 0:me.src);z.current.src="",z.current.src=Ae,z.current.onload=function(){gt()},_e(!1),Ce("")}),Me=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",y()},pt=Ae=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:Ae.dataUrl}});De!=null&&De.id&&!x?(yield(0,ae.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"),ie.current.innerHTML=" ",_e(!1),Ce("")}),Ve=()=>{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(Ie=>{const tt=document.querySelector(Ie.name);tt&&tt.setAttribute("title",Ie.title)})},gt=()=>{oe.current=new pe.hP(z.current),oe.current.targetRoot=ce.current,oe.current.addEventListener("render",pt),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),Ve()},300)};return te.createElement(te.Fragment,null,(me==null?void 0:me.visible)&&te.createElement(de.Z,{spinning:ye,tip:xe,style:{position:"absolute"}},te.createElement("div",{ref:ce,className:ve()(ue.imageDimensions,re,ne?ue.fullWidth:""),style:a},te.createElement("img",{className:ue.img,ref:z}))))}},36527:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=ee(71230),be=ee(15746),ve=ee(66368),de=ee(71577),pe=ee(85725),ae=ee(71736),he=ee(84279),le=ee(67294);const fe=(0,te.forwardRef)(({callback:se,showSaveButton:me,value:re=""},ne)=>{const a=(0,te.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(ue.Z,{className:ae.Z.lists,gutter:[10,10]},y.map((oe,ie)=>le.createElement(be.Z,{flex:"110px",className:ae.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:`$$${oe.value}$$`}),oe.name),le.createElement("div",{className:ae.Z.children},oe.children.map((ce,ye)=>le.createElement("div",{key:ye},le.createElement("h1",null,ce.name),le.createElement(ue.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ae.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ue.Z,{className:ae.Z.lists,gutter:[10,10]},E.map((oe,ie)=>le.createElement(be.Z,{flex:"110px",className:ae.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),le.createElement("div",{className:ae.Z.children},oe.children.map((ce,ye)=>le.createElement("div",{key:ye},ce.name&&le.createElement("h1",null,ce.name),le.createElement(ue.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ae.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],z=()=>{var oe=document.createElement("div");oe.innerHTML=a.current.getValue();var ie=oe.innerText;return se&&se(ie),ie};return(0,te.useImperativeHandle)(ne,()=>({getData:z})),le.createElement("div",{className:ae.Z.mathWrap},le.createElement(ve.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ae.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:ae.Z.button},le.createElement(de.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ge.Z=fe},7621:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(35973),ue={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(67294),ve=({message:de,className:pe,children:ae,style:he={}})=>be.createElement("div",{className:`custom-spinner ${ue.idsRingWrapper} ${pe}`},be.createElement("div",{className:ue.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),de?be.createElement("p",{style:he},de):null,ae,be.createElement(te.Outlet,null))},60076:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(67294),ue=ee(33054),be=ee(67294),ve=({defaultX:de="40%",leftChild:pe,rightChild:ae,className:he,hideResize:le=!1})=>{const[fe,se]=(0,te.useState)(de),me=(0,te.useRef)();function re(){me.current=!0}(0,te.useEffect)(()=>{function y(b){me.current&&(ue.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 fe=="number"&&fe!==.01?`${fe}px`:de,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${he}`},be.createElement("section",{style:{width:ne,display:fe===.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}},ae))}},38658:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return pe}});var te=ee(67294),ue={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:ae,style:he={},leftNode:le,leftTitle:fe="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:me="\u8FD0\u884C\u7ED3\u679C"})=>te.createElement("div",{className:ve()(ue.result,ae),style:he},te.createElement("div",{className:ue.left},te.createElement("div",{className:ue.title},te.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),te.createElement("span",null,fe)),te.createElement("div",{className:ue.leftNode},le)),te.createElement("div",{className:ue.right},te.createElement("div",{className:ue.title},te.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),te.createElement("span",null,me)),te.createElement("div",{className:ue.rightNode},se)))},88508:function(ot,Ge,ee){"use strict";var te=ee(67294);const ue=ve=>String(ve).length===1?`0${ve}`:ve,be=({className:ve="",onChange:de,defaultValue:pe=0})=>{const[ae,he]=(0,te.useState)(pe);(0,te.useEffect)(()=>{const me=setTimeout(()=>{he(ae+1e3)},1e3);return de(ae+1e3),()=>{clearInterval(me)}},[ae]);const le=parseInt(ae/(60*6e4))||"00",fe=parseInt(ae%(60*6e4)/6e4)||"00",se=parseInt(ae%6e4/1e3)||"00";return te.createElement("div",{className:ve},ue(le),":",ue(fe),":",ue(se))};Ge.Z=be},6104:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return y}});var te=ee(67294),ue=ee(2453),be=ee(85418),ve=ee(24577),de=ee(67631),pe=ee.n(de),ae=ee(52262),he=ee(74855),le=ee(51959),fe={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((z,oe)=>{var ie=_e=>{try{ye(x.next(_e))}catch(xe){oe(xe)}},ce=_e=>{try{ye(x.throw(_e))}catch(xe){oe(xe)}},ye=_e=>_e.done?z(_e.value):Promise.resolve(_e.value).then(ie,ce);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{},handlePlay:_e=()=>{},handlePlayEnded:xe=()=>{},autoPlay:Ce=!1,onPlayEnded:Te=()=>{},isShowWaterMark:Me=!0},pt)=>{var Ve;const Ae=((Ve=b==null?void 0:b.split("."))==null?void 0:Ve.pop())==="flv",De=(0,te.useRef)(),Ie=(0,te.useRef)(),tt=(0,te.useRef)(),Ze=(0,te.useRef)(),bt=(0,te.useRef)(),wt=(0,te.useRef)(),Kt=(0,te.useRef)(),Qt=(0,te.useRef)(),rt=(0,te.useRef)(),st=(0,te.useRef)(),Ct=(0,te.useRef)(),Gt=(0,te.useRef)(),Ht=(0,te.useRef)(),Bt=(0,te.useRef)(),Ke=navigator.userAgent.toLowerCase().match(a),Jt=Ke?Ke[0]:"pc",Mn=(0,te.useRef)(!1),Hn=(0,ae.eY)();let pn=0,kt=0,Qe=0,Ye=null,Je=!1,ft=20,At=1,et=!1,vt=!1,Pt=[];(0,te.useImperativeHandle)(pt,()=>({getLastUpdatedTime:()=>De.current.currentTime,getDuration:()=>De.current.duration})),ue.ZP.config({maxCount:1,getContainer:()=>tt.current});const Xe=(0,te.useCallback)(($t,on=!1)=>{let bn={point:De.current.currentTime};Ye?(bn.log_id=Ye,bn.watch_duration=ne(Pt),bn.total_duration=kt):(ie?(bn.video_id=parseInt(z,10),bn.course_id=ie):bn.video_id=z,bn.duration=pn,bn.device=Jt),on&&(bn.ed="1");function Kn(){return se(this,null,function*(){et=!0,Ye=yield oe==null?void 0:oe(bn),et=!1,$t&&$t()})}Kn()},[z,ie]);(0,te.useEffect)(()=>{De.current&&(Ze.current.style.display="none",bt.current.style.display="block"),ue.ZP.destroy();let $t=null;return ve.Z.isSupported&&Ae&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?($t=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),De.current&&($t.attachMediaElement(De.current),$t.load())):De.current.setAttribute("src",b),He(),()=>{$t&&($t.unload(),$t.pause(),$t.destroy(),$t=null)}},[De,Ae,b]);function Zt(){De.current.paused?(Ze.current.style.display="none",bt.current.style.display="block"):(Ze.current.style.display="block",bt.current.style.display="none")}function He(){Ct.current.style.display="none",Ht.current.style.display="none",Gt.current.style.display="none",De.current.muted||De.current.volume===0?Ct.current.style.display="block":De.current.volume>0&&De.current.volume<=.5?Ht.current.style.display="block":Gt.current.style.display="block"}(0,te.useEffect)(()=>{const $t=document.getElementById("play"),on=document.querySelectorAll(".playback-icons use");function bn(){_e(),ce&&!Mn.current&&(De.current.currentTime=ce),Mn.current=!0,Pt.push(De.current.currentTime),Je||(Je=!0,x&&Xe())}function Kn(){return se(this,null,function*(){Zt(),Pt.push(De.current.currentTime),x&&Xe(()=>{Ye=null,Qe=0,Je=!1,et=!1,vt=!1,Pt=[],kt=0,At=1},!0),Te()})}function Dt(){wt.current.value=Math.round(De.current.currentTime),Kt.current.value=Math.round(De.current.currentTime)}function Rn(){const pr=me(Math.round(De.current.currentTime));rt.current.innerText=`${pr.hour>0?pr.hour+":":""}${pr.minutes}:${pr.seconds}`,rt.current.setAttribute("datetime",`${pr.hour>0?" "+pr.hour+" ":""}${pr.minutes}m ${pr.seconds}s`)}function Gn(){var pr,Xr,to,mo,Kr,Vo,Do;const io=Math.round((pr=De.current)==null?void 0:pr.duration);(to=(Xr=wt.current)==null?void 0:Xr.setAttribute)==null||to.call(Xr,"max",io),(Kr=(mo=Kt.current)==null?void 0:mo.setAttribute)==null||Kr.call(mo,"max",io);const Cr=me(io);Qt.current&&(Qt.current.innerText=`${Cr.hour>0?Cr.hour+":":""}${Cr.minutes}:${Cr.seconds}`,(Do=(Vo=Qt.current).setAttribute)==null||Do.call(Vo,"datetime",`${Cr.hour>0?" "+Cr.hour+" ":""}${Cr.minutes}m ${Cr.seconds}s`))}function jr(){try{const pr=Math.round(De.current.duration);wt.current.setAttribute("max",pr),Kt.current.setAttribute("max",pr);const Xr=me(pr);Qt.current.innerText=`${Xr.hour>0?Xr.hour+":":""}${Xr.minutes}:${Xr.seconds}`,Qt.current.setAttribute("datetime",`${Xr.hour>0?" "+Xr.hour+" ":""}${Xr.minutes}m ${Xr.seconds}s`),Dt(),Rn();const{width:to,height:mo,x:Kr,y:Vo}=Ie.current.getBoundingClientRect();if(Kr<0||Vo<0||!to)return;if(!vt){let Do=De.current.currentTime,io=Do-Qe;Math.abs(io)<10?(kt+=Math.abs(io),Qe=Do,et||kt-At*ft>=0&&(At++,Pt.push(Qe),x&&Xe())):(Qe=Do,x&&Xe())}}catch(pr){console.log(pr)}}function mr(){vt=!0}function ur(){De.current.playing&&Pt.push(De.current.currentTime,Qe),Qe=De.current.currentTime,vt=!1}function Tn(){pn=De.current.duration,pn<=20&&(ft=pn/3),De.current.addEventListener("play",bn)}function Or(pr){pr.preventDefault(),(0,le.vp)()?(De.current.style.width="100%",De.current.style.height="100%"):De.current.style.cssText=""}function zr(){ye()}function lo(pr){if(!E){ue.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Xr=pr.target.dataset.seek?pr.target.dataset.seek:pr.target.value;De.current.currentTime=Xr,Kt.current.value=Xr,wt.current.value=Xr}function di(pr){const Xr=Math.round(pr.offsetX/pr.target.clientWidth*parseInt(pr.target.getAttribute("max"),10));wt.current.setAttribute("data-seek",Xr);const to=me(Xr);st.current.textContent=`${to.hour>0?to.hour+":":""}${to.minutes}:${to.seconds}`;const mo=De.current.getBoundingClientRect();st.current.style.left=`${pr.pageX-mo.left}px`}function Ko(pr){switch(pr.code){case"Space":pr.preventDefault(),sn();break;case"ArrowRight":if(pr.preventDefault(),!E){ue.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,Dt();break;case"ArrowLeft":if(pr.preventDefault(),!E){ue.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,Dt();break;case"ArrowUp":pr.preventDefault(),De.current.volume<1&&(De.current.volume=(parseInt(De.current.volume*10)+1)/10);break;case"ArrowDown":pr.preventDefault(),De.current.volume>0&&(De.current.volume=(parseInt(De.current.volume*10)-1)/10);break}}return tt.current.addEventListener((0,le.gH)(),Or),De.current.addEventListener("canplay",Tn),De.current.addEventListener("ended",Kn),De.current.addEventListener("seeking",mr),De.current.addEventListener("seeked",ur),De.current.addEventListener("loadedmetadata",Gn),wt.current.addEventListener("mousemove",di),wt.current.addEventListener("input",lo),De.current.addEventListener("timeupdate",jr),De.current.addEventListener("pause",zr),De.current.addEventListener("volumechange",He),document.addEventListener("keydown",Ko),()=>{var pr,Xr,to,mo,Kr,Vo,Do,io,Cr,Ei,cn,ge;(pr=De.current)==null||pr.removeEventListener("canplay",Tn),(Xr=De.current)==null||Xr.removeEventListener("play",bn),(to=De.current)==null||to.removeEventListener("ended",Kn),(mo=De.current)==null||mo.removeEventListener("seeking",mr),(Kr=De.current)==null||Kr.removeEventListener("seeked",ur),(Vo=wt.current)==null||Vo.removeEventListener("mousemove",di),(Do=wt.current)==null||Do.removeEventListener("input",lo),(io=De.current)==null||io.removeEventListener("timeupdate",jr),(Cr=De.current)==null||Cr.removeEventListener("pause",zr),(Ei=De.current)==null||Ei.removeEventListener("loadedmetadata",Gn),(cn=De.current)==null||cn.removeEventListener("volumechange",He),document.removeEventListener("keydown",Ko),(ge=De.current)!=null&&ge.playing&&(Pt.push(Qe,De.current.currentTime),x&&Xe())}},[De,b]),(0,te.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 $t=new(pe());$t.loadSource(b),$t.attachMedia(De.current)}}},[b]);const[ut,wn]=(0,te.useState)(1),sn=()=>{De.current.paused||De.current.ended?De.current.play():De.current.pause(),Zt()};function ht(){De.current.muted=!De.current.muted,De.current.muted?(Bt.current.setAttribute("data-volume",volume.value),Bt.current.value=0):Bt.current.value=Bt.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:tt},te.createElement("div",{ref:Ie,className:`${fe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${fe.animate__loop}`},Me&&Hn?Hn.login:" "),te.createElement("div",{className:fe.container},te.createElement("div",{className:fe["video-container"],id:"video-container"},te.createElement("div",{className:fe["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:fe["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:fe.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:De,autoPlay:Ce}),te.createElement("div",{className:`${fe["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:fe["bottom-controls"]},te.createElement("div",{className:fe["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:sn},te.createElement("svg",{className:fe["playback-icons"]},te.createElement("use",{ref:bt,href:"#play-icon"}),te.createElement("use",{ref:Ze,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:fe.time},te.createElement("time",{id:"time-elapsed",ref:rt},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:Qt},"00:00"))),te.createElement("div",{className:fe["right-controls"]},E&&te.createElement(be.Z,{placement:"top",overlayClassName:fe.rateOverlay,getPopupContainer:$t=>$t.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{wn(1),De.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{wn(1.5),De.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{wn(2),De.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${fe.controlText} mr5`},"\u500D\u901F")),te.createElement(he.CopyToClipboard,{text:b,onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:fe["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:fe["volume-button"],id:"volume-button",onClick:ht},te.createElement("i",{ref:Ct,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Ht,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Gt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:fe.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Bt,style:{display:"none"},onClick:He})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:fe["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(tt.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:fe["video-progress"]},te.createElement("progress",{ref:Kt,value:"0",min:"0"}),te.createElement("input",{className:fe.seek,ref:wt,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:fe["seek-tooltip"],ref:st,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},71865:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(67294),ue=ee(33054),be=ee(99398),ve=()=>{const[de,pe]=(0,te.useState)(""),[ae,he]=(0,te.useState)(0);let[le,fe]=(0,te.useState)(),[se,me]=(0,te.useState)();const[re,ne]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>ue.Z.subscribe("preview-image",xe=>{pe(xe),console.log(ce.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=de},[de]);function y(_e){_e.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",fe(void 0),me(void 0),he(0),pe("")}function b(){he(ae+90)}function x(){le=ce.current.width*1.1,se=ce.current.height*1.1,me(se),fe(le)}function z(){le=ce.current.width/1.1,se=ce.current.height/1.1,me(se),fe(le)}const oe=(0,te.useRef)(),ie=(0,te.useRef)(),ce=(0,te.useRef)(),ye=_e=>{(_e.nativeEvent.target===oe.current||_e.nativeEvent.target===ie.current)&&E()};return te.createElement(te.Fragment,null,de?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ie},te.createElement(be.Z,{className:"image-preview",src:de,style:{display:"none"},preview:{visible:!0,src:de,movable:!1,onVisibleChange:_e=>{pe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(ot,Ge,ee){"use strict";ee.d(Ge,{h:function(){return oe}});var te=ee(67294),ue=ee(11713),be=ee(22150),ve=ee(71577),de=ee(4631),pe=ee.n(de),ae=ee(71749),he=ee(30483),le=Object.defineProperty,fe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ie,ce,ye)=>ce in ie?le(ie,ce,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ie[ce]=ye,y=(ie,ce)=>{for(var ye in ce||(ce={}))re.call(ce,ye)&&a(ie,ye,ce[ye]);if(me)for(var ye of me(ce))ne.call(ce,ye)&&a(ie,ye,ce[ye]);return ie},E=(ie,ce)=>fe(ie,se(ce));const b=ue.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ge.Z=({callback:ie,onCancel:ce})=>{const[ye,_e]=(0,te.useState)("python");function xe(Te){_e(z[Te][1])}function Ce(Te){ie(Te)}return te.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ce,style:{width:500}}),te.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(ue.default,{getPopupContainer:Te=>Te.parentNode,onChange:xe},Object.keys(z).map(Te=>te.createElement(b,{key:Te,value:Te},z[Te][0])))),te.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(oe,{mode:ye})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(ve.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function oe({value:ie,onChange:ce,mode:ye,options:_e={}}){const xe=(0,te.useRef)(),[Ce,Te]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ce){let Me=function(pt){const Ve=pt.getValue();ce&&ce(Ve)};return Ce.on("change",Me),()=>{Ce.off("change",Me)}}},[Ce,ce]),(0,te.useEffect)(()=>{Ce&&Ce.setOption("mode",ye)},[Ce,ye]),(0,te.useEffect)(()=>{Ce&&(ie!==Ce.getValue()||ie==="")&&setTimeout(()=>{Ce.setValue(ie||"")},300)},[Ce,ie]),(0,te.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));Te(Me)}},[xe.current,Ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:xe}))}},35567:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ge}});var te=ee(67294),ue=ee(4631),be=ee.n(ue),ve=ee(91033),de=ee(71749),pe=ee(57341),ae=ee(82801),he=ee(88386),le=ee(49047),fe=ee(80785),se=ee(85725),me=({value:Se="",className:Pe,showTextOnly:Le,showLines:Ne,style:qe={}})=>{const it=(0,te.useMemo)(()=>"",[Se]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:it}}))},re=ee(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(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)&&z(Se,Le,Pe[Le]);if(E)for(var Le of E(Pe))x.call(Pe,Le)&&z(Se,Le,Pe[Le]);return Se},ie=(Se,Pe)=>a(Se,y(Pe));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ye({onActionCallback:Se,title:Pe,icon:Le,actionName:Ne,className:qe="",children:it}){function un(){Se(Ne)}return re.createElement("a",{title:Pe,className:qe,onClick:un},re.createElement("i",{className:`${Le}`}),it)}var _e=({watch:Se,showNullButton:Pe,showNullProgramButton:Le,onActionCallback:Ne,fullScreen:qe,insertTemp:it,hidetoolBar:un,extraUse:Vt})=>{const En=[...ce,{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"},!un&&En.map((Vn,Pr)=>re.createElement("li",{key:Pr},Vn.actionName?re.createElement(ye,ie(oe({},Vn),{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,it&&re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${it}`,onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&re.createElement("li",null,Vt),re.createElement("li",{className:"btn-full-screen"},re.createElement(ye,{icon:`${qe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},xe=ee(76621),Ce=ee(22150),Te=ee(69677),Me=ee(71577),pt=Object.defineProperty,Ve=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,tt=(Se,Pe,Le)=>Pe in Se?pt(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,Ze=(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))Ie.call(Pe,Le)&&tt(Se,Le,Pe[Le]);return Se},bt=(Se,Pe)=>Ve(Se,gt(Pe));const wt={labelCol:{span:4},wrapperCol:{span:20}};var Kt=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return te.createElement(Ce.default,bt(Ze({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),te.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Te.default,null)),te.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Te.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Qt=ee(57444),rt=ee(70859),st=ee(14446),Ct=ee(71230),Gt=ee(63205),Ht=ee(67294),Bt=({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 qe=Le.toDataURL("image/png");return Ht.createElement(st.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ht.createElement(Ct.Z,{style:{height:"100vh"}},Ht.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qe,visible:!0,title:String(Date.now())},onOk:it=>{Se({src:it.url})},onClose:Pe})))},Ke=ee(23495);function Jt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Jt,go.CommandHandler),Jt.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},Jt.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")},Jt.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")},Jt.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")},Jt.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")},Jt.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")}},Jt.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")}},Jt.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(Vt){Vt instanceof go.Link||Le.push(Vt)});for(var Ne=0;Ne0){for(var Vt=it.elt(un-1);Vt!==null&&Vt.isTreeExpanded&&!Vt.isTreeLeaf;){var En=this._sortTreeChildrenByY(Vt);Vt=En.last()}Vt!==null&&Se.select(Vt)}else Se.select(qe)}}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 qe=Pe.findTreeParentNode();if(qe===null)break;var it=this._sortTreeChildrenByY(qe),un=it.indexOf(Pe);if(unit.y?1:qe.xit.x?1:0}),Pe},Jt.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},Jt.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(Jt.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(Jt.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 Mn=Jt,Hn=ee(18023),pn=ee(15746),kt=ee(33170),Qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ye=ee(67294),Je=(Se,Pe,Le)=>new Promise((Ne,qe)=>{var it=En=>{try{Vt(Le.next(En))}catch(Vn){qe(Vn)}},un=En=>{try{Vt(Le.throw(En))}catch(Vn){qe(Vn)}},Vt=En=>En.done?Ne(En.value):Promise.resolve(En.value).then(it,un);Vt((Le=Le.apply(Se,Pe)).next())});function ft({onCancel:Se,callback:Pe}){let Le=(0,te.useRef)(),Ne=(0,te.useRef)(),qe=(0,te.useRef)(),it=(0,te.useRef)(!1);const un=(0,te.useRef)(!1),[Vt,En]=(0,te.useState)(0);function Vn(){const Ot=Ke.bx.make,qn={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 Ke.S0(Ne.current,{padding:20,grid:Ot(Ke.s_,"Grid",Ot(Ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(Ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Cn=>{var nr=Cn.diagram.commandHandler.addTopLevelParts(Cn.diagram.selection,!0);nr||Cn.diagram.currentTool.doCancel()},commandHandler:Ot(Mn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Cn=>{var nr=Cn.subject;nr.location=nr.location.copy().snapToGridPoint(Cn.diagram.grid.gridOrigin,Cn.diagram.grid.gridCellSize),setTimeout(()=>{Cn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Cn=>{var nr=Cn.subject;setTimeout(()=>{Cn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Cn=>{var nr=Cn.parameter.part;nr.invalidateConnectedLinks();var wr=Cn.subject;Cn.diagram.toolManager.linkingTool.isForwards?wr.toNode.invalidateConnectedLinks():wr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=Ot(Ke.NB,"Auto",{locationSpot:Ke.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ke.$u(120,60),minSize:new Ke.$u(40,40),resizable:!0,resizeCellSize:new Ke.$u(10,10),rotatable:!0},new Ke.KX("location","loc",Ke.E9.parse).makeTwoWay(Ke.E9.stringify),new Ke.KX("desiredSize","size",Ke.$u.parse).makeTwoWay(Ke.$u.stringify),Ot(Ke.bn,{name:"SHAPE",fill:qn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ke.z6.AllSides,toSpot:Ke.z6.AllSides},new Ke.KX("figure"),new Ke.KX("fill"),new Ke.KX("stroke","borderColor"),new Ke.KX("strokeWidth","thickness"),new Ke.KX("strokeDashArray","dash")),Ot(Ke.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ot(Ke.al,{margin:1,textAlign:"center",overflow:Ke.al.OverflowEllipsis,editable:!0},new Ke.KX("text").makeTwoWay(),new Ke.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=Ot("ToolTip",Ot(Ke.s_,"Vertical",{maxSize:new Ke.$u(200,NaN)},Ot(Ke.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ke.KX("text")),Ot(Ke.al,{font:"10pt sans-serif",textAlign:"center"},new Ke.KX("text","details"))));function er(Cn,nr){var wr=(rr,ei)=>{rr.handled=!0,rr.diagram.model.commit(po=>{var ri=ei.part.adornedPart,xi=new Ke.E9().setRectSpot(ri.actualBounds,Cn);xi.subtract(ri.location),xi.scale(2,2),xi.x+=Math.sign(xi.x)*130,xi.y+=Math.sign(xi.y)*130,xi.add(ri.location),xi.snapToGridPoint(rr.diagram.grid.gridOrigin,rr.diagram.grid.gridCellSize);var Xi=po.copyNodeData(ri.data);po.setGroupKeyForNodeData(Xi,po.getGroupKeyForNodeData(ri.data)),po.addNodeData(Xi);var dt={from:ri.key,to:po.getKeyForNodeData(Xi)};po.addLinkData(dt);var ct=rr.diagram.findNodeForData(Xi);ct.location=xi,rr.diagram.select(ct),setTimeout(()=>{rr.diagram.commandHandler.editTextBlock()},20)})};return Ot(Ke.bn,{figure:nr,alignment:Cn,alignmentFocus:Cn.opposite(),width:Cn.equals(Ke.z6.Top)||Cn.equals(Ke.z6.Bottom)?25:18,height:Cn.equals(Ke.z6.Top)||Cn.equals(Ke.z6.Bottom)?18:25,fill:"orange",stroke:qn.white,strokeWidth:4,mouseEnter:(rr,ei)=>ei.fill="dodgerblue",mouseLeave:(rr,ei)=>ei.fill="orange",isActionable:!0,click:wr,contextClick:wr})}function Pn(Cn){return Ot(Ke.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:(nr,wr)=>wr.fill="dodgerblue",mouseLeave:(nr,wr)=>wr.fill="orange",click:(nr,wr)=>{nr.diagram.commandHandler.showContextMenu(wr.part.adornedPart)}},Cn||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=Ot(Ke.uz,"Spot",Ot(Ke.Vm,{padding:10}),er(Ke.z6.Top,"TriangleUp"),er(Ke.z6.Left,"TriangleLeft"),er(Ke.z6.Right,"TriangleRight"),er(Ke.z6.Bottom,"TriangleDown"),Pn({alignment:new Ke.z6(.75,0)}));function An(Cn,nr){return(wr,rr)=>{wr.handled=!0,wr.diagram.model.commit(ei=>{ei.set(rr.part.adornedPart.data,Cn,nr)})}}function Yn(Cn,nr){return nr||(nr="color"),Ot(Ke.bn,{width:16,height:16,stroke:"lightgray",fill:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.stroke="dodgerblue",mouseLeave:(wr,rr)=>rr.stroke="lightgray",click:An(nr,Cn),contextClick:An(nr,Cn)})}function yr(){return[Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.white,"fill"),Yn(qn.beige,"fill"),Yn(qn.extralightblue,"fill"),Yn(qn.extralightred,"fill"))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.lightgray,"fill"),Yn(qn.lightgreen,"fill"),Yn(qn.lightblue,"fill"),Yn(qn.lightred,"fill")))]}function lr(){return[Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.black),Yn(qn.green),Yn(qn.blue),Yn(qn.red))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Yn(qn.white),Yn(qn.magenta),Yn(qn.purple),Yn(qn.orange)))]}function ci(Cn,nr){return nr||(nr="thickness"),Ot(Ke.bn,"LineH",{width:16,height:16,strokeWidth:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:An(nr,Cn),contextClick:An(nr,Cn)})}function Po(Cn,nr){return nr||(nr="dash"),Ot(Ke.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:An(nr,Cn),contextClick:An(nr,Cn)})}function fr(){return[Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",ci(1),ci(2),ci(3),ci(4))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Po(null),Po([2,4]),Po([4,4])))]}function Vr(Cn,nr){return nr||(nr="figure"),Ot(Ke.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Cn,margin:1,background:"transparent",mouseEnter:(wr,rr)=>rr.fill="dodgerblue",mouseLeave:(wr,rr)=>rr.fill="lightgray",click:An(nr,Cn),contextClick:An(nr,Cn)})}Le.current.nodeTemplate.contextMenu=Ot("ContextMenu",Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Vr("Rectangle"),Vr("RoundedRectangle"),Vr("Ellipse"),Vr("Diamond"))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Vr("Parallelogram2"),Vr("ManualOperation"),Vr("Procedure"),Vr("Cylinder1"))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Vr("Terminator"),Vr("CreateRequest"),Vr("Document"),Vr("TriangleDown"))),yr(),lr(),fr()),Le.current.groupTemplate=Ot(Ke.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ke.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Cn,nr)=>{var wr=nr.addMembers(nr.diagram.selection,!0);wr||nr.diagram.currentTool.doCancel()},avoidable:!1},new Ke.KX("location","loc",Ke.E9.parse).makeTwoWay(Ke.E9.stringify),Ot(Ke.s_,"Auto",{name:"BODY"},Ot(Ke.bn,{parameter1:10,fill:qn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ke.z6.AllSides,toSpot:Ke.z6.AllSides},new Ke.KX("fill"),new Ke.KX("stroke","color"),new Ke.KX("strokeWidth","thickness"),new Ke.KX("strokeDashArray","dash")),Ot(Ke.Vm,{background:"transparent",margin:20})),Ot(Ke.al,{alignment:Ke.z6.Top,alignmentFocus:Ke.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ke.KX("text"),new Ke.KX("stroke","color"))),Le.current.groupTemplate.selectionAdornmentTemplate=Ot(Ke.uz,"Spot",Ot(Ke.s_,"Auto",Ot(Ke.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ot(Ke.Vm,{margin:1.5})),Pn({alignment:Ke.z6.TopRight,alignmentFocus:Ke.z6.BottomRight})),Le.current.groupTemplate.contextMenu=Ot("ContextMenu",yr(),lr(),fr()),Le.current.linkTemplate=Ot(Ke.rU,{layerName:"Foreground",routing:Ke.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ke.KX("fromSpot","fromSpot",Ke.z6.parse),new Ke.KX("toSpot","toSpot",Ke.z6.parse),new Ke.KX("fromShortLength","dir",Cn=>Cn>=1?10:0),new Ke.KX("toShortLength","dir",Cn=>Cn>=1?10:0),new Ke.KX("points").makeTwoWay(),Ot(Ke.bn,{strokeWidth:2},new Ke.KX("stroke","color"),new Ke.KX("strokeWidth","thickness"),new Ke.KX("strokeDashArray","dash")),Ot(Ke.bn,{segmentIndex:0,segmentOffset:new Ke.E9(15,0),segmentOrientation:Ke.rU.OrientAlong,alignmentFocus:Ke.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ke.KX("fill","color"),new Ke.KX("visible","dir",Cn=>Cn===1)),Ot(Ke.bn,{segmentIndex:-1,segmentOffset:new Ke.E9(-10,6),segmentOrientation:Ke.rU.OrientPlus90,alignmentFocus:Ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ke.KX("fill","color"),new Ke.KX("visible","dir",Cn=>Cn>=1),new Ke.KX("width","thickness",Cn=>7+3*Cn),new Ke.KX("height","thickness",Cn=>7+3*Cn),new Ke.KX("segmentOffset","thickness",Cn=>new Ke.E9(-15,4+1.5*Cn))),Ot(Ke.bn,{segmentIndex:0,segmentOffset:new Ke.E9(15,-6),segmentOrientation:Ke.rU.OrientMinus90,alignmentFocus:Ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ke.KX("fill","color"),new Ke.KX("visible","dir",Cn=>Cn===2),new Ke.KX("width","thickness",Cn=>7+3*Cn),new Ke.KX("height","thickness",Cn=>7+3*Cn),new Ke.KX("segmentOffset","thickness",Cn=>new Ke.E9(-15,4+1.5*Cn))),Ot(Ke.al,{alignmentFocus:new Ke.z6(0,1,-4,0),editable:!0},new Ke.KX("text").makeTwoWay(),new Ke.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=Ot(Ke.uz,Ot(Ke.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Yo(2)},new Ke.KX("pathPattern","thickness",Yo)),Pn({alignmentFocus:new Ke.z6(0,0,-6,-4)}));function Yo(Cn){return Ot(Ke.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Cn+4).toString()+" H3"})}function Io(Cn){var nr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Cn===0?nr="M0 0 M16 16 M0 8 L16 8":Cn===2&&(nr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ot(Ke.bn,{geometryString:nr,margin:2,background:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:An("dir",Cn),contextClick:An("dir",Cn)})}function ni(Cn){var nr=(wr,rr)=>{wr.handled=!0,wr.diagram.model.commit(ei=>{var po=rr.part.adornedPart;ei.set(po.data,Cn?"toSpot":"fromSpot",Ke.z6.stringify(Ke.z6.AllSides)),(Cn?po.toNode:po.fromNode).invalidateConnectedLinks()})};return Ot(Ke.bn,{width:12,height:12,fill:"transparent",mouseEnter:(wr,rr)=>rr.background="dodgerblue",mouseLeave:(wr,rr)=>rr.background="transparent",click:nr,contextClick:nr})}function gi(Cn,nr){var wr=0,rr=Ke.z6.RightSide;Cn.equals(Ke.z6.Top)?(wr=270,rr=Ke.z6.TopSide):Cn.equals(Ke.z6.Left)?(wr=180,rr=Ke.z6.LeftSide):Cn.equals(Ke.z6.Bottom)&&(wr=90,rr=Ke.z6.BottomSide),nr||(wr-=180);var ei=(po,ri)=>{po.handled=!0,po.diagram.model.commit(xi=>{var Xi=ri.part.adornedPart;xi.set(Xi.data,nr?"toSpot":"fromSpot",Ke.z6.stringify(rr)),(nr?Xi.toNode:Xi.fromNode).invalidateConnectedLinks()})};return Ot(Ke.bn,{alignment:Cn,alignmentFocus:Cn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:wr,background:"transparent",mouseEnter:(po,ri)=>ri.background="dodgerblue",mouseLeave:(po,ri)=>ri.background="transparent",click:ei,contextClick:ei})}Le.current.linkTemplate.contextMenu=Ot("ContextMenu",lr(),fr(),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Io(0),Io(1),Io(2))),Ot("ContextMenuButton",Ot(Ke.s_,"Horizontal",Ot(Ke.s_,"Spot",ni(!1),gi(Ke.z6.Top,!1),gi(Ke.z6.Left,!1),gi(Ke.z6.Right,!1),gi(Ke.z6.Bottom,!1)),Ot(Ke.s_,"Spot",{margin:new Ke.Zt(0,0,0,2)},ni(!0),gi(Ke.z6.Top,!0),gi(Ke.z6.Left,!0),gi(Ke.z6.Right,!0),gi(Ke.z6.Bottom,!0)))));const Vi=`{ "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 fn=["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 xo(Cn){return console.log("shapeName:",Cn),fn.indexOf(Cn)>=0}var Yi=new Ke.YI(qe.current,{maxSelectionCount:1,linkTemplate:Ot(Ke.rU,{locationSpot:Ke.z6.Center,selectionAdornmentTemplate:Ot(Ke.uz,"Link",{locationSpot:Ke.z6.Center},Ot(Ke.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ot(Ke.bn,{toArrow:"Standard",stroke:null}))},{routing:Ke.rU.AvoidsNodes,curve:Ke.rU.JumpOver,corner:5,toShortLength:4},new Ke.KX("points"),Ot(Ke.bn,{isPanelMain:!0,strokeWidth:2}),Ot(Ke.bn,{toArrow:"Standard",stroke:null})),model:new Ke.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ke.bn.getFigureGenerators().toArray().map(Cn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Cn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(Cn){var nr;const wr=Cn.subject.part;var rr=(nr=document.activeElement)==null?void 0:nr.value;typeof rr=="string"&&rr.trim()===""&&Le.current.model.commit(function(ei){ei.set(wr.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Yi.nodeTemplate=Ot(Ke.NB,"Auto",{locationSpot:Ke.z6.Center},new Ke.KX("location","location",Ke.E9.parse).makeTwoWay(Ke.E9.stringify),Ot(Ke.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 Ke.KX("stroke").makeTwoWay(),new Ke.KX("fill").makeTwoWay(),new Ke.KX("figure")),Ot(Ke.al,{margin:new Ke.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ke.$u(16,16),maxSize:new Ke.$u(10,NaN),textAlign:"center",editable:!0},new Ke.KX("key").makeTwoWay())),setTimeout(()=>{Le.current.grid=Ot(Ke.s_,"Grid",Ot(Ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(Ke.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 Pr=()=>Je(this,null,function*(){var Ot=Le.current.makeImage();const qn=yield(0,kt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ot.src}});Pe({src:qn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{Vn()},500),En(Vt+1),()=>{Le.current=null}),[]),Ye.createElement("div",{ref:un,className:it.current?`${Qe.maxH60} body-overflow-initial`:"body-overflow-initial"},Ye.createElement(st.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Vt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ye.createElement(Ct.Z,null,Ye.createElement(pn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ye.createElement(pn.Z,{onClick:()=>{var Ot,qn,er=Le.current.selection.first();if(it.current=!it.current,document.activeElement&&er){let Pn=(qn=(Ot=document.activeElement)==null?void 0:Ot.value)==null?void 0:qn.trim();typeof Pn=="string"&&Le.current.model.commit(function(An){An.set(er.data,"text",Pn||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}En(Vt+1)}},Ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},Ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Qe.flowChartWrp},Ye.createElement("div",{style:{display:"flex",height:"100%"}},Ye.createElement("div",{style:{width:"300px",height:"100%"}},Ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:Qe.myPaletteDiv,ref:qe})),Ye.createElement("div",{style:{flex:1,position:"relative"}},Ye.createElement("div",{ref:Ne,style:{height:"80vh"}}))),Ye.createElement("div",{className:"tr"},Ye.createElement(Me.ZP,{size:"large",onClick:Pr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var At=ft,et=ee(78045),vt=ee(31795);const Pt=et.ZP.Group,Xe={margin:"0 8px"};var Zt=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return te.createElement(Ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Xe},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Xe},"\u884C\u6570"),te.createElement(Ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(vt.Z,null)),te.createElement("span",{style:Xe},"\u5217\u6570"),te.createElement(Ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(vt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Xe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Ce.default.Item,{name:"align"},te.createElement(Pt,null,te.createElement(et.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(et.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(et.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(et.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},He=ee(47897),ut=ee(61016),wn=ee.n(ut),ht=(0,te.forwardRef)(({use3d:Se,width:Pe,height:Le,callback:Ne,showSaveButton:qe},it)=>{const un=(0,te.useRef)(),Vt=(0,te.useRef)(),[En,Vn]=(0,te.useState)(!1),Pr=(0,te.useRef)({id:un,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,te.useEffect)(()=>{Vt.current=new(wn())(Pr.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const Ot=()=>{var qn=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(qn),qn};return(0,te.useEffect)(()=>{Pr.current.appName=En?"3D":"graphing",Vt.current.inject("applet_container")},[En]),(0,te.useEffect)(()=>{Vn(Se)},[Se]),(0,te.useImperativeHandle)(it,()=>({getImgData:Ot})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:un}),te.createElement(Ct.Z,{align:"middle"},te.createElement(pn.Z,{flex:1},te.createElement(He.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:En,onChange:qn=>Vn(qn)})),te.createElement(pn.Z,null,te.createElement(Me.ZP,{size:"large",onClick:Ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),$t=ee(36527),on=ee(25934),bn=ee(2453);const Kn="link",Dt="upload-image",Rn="add-flowchart",Gn="draw-image",jr="add-flowchart",mr="code-block",ur="add-table",Tn="------------",Or={default:Tn,left:`:${Tn}`,center:`:${Tn}:`,right:`${Tn}:`};var zr=ee(99914),lo=(Se,Pe,Le)=>new Promise((Ne,qe)=>{var it=En=>{try{Vt(Le.next(En))}catch(Vn){qe(Vn)}},un=En=>{try{Vt(Le.throw(En))}catch(Vn){qe(Vn)}},Vt=En=>En.done?Ne(En.value):Promise.resolve(En.value).then(it,un);Vt((Le=Le.apply(Se,Pe)).next())});function di(){}let Ko=0;const pr=1e4,Xr="\u2581",to="@\u2581\u2581@",mo="@\u2581@",Kr=` **\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`,Vo=["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 Do(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const Cr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ei={[Cr+"-B"]:"bold",[Cr+"-I"]:"italic"},cn={[Kn]:"\u6DFB\u52A0\u94FE\u63A5",[mr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Dt]:"\u6DFB\u52A0\u56FE\u7247",[Gn]:"\u6DFB\u52A0\u753B\u56FE",[Rn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ur]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ge=({defaultValue:Se="",onChange:Pe,width:Le="100%",height:Ne=400,miniToolbar:qe=!1,isFocus:it=!1,watch:un,insertTemp:Vt,mode:En="markdown",id:Vn="markdown-editor-id",showResizeBar:Pr=!1,noStorage:Ot=!1,showNullButton:qn=!1,showNullProgramButton:er=!1,hidetoolBar:Pn=!1,fullScreen:An=!1,onBlur:Yn,onCMBeforeChange:yr,onFullScreen:lr,className:ci="",disablePaste:Po=!1,disabled:fr=!1,disabledFill:Vr=!1,placeholder:Yo="",values:Io="",extraUse:ni,isShowTool:gi=!0,disableImageUpload:Vi=!1})=>{const[fn,xo]=(0,te.useState)(null),[Yi,Cn]=(0,te.useState)(Se),[nr,wr]=(0,te.useState)(un),[rr,ei]=(0,te.useState)(An),[po,ri]=(0,te.useState)(""),[xi,Xi]=(0,te.useState)(0),[dt,ct]=(0,te.useState)(Ne),[It,Ut]=(0,te.useState)(!1),yn=(0,te.useRef)((0,on.Z)()),gr=(0,te.useRef)(!1),_r=(0,te.useRef)(),[Fr,Qr]=(0,te.useState)(0),[Yr,Bo]=(0,te.useState)(0),No=(0,te.useRef)(),ti=(0,te.useRef)(),yt=(0,te.useRef)(),_t=(0,te.useRef)(),jt=()=>lo(void 0,null,function*(){var nn;const Wt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:yn.current}});(nn=Wt==null?void 0:Wt.attachments)!=null&&nn.length&&(console.log("cm:",fn,No),Wt.attachments.map(qt=>{qt.content_type.indexOf("image")>-1?fn.replaceSelection(`![,](/api/attachments/${qt.id}?type=${qt.content_type})`):qt.content_type.indexOf("video")>-1?fn.replaceSelection(``):qt.content_type.indexOf("pdf")>-1?fn.replaceSelection(`${qt.name}`):fn.replaceSelection(`[${qt.name}](${ENV.API_SERVER}/api/attachments/${qt.id}?type=${qt.content_type})`)}))});(0,te.useEffect)(()=>{const nn=window.scrollY||window.pageYOffset;Cn(Io),fn==null||fn.setValue(Io),window.scrollTo(0,nn)},[Io]),(0,te.useEffect)(()=>{lr==null||lr(rr)},[rr]),(0,te.useEffect)(()=>{if(No.current){let nn=function(qt,hn){var Qn,Ue;if(Po){hn.preventDefault();return}const Fe=hn.clipboardData;if(Fe){const nt=Fe.types.toString(),St=Fe.items;if(nt==="Files"||Fe.types.indexOf("Files")>-1){if(hn.preventDefault(),En=="stex")return;try{let Mt=St[1];((Qn=St[0])==null?void 0:Qn.kind)==="file"&&(Mt=St[0]);const Ft=Mt.getAsFile(),ln=Ft.name.split(".").pop();if(Vi&&((Ue=Ft==null?void 0:Ft.type)==null?void 0:Ue.indexOf("image"))>-1)return!0;(0,rt.I)(Ft,gn=>{var Nn,Bn,Fn;gn.id?((Nn=Ft==null?void 0:Ft.type)==null?void 0:Nn.indexOf("image"))>-1?Wt.replaceSelection(``):((Bn=Ft==null?void 0:Ft.type)==null?void 0:Bn.indexOf("video"))>-1?Wt.replaceSelection(``):((Fn=Ft==null?void 0:Ft.type)==null?void 0:Fn.indexOf("pdf"))>-1?Wt.replaceSelection(`${Ft.name}`):Vo.includes(ln)?Wt.replaceSelection(`${Ft.name}`):Wt.replaceSelection(`[${Ft.name}](/api/attachments/${gn.id}?type=${gn.content_type})`):(gn==null?void 0:gn.status)===401&&(bn.ZP.warning((gn==null?void 0:gn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Mt){bn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Wt=be().fromTextArea(No.current,{mode:En,lineNumbers:!qe,lineWrapping:!0,value:Se,autoCloseTags:!er,autoCloseBrackets:!0});return Wt.on("keyup",function(qt,hn){hn.keyCode===8&&(qt.getValue()==""?Wt.setOption("placeholder",Yo):Wt.setOption("placeholder",null))}),Wt.on("keydown",function(qt,hn){if(hn.keyCode===8){var Qn=zt(qt);Qn&&hn.preventDefault()}}),it&&Wt.focus(),Wt.on("paste",nn),Wt.on("dragleave",function(qt,hn){ti.current.classList.remove("mouse-hover-md")}),fr&&Wt.on("beforeChange",function(qt,hn){(hn.origin==="paste"||hn.origin==="+input")&&hn.cancel()}),xo(Wt),()=>{Wt.off("paste",nn)}}},[]);const ze=(0,te.useCallback)(()=>{if(ti.current)try{}catch(nn){console.log(nn,"---- to set md editor body height")}},[dt,ti,rr]);(0,te.useEffect)(()=>{function nn(){let Wt=new ve.Z(qt=>{for(let hn of qt)(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&(ze(),fn.setSize("100%","100%"),fn.refresh())});return Wt.observe(No.current.parentElement),Wt}if(fn){const Wt=nn();return()=>{var qt,hn;(qt=No.current)!=null&&qt.parentElement&&Wt.unobserve((hn=No.current)==null?void 0:hn.parentElement)}}},[fn,ze]),(0,te.useEffect)(()=>{if(fn){let nn=[];for(const[Wt,qt]of Object.entries(Ei)){let hn={[Wt]:()=>{tn(qt)}};nn.push(hn),fn.addKeyMap(hn)}return _r.current=setInterval(()=>{gr.current&&jt()},4e3),()=>{clearInterval(_r.current);for(let Wt of nn)fn.removeKeyMap(Wt)}}},[fn]),(0,te.useEffect)(()=>{An!==rr&&ei(An)},[An]),(0,zr.Z)(()=>{if(!Ot&&xi>0){let nn=new Date().getTime(),Wt=window.sessionStorage.getItem(Vn);nn>=xi+pr&&(!Wt||Wt!==Yi)&&(window.sessionStorage.setItem(Vn,Yi),Ut(!0))}},pr),(0,te.useEffect)(()=>{wr(un)},[fn,un]),(0,te.useEffect)(()=>{fn&&it&&fn.focus()},[fn,it]),(0,te.useEffect)(()=>{if(nr&&fn){let nn=function(qt){let hn=qt.target;if(_t.current){let Qn=hn.scrollTop/hn.scrollHeight;_t.current.scrollTop=_t.current.scrollHeight*Qn}};const Wt=fn.getScrollerElement();return Wt.addEventListener("scroll",nn),()=>{Wt.removeEventListener("scroll",nn)}}},[fn,nr]),(0,te.useEffect)(()=>{if(fn&&yr){let nn=function(Wt,qt){yr(Wt,qt)};return fn.on("beforeChange",nn),()=>{fn.off("beforeChange",nn)}}},[fn,yr]),(0,te.useEffect)(()=>{if(fn&&Yn){let nn=function(){Yn(fn.getValue())};return fn.on("blur",nn),()=>{fn.off("blur",nn)}}},[fn,Yn]);function zt(nn,Wt){var qt=nn.getDoc(),hn=qt.getCursor(),Qn=qt.getLine(hn.line),Ue=Qn.charAt(hn.ch-1),Fe=Qn.lastIndexOf("@\u2581@",hn.ch),nt=Qn.lastIndexOf("@\u2581\u2581@",hn.ch),St=Fe>nt?Fe:nt,Mt=Fe>nt?3:4;if(to.indexOf(Ue)===-1)return null;if(console.log("change1:",Wt,nn,Qn,hn,St,Fe,nt,Ue),St>=0&&hn.ch-St<5){var Ft=St+Mt;return qt.replaceRange("",{line:hn.line,ch:St},{line:hn.line,ch:Ft}),{line:hn.line,ch:Ft}}return null}(0,te.useEffect)(()=>{if(fn){let nn=function(Wt,qt){const hn=Wt.getValue();Cn(hn),Xi(new Date().getTime()),Wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(er?Pe(hn,Un(hn)):Pe(hn))};return fn.on("change",nn),()=>{fn.off("change",nn)}}},[fn,Pe]),(0,te.useEffect)(()=>{if(fn)if(Se==null)fn.setValue(""),Cn("");else{const nn=window.scrollY||window.pageYOffset;Se!==fn.getValue()&&(fn.setValue(Se),Cn(Se),fn.setCursor(fr?1:fn.lineCount(),0),window.scrollTo(0,nn))}},[fn,Se]);const tn=(0,te.useCallback)(nn=>{const Wt=fn.getCursor(),qt=fn.getSelection();let hn=qt.split(` `);switch(nn){case"bold":return fn.replaceSelection("**"+qt+"**"),qt===""&&fn.setCursor(Wt.line,Wt.ch+2),fn.focus();case"italic":return fn.replaceSelection("*"+qt+"*"),qt===""&&fn.setCursor(Wt.line,Wt.ch+1),fn.focus();case"code":return fn.replaceSelection("`"+qt+"`"),qt===""&&fn.setCursor(Wt.line,Wt.ch+1),fn.focus();case"inline-latex":return ri("inline-latex"),fn.focus();case"latex":return fn.replaceSelection("```latex\n"+qt+"\n```"),fn.setCursor(Wt.line+1,qt.length+1),fn.focus();case"line-break":return fn.replaceSelection(`
`),fn.focus();case"list-ul":return qt===""?fn.replaceSelection("- "+qt):fn.replaceSelection(hn.map(Qn=>Qn===""?"":`- ${Qn}`).join(` `)),fn.focus();case"list-ol":return qt===""?fn.replaceSelection("1. "+qt):fn.replaceSelection(hn.map((Qn,Ue)=>Qn===""?"":`${Ue+1}. ${Qn}`).join(` `)),fn.focus();case"add-null-ch":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(Xr),fn.focus();case"add-signal":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(mo),fn.focus();case"add-multiple":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(to),fn.focus();case"inster-template-1":return qt===""&&fn.setCursor(Wt.line,Wt.ch),fn.replaceSelection(Kr),fn.focus();case"eraser":return fn.setValue(""),fn.focus();case"trigger-watch":return wr(!nr),fn.focus();case"trigger-full-screen":return ei(!rr),fn.focus();case Kn:ri(Kn);return;case mr:ri(mr);return;case Dt:ri(Dt);return;case Gn:ri(Gn);return;case"maths-latex":ri("maths-latex");return;case Rn:ri(Rn);return;case ur:ri(ur);return;default:throw new Error}},[fn,nr,rr]),dn=(0,te.useCallback)((nn,Wt)=>{var qt,hn,Qn,Ue,Fe,nt;if(ri(""),!(Vi&&po==Dt))switch(po){case Kn:const{title:gn,link:Nn}=nn;return fn.replaceSelection(`[${gn}](${Nn})`),fn.focus();case mr:const{language:Bn,content:Fn}=nn;return fn.replaceSelection(["```"+Bn,Fn,"```"].join(` `)),fn.focus();case"maths-latex":for(var St=atob(nn),Mt=new Uint8Array(St.length),Ft=0;Ft{vo.id?fn.replaceSelection(`![,](/api/attachments/${vo.id}?type=${vo.content_type})`):(vo==null?void 0:vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fn.replaceSelection("`$$"+nn+"$$`");break;case Dt:case Gn:case jr:const{src:jn,alt:Jn}=nn,or=Wt,Jr=(Qn=(hn=(qt=or==null?void 0:or.name)==null?void 0:qt.split("."))==null?void 0:hn.pop)==null?void 0:Qn.call(hn);return((Ue=or==null?void 0:or.type)==null?void 0:Ue.indexOf("image"))>-1||!(or!=null&&or.type)?or.align||or.width?fn.replaceSelection(`

${Jn||

`):fn.replaceSelection(`${Jn||`):((Fe=or==null?void 0:or.type)==null?void 0:Fe.indexOf("video"))>-1?fn.replaceSelection(``):((nt=or==null?void 0:or.type)==null?void 0:nt.indexOf("pdf"))>-1?fn.replaceSelection(`${or.name}`):Vo.includes(Jr)?fn.replaceSelection(`${or.name}`):fn.replaceSelection(`[${or.name}](${jn})`),fn.focus();case ur:const{row:bo,col:Zr,align:ao}=nn;let co=` `;for(let vo=0;vo{switch(po){case Kn:return te.createElement(Kt,{callback:dn,onCancel:Rt});case mr:return te.createElement(Qt.Z,{callback:dn,onCancel:Rt});case Dt:return te.createElement(rt.Z,{callback:dn,onCancel:Rt});case Rn:return te.createElement(At,{callback:dn,onCancel:Rt});case ur:return te.createElement(Zt,{callback:dn,onCancel:Rt});case"maths-latex":return te.createElement(ht,{showSaveButton:!0,callback:dn});case"inline-latex":return te.createElement($t.Z,{showSaveButton:!0,callback:dn});default:return null}},[po]);function Rt(){ri("")}(0,te.useEffect)(()=>{if(yt.current){let nn=function(Fe){Qn=!0,Ue=Fe.pageY},Wt=function(){Qn=!1},qt=function(Fe){if(Qn){let nt=Fe.pageY-Ue;nt<0&&(nt=0),nt>300&&(nt=300);let St=Ne+nt+"px";ct(St)}},hn=yt.current,Qn=!1,Ue=0;return hn.addEventListener("mousedown",nn),document.addEventListener("mousemove",qt),document.addEventListener("mouseup",Wt),()=>{hn.removeEventListener("mousedown",nn),document.removeEventListener("mousemove",qt),document.removeEventListener("mouseup",Wt)}}},[fn,yt]),(0,te.useEffect)(()=>{ct(Ne)},[Ne]);const Nt=Do(Le),vn=Do(dt),In={width:Nt,height:vn},Xn=(0,te.useMemo)(()=>{if(xi){let nn=new Date(xi),Wt=nn.getHours(),qt=nn.getMinutes(),hn=nn.getSeconds();return Wt=Wt<10?"0"+Wt:Wt,qt=qt<10?"0"+qt:qt,hn=hn<10?"0"+hn:hn,`${Wt}:${qt}:${hn}`}return 0},[xi]),Un=nn=>{const Wt=[];if(er){let qt=-1;nn=nn.replace(/(@▁▁@|@▁@)/g,function(hn,Qn,Ue){Wt.push({multiLine:hn!==mo})})}return Wt};function tr(){window.sessionStorage.removeItem(Vn),Ut(!1),Xi(0)}function cr(){Ut(!1),Xi(0),fn.setValue(window.sessionStorage.getItem(Vn))}(0,te.useEffect)(()=>{cn[po]&&po!==Gn&&po!==Rn&&setTimeout(()=>{const nn=document.getElementsByClassName("markdown-popup-form")[0],Wt=window.innerWidth/2-nn.offsetWidth/2,qt=window.innerHeight/2-nn.offsetHeight/2;Qr(Wt),Bo(qt)},0)},[po]);const Ar=nn=>{nn.preventDefault();const Wt=nn.clientX-Fr,qt=nn.clientY-Yr;document.body.onmousemove=hn=>{let Qn=hn.clientX-Wt,Ue=hn.clientY-qt;const Fe=document.getElementsByClassName("markdown-popup-form")[0],nt=window.innerWidth-Fe.offsetWidth,St=window.innerHeight-Fe.offsetHeight;Qn=Math.max(0,Math.min(Qn,nt)),Ue=Math.max(0,Math.min(Ue,St)),Ln(hn.clientX,hn.clientY,Wt,qt)&&(Qr(Qn),Bo(Ue))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ln=(nn,Wt,qt,hn)=>{const Qn=document.body.clientHeight,Ue=document.body.clientWidth;return nn<20&&qt>nn||nn>Ue-20&&qtWt||Wt>Qn-20&&hnTe in Ce?me(Ce,Te,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ce[Te]=Me,x=(Ce,Te)=>{for(var Me in Te||(Te={}))y.call(Te,Me)&&b(Ce,Me,Te[Me]);if(a)for(var Me of a(Te))E.call(Te,Me)&&b(Ce,Me,Te[Me]);return Ce},z=(Ce,Te)=>re(Ce,ne(Te));const{useForm:oe}=te.default,ie={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var ye=({callback:Ce,onCancel:Te})=>{const[Me]=oe();let pt=(0,le.useRef)();function Ve(De){pt.current.width=Me.getFieldValue("width"),pt.current.align=Me.getFieldValue("align"),Ce(De,pt.current)}function gt(De,Ie){if(De.status===-1){ue.ZP.error(De.message);return}Me.setFieldsValue({src:`/api/attachments/${De.id}`,type:Ie.type})}function Ae(De){let Ie=De.target.files[0];pt.current=Ie,xe(Ie,gt)}return se.createElement(te.default,z(x({form:Me},ce),{className:"upload-image-panel",onFinish:Ve,style:{width:470,overflow:"hidden"}}),se.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},se.createElement(be.default,{style:ie})),se.createElement(_e,{onFileChange:Ae}))),se.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(be.default,{style:{width:264}})),se.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement(ve.Z,null,se.createElement(te.default.Item,{name:"width",style:{margin:0}},se.createElement(de.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(te.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(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(ae.ZP,{type:"default",onClick:Te},"\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,Te){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,fe.bg)())throw ue.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 pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(Ve){Te(JSON.parse(Ve.target.responseText),Ce)},!1),pt.addEventListener("error",function(Ve){console.error(Ve)},!1),pt.open("POST",`${he.KI}/api/attachments.json`),pt.send(Me)}},76621:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return be}});var te=ee(67294),ue=ee(73935);class be extends te.Component{constructor(de){super(de);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:de}=this.props;return(0,ue.createPortal)(de,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(ot,Ge,ee){"use strict";var te=ee(12867),ue=ee(11713),be=ee(47897),ve=ee(67294);const de=ue.default.Option;Ge.Z=({isTheoretical:pe,onFontSizeChange:ae,cmFontSize:he,cmCodeMode:le,autoFormat:fe,onCodeModeChange:se,onTabToSpace:me,onAutoFormat:re,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x,shixun_environment_id:z,shixun_environments:oe})=>{var ie;const ce={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},ye=(ie=oe==null?void 0:oe.find(_e=>_e.shixun_environment_id===z))==null?void 0:ie.program_language;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(ue.default,{bordered:!1,size:"small",value:le,onChange:se},ve.createElement(de,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(de,{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(ue.default,{bordered:!1,size:"small",value:he,onChange:ae},ve.createElement(de,{value:12},"12px"),ve.createElement(de,{value:14},"14px"),ve.createElement(de,{value:16},"16px"),ve.createElement(de,{value:18},"18px"),ve.createElement(de,{value:20},"20px"),ve.createElement(de,{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,ye&&ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),ve.createElement("span",null,ye)),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ve.createElement("span",null,ce[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(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ue}});var te=ee(67294);function ue(be,ve){const de=(0,te.useRef)();(0,te.useEffect)(()=>{de.current=be}),(0,te.useEffect)(()=>{function pe(){de.current()}if(ve!==null){let ae=setInterval(pe,ve);return()=>clearInterval(ae)}},[ve])}},72971:function(ot,Ge,ee){"use strict";ee.d(Ge,{Im:function(){return Ce},ZP:function(){return Ae},gZ:function(){return Ve}});var te=ee(67294),ue=ee(69677),be=ee(71577),ve=ee(42922),de=ee(53978),pe=ee(94189),ae=ee(19575),he=ee(7621),le=ee(85725),fe=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,z=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ie=(De,Ie,tt)=>Ie in De?y(De,Ie,{enumerable:!0,configurable:!0,writable:!0,value:tt}):De[Ie]=tt,ce=(De,Ie)=>{for(var tt in Ie||(Ie={}))z.call(Ie,tt)&&ie(De,tt,Ie[tt]);if(x)for(var tt of x(Ie))oe.call(Ie,tt)&&ie(De,tt,Ie[tt]);return De},ye=(De,Ie)=>E(De,b(Ie));const{TextArea:_e}=ue.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 Te=(De=>(De[De.SET_VISIBLE=0]="SET_VISIBLE",De[De.SET_TABINDEX=1]="SET_TABINDEX",De))(Te||{});function Me(De,Ie){switch(Ie.type){case 0:return ye(ce({},De),{visible:Ie.payload});case 1:return ye(ce({},De),{tabIndex:Ie.payload});default:throw new Error}}function pt({value:De,className:Ie}){const[tt,Ze]=(0,te.useState)(!1),bt=(0,te.useRef)(),wt=(0,te.useRef)();return(0,te.useEffect)(()=>{tt&&(wt.current.reset(),wt.current.write((0,fe.pp)(De||"")))},[De,tt]),(0,te.useEffect)(()=>{var Kt,Qt,rt,st;if(bt.current){wt.current=new me.Terminal({fontSize:14,disableStdin:!0}),wt.current.open(bt.current);const Ct=bt.current.offsetWidth-14,Gt=((st=(rt=(Qt=(Kt=wt.current)==null?void 0:Kt._core)==null?void 0:Qt._renderService)==null?void 0:rt.dimensions)==null?void 0:st.actualCellWidth)||9.5,Ht=Math.ceil(Ct/Gt);wt.current.resize(Ht,8),Ze(!0)}},[]),a.createElement("div",{ref:bt,className:ne()("XtermText-valueRef",Ie)})}function Ve(De){const{status:Ie,error_msg:tt,output:Ze,input:bt,expected_output:wt,is_file:Kt,input_file_url:Qt,output_file_url:rt,expected_output_file_url:st}=De;let Ct=null;const Gt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Ie){case pe.h.NOMATCH:Ct=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!Kt&&a.createElement(pt,{className:"mb10",value:bt}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(Qt,bt)},bt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!Kt&&a.createElement(pt,{className:"mb10",value:Ze&&ae.Base64.decode(Ze)||""}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(rt,Ze)},Ze)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!Kt&&a.createElement(pt,{className:"mb10",value:wt&&ae.Base64.decode(wt)||""}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(st,wt)},wt)));break;case pe.h.EXECUTEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Kt&&a.createElement(le.Z,{value:bt,style:Gt}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(Qt,bt)},bt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Kt&&a.createElement(le.Z,{value:bt,style:Gt}),Kt&&a.createElement("div",{style:Gt},a.createElement("a",{onClick:()=>(0,fe.LR)(Qt,bt)},bt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.PODFAILURE:Ct=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Ct=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Ct," ")}function gt(De){const{status:Ie,error_msg:tt,execute_time:Ze,output:bt,input:wt,expected_output:Kt,is_file:Qt,input_file_url:rt,output_file_url:st,expected_output_file_url:Ct}=De;let Gt=null;switch(Ie){case pe.h.OK:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ze,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ae.Base64.decode(bt)));break;case pe.h.NOMATCH:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,wt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",bt&&ae.Base64.decode(bt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",Kt&&ae.Base64.decode(Kt)));break;case pe.h.EXECUTEFAILURE:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,wt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,wt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(tt)));break;case pe.h.PODFAILURE:Gt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Gt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Gt," ")}var Ae=({id:De,is_file:Ie,input:tt,debuging:Ze,submitting:bt,executingMessage:wt,debugResult:Kt,onChangeInput:Qt,onDebugCode:rt,onSubmitCode:st})=>{const[Ct,Gt]=(0,te.useReducer)(Me,xe),{visible:Ht,tabIndex:Bt}=Ct;(0,te.useEffect)(()=>{Gt({type:0,payload:!1})},[De]);function Ke(pn){let kt=pn.target.id;Gt({type:1,payload:kt})}function Jt(){Gt({type:0,payload:!Ht})}const Mn=(0,te.useMemo)(()=>{if(Kt){const{status:pn}=Kt;return a.createElement(a.Fragment,null,gt(Kt))}return null},[Kt]);function Hn(){Gt({type:0,payload:!0}),Gt({type:1,payload:"1"}),rt()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Ht?"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:Ie?"":tt,onChange:Qt}),rightNode:Ze?a.createElement(he.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):Kt?Mn: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 ${Ht?"up":""}`,onClick:Jt},Ht?a.createElement(ve.Z,null):a.createElement(de.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:Ze,onClick:Hn},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:bt,disabled:bt,onClick:()=>{Gt({type:0,payload:!1}),st()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},10903:function(ot,Ge,ee){"use strict";ee.r(Ge),ee.d(Ge,{default:function(){return el}});var te=ee(67294),ue=ee(53555),be=ee(32693),ve=ee(35973),de=ee(55054),pe=ee(2453),ae=ee(14446),he=ee(57953),le=ee(11713),fe=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),z=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=(Re,je,We)=>je in Re?z(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Ce=(Re,je)=>{for(var We in je||(je={}))ye.call(je,We)&&xe(Re,We,je[We]);if(ce)for(var We of ce(je))_e.call(je,We)&&xe(Re,We,je[We]);return Re},Te=(Re,je)=>oe(Re,ie(je));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var pt=(Re=>(Re[Re.set_font_size=0]="set_font_size",Re[Re.set_theme=1]="set_theme",Re[Re.on_tab_to_space=2]="on_tab_to_space",Re[Re.set_show_editor_setting=3]="set_show_editor_setting",Re))(pt||{});function Ve(Re,je){switch(je.type){case 3:return Te(Ce({},Re),{showEditorSetting:je.payload});case 1:return Te(Ce({},Re),{theme:je.payload});case 0:return Te(Ce({},Re),{fontSize:je.payload});case 2:return Te(Ce({},Re),{tabToSpace:je.payload});default:throw new Error}}var gt=({isLoading:Re,value:je,onChange:We,language:ir,onUpdateCode:_n,ActionBarRender:rn=Sn=>x.createElement(Ae,{onShowCodeSetting:Sn})})=>{const[Sn,Xt]=(0,te.useReducer)(Ve,Me),{theme:mn,fontSize:kn,showEditorSetting:wo,tabToSpace:Dr}=Sn,To=(0,te.useRef)(),br=(0,te.useRef)(),yo={onFontSizeChange:Fo=>{Xt({type:0,payload:Fo}),(0,E.t)("cmFontSize",Fo)},tabToSpace:Dr,cmFontSize:kn,className:"oj",cmCodeMode:mn,onTabToSpace:Fo=>{Xt({type:2,payload:Fo}),(0,E.t)("cmTabToSpace",Fo)},onCodeModeChange:Fo=>{Xt({type:1,payload:Fo}),(0,E.t)("cmCodeMode",Fo)}};function kr(){Xt({type:3,payload:!1})}function bi(){Xt({type:3,payload:!0})}const fo={value:je,language:ir,theme:mn,height:"calc(100% - 56px)",options:{fontSize:kn,insertSpaces:Dr},onChange:Fo=>{We(Fo),br.current=Fo,clearTimeout(To.current),To.current=setTimeout(()=>{_n(br.current)},1e4)},onEditBlur:Fo=>{br.current&&_n(br.current)}};return x.createElement(te.Fragment,null,x.createElement("div",{className:"code-panel-container"},rn(bi),!Re&&x.createElement(a.ZP,Ce({},fo))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:wo,onClose:kr},x.createElement(b.Z,Ce({},yo)))))};function Ae({onShowCodeSetting:Re}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Re},x.createElement("i",{className:"iconfont icon-shezhi"})))}var De=ee(19575),Ie=ee(77969),tt=ee(72971),Ze=ee(69677),bt=ee(22150),wt=ee(71577);const{TextArea:Kt}=Ze.default,Qt=5e3;var rt=({callback:Re,onCancel:je,notes:We})=>{function ir(_n){Re(_n)}return te.createElement(bt.default,{className:"note-form-panel",onFinish:ir,initialValues:{notes:We}},te.createElement(bt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Qt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Qt}`}]},te.createElement(Kt,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),te.createElement(bt.default.Item,{style:{textAlign:"right"}},te.createElement(wt.ZP,{type:"ghost",onClick:je,style:{marginRight:10}}," \u53D6\u6D88 "),te.createElement(wt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},st={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},Ct={pagination:"pagination___npPu7",info:"info___aRH6C"},Gt=ee(9430),Ht=ee(28452),Bt=ee(3407),Ke=ee(18699),Jt=ee(94189),Mn=ee(28706),Hn=ee(27484),pn=ee.n(Hn);const{Column:kt}=Gt.default;var Qe=({submitResult:Re,submitting:je,submitRecords:We,page:ir,onPageChange:_n,topicId:rn})=>{const{status:Sn,id:Xt,input:mn,output:kn,expected_output:wo,is_file:Dr,input_file_url:To,output_file_url:br,expected_output_file_url:yo,error_msg:kr}=Re||{},{records:bi,records_count:fo}=We||{},Fo=(0,ve.useParams)();function Di(){Dr?(0,Mn.vQ)(De.Base64.decode(kr)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Mn.vQ)(De.Base64.decode(kn)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return te.createElement(he.Z,{spinning:je,tip:"\u8BC4\u6D4B\u4E2D...",indicator:te.createElement(Bt.Z,{style:{fontSize:24},spin:!0})},Xt?te.createElement(te.Fragment,null,te.createElement("ul",{className:Ct.info},te.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",te.createElement("span",{className:Sn===Jt.h.OK?"c-green":"c-red"},tt.Im[Sn])),te.createElement("li",{className:Ct.error},te.createElement("a",{onClick:Di},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",te.createElement(Ke.Z,null)," ")),te.createElement("li",null,te.createElement(ve.Link,{to:`/problems/${rn}/record-detail/${Xt}?backId=${Fo==null?void 0:Fo.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),Sn!==Jt.h.OK?te.createElement(te.Fragment,null,te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),te.createElement("pre",null,!Dr&&mn,Dr&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Mn.LR)(To,mn)},mn)),te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),te.createElement("pre",null,(Sn===4||Sn===5)&&De.Base64.decode(kr),Sn!=4&&Sn!=5&&(Dr?te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Mn.LR)(br,kn)},kn):De.Base64.decode(kn))),te.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),te.createElement("pre",null,!Dr&&De.Base64.decode(wo),Dr&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Mn.LR)(yo,wo)},wo))):null):null,(bi==null?void 0:bi.length)>0?te.createElement(Gt.default,{dataSource:bi,rowKey:"id",pagination:!1},te.createElement(kt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(so,fi)=>te.createElement("span",null," ",pn()(so).format("YYYY-MM-DD HH:mm:ss"))}),te.createElement(kt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(so,fi)=>{var $n;return te.createElement(ve.Link,{className:so===0?"c-green":"c-red",to:`/problems/${rn}/record-detail/${fi.id}?backId=${Fo==null?void 0:Fo.save_identifier}`},($n=tt.Im[so])==null?void 0:$n.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),te.createElement(kt,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),te.createElement(kt,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),te.createElement(kt,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,fo>15?te.createElement(Ht.Z,{className:Ct.pagination,current:ir,pageSize:15,total:fo,onChange:_n}):null)},Ye=ee(26194),Je=ee(66309),ft=ee(93421),At={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},et=ee(85725),vt=ee(67294);const Pt={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Xe=({hack:Re,onTriggerPraise:je,toDiscuss:We})=>{const{language:ir,difficulty:_n,time_limit:rn,username:Sn,user_path:Xt,user_praise:mn,comments_count:kn,praises_count:wo,description:Dr,pass_count:To,submit_count:br}=Re,yo=(0,ve.useLocation)();console.log(Re.language,"language");const kr=Pt[_n];return vt.createElement(vt.Fragment,null,vt.createElement("ul",{className:At.info},vt.createElement("li",null,"\u96BE\u5EA6\uFF1A",vt.createElement(Je.default,{color:kr==null?void 0:kr.color},kr==null?void 0:kr.name)),vt.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",vt.createElement("b",null,rn,"\u79D2"))),vt.createElement(et.Z,{value:Dr,className:At.desc}),vt.createElement("ul",{className:At["commit-info"]},vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",vt.createElement("b",null,To))),vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",vt.createElement("b",null,br))," "),vt.createElement("li",{style:{flex:"1 0 0"}}),vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("i",{className:"iconfont icon-huifu1",onClick:We})," ",vt.createElement("b",null,kn))," ")))},Zt=ee(33054),He=Object.defineProperty,ut=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,ht=(Re,je,We)=>je in Re?He(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,$t=(Re,je)=>{for(var We in je||(je={}))wn.call(je,We)&&ht(Re,We,je[We]);if(ut)for(var We of ut(je))sn.call(je,We)&&ht(Re,We,je[We]);return Re};const on=Re=>React.createElement("svg",$t({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Re),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 bn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",Kn=ee(33170);function Dt(Re){return(0,Kn.U2)("comments.json",Re)}function Rn(Re){return(0,Kn.v_)(`/discusses/${Re}/plus.json`,{container_type:"Discuss",type:1})}function Gn(Re){return(0,Kn.v_)("comments/reply.json",Re)}function jr(Re){return(0,Kn.v_)("comments.json",Re)}function mr(Re){return(0,Kn.v_)(`comments/${Re==null?void 0:Re.id}/hidden.json`,Re)}function ur(Re){return(0,Kn.IV)(`comments/${Re==null?void 0:Re.id}.json`)}var Tn=ee(93989),Or=ee(52262);function zr({author:Re}){return te.createElement("a",{href:`/users/${Re.login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${Re.image_url}`,width:"50"}))}function lo({data:Re,index:je,parentDiscussIndex:We,user:ir,onSetActionType:_n}){const{author:rn,can_delete:Sn,content:Xt,id:mn,time:kn}=Re;function wo(){_n({id:mn,index:je,type:"delete-discuss",parentDiscussIndex:We,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Dr=ir.admin||Sn||rn.user_id===ir.user_id;return te.createElement("div",{className:"discuss-item-container second-discuss "},te.createElement(zr,{author:rn}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${rn.login}`,target:"_blank"},rn.name),te.createElement("span",{className:"grey"},kn),te.createElement("div",{className:"btn-group",style:{marginBottom:0}},Dr?te.createElement("a",{onClick:wo,title:"\u5220\u9664"},te.createElement("i",{className:"iconfont icon-shanchu"})):null)),te.createElement(et.Z,{className:"discuss-content",value:Xt})))}var di=({user:Re,data:je,index:We,onPlusDiscuss:ir,onSetActionType:_n,activeDiscussIndex:rn,onReplyDiscuss:Sn,onSetActiveDiscussIndex:Xt})=>{const{content:mn,children:kn,hidden:wo,id:Dr,praise_count:To,time:br,user_praise:yo,can_delete:kr,author:bi}=je;console.log(kr&&(!kn||kn.length==0),"children22");function fo(){Xt(Dr)}function Fo(){ir(Dr,!yo,We)}function Di(){_n({id:Dr,index:We,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function so(){_n({id:Dr,index:We,params:{hidden:wo?"0":"1"},type:"hidden-discuss",message:wo?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const fi=Re.admin||Re.user_id===bi.user_id;return te.createElement("div",{className:"discuss-item-container",key:Dr},te.createElement(zr,{author:bi}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${bi.login}`,target:"_blank"}," ",bi.name," "),te.createElement("span",{className:"grey"},br)),te.createElement(et.Z,{className:"discuss-content",value:mn}),kn&&kn.length>0?te.createElement("div",{className:"reply-discuss-container"},kn.map(($n,hi)=>te.createElement(lo,{key:$n.id,data:$n,index:hi,user:Re,onSetActionType:_n,parentDiscussIndex:We}))):null,te.createElement("div",{className:"btn-group"},(0,Or.Ny)()?te.createElement("a",{onClick:so,title:wo?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},te.createElement("i",{className:wo?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,kr&&(!kn||kn.length==0)?te.createElement("a",{onClick:Di,title:"\u5220\u9664"},te.createElement("i",{className:"iconfont icon-shanchu"})):null,te.createElement("a",{onClick:fo,title:"\u56DE\u590D"}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," "),te.createElement("a",{onClick:Fo,className:yo?"c-orange":""},te.createElement("i",{className:yo?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),te.createElement("span",null,To||""))),te.createElement(Tn.Z,{id:Dr,activeDiscussIndex:rn,onReplyDiscuss:Sn})))},Ko=ee(71865),pr=ee(35567),Xr=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),to=({user_praise:Re,praise_count:je,praisePlus:We,onCreateDiscuss:ir,discuss_count:_n})=>{const[rn,Sn]=(0,te.useState)(!1),[Xt,mn]=(0,te.useState)("");function kn(br){mn(br)}function wo(){Sn(!0)}function Dr(){Sn(!1)}function To(){return Xr(this,null,function*(){ir(Xt),mn(""),Sn(!1)})}return te.createElement("div",{className:`dis-input-editor-container ${rn?"active":""} `},te.createElement("div",{className:rn?"text-area hide":"text-area"},te.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:wo}),te.createElement("a",{style:{alignItems:"center"}}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",_n," "),te.createElement("a",{className:"c-light-black",onClick:We,style:{alignItems:"center"},title:Re?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("i",{className:`mr3 ${Re?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),je?te.createElement("span",null,je):"")),rn?te.createElement("div",{className:"input-mask",onClick:Dr}):null,te.createElement("div",{className:rn?"md-container":"md-container hide"},te.createElement(pr.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Xt,height:240,onChange:kn}),te.createElement("div",{className:"tip-container",onClick:Dr},te.createElement("a",{className:"btn-send",onClick:To}," \u53D1\u9001 "))))},mo=Object.defineProperty,Kr=Object.defineProperties,Vo=Object.getOwnPropertyDescriptors,Do=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Ei=(Re,je,We)=>je in Re?mo(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,cn=(Re,je)=>{for(var We in je||(je={}))io.call(je,We)&&Ei(Re,We,je[We]);if(Do)for(var We of Do(je))Cr.call(je,We)&&Ei(Re,We,je[We]);return Re},ge=(Re,je)=>Kr(Re,Vo(je)),Se=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Le=(Re=>(Re[Re.GET_DISCUSSES=0]="GET_DISCUSSES",Re[Re.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Re[Re.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Re[Re.PLUS_DISCUSS=3]="PLUS_DISCUSS",Re[Re.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Re[Re.SET_PAGE=5]="SET_PAGE",Re[Re.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Re))(Le||{});function Ne(Re,je){switch(je.type){case 6:return ge(cn({},Re),{loading:!0});case 0:return cn(cn({},Re),je.payload);case 1:return cn(cn({},Re),je.payload);case 4:return cn(cn({},Re),je.payload);case 3:return cn(cn({},Re),je.payload);case 5:return cn(cn({},Re),je.payload);case 2:return cn(cn({},Re),je.payload);default:throw new Error}}var qe=({user:Re,identifier:je,hack:We,onTriggerPraise:ir,setDiscussTotal:_n})=>{const[rn,Sn]=(0,te.useReducer)(Ne,Pe),{loading:Xt,page:mn,data:kn,count:wo,actionType:Dr,activeDiscussIndex:To}=rn;console.log("---",rn);const br=(0,te.useCallback)(()=>Se(void 0,null,function*(){Sn({type:6});const $n=yield Dt({container_type:"Practice",container_identifier:je,limit:10,page:mn}),{comments:hi,disscuss_count:ko}=$n;Sn({type:0,payload:{data:hi,count:ko,loading:!1}}),_n(ko)}),[mn,je]);(0,te.useEffect)(()=>{br()},[je,mn]);function yo($n){Sn({type:5,payload:{page:$n}})}function kr($n){Sn({type:4,payload:{actionType:$n}})}function bi($n){Sn(To===$n?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:$n}})}function fo($n,hi,ko){return Se(this,null,function*(){try{const Gi=yield Rn($n);kn[ko].user_praise=hi,kn[ko].praise_count=Gi.praise_count,Sn({type:3,payload:{data:[...kn]}})}catch(Gi){console.log(Gi)}})}function Fo(){return Se(this,null,function*(){const{id:$n,params:hi,type:ko,index:Gi,parentDiscussIndex:fa}=Dr;ko==="hidden-discuss"&&(console.log(hi,"params"),yield mr(cn({id:$n,container_type:"Practice",container_identifier:je},hi)),fa?kn[fa].children[Gi].hidden=hi.hidden==1:kn[Gi].hidden=hi.hidden==1,Sn({type:4,payload:{actionType:null,data:[...kn]}})),ko==="delete-discuss"&&(yield ur({id:$n,container_type:"Practice",container_identifier:je}),Sn({type:4,payload:{actionType:null}}),yield br())})}function Di(){Sn({type:4,payload:{actionType:null}})}function so($n,hi){return Se(this,null,function*(){try{yield Gn({container_type:"Practice",container_identifier:je,comments:{content:hi,parent_id:$n}}),br()}catch(ko){console.log(ko)}})}function fi($n){return Se(this,null,function*(){Sn({type:6}),yield jr({comments:{content:$n},container_type:"Practice",container_identifier:je}),br()})}return te.createElement(te.Fragment,null,te.createElement("div",{className:"discuss-panel"},kn.length===0?te.createElement(Ye.Z,null):te.createElement(he.Z,{spinning:Xt},kn.map(($n,hi)=>te.createElement(di,{onReplyDiscuss:so,onPlusDiscuss:fo,onSetActiveDiscussIndex:bi,onSetActionType:kr,data:$n,index:hi,user:Re,activeDiscussIndex:To}))),wo>10?te.createElement("div",{className:"pagination-container mt10 mb10"},te.createElement(Ht.Z,{showQuickJumper:!0,onChange:yo,current:mn,total:wo,showTotal:$n=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},$n),"\u6761\u6570\u636E")})):null),te.createElement(to,{user_praise:We.user_praise,praise_count:We.praises_count,praisePlus:ir,discuss_count:We.comments_count,onCreateDiscuss:fi}),te.createElement(y.Z,null,te.createElement(ae.default,{centered:!0,title:"\u63D0\u793A",open:!!Dr,onOk:Fo,onCancel:Di},te.createElement("p",null,Dr?Dr.message:"")),te.createElement(Ko.Z,null)))},it={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"},un={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"},Vt=Object.defineProperty,En=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Ot=(Re,je,We)=>je in Re?Vt(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,qn=(Re,je)=>{for(var We in je||(je={}))Vn.call(je,We)&&Ot(Re,We,je[We]);if(En)for(var We of En(je))Pr.call(je,We)&&Ot(Re,We,je[We]);return Re};const er=Re=>React.createElement("svg",qn({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Re),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 Pn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",An=Object.defineProperty,Yn=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,ci=(Re,je,We)=>je in Re?An(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Po=(Re,je)=>{for(var We in je||(je={}))yr.call(je,We)&&ci(Re,We,je[We]);if(Yn)for(var We of Yn(je))lr.call(je,We)&&ci(Re,We,je[We]);return Re};const fr=Re=>React.createElement("svg",Po({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),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 Vr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Yo=Object.defineProperty,Io=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Vi=(Re,je,We)=>je in Re?Yo(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,fn=(Re,je)=>{for(var We in je||(je={}))ni.call(je,We)&&Vi(Re,We,je[We]);if(Io)for(var We of Io(je))gi.call(je,We)&&Vi(Re,We,je[We]);return Re};const xo=Re=>React.createElement("svg",fn({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),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 Yi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Cn=Object.defineProperty,nr=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,ei=(Re,je,We)=>je in Re?Cn(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,po=(Re,je)=>{for(var We in je||(je={}))wr.call(je,We)&&ei(Re,We,je[We]);if(nr)for(var We of nr(je))rr.call(je,We)&&ei(Re,We,je[We]);return Re};const ri=Re=>React.createElement("svg",po({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),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 xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Xi=Object.defineProperty,dt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Ut=(Re,je,We)=>je in Re?Xi(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,yn=(Re,je)=>{for(var We in je||(je={}))ct.call(je,We)&&Ut(Re,We,je[We]);if(dt)for(var We of dt(je))It.call(je,We)&&Ut(Re,We,je[We]);return Re};const gr=Re=>React.createElement("svg",yn({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Re),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 _r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Qr=({style:Re={},onClick:je,onAssist:We,onHide:ir,data:_n,active:rn,showLine:Sn})=>te.createElement(te.Fragment,null,te.createElement("div",{className:rn===(_n==null?void 0:_n.id)?`${un.list} ${un.active}`:un.list,style:Re,onClick:()=>je(_n)},(_n==null?void 0:_n.video)&&te.createElement("div",{className:un.left},te.createElement("img",{src:_n==null?void 0:_n.video_cover}),te.createElement("div",null,te.createElement("img",{src:Pn}),te.createElement("span",null,_n==null?void 0:_n.video_duration)),te.createElement("div",{className:un.mask})),te.createElement("div",{className:un.right},te.createElement("div",{className:un.name},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(_n==null?void 0:_n.image_url),width:30,height:30}),te.createElement("div",{title:_n==null?void 0:_n.name,className:un.title},_n==null?void 0:_n.name),(_n==null?void 0:_n.is_authority)&&te.createElement("div",{className:un.b},"\u5B98\u65B9"),(_n==null?void 0:_n.is_excellent)&&te.createElement("div",{className:un.a},"\u7CBE\u9009")),te.createElement("div",{className:un.des},te.createElement(et.Z,{showLines:2,showTextOnly:!0,value:(_n==null?void 0:_n.content)||"\u6682\u65E0\u5185\u5BB9"})),te.createElement("div",{className:un.tag},te.createElement("span",{className:"current",onClick:Xt=>{Xt.stopPropagation(),We(_n)}},te.createElement("img",{src:_n!=null&&_n.user_liker?Yi:Vr}),te.createElement("span",{style:{color:_n!=null&&_n.user_liker?"#0152d9":"#656f87"}},_n==null?void 0:_n.praises_count)),te.createElement("span",null,te.createElement("img",{src:xi}),te.createElement("span",null,_n==null?void 0:_n.discusses_count)),te.createElement("span",null,te.createElement("img",{src:_r}),te.createElement("span",null,_n==null?void 0:_n.viewed_count)),(0,Or.Ny)()&&te.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:Xt=>{Xt.stopPropagation(),ir(_n)}},_n!=null&&_n.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),Sn&&te.createElement("div",{className:un.line})),Yr={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"},Bo=ee(83062),No=Object.defineProperty,ti=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,jt=(Re,je,We)=>je in Re?No(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,ze=(Re,je)=>{for(var We in je||(je={}))yt.call(je,We)&&jt(Re,We,je[We]);if(ti)for(var We of ti(je))_t.call(je,We)&&jt(Re,We,je[We]);return Re};const zt=Re=>React.createElement("svg",ze({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Re),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 tn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",dn=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,vn=(Re,je,We)=>je in Re?dn(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,In=(Re,je)=>{for(var We in je||(je={}))Rt.call(je,We)&&vn(Re,We,je[We]);if(Lt)for(var We of Lt(je))Nt.call(je,We)&&vn(Re,We,je[We]);return Re};const Xn=Re=>React.createElement("svg",In({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Re),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 Un="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",tr=Object.defineProperty,cr=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,nn=(Re,je,We)=>je in Re?tr(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Wt=(Re,je)=>{for(var We in je||(je={}))Ar.call(je,We)&&nn(Re,We,je[We]);if(cr)for(var We of cr(je))Ln.call(je,We)&&nn(Re,We,je[We]);return Re};const qt=Re=>React.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Re),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 hn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Qn=ee(95235),Ue=Object.defineProperty,Fe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,ln=(Re,je,We)=>je in Re?Ue(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,gn=(Re,je)=>{for(var We in je||(je={}))Mt.call(je,We)&&ln(Re,We,je[We]);if(St)for(var We of St(je))Ft.call(je,We)&&ln(Re,We,je[We]);return Re},Nn=(Re,je)=>Fe(Re,nt(je)),Bn=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),jn=({onClose:Re,onOk:je,identifier:We,active:ir})=>{var _n,rn;const[Sn]=bt.default.useForm(),[Xt,mn]=(0,te.useState)({}),[kn,wo]=(0,te.useState)(!1),[Dr,To]=(0,te.useState)(!1),[br,yo]=(0,te.useState)([]),kr=(0,Or.eY)(),bi=(0,ve.useParams)(),fo=(0,te.useRef)();(0,te.useEffect)(()=>{ir&&Fo()},[ir]);const Fo=()=>Bn(void 0,null,function*(){var Lr,ho,$o,Zo,Ls,hs,ts,xs,ja,ms;const Hr=yield(0,fe.M3)(We,{active:ir});if((Hr==null?void 0:Hr.status)===0){const Ni={name:(Lr=Hr==null?void 0:Hr.data)==null?void 0:Lr.name,content:(ho=Hr==null?void 0:Hr.data)==null?void 0:ho.content};Sn.setFieldsValue(Ni),mn(Ni),(Zo=($o=Hr==null?void 0:Hr.data)==null?void 0:$o.videos)!=null&&Zo[0]&&yo([{video_id:(ts=(hs=(Ls=Hr==null?void 0:Hr.data)==null?void 0:Ls.videos)==null?void 0:hs[0])==null?void 0:ts.video_id,name:(ms=(ja=(xs=Hr==null?void 0:Hr.data)==null?void 0:xs.videos)==null?void 0:ja[0])==null?void 0:ms.title,loaded:100}])}}),Di=(Lr,ho)=>{mn(gn({},ho))},so=Lr=>Bn(void 0,null,function*(){const ho={videos:br,articles:Lr};To(!0);let $o;ir?(ho.active=ir,$o=yield(0,fe.gu)(We,ho)):$o=yield(0,fe.bx)(We,ho),($o==null?void 0:$o.status)===0&&(console.log(ir||($o==null?void 0:$o.id),44),je(ir||($o==null?void 0:$o.id))),To(!1)}),fi=(Lr,ho)=>{ae.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:te.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",ho?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{ho?yo([]):(fo.current.cancel(),yo([]))}})},$n=()=>te.createElement(Qn.Z,Nn(gn({},wi),{ref:fo}),te.createElement("div",{className:Yr.main},te.createElement("img",{src:tn,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),hi=Lr=>te.createElement("div",{className:Yr.mainLoading},te.createElement("div",{className:Yr.proWarp},te.createElement("div",{className:Yr.pro},te.createElement("div",{style:{width:Lr}})),te.createElement("span",null,Lr||0,"%")),te.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),te.createElement("div",{className:Yr.tip},te.createElement(Bo.Z,{getPopupContainer:ho=>ho.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:hn,alt:""})))),ko=Lr=>te.createElement("div",{className:Yr.mainSucceed},te.createElement("img",{src:Un,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),te.createElement("div",{className:Yr.tip},te.createElement(Bo.Z,{getPopupContainer:ho=>ho.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:hn,alt:""}))),te.createElement("div",{className:Yr.del,onClick:()=>fi(Lr.name,Lr.loaded==100)},te.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Gi=()=>te.createElement(te.Fragment,null,br==null?void 0:br.map((Lr,ho)=>te.createElement(te.Fragment,{key:ho},Lr.loaded==100?ko(Lr):hi(Lr.loaded)))),fa=()=>{ae.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:Re})},wi={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:Lr=>{const $o=Lr.name.toLowerCase();return $o&&$o.indexOf(".avi")==-1&&$o.indexOf(".flv")==-1&&$o.indexOf(".f4v")==-1&&$o.indexOf(".m4v")==-1&&$o.indexOf(".mov")==-1&&$o.indexOf(".mp4")==-1&&$o.indexOf(".rmvb")==-1&&$o.indexOf(".swf")==-1&&$o.indexOf(".webm")==-1&&$o.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):Lr.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):br!=null&&br.find(Zo=>Zo.name===Lr.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:Lr=>{yo([{name:Lr.filename,loaded:0}])},onComplete:Lr=>{yo([{name:Lr.filename,loaded:Lr.percent,video_id:Lr.id}])},onError:()=>{yo([])},onProgress:Lr=>{yo([{name:Lr.filename,loaded:Lr.percent}])},chunkSize:1024*1024*2,options:{user_id:(_n=kr==null?void 0:kr.userInfo)==null?void 0:_n.user_id}},Go=br==null?void 0:br.length;return te.createElement("div",{className:Yr.listForm},te.createElement("header",null,ir?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),te.createElement("section",{className:Yr.scroll,id:"sss"},te.createElement("div",{className:Yr.formWrap}," ",te.createElement(bt.default,{form:Sn,scrollToFirstError:!0,layout:"vertical",onValuesChange:Di,onFinish:so},te.createElement(bt.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"}]},te.createElement(Ze.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((rn=Xt.name)==null?void 0:rn.length)||0}/60`})),te.createElement(bt.default.Item,{name:"content",label:"\u5185\u5BB9:"},te.createElement(pr.Z,{defaultValue:Xt.content||"",watch:!0})))),te.createElement("div",{className:Yr.upload},Go?Gi():$n())),te.createElement("div",{className:Yr.btns},te.createElement(wt.ZP,{onClick:fa,type:"primary",ghost:!0},"\u5173\u95ED"),te.createElement(wt.ZP,{loading:Dr,disabled:kn,onClick:()=>Sn.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Jn={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"},or=ee(46303),Jr=Object.defineProperty,bo=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,co=(Re,je,We)=>je in Re?Jr(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,vo=(Re,je)=>{for(var We in je||(je={}))Zr.call(je,We)&&co(Re,We,je[We]);if(bo)for(var We of bo(je))ao.call(je,We)&&co(Re,We,je[We]);return Re};const Rr=Re=>React.createElement("svg",vo({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Re),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 qr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",Eo=Object.defineProperty,ii=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,zo=(Re,je,We)=>je in Re?Eo(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,zi=(Re,je)=>{for(var We in je||(je={}))uo.call(je,We)&&zo(Re,We,je[We]);if(ii)for(var We of ii(je))ui.call(je,We)&&zo(Re,We,je[We]);return Re};const Mi=Re=>React.createElement("svg",zi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Re),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 mi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",So=Object.defineProperty,Co=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Ai=(Re,je,We)=>je in Re?So(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Oo=(Re,je)=>{for(var We in je||(je={}))Xo.call(je,We)&&Ai(Re,We,je[We]);if(Co)for(var We of Co(je))vi.call(je,We)&&Ai(Re,We,je[We]);return Re};const Bi=Re=>React.createElement("svg",Oo({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Re),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 Ri="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Hi={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"},Wi=ee(71230),Qo=ee(15746),Si={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"},ai=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())});const yi=({id:Re,cb:je})=>{const[We,ir]=(0,te.useState)("");return te.createElement("aside",{className:"mt10"},te.createElement(pr.Z,{defaultValue:We,id:"writeForumsReviewId",onChange:_n=>{ir(_n)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Wi.Z,null,te.createElement(Qo.Z,{flex:"1"}),te.createElement(Qo.Z,null,te.createElement(wt.ZP,{type:"primary",size:"middle",onClick:()=>ai(void 0,null,function*(){We===""?pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):je(Re,We)})},"\u53D1\u9001"))))},aa=({data:Re})=>{var je;return te.createElement("div",{className:Si.thirdlyLevelDiscuss},te.createElement("span",{className:"c-grey-333"},te.createElement("span",{className:"font 14 c-light-primary"},(je=Re==null?void 0:Re.author)==null?void 0:je.name),"@",te.createElement("span",{className:"font 14 c-light-primary"},Re==null?void 0:Re.parent_name),":"),te.createElement(et.Z,{value:Re==null?void 0:Re.content}))},ca=({data:Re,onReplyDiscuss:je,thirdlyReply:We,setThirdlyReply:ir})=>{var _n,rn,Sn,Xt;const mn=(0,Or.eY)();return console.log(mn,"user"),te.createElement("div",{className:Si.list},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((_n=Re==null?void 0:Re.author)==null?void 0:_n.image_url)}),te.createElement("div",{className:Si.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333"},(rn=Re==null?void 0:Re.author)==null?void 0:rn.name),(mn==null?void 0:mn.login)!==((Sn=Re==null?void 0:Re.author)==null?void 0:Sn.login)&&te.createElement("span",{onClick:()=>ir(Re==null?void 0:Re.id),className:"c-grey-999 current",style:{float:"right"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),te.createElement("span",null,"\u56DE\u590D"))),te.createElement(et.Z,{value:Re==null?void 0:Re.content}),(Xt=Re==null?void 0:Re.children)==null?void 0:Xt.map(kn=>te.createElement(aa,{key:kn.id,data:kn})),We===(Re==null?void 0:Re.id)&&te.createElement("div",null,te.createElement(yi,{id:Re==null?void 0:Re.id,cb:je}),te.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>ir(null),className:"c-light-primary current"},te.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),te.createElement("div",{className:Si.line})))};var _i=({data:Re,onReplyDiscuss:je,secondReply:We,setSecondReply:ir,thirdlyReply:_n,setThirdlyReply:rn,onPlusDiscuss:Sn})=>{var Xt,mn,kn,wo;const[Dr,To]=(0,te.useState)(!1);return console.log(Re,"data"),te.createElement("div",{className:Si.discussItem},te.createElement("div",{className:Si.list},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((Xt=Re==null?void 0:Re.author)==null?void 0:Xt.image_url)}),te.createElement("div",{className:Si.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333 mr30"},(mn=Re==null?void 0:Re.author)==null?void 0:mn.name),te.createElement("span",{className:"c-grey-999"},Re==null?void 0:Re.time)),te.createElement(et.Z,{value:Re==null?void 0:Re.content}),te.createElement("div",{className:Si.btns},te.createElement("div",{onClick:()=>Sn(Re==null?void 0:Re.id),className:Re!=null&&Re.user_praise?"c-light-primary":"c-grey-999"},te.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),te.createElement("span",null,Re==null?void 0:Re.praise_count)),te.createElement("div",{onClick:()=>{var br;((br=Re==null?void 0:Re.children)==null?void 0:br.length)!==0&&(ir(null),To(!Dr))},style:{color:Dr?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),te.createElement("span",null,Dr?"\u6536\u8D77\u8BC4\u8BBA":(kn=Re==null?void 0:Re.children)==null?void 0:kn.length)),te.createElement("div",{onClick:()=>{To(!1),ir(We===(Re==null?void 0:Re.id)?null:Re==null?void 0:Re.id)},style:{color:We===(Re==null?void 0:Re.id)?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3"}),te.createElement("span",null,We===(Re==null?void 0:Re.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),We===(Re==null?void 0:Re.id)&&te.createElement(yi,{id:Re==null?void 0:Re.id,cb:(br,yo)=>{je(br,yo),To(!0)}}),Dr&&te.createElement("div",{className:Si.secondLevelDiscuss},(wo=Re==null?void 0:Re.children)==null?void 0:wo.map(br=>te.createElement(ca,{thirdlyReply:_n,setThirdlyReply:rn,key:br.id,data:br,onReplyDiscuss:je}))))))},Ki=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),Ea=({identifier:Re,active:je,onOk:We})=>{const[ir,_n]=(0,te.useState)(""),[rn,Sn]=(0,te.useState)(1),[Xt,mn]=(0,te.useState)([]),[kn,wo]=(0,te.useState)(0),[Dr,To]=(0,te.useState)(null),[br,yo]=(0,te.useState)(null);(0,te.useEffect)(()=>{kr(1),Sn(1)},[je]);const kr=so=>Ki(void 0,null,function*(){const fi=yield Dt({container_type:"QuestionSolutionArticle",container_identifier:je,limit:5,page:so});fi!=null&&fi.comments&&(mn((fi==null?void 0:fi.comments)||[]),Sn(so),wo(fi==null?void 0:fi.disscuss_count))}),bi=()=>Ki(void 0,null,function*(){if(ir===""){pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const so=yield jr({comments:{content:ir},container_type:"QuestionSolutionArticle",container_identifier:je});so!=null&&so.discuss&&(_n(""),kr(rn),We())}),fo=(so,fi,$n)=>Ki(void 0,null,function*(){const hi=yield Gn({container_type:"QuestionSolutionArticle",container_identifier:je,comments:{content:fi,parent_id:so}});To(null),yo(null),kr(rn)}),Fo=so=>Ki(void 0,null,function*(){const fi=yield Rn(so);kr(rn)}),Di=so=>{Sn(so),kr(so)};return te.createElement("div",{className:Hi.discuss},te.createElement("aside",{className:Hi.reply,style:{borderWidth:kn?1:0}},te.createElement(pr.Z,{defaultValue:ir,id:"writeForumsReviewId",onChange:so=>{_n(so)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Wi.Z,null,te.createElement(Qo.Z,{flex:"1"}),te.createElement(Qo.Z,null,te.createElement(wt.ZP,{type:"primary",size:"middle",onClick:()=>bi()},"\u53D1\u9001")))),Xt==null?void 0:Xt.map(so=>te.createElement(_i,{secondReply:Dr,setSecondReply:To,thirdlyReply:br,setThirdlyReply:yo,key:so.id,data:so,onReplyDiscuss:fo,onPlusDiscuss:Fo})),te.createElement(Ht.Z,{className:Hi.pagination,showTotal:so=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},so),"\u6761\u6570\u636E"),current:rn,onChange:Di,total:kn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Ca=ee(6104),Na=Object.defineProperty,va=Object.getOwnPropertySymbols,ua=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Oa=(Re,je,We)=>je in Re?Na(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Ba=(Re,je)=>{for(var We in je||(je={}))ua.call(je,We)&&Oa(Re,We,je[We]);if(va)for(var We of va(je))sa.call(je,We)&&Oa(Re,We,je[We]);return Re},is=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),Ka=({active:Re,identifier:je,onAssist:We,onEdit:ir,onArticlesSkip:_n,onClose:rn,onOk:Sn,onDelete:Xt,detailsIndex:mn,btnShowStatus:kn})=>{var wo,Dr,To,br,yo,kr,bi,fo,Fo,Di;const[so,fi]=(0,te.useState)(!0),[$n,hi]=(0,te.useState)({});(0,te.useEffect)(()=>{Re&&ko()},[Re,mn]);const ko=(Go=!0)=>is(void 0,null,function*(){Go&&fi(!0);const Lr=yield(0,fe.wO)(je,{active:Re});(Lr==null?void 0:Lr.status)===0&&hi((Lr==null?void 0:Lr.data)||{}),fi(!1)}),Gi=Go=>is(void 0,null,function*(){const Lr=yield(0,fe.qe)(je,Ba({active:Re},Go));(Lr==null?void 0:Lr.status)===0&&(ko(!1),Sn())}),fa=Go=>is(void 0,null,function*(){(yield(0,fe.Rg)(je,{active:Go==null?void 0:Go.id})).status===0&&(ko(!1),Sn())}),Sr=Go=>{ae.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:()=>Xt(Go)})},wi=()=>{ko(!1),Sn()};return te.createElement("div",{className:Jn.listDetails},te.createElement(or.Z,{className:"pt20 pl20 pr20",loading:so,active:!0,paragraph:{rows:5}},te.createElement("div",{className:Jn.head},te.createElement("div",{className:Jn.name},te.createElement("div",{title:$n==null?void 0:$n.name,className:Jn.title},$n==null?void 0:$n.name),($n==null?void 0:$n.is_authority)&&te.createElement("div",{className:Jn.b},"\u5B98\u65B9"),($n==null?void 0:$n.is_excellent)&&te.createElement("div",{className:Jn.a},"\u7CBE\u9009")),te.createElement("div",{className:Jn.tag},te.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+($n==null?void 0:$n.image_url)}),te.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},$n==null?void 0:$n.username),te.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",pn()($n==null?void 0:$n.created_at).format("YYYY-MM-DD")),te.createElement("span",null,te.createElement("img",{src:Vr}),te.createElement("span",null,$n==null?void 0:$n.praises_count)),te.createElement("span",null,te.createElement("img",{src:xi}),te.createElement("span",null,$n==null?void 0:$n.discusses_count)),te.createElement("span",null,te.createElement("img",{src:_r}),te.createElement("span",null,$n==null?void 0:$n.viewed_count)),te.createElement("div",{className:Jn.btn},((0,Or.Ny)()||($n==null?void 0:$n.is_self))&&te.createElement(te.Fragment,null,te.createElement(wt.ZP,{onClick:()=>Sr($n),type:"primary",ghost:!0},"\u5220\u9664"),te.createElement(wt.ZP,{onClick:()=>ir($n),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Or.Ny)()&&te.createElement(wt.ZP,{onClick:()=>Gi({is_authority:!($n!=null&&$n.is_authority)}),type:"primary"},te.createElement("img",{src:mi}),$n!=null&&$n.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Or.Ny)()&&te.createElement(wt.ZP,{onClick:()=>Gi({is_excellent:!($n!=null&&$n.is_excellent)}),type:"primary"},te.createElement("img",{src:qr}),$n!=null&&$n.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),te.createElement("div",{className:Jn.scroll},((Dr=(wo=$n==null?void 0:$n.videos)==null?void 0:wo[0])==null?void 0:Dr.id)&&te.createElement("div",{className:Jn.video},te.createElement(he.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((br=(To=$n==null?void 0:$n.videos)==null?void 0:To[0])!=null&&br.transcoded)},te.createElement(Ca.Z,{poster:(kr=(yo=$n==null?void 0:$n.videos)==null?void 0:yo[0])==null?void 0:kr.cover_url,src:((fo=(bi=$n==null?void 0:$n.videos)==null?void 0:bi[0])==null?void 0:fo.play_url)||"",videoId:(Di=(Fo=$n==null?void 0:$n.videos)==null?void 0:Fo[0])==null?void 0:Di.id,logWatchHistory:()=>{}}))),te.createElement(et.Z,{className:Jn.html,value:($n==null?void 0:$n.content)||""}),te.createElement("div",{onClick:()=>fa($n),className:Jn.g},te.createElement("img",{className:"mr10",src:($n!=null&&$n.user_liker,Ri)}),te.createElement("span",null,$n==null?void 0:$n.praises_count)),te.createElement(Ea,{onOk:wi,active:Re,identifier:je})),te.createElement("div",{className:Jn.btns},te.createElement(wt.ZP,{onClick:()=>rn(),type:"primary",ghost:!0},"\u5173\u95ED"),kn[0]&&te.createElement(wt.ZP,{onClick:Go=>_n(Go,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),kn[1]&&te.createElement(wt.ZP,{onClick:Go=>_n(Go,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},_s=Object.defineProperty,as=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,Ra=(Re,je,We)=>je in Re?_s(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,ss=(Re,je)=>{for(var We in je||(je={}))Va.call(je,We)&&Ra(Re,We,je[We]);if(as)for(var We of as(je))Fa.call(je,We)&&Ra(Re,We,je[We]);return Re};const ds=Re=>React.createElement("svg",ss({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Re),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 Ya="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Ts=ee(28575),Ds=ee(33463),Is=Object.defineProperty,Bs=Object.defineProperties,Ns=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,$a=(Re,je,We)=>je in Re?Is(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Ui=(Re,je)=>{for(var We in je||(je={}))Qi.call(je,We)&&$a(Re,We,je[We]);if(gs)for(var We of gs(je))Ro.call(je,We)&&$a(Re,We,je[We]);return Re},wa=(Re,je)=>Bs(Re,Ns(je)),Sa=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),Qa=({identifier:Re,tabStatus:je,setFilterListTotal:We,setListStatus:ir})=>{const _n={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[rn,Sn]=(0,te.useState)(Ui({},_n));const[Xt,mn]=(0,te.useState)(!1),[kn,wo]=(0,te.useState)(0),[Dr,To]=(0,te.useState)(1),[br,yo]=(0,te.useState)(null),[kr,bi]=(0,te.useState)([]),[fo,Fo]=(0,te.useState)([!0,!0]),[Di,so]=(0,te.useState)(0),fi=(0,te.useRef)(null);(0,te.useEffect)(()=>{ho()},[je]),(0,te.useEffect)(()=>{$n()},[br]),(0,te.useEffect)(()=>{ko(Ui({},_n)),ho()},[Re]),(0,te.useEffect)(()=>(window.addEventListener("resize",hi),ir(Di),()=>{window.removeEventListener("resize",hi)}),[Di]);const $n=()=>Sa(void 0,null,function*(){if(!br){Fo([!0,!0]);return}const Hr=[!0,!0],Ni=kr==null?void 0:kr.findIndex(ya=>ya.id===br);Ni===0&&rn.page===1&&(Hr[0]=!1),(rn.page-1)*rn.limit+(Ni+1)===rn.total&&(Hr[1]=!1),Fo(Hr)}),hi=()=>{var Hr;if(Di){const Ni=window.innerWidth-((Hr=fi.current)==null?void 0:Hr.clientWidth);wo(Ni)}},ko=Hr=>Sa(void 0,null,function*(){var Ni,ya,ls;mn(!0);const _a=yield(0,fe.WH)(Re,Hr);return(_a==null?void 0:_a.status)===0&&(bi(((Ni=_a==null?void 0:_a.data)==null?void 0:Ni.articles)||[]),Sn(wa(Ui({},Hr),{total:(ya=_a==null?void 0:_a.data)==null?void 0:ya.articles_count})),We((ls=_a==null?void 0:_a.data)==null?void 0:ls.articles_count)),mn(!1),_a}),Gi=()=>{(rn==null?void 0:rn.sort_direction)===null?rn.sort_direction="asc":(rn==null?void 0:rn.sort_direction)==="asc"?rn.sort_direction="desc":(rn==null?void 0:rn.sort_direction)==="desc"&&(rn.sort_direction=null),rn.page=1,ho(),Sn(Ui({},rn)),ko(rn)},fa=()=>{rn.page=1,rn.search=rn==null?void 0:rn.save_search,ho(),Sn(Ui({},rn)),ko(rn)},Sr=()=>{var Hr;const Ni=document.getElementsByClassName("btn-resize");Ni[0].style.visibility="hidden";const ya=window.innerWidth-((Hr=fi.current)==null?void 0:Hr.clientWidth);wo(ya)},wi=()=>{Sr(),so(1)},Go=Hr=>{Sr(),yo(Hr==null?void 0:Hr.id),so(3)},Lr=Hr=>{Sr(),yo(Hr==null?void 0:Hr.id),so(2)},ho=()=>{const Hr=document.getElementsByClassName("btn-resize");Hr[0].style.visibility="visible",wo(0),so(0),yo(null)},$o=Hr=>{so(3),yo(Hr),rn.page=1,Sn(Ui({},rn)),ko(rn)},Zo=Hr=>{so(3),yo(Hr),Sn(Ui({},rn)),ko(rn)},Ls=Hr=>{Sn(Ui({},rn)),ko(rn)},hs=Hr=>Sa(void 0,null,function*(){(yield(0,fe.Rg)(Re,{active:Hr==null?void 0:Hr.id})).status===0&&(ko(rn),To(Dr+1))}),ts=Hr=>Sa(void 0,null,function*(){(yield(0,fe.rL)(Re,{active:Hr==null?void 0:Hr.id})).status===0&&(ko(rn),To(Dr+1))}),xs=Hr=>Sa(void 0,null,function*(){(yield(0,fe.de)(Re,{active:Hr==null?void 0:Hr.id})).status===0&&(ho(),ko(rn))}),ja=Hr=>{rn.page=Hr,Sn(Ui({},rn)),ko(rn)},ms=(Hr,Ni)=>Sa(void 0,null,function*(){var ya,ls,_a,Ta;const za=kr==null?void 0:kr.findIndex(Ji=>Ji.id===br);if(console.log(za,Ni,22),Ni==="prev"){if(za===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(za===0){if(rn.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(rn.page!==1){rn.page=rn.page-1,Sn(Ui({},rn));const Ji=yield ko(rn);if((Ji==null?void 0:Ji.status)===0){const Ee=(_a=Ji==null?void 0:Ji.data)==null?void 0:_a.articles[((ls=(ya=Ji==null?void 0:Ji.data)==null?void 0:ya.articles)==null?void 0:ls.length)-1];yo(Ee==null?void 0:Ee.id),console.log(Hr.target,555)}}}else{const Ji=kr[za-1];yo(Ji==null?void 0:Ji.id)}}if(Ni==="next"){if(za===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((rn.page-1)*rn.limit+(za+1)===rn.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(za+1===rn.limit){rn.page=rn.page+1,Sn(Ui({},rn));const Ji=yield ko(rn);if((Ji==null?void 0:Ji.status)===0){const Ee=(Ta=Ji==null?void 0:Ji.data)==null?void 0:Ta.articles[0];yo(Ee==null?void 0:Ee.id)}}else{const Ji=kr[za+1];yo(Ji==null?void 0:Ji.id)}}});return te.createElement("div",{className:it.wrap,ref:fi},te.createElement("div",{className:it.head},te.createElement("div",{className:it.sort,onClick:Gi},te.createElement("span",null,"\u6700\u65B0"),te.createElement("aside",null,te.createElement(Ts.Z,{style:{color:(rn==null?void 0:rn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),te.createElement(Ds.Z,{style:{color:(rn==null?void 0:rn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),te.createElement(Ze.default.Search,{value:rn.save_search,className:it["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Hr=>{rn.save_search=Hr.target.value,Sn(Ui({},rn))},onSearch:fa}),te.createElement("div",{onClick:wi,className:it.btn},te.createElement("img",{src:Ya}),"\u5199\u9898\u89E3")),te.createElement("div",{className:it.listWarp},te.createElement(he.Z,{spinning:Xt,className:"mt20"},kr==null?void 0:kr.map((Hr,Ni)=>{let ya=!0;return Ni+1===kr.length&&Ni!==0&&(ya=!1),te.createElement(Qr,{active:br,key:Hr.id,data:Hr,showLine:ya,onClick:Go,onAssist:hs,onHide:ts})}),(kr==null?void 0:kr.length)===0&&te.createElement(Ye.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),te.createElement(Ht.Z,{className:it.pagination,showTotal:Hr=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},Hr),"\u6761\u6570\u636E"),total:rn.total,showSizeChanger:!1,current:rn==null?void 0:rn.page,onChange:ja,hideOnSinglePage:!0,showQuickJumper:!0}),Di>0&&te.createElement("div",{className:it.fixedRight,style:{width:kn}},Di===1&&te.createElement(jn,{identifier:Re,onClose:ho,onOk:$o}),Di===2&&te.createElement(jn,{active:br,identifier:Re,onClose:ho,onOk:Zo}),Di===3&&te.createElement(Ka,{btnShowStatus:fo,onArticlesSkip:ms,detailsIndex:Dr,active:br,identifier:Re,onClose:ho,onOk:Ls,onEdit:Lr,onAssist:hs,onDelete:xs})))},Ja={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"},Ps=Object.defineProperty,bs=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Fs=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,il=Object.prototype.propertyIsEnumerable,Ws=(Re,je,We)=>je in Re?Ps(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,qa=(Re,je)=>{for(var We in je||(je={}))Zs.call(je,We)&&Ws(Re,We,je[We]);if(Fs)for(var We of Fs(je))il.call(je,We)&&Ws(Re,We,je[We]);return Re},ks=(Re,je)=>bs(Re,Es(je)),Cs=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())}),sl=({visible:Re,onVisible:je,value:We,onChange:ir,setIndex:_n})=>{var rn;const Sn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[Xt,mn]=(0,te.useState)(Sn);const[kn,wo]=(0,te.useState)([]),[Dr,To]=(0,te.useState)([]),[br,yo]=(0,te.useState)(!1),kr=(0,te.useRef)([]),bi=(0,te.useRef)(null),fo=(0,ve.useParams)();(0,te.useEffect)(()=>(fo!=null&&fo.id&&(bi.current=setInterval(()=>{Fo(30)},3e4)),()=>{clearInterval(bi.current)}),[]);const Fo=Sr=>Cs(void 0,null,function*(){const wi=yield(0,fe.uc)(fo==null?void 0:fo.id,{practice_time:Sr})});(0,te.useEffect)(()=>{ko(Xt),$n()},[]),(0,te.useEffect)(()=>(window.addEventListener("click",so),()=>{window.removeEventListener("click",so)}),[fo==null?void 0:fo.save_identifier,Re]),(0,te.useEffect)(()=>{const Sr=kr.current.findIndex($o=>$o.identifier===(fo==null?void 0:fo.save_identifier)),wi=kr.current[Sr-1],Go=kr.current[Sr+1],Lr=document.getElementById("oj-prev"),ho=document.getElementById("oj-next");wi?Lr.style.display="block":Lr.style.display="none",Go?ho.style.display="block":ho.style.display="none"},[fo==null?void 0:fo.save_identifier,kr.current]);const Di=(Sr,wi)=>{if(Sr.id===wi)return Sr;for(let Go=0,Lr=Sr;Lr=Lr.parentNode;Go++){if(Lr.id===wi)return Lr;if(Lr==document.documentElement)return!1}},so=Sr=>Cs(void 0,null,function*(){!Di(Sr.target,"oj-drawer")&&Re&&je(!1);const wi=kr.current.findIndex(ho=>ho.identifier===(fo==null?void 0:fo.save_identifier)),Go=kr.current[wi-1],Lr=kr.current[wi+1];if(Sr.target.id==="oj-prev"){if(!Go||wi===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}Sr.target.style.pointerEvents="none",Sr.target.style.cursor="not-allowed",yield Gi(Go==null?void 0:Go.identifier),_n("0"),setTimeout(()=>{Sr.target.style.pointerEvents="auto",Sr.target.style.cursor="pointer"},400)}if(Sr.target.id==="oj-next"||Sr.target.id==="oj-modal-next"){if(!Lr||wi===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}Sr.target.style.pointerEvents="none",Sr.target.style.cursor="not-allowed",yield Gi(Lr==null?void 0:Lr.identifier),_n("0"),setTimeout(()=>{Sr.target.style.pointerEvents="auto",Sr.target.style.cursor="pointer"},400)}});(0,te.useEffect)(()=>{ir(fo==null?void 0:fo.save_identifier);const Sr=Dr.findIndex(wi=>wi.some(Go=>Go.identifier===(fo==null?void 0:fo.save_identifier)));mn(Sr===-1?ks(qa({},Xt),{page:1}):ks(qa({},Xt),{page:Sr+1}))},[fo==null?void 0:fo.save_identifier,Dr]);const fi=Sr=>{Xt.page=1,Xt.tag_discipline_id=Sr,mn(qa({},Xt)),ko(Xt)},$n=()=>Cs(void 0,null,function*(){const Sr=yield(0,Kn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});wo(Sr.tag_disciplines||[])}),hi=Sr=>{Xt.page=1,Xt.difficulty=typeof Sr=="number"?Sr:null,mn(qa({},Xt)),ko(Xt)},ko=Sr=>Cs(void 0,null,function*(){var wi,Go;yo(!0);const Lr=yield(0,fe.KC)(Sr);if(Lr!=null&&Lr.practices_list){for(var ho=(wi=Lr==null?void 0:Lr.practices_list)==null?void 0:wi.length,$o=[],Zo=0;ZoCs(void 0,null,function*(){const Go=yield(0,Kn.ZP)(`/api/practices/${Sr}/start`,{method:"get"});(Go==null?void 0:Go.status)===0&&ve.history.push(`/problems/${Go==null?void 0:Go.identifier}/oj/${Sr}`)}),fa=Sr=>{Xt.page=Sr,mn(qa({},Xt))};return te.createElement("div",{className:Ja.wrap,id:"oj-drawer",style:{left:Re?0:-700}},te.createElement("div",{className:Ja.head},te.createElement("div",{className:Ja.title},"\u9898\u76EE\u5217\u8868"),te.createElement(Ze.default.Search,{value:Xt==null?void 0:Xt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:Sr=>{Xt.save_search=Sr.target.value,mn(qa({},Xt))},onSearch:()=>{Xt.page=1,Xt.search=Xt.save_search,mn(qa({},Xt)),ko(Xt)}}),te.createElement(le.default,{value:Xt==null?void 0:Xt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:Sr=>Sr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:fi},kn.map(Sr=>te.createElement(le.default.Option,{key:Sr.id,value:Sr.id},Sr.name))),te.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:Sr=>Sr.parentNode,value:Xt==null?void 0:Xt.difficulty,onChange:hi},te.createElement(le.default.Option,{value:1},"\u7B80\u5355"),te.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),te.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),te.createElement("div",{className:Ja.content},te.createElement(he.Z,{spinning:br},(rn=Dr==null?void 0:Dr[Xt.page-1])==null?void 0:rn.map(Sr=>te.createElement("div",{key:Sr.identifier,className:Ja.list,onClick:wi=>Gi(Sr.identifier,wi)},te.createElement("i",{style:{visibility:We===Sr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),te.createElement("span",{style:{fontWeight:We===Sr.identifier?"bold":400,color:We===Sr.identifier?"#ffffff":"#bac4cd"},title:Sr==null?void 0:Sr.name},Sr.name),(Sr==null?void 0:Sr.difficulty)===1&&te.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(Sr==null?void 0:Sr.difficulty)===2&&te.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(Sr==null?void 0:Sr.difficulty)===3&&te.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),te.createElement("div",{className:Ja.footer},te.createElement(Ht.Z,{showTotal:Sr=>te.createElement("span",{style:{color:"#656F87"}},"\u5171",te.createElement("span",{className:"c-light-primary"},Sr),"\u6761\u6570\u636E"),total:Xt.total,pageSize:Xt==null?void 0:Xt.per_page,current:Xt==null?void 0:Xt.page,showSizeChanger:!1,onChange:fa,showQuickJumper:!0,hideOnSinglePage:!0})))},ll=({hack:Re,onTriggerPraise:je,topicId:We,page:ir,onPageChange:_n,user:rn,submitRecords:Sn,submitting:Xt,submitResult:mn})=>{const[kn]=(0,ve.useSearchParams)(),wo=(0,ve.useLocation)(),[Dr,To]=(0,te.useState)(kn.get("tab")||"0"),[br,yo]=(0,te.useState)(0),[kr,bi]=(0,te.useState)(0),[fo,Fo]=(0,te.useState)(0),[Di,so]=(0,te.useState)(),[fi,$n]=(0,te.useState)(!1);function hi(Gi){const fa=Gi.target.id;if(Dr==="3"&&fa!==Dr&&(kr===1||kr===2)){ae.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:()=>{To(fa)}});return}To(fa)}(0,te.useEffect)(()=>Zt.Z.subscribe("to-commit-info",()=>{To("1")}),[]);function ko(){To("2")}return te.createElement("div",{className:st["left-panel"]},te.createElement("ul",{className:`${st["s-navs"]} ${st["bg-white"]} ${st.b1}`},te.createElement("li",{className:"mr40 current"},te.createElement("img",{onClick:()=>$n(!0),src:bn})),te.createElement("li",{className:st["oj-mr"]},te.createElement("a",{className:Dr==="0"?st.active:"",id:"0",onClick:hi},"\u4EFB\u52A1\u63CF\u8FF0")),te.createElement("li",{className:st["oj-mr"]},te.createElement("a",{className:Dr==="3"?st.active:"",id:"3",onClick:hi},"\u9898\u89E3",fo?`(${fo})`:"")),te.createElement("li",{className:st["oj-mr"]},te.createElement("a",{className:Dr==="2"?st.active:"",id:"2",onClick:hi},"\u8BC4\u8BBA",br?`(${br})`:"")),te.createElement("li",null,te.createElement("a",{className:Dr==="1"?st.active:"",id:"1",onClick:hi},"\u63D0\u4EA4\u8BB0\u5F55"))),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},te.createElement(Xe,{hack:Re,onTriggerPraise:je,toDiscuss:ko})),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="1"?"":"hide"}`},Sn!=null&&Sn.records_count?te.createElement(Qe,{page:ir,onPageChange:_n,topicId:We,submitting:Xt,submitRecords:Sn,submitResult:mn}):te.createElement(Ye.Z,null)),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="2"?"":"hide"}`,style:{padding:0}},te.createElement(qe,{setDiscussTotal:yo,user:rn,identifier:Re.identifier,hack:Re,onTriggerPraise:je})),te.createElement("div",{className:`${st["tab-panel-body"]} ${Dr==="3"?"":"hide"}`,style:{padding:0}},te.createElement(Qa,{setListStatus:bi,setFilterListTotal:Fo,tabStatus:Dr,identifier:Re.identifier})),te.createElement(sl,{visible:fi,setIndex:To,onVisible:Gi=>$n(Gi),value:Di,onChange:Gi=>so(Gi)}))},cl=ee(88508),ul=ee(62522),Ks=ee(22707),js=ee(8861),dl=ee(96486),gl=ee.n(dl),es=ee(74855),Gr=ee(67294),zs=Object.defineProperty,Hs=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,ws=Object.getOwnPropertySymbols,fl=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,Xs=(Re,je,We)=>je in Re?zs(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:We}):Re[je]=We,Pi=(Re,je)=>{for(var We in je||(je={}))fl.call(je,We)&&Xs(Re,We,je[We]);if(ws)for(var We of ws(je))Ys.call(je,We)&&Xs(Re,We,je[We]);return Re},na=(Re,je)=>Hs(Re,Vs(je)),Os=(Re,je)=>{var We={};for(var ir in Re)fl.call(Re,ir)&&je.indexOf(ir)<0&&(We[ir]=Re[ir]);if(Re!=null&&ws)for(var ir of ws(Re))je.indexOf(ir)<0&&Ys.call(Re,ir)&&(We[ir]=Re[ir]);return We},ga=(Re,je,We)=>new Promise((ir,_n)=>{var rn=mn=>{try{Xt(We.next(mn))}catch(kn){_n(kn)}},Sn=mn=>{try{Xt(We.throw(mn))}catch(kn){_n(kn)}},Xt=mn=>mn.done?ir(mn.value):Promise.resolve(mn.value).then(rn,Sn);Xt((We=We.apply(Re,je)).next())});const{Countdown:Us}=de.default,Qs={Java:"java",C:"c",Python:"py","C++":"c"};var hl=(Re=>(Re[Re.SET_LOADING=0]="SET_LOADING",Re[Re.GET_DATA=1]="GET_DATA",Re[Re.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Re[Re.SET_DATA=3]="SET_DATA",Re[Re.SET_DEBUGING=4]="SET_DEBUGING",Re[Re.SET_SUBMITING=5]="SET_SUBMITING",Re[Re.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Re[Re.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Re[Re.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Re[Re.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Re[Re.SET_PAGE=10]="SET_PAGE",Re[Re.GET_LANGUAGE=11]="GET_LANGUAGE",Re[Re.GET_DRAWER=12]="GET_DRAWER",Re))(hl||{});function fs(){return new Date().getTime()}const Js={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 qs(Re,je){switch(je.type){case 1:return Pi(Pi({},Re),je.payload);case 3:return na(Pi({},Re),{data:je.payload});case 0:return na(Pi({},Re),{loading:je.payload});case 11:return na(Pi({},Re),{languageList:je.payload});case 12:return na(Pi({},Re),{drawerData:je.payload});case 9:return na(Pi({},Re),{showNote:je.payload});case 4:return na(Pi({},Re),{debuging:je.payload});case 5:return na(Pi({},Re),{submitting:je.payload});case 2:return na(Pi({},Re),{submitRecords:je.payload});case 10:return na(Pi({},Re),{submitRecordPage:je.payload});case 6:return na(Pi({},Re),{executingMessage:je.payload});case 7:return Pi(Pi({},Re),je.payload);case 8:return Pi(Pi({},Re),je.payload);default:throw new Error}}var el=({children:Re})=>{var je,We,ir,_n;const[rn,Sn]=(0,te.useReducer)(qs,Js),{id:Xt}=(0,ve.useParams)(),mn=(0,ve.useLocation)(),[kn]=(0,ve.useSearchParams)(),{languageValue:wo,languageList:Dr,loading:To,data:br,debugResult:yo,submitResult:kr,submitRecords:bi,submitRecordPage:fo,showNote:Fo,debuging:Di,submitting:so,executingMessage:fi}=rn,[$n,hi]=(0,te.useState)("#FFF"),[ko,Gi]=(0,te.useState)(null),[fa,Sr]=(0,te.useState)({}),[wi,Go]=(0,te.useState)(!1),Lr=(0,te.useRef)(null),ho=(0,te.useRef)(null),$o=br==null?void 0:br.user,Zo=br==null?void 0:br.hack;(0,te.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,te.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,te.useEffect)(()=>{var ke;if(wi){const $e=document.getElementById("oj-next"),at=document.getElementById("oj-modal-next");((ke=$e==null?void 0:$e.style)==null?void 0:ke.display)==="none"?at.style.display="none":at.style.display="block"}},[wi]),(0,te.useEffect)(()=>{function ke(){return ga(this,null,function*(){var $e,at,mt;const lt=yield(0,fe.fu)(Xt);if(lt.status===401)document.location.href="/user/login";else{lt.hack=lt.practice,lt.hack.code=De.Base64.decode(($e=lt==null?void 0:lt.hack)==null?void 0:$e.code);const Et=`${$o==null?void 0:$o.login}-language`;localStorage.getItem(Et)&&(lt.hack.language=localStorage.getItem(Et)),ho.current=gl().cloneDeep(lt),ho.current.language=(at=lt==null?void 0:lt.hack)==null?void 0:at.language,Sn({type:1,payload:{loading:!1,data:lt}}),Sn({type:8,payload:{languageValue:(mt=lt==null?void 0:lt.hack)==null?void 0:mt.language}})}})}Xt&&ke()},[Xt]),(0,te.useEffect)(()=>{Sn({type:8,payload:{debugResult:void 0}}),ts(),Go(!1)},[Xt]),(0,te.useEffect)(()=>{clearTimeout(Lr.current)},[Xt]),(0,te.useEffect)(()=>{hs()},[Xt,fo]);const Ls=()=>{window.parent.postMessage("backExercise","*")};function hs(){return ga(this,null,function*(){try{const ke=yield(0,fe.zO)(Xt,{limit:15,page:fo});Sn({type:2,payload:ke})}catch(ke){console.log(ke)}})}function ts(){return ga(this,null,function*(){try{const ke=yield(0,fe.dd)(Xt);Sn({type:11,payload:ke==null?void 0:ke.data})}catch(ke){console.log(ke)}})}function xs(ke){Sn({type:10,payload:ke})}function ja(ke){return ga(this,null,function*(){var $e,at,mt;const lt=((mt=(at=($e=window==null?void 0:window.location)==null?void 0:$e.pathname)==null?void 0:at.split("/"))==null?void 0:mt[2])||Xt;return yield(0,fe.n4)(lt,ke||{code:De.Base64.encode(Zo.code),language:wo})})}function ms(){return ga(this,null,function*(){var ke;if(!Zo.code||((ke=Zo.code)==null?void 0:ke.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(!so){Sn({type:5,payload:!0});try{if(Zt.Z.publish("to-commit-info"),(yield ja()).status===0){let xt=function(){return ga(this,null,function*(){const{status:en,data:Yt}=yield(0,fe.rX)(Xt,"submit"),On=fs()-Tt>(lt*Et+3)*1e3;if(en!==0&&!On&&setTimeout(xt,1e3),On){ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),Sn({type:5,payload:!1});return}if(en===0){Yt.status===2&&ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const xn=yield(0,fe.zO)(Xt,{limit:15,page:fo});Sn({type:8,payload:na(Pi({},rn),{submitResult:Yt,submitting:!1,submitRecords:xn})}),(Yt==null?void 0:Yt.status)===0&&Go(!0)}})},at={};const mt=yield(0,fe.bM)(Xt,at);if(mt.status===-1&&kn.get("exercisesId")){window.parent.location.href=`/classrooms/${kn.get("coursesId")}/exercise/${kn.get("exercisesId")}/detail`;return}const{time_limit:lt,test_case_size:Et}=Zo,Tt=fs();(mt==null?void 0:mt.status)>-1?xt():Sn({type:4,payload:!1})}}catch($e){Sn({type:5,payload:!1})}}})}function Hr(){return ga(this,null,function*(){var ke;if(!Zo.code||((ke=Zo.code)==null?void 0:ke.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}rn.debuging=!0,Sn({type:4,payload:!0});try{if((yield ja()).status===0){let Tt=function(){return ga(this,null,function*(){const{status:xt,message:en,data:Yt}=yield(0,fe.rX)(Xt,"debug"),On=fs()-Et>(at+3)*1e3;if(xt!==0&&!On&&(Sn({type:6,payload:en}),setTimeout(Tt,1e3)),On){ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Sn({type:4,payload:!1});return}xt===0&&(Sn({type:4,payload:!1}),Yt.status===2&&ae.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Sn({type:7,payload:na(Pi({},rn),{debugResult:Yt,debuging:!1})}))})};const{time_limit:at}=Zo;let mt={input:encodeURIComponent(br.test_case.input)};const lt=yield(0,fe.MU)(Xt,mt);if(lt.status===-1&&kn.get("exercisesId")){window.parent.location.href=`/classrooms/${kn.get("coursesId")}/exercise/${kn.get("exercisesId")}/detail`;return}const Et=fs();(lt==null?void 0:lt.status)>-1?Tt():Sn({type:4,payload:!1})}else Sn({type:4,payload:!1})}catch($e){console.log($e)}finally{}})}function Ni(ke){var $e;clearTimeout(Lr.current),Lr.current=setTimeout(()=>{var at;ja({code:De.Base64.encode(ke),language:(at=ho==null?void 0:ho.current)==null?void 0:at.language})},2e3),Sn({type:3,payload:na(Pi({},ho==null?void 0:ho.current),{hack:na(Pi({},($e=ho==null?void 0:ho.current)==null?void 0:$e.hack),{code:ke})})})}function ya(ke){let $e=ke.target.value;Sn({type:3,payload:na(Pi({},br),{test_case:{input:$e}})})}const ls=ke=>ga(void 0,null,function*(){var $e;if(Sn({type:0,payload:!0}),(yield ja()).status===0){Sn({type:8,payload:{languageValue:ke}}),ho.current.language=ke;const mt=`${$o==null?void 0:$o.login}-language`;localStorage.setItem(mt,ke);const lt=yield(0,fe.dd)(Xt);if(lt.status===0){const Et=($e=lt==null?void 0:lt.data)==null?void 0:$e.find(Tt=>Tt.language===ke);Ni(De.Base64.decode(Et.code))}setTimeout(()=>{Sn({type:0,payload:!1})},300)}});function _a(){return ga(this,null,function*(){try{const ke=yield(0,fe.H7)(Xt,{language:wo});ke.status===401?ve.history.replace("/login",{from:mn.pathname}):(Ni(De.Base64.decode(ke.code)),ts())}catch(ke){console.log(ke)}})}function Ta(){ae.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Gr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Gr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return ga(this,null,function*(){const ke=yield(0,fe.fi)(Xt,{language:wo});ke.status===401?ve.history.replace("/login",{from:mn.pathname}):Ni(De.Base64.decode(ke.code))})}})}function za(){Sn({type:9,payload:!0})}function Ji(){Sn({type:9,payload:!1})}function Ee(ke){return ga(this,null,function*(){yield(0,fe.MK)(Xt,ke),Sn({type:1,payload:{showNote:!1,data:na(Pi({},br),{hack:na(Pi({},Zo),{notes:ke.notes})})}})})}const we={input:(je=br==null?void 0:br.test_case)==null?void 0:je.input,is_file:(We=br==null?void 0:br.test_case)==null?void 0:We.is_file,language:((ir=ho.current)==null?void 0:ir.language)||(Zo==null?void 0:Zo.language),code:Zo==null?void 0:Zo.code,title:"main."+Qs[Zo==null?void 0:Zo.language],modify_code:Zo==null?void 0:Zo.modify_code,notes:Zo==null?void 0:Zo.notes,debugResult:yo,debuging:Di,submitting:so,executingMessage:fi,id:Xt,languageValue:wo,languageList:Dr,onChangeLanguage:ls,onCancelNote:Ji,onAddNote:Ee,showNote:Fo,onShowNote:za,onSubmitCode:ms,onChangeCode:Ni,onChangeInput:ya,onDebugCode:Hr,onResetCode:_a,onSyncCode:Ta,onUpdateCode:ja};function Oe(){return ga(this,null,function*(){const{praise_count:ke}=yield(0,fe.vl)(Zo.id,{container_type:"Hack",type:1});let $e=na(Pi({},br),{hack:na(Pi({},Zo),{praises_count:ke,user_praise:!Zo.user_praise})});Sn({type:3,payload:$e})})}const Be={topicId:Xt,submitResult:kr,submitRecords:bi,submitting:so,page:fo,onPageChange:xs,hack:Zo,user:br==null?void 0:br.user,onTriggerPraise:Oe};return console.log(br,ho==null?void 0:ho.current,"data--------"),Gr.createElement(Gr.Fragment,null,Gr.createElement(he.Z,{className:"oj-custom-large-spin",size:"large",spinning:To},br?Gr.createElement("div",{className:"oj-custom-warp"},Gr.createElement("header",{className:Ie.Z.header,style:{minWidth:1200}},Gr.createElement("div",null,Gr.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${$o.image_url}`,alt:"user",width:30}),Gr.createElement("span",null,$o.name)),Gr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Gr.createElement("div",null,Zo.name),Gr.createElement(cl.Z,{onChange:ke=>{},className:"font12 c-grey-999"})),Gr.createElement(es.CopyToClipboard,{text:`${(_n=window.location)==null?void 0:_n.origin}/problems/${Zo.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Gr.createElement("span",{className:Ie.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Gr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Zo.edit_privilege?Gr.createElement(ve.Link,{className:Ie.Z.btn_back,to:`/problems/${Zo.identifier}/ojedit`,style:{marginRight:10}}," ",Gr.createElement(ue.Z,null)," \u7F16\u8F91"):null,Gr.createElement(ve.Link,{className:Ie.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Gr.createElement(be.Z,null),"\u9000\u51FA")),Gr.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Gr.createElement(ll,Pi({},Be)),rightChild:Gr.createElement(ml,Pi({},we))})):null),Gr.createElement(ae.default,{centered:!0,closable:!1,width:680,footer:null,open:wi,className:"oj-modal"},Gr.createElement("section",{className:"oj-modal-content"},Gr.createElement("div",{className:"oj-modal-head"},Gr.createElement("img",{src:ul,alt:""}),Gr.createElement("i",{onClick:()=>Go(!1),className:"iconfont icon-guanbi1"})),Gr.createElement("aside",null,Gr.createElement("img",{className:"mr30",src:js.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Gr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},kr==null?void 0:kr.execute_time,"s"),"\u4F18\u4E8E",Gr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(kr==null?void 0:kr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Gr.createElement("aside",{className:"mb50"},Gr.createElement("img",{src:Ks.Z,className:"mr30"}),Gr.createElement("span",{className:"oj-modal-tt"},Gr.createElement("span",null,Gr.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Gr.createElement("span",{className:"c-light-primary"},kr==null?void 0:kr.execute_memory,"mb")),Gr.createElement("span",null,Gr.createElement("span",null))),"\u4F18\u4E8E",Gr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(kr==null?void 0:kr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Gr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Gs({languageValue:Re,languageList:je,onChangeLanguage:We,title:ir,modify_code:_n,onSyncCode:rn,onShowCodeSetting:Sn,onResetCode:Xt}){const mn=(0,ve.useLocation)(),kn=()=>{ae.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Gr.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:Xt})};return Gr.createElement("div",{className:"action-bar"},Gr.createElement(le.default,{className:"oj-select",value:Re,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:We},je==null?void 0:je.map(wo=>Gr.createElement(le.default.Option,{key:wo.language,value:wo.language},wo.language))),Gr.createElement("span",null),Gr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:kn},Gr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Gr.createElement("a",{onClick:Sn},Gr.createElement("i",{className:"iconfont icon-shezhi"})))}function ml(Re){var je=Re,{id:We,input:ir,is_file:_n,showNote:rn,onShowNote:Sn,notes:Xt,onCancelNote:mn,onAddNote:kn,debugResult:wo,language:Dr,debuging:To,submitting:br,executingMessage:yo,code:kr,onSubmitCode:bi,onDebugCode:fo,onChangeCode:Fo,onChangeInput:Di,onUpdateCode:so}=je,fi=Os(je,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function $n(ko){return Gr.createElement(Gs,na(Pi({},fi),{onShowCodeSetting:ko}))}const hi={id:We,input:ir,debugResult:wo,debuging:To,is_file:_n,submitting:br,executingMessage:yo,onDebugCode:fo,onChangeCode:Fo,onSubmitCode:bi,onChangeInput:Di};return Gr.createElement("div",{className:"right-panel"},Gr.createElement(gt,{onUpdateCode:()=>{},language:Dr,value:kr,onChange:Fo,ActionBarRender:$n}),Gr.createElement("div",{className:`note-form-area ${rn?"active":""}`},Gr.createElement(rt,{onCancel:mn,notes:Xt,callback:kn})),Gr.createElement(tt.ZP,Pi({},hi)))}},94189:function(ot,Ge,ee){"use strict";ee.d(Ge,{h:function(){return te}});var te=(ue=>(ue[ue.NOMATCH=-1]="NOMATCH",ue[ue.OK=0]="OK",ue[ue.TIMEOUT=2]="TIMEOUT",ue[ue.PODFAILURE=3]="PODFAILURE",ue[ue.COMPILEFAILURE=4]="COMPILEFAILURE",ue[ue.EXECUTEFAILURE=5]="EXECUTEFAILURE",ue[ue.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ue))(te||{})},33227:function(ot,Ge,ee){"use strict";ee.d(Ge,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return he},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 ce},fi:function(){return fe},fu:function(){return ue},gu:function(){return E},n4:function(){return se},qe:function(){return z},rL:function(){return ie},rX:function(){return ae},uc:function(){return ye},vl:function(){return re},wO:function(){return x},zO:function(){return de}});var te=ee(33170);function ue(_e){return(0,te.U2)(`mypractices/${_e}.json`,{hidePopLogin:!0})}function be(_e,xe){return(0,te.v_)(`mypractices/${_e}/code_submit.json`,xe)}function ve(_e,xe){return(0,te.v_)(`mypractices/${_e}/code_debug.json`,xe)}function de(_e,xe){return xe.language&&(xe.language=encodeURIComponent(xe.language)),(0,te.U2)(`mypractices/${_e}/submit_records.json`,xe)}function pe(_e){return(0,te.U2)("mypractices/record_detail.json",{id:_e})}function ae(_e,xe){return(0,te.U2)(`mypractices/${_e}/result.json`,{mode:xe})}function he(_e,xe){return(0,te.v_)(`mypractices/${_e}/add_notes.json`,xe)}function le(_e,xe){return(0,te.v_)(`mypractices/${_e}/restore_initial_code.json`,xe)}function fe(_e,xe){return(0,te.v_)(`mypractices/${_e}/sync_code.json`,xe)}function se(_e,xe){return(0,te.v_)(`mypractices/${_e}/update_code.json`,xe)}function me(_e){return(0,te.v_)(`mypractices/${_e}/initial_codes.json`)}function re(_e,xe){return(0,te.v_)(`discusses/${_e}/plus.json`,xe)}function ne(_e){return(0,te.U2)("practices/practices_list.json",_e)}function a(_e,xe){return(0,te.U2)(`practices/${_e}/question_solution_articles`,xe)}function y(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles`,xe)}function E(_e,xe){return(0,te.gz)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function b(_e,xe){return(0,te.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/edit`,xe)}function x(_e,xe){return(0,te.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function z(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/set_authority_or_excellent`,xe)}function oe(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/praise_or_treads`,xe)}function ie(_e,xe){return(0,te.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/hide`)}function ce(_e,xe){return(0,te.IV)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function ye(_e,xe){return(0,te.v_)(`mypractices/${_e}/update_practice_time_sum`,xe)}},93989:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return re}});var te=ee(67294),ue=ee(2453),be=ee(83062),ve=ee(57953),de=ee(71230),pe=ee(15746),ae=ee(28452),he=ee(71577),le=ee(35567),fe=ee(33170),se=ee(85725),me=(a,y,E)=>new Promise((b,x)=>{var z=ce=>{try{ie(E.next(ce))}catch(ye){x(ye)}},oe=ce=>{try{ie(E.throw(ce))}catch(ye){x(ye)}},ie=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(z,oe);ie((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,z]=(0,te.useState)(""),[oe,ie]=(0,te.useState)(!1);function ce(_e){z(_e)}function ye(){if(!x){ue.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),z("")}return(0,te.useEffect)(()=>{y!=a&&ie(!1)},[y]),te.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},te.createElement(le.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ce,extraUse:b&&te.createElement(be.Z,{color:"#fff",open:oe,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:oe,activeDiscussIndex:y,onChange:ce,setIsOpen:ie}),overlayStyle:{maxWidth:600}},te.createElement("a",{title:oe?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ie(!oe)},te.createElement("i",{className:"iconfont icon-dianzan11"})))}),te.createElement("a",{onClick:ye,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,te.useState)(!1),[b,x]=(0,te.useState)([]),[z,oe]=(0,te.useState)(1);(0,te.useEffect)(()=>{a!=null&&a.isOpen?ie():(oe(1),x([]))},[a==null?void 0:a.isOpen]);const ie=()=>me(void 0,null,function*(){E(!0);const ce=yield(0,fe.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ce==null?void 0:ce.status)==0&&x(ce==null?void 0:ce.answer),E(!1)});return te.createElement(ve.Z,{spinning:y},te.createElement("div",{style:{color:"#000"}},te.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[z-1])||""}),te.createElement(de.Z,{justify:"end",align:"middle"},te.createElement(pe.Z,null,te.createElement(ae.Z,{simple:!0,current:z,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{oe(ce)}})),te.createElement(pe.Z,null,te.createElement(he.ZP,{onClick:()=>me(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[z-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(ot,Ge,ee){"use strict";ee.d(Ge,{BU:function(){return ue},Dj:function(){return te},gH:function(){return be},vp:function(){return ve}});function te(de){try{de.mozRequestFullScreen?de.mozRequestFullScreen():de.webkitRequestFullScreen&&de.webkitRequestFullScreen()}catch(pe){console.log(pe,":e")}}function ue(){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 de=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",de),window.isFullScreen?window.isFullScreen:de!=null}},40471:function(ot,Ge,ee){"use strict";ee.d(Ge,{G:function(){return de},t:function(){return ve}});var te=ee(58971),ue=ee.n(te);const be=null;function ve(pe,ae){let he=ue().get("__ec");he||(he={}),he[pe]=ae,ue().set("__ec",he)}function de(pe,ae){let he=ue().get("__ec");return he?he[pe]===void 0?ae:he[pe]:ae}},24577:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Ei}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ge,Se){return ge.__proto__=Se,ge},Object.assign=Object.assign||function(ge){if(ge==null)throw new TypeError("Cannot convert undefined or null to object");let Se=Object(ge);for(let Pe=1;Pe ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","error",Pe),de.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","info",Pe),de.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","warn",Pe),de.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","debug",Pe),de.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ge,Se){(!ge||de.FORCE_GLOBAL_TAG)&&(ge=de.GLOBAL_TAG);let Pe=`[${ge}] > ${Se}`;de.ENABLE_CALLBACK&&de.emitter.emit("log","verbose",Pe),de.ENABLE_VERBOSE&&console.log(Pe)}}de.GLOBAL_TAG="flv.js",de.FORCE_GLOBAL_TAG=!1,de.ENABLE_ERROR=!0,de.ENABLE_INFO=!0,de.ENABLE_WARN=!0,de.ENABLE_DEBUG=!0,de.ENABLE_VERBOSE=!0,de.ENABLE_CALLBACK=!1,de.emitter=new(ve());var pe=de;class ae{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(ge){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ge,this._totalBytes+=ge):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ge,this._totalBytes+=ge):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ge,this._totalBytes+=ge,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ge=(this._now()-this._lastCheckpoint)/1e3;return ge==0&&(ge=1),this._intervalBytes/ge/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ge=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ge/1024}}var he=ae;class le{constructor(ge){this._message=ge}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class fe extends le{constructor(ge){super(ge)}get name(){return"IllegalStateException"}}class se extends le{constructor(ge){super(ge)}get name(){return"InvalidArgumentException"}}class me extends le{constructor(ge){super(ge)}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(ge){this._type=ge||"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(ge){this._onContentLengthKnown=ge}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ge){this._onURLRedirect=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}open(ge,Se){throw new me("Unimplemented abstract function!")}abort(){throw new me("Unimplemented abstract function!")}}let y={};function E(){let cn=self.navigator.userAgent.toLowerCase(),ge=/(edge)\/([\w.]+)/.exec(cn)||/(opr)[\/]([\w.]+)/.exec(cn)||/(chrome)[ \/]([\w.]+)/.exec(cn)||/(iemobile)[\/]([\w.]+)/.exec(cn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(cn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(cn)||/(webkit)[ \/]([\w.]+)/.exec(cn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(cn)||/(msie) ([\w.]+)/.exec(cn)||cn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(cn)||cn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(cn)||[],Se=/(ipad)/.exec(cn)||/(ipod)/.exec(cn)||/(windows phone)/.exec(cn)||/(iphone)/.exec(cn)||/(kindle)/.exec(cn)||/(android)/.exec(cn)||/(windows)/.exec(cn)||/(mac)/.exec(cn)||/(linux)/.exec(cn)||/(cros)/.exec(cn)||[],Pe={browser:ge[5]||ge[3]||ge[1]||"",version:ge[2]||ge[4]||"0",majorVersion:ge[4]||ge[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 ge=b.msedge&&b.version.minor>=15048,Se=b.msedge?ge:!0;return self.fetch&&self.ReadableStream&&Se}catch(ge){return!1}}constructor(ge,Se){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ge,this._config=Se,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ge,Se){this._dataSource=ge,this._range=Se;let Pe=ge.url;this._config.reuseRedirectedURL&&ge.redirectedURL!=null&&(Pe=ge.redirectedURL);let Le=this._seekHandler.getConfig(Pe,Se),Ne=new self.Headers;if(typeof Le.headers=="object"){let it=Le.headers;for(let un in it)it.hasOwnProperty(un)&&Ne.append(un,it[un])}let qe={method:"GET",headers:Ne,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let it in this._config.headers)Ne.append(it,this._config.headers[it]);ge.cors===!1&&(qe.mode="same-origin"),ge.withCredentials&&(qe.credentials="include"),ge.referrerPolicy&&(qe.referrerPolicy=ge.referrerPolicy),this._status=re.kConnecting,self.fetch(Le.url,qe).then(it=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(it.ok&&it.status>=200&&it.status<=299){if(it.url!==Le.url&&this._onURLRedirect){let Vt=this._seekHandler.removeURLParameters(it.url);this._onURLRedirect(Vt)}let un=it.headers.get("Content-Length");return un!=null&&(this._contentLength=parseInt(un),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,it.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:it.status,msg:it.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+it.status+" "+it.statusText)}).catch(it=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:it.message});else throw it})}abort(){this._requestAbort=!0}_pump(ge){return ge.read().then(Se=>{if(Se.done)if(this._contentLength!==null&&this._receivedLength{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._receivedLength299))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(ge){if(this._status===re.kError)return;this._contentLength===null&&ge.total!==null&&ge.total!==0&&(this._contentLength=ge.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let Se=ge.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onLoadEnd(ge){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(ge){this._status=re.kError;let Se=0,Pe=null;if(this._contentLength&&ge.loaded=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(ge){this._status=LoaderStatus.kError;let Se=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ge.constructor.name+" "+ge.type};if(this._onError)this._onError(Se,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ge){let Pe=ge.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&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:Se,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ge,Se){this._lastTimeLoaded=0;let Pe=ge.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ge.redirectedURL!=null&&(Pe=ge.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),ge.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let qe=Le.headers;for(let it in qe)qe.hasOwnProperty(it)&&Ne.setRequestHeader(it,qe[it])}if(typeof this._config.headers=="object"){let qe=this._config.headers;for(let it in qe)qe.hasOwnProperty(it)&&Ne.setRequestHeader(it,qe[it])}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(ge){let Se=ge.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(ge){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=ge.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=ge.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ge.loaded,this._speedSampler.addBytes(Se)}_normalizeSpeed(ge){let Se=this._chunkSizeKBList,Pe=Se.length-1,Le=0,Ne=0,qe=Pe;if(ge=Se[Le]&&ge=3&&(Se=this._speedSampler.currentKBps)),Se!==0){let qe=this._normalizeSpeed(Se);this._currentSpeedNormalized!==qe&&(this._currentSpeedNormalized=qe,this._currentChunkSizeKB=qe)}let Pe=ge.target.response,Le=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Ne=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(Se.result)},Se.readAsArrayBuffer(ge.data)}else{this._status=re.kError;let Se={code:-1,msg:"Unsupported WebSocket message type: "+ge.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}_dispatchArrayBuffer(ge){let Se=ge,Pe=this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onWebSocketError(ge){this._status=re.kError;let Se={code:ge.code,msg:ge.message};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}var Te=Ce;class Me{constructor(ge){this._zeroStart=ge||!1}getConfig(ge,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:ge,headers:Pe}}removeURLParameters(ge){return ge}}var pt=Me;class Ve{constructor(ge,Se){this._startName=ge,this._endName=Se}getConfig(ge,Se){let Pe=ge;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(ge){let Se=ge.split("?")[0],Pe,Le=ge.indexOf("?");Le!==-1&&(Pe=ge.substring(Le+1));let Ne="";if(Pe!=null&&Pe.length>0){let qe=Pe.split("&");for(let it=0;it0;un[0]!==this._startName&&un[0]!==this._endName&&(Vt&&(Ne+="&"),Ne+=qe[it])}}return Ne.length===0?Se:Se+"?"+Ne}}var gt=Ve;class Ae{constructor(ge,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=ge,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ge.url),this._refTotalLength=ge.filesize?ge.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new he,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(ge){this._extraData=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onSeeked(){return this._onSeeked}set onSeeked(ge){this._onSeeked=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}get onRedirect(){return this._onRedirect}set onRedirect(ge){this._onRedirect=ge}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ge){this._onRecoveredEarlyEof=ge}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 ge=this._config;if(ge.seekType==="range")this._seekHandler=new pt(this._config.rangeLoadZeroStart);else if(ge.seekType==="param"){let Se=ge.seekParamStart||"bstart",Pe=ge.seekParamEnd||"bend";this._seekHandler=new gt(Se,Pe)}else if(ge.seekType==="custom"){if(typeof ge.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ge.customSeekHandler}else throw new se(`Invalid seekType in config: ${ge.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Te;else if(z.isSupported())this._loaderClass=z;else if(ie.isSupported())this._loaderClass=ie;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(ge){this._currentRange={from:0,to:-1},ge&&(this._currentRange.from=ge),this._speedSampler.reset(),ge||(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 ge=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ge,!0)}}seek(ge){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ge,!0)}_internalSeek(ge,Se){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Se),this._loader.destroy(),this._loader=null;let Pe={from:ge,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(ge){if(!ge||typeof ge!="string"||ge.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=ge}_expandBuffer(ge){let Se=this._stashSize;for(;Se+1024*1024*10){let Le=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,Se).set(Le,0)}this._stashBuffer=Pe,this._bufferSize=Se}_normalizeSpeed(ge){let Se=this._speedNormalizeList,Pe=Se.length-1,Le=0,Ne=0,qe=Pe;if(ge=Se[Le]&&ge=512&&ge<=1024?Se=Math.floor(ge*1.5):Se=ge*2,Se>8192&&(Se=8192);let Pe=Se*1024+1024*1024*1;this._bufferSize0){let qe=this._stashBuffer.slice(0,this._stashUsed),it=this._dispatchChunks(qe,this._stashByteStart);if(it0){let un=new Uint8Array(qe,it);Ne.set(un,0),this._stashUsed=un.byteLength,this._stashByteStart+=it}}else this._stashUsed=0,this._stashByteStart+=it;this._stashUsed+ge.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ge.byteLength),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength}else{let qe=this._dispatchChunks(ge,Se);if(qethis._bufferSize&&(this._expandBuffer(it),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge,qe),0),this._stashUsed+=it,this._stashByteStart=Se+qe}}}else if(this._stashUsed===0){let Ne=this._dispatchChunks(ge,Se);if(Nethis._bufferSize&&this._expandBuffer(qe),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ge,Ne),0),this._stashUsed+=qe,this._stashByteStart=Se+Ne}}else{this._stashUsed+ge.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ge.byteLength);let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength;let qe=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(qe0){let it=new Uint8Array(this._stashBuffer,qe);Ne.set(it,0)}this._stashUsed-=qe,this._stashByteStart+=qe}}_flushStashBuffer(ge){if(this._stashUsed>0){let Se=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Se,this._stashByteStart),Le=Se.byteLength-Pe;if(Pe0){let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),qe=new Uint8Array(Se,Pe);Ne.set(qe,0),this._stashUsed=qe.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Le}return 0}_onLoaderComplete(ge,Se){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ge,Se){switch(pe.e(this.TAG,`Loader error, code = ${Se.code}, msg = ${Se.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ge=ne.UNRECOVERABLE_EARLY_EOF),ge){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe0){let Se=Qt.getConfig();ge.emit("change",Se)}}static registerListener(ge){Qt.emitter.addListener("change",ge)}static removeListener(ge){Qt.emitter.removeListener("change",ge)}static addLogListener(ge){pe.emitter.addListener("log",ge),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,Qt._notifyChange())}static removeLogListener(ge){pe.emitter.removeListener("log",ge),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,Qt._notifyChange())}}Qt.emitter=new(ve());var rt=Qt;class st{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 ge=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&&ge&&Se}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ge){if(this.keyframesIndex==null)return null;let Se=this.keyframesIndex,Pe=this._search(Se.times,ge);return{index:Pe,milliseconds:Se.times[Pe],fileposition:Se.filepositions[Pe]}}_search(ge,Se){let Pe=0,Le=ge.length-1,Ne=0,qe=0,it=Le;for(Se=ge[Ne]&&Se=128){ge.push(String.fromCharCode(Ne&65535)),Pe+=2;continue}}}else if(Se[Pe]<240){if(Gt(Se,Pe,2)){let Ne=(Se[Pe]&15)<<12|(Se[Pe+1]&63)<<6|Se[Pe+2]&63;if(Ne>=2048&&(Ne&63488)!==55296){ge.push(String.fromCharCode(Ne&65535)),Pe+=3;continue}}}else if(Se[Pe]<248&&Gt(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,ge.push(String.fromCharCode(Ne>>>10|55296)),ge.push(String.fromCharCode(Ne&1023|56320)),Pe+=4;continue}}}ge.push("\uFFFD"),++Pe}return ge.join("")}var Bt=Ht;let Ke=function(){let cn=new ArrayBuffer(2);return new DataView(cn).setInt16(0,256,!0),new Int16Array(cn)[0]===256}();class Jt{static parseScriptData(ge,Se,Pe){let Le={};try{let Ne=Jt.parseValue(ge,Se,Pe),qe=Jt.parseValue(ge,Se+Ne.size,Pe-Ne.size);Le[Ne.data]=qe.data}catch(Ne){pe.e("AMF",Ne.toString())}return Le}static parseObject(ge,Se,Pe){if(Pe<3)throw new fe("Data not enough when parse ScriptDataObject");let Le=Jt.parseString(ge,Se,Pe),Ne=Jt.parseValue(ge,Se+Le.size,Pe-Le.size),qe=Ne.objectEnd;return{data:{name:Le.data,value:Ne.data},size:Le.size+Ne.size,objectEnd:qe}}static parseVariable(ge,Se,Pe){return Jt.parseObject(ge,Se,Pe)}static parseString(ge,Se,Pe){if(Pe<2)throw new fe("Data not enough when parse String");let Ne=new DataView(ge,Se,Pe).getUint16(0,!Ke),qe;return Ne>0?qe=Bt(new Uint8Array(ge,Se+2,Ne)):qe="",{data:qe,size:2+Ne}}static parseLongString(ge,Se,Pe){if(Pe<4)throw new fe("Data not enough when parse LongString");let Ne=new DataView(ge,Se,Pe).getUint32(0,!Ke),qe;return Ne>0?qe=Bt(new Uint8Array(ge,Se+4,Ne)):qe="",{data:qe,size:4+Ne}}static parseDate(ge,Se,Pe){if(Pe<10)throw new fe("Data size invalid when parse Date");let Le=new DataView(ge,Se,Pe),Ne=Le.getFloat64(0,!Ke),qe=Le.getInt16(8,!Ke);return Ne+=qe*60*1e3,{data:new Date(Ne),size:10}}static parseValue(ge,Se,Pe){if(Pe<1)throw new fe("Data not enough when parse Value");let Le=new DataView(ge,Se,Pe),Ne=1,qe=Le.getUint8(0),it,un=!1;try{switch(qe){case 0:it=Le.getFloat64(1,!Ke),Ne+=8;break;case 1:{it=!!Le.getUint8(1),Ne+=1;break}case 2:{let Vt=Jt.parseString(ge,Se+1,Pe-1);it=Vt.data,Ne+=Vt.size;break}case 3:{it={};let Vt=0;for((Le.getUint32(Pe-4,!Ke)&16777215)===9&&(Vt=3);Ne32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(ge<=this._current_word_bits_left){let qe=this._current_word>>>32-ge;return this._current_word<<=ge,this._current_word_bits_left-=ge,qe}let Se=this._current_word_bits_left?this._current_word:0;Se=Se>>>32-this._current_word_bits_left;let Pe=ge-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<>>ge)return this._current_word<<=ge,this._current_word_bits_left-=ge,ge;return this._fillCurrentWord(),ge+this._skipLeadingZero()}readUEG(){let ge=this._skipLeadingZero();return this.readBits(ge+1)-1}readSEG(){let ge=this.readUEG();return ge&1?ge+1>>>1:-1*(ge>>>1)}}var pn=Hn;class kt{static _ebsp2rbsp(ge){let Se=ge,Pe=Se.byteLength,Le=new Uint8Array(Pe),Ne=0;for(let qe=0;qe=2&&Se[qe]===3&&Se[qe-1]===0&&Se[qe-2]===0||(Le[Ne]=Se[qe],Ne++);return new Uint8Array(Le.buffer,0,Ne)}static parseSPS(ge){let Se=kt._ebsp2rbsp(ge),Pe=new pn(Se);Pe.readByte();let Le=Pe.readByte();Pe.readByte();let Ne=Pe.readByte();Pe.readUEG();let qe=kt.getProfileString(Le),it=kt.getLevelString(Ne),un=1,Vt=420,En=[0,420,422,444],Vn=8;if((Le===100||Le===110||Le===122||Le===244||Le===44||Le===83||Le===86||Le===118||Le===128||Le===138||Le===144)&&(un=Pe.readUEG(),un===3&&Pe.readBits(1),un<=3&&(Vt=En[un]),Vn=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let wr=un!==3?8:12;for(let rr=0;rr0&&wr<16?(Po=rr[wr-1],fr=ei[wr-1]):wr===255&&(Po=Pe.readByte()<<8|Pe.readByte(),fr=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 wr=Pe.readBits(32),rr=Pe.readBits(32);Yo=Pe.readBool(),Io=rr,ni=wr*2,Vr=Io/ni}}let Vi=1;(Po!==1||fr!==1)&&(Vi=Po/fr);let fn=0,xo=0;if(un===0)fn=1,xo=2-Pn;else{let wr=un===3?1:2,rr=un===1?2:1;fn=wr,xo=rr*(2-Pn)}let Yi=(qn+1)*16,Cn=(2-Pn)*((er+1)*16);Yi-=(An+Yn)*fn,Cn-=(yr+lr)*xo;let nr=Math.ceil(Yi*Vi);return Pe.destroy(),Pe=null,{profile_string:qe,level_string:it,bit_depth:Vn,ref_frames:Ot,chroma_format:Vt,chroma_format_string:kt.getChromaFormatString(Vt),frame_rate:{fixed:Yo,fps:Vr,fps_den:ni,fps_num:Io},sar_ratio:{width:Po,height:fr},codec_size:{width:Yi,height:Cn},present_size:{width:nr,height:Cn}}}static _skipScalingList(ge,Se){let Pe=8,Le=8,Ne=0;for(let qe=0;qe>>8&255|(cn&255)<<8}function At(cn){return(cn&4278190080)>>>24|(cn&16711680)>>>8|(cn&65280)<<8|(cn&255)<<24}function et(cn,ge){return cn[ge]<<24|cn[ge+1]<<16|cn[ge+2]<<8|cn[ge+3]}class vt{constructor(ge,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=ge.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ge.hasAudioTrack,this._hasVideo=ge.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ct,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(ge){let Se=new Uint8Array(ge),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,qe=et(Se,5);return qe<9?Pe:{match:!0,consumed:qe,dataOffset:qe,hasAudioTrack:Le,hasVideoTrack:Ne}}bindDataSource(ge){return ge.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ge){this._onTrackMetadata=ge}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ge){this._onMediaInfo=ge}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ge){this._onMetaDataArrived=ge}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ge){this._onScriptDataArrived=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ge){this._onDataAvailable=ge}get timestampBase(){return this._timestampBase}set timestampBase(ge){this._timestampBase=ge}get overridedDuration(){return this._duration}set overridedDuration(ge){this._durationOverrided=!0,this._duration=ge,this._mediaInfo.duration=ge}set overridedHasAudio(ge){this._hasAudioFlagOverrided=!0,this._hasAudio=ge,this._mediaInfo.hasAudio=ge}set overridedHasVideo(ge){this._hasVideoFlagOverrided=!0,this._hasVideo=ge,this._mediaInfo.hasVideo=ge}resetMediaInfo(){this._mediaInfo=new Ct}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ge,Se){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new fe("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Le=this._littleEndian;if(Se===0)if(ge.byteLength>13)Pe=vt.probe(ge).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(ge,Pe).getUint32(0,!Le)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pege.byteLength)break;let qe=Ne.getUint8(0),it=Ne.getUint32(0,!Le)&16777215;if(Pe+11+it+4>ge.byteLength)break;if(qe!==8&&qe!==9&&qe!==18){pe.w(this.TAG,`Unsupported tag type ${qe}, skipped`),Pe+=11+it+4;continue}let un=Ne.getUint8(4),Vt=Ne.getUint8(5),En=Ne.getUint8(6),Vn=Ne.getUint8(7),Pr=En|Vt<<8|un<<16|Vn<<24;(Ne.getUint32(7,!Le)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let qn=Pe+11;switch(qe){case 8:this._parseAudioData(ge,qn,it,Pr);break;case 9:this._parseVideoData(ge,qn,it,Pr,Se+Pe);break;case 18:this._parseScriptData(ge,qn,it);break}let er=Ne.getUint32(11+it,!Le);er!==11+it&&pe.w(this.TAG,`Invalid PrevTagSize ${er}`),Pe+=11+it+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ge,Se,Pe){let Le=Mn.parseScriptData(ge,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 qe=Math.floor(Ne.duration*this._timescale);this._duration=qe,this._mediaInfo.duration=qe}}else this._mediaInfo.duration=0;if(typeof Ne.framerate=="number"){let qe=Math.floor(Ne.framerate*1e3);if(qe>0){let it=qe/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=it,this._referenceFrameRate.fps_num=qe,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=it}}if(typeof Ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let qe=Ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(qe),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(ge){let Se=[],Pe=[];for(let Le=1;Le>>4;if(un!==2&&un!==10){this._onError(Je.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+un);return}let Vt=0,En=(it&12)>>>2;if(En>=0&&En<=4)Vt=this._flvSoundRateTable[En];else{this._onError(Je.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+En);return}let Vn=(it&2)>>>1,Pr=it&1,Ot=this._audioMetadata,qn=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=qn.id,Ot.timescale=this._timescale,Ot.duration=this._duration,Ot.audioSampleRate=Vt,Ot.channelCount=Pr===0?1:2),un===10){let er=this._parseAACAudioData(ge,Se+1,Pe-1);if(er==null)return;if(er.packetType===0){Ot.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Pn=er.data;Ot.audioSampleRate=Pn.samplingRate,Ot.channelCount=Pn.channelCount,Ot.codec=Pn.codec,Ot.originalCodec=Pn.originalCodec,Ot.config=Pn.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 An=this._mediaInfo;An.audioCodec=Ot.originalCodec,An.audioSampleRate=Ot.audioSampleRate,An.audioChannelCount=Ot.channelCount,An.hasVideo?An.videoCodec!=null&&(An.mimeType='video/x-flv; codecs="'+An.videoCodec+","+An.audioCodec+'"'):An.mimeType='video/x-flv; codecs="'+An.audioCodec+'"',An.isComplete()&&this._onMediaInfo(An)}else if(er.packetType===1){let Pn=this._timestampBase+Le,An={unit:er.data,length:er.data.byteLength,dts:Pn,pts:Pn};qn.samples.push(An),qn.length+=er.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${er.packetType}`)}else if(un===2){if(!Ot.codec){let Yn=this._parseMP3AudioData(ge,Se+1,Pe-1,!0);if(Yn==null)return;Ot.audioSampleRate=Yn.samplingRate,Ot.channelCount=Yn.channelCount,Ot.codec=Yn.codec,Ot.originalCodec=Yn.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 yr=this._mediaInfo;yr.audioCodec=Ot.codec,yr.audioSampleRate=Ot.audioSampleRate,yr.audioChannelCount=Ot.channelCount,yr.audioDataRate=Yn.bitRate,yr.hasVideo?yr.videoCodec!=null&&(yr.mimeType='video/x-flv; codecs="'+yr.videoCodec+","+yr.audioCodec+'"'):yr.mimeType='video/x-flv; codecs="'+yr.audioCodec+'"',yr.isComplete()&&this._onMediaInfo(yr)}let er=this._parseMP3AudioData(ge,Se+1,Pe-1,!1);if(er==null)return;let Pn=this._timestampBase+Le,An={unit:er,length:er.byteLength,dts:Pn,pts:Pn};qn.samples.push(An),qn.length+=er.length}}_parseAACAudioData(ge,Se,Pe){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Le={},Ne=new Uint8Array(ge,Se,Pe);return Le.packetType=Ne[0],Ne[0]===0?Le.data=this._parseAACAudioSpecificConfig(ge,Se+1,Pe-1):Le.data=Ne.subarray(1),Le}_parseAACAudioSpecificConfig(ge,Se,Pe){let Le=new Uint8Array(ge,Se,Pe),Ne=null,qe=0,it=0,un=null,Vt=0,En=null;if(qe=it=Le[0]>>>3,Vt=(Le[0]&7)<<1|Le[1]>>>7,Vt<0||Vt>=this._mpegSamplingRates.length){this._onError(Je.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Vn=this._mpegSamplingRates[Vt],Pr=(Le[1]&120)>>>3;if(Pr<0||Pr>=8){this._onError(Je.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}qe===5&&(En=(Le[1]&7)<<1|Le[2]>>>7,un=(Le[2]&124)>>>2);let Ot=self.navigator.userAgent.toLowerCase();return Ot.indexOf("firefox")!==-1?Vt>=6?(qe=5,Ne=new Array(4),En=Vt-3):(qe=2,Ne=new Array(2),En=Vt):Ot.indexOf("android")!==-1?(qe=2,Ne=new Array(2),En=Vt):(qe=5,En=Vt,Ne=new Array(4),Vt>=6?En=Vt-3:Pr===1&&(qe=2,Ne=new Array(2),En=Vt)),Ne[0]=qe<<3,Ne[0]|=(Vt&15)>>>1,Ne[1]=(Vt&15)<<7,Ne[1]|=(Pr&15)<<3,qe===5&&(Ne[1]|=(En&15)>>>1,Ne[2]=(En&1)<<7,Ne[2]|=8,Ne[3]=0),{config:Ne,samplingRate:Vn,channelCount:Pr,codec:"mp4a.40."+qe,originalCodec:"mp4a.40."+it}}_parseMP3AudioData(ge,Se,Pe,Le){if(Pe<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ne=this._littleEndian,qe=new Uint8Array(ge,Se,Pe),it=null;if(Le){if(qe[0]!==255)return;let un=qe[1]>>>3&3,Vt=(qe[1]&6)>>1,En=(qe[2]&240)>>>4,Vn=(qe[2]&12)>>>2,Ot=(qe[3]>>>6&3)!==3?2:1,qn=0,er=0,Pn=34,An="mp3";switch(un){case 0:qn=this._mpegAudioV25SampleRateTable[Vn];break;case 2:qn=this._mpegAudioV20SampleRateTable[Vn];break;case 3:qn=this._mpegAudioV10SampleRateTable[Vn];break}switch(Vt){case 1:Pn=34,En>>4,un=qe&15;if(un!==7){this._onError(Je.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${un}`);return}this._parseAVCVideoPacket(ge,Se+1,Pe-1,Le,Ne,it)}_parseAVCVideoPacket(ge,Se,Pe,Le,Ne,qe){if(Pe<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let it=this._littleEndian,un=new DataView(ge,Se,Pe),Vt=un.getUint8(0),Vn=(un.getUint32(0,!it)&16777215)<<8>>8;if(Vt===0)this._parseAVCDecoderConfigurationRecord(ge,Se+4,Pe-4);else if(Vt===1)this._parseAVCVideoData(ge,Se+4,Pe-4,Le,Ne,qe,Vn);else if(Vt!==2){this._onError(Je.FORMAT_ERROR,`Flv: Invalid video packet type ${Vt}`);return}}_parseAVCDecoderConfigurationRecord(ge,Se,Pe){if(Pe<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Le=this._videoMetadata,Ne=this._videoTrack,qe=this._littleEndian,it=new DataView(ge,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 un=it.getUint8(0),Vt=it.getUint8(1),En=it.getUint8(2),Vn=it.getUint8(3);if(un!==1||Vt===0){this._onError(Je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(it.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Je.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Pr=it.getUint8(5)&31;if(Pr===0){this._onError(Je.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Pr>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Pr}`);let Ot=6;for(let er=0;er1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${qn}`);Ot++;for(let er=0;er=Pe){pe.w(this.TAG,`Malformed Nalu near timestamp ${qn}, offset = ${Pr}, dataSize = ${Pe}`);break}let Pn=Vt.getUint32(Pr,!un);if(Ot===3&&(Pn>>>=8),Pn>Pe-Ot){pe.w(this.TAG,`Malformed Nalus near timestamp ${qn}, NaluSize > DataSize!`);return}let An=Vt.getUint8(Pr+Ot)&31;An===5&&(er=!0);let Yn=new Uint8Array(ge,Se+Pr,Ot+Pn),yr={type:An,data:Yn};En.push(yr),Vn+=Yn.byteLength,Pr+=Ot+Pn}if(En.length){let Pn=this._videoTrack,An={units:En,length:Vn,isKeyframe:er,dts:qn,cts:it,pts:qn+it};er&&(An.fileposition=Ne),Pn.samples.push(An),Pn.length+=Vn}}}var Pt=vt;class Xe{static init(){Xe.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 Xe.types)Xe.types.hasOwnProperty(Se)&&(Xe.types[Se]=[Se.charCodeAt(0),Se.charCodeAt(1),Se.charCodeAt(2),Se.charCodeAt(3)]);let ge=Xe.constants={};ge.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ge.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ge.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ge.STSC=ge.STCO=ge.STTS,ge.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ge.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]),ge.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]),ge.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ge.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ge.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ge){let Se=8,Pe=null,Le=Array.prototype.slice.call(arguments,1),Ne=Le.length;for(let it=0;it>>24&255,Pe[1]=Se>>>16&255,Pe[2]=Se>>>8&255,Pe[3]=Se&255,Pe.set(ge,4);let qe=8;for(let it=0;it>>24&255,ge>>>16&255,ge>>>8&255,ge&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(ge){return Xe.box(Xe.types.trak,Xe.tkhd(ge),Xe.mdia(ge))}static tkhd(ge){let Se=ge.id,Pe=ge.duration,Le=ge.presentWidth,Ne=ge.presentHeight;return Xe.box(Xe.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(ge){return Xe.box(Xe.types.mdia,Xe.mdhd(ge),Xe.hdlr(ge),Xe.minf(ge))}static mdhd(ge){let Se=ge.timescale,Pe=ge.duration;return Xe.box(Xe.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(ge){let Se=null;return ge.type==="audio"?Se=Xe.constants.HDLR_AUDIO:Se=Xe.constants.HDLR_VIDEO,Xe.box(Xe.types.hdlr,Se)}static minf(ge){let Se=null;return ge.type==="audio"?Se=Xe.box(Xe.types.smhd,Xe.constants.SMHD):Se=Xe.box(Xe.types.vmhd,Xe.constants.VMHD),Xe.box(Xe.types.minf,Se,Xe.dinf(),Xe.stbl(ge))}static dinf(){return Xe.box(Xe.types.dinf,Xe.box(Xe.types.dref,Xe.constants.DREF))}static stbl(ge){return Xe.box(Xe.types.stbl,Xe.stsd(ge),Xe.box(Xe.types.stts,Xe.constants.STTS),Xe.box(Xe.types.stsc,Xe.constants.STSC),Xe.box(Xe.types.stsz,Xe.constants.STSZ),Xe.box(Xe.types.stco,Xe.constants.STCO))}static stsd(ge){return ge.type==="audio"?ge.codec==="mp3"?Xe.box(Xe.types.stsd,Xe.constants.STSD_PREFIX,Xe.mp3(ge)):Xe.box(Xe.types.stsd,Xe.constants.STSD_PREFIX,Xe.mp4a(ge)):Xe.box(Xe.types.stsd,Xe.constants.STSD_PREFIX,Xe.avc1(ge))}static mp3(ge){let Se=ge.channelCount,Pe=ge.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 Xe.box(Xe.types[".mp3"],Le)}static mp4a(ge){let Se=ge.channelCount,Pe=ge.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 Xe.box(Xe.types.mp4a,Le,Xe.esds(ge))}static esds(ge){let Se=ge.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 Xe.box(Xe.types.esds,Le)}static avc1(ge){let Se=ge.avcc,Pe=ge.codecWidth,Le=ge.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 Xe.box(Xe.types.avc1,Ne,Xe.box(Xe.types.avcC,Se))}static mvex(ge){return Xe.box(Xe.types.mvex,Xe.trex(ge))}static trex(ge){let Se=ge.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 Xe.box(Xe.types.trex,Pe)}static moof(ge,Se){return Xe.box(Xe.types.moof,Xe.mfhd(ge.sequenceNumber),Xe.traf(ge,Se))}static mfhd(ge){let Se=new Uint8Array([0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255]);return Xe.box(Xe.types.mfhd,Se)}static traf(ge,Se){let Pe=ge.id,Le=Xe.box(Xe.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Ne=Xe.box(Xe.types.tfdt,new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255])),qe=Xe.sdtp(ge),it=Xe.trun(ge,qe.byteLength+16+16+8+16+8+8);return Xe.box(Xe.types.traf,Le,Ne,it,qe)}static sdtp(ge){let Se=ge.samples||[],Pe=Se.length,Le=new Uint8Array(4+Pe);for(let Ne=0;Ne>>24&255,Le>>>16&255,Le>>>8&255,Le&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255],0);for(let it=0;it>>24&255,un>>>16&255,un>>>8&255,un&255,Vt>>>24&255,Vt>>>16&255,Vt>>>8&255,Vt&255,En.isLeading<<2|En.dependsOn,En.isDependedOn<<6|En.hasRedundancy<<4|En.isNonSync,0,0,Vn>>>24&255,Vn>>>16&255,Vn>>>8&255,Vn&255],12+16*it)}return Xe.box(Xe.types.trun,qe)}static mdat(ge){return Xe.box(Xe.types.mdat,ge)}}Xe.init();var Zt=Xe;class He{static getSilentFrame(ge,Se){if(ge==="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 ut=He;class wn{constructor(ge,Se,Pe,Le,Ne){this.dts=ge,this.pts=Se,this.duration=Pe,this.originalDts=Le,this.isSyncPoint=Ne,this.fileposition=null}}class sn{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(ge){ge.isSyncPoint=!0,this.syncPoints.push(ge)}}class ht{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ge){let Se=this._list;ge.length!==0&&(Se.length>0&&ge[0].originalDts=Se[Ne].dts&&geSe[Le].lastSample.originalDts&&ge=Se[Le].lastSample.originalDts&&(Le===Se.length-1||Le0&&(Ne=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Ne,this._list.splice(Ne,0,Pe)}getLastSegmentBefore(ge){let Se=this._searchNearestSegmentBefore(ge);return Se>=0?this._list[Se]:null}getLastSampleBefore(ge){let Se=this.getLastSegmentBefore(ge);return Se!=null?Se.lastSample:null}getLastSyncPointBefore(ge){let Se=this._searchNearestSegmentBefore(ge),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 on{constructor(ge){this.TAG="MP4Remuxer",this._config=ge,this._isLive=ge.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 $t("audio"),this._videoSegmentInfoList=new $t("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(ge){return ge.onDataAvailable=this.remux.bind(this),ge.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ge){this._onInitSegment=ge}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ge){this._onMediaSegment=ge}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ge){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ge,Se){if(!this._onMediaSegment)throw new fe("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ge,Se),this._remuxVideo(Se),this._remuxAudio(ge)}_onTrackMetadataReceived(ge,Se){let Pe=null,Le="mp4",Ne=Se.codec;if(ge==="audio")this._audioMeta=Se,Se.codec==="mp3"&&this._mp3UseMpegAudio?(Le="mpeg",Ne="",Pe=new Uint8Array):Pe=Zt.generateInitSegment(Se);else if(ge==="video")this._videoMeta=Se,Pe=Zt.generateInitSegment(Se);else return;if(!this._onInitSegment)throw new fe("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ge,{type:ge,data:Pe.buffer,codec:Ne,container:`${ge}/${Le}`,mediaDuration:Se.duration})}_calculateDtsBase(ge,Se){this._dtsBaseInited||(ge.samples&&ge.samples.length&&(this._audioDtsBase=ge.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 ge=this._videoStashedLastSample,Se=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ge!=null&&(Pe.samples.push(ge),Pe.length=ge.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(ge,Se){if(this._audioMeta==null)return;let Pe=ge,Le=Pe.samples,Ne,qe=-1,it=-1,un=-1,Vt=this._audioMeta.refSampleDuration,En=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Vn=this._dtsBaseInited&&this._audioNextDts===void 0,Pr=!1;if(!Le||Le.length===0||Le.length===1&&!Se)return;let Ot=0,qn=null,er=0;En?(Ot=0,er=Pe.length):(Ot=8,er=8+Pe.length);let Pn=null;if(Le.length>1&&(Pn=Le.pop(),er-=Pn.length),this._audioStashedLastSample!=null){let fr=this._audioStashedLastSample;this._audioStashedLastSample=null,Le.unshift(fr),er+=fr.length}Pn!=null&&(this._audioStashedLastSample=Pn);let An=Le[0].dts-this._dtsBase;if(this._audioNextDts)Ne=An-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Pr=!0);else{let fr=this._audioSegmentInfoList.getLastSampleBefore(An);if(fr!=null){let Vr=An-(fr.originalDts+fr.duration);Vr<=3&&(Vr=0);let Yo=fr.dts+fr.duration+Vr;Ne=An-Yo}else Ne=0}if(Pr){let fr=An-Ne,Vr=this._videoSegmentInfoList.getLastSegmentBefore(An);if(Vr!=null&&Vr.beginDts=1?gi=Yn[Yn.length-1].duration:gi=Math.floor(Vt);let Vi=!1,fn=null;if(gi>Vt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Vi=!0;let xo=Math.abs(gi-Vt),Yi=Math.ceil(xo/Vt),Cn=ni+Vt;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${ni+gi} ms, expected: ${ni+Math.round(Vt)} ms, delta: ${Math.round(xo)} ms, generate: ${Yi} frames`);let nr=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);nr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),nr=Yo),fn=[];for(let rr=0;rr0){let ri=fn[fn.length-1];ri.duration=ei-ri.dts}let po={dts:ei,pts:ei,cts:0,unit:nr,size:nr.byteLength,duration:0,originalDts:Io,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};fn.push(po),er+=po.size,Cn+=Vt}let wr=fn[fn.length-1];wr.duration=ni+gi-wr.dts,gi=Math.round(Vt)}Yn.push({dts:ni,pts:ni,cts:0,unit:Vr.unit,size:Vr.unit.byteLength,duration:gi,originalDts:Io,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Vi&&Yn.push.apply(Yn,fn)}En?qn=new Uint8Array(er):(qn=new Uint8Array(er),qn[0]=er>>>24&255,qn[1]=er>>>16&255,qn[2]=er>>>8&255,qn[3]=er&255,qn.set(Zt.types.mdat,4));for(let fr=0;fr1&&(Ot=Le.pop(),Pr-=Ot.length),this._videoStashedLastSample!=null){let yr=this._videoStashedLastSample;this._videoStashedLastSample=null,Le.unshift(yr),Pr+=yr.length}Ot!=null&&(this._videoStashedLastSample=Ot);let qn=Le[0].dts-this._dtsBase;if(this._videoNextDts)Ne=qn-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ne=0;else{let yr=this._videoSegmentInfoList.getLastSampleBefore(qn);if(yr!=null){let lr=qn-(yr.originalDts+yr.duration);lr<=3&&(lr=0);let ci=yr.dts+yr.duration+lr;Ne=qn-ci}else Ne=0}let er=new sn,Pn=[];for(let yr=0;yr=1?Io=Pn[Pn.length-1].duration:Io=Math.floor(this._videoMeta.refSampleDuration),Po){let ni=new wn(fr,Yo,Io,lr.dts,!0);ni.fileposition=lr.fileposition,er.appendSyncPoint(ni)}Pn.push({dts:fr,pts:Yo,cts:Vr,units:lr.units,size:lr.length,isKeyframe:Po,duration:Io,originalDts:ci,flags:{isLeading:0,dependsOn:Po?2:1,isDependedOn:Po?1:0,hasRedundancy:0,isNonSync:Po?0:1}})}Vn=new Uint8Array(Pr),Vn[0]=Pr>>>24&255,Vn[1]=Pr>>>16&255,Vn[2]=Pr>>>8&255,Vn[3]=Pr&255,Vn.set(Zt.types.mdat,4);for(let yr=0;yr{Le.timestampBase=Pe,Pe+=Le.duration,Le.cors=ge.cors,Le.withCredentials=ge.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(ge,Se){this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ge,Se){this._currentSegmentIndex=ge;let Pe=this._mediaDataSource.segments[ge],Le=this._ioctl=new De(Pe,this._config,ge);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(ge){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let Se=this._searchSegmentIndexContains(ge);if(Se===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=ge;else{let Le=Pe.getNearestKeyframe(ge);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=ge,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Se);else{let Le=Pe.getNearestKeyframe(ge);this._internalAbort(),this._remuxer.seek(ge),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(ge){let Se=this._mediaDataSource.segments,Pe=Se.length-1;for(let Le=0;Le0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Le=this._demuxer.parseChunks(ge,Se);else if((Pe=Pt.probe(ge)).match){this._demuxer=new Pt(Pe,this._config),this._remuxer||(this._remuxer=new bn(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(ge,Se)}else Pe=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Dt.DEMUX_ERROR,Je.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Le=0;return Le}_onMediaInfo(ge){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ge),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ct.prototype));let Se=Object.assign({},ge);Object.setPrototypeOf(Se,Ct.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(ge){this._emitter.emit(Dt.METADATA_ARRIVED,ge)}_onScriptDataArrived(ge){this._emitter.emit(Dt.SCRIPTDATA_ARRIVED,ge)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ge){let Pe=ge+1;Pe0&&Pe[0].originalDts===Le&&(Le=Pe[0].pts),this._emitter.emit(Dt.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(ge){let Se=this._mediaInfo.segments[ge],Pe=Object.assign({},Se);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(Dt.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let ge={};ge.url=this._ioctl.currentURL,ge.hasRedirect=this._ioctl.hasRedirect,ge.hasRedirect&&(ge.redirectedURL=this._ioctl.currentRedirectedURL),ge.speed=this._ioctl.currentSpeed,ge.loaderType=this._ioctl.loaderType,ge.currentSegmentIndex=this._currentSegmentIndex,ge.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Dt.STATISTICS_INFO,ge)}}var Gn=Rn,mr=function(cn){let ge="TransmuxingWorker",Se=null,Pe=er.bind(this);ue.install(),cn.addEventListener("message",function(Pn){switch(Pn.data.cmd){case"init":Se=new Gn(Pn.data.param[0],Pn.data.param[1]),Se.on(Dt.IO_ERROR,Pr.bind(this)),Se.on(Dt.DEMUX_ERROR,Ot.bind(this)),Se.on(Dt.INIT_SEGMENT,Le.bind(this)),Se.on(Dt.MEDIA_SEGMENT,Ne.bind(this)),Se.on(Dt.LOADING_COMPLETE,qe.bind(this)),Se.on(Dt.RECOVERED_EARLY_EOF,it.bind(this)),Se.on(Dt.MEDIA_INFO,un.bind(this)),Se.on(Dt.METADATA_ARRIVED,Vt.bind(this)),Se.on(Dt.SCRIPTDATA_ARRIVED,En.bind(this)),Se.on(Dt.STATISTICS_INFO,Vn.bind(this)),Se.on(Dt.RECOMMEND_SEEKPOINT,qn.bind(this));break;case"destroy":Se&&(Se.destroy(),Se=null),cn.postMessage({msg:"destroyed"});break;case"start":Se.start();break;case"stop":Se.stop();break;case"seek":Se.seek(Pn.data.param);break;case"pause":Se.pause();break;case"resume":Se.resume();break;case"logging_config":{let An=Pn.data.param;rt.applyConfig(An),An.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function Le(Pn,An){let Yn={msg:Dt.INIT_SEGMENT,data:{type:Pn,data:An}};cn.postMessage(Yn,[An.data])}function Ne(Pn,An){let Yn={msg:Dt.MEDIA_SEGMENT,data:{type:Pn,data:An}};cn.postMessage(Yn,[An.data])}function qe(){let Pn={msg:Dt.LOADING_COMPLETE};cn.postMessage(Pn)}function it(){let Pn={msg:Dt.RECOVERED_EARLY_EOF};cn.postMessage(Pn)}function un(Pn){let An={msg:Dt.MEDIA_INFO,data:Pn};cn.postMessage(An)}function Vt(Pn){let An={msg:Dt.METADATA_ARRIVED,data:Pn};cn.postMessage(An)}function En(Pn){let An={msg:Dt.SCRIPTDATA_ARRIVED,data:Pn};cn.postMessage(An)}function Vn(Pn){let An={msg:Dt.STATISTICS_INFO,data:Pn};cn.postMessage(An)}function Pr(Pn,An){cn.postMessage({msg:Dt.IO_ERROR,data:{type:Pn,info:An}})}function Ot(Pn,An){cn.postMessage({msg:Dt.DEMUX_ERROR,data:{type:Pn,info:An}})}function qn(Pn){cn.postMessage({msg:Dt.RECOMMEND_SEEKPOINT,data:Pn})}function er(Pn,An){cn.postMessage({msg:"logcat_callback",data:{type:Pn,logcat:An}})}};class ur{constructor(ge,Se){if(this.TAG="Transmuxer",this._emitter=new(ve()),Se.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(18034);this._worker=Pe(mr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ge,Se]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},rt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:rt.getConfig()})}catch(Pe){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Gn(ge,Se)}else this._controller=new Gn(ge,Se);if(this._controller){let Pe=this._controller;Pe.on(Dt.IO_ERROR,this._onIOError.bind(this)),Pe.on(Dt.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(Dt.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(Dt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(Dt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(Dt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(Dt.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(Dt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(Dt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(Dt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(Dt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),rt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,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(ge){this._worker?this._worker.postMessage({cmd:"seek",param:ge}):this._controller.seek(ge)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.INIT_SEGMENT,ge,Se)})}_onMediaSegment(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.MEDIA_SEGMENT,ge,Se)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Dt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Dt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.MEDIA_INFO,ge)})}_onMetaDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.METADATA_ARRIVED,ge)})}_onScriptDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.SCRIPTDATA_ARRIVED,ge)})}_onStatisticsInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.STATISTICS_INFO,ge)})}_onIOError(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.IO_ERROR,ge,Se)})}_onDemuxError(ge,Se){Promise.resolve().then(()=>{this._emitter.emit(Dt.DEMUX_ERROR,ge,Se)})}_onRecommendSeekpoint(ge){Promise.resolve().then(()=>{this._emitter.emit(Dt.RECOMMEND_SEEKPOINT,ge)})}_onLoggingConfigChanged(ge){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ge})}_onWorkerMessage(ge){let Se=ge.data,Pe=Se.data;if(Se.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Se.msg){case Dt.INIT_SEGMENT:case Dt.MEDIA_SEGMENT:this._emitter.emit(Se.msg,Pe.type,Pe.data);break;case Dt.LOADING_COMPLETE:case Dt.RECOVERED_EARLY_EOF:this._emitter.emit(Se.msg);break;case Dt.MEDIA_INFO:Object.setPrototypeOf(Pe,Ct.prototype),this._emitter.emit(Se.msg,Pe);break;case Dt.METADATA_ARRIVED:case Dt.SCRIPTDATA_ARRIVED:case Dt.STATISTICS_INFO:this._emitter.emit(Se.msg,Pe);break;case Dt.IO_ERROR:case Dt.DEMUX_ERROR:this._emitter.emit(Se.msg,Pe.type,Pe.info);break;case Dt.RECOMMEND_SEEKPOINT:this._emitter.emit(Se.msg,Pe);break;case"logcat_callback":pe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var Tn=ur,zr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class lo{constructor(ge){this.TAG="MSEController",this._config=ge,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 ht}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,Se){this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}attachMediaElement(ge){if(this._mediaSource)throw new fe("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=ge,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ge.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ge=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(ge.readyState!=="closed"){try{ge.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(ge.readyState==="open")try{ge.endOfStream()}catch(Se){pe.e(this.TAG,Se.message)}ge.removeEventListener("sourceopen",this.e.onSourceOpen),ge.removeEventListener("sourceended",this.e.onSourceEnded),ge.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(ge,Se){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ge),this._pendingSegments[ge.type].push(ge);return}let Pe=ge,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 qe=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Le);qe.addEventListener("error",this.e.onSourceBufferError),qe.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(qe){pe.e(this.TAG,qe.message),this._emitter.emit(zr.ERROR,{code:qe.code,msg:qe.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(ge){let Se=ge;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(ge){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=1&&ge-Le.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ge=this._mediaElement.currentTime;for(let Se in this._sourceBuffers){let Pe=this._sourceBuffers[Se];if(Pe){let Le=Pe.buffered,Ne=!1;for(let qe=0;qe=this._config.autoCleanupMaxBackwardDuration){Ne=!0;let Vt=ge-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Se].push({start:it,end:Vt})}}else un0&&(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 ge in this._pendingRemoveRanges){if(!this._sourceBuffers[ge]||this._sourceBuffers[ge].updating)continue;let Se=this._sourceBuffers[ge],Pe=this._pendingRemoveRanges[ge];for(;Pe.length&&!Se.updating;){let Le=Pe.shift();Se.remove(Le.start,Le.end)}}}_doAppendSegments(){let ge=this._pendingSegments;for(let Se in ge)if(!(!this._sourceBuffers[Se]||this._sourceBuffers[Se].updating)&&ge[Se].length>0){let Pe=ge[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(zr.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Le.message),this._emitter.emit(zr.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 ge=this._pendingSourceBufferInit;for(;ge.length;){let Se=ge.shift();this.appendInitSegment(Se,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(zr.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 ge=this._pendingSegments;return ge.video.length>0||ge.audio.length>0}_hasPendingRemoveRanges(){let ge=this._pendingRemoveRanges;return ge.video.length>0||ge.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(zr.UPDATE_END)}_onSourceBufferError(ge){pe.e(this.TAG,`SourceBuffer Error: ${ge}`)}}var di=lo;const Ko={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},pr={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:Je.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Je.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Je.CODEC_UNSUPPORTED};class Xr{constructor(ge,Se){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=tt(),typeof Se=="object"&&Object.assign(this._config,Se),ge.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");ge.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=ge,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(ge,Se){ge===Kt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Kt.MEDIA_INFO,this.mediaInfo)}):ge===Kt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Kt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ge.addEventListener("seeking",this.e.onvSeeking),ge.addEventListener("canplay",this.e.onvCanPlay),ge.addEventListener("stalled",this.e.onvStalled),ge.addEventListener("progress",this.e.onvProgress),this._msectl=new di(this._config),this._msectl.on(zr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(zr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(zr.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(zr.ERROR,Se=>{this._emitter.emit(Kt.ERROR,Ko.MEDIA_ERROR,pr.MEDIA_MSE_ERROR,Se)}),this._msectl.attachMediaElement(ge),this._pendingSeekTime!=null)try{ge.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 fe("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new fe("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 Tn(this._mediaDataSource,this._config),this._transmuxer.on(Dt.INIT_SEGMENT,(ge,Se)=>{this._msectl.appendInitSegment(Se)}),this._transmuxer.on(Dt.MEDIA_SEGMENT,(ge,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(Dt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Kt.LOADING_COMPLETE)}),this._transmuxer.on(Dt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Kt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Dt.IO_ERROR,(ge,Se)=>{this._emitter.emit(Kt.ERROR,Ko.NETWORK_ERROR,ge,Se)}),this._transmuxer.on(Dt.DEMUX_ERROR,(ge,Se)=>{this._emitter.emit(Kt.ERROR,Ko.MEDIA_ERROR,ge,{code:-1,msg:Se})}),this._transmuxer.on(Dt.MEDIA_INFO,ge=>{this._mediaInfo=ge,this._emitter.emit(Kt.MEDIA_INFO,Object.assign({},ge))}),this._transmuxer.on(Dt.METADATA_ARRIVED,ge=>{this._emitter.emit(Kt.METADATA_ARRIVED,ge)}),this._transmuxer.on(Dt.SCRIPTDATA_ARRIVED,ge=>{this._emitter.emit(Kt.SCRIPTDATA_ARRIVED,ge)}),this._transmuxer.on(Dt.STATISTICS_INFO,ge=>{this._statisticsInfo=this._fillStatisticsInfo(ge),this._emitter.emit(Kt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Dt.RECOMMEND_SEEKPOINT,ge=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge/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(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._internalSeek(ge):this._pendingSeekTime=ge}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(ge){if(ge.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ge;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&&(ge.decodedFrames=Pe,ge.droppedFrames=Le),ge}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ge=this._mediaElement.buffered,Se=this._mediaElement.currentTime,Pe=0,Le=0;for(let Ne=0;Ne=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 ge=this._mediaElement.currentTime,Se=this._mediaElement.buffered,Pe=!1;for(let Le=0;Le=Ne&&ge=qe-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(ge){let Se=this._mediaElement.buffered;for(let Pe=0;Pe=Le&&ge0){let Ne=this._mediaElement.buffered.start(0);(Ne<1&&ge0&&Se.currentTime0){let Le=Pe.start(0);if(Le<1&&Se{this._emitter.emit(Kt.MEDIA_INFO,this.mediaInfo)}):ge===Kt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Kt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,Se)}off(ge,Se){this._emitter.removeListener(ge,Se)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ge.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 fe("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(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._mediaElement.currentTime=ge:this._pendingSeekTime=ge}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 ge={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ge;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&&(ge.decodedFrames=Pe,ge.droppedFrames=Le),ge}_onvLoadedMetadata(ge){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Kt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Kt.STATISTICS_INFO,this.statisticsInfo)}}var Kr=mo;ue.install();function Vo(cn,ge){let Se=cn;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 to(Se,ge);default:return new Kr(Se,ge)}}function Do(){return bt.supportMSEH264Playback()}function io(){return bt.getFeatureList()}let Cr={};Cr.createPlayer=Vo,Cr.isSupported=Do,Cr.getFeatureList=io,Cr.BaseLoader=a,Cr.LoaderStatus=re,Cr.LoaderErrors=ne,Cr.Events=Kt,Cr.ErrorTypes=Ko,Cr.ErrorDetails=pr,Cr.FlvPlayer=to,Cr.NativePlayer=Kr,Cr.LoggingControl=rt,Object.defineProperty(Cr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ei=Cr},38780:function(ot,Ge){"use strict";function ee(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue{const de=be[ve];de!==void 0&&(te[ve]=de)})}return te}Ge.Z=ee},66367:function(ot,Ge,ee){"use strict";ee.d(Ge,{F:function(){return te},Z:function(){return ue}});function te(be){return be!=null&&be===be.window}function ue(be,ve){var de,pe;if(typeof window=="undefined")return 0;const ae=ve?"scrollTop":"scrollLeft";let he=0;return te(be)?he=be[ve?"pageYOffset":"pageXOffset"]:be instanceof Document?he=be.documentElement[ae]:(be instanceof HTMLElement||be)&&(he=be[ae]),be&&!te(be)&&typeof he!="number"&&(he=(pe=((de=be.ownerDocument)!==null&&de!==void 0?de:be).documentElement)===null||pe===void 0?void 0:pe[ae]),he}},57838:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ue}});var te=ee(67294);function ue(){const[,be]=te.useReducer(ve=>ve+1,0);return be}},58375:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return ve}});var te=ee(96523);function ue(de,pe,ae,he){const le=ae-pe;return de/=he/2,de<1?le/2*de*de*de+pe:le/2*((de-=2)*de*de+2)+pe}var be=ee(66367);function ve(de){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ae=()=>window,callback:he,duration:le=450}=pe,fe=ae(),se=(0,be.Z)(fe,!0),me=Date.now(),re=()=>{const a=Date.now()-me,y=ue(a>le?le:a,se,de,le);(0,be.F)(fe)?fe.scrollTo(window.pageXOffset,y):fe instanceof Document||fe.constructor.name==="HTMLDocument"?fe.documentElement.scrollTop=y:fe.scrollTop=y,a{var Ce;const{prefixCls:Te,className:Me,rootClassName:pt,children:Ve,indeterminate:gt=!1,style:Ae,onMouseEnter:De,onMouseLeave:Ie,skipGroup:tt=!1,disabled:Ze}=_e,bt=re(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:Kt,checkbox:Qt}=ve.useContext(de.E_),rt=ve.useContext(le),{isFormItemInput:st}=ve.useContext(ae.aM),Ct=ve.useContext(pe.Z),Gt=(Ce=(rt==null?void 0:rt.disabled)||Ze)!==null&&Ce!==void 0?Ce:Ct,Ht=ve.useRef(bt.value);ve.useEffect(()=>{rt==null||rt.registerValue(bt.value)},[]),ve.useEffect(()=>{if(!tt)return bt.value!==Ht.current&&(rt==null||rt.cancelValue(Ht.current),rt==null||rt.registerValue(bt.value),Ht.current=bt.value),()=>rt==null?void 0:rt.cancelValue(bt.value)},[bt.value]);const Bt=wt("checkbox",Te),[Ke,Jt]=(0,fe.ZP)(Bt),Mn=Object.assign({},bt);rt&&!tt&&(Mn.onChange=function(){bt.onChange&&bt.onChange.apply(bt,arguments),rt.toggleOption&&rt.toggleOption({label:Ve,value:bt.value})},Mn.name=rt.name,Mn.checked=rt.value.includes(bt.value));const Hn=ue()(`${Bt}-wrapper`,{[`${Bt}-rtl`]:Kt==="rtl",[`${Bt}-wrapper-checked`]:Mn.checked,[`${Bt}-wrapper-disabled`]:Gt,[`${Bt}-wrapper-in-form-item`]:st},Qt==null?void 0:Qt.className,Me,pt,Jt),pn=ue()({[`${Bt}-indeterminate`]:gt},me.A,Jt),kt=gt?"mixed":void 0;return Ke(ve.createElement(se.Z,{component:"Checkbox",disabled:Gt},ve.createElement("label",{className:Hn,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),Ae),onMouseEnter:De,onMouseLeave:Ie},ve.createElement(be.Z,Object.assign({"aria-checked":kt},Mn,{prefixCls:Bt,className:pn,disabled:Gt,ref:xe})),Ve!==void 0&&ve.createElement("span",null,Ve))))};var y=ve.forwardRef(ne),E=ee(74902),b=ee(10366),x=function(_e,xe){var Ce={};for(var Te in _e)Object.prototype.hasOwnProperty.call(_e,Te)&&xe.indexOf(Te)<0&&(Ce[Te]=_e[Te]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Te=Object.getOwnPropertySymbols(_e);Me{const{defaultValue:Ce,children:Te,options:Me=[],prefixCls:pt,className:Ve,rootClassName:gt,style:Ae,onChange:De}=_e,Ie=x(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:tt,direction:Ze}=ve.useContext(de.E_),[bt,wt]=ve.useState(Ie.value||Ce||[]),[Kt,Qt]=ve.useState([]);ve.useEffect(()=>{"value"in Ie&&wt(Ie.value||[])},[Ie.value]);const rt=ve.useMemo(()=>Me.map(Qe=>typeof Qe=="string"||typeof Qe=="number"?{label:Qe,value:Qe}:Qe),[Me]),st=Qe=>{Qt(Ye=>Ye.filter(Je=>Je!==Qe))},Ct=Qe=>{Qt(Ye=>[].concat((0,E.Z)(Ye),[Qe]))},Gt=Qe=>{const Ye=bt.indexOf(Qe.value),Je=(0,E.Z)(bt);Ye===-1?Je.push(Qe.value):Je.splice(Ye,1),"value"in Ie||wt(Je),De==null||De(Je.filter(ft=>Kt.includes(ft)).sort((ft,At)=>{const et=rt.findIndex(Pt=>Pt.value===ft),vt=rt.findIndex(Pt=>Pt.value===At);return et-vt}))},Ht=tt("checkbox",pt),Bt=`${Ht}-group`,[Ke,Jt]=(0,fe.ZP)(Ht),Mn=(0,b.Z)(Ie,["value","disabled"]),Hn=Me.length?rt.map(Qe=>ve.createElement(y,{prefixCls:Ht,key:Qe.value.toString(),disabled:"disabled"in Qe?Qe.disabled:Ie.disabled,value:Qe.value,checked:bt.includes(Qe.value),onChange:Qe.onChange,className:`${Bt}-item`,style:Qe.style,title:Qe.title},Qe.label)):Te,pn={toggleOption:Gt,value:bt,disabled:Ie.disabled,name:Ie.name,registerValue:Ct,cancelValue:st},kt=ue()(Bt,{[`${Bt}-rtl`]:Ze==="rtl"},Ve,gt,Jt);return Ke(ve.createElement("div",Object.assign({className:kt,style:Ae},Mn,{ref:xe}),ve.createElement(le.Provider,{value:pn},Hn)))},oe=ve.forwardRef(z);var ie=ve.memo(oe);const ce=y;ce.Group=ie,ce.__ANT_CHECKBOX=!0;var ye=ce},63185:function(ot,Ge,ee){"use strict";ee.d(Ge,{C2:function(){return de}});var te=ee(14747),ue=ee(45503),be=ee(67968);const ve=pe=>{const{checkboxCls:ae}=pe,he=`${ae}-wrapper`;return[{[`${ae}-group`]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[he]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${he}`]:{marginInlineStart:0},[`&${he}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ae]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${ae}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ae}-inner`]:Object.assign({},(0,te.oN)(pe))},[`${ae}-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}})},{[` ${he}:not(${he}-disabled), ${ae}:not(${ae}-disabled) `]:{[`&:hover ${ae}-inner`]:{borderColor:pe.colorPrimary}},[`${he}:not(${he}-disabled)`]:{[`&:hover ${ae}-checked:not(${ae}-disabled) ${ae}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ae}-checked:not(${ae}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${ae}-checked`]:{[`${ae}-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}`}}},[` ${he}-checked:not(${he}-disabled), ${ae}-checked:not(${ae}-disabled) `]:{[`&:hover ${ae}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[ae]:{"&-indeterminate":{[`${ae}-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:'""'}}}}},{[`${he}-disabled`]:{cursor:"not-allowed"},[`${ae}-disabled`]:{[`&, ${ae}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ae}-inner`]:{background:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${ae}-indeterminate ${ae}-inner::after`]:{background:pe.colorTextDisabled}}}]};function de(pe,ae){const he=(0,ue.TS)(ae,{checkboxCls:`.${pe}`,checkboxSize:ae.controlInteractiveSize});return[ve(he)]}Ge.ZP=(0,be.Z)("Checkbox",(pe,ae)=>{let{prefixCls:he}=ae;return[de(he,pe)]})},72565:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Xi}});var te=ee(94184),ue=ee.n(te),be=ee(1413),ve=ee(97685),de=ee(67294),pe=ee(73935);function ae(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var he={};function le(dt,ct){}function fe(dt,ct){}function se(){he={}}function me(dt,ct,It){!ct&&!he[It]&&(dt(!1,It),he[It]=!0)}function re(dt,ct){me(le,dt,ct)}function ne(dt,ct){me(fe,dt,ct)}var a=null,y=ee(71002),E=ee(18459);function b(dt,ct,It){var Ut=de.useRef({});return(!("value"in Ut.current)||It(Ut.current.condition,ct))&&(Ut.current.value=dt(),Ut.current.condition=ct),Ut.current.value}function x(dt,ct){typeof dt=="function"?dt(ct):(0,y.Z)(dt)==="object"&&dt&&"current"in dt&&(dt.current=ct)}function z(){for(var dt=arguments.length,ct=new Array(dt),It=0;It0&&arguments[0]!==void 0?arguments[0]:{},ct=dt.mark;return ct?ct.startsWith("data-")?ct:"data-".concat(ct):Ae}function tt(dt){if(dt.attachTo)return dt.attachTo;var ct=document.querySelector("head");return ct||document.body}function Ze(dt){return dt==="queue"?"prependQueue":dt?"prepend":"append"}function bt(dt){return Array.from((De.get(dt)||dt).children).filter(function(ct){return ct.tagName==="STYLE"})}function wt(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ae())return null;var It=ct.csp,Ut=ct.prepend,yn=document.createElement("style");yn.setAttribute(gt,Ze(Ut)),It!=null&&It.nonce&&(yn.nonce=It==null?void 0:It.nonce),yn.innerHTML=dt;var gr=tt(ct),_r=gr.firstChild;if(Ut){if(Ut==="queue"){var Fr=bt(gr).filter(function(Qr){return["prepend","prependQueue"].includes(Qr.getAttribute(gt))});if(Fr.length)return gr.insertBefore(yn,Fr[Fr.length-1].nextSibling),yn}gr.insertBefore(yn,_r)}else gr.appendChild(yn);return yn}function Kt(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=tt(ct);return bt(It).find(function(Ut){return Ut.getAttribute(Ie(ct))===dt})}function Qt(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=Kt(dt,ct);if(It){var Ut=tt(ct);Ut.removeChild(It)}}function rt(dt,ct){var It=De.get(dt);if(!It||!Ve(document,It)){var Ut=wt("",ct),yn=Ut.parentNode;De.set(dt,yn),dt.removeChild(Ut)}}function st(){De.clear()}function Ct(dt,ct){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ut=tt(It);rt(Ut,It);var yn=Kt(ct,It);if(yn){var gr,_r;if((gr=It.csp)!==null&&gr!==void 0&&gr.nonce&&yn.nonce!==((_r=It.csp)===null||_r===void 0?void 0:_r.nonce)){var Fr;yn.nonce=(Fr=It.csp)===null||Fr===void 0?void 0:Fr.nonce}return yn.innerHTML!==dt&&(yn.innerHTML=dt),yn}var Qr=wt(dt,It);return Qr.setAttribute(Ie(It),ct),Qr}var Gt;function Ht(dt){if(typeof document=="undefined")return 0;if(dt||Gt===void 0){var ct=document.createElement("div");ct.style.width="100%",ct.style.height="200px";var It=document.createElement("div"),Ut=It.style;Ut.position="absolute",Ut.top="0",Ut.left="0",Ut.pointerEvents="none",Ut.visibility="hidden",Ut.width="200px",Ut.height="150px",Ut.overflow="hidden",It.appendChild(ct),document.body.appendChild(It);var yn=ct.offsetWidth;It.style.overflow="scroll";var gr=ct.offsetWidth;yn===gr&&(gr=It.clientWidth),document.body.removeChild(It),Gt=yn-gr}return Gt}function Bt(dt){var ct=dt.match(/^(.*)px$/),It=Number(ct==null?void 0:ct[1]);return Number.isNaN(It)?Ht():It}function Ke(dt){if(typeof document=="undefined"||!dt||!(dt instanceof Element))return{width:0,height:0};var ct=getComputedStyle(dt,"::-webkit-scrollbar"),It=ct.width,Ut=ct.height;return{width:Bt(It),height:Bt(Ut)}}function Jt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Mn="rc-util-locker-".concat(Date.now()),Hn=0;function pn(dt){var ct=!!dt,It=de.useState(function(){return Hn+=1,"".concat(Mn,"_").concat(Hn)}),Ut=(0,ve.Z)(It,1),yn=Ut[0];Ce(function(){if(ct){var gr=Ke(document.body).width,_r=Jt();Ct(` html body { overflow-y: hidden; `.concat(_r?"width: calc(100% - ".concat(gr,"px);"):"",` }`),yn)}else Qt(yn);return function(){Qt(yn)}},[ct,yn])}var kt=!1;function Qe(dt){return typeof dt=="boolean"&&(kt=dt),kt}var Ye=function(ct){return ct===!1?!1:!ae()||!ct?null:typeof ct=="string"?document.querySelector(ct):typeof ct=="function"?ct():ct},Je=de.forwardRef(function(dt,ct){var It=dt.open,Ut=dt.autoLock,yn=dt.getContainer,gr=dt.debug,_r=dt.autoDestroy,Fr=_r===void 0?!0:_r,Qr=dt.children,Yr=de.useState(It),Bo=(0,ve.Z)(Yr,2),No=Bo[0],ti=Bo[1],yt=No||It;de.useEffect(function(){(Fr||It)&&ti(It)},[It,Fr]);var _t=de.useState(function(){return Ye(yn)}),jt=(0,ve.Z)(_t,2),ze=jt[0],zt=jt[1];de.useEffect(function(){var cr=Ye(yn);zt(cr!=null?cr:null)});var tn=pt(yt&&!ze,gr),dn=(0,ve.Z)(tn,2),Lt=dn[0],Rt=dn[1],Nt=ze!=null?ze:Lt;pn(Ut&&It&&ae()&&(Nt===Lt||Nt===document.body));var vn=null;if(Qr&&ie(Qr)&&ct){var In=Qr;vn=In.ref}var Xn=oe(vn,ct);if(!yt||!ae()||ze===void 0)return null;var Un=Nt===!1||Qe(),tr=Qr;return ct&&(tr=de.cloneElement(Qr,{ref:Xn})),de.createElement(ye.Provider,{value:Rt},Un?tr:(0,pe.createPortal)(tr,Nt))}),ft=Je,At=ft;function et(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var vt=et()?de.useLayoutEffect:de.useEffect,Pt=function(ct,It){var Ut=de.useRef(!0);vt(function(){return ct(Ut.current)},It),vt(function(){return Ut.current=!1,function(){Ut.current=!0}},[])},Xe=function(ct,It){Pt(function(Ut){if(!Ut)return ct()},It)},Zt=Pt,He=de.createContext(null),ut=de.createContext({}),wn=He,sn=ee(4942),ht=ee(87462),$t=ee(62874),on={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(ct){var It=ct.keyCode;if(ct.altKey&&!ct.ctrlKey||ct.metaKey||It>=on.F1&&It<=on.F12)return!1;switch(It){case on.ALT:case on.CAPS_LOCK:case on.CONTEXT_MENU:case on.CTRL:case on.DOWN:case on.END:case on.ESC:case on.HOME:case on.INSERT:case on.LEFT:case on.MAC_FF_META:case on.META:case on.NUMLOCK:case on.NUM_CENTER:case on.PAGE_DOWN:case on.PAGE_UP:case on.PAUSE:case on.PRINT_SCREEN:case on.RIGHT:case on.SHIFT:case on.UP:case on.WIN_KEY:case on.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ct){if(ct>=on.ZERO&&ct<=on.NINE||ct>=on.NUM_ZERO&&ct<=on.NUM_MULTIPLY||ct>=on.A&&ct<=on.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ct===0)return!0;switch(ct){case on.SPACE:case on.QUESTION_MARK:case on.NUM_PLUS:case on.NUM_MINUS:case on.NUM_PERIOD:case on.NUM_DIVISION:case on.SEMICOLON:case on.DASH:case on.EQUALS:case on.COMMA:case on.PERIOD:case on.SLASH:case on.APOSTROPHE:case on.SINGLE_QUOTE:case on.OPEN_SQUARE_BRACKET:case on.BACKSLASH:case on.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},bn=on,Kn=`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`,Dt=`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`,Rn="".concat(Kn," ").concat(Dt).split(/[\s\n]+/),Gn="aria-",jr="data-";function mr(dt,ct){return dt.indexOf(ct)===0}function ur(dt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It;ct===!1?It={aria:!0,data:!0,attr:!0}:ct===!0?It={aria:!0}:It=(0,be.Z)({},ct);var Ut={};return Object.keys(dt).forEach(function(yn){(It.aria&&(yn==="role"||mr(yn,Gn))||It.data&&mr(yn,jr)||It.attr&&Rn.includes(yn))&&(Ut[yn]=dt[yn])}),Ut}function Tn(dt){var ct=React.useRef();ct.current=dt;var It=React.useCallback(function(){for(var Ut,yn=arguments.length,gr=new Array(yn),_r=0;_r3&&arguments[3]!==void 0?arguments[3]:!1;return ct.length&&Ut&&It===void 0&&!get(dt,ct.slice(0,-1))?dt:Vo(dt,ct,It,Ut)}function io(dt){return _typeof(dt)==="object"&&dt!==null&&Object.getPrototypeOf(dt)===Object.prototype}function Cr(dt){return Array.isArray(dt)?[]:{}}var Ei=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function cn(){for(var dt=arguments.length,ct=new Array(dt),It=0;It{const{prefixCls:ct,title:It,footer:Ut,extra:yn,closeIcon:gr,closable:_r,onClose:Fr,headerStyle:Qr,drawerStyle:Yr,bodyStyle:Bo,footerStyle:No,children:ti}=dt,yt=de.useCallback(tn=>de.createElement("button",{type:"button",onClick:Fr,"aria-label":"Close",className:`${ct}-close`},tn),[Fr]),[_t,jt]=(0,Yo.Z)(_r,gr,yt,void 0,!0),ze=de.useMemo(()=>!It&&!_t?null:de.createElement("div",{style:Qr,className:ue()(`${ct}-header`,{[`${ct}-header-close-only`]:_t&&!It&&!yn})},de.createElement("div",{className:`${ct}-header-title`},jt,It&&de.createElement("div",{className:`${ct}-title`},It)),yn&&de.createElement("div",{className:`${ct}-extra`},yn)),[_t,jt,yn,Qr,ct,It]),zt=de.useMemo(()=>{if(!Ut)return null;const tn=`${ct}-footer`;return de.createElement("div",{className:tn,style:No},Ut)},[Ut,No,ct]);return de.createElement("div",{className:`${ct}-wrapper-body`,style:Yr},ze,de.createElement("div",{className:`${ct}-body`,style:Bo},ti),zt)},gi=ee(4173),Vi=ee(67968),fn=ee(45503),Yi=dt=>{const{componentCls:ct,motionDurationSlow:It}=dt,Ut={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${It}`}}};return{[ct]:{[`${ct}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${It}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ct}-panel-motion`]:{"&-left":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ut,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Cn=dt=>{const{componentCls:ct,zIndexPopup:It,colorBgMask:Ut,colorBgElevated:yn,motionDurationSlow:gr,motionDurationMid:_r,padding:Fr,paddingLG:Qr,fontSizeLG:Yr,lineHeightLG:Bo,lineWidth:No,lineType:ti,colorSplit:yt,marginSM:_t,colorIcon:jt,colorIconHover:ze,colorText:zt,fontWeightStrong:tn,footerPaddingBlock:dn,footerPaddingInline:Lt}=dt,Rt=`${ct}-content-wrapper`;return{[ct]:{position:"fixed",inset:0,zIndex:It,pointerEvents:"none","&-pure":{position:"relative",background:yn,[`&${ct}-left`]:{boxShadow:dt.boxShadowDrawerLeft},[`&${ct}-right`]:{boxShadow:dt.boxShadowDrawerRight},[`&${ct}-top`]:{boxShadow:dt.boxShadowDrawerUp},[`&${ct}-bottom`]:{boxShadow:dt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ct}-mask`]:{position:"absolute",inset:0,zIndex:It,background:Ut,pointerEvents:"auto"},[Rt]:{position:"absolute",zIndex:It,maxWidth:"100vw",transition:`all ${gr}`,"&-hidden":{display:"none"}},[`&-left > ${Rt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:dt.boxShadowDrawerLeft},[`&-right > ${Rt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:dt.boxShadowDrawerRight},[`&-top > ${Rt}`]:{top:0,insetInline:0,boxShadow:dt.boxShadowDrawerUp},[`&-bottom > ${Rt}`]:{bottom:0,insetInline:0,boxShadow:dt.boxShadowDrawerDown},[`${ct}-content`]:{width:"100%",height:"100%",overflow:"auto",background:yn,pointerEvents:"auto"},[`${ct}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ct}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Fr}px ${Qr}px`,fontSize:Yr,lineHeight:Bo,borderBottom:`${No}px ${ti} ${yt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ct}-extra`]:{flex:"none"},[`${ct}-close`]:{display:"inline-block",marginInlineEnd:_t,color:jt,fontWeight:tn,fontSize:Yr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${_r}`,textRendering:"auto","&:focus, &:hover":{color:ze,textDecoration:"none"}},[`${ct}-title`]:{flex:1,margin:0,color:zt,fontWeight:dt.fontWeightStrong,fontSize:Yr,lineHeight:Bo},[`${ct}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Qr,overflow:"auto"},[`${ct}-footer`]:{flexShrink:0,padding:`${dn}px ${Lt}px`,borderTop:`${No}px ${ti} ${yt}`},"&-rtl":{direction:"rtl"}}}};var nr=(0,Vi.Z)("Drawer",dt=>{const ct=(0,fn.TS)(dt,{});return[Cn(ct),Yi(ct)]},dt=>({zIndexPopup:dt.zIndexPopupBase,footerPaddingBlock:dt.paddingXS,footerPaddingInline:dt.padding})),wr=ee(16569),rr=function(dt,ct){var It={};for(var Ut in dt)Object.prototype.hasOwnProperty.call(dt,Ut)&&ct.indexOf(Ut)<0&&(It[Ut]=dt[Ut]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,Ut=Object.getOwnPropertySymbols(dt);yn{var ct;const{rootClassName:It,width:Ut,height:yn,size:gr="default",mask:_r=!0,push:Fr=po,open:Qr,afterOpenChange:Yr,onClose:Bo,prefixCls:No,getContainer:ti,style:yt,className:_t,visible:jt,afterVisibleChange:ze}=dt,zt=rr(dt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:tn,getPrefixCls:dn,direction:Lt,drawer:Rt}=de.useContext(fr.E_),Nt=dn("drawer",No),[vn,In]=nr(Nt),Xn=ti===void 0&&tn?()=>tn(document.body):ti,Un=ue()({"no-mask":!_r,[`${Nt}-rtl`]:Lt==="rtl"},It,In),tr=de.useMemo(()=>Ut!=null?Ut:gr==="large"?736:378,[Ut,gr]),cr=de.useMemo(()=>yn!=null?yn:gr==="large"?736:378,[yn,gr]),Ar={motionName:(0,Po.m)(Nt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Ln=Wt=>({motionName:(0,Po.m)(Nt,`panel-motion-${Wt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),nn=(0,wr.H)();return vn(de.createElement(gi.BR,null,de.createElement(Vr.Ux,{status:!0,override:!0},de.createElement(ci,Object.assign({prefixCls:Nt,onClose:Bo,maskMotion:Ar,motion:Ln},zt,{open:Qr!=null?Qr:jt,mask:_r,push:Fr,width:tr,height:cr,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),yt),className:ue()(Rt==null?void 0:Rt.className,_t),rootClassName:Un,getContainer:Xn,afterOpenChange:Yr!=null?Yr:ze,panelRef:nn}),de.createElement(ni,Object.assign({prefixCls:Nt},zt,{onClose:Bo}))))))},xi=dt=>{const{prefixCls:ct,style:It,className:Ut,placement:yn="right"}=dt,gr=rr(dt,["prefixCls","style","className","placement"]),{getPrefixCls:_r}=de.useContext(fr.E_),Fr=_r("drawer",ct),[Qr,Yr]=nr(Fr),Bo=ue()(Fr,`${Fr}-pure`,`${Fr}-${yn}`,Yr,Ut);return Qr(de.createElement("div",{className:Bo,style:It},de.createElement(ni,Object.assign({prefixCls:Fr},gr))))};ri._InternalPanelDoNotUseOrYouWillBeFired=xi;var Xi=ri},35874:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Ye}});var te=ee(67294),ue=ee(91034),be=ee(94184),ve=ee.n(be),de=ee(87462),pe=ee(4942),ae=ee(97685),he=ee(45987),le=ee(62709),fe=ee(71002),se=ee(12060);function me(Je,ft,At){var et=React.useRef({});return(!("value"in et.current)||At(et.current.condition,ft))&&(et.current.value=Je(),et.current.condition=ft),et.current.value}function re(Je,ft){typeof Je=="function"?Je(ft):(0,fe.Z)(Je)==="object"&&Je&&"current"in Je&&(Je.current=ft)}function ne(){for(var Je=arguments.length,ft=new Array(Je),At=0;At=E.F1&&At<=E.F12)return!1;switch(At){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ft){if(ft>=E.ZERO&&ft<=E.NINE||ft>=E.NUM_ZERO&&ft<=E.NUM_MULTIPLY||ft>=E.A&&ft<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ft===0)return!0;switch(ft){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(ft){return+setTimeout(ft,16)},z=function(ft){return clearTimeout(ft)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(ft){return window.requestAnimationFrame(ft)},z=function(ft){return window.cancelAnimationFrame(ft)});var oe=0,ie=new Map;function ce(Je){ie.delete(Je)}var ye=function(ft){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oe+=1;var et=oe;function vt(Pt){if(Pt===0)ce(et),ft();else{var Xe=x(function(){vt(Pt-1)});ie.set(et,Xe)}}return vt(At),et};ye.cancel=function(Je){var ft=ie.get(Je);return ce(ft),z(ft)};var _e=ye,xe=b.ESC,Ce=b.TAB;function Te(Je){var ft=Je.visible,At=Je.triggerRef,et=Je.onVisibleChange,vt=Je.autoFocus,Pt=Je.overlayRef,Xe=te.useRef(!1),Zt=function(){if(ft){var sn,ht;(sn=At.current)===null||sn===void 0||(ht=sn.focus)===null||ht===void 0||ht.call(sn),et==null||et(!1)}},He=function(){var sn;return(sn=Pt.current)!==null&&sn!==void 0&&sn.focus?(Pt.current.focus(),Xe.current=!0,!0):!1},ut=function(sn){switch(sn.keyCode){case xe:Zt();break;case Ce:{var ht=!1;Xe.current||(ht=He()),ht?sn.preventDefault():Zt();break}}};te.useEffect(function(){return ft?(window.addEventListener("keydown",ut),vt&&_e(He,3),function(){window.removeEventListener("keydown",ut),Xe.current=!1}):function(){Xe.current=!1}},[ft])}var Me=(0,te.forwardRef)(function(Je,ft){var At=Je.overlay,et=Je.arrow,vt=Je.prefixCls,Pt=(0,te.useMemo)(function(){var Zt;return typeof At=="function"?Zt=At():Zt=At,Zt},[At]),Xe=ne(ft,Pt==null?void 0:Pt.ref);return te.createElement(te.Fragment,null,et&&te.createElement("div",{className:"".concat(vt,"-arrow")}),te.cloneElement(Pt,{ref:y(Pt)?Xe:void 0}))}),pt=Me,Ve={adjustX:1,adjustY:1},gt=[0,0],Ae={topLeft:{points:["bl","tl"],overflow:Ve,offset:[0,-4],targetOffset:gt},top:{points:["bc","tc"],overflow:Ve,offset:[0,-4],targetOffset:gt},topRight:{points:["br","tr"],overflow:Ve,offset:[0,-4],targetOffset:gt},bottomLeft:{points:["tl","bl"],overflow:Ve,offset:[0,4],targetOffset:gt},bottom:{points:["tc","bc"],overflow:Ve,offset:[0,4],targetOffset:gt},bottomRight:{points:["tr","br"],overflow:Ve,offset:[0,4],targetOffset:gt}},De=Ae,Ie=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tt(Je,ft){var At,et=Je.arrow,vt=et===void 0?!1:et,Pt=Je.prefixCls,Xe=Pt===void 0?"rc-dropdown":Pt,Zt=Je.transitionName,He=Je.animation,ut=Je.align,wn=Je.placement,sn=wn===void 0?"bottomLeft":wn,ht=Je.placements,$t=ht===void 0?De:ht,on=Je.getPopupContainer,bn=Je.showAction,Kn=Je.hideAction,Dt=Je.overlayClassName,Rn=Je.overlayStyle,Gn=Je.visible,jr=Je.trigger,mr=jr===void 0?["hover"]:jr,ur=Je.autoFocus,Tn=Je.overlay,Or=Je.children,zr=Je.onVisibleChange,lo=(0,he.Z)(Je,Ie),di=te.useState(),Ko=(0,ae.Z)(di,2),pr=Ko[0],Xr=Ko[1],to="visible"in Je?Gn:pr,mo=te.useRef(null),Kr=te.useRef(null),Vo=te.useRef(null);te.useImperativeHandle(ft,function(){return mo.current});var Do=function(Ne){Xr(Ne),zr==null||zr(Ne)};Te({visible:to,triggerRef:Vo,onVisibleChange:Do,autoFocus:ur,overlayRef:Kr});var io=function(Ne){var qe=Je.onOverlayClick;Xr(!1),qe&&qe(Ne)},Cr=function(){return te.createElement(pt,{ref:Kr,overlay:Tn,prefixCls:Xe,arrow:vt})},Ei=function(){return typeof Tn=="function"?Cr:Cr()},cn=function(){var Ne=Je.minOverlayWidthMatchTrigger,qe=Je.alignPoint;return"minOverlayWidthMatchTrigger"in Je?Ne:!qe},ge=function(){var Ne=Je.openClassName;return Ne!==void 0?Ne:"".concat(Xe,"-open")},Se=te.cloneElement(Or,{className:ve()((At=Or.props)===null||At===void 0?void 0:At.className,to&&ge()),ref:y(Or)?ne(Vo,Or.ref):void 0}),Pe=Kn;return!Pe&&mr.indexOf("contextMenu")!==-1&&(Pe=["click"]),te.createElement(le.Z,(0,de.Z)({builtinPlacements:$t},lo,{prefixCls:Xe,ref:mo,popupClassName:ve()(Dt,(0,pe.Z)({},"".concat(Xe,"-show-arrow"),vt)),popupStyle:Rn,action:mr,showAction:bn,hideAction:Pe,popupPlacement:sn,popupAlign:ut,popupTransitionName:Zt,popupAnimation:He,popupVisible:to,stretch:cn()?"minWidth":"",popup:Ei(),onPopupVisibleChange:Do,onPopupClick:io,getPopupContainer:on}),Se)}var Ze=te.forwardRef(tt),bt=Ze,wt=ee(60276),Kt=ee(5663),Qt=ee(10366),rt=ee(80636),st=ee(8745),Ct=ee(96159),Gt=ee(53124),Ht=ee(68508),Bt=ee(76529),Ke=ee(46605),Jt=ee(66748);const Mn=null,Hn=Je=>{const{menu:ft,arrow:At,prefixCls:et,children:vt,trigger:Pt,disabled:Xe,dropdownRender:Zt,getPopupContainer:He,overlayClassName:ut,rootClassName:wn,open:sn,onOpenChange:ht,visible:$t,onVisibleChange:on,mouseEnterDelay:bn=.15,mouseLeaveDelay:Kn=.1,autoAdjustOverflow:Dt=!0,placement:Rn="",overlay:Gn,transitionName:jr}=Je,{getPopupContainer:mr,getPrefixCls:ur,direction:Tn}=te.useContext(Gt.E_),Or=te.useMemo(()=>{const Se=ur();return jr!==void 0?jr:Rn.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[ur,Rn,jr]),zr=te.useMemo(()=>Rn?Rn.includes("Center")?Rn.slice(0,Rn.indexOf("Center")):Rn:Tn==="rtl"?"bottomRight":"bottomLeft",[Rn,Tn]),lo=ur("dropdown",et),[di,Ko]=(0,Jt.Z)(lo),[,pr]=(0,Ke.Z)(),Xr=te.Children.only(vt),to=(0,Ct.Tm)(Xr,{className:ve()(`${lo}-trigger`,{[`${lo}-rtl`]:Tn==="rtl"},Xr.props.className),disabled:Xe}),mo=Xe?[]:Pt;let Kr;mo&&mo.includes("contextMenu")&&(Kr=!0);const[Vo,Do]=(0,Kt.Z)(!1,{value:sn!=null?sn:$t}),io=(0,wt.useEvent)(Se=>{ht==null||ht(Se),on==null||on(Se),Do(Se)}),Cr=ve()(ut,wn,Ko,{[`${lo}-rtl`]:Tn==="rtl"}),Ei=(0,rt.Z)({arrowPointAtCenter:typeof At=="object"&&At.pointAtCenter,autoAdjustOverflow:Dt,offset:pr.marginXXS,arrowWidth:At?pr.sizePopupArrow:0,borderRadius:pr.borderRadius}),cn=te.useCallback(()=>{Do(!1)},[]),ge=()=>{let Se;return ft!=null&&ft.items?Se=te.createElement(Ht.default,Object.assign({},ft)):typeof Gn=="function"?Se=Gn():Se=Gn,Zt&&(Se=Zt(Se)),Se=te.Children.only(typeof Se=="string"?te.createElement("span",null,Se):Se),te.createElement(Bt.J,{prefixCls:`${lo}-menu`,expandIcon:te.createElement("span",{className:`${lo}-menu-submenu-arrow`},te.createElement(ue.Z,{className:`${lo}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:cn,validator:Pe=>{let{mode:Le}=Pe}},Se)};return di(te.createElement(bt,Object.assign({alignPoint:Kr},(0,Qt.Z)(Je,["rootClassName"]),{mouseEnterDelay:bn,mouseLeaveDelay:Kn,visible:Vo,builtinPlacements:Ei,arrow:!!At,overlayClassName:Cr,prefixCls:lo,getPopupContainer:He||mr,transitionName:Or,trigger:mo,overlay:ge,placement:zr,onVisibleChange:io}),to))};function pn(Je){return Object.assign(Object.assign({},Je),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const kt=(0,st.Z)(Hn,"dropdown",Je=>Je,pn),Qe=Je=>te.createElement(kt,Object.assign({},Je),te.createElement("span",null));Hn._InternalPanelDoNotUseOrYouWillBeFired=Qe;var Ye=Hn},85418:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return a}});var te=ee(35874),ue=ee(94184),be=ee.n(ue),ve=ee(67294),de=ee(25877),pe=ee(71577),ae=ee(53124),he=ee(93421),le=ee(4173),fe=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 z=0,x=Object.getOwnPropertySymbols(y);z{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ae.E_),{prefixCls:z,type:oe="default",danger:ie,disabled:ce,loading:ye,onClick:_e,htmlType:xe,children:Ce,className:Te,menu:Me,arrow:pt,autoFocus:Ve,overlay:gt,trigger:Ae,align:De,open:Ie,onOpenChange:tt,placement:Ze,getPopupContainer:bt,href:wt,icon:Kt=ve.createElement(de.Z,null),title:Qt,buttonsRender:rt=Xe=>Xe,mouseEnterDelay:st,mouseLeaveDelay:Ct,overlayClassName:Gt,overlayStyle:Ht,destroyPopupOnHide:Bt,dropdownRender:Ke}=y,Jt=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"]),Mn=b("dropdown",z),Hn=`${Mn}-button`,[pn,kt]=(0,fe.Z)(Mn),Qe={menu:Me,arrow:pt,autoFocus:Ve,align:De,disabled:ce,trigger:ce?[]:Ae,onOpenChange:tt,getPopupContainer:bt||E,mouseEnterDelay:st,mouseLeaveDelay:Ct,overlayClassName:Gt,overlayStyle:Ht,destroyPopupOnHide:Bt,dropdownRender:Ke},{compactSize:Ye,compactItemClassnames:Je}=(0,le.ri)(Mn,x),ft=be()(Hn,Je,Te,kt);"overlay"in y&&(Qe.overlay=gt),"open"in y&&(Qe.open=Ie),"placement"in y?Qe.placement=Ze:Qe.placement=x==="rtl"?"bottomLeft":"bottomRight";const At=ve.createElement(pe.ZP,{type:oe,danger:ie,disabled:ce,loading:ye,onClick:_e,htmlType:xe,href:wt,title:Qt},Ce),et=ve.createElement(pe.ZP,{type:oe,danger:ie,icon:Kt}),[vt,Pt]=rt([At,et]);return pn(ve.createElement(he.Z.Compact,Object.assign({className:ft,size:Ye,block:!0},Jt),vt,ve.createElement(te.Z,Object.assign({},Qe),Pt)))};me.__ANT_BUTTON=!0;var re=me;const ne=te.Z;ne.Button=re;var a=ne},66748:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return se}});var te=ee(14747),ue=ee(67771),be=ee(33297),ve=ee(50438),de=ee(97414),pe=ee(67968),ae=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 fe=me=>{const{componentCls:re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:oe,fontSize:ie,dropdownEdgeChildPadding:ce,colorTextDisabled:ye,fontSizeIcon:_e,controlPaddingHorizontal:xe,colorBgElevated:Ce}=me;return[{[re]:Object.assign(Object.assign({},(0,te.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 ${z}`}},[`${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:ue.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:ue.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:ue.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:ue.ly}})},(0,de.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:ce,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,te.Qy)(me)),{[`${ne}-item-group-title`]:{padding:`${oe}px ${xe}px`,color:me.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:ie,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${xe}px`,color:me.colorText,fontWeight:"normal",fontSize:ie,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,te.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,ue.oN)(me,"slide-up"),(0,ue.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:z,componentCls:oe,borderRadiusLG:ie}=me,ce=(E-b*x)/2,{dropdownArrowOffset:ye}=(0,de.fS)({contentRadius:ie}),_e=(0,ae.TS)(me,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ye,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:z});return[fe(_e),le(_e)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},25378:function(ot,Ge,ee){"use strict";var te=ee(67294),ue=ee(14075),be=ee(57838),ve=ee(74443);function de(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ae=(0,te.useRef)({}),he=(0,be.Z)(),le=(0,ve.ZP)();return(0,ue.Z)(()=>{const fe=le.subscribe(se=>{ae.current=se,pe&&he()});return()=>le.unsubscribe(fe)},[]),ae.current}Ge.Z=de},99398:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Qn}});var te=ee(67294),ue=ee.t(te,2),be=ee(99569),ve=ee(94184),de=ee.n(ve),pe=ee(87462),ae=ee(1413),he=ee(4942),le=ee(97685),fe=ee(71002),se=ee(45987),me=/margin|padding|width|height|max|min|offset/,re={left:!0,top:!0},ne={cssFloat:1,styleFloat:1,float:1};function a(Ue){return Ue.nodeType===1?Ue.ownerDocument.defaultView.getComputedStyle(Ue,null):{}}function y(Ue,Fe,nt){if(Fe=Fe.toLowerCase(),nt==="auto"){if(Fe==="height")return Ue.offsetHeight;if(Fe==="width")return Ue.offsetWidth}return Fe in re||(re[Fe]=me.test(Fe)),re[Fe]?parseFloat(nt)||0:nt}function E(Ue,Fe){var nt=arguments.length,St=a(Ue);return Fe=ne[Fe]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Fe,nt===1?St:y(Ue,Fe,St[Fe]||Ue.style[Fe])}function b(Ue,Fe,nt){var St=arguments.length;if(Fe=ne[Fe]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Fe,St===3)return typeof nt=="number"&&me.test(Fe)&&(nt="".concat(nt,"px")),Ue.style[Fe]=nt,nt;for(var Mt in Fe)Fe.hasOwnProperty(Mt)&&b(Ue,Mt,Fe[Mt]);return a(Ue)}function x(Ue){return Ue===document.body?document.documentElement.clientWidth:Ue.offsetWidth}function z(Ue){return Ue===document.body?window.innerHeight||document.documentElement.clientHeight:Ue.offsetHeight}function oe(){var Ue=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Fe=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ue,height:Fe}}function ie(){var Ue=document.documentElement.clientWidth,Fe=window.innerHeight||document.documentElement.clientHeight;return{width:Ue,height:Fe}}function ce(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ye(Ue){var Fe=Ue.getBoundingClientRect(),nt=document.documentElement;return{left:Fe.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:Fe.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}function _e(Ue){var Fe=te.useRef();Fe.current=Ue;var nt=te.useCallback(function(){for(var St,Mt=arguments.length,Ft=new Array(Mt),ln=0;ln=Bt.F1&&nt<=Bt.F12)return!1;switch(nt){case Bt.ALT:case Bt.CAPS_LOCK:case Bt.CONTEXT_MENU:case Bt.CTRL:case Bt.DOWN:case Bt.END:case Bt.ESC:case Bt.HOME:case Bt.INSERT:case Bt.LEFT:case Bt.MAC_FF_META:case Bt.META:case Bt.NUMLOCK:case Bt.NUM_CENTER:case Bt.PAGE_DOWN:case Bt.PAGE_UP:case Bt.PAUSE:case Bt.PRINT_SCREEN:case Bt.RIGHT:case Bt.SHIFT:case Bt.UP:case Bt.WIN_KEY:case Bt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=Bt.ZERO&&Fe<=Bt.NINE||Fe>=Bt.NUM_ZERO&&Fe<=Bt.NUM_MULTIPLY||Fe>=Bt.A&&Fe<=Bt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case Bt.SPACE:case Bt.QUESTION_MARK:case Bt.NUM_PLUS:case Bt.NUM_MINUS:case Bt.NUM_PERIOD:case Bt.NUM_DIVISION:case Bt.SEMICOLON:case Bt.DASH:case Bt.EQUALS:case Bt.COMMA:case Bt.PERIOD:case Bt.SLASH:case Bt.APOSTROPHE:case Bt.SINGLE_QUOTE:case Bt.OPEN_SQUARE_BRACKET:case Bt.BACKSLASH:case Bt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ke=Bt,Jt=`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`,Mn=`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`,Hn="".concat(Jt," ").concat(Mn).split(/[\s\n]+/),pn="aria-",kt="data-";function Qe(Ue,Fe){return Ue.indexOf(Fe)===0}function Ye(Ue){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt;Fe===!1?nt={aria:!0,data:!0,attr:!0}:Fe===!0?nt={aria:!0}:nt=(0,ae.Z)({},Fe);var St={};return Object.keys(Ue).forEach(function(Mt){(nt.aria&&(Mt==="role"||Qe(Mt,pn))||nt.data&&Qe(Mt,kt)||nt.attr&&Hn.includes(Mt))&&(St[Mt]=Ue[Mt])}),St}function Je(Ue,Fe,nt){var St=Fe;return!St&&nt&&(St="".concat(Ue,"-").concat(nt)),St}function ft(Ue,Fe){var nt=Ue["page".concat(Fe?"Y":"X","Offset")],St="scroll".concat(Fe?"Top":"Left");if(typeof nt!="number"){var Mt=Ue.document;nt=Mt.documentElement[St],typeof nt!="number"&&(nt=Mt.body[St])}return nt}function At(Ue){var Fe=Ue.getBoundingClientRect(),nt={left:Fe.left,top:Fe.top},St=Ue.ownerDocument,Mt=St.defaultView||St.parentWindow;return nt.left+=ft(Mt),nt.top+=ft(Mt,!0),nt}var et=ee(62874),vt=ee(59864);function Pt(Ue,Fe,nt){var St=te.useRef({});return(!("value"in St.current)||nt(St.current.condition,Fe))&&(St.current.value=Ue(),St.current.condition=Fe),St.current.value}function Xe(Ue,Fe){typeof Ue=="function"?Ue(Fe):(0,fe.Z)(Ue)==="object"&&Ue&&"current"in Ue&&(Ue.current=Fe)}function Zt(){for(var Ue=arguments.length,Fe=new Array(Ue),nt=0;nt=Tn.F1&&nt<=Tn.F12)return!1;switch(nt){case Tn.ALT:case Tn.CAPS_LOCK:case Tn.CONTEXT_MENU:case Tn.CTRL:case Tn.DOWN:case Tn.END:case Tn.ESC:case Tn.HOME:case Tn.INSERT:case Tn.LEFT:case Tn.MAC_FF_META:case Tn.META:case Tn.NUMLOCK:case Tn.NUM_CENTER:case Tn.PAGE_DOWN:case Tn.PAGE_UP:case Tn.PAUSE:case Tn.PRINT_SCREEN:case Tn.RIGHT:case Tn.SHIFT:case Tn.UP:case Tn.WIN_KEY:case Tn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=Tn.ZERO&&Fe<=Tn.NINE||Fe>=Tn.NUM_ZERO&&Fe<=Tn.NUM_MULTIPLY||Fe>=Tn.A&&Fe<=Tn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case Tn.SPACE:case Tn.QUESTION_MARK:case Tn.NUM_PLUS:case Tn.NUM_MINUS:case Tn.NUM_PERIOD:case Tn.NUM_DIVISION:case Tn.SEMICOLON:case Tn.DASH:case Tn.EQUALS:case Tn.COMMA:case Tn.PERIOD:case Tn.SLASH:case Tn.APOSTROPHE:case Tn.SINGLE_QUOTE:case Tn.OPEN_SQUARE_BRACKET:case Tn.BACKSLASH:case Tn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Or=Tn,zr={},lo=[],di=function(Fe){lo.push(Fe)};function Ko(Ue,Fe){if(0)var nt}function pr(Ue,Fe){if(0)var nt}function Xr(){zr={}}function to(Ue,Fe,nt){!Fe&&!zr[nt]&&(Ue(!1,nt),zr[nt]=!0)}function mo(Ue,Fe){to(Ko,Ue,Fe)}function Kr(Ue,Fe){to(pr,Ue,Fe)}mo.preMessage=di,mo.resetWarned=Xr,mo.noteOnce=Kr;var Vo=mo;function Do(Ue,Fe,nt,St){var Mt=Fe+nt,Ft=(nt-St)/2;if(nt>St){if(Fe>0)return(0,he.Z)({},Ue,Ft);if(Fe<0&&MtSt)return(0,he.Z)({},Ue,Fe<0?Ft:-Ft);return{}}function io(Ue,Fe,nt,St){var Mt=ie(),Ft=Mt.width,ln=Mt.height,gn=null;return Ue<=Ft&&Fe<=ln?gn={x:0,y:0}:(Ue>Ft||Fe>ln)&&(gn=(0,ae.Z)((0,ae.Z)({},Do("x",nt,Ue,Ft)),Do("y",St,Fe,ln))),gn}function Cr(Ue,Fe){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=new Set;function Mt(Ft,ln){var gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Nn=St.has(Ft);if(Vo(!Nn,"Warning: There may be circular references"),Nn)return!1;if(Ft===ln)return!0;if(nt&&gn>1)return!1;St.add(Ft);var Bn=gn+1;if(Array.isArray(Ft)){if(!Array.isArray(ln)||Ft.length!==ln.length)return!1;for(var Fn=0;Fn1&&arguments[1]!==void 0?arguments[1]:1;Se+=1;var St=Se;function Mt(Ft){if(Ft===0)Le(St),Fe();else{var ln=cn(function(){Mt(Ft-1)});Pe.set(St,ln)}}return Mt(nt),St};Ne.cancel=function(Ue){var Fe=Pe.get(Ue);return Le(Fe),ge(Fe)};var qe=Ne,it={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function un(Ue,Fe,nt,St){var Mt=(0,te.useRef)(null),Ft=(0,te.useRef)([]),ln=(0,te.useState)(it),gn=(0,le.Z)(ln,2),Nn=gn[0],Bn=gn[1],Fn=function(Jr){Bn(it),St&&!Ei(it,Nn)&&St({transform:it,action:Jr})},jn=function(Jr,bo){Mt.current===null&&(Ft.current=[],Mt.current=qe(function(){Bn(function(Zr){var ao=Zr;return Ft.current.forEach(function(co){ao=(0,ae.Z)((0,ae.Z)({},ao),co)}),Mt.current=null,St==null||St({transform:ao,action:bo}),ao})})),Ft.current.push((0,ae.Z)((0,ae.Z)({},Nn),Jr))},Jn=function(Jr,bo,Zr,ao){var co=Ue.current,vo=co.width,Rr=co.height,qr=co.offsetWidth,Eo=co.offsetHeight,ii=co.offsetLeft,uo=co.offsetTop,ui=Jr,zo=Nn.scale*Jr;zo>nt?(ui=nt/Nn.scale,zo=nt):zo1,aa=ai&&co>=1,ca=un(Bi,ii,ui,vi),Ci=ca.transform,_i=ca.resetTransform,Ki=ca.updateTransform,ka=ca.dispatchZoomChange,Ea=(0,te.useState)(!0),Ca=(0,le.Z)(Ea,2),Na=Ca[0],va=Ca[1],ua=Ci.rotate,sa=Ci.scale,Oa=Ci.x,Ba=Ci.y,is=de()((0,he.Z)({},"".concat(nt,"-moving"),Qo));(0,te.useEffect)(function(){Na||va(!0)},[Na]);var ys=function(){_i("close")},Ka=function(){ka(Vn+qr,"zoomIn")},_s=function(){ka(Vn/(Vn+qr),"zoomOut")},as=function(){Ki({rotate:ua+90},"rotateRight")},Va=function(){Ki({rotate:ua-90},"rotateLeft")},Fa=function(){Ki({flipX:!Ci.flipX},"flipX")},Ra=function(){Ki({flipY:!Ci.flipY},"flipY")},ss=function(Ro){Ro==null||Ro.preventDefault(),Ro==null||Ro.stopPropagation(),Zr>0&&(va(!1),_i("prev"),Ai==null||Ai(Zr-1,Zr))},ds=function(Ro){Ro==null||Ro.preventDefault(),Ro==null||Ro.stopPropagation(),Zr0&&(wa=Vn/wa),ka(wa,"wheel",Ro.clientX,Ro.clientY)}},Bs=function(Ro){!Bn||!yi||(Ro.keyCode===Or.LEFT?ss():Ro.keyCode===Or.RIGHT&&ds())},Ns=function(Ro){Bn&&(sa!==1?Ki({x:0,y:0,scale:1},"doubleClick"):ka(Vn+qr,"doubleClick",Ro.clientX,Ro.clientY))};(0,te.useEffect)(function(){var Qi,Ro,$a,Ui;if(gn){$a=ur(window,"mouseup",Ya,!1),Ui=ur(window,"mousemove",Ds,!1);try{window.top!==window.self&&(Qi=ur(window.top,"mouseup",Ya,!1),Ro=ur(window.top,"mousemove",Ds,!1))}catch(wa){Ko(!1,"[rc-image] ".concat(wa))}}return function(){var wa,Sa,Xa,Qa;(wa=$a)===null||wa===void 0||wa.remove(),(Sa=Ui)===null||Sa===void 0||Sa.remove(),(Xa=Qi)===null||Xa===void 0||Xa.remove(),(Qa=Ro)===null||Qa===void 0||Qa.remove()}},[Bn,Qo,Oa,Ba,ua,gn]),(0,te.useEffect)(function(){var Qi=ur(window,"keydown",Bs,!1);return function(){Qi.remove()}},[Bn,yi,Zr]);var gs=te.createElement(er,(0,pe.Z)({},Co,{width:Fe.width,height:Fe.height,imgRef:Bi,className:"".concat(nt,"-img"),alt:Mt,style:{transform:"translate3d(".concat(Ci.x,"px, ").concat(Ci.y,"px, 0) scale3d(").concat(Ci.flipX?"-":"").concat(sa,", ").concat(Ci.flipY?"-":"").concat(sa,", 1) rotate(").concat(ua,"deg)"),transitionDuration:!Na&&"0s"},fallback:Ft,src:St,onWheel:Is,onMouseDown:Ts,onDoubleClick:Ns}));return te.createElement(te.Fragment,null,te.createElement(jr,(0,pe.Z)({transitionName:zi,maskTransitionName:mi,closable:!1,keyboard:!0,prefixCls:nt,onClose:Nn,visible:Bn,wrapClassName:is,rootClassName:Jn,getContainer:Jr},Oo,{afterClose:ys}),te.createElement("div",{className:"".concat(nt,"-img-wrapper")},So?So(gs,(0,ae.Z)({transform:Ci},ai?{current:Zr}:{})):gs)),te.createElement(En,{visible:Bn,transform:Ci,maskTransitionName:mi,closeIcon:or,getContainer:Jr,prefixCls:nt,rootClassName:Jn,icons:jn,countRender:vo,showSwitch:yi,showProgress:aa,current:Zr,count:co,scale:sa,minScale:ii,maxScale:ui,toolbarRender:Xo,onSwitchLeft:ss,onSwitchRight:ds,onZoomIn:Ka,onZoomOut:_s,onRotateRight:as,onRotateLeft:Va,onFlipX:Fa,onFlipY:Ra,onClose:Nn}))},An=Pn,Yn=ee(74902);function yr(Ue){var Fe=te.useState({}),nt=(0,le.Z)(Fe,2),St=nt[0],Mt=nt[1],Ft=te.useCallback(function(gn,Nn){return Mt(function(Bn){return(0,ae.Z)((0,ae.Z)({},Bn),{},(0,he.Z)({},gn,Nn))}),function(){Mt(function(Bn){var Fn=(0,ae.Z)({},Bn);return delete Fn[gn],Fn})}},[]),ln=te.useMemo(function(){return Ue?Ue.map(function(gn){if(typeof gn=="string")return{data:{src:gn}};var Nn={};return Object.keys(gn).forEach(function(Bn){["src"].concat((0,Yn.Z)(De)).includes(Bn)&&(Nn[Bn]=gn[Bn])}),{data:Nn}}):Object.keys(St).reduce(function(gn,Nn){var Bn=St[Nn],Fn=Bn.canPreview,jn=Bn.data;return Fn&&gn.push({data:jn,id:Nn}),gn},[])},[Ue,St]);return[ln,Ft]}var lr=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ci=["src"],Po=function(Fe){var nt,St=Fe.previewPrefixCls,Mt=St===void 0?"rc-image-preview":St,Ft=Fe.children,ln=Fe.icons,gn=ln===void 0?{}:ln,Nn=Fe.items,Bn=Fe.preview,Fn=Fe.fallback,jn=(0,fe.Z)(Bn)==="object"?Bn:{},Jn=jn.visible,or=jn.onVisibleChange,Jr=jn.getContainer,bo=jn.current,Zr=jn.movable,ao=jn.minScale,co=jn.maxScale,vo=jn.countRender,Rr=jn.closeIcon,qr=jn.onChange,Eo=jn.onTransform,ii=jn.toolbarRender,uo=jn.imageRender,ui=(0,se.Z)(jn,lr),zo=yr(Nn),zi=(0,le.Z)(zo,2),Mi=zi[0],mi=zi[1],So=Ae(0,{value:bo}),Co=(0,le.Z)(So,2),Xo=Co[0],vi=Co[1],Ai=(0,te.useState)(!1),Oo=(0,le.Z)(Ai,2),Bi=Oo[0],Ri=Oo[1],Hi=((nt=Mi[Xo])===null||nt===void 0?void 0:nt.data)||{},Wi=Hi.src,Qo=(0,se.Z)(Hi,ci),Si=Ae(!!Jn,{value:Jn,onChange:function(ua,sa){or==null||or(ua,sa,Xo)}}),ai=(0,le.Z)(Si,2),yi=ai[0],aa=ai[1],ca=(0,te.useState)(null),Ci=(0,le.Z)(ca,2),_i=Ci[0],Ki=Ci[1],ka=te.useCallback(function(va,ua,sa){var Oa=Mi.findIndex(function(Ba){return Ba.id===va});aa(!0),Ki({x:ua,y:sa}),vi(Oa<0?0:Oa),Ri(!0)},[Mi]);te.useEffect(function(){yi?Bi||vi(0):Ri(!1)},[yi]);var Ea=function(ua,sa){vi(ua),qr==null||qr(ua,sa)},Ca=function(){aa(!1),Ki(null)},Na=te.useMemo(function(){return{register:mi,onPreview:ka}},[mi,ka]);return te.createElement(Ie.Provider,{value:Na},Ft,te.createElement(An,(0,pe.Z)({"aria-hidden":!yi,movable:Zr,visible:yi,prefixCls:Mt,closeIcon:Rr,onClose:Ca,mousePosition:_i,imgCommonProps:Qo,src:Wi,fallback:Fn,icons:gn,minScale:ao,maxScale:co,getContainer:Jr,current:Xo,count:Mi.length,countRender:vo,onTransform:Eo,toolbarRender:ii,imageRender:uo,onChange:Ea},ui)))},fr=Po,Vr=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Yo=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Io=function(Fe){var nt=Fe.src,St=Fe.alt,Mt=Fe.onPreviewClose,Ft=Fe.prefixCls,ln=Ft===void 0?"rc-image":Ft,gn=Fe.previewPrefixCls,Nn=gn===void 0?"".concat(ln,"-preview"):gn,Bn=Fe.placeholder,Fn=Fe.fallback,jn=Fe.width,Jn=Fe.height,or=Fe.style,Jr=Fe.preview,bo=Jr===void 0?!0:Jr,Zr=Fe.className,ao=Fe.onClick,co=Fe.onError,vo=Fe.wrapperClassName,Rr=Fe.wrapperStyle,qr=Fe.rootClassName,Eo=(0,se.Z)(Fe,Vr),ii=Bn&&Bn!==!0,uo=(0,fe.Z)(bo)==="object"?bo:{},ui=uo.src,zo=uo.visible,zi=zo===void 0?void 0:zo,Mi=uo.onVisibleChange,mi=Mi===void 0?Mt:Mi,So=uo.getContainer,Co=So===void 0?void 0:So,Xo=uo.mask,vi=uo.maskClassName,Ai=uo.movable,Oo=uo.icons,Bi=uo.scaleStep,Ri=uo.minScale,Hi=uo.maxScale,Wi=uo.imageRender,Qo=uo.toolbarRender,Si=(0,se.Z)(uo,Yo),ai=ui!=null?ui:nt,yi=Ae(!!zi,{value:zi,onChange:mi}),aa=(0,le.Z)(yi,2),ca=aa[0],Ci=aa[1],_i=wt({src:nt,isCustomPlaceholder:ii,fallback:Fn}),Ki=(0,le.Z)(_i,3),ka=Ki[0],Ea=Ki[1],Ca=Ki[2],Na=(0,te.useState)(null),va=(0,le.Z)(Na,2),ua=va[0],sa=va[1],Oa=(0,te.useContext)(Ie),Ba=!!bo,is=function(){Ci(!1),sa(null)},ys=de()(ln,vo,qr,(0,he.Z)({},"".concat(ln,"-error"),Ca==="error")),Ka=(0,te.useMemo)(function(){var Fa={};return De.forEach(function(Ra){Fe[Ra]!==void 0&&(Fa[Ra]=Fe[Ra])}),Fa},De.map(function(Fa){return Fe[Fa]})),_s=(0,te.useMemo)(function(){return(0,ae.Z)((0,ae.Z)({},Ka),{},{src:ai})},[ai,Ka]),as=Ze(Ba,_s),Va=function(Ra){var ss=ye(Ra.target),ds=ss.left,Ya=ss.top;Oa?Oa.onPreview(as,ds,Ya):(sa({x:ds,y:Ya}),Ci(!0)),ao==null||ao(Ra)};return te.createElement(te.Fragment,null,te.createElement("div",(0,pe.Z)({},Eo,{className:ys,onClick:Ba?Va:ao,style:(0,ae.Z)({width:jn,height:Jn},Rr)}),te.createElement("img",(0,pe.Z)({},Ka,{className:de()("".concat(ln,"-img"),(0,he.Z)({},"".concat(ln,"-img-placeholder"),Bn===!0),Zr),style:(0,ae.Z)({height:Jn},or),ref:ka},Ea,{width:jn,height:Jn,onError:co})),Ca==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(ln,"-placeholder")},Bn),Xo&&Ba&&te.createElement("div",{className:de()("".concat(ln,"-mask"),vi),style:{display:(or==null?void 0:or.display)==="none"?"none":void 0}},Xo)),!Oa&&Ba&&te.createElement(An,(0,pe.Z)({"aria-hidden":!ca,visible:ca,prefixCls:Nn,onClose:is,mousePosition:ua,src:ai,alt:St,fallback:Fn,getContainer:Co,icons:Oo,movable:Ai,scaleStep:Bi,minScale:Ri,maxScale:Hi,rootClassName:qr,imageRender:Wi,imgCommonProps:Ka,toolbarRender:Qo},Si)))};Io.PreviewGroup=fr,Io.displayName="Image";var ni=Io,gi=ni,Vi=ee(33603),fn=ee(53124),xo=ee(24457),Yi=ee(73475),Cn=ee(22751),nr=ee(91034),wr={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"},rr=wr,ei=ee(74643),po=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:rr}))},ri=te.forwardRef(po),xi={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"},Xi=xi,dt=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Xi}))},ct=te.forwardRef(dt),It={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"},Ut=It,yn=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Ut}))},gr=te.forwardRef(yn),_r={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"},Fr=_r,Qr=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Fr}))},Yr=te.forwardRef(Qr),Bo={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"},No=Bo,ti=function(Fe,nt){return te.createElement(ei.Z,(0,pe.Z)({},Fe,{ref:nt,icon:No}))},yt=te.forwardRef(ti),_t=ee(84780),jt=ee(71194),ze=ee(14747),zt=ee(50438),tn=ee(16932),dn=ee(67968),Lt=ee(45503);const Rt=Ue=>({position:Ue||"absolute",inset:0}),Nt=Ue=>{const{iconCls:Fe,motionDurationSlow:nt,paddingXXS:St,marginXXS:Mt,prefixCls:Ft,colorTextLightSolid:ln}=Ue;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:ln,background:new _t.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${nt}`,[`.${Ft}-mask-info`]:Object.assign(Object.assign({},ze.vS),{padding:`0 ${St}px`,[Fe]:{marginInlineEnd:Mt,svg:{verticalAlign:"baseline"}}})}},vn=Ue=>{const{previewCls:Fe,modalMaskBg:nt,paddingSM:St,marginXL:Mt,margin:Ft,paddingLG:ln,previewOperationColorDisabled:gn,previewOperationHoverColor:Nn,motionDurationSlow:Bn,iconCls:Fn,colorTextLightSolid:jn}=Ue,Jn=new _t.C(nt).setAlpha(.1),or=Jn.clone().setAlpha(.2);return{[`${Fe}-footer`]:{position:"fixed",bottom:Mt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ue.previewOperationColor},[`${Fe}-progress`]:{marginBottom:Ft},[`${Fe}-close`]:{position:"fixed",top:Mt,right:{_skip_check_:!0,value:Mt},display:"flex",color:jn,backgroundColor:Jn.toRgbString(),borderRadius:"50%",padding:St,outline:0,border:0,cursor:"pointer",transition:`all ${Bn}`,"&:hover":{backgroundColor:or.toRgbString()},[`& > ${Fn}`]:{fontSize:Ue.previewOperationSize}},[`${Fe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ln}px`,backgroundColor:Jn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:St,padding:St,cursor:"pointer",transition:`all ${Bn}`,userSelect:"none",[`&:not(${Fe}-operations-operation-disabled):hover > ${Fn}`]:{color:Nn},"&-disabled":{color:gn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Fn}`]:{fontSize:Ue.previewOperationSize}}}}},In=Ue=>{const{modalMaskBg:Fe,iconCls:nt,previewOperationColorDisabled:St,previewCls:Mt,zIndexPopup:Ft,motionDurationSlow:ln}=Ue,gn=new _t.C(Fe).setAlpha(.1),Nn=gn.clone().setAlpha(.2);return{[`${Mt}-switch-left, ${Mt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ft+1,display:"flex",alignItems:"center",justifyContent:"center",width:Ue.imagePreviewSwitchSize,height:Ue.imagePreviewSwitchSize,marginTop:-Ue.imagePreviewSwitchSize/2,color:Ue.previewOperationColor,background:gn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${ln}`,userSelect:"none","&:hover":{background:Nn.toRgbString()},"&-disabled":{"&, &:hover":{color:St,background:"transparent",cursor:"not-allowed",[`> ${nt}`]:{cursor:"not-allowed"}}},[`> ${nt}`]:{fontSize:Ue.previewOperationSize}},[`${Mt}-switch-left`]:{insetInlineStart:Ue.marginSM},[`${Mt}-switch-right`]:{insetInlineEnd:Ue.marginSM}}},Xn=Ue=>{const{motionEaseOut:Fe,previewCls:nt,motionDurationSlow:St,componentCls:Mt}=Ue;return[{[`${Mt}-preview-root`]:{[nt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${nt}-body`]:Object.assign(Object.assign({},Rt()),{overflow:"hidden"}),[`${nt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${St} ${Fe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Rt()),{transition:`transform ${St} ${Fe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${nt}-moving`]:{[`${nt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Mt}-preview-root`]:{[`${nt}-wrap`]:{zIndex:Ue.zIndexPopup}}},{[`${Mt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ue.zIndexPopup+1},"&":[vn(Ue),In(Ue)]}]},Un=Ue=>{const{componentCls:Fe}=Ue;return{[Fe]:{position:"relative",display:"inline-block",[`${Fe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Fe}-img-placeholder`]:{backgroundColor:Ue.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Fe}-mask`]:Object.assign({},Nt(Ue)),[`${Fe}-mask:hover`]:{opacity:1},[`${Fe}-placeholder`]:Object.assign({},Rt())}}},tr=Ue=>{const{previewCls:Fe}=Ue;return{[`${Fe}-root`]:(0,zt._y)(Ue,"zoom"),"&":(0,tn.J$)(Ue,!0)}};var cr=(0,dn.Z)("Image",Ue=>{const Fe=`${Ue.componentCls}-preview`,nt=(0,Lt.TS)(Ue,{previewCls:Fe,modalMaskBg:new _t.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ue.controlHeightLG});return[Un(nt),Xn(nt),(0,jt.QA)((0,Lt.TS)(nt,{componentCls:Fe})),tr(nt)]},Ue=>({zIndexPopup:Ue.zIndexPopupBase+80,previewOperationColor:new _t.C(Ue.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new _t.C(Ue.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new _t.C(Ue.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ue.fontSizeIcon*1.5})),Ar=function(Ue,Fe){var nt={};for(var St in Ue)Object.prototype.hasOwnProperty.call(Ue,St)&&Fe.indexOf(St)<0&&(nt[St]=Ue[St]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,St=Object.getOwnPropertySymbols(Ue);Mt{var{previewPrefixCls:Fe,preview:nt}=Ue,St=Ar(Ue,["previewPrefixCls","preview"]);const{getPrefixCls:Mt}=te.useContext(fn.E_),Ft=Mt("image",Fe),ln=`${Ft}-preview`,gn=Mt(),[Nn,Bn]=cr(Ft),Fn=te.useMemo(()=>{var jn;if(nt===!1)return nt;const Jn=typeof nt=="object"?nt:{},or=de()(Bn,(jn=Jn.rootClassName)!==null&&jn!==void 0?jn:"");return Object.assign(Object.assign({},Jn),{transitionName:(0,Vi.m)(gn,"zoom",Jn.transitionName),maskTransitionName:(0,Vi.m)(gn,"fade",Jn.maskTransitionName),rootClassName:or})},[nt]);return Nn(te.createElement(gi.PreviewGroup,Object.assign({preview:Fn,previewPrefixCls:ln,icons:Ln},St)))},qt=function(Ue,Fe){var nt={};for(var St in Ue)Object.prototype.hasOwnProperty.call(Ue,St)&&Fe.indexOf(St)<0&&(nt[St]=Ue[St]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,St=Object.getOwnPropertySymbols(Ue);Mt{const{prefixCls:Fe,preview:nt,className:St,rootClassName:Mt,style:Ft}=Ue,ln=qt(Ue,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:gn,locale:Nn=xo.Z,getPopupContainer:Bn,image:Fn}=te.useContext(fn.E_),jn=gn("image",Fe),Jn=gn(),or=Nn.Image||xo.Z.Image,[Jr,bo]=cr(jn),Zr=de()(Mt,bo),ao=de()(St,bo,Fn==null?void 0:Fn.className),co=te.useMemo(()=>{if(nt===!1)return nt;const Rr=typeof nt=="object"?nt:{},{getContainer:qr}=Rr,Eo=qt(Rr,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${jn}-mask-info`},te.createElement(be.Z,null),or==null?void 0:or.preview),icons:Ln},Eo),{getContainer:qr||Bn,transitionName:(0,Vi.m)(Jn,"zoom",Rr.transitionName),maskTransitionName:(0,Vi.m)(Jn,"fade",Rr.maskTransitionName)})},[nt,or]),vo=Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Ft);return Jr(te.createElement(gi,Object.assign({prefixCls:jn,preview:co,rootClassName:Zr,className:ao,style:vo},ln)))};hn.PreviewGroup=Wt;var Qn=hn},71322:function(ot,Ge,ee){"use strict";ee.d(Ge,{D:function(){return x},Z:function(){return ie}});var te=ee(87462),ue=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,de=ee(74643),pe=function(ye,_e){return ue.createElement(de.Z,(0,te.Z)({},ye,{ref:_e,icon:ve}))},ae=ue.forwardRef(pe),he=ee(22751),le=ee(91034),fe=ee(94184),se=ee.n(fe),me=ee(10366),ne=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),a=ee(53124),y=ee(84321),E=function(ce,ye){var _e={};for(var xe in ce)Object.prototype.hasOwnProperty.call(ce,xe)&&ye.indexOf(xe)<0&&(_e[xe]=ce[xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,xe=Object.getOwnPropertySymbols(ce);Ce{let ce=0;return function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ce+=1,`${ye}${ce}`}})();var ie=ue.forwardRef((ce,ye)=>{const{prefixCls:_e,className:xe,trigger:Ce,children:Te,defaultCollapsed:Me=!1,theme:pt="dark",style:Ve={},collapsible:gt=!1,reverseArrow:Ae=!1,width:De=200,collapsedWidth:Ie=80,zeroWidthTriggerStyle:tt,breakpoint:Ze,onCollapse:bt,onBreakpoint:wt}=ce,Kt=E(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qt}=(0,ue.useContext)(y.Gs),[rt,st]=(0,ue.useState)("collapsed"in ce?ce.collapsed:Me),[Ct,Gt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in ce&&st(ce.collapsed)},[ce.collapsed]);const Ht=(pn,kt)=>{"collapsed"in ce||st(pn),bt==null||bt(pn,kt)},Bt=(0,ue.useRef)();Bt.current=pn=>{Gt(pn.matches),wt==null||wt(pn.matches),rt!==pn.matches&&Ht(pn.matches,"responsive")},(0,ue.useEffect)(()=>{function pn(Qe){return Bt.current(Qe)}let kt;if(typeof window!="undefined"){const{matchMedia:Qe}=window;if(Qe&&Ze&&Ze in b){kt=Qe(`(max-width: ${b[Ze]})`);try{kt.addEventListener("change",pn)}catch(Ye){kt.addListener(pn)}pn(kt)}}return()=>{try{kt==null||kt.removeEventListener("change",pn)}catch(Qe){kt==null||kt.removeListener(pn)}}},[Ze]),(0,ue.useEffect)(()=>{const pn=z("ant-sider-");return Qt.addSider(pn),()=>Qt.removeSider(pn)},[]);const Ke=()=>{Ht(!rt,"clickTrigger")},{getPrefixCls:Jt}=(0,ue.useContext)(a.E_),Mn=()=>{const pn=Jt("layout-sider",_e),kt=(0,me.Z)(Kt,["collapsed"]),Qe=rt?Ie:De,Ye=ne(Qe)?`${Qe}px`:String(Qe),Je=parseFloat(String(Ie||0))===0?ue.createElement("span",{onClick:Ke,className:se()(`${pn}-zero-width-trigger`,`${pn}-zero-width-trigger-${Ae?"right":"left"}`),style:tt},Ce||ue.createElement(ae,null)):null,et={expanded:Ae?ue.createElement(le.Z,null):ue.createElement(he.Z,null),collapsed:Ae?ue.createElement(he.Z,null):ue.createElement(le.Z,null)}[rt?"collapsed":"expanded"],vt=Ce!==null?Je||ue.createElement("div",{className:`${pn}-trigger`,onClick:Ke,style:{width:Ye}},Ce||et):null,Pt=Object.assign(Object.assign({},Ve),{flex:`0 0 ${Ye}`,maxWidth:Ye,minWidth:Ye,width:Ye}),Xe=se()(pn,`${pn}-${pt}`,{[`${pn}-collapsed`]:!!rt,[`${pn}-has-trigger`]:gt&&Ce!==null&&!Je,[`${pn}-below`]:!!Ct,[`${pn}-zero-width`]:parseFloat(Ye)===0},xe);return ue.createElement("aside",Object.assign({className:Xe},kt,{style:Pt,ref:ye}),ue.createElement("div",{className:`${pn}-children`},Te),gt||Ct&&Je?vt:null)},Hn=ue.useMemo(()=>({siderCollapsed:rt}),[rt]);return ue.createElement(x.Provider,{value:Hn},Mn())})},84321:function(ot,Ge,ee){"use strict";ee.d(Ge,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var te=ee(74902),ue=ee(94184),be=ee.n(ue),ve=ee(10366),de=ee(67294),pe=ee(53124),ae=ee(67968),le=ie=>{const{componentCls:ce,bodyBg:ye,lightSiderBg:_e,lightTriggerBg:xe,lightTriggerColor:Ce}=ie;return{[`${ce}-sider-light`]:{background:_e,[`${ce}-sider-trigger`]:{color:Ce,background:xe},[`${ce}-sider-zero-width-trigger`]:{color:Ce,background:xe,border:`1px solid ${ye}`,borderInlineStart:0}}}};const fe=ie=>{const{antCls:ce,componentCls:ye,colorText:_e,triggerColor:xe,footerBg:Ce,triggerBg:Te,headerHeight:Me,headerPadding:pt,headerColor:Ve,footerPadding:gt,triggerHeight:Ae,zeroTriggerHeight:De,zeroTriggerWidth:Ie,motionDurationMid:tt,motionDurationSlow:Ze,fontSize:bt,borderRadius:wt,bodyBg:Kt,headerBg:Qt,siderBg:rt}=ie;return{[ye]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Kt,"&, *":{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:rt,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-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:Te,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Ie,zIndex:1,width:Ie,height:De,color:xe,fontSize:ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:wt,borderEndEndRadius:wt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ze} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ze}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ie,borderStartStartRadius:wt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:wt}}}}},le(ie)),{"&-rtl":{direction:"rtl"}}),[`${ye}-header`]:{height:Me,padding:pt,color:Ve,lineHeight:`${Me}px`,background:Qt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${ye}-footer`]:{padding:gt,color:_e,fontSize:bt,background:Ce},[`${ye}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ae.Z)("Layout",ie=>[fe(ie)],ie=>{const{colorBgLayout:ce,controlHeight:ye,controlHeightLG:_e,colorText:xe,controlHeightSM:Ce,marginXXS:Te,colorTextLightSolid:Me,colorBgContainer:pt}=ie,Ve=_e*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:ye*2,headerPadding:`0 ${Ve}px`,headerColor:xe,footerPadding:`${Ce}px ${Ve}px`,footerBg:ce,siderBg:"#001529",triggerHeight:_e+Te*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:_e,zeroTriggerHeight:_e,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(ie,ce){var ye={};for(var _e in ie)Object.prototype.hasOwnProperty.call(ie,_e)&&ce.indexOf(_e)<0&&(ye[_e]=ie[_e]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(ie);xe<_e.length;xe++)ce.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,_e[xe])&&(ye[_e[xe]]=ie[_e[xe]]);return ye};const re=de.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ie){let{suffixCls:ce,tagName:ye,displayName:_e}=ie;return xe=>de.forwardRef((Te,Me)=>de.createElement(xe,Object.assign({ref:Me,suffixCls:ce,tagName:ye},Te)))}const a=de.forwardRef((ie,ce)=>{const{prefixCls:ye,suffixCls:_e,className:xe,tagName:Ce}=ie,Te=me(ie,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=de.useContext(pe.E_),pt=Me("layout",ye),[Ve,gt]=se(pt),Ae=_e?`${pt}-${_e}`:pt;return Ve(de.createElement(Ce,Object.assign({className:be()(ye||Ae,xe,gt),ref:ce},Te)))}),y=de.forwardRef((ie,ce)=>{const{direction:ye}=de.useContext(pe.E_),[_e,xe]=de.useState([]),{prefixCls:Ce,className:Te,rootClassName:Me,children:pt,hasSider:Ve,tagName:gt,style:Ae}=ie,De=me(ie,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ie=(0,ve.Z)(De,["suffixCls"]),{getPrefixCls:tt,layout:Ze}=de.useContext(pe.E_),bt=tt("layout",Ce),[wt,Kt]=se(bt),Qt=be()(bt,{[`${bt}-has-sider`]:typeof Ve=="boolean"?Ve:_e.length>0,[`${bt}-rtl`]:ye==="rtl"},Ze==null?void 0:Ze.className,Te,Me,Kt),rt=de.useMemo(()=>({siderHook:{addSider:st=>{xe(Ct=>[].concat((0,te.Z)(Ct),[st]))},removeSider:st=>{xe(Ct=>Ct.filter(Gt=>Gt!==st))}}}),[]);return wt(de.createElement(re.Provider,{value:rt},de.createElement(gt,Object.assign({ref:ce,className:Qt,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Ae)},Ie),pt)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var oe=E},76529:function(ot,Ge,ee){"use strict";ee.d(Ge,{J:function(){return pe}});var te=ee(67294),ue=ee(4173),be=ee(60276),ve=function(ae,he){var le={};for(var fe in ae)Object.prototype.hasOwnProperty.call(ae,fe)&&he.indexOf(fe)<0&&(le[fe]=ae[fe]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,fe=Object.getOwnPropertySymbols(ae);se{const{children:le}=ae,fe=ve(ae,["children"]),se=te.useContext(de),me=te.useMemo(()=>Object.assign(Object.assign({},se),fe),[se,fe.prefixCls,fe.mode,fe.selectable]);return te.createElement(de.Provider,{value:me},te.createElement(ue.BR,null,(0,be.supportNodeRef)(le)?te.cloneElement(le,{ref:he}):le))});Ge.Z=de},68508:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return pn}});var te=ee(78595),ue=ee(67294),be=ee(71322),ve=ee(94184),de=ee.n(ve),pe=ee(53124),ae=function(kt,Qe){var Ye={};for(var Je in kt)Object.prototype.hasOwnProperty.call(kt,Je)&&Qe.indexOf(Je)<0&&(Ye[Je]=kt[Je]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Je=Object.getOwnPropertySymbols(kt);ft{const{prefixCls:Qe,className:Ye,dashed:Je}=kt,ft=ae(kt,["prefixCls","className","dashed"]),{getPrefixCls:At}=ue.useContext(pe.E_),et=At("menu",Qe),vt=de()({[`${et}-item-divider-dashed`]:!!Je},Ye);return ue.createElement(te.iz,Object.assign({className:vt},ft))},fe=ee(37419),se=ee(10366),me=ee(83062),re=ee(96159),a=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=kt=>{var Qe;const{className:Ye,children:Je,icon:ft,title:At,danger:et}=kt,{prefixCls:vt,firstLevel:Pt,direction:Xe,disableMenuItemTitleTooltip:Zt,inlineCollapsed:He}=ue.useContext(a),ut=bn=>{const Kn=ue.createElement("span",{className:`${vt}-title-content`},Je);return(!ft||(0,re.l$)(Je)&&Je.type==="span")&&Je&&bn&&Pt&&typeof Je=="string"?ue.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Je.charAt(0)):Kn},{siderCollapsed:wn}=ue.useContext(be.D);let sn=At;typeof At=="undefined"?sn=Pt?Je:"":At===!1&&(sn="");const ht={title:sn};!wn&&!He&&(ht.title=null,ht.open=!1);const $t=(0,fe.Z)(Je).length;let on=ue.createElement(te.ck,Object.assign({},(0,se.Z)(kt,["title","icon","danger"]),{className:de()({[`${vt}-item-danger`]:et,[`${vt}-item-only-child`]:(ft?$t+1:$t)===1},Ye),title:typeof At=="string"?At:void 0}),(0,re.Tm)(ft,{className:de()((0,re.l$)(ft)?(Qe=ft.props)===null||Qe===void 0?void 0:Qe.className:"",`${vt}-item-icon`)}),ut(He));return Zt||(on=ue.createElement(me.Z,Object.assign({},ht,{placement:Xe==="rtl"?"left":"right",overlayClassName:`${vt}-inline-collapsed-tooltip`}),on)),on},x=kt=>{var Qe;const{popupClassName:Ye,icon:Je,title:ft,theme:At}=kt,et=ue.useContext(a),{prefixCls:vt,inlineCollapsed:Pt,theme:Xe}=et,Zt=(0,te.Xl)();let He;if(!Je)He=Pt&&!Zt.length&&ft&&typeof ft=="string"?ue.createElement("div",{className:`${vt}-inline-collapsed-noicon`},ft.charAt(0)):ue.createElement("span",{className:`${vt}-title-content`},ft);else{const wn=(0,re.l$)(ft)&&ft.type==="span";He=ue.createElement(ue.Fragment,null,(0,re.Tm)(Je,{className:de()((0,re.l$)(Je)?(Qe=Je.props)===null||Qe===void 0?void 0:Qe.className:"",`${vt}-item-icon`)}),wn?ft:ue.createElement("span",{className:`${vt}-title-content`},ft))}const ut=ue.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]);return ue.createElement(a.Provider,{value:ut},ue.createElement(te.Wd,Object.assign({},(0,se.Z)(kt,["icon"]),{title:He,popupClassName:de()(vt,Ye,`${vt}-${At||Xe}`)})))},z=ee(25877),oe=ee(60276),ie=ee(33603),ce=ee(76529),ye=function(kt,Qe){var Ye={};for(var Je in kt)Object.prototype.hasOwnProperty.call(kt,Je)&&Qe.indexOf(Je)<0&&(Ye[Je]=kt[Je]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Je=Object.getOwnPropertySymbols(kt);ft{if(Qe&&typeof Qe=="object"){const Je=Qe,{label:ft,children:At,key:et,type:vt}=Je,Pt=ye(Je,["label","children","key","type"]),Xe=et!=null?et:`tmp-${Ye}`;return At||vt==="group"?vt==="group"?ue.createElement(te.BW,Object.assign({key:Xe},Pt,{title:ft}),_e(At)):ue.createElement(x,Object.assign({key:Xe},Pt,{title:ft}),_e(At)):vt==="divider"?ue.createElement(le,Object.assign({key:Xe},Pt)):ue.createElement(E,Object.assign({key:Xe},Pt),ft)}return null}).filter(Qe=>Qe)}function xe(kt){return ue.useMemo(()=>kt&&_e(kt),[kt])}var Ce=ee(84780),Te=ee(14747),Me=ee(33507),pt=ee(67771),Ve=ee(50438),gt=ee(67968),Ae=ee(45503),Ie=kt=>{const{componentCls:Qe,motionDurationSlow:Ye,horizontalLineHeight:Je,colorSplit:ft,lineWidth:At,lineType:et,itemPaddingInline:vt}=kt;return{[`${Qe}-horizontal`]:{lineHeight:Je,border:0,borderBottom:`${At}px ${et} ${ft}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Qe}-item, ${Qe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:vt},[`> ${Qe}-item:hover, > ${Qe}-item-active, > ${Qe}-submenu ${Qe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Qe}-item, ${Qe}-submenu-title`]:{transition:[`border-color ${Ye}`,`background ${Ye}`].join(",")},[`${Qe}-submenu-arrow`]:{display:"none"}}}},Ze=kt=>{let{componentCls:Qe,menuArrowOffset:Ye}=kt;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(-${Ye})`},"&::after":{transform:`rotate(45deg) translateY(${Ye})`}}}}};const bt=kt=>Object.assign({},(0,Te.oN)(kt));var Kt=(kt,Qe)=>{const{componentCls:Ye,itemColor:Je,itemSelectedColor:ft,groupTitleColor:At,itemBg:et,subMenuItemBg:vt,itemSelectedBg:Pt,activeBarHeight:Xe,activeBarWidth:Zt,activeBarBorderWidth:He,motionDurationSlow:ut,motionEaseInOut:wn,motionEaseOut:sn,itemPaddingInline:ht,motionDurationMid:$t,itemHoverColor:on,lineType:bn,colorSplit:Kn,itemDisabledColor:Dt,dangerItemColor:Rn,dangerItemHoverColor:Gn,dangerItemSelectedColor:jr,dangerItemActiveBg:mr,dangerItemSelectedBg:ur,itemHoverBg:Tn,itemActiveBg:Or,menuSubMenuBg:zr,horizontalItemSelectedColor:lo,horizontalItemSelectedBg:di,horizontalItemBorderRadius:Ko,horizontalItemHoverBg:pr,popupBg:Xr}=kt;return{[`${Ye}-${Qe}, ${Ye}-${Qe} > ${Ye}`]:{color:Je,background:et,[`&${Ye}-root:focus-visible`]:Object.assign({},bt(kt)),[`${Ye}-item-group-title`]:{color:At},[`${Ye}-submenu-selected`]:{[`> ${Ye}-submenu-title`]:{color:ft}},[`${Ye}-item-disabled, ${Ye}-submenu-disabled`]:{color:`${Dt} !important`},[`${Ye}-item:not(${Ye}-item-selected):not(${Ye}-submenu-selected)`]:{[`&:hover, > ${Ye}-submenu-title:hover`]:{color:on}},[`&:not(${Ye}-horizontal)`]:{[`${Ye}-item:not(${Ye}-item-selected)`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:Or}},[`${Ye}-submenu-title`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:Or}}},[`${Ye}-item-danger`]:{color:Rn,[`&${Ye}-item:hover`]:{[`&:not(${Ye}-item-selected):not(${Ye}-submenu-selected)`]:{color:Gn}},[`&${Ye}-item:active`]:{background:mr}},[`${Ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ye}-item-selected`]:{color:ft,[`&${Ye}-item-danger`]:{color:jr},"a, a:hover":{color:"inherit"}},[`& ${Ye}-item-selected`]:{backgroundColor:Pt,[`&${Ye}-item-danger`]:{backgroundColor:ur}},[`${Ye}-item, ${Ye}-submenu-title`]:{[`&:not(${Ye}-item-disabled):focus-visible`]:Object.assign({},bt(kt))},[`&${Ye}-submenu > ${Ye}`]:{backgroundColor:zr},[`&${Ye}-popup > ${Ye}`]:{backgroundColor:Xr},[`&${Ye}-horizontal`]:Object.assign(Object.assign({},Qe==="dark"?{borderBottom:0}:{}),{[`> ${Ye}-item, > ${Ye}-submenu`]:{top:He,marginTop:-He,marginBottom:0,borderRadius:Ko,"&::after":{position:"absolute",insetInline:ht,bottom:0,borderBottom:`${Xe}px solid transparent`,transition:`border-color ${ut} ${wn}`,content:'""'},"&:hover, &-active, &-open":{background:pr,"&::after":{borderBottomWidth:Xe,borderBottomColor:lo}},"&-selected":{color:lo,backgroundColor:di,"&:hover":{backgroundColor:di},"&::after":{borderBottomWidth:Xe,borderBottomColor:lo}}}}),[`&${Ye}-root`]:{[`&${Ye}-inline, &${Ye}-vertical`]:{borderInlineEnd:`${He}px ${bn} ${Kn}`}},[`&${Ye}-inline`]:{[`${Ye}-sub${Ye}-inline`]:{background:vt},[`${Ye}-item, ${Ye}-submenu-title`]:He&&Zt?{width:`calc(100% + ${He}px)`}:{},[`${Ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Zt}px solid ${ft}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$t} ${sn}`,`opacity ${$t} ${sn}`].join(","),content:'""'},[`&${Ye}-item-danger`]:{"&::after":{borderInlineEndColor:jr}}},[`${Ye}-selected, ${Ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$t} ${wn}`,`opacity ${$t} ${wn}`].join(",")}}}}}};const Qt=kt=>{const{componentCls:Qe,itemHeight:Ye,itemMarginInline:Je,padding:ft,menuArrowSize:At,marginXS:et,itemMarginBlock:vt}=kt,Pt=ft+At+et;return{[`${Qe}-item`]:{position:"relative",overflow:"hidden"},[`${Qe}-item, ${Qe}-submenu-title`]:{height:Ye,lineHeight:`${Ye}px`,paddingInline:ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:Je,marginBlock:vt,width:`calc(100% - ${Je*2}px)`},[`> ${Qe}-item, > ${Qe}-submenu > ${Qe}-submenu-title`]:{height:Ye,lineHeight:`${Ye}px`},[`${Qe}-item-group-list ${Qe}-submenu-title, ${Qe}-submenu-title`]:{paddingInlineEnd:Pt}}};var st=kt=>{const{componentCls:Qe,iconCls:Ye,itemHeight:Je,colorTextLightSolid:ft,dropdownWidth:At,controlHeightLG:et,motionDurationMid:vt,motionEaseOut:Pt,paddingXL:Xe,itemMarginInline:Zt,fontSizeLG:He,motionDurationSlow:ut,paddingXS:wn,boxShadowSecondary:sn,collapsedWidth:ht,collapsedIconSize:$t}=kt,on={height:Je,lineHeight:`${Je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Qe]:{"&-inline, &-vertical":Object.assign({[`&${Qe}-root`]:{boxShadow:"none"}},Qt(kt))},[`${Qe}-submenu-popup`]:{[`${Qe}-vertical`]:Object.assign(Object.assign({},Qt(kt)),{boxShadow:sn})}},{[`${Qe}-submenu-popup ${Qe}-vertical${Qe}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${et*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 ${ut}`,`background ${ut}`,`padding ${vt} ${Pt}`].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`]:on,[`& ${Qe}-item-group-title`]:{paddingInlineStart:Xe}},[`${Qe}-item`]:on}},{[`${Qe}-inline-collapsed`]:{width:ht,[`&${Qe}-root`]:{[`${Qe}-item, ${Qe}-submenu ${Qe}-submenu-title`]:{[`> ${Qe}-inline-collapsed-noicon`]:{fontSize:He,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% - ${He/2}px - ${Zt}px)`,textOverflow:"clip",[` ${Qe}-submenu-arrow, ${Qe}-submenu-expand-icon `]:{opacity:0},[`${Qe}-item-icon, ${Ye}`]:{margin:0,fontSize:$t,lineHeight:`${Je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Qe}-item-icon, ${Ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Qe}-item-icon, ${Ye}`]:{display:"none"},"a, a:hover":{color:ft}},[`${Qe}-item-group-title`]:Object.assign(Object.assign({},Te.vS),{paddingInline:wn})}}]};const Ct=kt=>{const{componentCls:Qe,motionDurationSlow:Ye,motionDurationMid:Je,motionEaseInOut:ft,motionEaseOut:At,iconCls:et,iconSize:vt,iconMarginInlineEnd:Pt}=kt;return{[`${Qe}-item, ${Qe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ye}`,`background ${Ye}`,`padding ${Ye} ${ft}`].join(","),[`${Qe}-item-icon, ${et}`]:{minWidth:vt,fontSize:vt,transition:[`font-size ${Je} ${At}`,`margin ${Ye} ${ft}`,`color ${Ye}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${Ye} ${ft}`,`margin ${Ye}`,`color ${Ye}`].join(",")}},[`${Qe}-item-icon`]:Object.assign({},(0,Te.Ro)()),[`&${Qe}-item-only-child`]:{[`> ${et}, > ${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"}}}},Gt=kt=>{const{componentCls:Qe,motionDurationSlow:Ye,motionEaseInOut:Je,borderRadius:ft,menuArrowSize:At,menuArrowOffset:et}=kt;return{[`${Qe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:kt.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ye} ${Je}, opacity ${Ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:ft,transition:[`background ${Ye} ${Je}`,`transform ${Ye} ${Je}`,`top ${Ye} ${Je}`,`color ${Ye} ${Je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${et})`},"&::after":{transform:`rotate(-45deg) translateY(${et})`}}}}},Ht=kt=>{const{antCls:Qe,componentCls:Ye,fontSize:Je,motionDurationSlow:ft,motionDurationMid:At,motionEaseInOut:et,paddingXS:vt,padding:Pt,colorSplit:Xe,lineWidth:Zt,zIndexPopup:He,borderRadiusLG:ut,subMenuItemBorderRadius:wn,menuArrowSize:sn,menuArrowOffset:ht,lineType:$t,menuPanelMaskInset:on,groupTitleLineHeight:bn,groupTitleFontSize:Kn}=kt;return[{"":{[`${Ye}`]:Object.assign(Object.assign({},(0,Te.dF)()),{"&-hidden":{display:"none"}})},[`${Ye}-submenu-hidden`]:{display:"none"}},{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Te.Wf)(kt)),(0,Te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Je,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ft} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ye}-item`]:{flex:"none"}},[`${Ye}-item, ${Ye}-submenu, ${Ye}-submenu-title`]:{borderRadius:kt.itemBorderRadius},[`${Ye}-item-group-title`]:{padding:`${vt}px ${Pt}px`,fontSize:Kn,lineHeight:bn,transition:`all ${ft}`},[`&-horizontal ${Ye}-submenu`]:{transition:[`border-color ${ft} ${et}`,`background ${ft} ${et}`].join(",")},[`${Ye}-submenu, ${Ye}-submenu-inline`]:{transition:[`border-color ${ft} ${et}`,`background ${ft} ${et}`,`padding ${At} ${et}`].join(",")},[`${Ye}-submenu ${Ye}-sub`]:{cursor:"initial",transition:[`background ${ft} ${et}`,`padding ${ft} ${et}`].join(",")},[`${Ye}-title-content`]:{transition:`color ${ft}`},[`${Ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Xe,borderStyle:$t,borderWidth:0,borderTopWidth:Zt,marginBlock:Zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(kt)),{[`${Ye}-item-group`]:{[`${Ye}-item-group-list`]:{margin:0,padding:0,[`${Ye}-item, ${Ye}-submenu-title`]:{paddingInline:`${Je*2}px ${Pt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:He,borderRadius:ut,boxShadow:"none",transformOrigin:"0 0",[`&${Ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${on}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:on},"\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:kt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:kt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:kt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:kt.paddingXS},[`> ${Ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:ut},Ct(kt)),Gt(kt)),{[`${Ye}-item, ${Ye}-submenu > ${Ye}-submenu-title`]:{borderRadius:wn},[`${Ye}-submenu-title::after`]:{transition:`transform ${ft} ${et}`}})}}),Gt(kt)),{[`&-inline-collapsed ${Ye}-submenu-arrow, &-inline ${Ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ht})`},"&::after":{transform:`rotate(45deg) translateX(-${ht})`}},[`${Ye}-submenu-open${Ye}-submenu-inline > ${Ye}-submenu-title > ${Ye}-submenu-arrow`]:{transform:`translateY(-${sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ht})`},"&::before":{transform:`rotate(45deg) translateX(${ht})`}}})},{[`${Qe}-layout-header`]:{[Ye]:{lineHeight:"inherit"}}}]};var Bt=(kt,Qe)=>(0,gt.Z)("Menu",Je=>{if(Qe===!1)return[];const{colorBgElevated:ft,colorPrimary:At,colorTextLightSolid:et,controlHeightLG:vt,fontSize:Pt,darkItemColor:Xe,darkDangerItemColor:Zt,darkItemBg:He,darkSubMenuItemBg:ut,darkItemSelectedColor:wn,darkItemSelectedBg:sn,darkDangerItemSelectedBg:ht,darkItemHoverBg:$t,darkGroupTitleColor:on,darkItemHoverColor:bn,darkItemDisabledColor:Kn,darkDangerItemHoverColor:Dt,darkDangerItemSelectedColor:Rn,darkDangerItemActiveBg:Gn}=Je,jr=Pt/7*5,mr=(0,Ae.TS)(Je,{menuArrowSize:jr,menuHorizontalHeight:vt*1.15,menuArrowOffset:`${jr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ft}),ur=(0,Ae.TS)(mr,{itemColor:Xe,itemHoverColor:bn,groupTitleColor:on,itemSelectedColor:wn,itemBg:He,popupBg:He,subMenuItemBg:ut,itemActiveBg:"transparent",itemSelectedBg:sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:$t,itemDisabledColor:Kn,dangerItemColor:Zt,dangerItemHoverColor:Dt,dangerItemSelectedColor:Rn,dangerItemActiveBg:Gn,dangerItemSelectedBg:ht,menuSubMenuBg:ut,horizontalItemSelectedColor:et,horizontalItemSelectedBg:At});return[Ht(mr),Ie(mr),st(mr),Kt(mr,"light"),Kt(ur,"dark"),Ze(mr),(0,Me.Z)(mr),(0,pt.oN)(mr,"slide-up"),(0,pt.oN)(mr,"slide-down"),(0,Ve._y)(mr,"zoom-big")]},Je=>{const{colorPrimary:ft,colorError:At,colorTextDisabled:et,colorErrorBg:vt,colorText:Pt,colorTextDescription:Xe,colorBgContainer:Zt,colorFillAlter:He,colorFillContent:ut,lineWidth:wn,lineWidthBold:sn,controlItemBgActive:ht,colorBgTextHover:$t,controlHeightLG:on,lineHeight:bn,colorBgElevated:Kn,marginXXS:Dt,padding:Rn,fontSize:Gn,controlHeightSM:jr,fontSizeLG:mr,colorTextLightSolid:ur,colorErrorHover:Tn}=Je,Or=new Ce.C(ur).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Je.zIndexPopupBase+50,radiusItem:Je.borderRadiusLG,itemBorderRadius:Je.borderRadiusLG,radiusSubMenuItem:Je.borderRadiusSM,subMenuItemBorderRadius:Je.borderRadiusSM,colorItemText:Pt,itemColor:Pt,colorItemTextHover:Pt,itemHoverColor:Pt,colorItemTextHoverHorizontal:ft,horizontalItemHoverColor:ft,colorGroupTitle:Xe,groupTitleColor:Xe,colorItemTextSelected:ft,itemSelectedColor:ft,colorItemTextSelectedHorizontal:ft,horizontalItemSelectedColor:ft,colorItemBg:Zt,itemBg:Zt,colorItemBgHover:$t,itemHoverBg:$t,colorItemBgActive:ut,itemActiveBg:ht,colorSubItemBg:He,subMenuItemBg:He,colorItemBgSelected:ht,itemSelectedBg:ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:wn,activeBarBorderWidth:wn,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:vt,dangerItemActiveBg:vt,colorDangerItemBgSelected:vt,dangerItemSelectedBg:vt,itemMarginInline:Je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:on,groupTitleLineHeight:bn,collapsedWidth:on*2,popupBg:Kn,itemMarginBlock:Dt,itemPaddingInline:Rn,horizontalLineHeight:`${on*1.15}px`,iconSize:Gn,iconMarginInlineEnd:jr-Gn,collapsedIconSize:mr,groupTitleFontSize:Gn,darkItemDisabledColor:new Ce.C(ur).setAlpha(.25).toRgbString(),darkItemColor:Or,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ur,darkItemSelectedBg:ft,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:Or,darkItemHoverColor:ur,darkDangerItemHoverColor:Tn,darkDangerItemSelectedColor:ur,darkDangerItemActiveBg:At}},{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"]]})(kt),Ke=function(kt,Qe){var Ye={};for(var Je in kt)Object.prototype.hasOwnProperty.call(kt,Je)&&Qe.indexOf(Je)<0&&(Ye[Je]=kt[Je]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Je=Object.getOwnPropertySymbols(kt);ft{var Ye,Je;const ft=ue.useContext(ce.Z),At=ft||{},{getPrefixCls:et,getPopupContainer:vt,direction:Pt,menu:Xe}=ue.useContext(pe.E_),Zt=et(),{prefixCls:He,className:ut,style:wn,theme:sn="light",expandIcon:ht,_internalDisableMenuItemTitleTooltip:$t,inlineCollapsed:on,siderCollapsed:bn,items:Kn,children:Dt,rootClassName:Rn,mode:Gn,selectable:jr,onClick:mr,overflowedIndicatorPopupClassName:ur}=kt,Tn=Ke(kt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Or=(0,se.Z)(Tn,["collapsedWidth"]),zr=xe(Kn)||Dt;(Ye=At.validator)===null||Ye===void 0||Ye.call(At,{mode:Gn});const lo=(0,oe.useEvent)(function(){var Cr;mr==null||mr.apply(void 0,arguments),(Cr=At.onClick)===null||Cr===void 0||Cr.call(At)}),di=At.mode||Gn,Ko=jr!=null?jr:At.selectable,pr=ue.useMemo(()=>bn!==void 0?bn:on,[on,bn]),Xr={horizontal:{motionName:`${Zt}-slide-up`},inline:(0,ie.Z)(Zt),other:{motionName:`${Zt}-zoom-big`}},to=et("menu",He||At.prefixCls),[mo,Kr]=Bt(to,!ft),Vo=de()(`${to}-${sn}`,Xe==null?void 0:Xe.className,ut);let Do;if(typeof ht=="function")Do=ht;else if(ht===null||ht===!1)Do=null;else if(At.expandIcon===null||At.expandIcon===!1)Do=null;else{const Cr=ht!=null?ht:At.expandIcon;Do=(0,re.Tm)(Cr,{className:de()(`${to}-submenu-expand-icon`,(0,re.l$)(Cr)?(Je=Cr.props)===null||Je===void 0?void 0:Je.className:"")})}const io=ue.useMemo(()=>({prefixCls:to,inlineCollapsed:pr||!1,direction:Pt,firstLevel:!0,theme:sn,mode:di,disableMenuItemTitleTooltip:$t}),[to,pr,Pt,$t,sn]);return mo(ue.createElement(ce.Z.Provider,{value:null},ue.createElement(a.Provider,{value:io},ue.createElement(te.ZP,Object.assign({getPopupContainer:vt,overflowedIndicator:ue.createElement(z.Z,null),overflowedIndicatorPopupClassName:de()(to,`${to}-${sn}`,ur),mode:di,selectable:Ko,onClick:lo},Or,{inlineCollapsed:pr,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),wn),className:Vo,prefixCls:to,direction:Pt,defaultMotions:Xr,expandIcon:Do,ref:Qe,rootClassName:de()(Rn,Kr)}),zr))))});const Hn=(0,ue.forwardRef)((kt,Qe)=>{const Ye=(0,ue.useRef)(null),Je=ue.useContext(be.D);return(0,ue.useImperativeHandle)(Qe,()=>({menu:Ye.current,focus:ft=>{var At;(At=Ye.current)===null||At===void 0||At.focus(ft)}})),ue.createElement(Mn,Object.assign({ref:Ye},kt,Je))});Hn.Item=E,Hn.SubMenu=x,Hn.Divider=le,Hn.ItemGroup=te.BW;var pn=Hn},28452:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return Zt}});var te=ee(87462),ue=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,de=ee(74643),pe=function(ut,wn){return ue.createElement(de.Z,(0,te.Z)({},ut,{ref:wn,icon:ve}))},ae=ue.forwardRef(pe),he=ee(81893),le=ee(22751),fe=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`,z=`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(z).split(/[\s\n]+/),ie="aria-",ce="data-";function ye(He,ut){return He.indexOf(ut)===0}function _e(He){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn;ut===!1?wn={aria:!0,data:!0,attr:!0}:ut===!0?wn={aria:!0}:wn=(0,ne.Z)({},ut);var sn={};return Object.keys(He).forEach(function(ht){(wn.aria&&(ht==="role"||ye(ht,ie))||wn.data&&ye(ht,ce)||wn.attr&&oe.includes(ht))&&(sn[ht]=He[ht])}),sn}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,Te=ee(81626),Me=function(He){(0,E.Z)(wn,He);var ut=(0,b.Z)(wn);function wn(){var sn;(0,a.Z)(this,wn);for(var ht=arguments.length,$t=new Array(ht),on=0;on=0||bn.relatedTarget.className.indexOf("".concat(Gn,"-item"))>=0))&&Rn(sn.getValidValue()))},sn.go=function(bn){var Kn=sn.state.goInputText;Kn!==""&&(bn.keyCode===Ce.ENTER||bn.type==="click")&&(sn.setState({goInputText:""}),sn.props.quickGo(sn.getValidValue()))},sn}return(0,y.Z)(wn,[{key:"getPageSizeOptions",value:function(){var ht=this.props,$t=ht.pageSize,on=ht.pageSizeOptions;return on.some(function(bn){return bn.toString()===$t.toString()})?on:on.concat([$t.toString()]).sort(function(bn,Kn){var Dt=Number.isNaN(Number(bn))?0:Number(bn),Rn=Number.isNaN(Number(Kn))?0:Number(Kn);return Dt-Rn})}},{key:"render",value:function(){var ht=this,$t=this.props,on=$t.pageSize,bn=$t.locale,Kn=$t.rootPrefixCls,Dt=$t.changeSize,Rn=$t.quickGo,Gn=$t.goButton,jr=$t.selectComponentClass,mr=$t.buildOptionText,ur=$t.selectPrefixCls,Tn=$t.disabled,Or=this.state.goInputText,zr="".concat(Kn,"-options"),lo=jr,di=null,Ko=null,pr=null;if(!Dt&&!Rn)return null;var Xr=this.getPageSizeOptions();if(Dt&&lo){var to=Xr.map(function(mo,Kr){return ue.createElement(lo.Option,{key:Kr,value:mo.toString()},(mr||ht.buildOptionText)(mo))});di=ue.createElement(lo,{disabled:Tn,prefixCls:ur,showSearch:!1,className:"".concat(zr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(on||Xr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Kr){return Kr.parentNode},"aria-label":bn.page_size,defaultOpen:!1},to)}return Rn&&(Gn&&(pr=typeof Gn=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Tn,className:"".concat(zr,"-quick-jumper-button")},bn.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},Gn)),Ko=ue.createElement("div",{className:"".concat(zr,"-quick-jumper")},bn.jump_to,ue.createElement("input",{disabled:Tn,type:"text",value:Or,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":bn.page}),bn.page,pr)),ue.createElement("li",{className:"".concat(zr)},di,Ko)}}]),wn}(ue.Component);Me.defaultProps={pageSizeOptions:["10","20","50","100"]};var pt=Me,Ve=function(ut){var wn,sn=ut.rootPrefixCls,ht=ut.page,$t=ut.active,on=ut.className,bn=ut.showTitle,Kn=ut.onClick,Dt=ut.onKeyPress,Rn=ut.itemRender,Gn="".concat(sn,"-item"),jr=me()(Gn,"".concat(Gn,"-").concat(ht),(wn={},(0,re.Z)(wn,"".concat(Gn,"-active"),$t),(0,re.Z)(wn,"".concat(Gn,"-disabled"),!ht),(0,re.Z)(wn,ut.className,on),wn)),mr=function(){Kn(ht)},ur=function(zr){Dt(zr,Kn,ht)},Tn=Rn(ht,"page",ue.createElement("a",{rel:"nofollow"},ht));return Tn?ue.createElement("li",{title:bn?ht.toString():null,className:jr,onClick:mr,onKeyPress:ur,tabIndex:0},Tn):null},gt=Ve;function Ae(){}function De(He){var ut=Number(He);return typeof ut=="number"&&!Number.isNaN(ut)&&isFinite(ut)&&Math.floor(ut)===ut}var Ie=function(ut,wn,sn){return sn};function tt(He,ut,wn){var sn=typeof He=="undefined"?ut.pageSize:He;return Math.floor((wn.total-1)/sn)+1}var Ze=function(He){(0,E.Z)(wn,He);var ut=(0,b.Z)(wn);function wn(sn){var ht;(0,a.Z)(this,wn),ht=ut.call(this,sn),ht.paginationNode=ue.createRef(),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(tt(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(Dt,Rn){var Gn=ht.props.prefixCls,jr=Dt||ue.createElement("button",{type:"button","aria-label":Rn,className:"".concat(Gn,"-item-link")});return typeof Dt=="function"&&(jr=ue.createElement(Dt,(0,ne.Z)({},ht.props))),jr},ht.isValid=function(Dt){var Rn=ht.props.total;return De(Dt)&&Dt!==ht.state.current&&De(Rn)&&Rn>0},ht.shouldDisplayQuickJumper=function(){var Dt=ht.props,Rn=Dt.showQuickJumper,Gn=Dt.total,jr=ht.state.pageSize;return Gn<=jr?!1:Rn},ht.handleKeyDown=function(Dt){(Dt.keyCode===Ce.ARROW_UP||Dt.keyCode===Ce.ARROW_DOWN)&&Dt.preventDefault()},ht.handleKeyUp=function(Dt){var Rn=ht.getValidValue(Dt),Gn=ht.state.currentInputValue;Rn!==Gn&&ht.setState({currentInputValue:Rn}),Dt.keyCode===Ce.ENTER?ht.handleChange(Rn):Dt.keyCode===Ce.ARROW_UP?ht.handleChange(Rn-1):Dt.keyCode===Ce.ARROW_DOWN&&ht.handleChange(Rn+1)},ht.handleBlur=function(Dt){var Rn=ht.getValidValue(Dt);ht.handleChange(Rn)},ht.changePageSize=function(Dt){var Rn=ht.state.current,Gn=tt(Dt,ht.state,ht.props);Rn=Rn>Gn?Gn:Rn,Gn===0&&(Rn=ht.state.current),typeof Dt=="number"&&("pageSize"in ht.props||ht.setState({pageSize:Dt}),"current"in ht.props||ht.setState({current:Rn,currentInputValue:Rn})),ht.props.onShowSizeChange(Rn,Dt),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(Rn,Dt)},ht.handleChange=function(Dt){var Rn=ht.props,Gn=Rn.disabled,jr=Rn.onChange,mr=ht.state,ur=mr.pageSize,Tn=mr.current,Or=mr.currentInputValue;if(ht.isValid(Dt)&&!Gn){var zr=tt(void 0,ht.state,ht.props),lo=Dt;return Dt>zr?lo=zr:Dt<1&&(lo=1),"current"in ht.props||ht.setState({current:lo}),lo!==Or&&ht.setState({currentInputValue:lo}),jr(lo,ur),lo}return Tn},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current2?Gn-2:0),mr=2;mr=on?Kn=on:Kn=Number($t),Kn}},{key:"getShowSizeChanger",value:function(){var ht=this.props,$t=ht.showSizeChanger,on=ht.total,bn=ht.totalBoundaryShowSizeChanger;return typeof $t!="undefined"?$t:on>bn}},{key:"render",value:function(){var ht=this.props,$t=ht.prefixCls,on=ht.className,bn=ht.style,Kn=ht.disabled,Dt=ht.hideOnSinglePage,Rn=ht.total,Gn=ht.locale,jr=ht.showQuickJumper,mr=ht.showLessItems,ur=ht.showTitle,Tn=ht.showTotal,Or=ht.simple,zr=ht.itemRender,lo=ht.showPrevNextJumpers,di=ht.jumpPrevIcon,Ko=ht.jumpNextIcon,pr=ht.selectComponentClass,Xr=ht.selectPrefixCls,to=ht.pageSizeOptions,mo=this.state,Kr=mo.current,Vo=mo.pageSize,Do=mo.currentInputValue;if(Dt===!0&&Rn<=Vo)return null;var io=tt(void 0,this.state,this.props),Cr=[],Ei=null,cn=null,ge=null,Se=null,Pe=null,Le=jr&&jr.goButton,Ne=mr?1:2,qe=Kr-1>0?Kr-1:0,it=Kr+1Rn?Rn:Kr*Vo]));if(Or){Le&&(typeof Le=="boolean"?Pe=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Gn.jump_to_confirm):Pe=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le),Pe=ue.createElement("li",{title:ur?"".concat(Gn.jump_to).concat(Kr,"/").concat(io):null,className:"".concat($t,"-simple-pager")},Pe));var En=this.renderPrev(qe);return ue.createElement("ul",(0,te.Z)({className:me()($t,"".concat($t,"-simple"),(0,re.Z)({},"".concat($t,"-disabled"),Kn),on),style:bn,ref:this.paginationNode},un),Vt,En?ue.createElement("li",{title:ur?Gn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:me()("".concat($t,"-prev"),(0,re.Z)({},"".concat($t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},En):null,ue.createElement("li",{title:ur?"".concat(Kr,"/").concat(io):null,className:"".concat($t,"-simple-pager")},ue.createElement("input",{type:"text",value:Do,disabled:Kn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat($t,"-slash")},"/"),io),ue.createElement("li",{title:ur?Gn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:me()("".concat($t,"-next"),(0,re.Z)({},"".concat($t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(it)),Pe)}if(io<=3+Ne*2){var Vn={locale:Gn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:ur,itemRender:zr};io||Cr.push(ue.createElement(gt,(0,te.Z)({},Vn,{key:"noPager",page:1,className:"".concat($t,"-item-disabled")})));for(var Pr=1;Pr<=io;Pr+=1){var Ot=Kr===Pr;Cr.push(ue.createElement(gt,(0,te.Z)({},Vn,{key:Pr,page:Pr,active:Ot})))}}else{var qn=mr?Gn.prev_3:Gn.prev_5,er=mr?Gn.next_3:Gn.next_5,Pn=zr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(di,"prev page")),An=zr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ko,"next page"));lo&&(Ei=Pn?ue.createElement("li",{title:ur?qn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:me()("".concat($t,"-jump-prev"),(0,re.Z)({},"".concat($t,"-jump-prev-custom-icon"),!!di))},Pn):null,cn=An?ue.createElement("li",{title:ur?er:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:me()("".concat($t,"-jump-next"),(0,re.Z)({},"".concat($t,"-jump-next-custom-icon"),!!Ko))},An):null),Se=ue.createElement(gt,{locale:Gn,last:!0,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:io,page:io,active:!1,showTitle:ur,itemRender:zr}),ge=ue.createElement(gt,{locale:Gn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:ur,itemRender:zr});var Yn=Math.max(1,Kr-Ne),yr=Math.min(Kr+Ne,io);Kr-1<=Ne&&(yr=1+Ne*2),io-Kr<=Ne&&(Yn=io-Ne*2);for(var lr=Yn;lr<=yr;lr+=1){var ci=Kr===lr;Cr.push(ue.createElement(gt,{locale:Gn,rootPrefixCls:$t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:lr,page:lr,active:ci,showTitle:ur,itemRender:zr}))}Kr-1>=Ne*2&&Kr!==3&&(Cr[0]=(0,ue.cloneElement)(Cr[0],{className:"".concat($t,"-item-after-jump-prev")}),Cr.unshift(Ei)),io-Kr>=Ne*2&&Kr!==io-2&&(Cr[Cr.length-1]=(0,ue.cloneElement)(Cr[Cr.length-1],{className:"".concat($t,"-item-before-jump-next")}),Cr.push(cn)),Yn!==1&&Cr.unshift(ge),yr!==io&&Cr.push(Se)}var Po=!this.hasPrev()||!io,fr=!this.hasNext()||!io,Vr=this.renderPrev(qe),Yo=this.renderNext(it);return ue.createElement("ul",(0,te.Z)({className:me()($t,on,(0,re.Z)({},"".concat($t,"-disabled"),Kn)),style:bn,ref:this.paginationNode},un),Vt,Vr?ue.createElement("li",{title:ur?Gn.prev_page:null,onClick:this.prev,tabIndex:Po?null:0,onKeyPress:this.runIfEnterPrev,className:me()("".concat($t,"-prev"),(0,re.Z)({},"".concat($t,"-disabled"),Po)),"aria-disabled":Po},Vr):null,Cr,Yo?ue.createElement("li",{title:ur?Gn.next_page:null,onClick:this.next,tabIndex:fr?null:0,onKeyPress:this.runIfEnterNext,className:me()("".concat($t,"-next"),(0,re.Z)({},"".concat($t,"-disabled"),fr)),"aria-disabled":fr},Yo):null,ue.createElement(pt,{disabled:Kn,locale:Gn,rootPrefixCls:$t,selectComponentClass:pr,selectPrefixCls:Xr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Kr,pageSize:Vo,pageSizeOptions:to,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(ht,$t){var on={};if("current"in ht&&(on.current=ht.current,ht.current!==$t.current&&(on.currentInputValue=on.current)),"pageSize"in ht&&ht.pageSize!==$t.pageSize){var bn=$t.current,Kn=tt(ht.pageSize,$t,ht);bn=bn>Kn?Kn:bn,"current"in ht||(on.current=bn,on.currentInputValue=bn),on.pageSize=ht.pageSize}return on}}]),wn}(ue.Component);Ze.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:Te.Z,style:{},itemRender:Ie,totalBoundaryShowSizeChanger:50};var bt=Ze,wt=ee(62906),Kt=ee(53124),Qt=ee(98675),rt=ee(25378),st=ee(10110),Ct=ee(11713);const Gt=He=>ue.createElement(Ct.default,Object.assign({},He,{showSearch:!0,size:"small"})),Ht=He=>ue.createElement(Ct.default,Object.assign({},He,{showSearch:!0,size:"middle"}));Gt.Option=Ct.default.Option,Ht.Option=Ct.default.Option;var Bt=ee(47673),Ke=ee(14747),Jt=ee(67968),Mn=ee(45503);const Hn=He=>{const{componentCls:ut}=He;return{[`${ut}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed"}}},[`&${ut}-disabled`]:{cursor:"not-allowed",[`${ut}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:He.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:He.colorBorder,backgroundColor:He.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:He.itemActiveBgDisabled},a:{color:He.itemActiveColorDisabled}}},[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ut}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ut}-simple-pager`]:{color:He.colorTextDisabled},[`${ut}-jump-prev, ${ut}-jump-next`]:{[`${ut}-item-link-icon`]:{opacity:0},[`${ut}-item-ellipsis`]:{opacity:1}}},[`&${ut}-simple`]:{[`${ut}-prev, ${ut}-next`]:{[`&${ut}-disabled ${ut}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},pn=He=>{const{componentCls:ut}=He;return{[`&${ut}-mini ${ut}-total-text, &${ut}-mini ${ut}-simple-pager`]:{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini ${ut}-item`]:{minWidth:He.itemSizeSM,height:He.itemSizeSM,margin:0,lineHeight:`${He.itemSizeSM-2}px`},[`&${ut}-mini:not(${ut}-disabled) ${ut}-item:not(${ut}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive}},[`&${ut}-mini ${ut}-prev, &${ut}-mini ${ut}-next`]:{minWidth:He.itemSizeSM,height:He.itemSizeSM,margin:0,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini:not(${ut}-disabled)`]:{[`${ut}-prev, ${ut}-next`]:{[`&:hover ${ut}-item-link`]:{backgroundColor:He.colorBgTextHover},[`&:active ${ut}-item-link`]:{backgroundColor:He.colorBgTextActive},[`&${ut}-disabled:hover ${ut}-item-link`]:{backgroundColor:"transparent"}}},[` &${ut}-mini ${ut}-prev ${ut}-item-link, &${ut}-mini ${ut}-next ${ut}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`}},[`&${ut}-mini ${ut}-jump-prev, &${ut}-mini ${ut}-jump-next`]:{height:He.itemSizeSM,marginInlineEnd:0,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini ${ut}-options`]:{marginInlineStart:He.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:He.miniOptionsSizeChangerTop},"&-quick-jumper":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Bt.x0)(He)),{width:He.paginationMiniQuickJumperInputWidth,height:He.controlHeightSM})}}}},kt=He=>{const{componentCls:ut}=He;return{[` &${ut}-simple ${ut}-prev, &${ut}-simple ${ut}-next `]:{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`,verticalAlign:"top",[`${ut}-item-link`]:{height:He.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive},"&::after":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`}}},[`&${ut}-simple ${ut}-simple-pager`]:{display:"inline-block",height:He.itemSizeSM,marginInlineEnd:He.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:He.marginXS,padding:`0 ${He.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:He.itemInputBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadius,outline:"none",transition:`border-color ${He.motionDurationMid}`,color:"inherit","&:hover":{borderColor:He.colorPrimary},"&:focus":{borderColor:He.colorPrimaryHover,boxShadow:`${He.inputOutlineOffset}px 0 ${He.controlOutlineWidth}px ${He.controlOutline}`},"&[disabled]":{color:He.colorTextDisabled,backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,cursor:"not-allowed"}}}}},Qe=He=>{const{componentCls:ut}=He;return{[`${ut}-jump-prev, ${ut}-jump-next`]:{outline:0,[`${ut}-item-container`]:{position:"relative",[`${ut}-item-link-icon`]:{color:He.colorPrimary,fontSize:He.fontSizeSM,opacity:0,transition:`all ${He.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ut}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:He.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:He.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:He.paginationEllipsisTextIndent,opacity:1,transition:`all ${He.motionDurationMid}`}},"&:hover":{[`${ut}-item-link-icon`]:{opacity:1},[`${ut}-item-ellipsis`]:{opacity:0}}},[` ${ut}-prev, ${ut}-jump-prev, ${ut}-jump-next `]:{marginInlineEnd:He.marginXS},[` ${ut}-prev, ${ut}-next, ${ut}-jump-prev, ${ut}-jump-next `]:{display:"inline-block",minWidth:He.itemSize,height:He.itemSize,color:He.colorText,fontFamily:He.fontFamily,lineHeight:`${He.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:He.borderRadius,cursor:"pointer",transition:`all ${He.motionDurationMid}`},[`${ut}-prev, ${ut}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:He.colorText,cursor:"pointer",userSelect:"none"},[`${ut}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:He.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${He.lineWidth}px ${He.lineType} transparent`,borderRadius:He.borderRadius,outline:"none",transition:`all ${He.motionDurationMid}`},[`&:hover ${ut}-item-link`]:{backgroundColor:He.colorBgTextHover},[`&:active ${ut}-item-link`]:{backgroundColor:He.colorBgTextActive},[`&${ut}-disabled:hover`]:{[`${ut}-item-link`]:{backgroundColor:"transparent"}}},[`${ut}-slash`]:{marginInlineEnd:He.paginationSlashMarginInlineEnd,marginInlineStart:He.paginationSlashMarginInlineStart},[`${ut}-options`]:{display:"inline-block",marginInlineStart:He.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:He.controlHeight,marginInlineStart:He.marginXS,lineHeight:`${He.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Bt.ik)(He)),{width:He.controlHeightLG*1.25,height:He.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:He.marginXS,marginInlineEnd:He.marginXS})}}}},Ye=He=>{const{componentCls:ut}=He;return{[`${ut}-item`]:{display:"inline-block",minWidth:He.itemSize,height:He.itemSize,marginInlineEnd:He.marginXS,fontFamily:He.fontFamily,lineHeight:`${He.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${He.lineWidth}px ${He.lineType} transparent`,borderRadius:He.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${He.paginationItemPaddingInline}px`,color:He.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ut}-item-active)`]:{"&:hover":{transition:`all ${He.motionDurationMid}`,backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive}},"&-active":{fontWeight:He.fontWeightStrong,backgroundColor:He.itemActiveBg,borderColor:He.colorPrimary,a:{color:He.colorPrimary},"&:hover":{borderColor:He.colorPrimaryHover},"&:hover a":{color:He.colorPrimaryHover}}}}},Je=He=>{const{componentCls:ut}=He;return{[ut]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(He)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ut}-total-text`]:{display:"inline-block",height:He.itemSize,marginInlineEnd:He.marginXS,lineHeight:`${He.itemSize-2}px`,verticalAlign:"middle"}}),Ye(He)),Qe(He)),kt(He)),pn(He)),Hn(He)),{[`@media only screen and (max-width: ${He.screenLG}px)`]:{[`${ut}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${He.screenSM}px)`]:{[`${ut}-options`]:{display:"none"}}}),[`&${He.componentCls}-rtl`]:{direction:"rtl"}}},ft=He=>{const{componentCls:ut}=He;return{[`${ut}${ut}-disabled:not(${ut}-mini)`]:{"&, &:hover":{[`${ut}-item-link`]:{borderColor:He.colorBorder}},"&:focus-visible":{[`${ut}-item-link`]:{borderColor:He.colorBorder}},[`${ut}-item, ${ut}-item-link`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,[`&:hover:not(${ut}-item-active)`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,a:{color:He.colorTextDisabled}},[`&${ut}-item-active`]:{backgroundColor:He.itemActiveBgDisabled}},[`${ut}-prev, ${ut}-next`]:{"&:hover button":{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,color:He.colorTextDisabled},[`${ut}-item-link`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder}}},[`${ut}:not(${ut}-mini)`]:{[`${ut}-prev, ${ut}-next`]:{"&:hover button":{borderColor:He.colorPrimaryHover,backgroundColor:He.itemBg},[`${ut}-item-link`]:{backgroundColor:He.itemLinkBg,borderColor:He.colorBorder},[`&:hover ${ut}-item-link`]:{borderColor:He.colorPrimary,backgroundColor:He.itemBg,color:He.colorPrimary},[`&${ut}-disabled`]:{[`${ut}-item-link`]:{borderColor:He.colorBorder,color:He.colorTextDisabled}}},[`${ut}-item`]:{backgroundColor:He.itemBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,[`&:hover:not(${ut}-item-active)`]:{borderColor:He.colorPrimary,backgroundColor:He.itemBg,a:{color:He.colorPrimary}},"&-active":{borderColor:He.colorPrimary}}}}},At=He=>{const{componentCls:ut}=He;return{[`${ut}:not(${ut}-disabled)`]:{[`${ut}-item`]:Object.assign({},(0,Ke.Qy)(He)),[`${ut}-jump-prev, ${ut}-jump-next`]:{"&:focus-visible":Object.assign({[`${ut}-item-link-icon`]:{opacity:1},[`${ut}-item-ellipsis`]:{opacity:0}},(0,Ke.oN)(He))},[`${ut}-prev, ${ut}-next`]:{[`&:focus-visible ${ut}-item-link`]:Object.assign({},(0,Ke.oN)(He))}}}};var et=(0,Jt.Z)("Pagination",He=>{const ut=(0,Mn.TS)(He,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:He.marginXXS/2,paginationMiniQuickJumperInputWidth:He.controlHeightLG*1.1,paginationItemPaddingInline:He.marginXXS*1.5,paginationEllipsisLetterSpacing:He.marginXXS/2,paginationSlashMarginInlineStart:He.marginXXS,paginationSlashMarginInlineEnd:He.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Bt.e5)(He),(0,Bt.TM)(He));return[Je(ut),At(ut),He.wireframe&&ft(ut)]},He=>({itemBg:He.colorBgContainer,itemSize:He.controlHeight,itemSizeSM:He.controlHeightSM,itemActiveBg:He.colorBgContainer,itemLinkBg:He.colorBgContainer,itemActiveColorDisabled:He.colorTextDisabled,itemActiveBgDisabled:He.controlItemBgActiveDisabled,itemInputBg:He.colorBgContainer,miniOptionsSizeChangerTop:0})),vt=function(He,ut){var wn={};for(var sn in He)Object.prototype.hasOwnProperty.call(He,sn)&&ut.indexOf(sn)<0&&(wn[sn]=He[sn]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,sn=Object.getOwnPropertySymbols(He);ht{const{prefixCls:ut,selectPrefixCls:wn,className:sn,rootClassName:ht,style:$t,size:on,locale:bn,selectComponentClass:Kn,responsive:Dt,showSizeChanger:Rn}=He,Gn=vt(He,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:jr}=(0,rt.Z)(Dt),{getPrefixCls:mr,direction:ur,pagination:Tn={}}=ue.useContext(Kt.E_),Or=mr("pagination",ut),[zr,lo]=et(Or),di=Rn!=null?Rn:Tn.showSizeChanger,Ko=ue.useMemo(()=>{const io=ue.createElement("span",{className:`${Or}-item-ellipsis`},"\u2022\u2022\u2022"),Cr=ue.createElement("button",{className:`${Or}-item-link`,type:"button",tabIndex:-1},ur==="rtl"?ue.createElement(fe.Z,null):ue.createElement(le.Z,null)),Ei=ue.createElement("button",{className:`${Or}-item-link`,type:"button",tabIndex:-1},ur==="rtl"?ue.createElement(le.Z,null):ue.createElement(fe.Z,null)),cn=ue.createElement("a",{className:`${Or}-item-link`},ue.createElement("div",{className:`${Or}-item-container`},ur==="rtl"?ue.createElement(he.Z,{className:`${Or}-item-link-icon`}):ue.createElement(ae,{className:`${Or}-item-link-icon`}),io)),ge=ue.createElement("a",{className:`${Or}-item-link`},ue.createElement("div",{className:`${Or}-item-container`},ur==="rtl"?ue.createElement(ae,{className:`${Or}-item-link-icon`}):ue.createElement(he.Z,{className:`${Or}-item-link-icon`}),io));return{prevIcon:Cr,nextIcon:Ei,jumpPrevIcon:cn,jumpNextIcon:ge}},[ur,Or]),[pr]=(0,st.Z)("Pagination",wt.Z),Xr=Object.assign(Object.assign({},pr),bn),to=(0,Qt.Z)(on),mo=to==="small"||!!(jr&&!to&&Dt),Kr=mr("select",wn),Vo=me()({[`${Or}-mini`]:mo,[`${Or}-rtl`]:ur==="rtl"},Tn==null?void 0:Tn.className,sn,ht,lo),Do=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),$t);return zr(ue.createElement(bt,Object.assign({},Ko,Gn,{style:Do,prefixCls:Or,selectPrefixCls:Kr,className:Vo,selectComponentClass:Kn||(mo?Gt:Ht),locale:Xr,showSizeChanger:di})))},Zt=Xe},46303:function(ot,Ge,ee){"use strict";ee.d(Ge,{Z:function(){return kt}});var te=ee(94184),ue=ee.n(te),be=ee(67294),ve=ee(53124),de=ee(10366),ae=Qe=>{const{prefixCls:Ye,className:Je,style:ft,size:At,shape:et}=Qe,vt=ue()({[`${Ye}-lg`]:At==="large",[`${Ye}-sm`]:At==="small"}),Pt=ue()({[`${Ye}-circle`]:et==="circle",[`${Ye}-square`]:et==="square",[`${Ye}-round`]:et==="round"}),Xe=be.useMemo(()=>typeof At=="number"?{width:At,height:At,lineHeight:`${At}px`}:{},[At]);return be.createElement("span",{className:ue()(Ye,vt,Pt,Je),style:Object.assign(Object.assign({},Xe),ft)})},he=ee(45930),le=ee(67968),fe=ee(45503);const se=new he.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:Ye,gradientFromColor:Je,controlHeight:ft,controlHeightLG:At,controlHeightSM:et}=Qe;return{[`${Ye}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Je},re(ft)),[`${Ye}${Ye}-circle`]:{borderRadius:"50%"},[`${Ye}${Ye}-lg`]:Object.assign({},re(At)),[`${Ye}${Ye}-sm`]:Object.assign({},re(et))}},E=Qe=>{const{controlHeight:Ye,borderRadiusSM:Je,skeletonInputCls:ft,controlHeightLG:At,controlHeightSM:et,gradientFromColor:vt}=Qe;return{[`${ft}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:Je},a(Ye)),[`${ft}-lg`]:Object.assign({},a(At)),[`${ft}-sm`]:Object.assign({},a(et))}},b=Qe=>Object.assign({width:Qe},me(Qe)),x=Qe=>{const{skeletonImageCls:Ye,imageSizeBase:Je,gradientFromColor:ft,borderRadiusSM:At}=Qe;return{[`${Ye}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ft,borderRadius:At},b(Je*2)),{[`${Ye}-path`]:{fill:"#bfbfbf"},[`${Ye}-svg`]:Object.assign(Object.assign({},b(Je)),{maxWidth:Je*4,maxHeight:Je*4}),[`${Ye}-svg${Ye}-svg-circle`]:{borderRadius:"50%"}}),[`${Ye}${Ye}-circle`]:{borderRadius:"50%"}}},z=(Qe,Ye,Je)=>{const{skeletonButtonCls:ft}=Qe;return{[`${Je}${ft}-circle`]:{width:Ye,minWidth:Ye,borderRadius:"50%"},[`${Je}${ft}-round`]:{borderRadius:Ye}}},oe=Qe=>Object.assign({width:Qe*2,minWidth:Qe*2},me(Qe)),ie=Qe=>{const{borderRadiusSM:Ye,skeletonButtonCls:Je,controlHeight:ft,controlHeightLG:At,controlHeightSM:et,gradientFromColor:vt}=Qe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:Ye,width:ft*2,minWidth:ft*2},oe(ft))},z(Qe,ft,Je)),{[`${Je}-lg`]:Object.assign({},oe(At))}),z(Qe,At,`${Je}-lg`)),{[`${Je}-sm`]:Object.assign({},oe(et))}),z(Qe,et,`${Je}-sm`))},ce=Qe=>{const{componentCls:Ye,skeletonAvatarCls:Je,skeletonTitleCls:ft,skeletonParagraphCls:At,skeletonButtonCls:et,skeletonInputCls:vt,skeletonImageCls:Pt,controlHeight:Xe,controlHeightLG:Zt,controlHeightSM:He,gradientFromColor:ut,padding:wn,marginSM:sn,borderRadius:ht,titleHeight:$t,blockRadius:on,paragraphLiHeight:bn,controlHeightXS:Kn,paragraphMarginTop:Dt}=Qe;return{[`${Ye}`]:{display:"table",width:"100%",[`${Ye}-header`]:{display:"table-cell",paddingInlineEnd:wn,verticalAlign:"top",[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ut},re(Xe)),[`${Je}-circle`]:{borderRadius:"50%"},[`${Je}-lg`]:Object.assign({},re(Zt)),[`${Je}-sm`]:Object.assign({},re(He))},[`${Ye}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ft}`]:{width:"100%",height:$t,background:ut,borderRadius:on,[`+ ${At}`]:{marginBlockStart:He}},[`${At}`]:{padding:0,"> li":{width:"100%",height:bn,listStyle:"none",background:ut,borderRadius:on,"+ li":{marginBlockStart:Kn}}},[`${At}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ye}-content`]:{[`${ft}, ${At} > li`]:{borderRadius:ht}}},[`${Ye}-with-avatar ${Ye}-content`]:{[`${ft}`]:{marginBlockStart:sn,[`+ ${At}`]:{marginBlockStart:Dt}}},[`${Ye}${Ye}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ie(Qe)),y(Qe)),E(Qe)),x(Qe)),[`${Ye}${Ye}-block`]:{width:"100%",[`${et}`]:{width:"100%"},[`${vt}`]:{width:"100%"}},[`${Ye}${Ye}-active`]:{[` ${ft}, ${At} > li, ${Je}, ${et}, ${vt}, ${Pt} `]:Object.assign({},ne(Qe))}}};var ye=(0,le.Z)("Skeleton",Qe=>{const{componentCls:Ye}=Qe,Je=(0,fe.TS)(Qe,{skeletonAvatarCls:`${Ye}-avatar`,skeletonTitleCls:`${Ye}-title`,skeletonParagraphCls:`${Ye}-paragraph`,skeletonButtonCls:`${Ye}-button`,skeletonInputCls:`${Ye}-input`,skeletonImageCls:`${Ye}-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[ce(Je)]},Qe=>{const{colorFillContent:Ye,colorFill:Je}=Qe,ft=Ye,At=Je;return{color:ft,colorGradientEnd:At,gradientFromColor:ft,gradientToColor:At,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:Ye,className:Je,rootClassName:ft,active:At,shape:et="circle",size:vt="default"}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=(0,de.Z)(Qe,["prefixCls","className"]),wn=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:At},Je,ft,He);return Zt(be.createElement("div",{className:wn},be.createElement(ae,Object.assign({prefixCls:`${Xe}-avatar`,shape:et,size:vt},ut))))},Te=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,active:At,block:et=!1,size:vt="default"}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=(0,de.Z)(Qe,["prefixCls"]),wn=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:At,[`${Xe}-block`]:et},Je,ft,He);return Zt(be.createElement("div",{className:wn},be.createElement(ae,Object.assign({prefixCls:`${Xe}-button`,size:vt},ut))))};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 Ve=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,style:At,active:et}=Qe,{getPrefixCls:vt}=be.useContext(ve.E_),Pt=vt("skeleton",Ye),[Xe,Zt]=ye(Pt),He=ue()(Pt,`${Pt}-element`,{[`${Pt}-active`]:et},Je,ft,Zt);return Xe(be.createElement("div",{className:He},be.createElement("div",{className:ue()(`${Pt}-image`,Je),style:At},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Pt}-image-svg`},be.createElement("path",{d:Me,className:`${Pt}-image-path`})))))},Ae=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,active:At,block:et,size:vt="default"}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=(0,de.Z)(Qe,["prefixCls"]),wn=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:At,[`${Xe}-block`]:et},Je,ft,He);return Zt(be.createElement("div",{className:wn},be.createElement(ae,Object.assign({prefixCls:`${Xe}-input`,size:vt},ut))))},De=ee(87462),Ie={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=Ie,Ze=ee(74643),bt=function(Ye,Je){return be.createElement(Ze.Z,(0,De.Z)({},Ye,{ref:Je,icon:tt}))},wt=be.forwardRef(bt),Qt=Qe=>{const{prefixCls:Ye,className:Je,rootClassName:ft,style:At,active:et,children:vt}=Qe,{getPrefixCls:Pt}=be.useContext(ve.E_),Xe=Pt("skeleton",Ye),[Zt,He]=ye(Xe),ut=ue()(Xe,`${Xe}-element`,{[`${Xe}-active`]:et},He,Je,ft),wn=vt!=null?vt:be.createElement(wt,null);return Zt(be.createElement("div",{className:ut},be.createElement("div",{className:ue()(`${Xe}-image`,Je),style:At},wn)))},rt=ee(74902),Ct=Qe=>{const Ye=Pt=>{const{width:Xe,rows:Zt=2}=Qe;if(Array.isArray(Xe))return Xe[Pt];if(Zt-1===Pt)return Xe},{prefixCls:Je,className:ft,style:At,rows:et}=Qe,vt=(0,rt.Z)(Array(et)).map((Pt,Xe)=>be.createElement("li",{key:Xe,style:{width:Ye(Xe)}}));return be.createElement("ul",{className:ue()(Je,ft),style:At},vt)},Ht=Qe=>{let{prefixCls:Ye,className:Je,width:ft,style:At}=Qe;return be.createElement("h3",{className:ue()(Ye,Je),style:Object.assign({width:ft},At)})};function Bt(Qe){return Qe&&typeof Qe=="object"?Qe:{}}function Ke(Qe,Ye){return Qe&&!Ye?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Jt(Qe,Ye){return!Qe&&Ye?{width:"38%"}:Qe&&Ye?{width:"50%"}:{}}function Mn(Qe,Ye){const Je={};return(!Qe||!Ye)&&(Je.width="61%"),!Qe&&Ye?Je.rows=3:Je.rows=2,Je}const Hn=Qe=>{const{prefixCls:Ye,loading:Je,className:ft,rootClassName:At,style:et,children:vt,avatar:Pt=!1,title:Xe=!0,paragraph:Zt=!0,active:He,round:ut}=Qe,{getPrefixCls:wn,direction:sn,skeleton:ht}=be.useContext(ve.E_),$t=wn("skeleton",Ye),[on,bn]=ye($t);if(Je||!("loading"in Qe)){const Kn=!!Pt,Dt=!!Xe,Rn=!!Zt;let Gn;if(Kn){const ur=Object.assign(Object.assign({prefixCls:`${$t}-avatar`},Ke(Dt,Rn)),Bt(Pt));Gn=be.createElement("div",{className:`${$t}-header`},be.createElement(ae,Object.assign({},ur)))}let jr;if(Dt||Rn){let ur;if(Dt){const Or=Object.assign(Object.assign({prefixCls:`${$t}-title`},Jt(Kn,Rn)),Bt(Xe));ur=be.createElement(Ht,Object.assign({},Or))}let Tn;if(Rn){const Or=Object.assign(Object.assign({prefixCls:`${$t}-paragraph`},Mn(Kn,Dt)),Bt(Zt));Tn=be.createElement(Ct,Object.assign({},Or))}jr=be.createElement("div",{className:`${$t}-content`},ur,Tn)}const mr=ue()($t,{[`${$t}-with-avatar`]:Kn,[`${$t}-active`]:He,[`${$t}-rtl`]:sn==="rtl",[`${$t}-round`]:ut},ht==null?void 0:ht.className,ft,At,bn);return on(be.createElement("div",{className:mr,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),et)},Gn,jr))}return typeof vt!="undefined"?vt:null};Hn.Button=Te,Hn.Avatar=xe,Hn.Input=Ae,Hn.Image=Ve,Hn.Node=Qt;var pn=Hn,kt=pn},55054:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return ye}});var te=ee(67294),ue=ee(57838),be=ee(96159),ve=ee(94184),de=ee.n(ve),pe=ee(53124),ae=ee(46303),le=_e=>{const{value:xe,formatter:Ce,precision:Te,decimalSeparator:Me,groupSeparator:pt="",prefixCls:Ve}=_e;let gt;if(typeof Ce=="function")gt=Ce(xe);else{const Ae=String(xe),De=Ae.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ae==="-")gt=Ae;else{const Ie=De[1];let tt=De[2]||"0",Ze=De[4]||"";tt=tt.replace(/\B(?=(\d{3})+(?!\d))/g,pt),typeof Te=="number"&&(Ze=Ze.padEnd(Te,"0").slice(0,Te>0?Te:0)),Ze&&(Ze=`${Me}${Ze}`),gt=[te.createElement("span",{key:"int",className:`${Ve}-content-value-int`},Ie,tt),Ze&&te.createElement("span",{key:"decimal",className:`${Ve}-content-value-decimal`},Ze)]}}return te.createElement("span",{className:`${Ve}-content-value`},gt)},fe=ee(14747),se=ee(67968),me=ee(45503);const re=_e=>{const{componentCls:xe,marginXXS:Ce,padding:Te,colorTextDescription:Me,titleFontSize:pt,colorTextHeading:Ve,contentFontSize:gt,fontFamily:Ae}=_e;return{[`${xe}`]:Object.assign(Object.assign({},(0,fe.Wf)(_e)),{[`${xe}-title`]:{marginBottom:Ce,color:Me,fontSize:pt},[`${xe}-skeleton`]:{paddingTop:Te},[`${xe}-content`]:{color:Ve,fontSize:gt,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:Te,style:Me,valueStyle:pt,value:Ve=0,title:gt,valueRender:Ae,prefix:De,suffix:Ie,loading:tt=!1,onMouseEnter:Ze,onMouseLeave:bt,decimalSeparator:wt=".",groupSeparator:Kt=","}=_e,{getPrefixCls:Qt,direction:rt,statistic:st}=te.useContext(pe.E_),Ct=Qt("statistic",xe),[Gt,Ht]=ne(Ct),Bt=te.createElement(le,Object.assign({decimalSeparator:wt,groupSeparator:Kt,prefixCls:Ct},_e,{value:Ve})),Ke=de()(Ct,{[`${Ct}-rtl`]:rt==="rtl"},st==null?void 0:st.className,Ce,Te,Ht);return Gt(te.createElement("div",{className:Ke,style:Object.assign(Object.assign({},st==null?void 0:st.style),Me),onMouseEnter:Ze,onMouseLeave:bt},gt&&te.createElement("div",{className:`${Ct}-title`},gt),te.createElement(ae.Z,{paragraph:!1,loading:tt,className:`${Ct}-skeleton`},te.createElement("div",{style:pt,className:`${Ct}-content`},De&&te.createElement("span",{className:`${Ct}-content-prefix`},De),Ae?Ae(Bt):Bt,Ie&&te.createElement("span",{className:`${Ct}-content-suffix`},Ie)))))};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 Te=/\[[^\]]*]/g,Me=(xe.match(Te)||[]).map(Ae=>Ae.slice(1,-1)),pt=xe.replace(Te,"[]"),Ve=E.reduce((Ae,De)=>{let[Ie,tt]=De;if(Ae.includes(Ie)){const Ze=Math.floor(Ce/tt);return Ce-=Ze*tt,Ae.replace(new RegExp(`${Ie}+`,"g"),bt=>{const wt=bt.length;return Ze.toString().padStart(wt,"0")})}return Ae},pt);let gt=0;return Ve.replace(Te,()=>{const Ae=Me[gt];return gt+=1,Ae})}function x(_e,xe){const{format:Ce=""}=xe,Te=new Date(_e).getTime(),Me=Date.now(),pt=Math.max(Te-Me,0);return b(pt,Ce)}const z=1e3/30;function oe(_e){return new Date(_e).getTime()}const ie=_e=>{const{value:xe,format:Ce="HH:mm:ss",onChange:Te,onFinish:Me}=_e,pt=(0,ue.Z)(),Ve=te.useRef(null),gt=()=>{Me==null||Me(),Ve.current&&(clearInterval(Ve.current),Ve.current=null)},Ae=()=>{const tt=oe(xe);tt>=Date.now()&&(Ve.current=setInterval(()=>{pt(),Te==null||Te(tt-Date.now()),tt(Ae(),()=>{Ve.current&&(clearInterval(Ve.current),Ve.current=null)}),[xe]);const De=(tt,Ze)=>x(tt,Object.assign(Object.assign({},Ze),{format:Ce})),Ie=tt=>(0,be.Tm)(tt,{title:void 0});return te.createElement(y,Object.assign({},_e,{valueRender:Ie,formatter:De}))};var ce=te.memo(ie);y.Countdown=ce;var ye=y},49867:function(ot,Ge,ee){"use strict";ee.d(Ge,{N:function(){return te}});const te=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},9430:function(ot,Ge,ee){"use strict";ee.d(Ge,{default:function(){return Ji}});var te={},ue="rc-table-internal-hook",be=ee(97685),ve=ee(66680),de=ee(8410),pe=ee(91881),ae=ee(67294),he=ee(73935);function le(Ee){var we=ae.createContext(void 0),Oe=function(ke){var $e=ke.value,at=ke.children,mt=ae.useRef($e);mt.current=$e;var lt=ae.useState(function(){return{getValue:function(){return mt.current},listeners:new Set}}),Et=(0,be.Z)(lt,1),Tt=Et[0];return(0,de.Z)(function(){(0,he.unstable_batchedUpdates)(function(){Tt.listeners.forEach(function(xt){xt($e)})})},[$e]),ae.createElement(we.Provider,{value:Tt},at)};return{Context:we,Provider:Oe,defaultValue:Ee}}function fe(Ee,we){var Oe=(0,ve.Z)(typeof we=="function"?we:function(xt){if(we===void 0)return xt;if(!Array.isArray(we))return xt[we];var en={};return we.forEach(function(Yt){en[Yt]=xt[Yt]}),en}),Be=ae.useContext(Ee==null?void 0:Ee.Context),ke=Be||{},$e=ke.listeners,at=ke.getValue,mt=ae.useRef();mt.current=Oe(Be?at():Ee==null?void 0:Ee.defaultValue);var lt=ae.useState({}),Et=(0,be.Z)(lt,2),Tt=Et[1];return(0,de.Z)(function(){if(!Be)return;function xt(en){var Yt=Oe(en);(0,pe.Z)(mt.current,Yt,!0)||Tt({})}return $e.add(xt),function(){$e.delete(xt)}},[Be]),mt.current}var se=ee(87462),me=ee(42550);function re(){var Ee=ae.createContext(null);function we(){return ae.useContext(Ee)}function Oe(ke,$e){var at=(0,me.Yr)(ke),mt=function(Et,Tt){var xt=at?{ref:Tt}:{},en=ae.useRef(0),Yt=ae.useRef(Et),an=we();return an!==null?ae.createElement(ke,(0,se.Z)({},Et,xt)):((!$e||$e(Yt.current,Et))&&(en.current+=1),Yt.current=Et,ae.createElement(Ee.Provider,{value:en.current},ae.createElement(ke,(0,se.Z)({},Et,xt))))};return at?ae.forwardRef(mt):mt}function Be(ke,$e){var at=(0,me.Yr)(ke),mt=function(Et,Tt){var xt=at?{ref:Tt}:{};return we(),ae.createElement(ke,(0,se.Z)({},Et,xt))};return at?ae.memo(ae.forwardRef(mt),$e):ae.memo(mt,$e)}return{makeImmutable:Oe,responseImmutable:Be,useImmutableMark:we}}var ne=re(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,z=b.responseImmutable,oe=b.useImmutableMark,ie=le(),ce=ie;function ye(Ee,we){var Oe=ae.useRef(0);Oe.current+=1;var Be=ae.useRef(Ee),ke=[];Object.keys(Ee||{}).map(function(at){var mt;(Ee==null?void 0:Ee[at])!==((mt=Be.current)===null||mt===void 0?void 0:mt[at])&&ke.push(at)}),Be.current=Ee;var $e=ae.useRef([]);return ke.length&&($e.current=ke),ae.useDebugValue(Oe.current),ae.useDebugValue($e.current.join(", ")),we&&console.log("".concat(we,":"),Oe.current,$e.current),Oe.current}var _e=null,xe=ae.memo(function(){var Ee=ye();return ae.createElement("h1",null,"Render Times: ",Ee)});xe.displayName="RenderBlock";var Ce=ee(71002),Te=ee(1413),Me=ee(4942),pt=ee(94184),Ve=ee.n(pt);function gt(Ee,we,Oe){var Be=ae.useRef({});return(!("value"in Be.current)||Oe(Be.current.condition,we))&&(Be.current.value=Ee(),Be.current.condition=we),Be.current.value}var Ae={},De=[],Ie=function(we){De.push(we)};function tt(Ee,we){if(0)var Oe}function Ze(Ee,we){if(0)var Oe}function bt(){Ae={}}function wt(Ee,we,Oe){!we&&!Ae[Oe]&&(Ee(!1,Oe),Ae[Oe]=!0)}function Kt(Ee,we){wt(tt,Ee,we)}function Qt(Ee,we){wt(Ze,Ee,we)}Kt.preMessage=Ie,Kt.resetWarned=bt,Kt.noteOnce=Qt;var rt=Kt;function st(Ee,we){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Be=new Set;function ke($e,at){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,lt=Be.has($e);if(rt(!lt,"Warning: There may be circular references"),lt)return!1;if($e===at)return!0;if(Oe&&mt>1)return!1;Be.add($e);var Et=mt+1;if(Array.isArray($e)){if(!Array.isArray(at)||$e.length!==at.length)return!1;for(var Tt=0;Tt<$e.length;Tt++)if(!ke($e[Tt],at[Tt],Et))return!1;return!0}if($e&&at&&(0,Ce.Z)($e)==="object"&&(0,Ce.Z)(at)==="object"){var xt=Object.keys($e);return xt.length!==Object.keys(at).length?!1:xt.every(function(en){return ke($e[en],at[en],Et)})}return!1}return ke(Ee,we)}var Ct=st;function Gt(Ee,we){for(var Oe=Ee,Be=0;Be=Oe}function Ye(Ee,we){return fe(ce,function(Oe){var Be=Qe(Ee,we||1,Oe.hoverStartRow,Oe.hoverEndRow);return[Be,Oe.onHover]})}var Je=function(we){var Oe=we.ellipsis,Be=we.rowType,ke=we.children,$e,at=Oe===!0?{showTitle:!0}:Oe;return at&&(at.showTitle||Be==="header")&&(typeof ke=="string"||typeof ke=="number"?$e=ke.toString():ae.isValidElement(ke)&&typeof ke.props.children=="string"&&($e=ke.props.children)),$e};function ft(Ee){var we,Oe,Be,ke,$e,at,mt,lt,Et=Ee.component,Tt=Ee.children,xt=Ee.ellipsis,en=Ee.scope,Yt=Ee.prefixCls,an=Ee.className,On=Ee.align,xn=Ee.record,zn=Ee.render,Dn=Ee.dataIndex,Zn=Ee.renderIndex,Er=Ee.shouldCellUpdate,Nr=Ee.index,hr=Ee.rowType,Wr=Ee.colSpan,ro=Ee.rowSpan,ar=Ee.fixLeft,vr=Ee.fixRight,sr=Ee.firstFixLeft,Wn=Ee.lastFixLeft,dr=Ee.firstFixRight,$r=Ee.lastFixRight,_o=Ee.appendNode,no=Ee.additionalProps,Tr=no===void 0?{}:no,Lo=Ee.isSticky,Mo="".concat(Yt,"-cell"),pi=fe(ce,["supportSticky","allColumnsFixedLeft"]),Wo=pi.supportSticky,$i=pi.allColumnsFixedLeft,Zi=kt(xn,Dn,Zn,Tt,zn,Er),oo=(0,be.Z)(Zi,2),qi=oo[0],Jo=oo[1],Ti={},Oi=typeof ar=="number"&&Wo,La=typeof vr=="number"&&Wo;Oi&&(Ti.position="sticky",Ti.left=ar),La&&(Ti.position="sticky",Ti.right=vr);var Ur=(we=(Oe=(Be=Jo==null?void 0:Jo.colSpan)!==null&&Be!==void 0?Be:Tr.colSpan)!==null&&Oe!==void 0?Oe:Wr)!==null&&we!==void 0?we:1,Br=(ke=($e=(at=Jo==null?void 0:Jo.rowSpan)!==null&&at!==void 0?at:Tr.rowSpan)!==null&&$e!==void 0?$e:ro)!==null&&ke!==void 0?ke:1,Ir=Ye(Nr,Br),xr=(0,be.Z)(Ir,2),qo=xr[0],Mr=xr[1],eo=function(ta){var xa;xn&&Mr(Nr,Nr+Br-1),Tr==null||(xa=Tr.onMouseEnter)===null||xa===void 0||xa.call(Tr,ta)},Ho=function(ta){var xa;xn&&Mr(-1,-1),Tr==null||(xa=Tr.onMouseLeave)===null||xa===void 0||xa.call(Tr,ta)};if(Ur===0||Br===0)return null;var jo=(mt=Tr.title)!==null&&mt!==void 0?mt:Je({rowType:hr,ellipsis:xt,children:qi}),ha=Ve()(Mo,an,(lt={},(0,Me.Z)(lt,"".concat(Mo,"-fix-left"),Oi&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-left-first"),sr&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-left-last"),Wn&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-left-all"),Wn&&$i&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-right"),La&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-right-first"),dr&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-fix-right-last"),$r&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-ellipsis"),xt),(0,Me.Z)(lt,"".concat(Mo,"-with-append"),_o),(0,Me.Z)(lt,"".concat(Mo,"-fix-sticky"),(Oi||La)&&Lo&&Wo),(0,Me.Z)(lt,"".concat(Mo,"-row-hover"),!Jo&&qo),lt),Tr.className,Jo==null?void 0:Jo.className),la={};On&&(la.textAlign=On);var Za=(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ti),Tr.style),la),Jo==null?void 0:Jo.style),ea=qi;return(0,Ce.Z)(ea)==="object"&&!Array.isArray(ea)&&!ae.isValidElement(ea)&&(ea=null),xt&&(Wn||dr)&&(ea=ae.createElement("span",{className:"".concat(Mo,"-content")},ea)),ae.createElement(Et,(0,se.Z)({},Jo,Tr,{className:ha,style:Za,title:jo,scope:en,onMouseEnter:eo,onMouseLeave:Ho,colSpan:Ur!==1?Ur:null,rowSpan:Br!==1?Br:null}),_o,ea)}var At=ae.memo(ft);function et(Ee,we,Oe,Be,ke,$e){var at=Oe[Ee]||{},mt=Oe[we]||{},lt,Et;at.fixed==="left"?lt=Be.left[ke==="rtl"?we:Ee]:mt.fixed==="right"&&(Et=Be.right[ke==="rtl"?Ee:we]);var Tt=!1,xt=!1,en=!1,Yt=!1,an=Oe[we+1],On=Oe[Ee-1],xn=!($e!=null&&$e.children);if(ke==="rtl"){if(lt!==void 0){var zn=On&&On.fixed==="left";Yt=!zn&&xn}else if(Et!==void 0){var Dn=an&&an.fixed==="right";en=!Dn&&xn}}else if(lt!==void 0){var Zn=an&&an.fixed==="left";Tt=!Zn&&xn}else if(Et!==void 0){var Er=On&&On.fixed==="right";xt=!Er&&xn}return{fixLeft:lt,fixRight:Et,lastFixLeft:Tt,firstFixRight:xt,lastFixRight:en,firstFixLeft:Yt,isSticky:Be.isSticky}}var vt=ae.createContext({}),Pt=vt;function Xe(Ee){var we=Ee.className,Oe=Ee.index,Be=Ee.children,ke=Ee.colSpan,$e=ke===void 0?1:ke,at=Ee.rowSpan,mt=Ee.align,lt=fe(ce,["prefixCls","direction"]),Et=lt.prefixCls,Tt=lt.direction,xt=ae.useContext(Pt),en=xt.scrollColumnIndex,Yt=xt.stickyOffsets,an=xt.flattenColumns,On=xt.columns,xn=Oe+$e-1,zn=xn+1===en?$e+1:$e,Dn=et(Oe,Oe+zn-1,an,Yt,Tt,On==null?void 0:On[Oe]);return ae.createElement(At,(0,se.Z)({className:we,index:Oe,component:"td",prefixCls:Et,record:null,dataIndex:null,align:mt,colSpan:zn,rowSpan:at,render:function(){return Be}},Dn))}var Zt=ee(45987),He=["children"];function ut(Ee){var we=Ee.children,Oe=(0,Zt.Z)(Ee,He);return ae.createElement("tr",Oe,we)}function wn(Ee){var we=Ee.children;return we}wn.Row=ut,wn.Cell=Xe;var sn=wn;function ht(Ee){var we=Ee.children,Oe=Ee.stickyOffsets,Be=Ee.flattenColumns,ke=Ee.columns,$e=fe(ce,"prefixCls"),at=Be.length-1,mt=Be[at],lt=ae.useMemo(function(){return{stickyOffsets:Oe,flattenColumns:Be,scrollColumnIndex:mt!=null&&mt.scrollbar?at:null,columns:ke}},[mt,Be,at,Oe,ke]);return ae.createElement(Pt.Provider,{value:lt},ae.createElement("tfoot",{className:"".concat($e,"-summary")},we))}var $t=z(ht),on=sn;function bn(Ee){var we=ae.useRef();we.current=Ee;var Oe=ae.useCallback(function(){for(var Be,ke=arguments.length,$e=new Array(ke),at=0;at3&&arguments[3]!==void 0?arguments[3]:!1;return we.length&&Be&&Oe===void 0&&!get(Ee,we.slice(0,-1))?Ee:Xr(Ee,we,Oe,Be)}function mo(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function Kr(Ee){return Array.isArray(Ee)?[]:{}}var Vo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Do(){for(var Ee=arguments.length,we=new Array(Ee),Oe=0;Oe