(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17ded99a"],{"014c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAE/0lEQVRoBe1YXWgcVRS+Z2a3DVHZlsYoGEFFC22kNqi1Ij4EH5S81IqugviTzWY3yeZvV6uI4k9riFb3R7uz2/0pQbGCQRCKT4pgH3zTJ0XaYqVYg9RCMTTJdrO7czw3yZ3c2e4m+zNrg+y83HO+uffc83vn3GGs+TQ90PRA0wP/aw+Eosn9kVTqpkYZqTRKMJebSCQcyDCmZzHSqH0aasB8jh1kyG5GxGdCWvqxRhgBjRDKZQaPHrsH8oWfSHmV8wDs3HV21un1ehc4b9XTkAiQ0gC5giaU58oistsoIm9bpbiQs+QdwVg1Oto6ein3R0rIe+DRfftPfPP1iQsl3tUEWR6B8NTUFgT9vTLa2CgySYqMZftaJkgojHO5CSrcdsFT7ucEzUeKzJ5INOWTsXpoS4v443i6K5cv/EgKGY5RFPYmlcQu8vqThqIAl0HdvCMw+MKMgdVIGBvVuN5Yxgs3n9djBBgyAeA39fZbD4MdRxmwWWnyDZi/EjX4OghjszpkLC0Nx9IuSo+9JjmgjIz29GT9Xu9ftNFrpneMPR6KpvYVYVWzlqRQLHZ8a0afO0MJ3iY0IO9/FRj2PCF4HqGwlvyBjtMHBQYM/nS0qjv7+vouC6za0ZIIZPX5SbPybEG147isDBmEqqp65KKmiHXMZvLvyvOqpes2IHTk2H06Yr95Y2VizOv9w4wxNjbo/oW8/qGMU0SGI1ryfhmrhq7LgOXzvKDRhqtyAM50tDtMSsoKYfuWQ8SflTBFR5acnp6u6aO6urEksVIyoqXd/FyX51OmjDidzkUZk+mA05lRQRmUMXLE7pkL//hlrFK65iKORj/ZtsiunKYU2CY2ozz/kgr3KcGvNQajyc+oQXpWzKHaWAB1U6d/sPecwCoZa47AImYnZeWp35zfDLZAJZvyOfZWm5/q4ZKYT7JasZDj6VjVU5MBoXh6D32Y3KadgB3y+VznTdgazKjLdZG8fkCeQqnUE9FST8vYenTVBvDCxYIeo1FOv1PX2zG03mbF78d9/VMUhZMyXkA9whtCGVuLrtoAOvK8lLv3ykJtoA7TRcXUtMnvy9H826Coqpc8kTXm0A2OzefKdbPGNEFUZQDdcdt0xibE4pXxi7Fh93dFWMXs+FDfaVCUSXkBMuYJx9MPyVg5uioD5nLwPn1xtwphlMNzYGt5SfC1jrfc6OAGnBLreXpSmpK/EnaBlRsrNiAYS+2lUPfKggDhHStaYv7dABUGeEoJ+WRE58Iie0Xw5caKDFj6Sl5duL/uvvsuy36XBIY8J0n7KVlRHeAN+ptxp4wV0xUZMPP37AAt7JIXK0zxdXd352WsXhpalAN0Kl005CC2IBaOGnwJYl0D4vFP2ymcpo6Rcv9z/0j/9yXk1QUF3O5LoDBzS4HskaCWer6c4HUNyBQyh6nfWT2X+XXQzl4uJ7Be3O/zHKefSN+a5KAe5K2LCVth1jRg+SgDk/VUZ2/xG1YpYVZhimIboAMjY8iji1KWZUt2uGUN4IWL+aWfUyRr+aHU+blr5/Yjgm/U6B9y/U4N+kGTfMQXg1qi24QRYyhX/CIYTYzSmf9RMX5Nebpr2O/o2MXv2UKPkhFY+R1u9oBYcS1HxO25s+dfl1UoaQD9Dv+AvO+QJ24cGl4Na6kdQp+rDAjFUg/TsfmcmLDxRtyEOiZ4u7HxdGtq1PRA0wNNDzQ98F974F8crLKq35CrJAAAAABJRU5ErkJggg=="},"0192":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAE0klEQVRoBe0YW2hcRfScu1ubLbaJ2ATRCPXRgt32ox8VBK0bXw2F/igsiKBUk9SkCbXJpwoR6uPDbpLtrmazSQQ//CiiorG1Be3aLy0KQgXBUEX9KBu09dE0kt07xzM3O7ezd/du7r5U6B24mXPOnPecmTlZAH/4GfAz4GfAz8C1nAFsRvDx2dn23JV8DxLsBqRtbGMDEF4EhAtENG8Anj001Pd6I2wHGqFE6WDnsHXjLQdFzpxjWjd/m/hbx5+0cz1/N/EXJoBHTp2Ye4nhukewbg0FBdL5seTUDDu3r1E6vehpWADjyfSrRA7nEb9HovcIjawBkBNAt7NTYQC624tzXngacgZiR1PbOfPfsEH2c2Ug4uHOjrbRaDRqKpqa5W7xYJH6R2N2wMABEKQ7/+LwYN9hN/ca5bzUbxt1M+aFzhl9VPEhwm87wptfU3iz57oDiE/ObgWCDuUon4PPurq68gpv9lx3AHkzHyly0oBPi/AmI3UHQIKKAkAI/KsBeL6FYkenFghhvTOhrGCtvFVsOuLfCuZ75i8Jl8rREgYC3cP9PWcVr5yPJNJ7AMQ7ALhW4lJ+eKjPLk9Jcw7PtxABtXOtl4wSElGLYuK1FbiEiel58TLzPax4xxPTuwSZ7zJriEO2yLa8Yioz111CZXR6InFCHppIpu6VzOPJqZ0miLkV5z2J20yeA+Dr8Yot5RGQMpXk8gSjE29ObxMCPgGi0vL0YNNzCe0Ib2k9t7RkN3/rs1m8uLj8C+/2RhkPH4Kfg3fcukWPbXsoZL3CSs7MZkNiMXeKnd1p8RE8aJrml5x52fBJJX8EEffgbZ1fS1TJS9htXD18bhwu9FhiKsyH91u1zC3y29wiP6VwtzmWnN5LwvywZJ0PfwCM3c8N9pwpWatA8FxCTh0IGNFpBJjRcTf40MAzc9xKfOdYzyMa0WqdlzpqDoAPYUR3Yk0LZHTcDS70Qef0dabNDx/o+UineYVrCsC69wnuV0Zk/Q/19v6o8Eoz/8/wBMtHdR7G74q9kb5Pp3mFawpgLJnear0LygrCaQVWmqWT/HLPlOUxabQsfRViTQE4659LILOKHZiYfGszCPE+8ctt8SKeZD1fKDlOyAO17EJNAbCxLmXYmo01mSLcgcTT6U4zt/wxd6o3yiV+G75q39DyGAbxeZ2VhHglfvz4SoD6QgW46mtU1v9YIp21Swjxp5HBvk1OG9w7XeJ73XqcWMZ+P9j5H0KB0D39/U8uSJkjidTn/Jbs0uQF78yf3APdoNFcwap3ID45w78qcF9UGAiUUbA+M0+bdFx3ngP6NRC8rls5b/EjjOpyDBtS1kFzRasOwBRmRNfmpf4lP2/1EhjG3oPP7pvX5UcO7D/Ni2d0WjVw1QFwbxwpMuBa/7io+LhscoDG4yMDvfahVWtyRsN4weKxiVdlbZILUNUZiB07FqKFSxe4ZlsL+s6PDO2/s5xueVaYrvTLnyH4AnIf1fIrTZ6buVQqte7ywu9JzXn2Dk8qRc654HBFp3WZavmV7KoBcNMmJPNijv/o/3kxaiCckGv/5Vg1gMLWlvPx/M0dbf//AMp5zqW9HEDj6XK/upXnbx7V8y3Et8RlPpHyCvzAwECklta3eWH4mv0M+BnwM+Bn4FrNwD/XcIsgdQ+H+AAAAABJRU5ErkJggg=="},"02d2":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SItemFactory=void 0;const n=i("d7a8"),s=i("0767"),o=i("9194"),r=i("4440"),a=i("f20e"),h=i("7484"),c=i("a653");class l{constructor(){}createColumn(t){return new n.SColumnItem(null,t)}createWall(t){return new s.SWallItem(null,t)}createVirtualWall(t){return new o.SVirtualWallItem(null,t)}createSpace(t){return new r.SSpaceItem(null,t)}createDoor(t){return new a.SDoorItem(null,t)}createWindow(t){return new h.SWindowItem(null,t)}createZone(t){return new c.SZoneItem(null,t)}}e.SItemFactory=l},"042d":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SRelation=void 0;const n=i("f80e");class s extends n.SGraphItem{}e.SRelation=s},"0538":function(t,e,i){"use strict";var n=i("1c0b"),s=i("861d"),o=[].slice,r={},a=function(t,e,i){if(!(e in r)){for(var n=[],s=0;s=0},e.prototype.clear=function(){this.cmdStack.length=0,this._index=-1,this.isChange=!0},e.prototype.command=function(t){return t<0||t>=this.cmdStack.length?null:this.cmdStack[t]},e.prototype.count=function(){return this.cmdStack.length},e.prototype.push=function(t){this.cmdStack.length=this._index+1,this._index>=0&&t.mergeWith(this.cmdStack[this._index])||(this.cmdStack.push(t),this._index=this.cmdStack.length-1,this.isChange=!0)},e.prototype.toLog=function(){for(var t=[],e=0;e<=this.index;e++)t.push({command:this.cmdStack[e].command,desc:this.cmdStack[e].desc,detail:this.cmdStack[e].toString()});return t},e}(s.SObject);e.SUndoStack=o},"0767":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SWallItem=void 0;const n=i("64b5"),s=i("6aaf"),o=i("6aaf"),r=i("f80e");class a extends r.SGraphItem{constructor(t,e){super(t),this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this.pointArr=[],this.holesArr=[],this.path=new n.SPath2D,this.data=e,this.zOrder=s.ItemOrder.wallOrder;let i=this.data.OutLine,o=e.Holes;if(i&&i.length){this.minX=i[0][0].X,this.maxX=this.minX,this.minY=-i[0][0].Y,this.maxY=this.minY,this.pointArr=[];let t=i[0].map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(e,i)});this.path.polygon(t),this.pointArr.push(t),o&&o.length&&(this.holesArr=o.map(t=>{let e=t.map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(e,i)});return this.path.polygon(e),e}))}}boundingRect(){return new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onDraw(t){t.pen.color=o.ItemColor.wallColor,t.pen.lineWidth=t.toPx(1),t.brush.color=o.ItemColor.wallColor,t.drawPath(this.path)}}e.SWallItem=a},"076a":function(t,e,i){"use strict";var n=i("3b56"),s=i.n(n);s.a},"09f2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAD2ElEQVRoBe1XS2sUQRD+epKwuYjJQfDiQRCRXFQw8aonH4iPiwf/wBo0yU8w4iV4SzbGB4gnLwb0qJ68J+ATCYLiRRA0F0kQg8mWVTPp2Z6Znpmemc0myBbM9rv6+6qrunqBrnQt0LVA1wJdC1SwgKqwdmuWPqIBrOAYKx/xP4XHGFPzaZv1pg10pH+GavBwBBsMVmEYxOUKDnJpGnYqC0vnCBB5aOAQgxlhgMMMUSx8mMH3+QBpE6Yug2YTNbzfHLEWJlPrhNKdd2gfmptgA9DiFrsK6lvChBrKWtOeE5ijQaz7LqAtO8LtvVkbO469yZtXnACRYlc4zoqDIBO/XceB0G+jLpC3P9iVvvKkBf4W+TvHek5wGYjCW11NK4sTUIowTadZ4Y1QqTvoZQa8yCAX0MNfk+vj6meoZ4auhPWgknsC5WNgmiZ5jxaJ2M4M9DcDfc3lgv+JlceUWNsur6gXH7DKa2rhhH7sQV0th21LpfgJaCUTapJPQlo2EnWOgIe4rDb09NxyCUMR8Arf8sCLTi9XcdYEIQHcTExRuI0ffjJKDKV2NHE0Mkb5/i/zqxEQDTYShN3s3y8xSxLsbtLkhBaVXP+X6dUJiJb2kIieQA86SEBIKHyXIib9nGkHY332JnFWNqVjLiSbNugq/94192dCaxyUF/l0XkT6bY0G7efugXBI4VfmjRVOBMrfQlrJDNUZ6Bx/rStZwCtc4js+H7zooVgAwy2AZWm1GBDwYnkb+DH1XDZwEioXwKK7PAHtNkXBN+iM5XaKBrC31SeQ5jbi81mWn6WzfFrPElesip2A53YDyQm0/FZaLlLWbcTyAl4/FSRQPZzifwNf8Aet95DET42f3XX11wVOMRdqF3hBppPdGuQGM+WjK3hZ5E6gLHjtNtryJlQhQbhldnHbKYHpNW4EyoIXt2niaeg2etes0uE/gLk8n0AV8KbPy66KqQBy9SYfgDIuooqdQHYiazd4Yn+fUA98oLanuBD08M4fd/xJP4F2gwdGQ/ACzv4A/IxratURuz/NTmArwI+r+wlgcRIF3Uf0JQl0CrxmY5JwfIHqpVJGYyBINtG3jczyOPCuZ7xt4klK1gQBO8oPuqTlZdwUIRHERKErVFREM/F96uM8OM+hdMHUz/VP6MdJTjDJN39V8OZGT6in0P/oBAFRVoREO8GbRArUoyegF7qQ2AHgBa6dgIxkkVCY4hn3Ihm2iM+L/jZJOgHZIJ1EdPttAi8gsgnIjDwS2wjejUAWiW0G707ARmIHgC9GwCQBnOemW5KSdTtKJCbkCu1K1wL/hwX+AbMwns/Zk36ZAAAAAElFTkSuQmCC"},"0a87":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphPointListInsert=void 0;const n=i("64b5"),s=i("f80e");class o extends s.SGraphCommand{constructor(t,e,i,n,s=null){super(t),this.item=e,this.pos=n,this.index=s,this.pointList=i,this.command="SGraphPointListInsert",this.desc="添加折点="+e.id}redo(){const t=new n.SPoint(this.pos.x,this.pos.y);null==this.index?this.pointList.push(t):this.pointList.splice(this.index,0,t),this.item.update()}undo(){null==this.index?this.pointList.pop():this.pointList.splice(this.index,1),this.item.update()}toString(){const t="pointList="+JSON.stringify(this.pointList),e="pos="+JSON.stringify(this.pos),i="index="+this.index;return`${i};\n${e};\n${t}`}}e.SGraphPointListInsert=o},"0c4f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SZoneParser=void 0;const n=i("676a");class s extends n.SParser{constructor(){super(...arguments),this.zoneList=[]}parseData(t){t&&t.length&&t.forEach(t=>{this.addZone(t)})}addZone(t){let e=this.factory.createZone(t);this.zoneList.push(e)}}e.SZoneParser=s},"0d2b":function(t,e,i){"use strict";var n=i("ffe1"),s=i.n(n);s.a},"0dc9":function(t,e,i){"use strict";var n=i("ada0"),s=i.n(n);s.a},"0f60":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABe0lEQVQ4EbWVPUjDUBDH/5eECjq5CIIgVF0UxUGwnarg4i666ioUJwehLaItnVUUOqmrCE4iFUHFQcS6COKguLsoLiLm47wXaWyGJv3yQZK7e/f/8fJy70JQg1nDDqKwEXH9em86vrGIFxA55MK2cAbGZL0cXz7hHElMEba5HxaeQLgU6IUvqVaHMCHaBAwMGN5rKtgSrdbK8OVtsNIlFEvzTYQ4+VuOhqSgZuB6iftM20m2BJgrcTdbzimxdtU0MH/PnY7pFGXTuzp6cNIUsFDidvPTPmbwMBGev17R2xTwLYI2jVCQkioy86hl2o9r19Z8EDTwo6yM0Htq3NgH052CECiViRt7DQPLQgLm5Fhl03E9V45VewauUImyNzzGhKNMTE9Xg1TGQ4HM+BDYcqUoyCZs8qCUxINs0KEkhpZFFdi0MGaEMWR4CSoA9/JCjRh/QA27cHDQCEQO8KxoF5TWgGqOllgsDRaIqWDd41cLxfqHBquW08JfwA8ofnwo2dU8+wAAAABJRU5ErkJggg=="},"0f62":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEhElEQVRoBe1YTWhUVxQ+5z0naf13oSjqoiAiXTQW4rhtV2op/myy6FKavGhMIXHVlYobEZJIk4y+pG1WrgQFF/5gIfsJaC2WovizUFpohSIkbepk7uk5b7zjfTPvvblvZvKzmAt599z/7zv3u/fcCUArtTzQ8kDLAy0PNOABbGDsogwdmZraCP8WOklhFoCyRHT1dL93LW6xVXENS1H/3a1b7er5y71EmCWEfQHgucJuBs2OpRIE17mQhGXJCDAoZ9Sf2lMsLmRJMVik7MLzlx1EkAnAvsNbBl5Crda66pckAosmofHxH3fOq4Wsw54lkQJgJxCtSwJT2YaIvw2e6vm4st4sN2UHcrmrm+Zpdh+yZxWWtDuvCltlIRXtWRNDgk0PEhqDptQERJ/Dl7/fD0rxIcMsEmXn1dwulgIGWNlIl/AFyyaPDswA4Zc8/2fvxzs/v7ejrdQEeFtpaNQ/yNOdEb2mAo3wGglneFQe0MlnVrsz3xw//peGNjzmf6VtydGpvQN1nwEmcZbXYBLRCRH+YXL3GUbeRf5rg3x/d/eL6N4A09PTqx48ejLLY9p1n7VtsNnzvNe6HJXXTUAmiyPhoONt37Lhh66urmLUolF1l3KTnxSL6qFuQ8BXg/09O3U5LnfiGmzqOcCc5X7nKvsqUBd///Pvzsr6pLJS6lOznSNBTf1L/4YIyASRJAg2sOvvXhrz90sfm8RS2BvqR7X1L/0bJiCTNIMEX26hHeDLouYV2jQCMhG74o8gNz58r36g0N1kVCWZHWZjph2XRkKy6PDoRC9fj5dNACyJ/8Bxjw72fX3HrI+yRycnP+KrdWO5DeFN0o1V7sdG6jhgDhZ7aNz3OBjkSg+wUquARxePDZysDV5GLLyFsHzIzvsytqEzIODF89Hge27LAjaJb6DQAeZYaaV/mbtuAlo2acGP5CYOVd1OGD7AHMys9F83gUA2WC0b0fzAyXjPD41NfkFFulF5xfJhD+2A4zjWO8ByTZfqlY14XsCXnwp8UF2AAx9m4NnsWyi/h+T8rGmDdfyEKNggSyWhpoEXZO+C3VwBe0NAEX61BS/jrAnUC17Lpux5Ey2T4DN03qziJ7W1fKwJ1AteZIOkrkeCD6E2Cg5ZH2ArAo2AD2meV5PfEvJSZfOcATlkouOm2oHEQNZs8PxE7h041T0hiPkpLtkZ+egkBNvU+oe6bJPHnoFmgyekExq8AIt+ANLTvr6uWRvguk8kgcUAf7rPC1yuF5a8ioTlC9Sco4rAUoHXIEwSfNhTHWCZI0SgdGuE3zbBQgheUoStClI8SPQssonyfDCn8dEkEO0jsB4eIrDapZ+44aZuNPJvR3x/m1Eum42C1xMJiR2b19/TZdu86inh+36Go+M1DjBHzEn4vwyPMQOfD3he+YdLs8Cb66S1qwjIBDYkVgJ4wRpJoCYJxAuk6IoZYdNoXuZvVoolIAvE7UTl4ssFXnAkEpAOtUgsJ3grAkkklhu8NYEoEisBfCoCJgm2D9sGKRm3opKcCblCVxSoFpiWB+r3wP8SPZuW4VYVQwAAAABJRU5ErkJggg=="},"0fba":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABp0lEQVQ4Ec1VPUsDQRB9kxyCBERsrP0qFCSVFiokgljfL9AmlSj+Bf9C8KPRRn+BtQjRQgutRNBCtLcREYIQc7e+t/HiXcDuhAzcXmb27dvbNzMbg8y5Ag4wjggD3k+GgJFpPGPZ2j7UcAEeMYE2ignEv4toYQMvMIvNk+3iHA7LGVDiGB4wjHnvvuOGuJlkKvM2NLCFFcO+m+SOTzBcEnzRAyozFvJ7Vn08whlxp4zd9eCqjFUQYEqH6hxTZNu2kwHuuXXOh4hTUhRIuGnHGVzdaV1FXIXMRA5O/xMGFDLCF89qKEOapS3GkneNaZM5PjEWifNud4i5ViFyMdmsrXtm7a9yAF5R+imVJksIGO0SpX+ovGZRNh87cSV8YCGTTU3oywZxi5q9edyRG8En5rh54P1kKLCwh3CNNWvmnpTcj9zpTemnDlDRpk1Jcaj5Y8ZESD/DIXFXaRilCokL1edBt9HVTr0doGxGJJRmolMmRdaLq7sxzoTiyl3D/icMeDW1fB8YqujcGr96qwNkqjNZxEcJ6GjmQ37QWulLrn+4YLVFjn8B37X+n2+67hx8AAAAAElFTkSuQmCC"},1136:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABfElEQVRoBe3ZW0oDMRQG4D91O4KLcAsFC9oFCLZbsFvoBVyALSq4mBZ8cxO+i03ndEjHks50Lrn8QfMynUwe/i85w0AP8D8Yd+BJXzLGOpWpZ01O9QTfWGOhB9Yzwgl1lEnCA4/7OYUf9HCHB/V6tIbspgBI2cjOa1wcMgoCGGKsXg5zZD+KErpXH/sdz0PnMXPMM3M5FSdgdlZqf4uldRKk5WQDBJIQ4jQgIUQ5IBFENSABxHkAOaIegBhRH0CKaAYgRDQHkCHaAYgQ7QEkiG4AAkR3QGSEG0BEhDtAJIRbQASEe0BghB9AQIQ/QCCEX0AAhH+AZ0QYgEdEOIAnRFiAB0R4gGNEHIBDRDyAI0RcQBVC4RYj9SZLqkZ8gKQr+y+2BoID0AHBA2iJ4AIIYq5vst7EyupPlJQTH6AhghPQAMELqEIAg6zx+C5Liiaf3LEN+Q5I7f9uPAJfWcxPE5X7BExK82Ln4a+z3d+YR+lcZ7qPmb5KJ/BfSboDrgYj0CEQvVYAAAAASUVORK5CYII="},"11c1":function(t,e,i){var n=i("c437"),s=i("c64e"),o=s;o.v1=n,o.v4=s,t.exports=o},"125a":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SColor=void 0;var n=i("4c26"),s=function(){function t(e,i,n,s){this._value=255,void 0==e?this._value=255:"string"==typeof e?this.value=e:e instanceof t?this._value=e._value:void 0==s?this.setRgb(e,i,n):this.setRgba(e,i,n,s)}return t.rgb=function(e,i,n){return new t(e,i,n)},t.rgba=function(e,i,n,s){return new t(e,i,n,s)},Object.defineProperty(t.prototype,"red",{get:function(){return this._value>>24&255},set:function(t){var e=(255&Math.floor(t))<<24;this._value=16777215&this._value|e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this._value>>16&255},set:function(t){var e=(255&Math.floor(t))<<16;this._value=4278255615&this._value|e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this._value>>8&255},set:function(t){var e=(255&Math.floor(t))<<8;this._value=4294902015&this._value|e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return 255&this._value},set:function(t){var e=255&Math.floor(t);this._value=4294967040&this._value|e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return"#"+n.SStringUtil.num2Hex(this._value,8)},set:function(t){"#"==t.substr(0,1)&&(this._value=parseInt(t.substr(1),16),7==t.length&&(this._value=255+(this._value<<8)))},enumerable:!1,configurable:!0}),t.prototype.setRgb=function(t,e,i){this._value=(t<<24)+(e<<16)+(i<<8)+255},t.prototype.setRgba=function(t,e,i,n){this._value=(t<<24)+(e<<16)+(i<<8)+n},t.Transparent=new t("#00000000"),t.Black=new t("#000000"),t.DarkBlue=new t("#000080"),t.Blue=new t("#0000FF"),t.DarkGreen=new t("#008000"),t.Green=new t("#00FF00"),t.DarkCyan=new t("#008080"),t.Cyan=new t("#00FFFF"),t.DarkRed=new t("#800000"),t.Red=new t("#FF0000"),t.DarkMagenta=new t("#800080"),t.Magenta=new t("#FF00FF"),t.DarkYellow=new t("#808000"),t.Yellow=new t("#FFFF00"),t.White=new t("#FFFFFF"),t.DarkGray=new t("#808080"),t.Gray=new t("#A0A0A0"),t.LightGray=new t("#C0C0C0"),t}();e.SColor=s},1271:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPolygonItem=void 0;const n=i("f80e"),s=i("4c26"),o=i("64b5"),r=i("6aaf"),a=i("ad3d");class h extends n.SGraphItem{constructor(t){super(t),this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this.pointList=[],this._status=r.SItemStatus.Normal,this._strokeColor=new o.SColor("#0091FF"),this._fillColor=new o.SColor("#1EE887"),this._lineStyle=n.SLineStyle.Solid,this._lineWidth=4,this.closeFlag=!1,this.lastPoint=null,this.curIndex=-1,this.curPoint=null,this.len=10,this.scenceLen=15,this.isAlt=!1,this.undoStack=new s.SUndoStack}get getPointList(){return this.pointList}set setPointList(t){this.pointList=t,this.update()}get status(){return this._status}set status(t){this._status=t,this.undoStack.clear(),this.update()}get strokeColor(){return this._strokeColor}set strokeColor(t){this._strokeColor=t,this.update()}get fillColor(){return this._fillColor}set fillColor(t){this._fillColor=t,this.update()}get lineStyle(){return this._lineStyle}set lineStyle(t){this._lineStyle=t,this.update()}get lineWidth(){return this._lineWidth}set lineWidth(t){this._lineWidth=t,this.update()}insertPoint(t,e,i=null){const n=new o.SPoint(t,e);return null==i?this.pointList.push(n):this.pointList.splice(i,0,n),this.update(),n}deletePoint(t=null){let e=null;return null!=t?t>=this.pointList.length||t<0?e=null:(e=new o.SPoint(this.pointList[t].x,this.pointList[t].y),this.pointList.splice(t,1)):this.pointList.length?(e=this.pointList[this.pointList.length-1],this.pointList.pop()):e=null,this.curIndex=-1,this.curPoint=null,this.update(),e}movePoint(t,e,i){let n=null;return i>=this.pointList.length||i<0?null:(this.pointList.length&&(this.pointList[i].x=t,this.pointList[i].y=e),n=this.pointList[i],n)}PrintPointList(){return this.pointList}drawShowPolygon(t,e){t.save(),t.pen.lineCapStyle=o.SLineCapStyle.Square,t.pen.color=this.strokeColor,t.brush.color=this.fillColor,t.pen.lineWidth=t.toPx(this.lineWidth),this.lineStyle==n.SLineStyle.Dashed?t.pen.lineDash=[t.toPx(3*this.lineWidth),t.toPx(7*this.lineWidth)]:this.lineStyle==n.SLineStyle.Dotted&&(t.pen.lineDash=[t.toPx(this.lineWidth),t.toPx(this.lineWidth)]),this.selected?(t.shadow.shadowBlur=10,t.shadow.shadowColor=new o.SColor("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5):t.shadow.shadowColor=o.SColor.Transparent,t.drawPolygon([...e]),t.restore()}drawCreatePolygon(t,e){t.pen.lineCapStyle=o.SLineCapStyle.Square,t.pen.color=this.strokeColor,t.pen.lineWidth=t.toPx(this.lineWidth),this.lastPoint&&e.length&&t.drawLine(e[e.length-1].x,e[e.length-1].y,this.lastPoint.x,this.lastPoint.y),t.drawPolyline(e),t.pen.color=o.SColor.Transparent,t.brush.color=new o.SColor(this.fillColor.value),t.pen.lineWidth=t.toPx(this.lineWidth),this.lastPoint?(t.drawPolygon([...e,this.lastPoint]),t.pen.color=o.SColor.Black,t.brush.color=o.SColor.White,e.forEach(e=>{t.drawCircle(e.x,e.y,t.toPx(this.len/2))}),this.pointList.length&&a.SMathUtil.pointDistance(this.lastPoint.x,this.lastPoint.y,this.pointList[0].x,this.pointList[0].y){t.brush.color=o.SColor.White,i==this.curIndex&&(t.brush.color=new o.SColor("#2196f3")),t.drawCircle(e.x,e.y,t.toPx(this.len/2))})}editPolygonPoint(t){if(this.isAlt){let e=-1,i=this.scenceLen;if(this.pointList.forEach((n,s)=>{let o=a.SMathUtil.pointDistance(t.x,t.y,n.x,n.y);o{let o=a.SMathUtil.pointDistance(t.x,t.y,n.x,n.y);o2)for(let n=1;n2&&(this.status=r.SItemStatus.Normal,this.$emit("finishCreated"),this.releaseItem()):this.status==r.SItemStatus.Edit&&"Alt"==t.key&&(this.isAlt=!0),this.update(),!0)}onKeyUp(t){this.status==r.SItemStatus.Edit&&("Alt"==t.key?this.isAlt=!1:t.keyCode==s.SKeyCode.Delete&&this.pointList.length>3&&this.deletePoint(this.curIndex)),this.update()}onMouseDown(t){if(t.shiftKey&&(t=this.compare(t)),this.status==r.SItemStatus.Create){let e=-1;if(this.pointList.length&&(e=a.SMathUtil.pointDistance(t.x,t.y,this.pointList[0].x,this.pointList[0].y)),this.pointList.length>2&&e>0&&e1&&(e=this.pointList[this.curIndex-1]);const i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);n>i?t.x=e.x:t.y=e.y}return t}onMouseUp(t){if(this.status==r.SItemStatus.Edit){if(-1!=this.curIndex){const t=new o.SPoint(this.pointList[this.curIndex].x,this.pointList[this.curIndex].y);this.recordAction(n.SGraphPointListUpdate,[this.pointList,this.curPoint,t,this.curIndex])}}else if(this.status==r.SItemStatus.Normal)return this.moveToOrigin(this.x,this.y),super.onMouseUp(t);return!0}moveToOrigin(t,e){super.moveToOrigin(t,e),this.pointList=this.pointList.map(i=>(i.x=i.x+t,i.y=i.y+e,i)),this.x=0,this.y=0}onResize(t){return!0}cancelOperate(){this.status==r.SItemStatus.Create?this.parent=null:this.status==r.SItemStatus.Edit&&(this.status=r.SItemStatus.Normal),this.update()}boundingRect(){return this.pointList.length&&(this.minX=this.pointList[0].x,this.maxX=this.pointList[0].x,this.minY=this.pointList[0].y,this.maxY=this.pointList[0].y,this.pointList.forEach(t=>{let e=t.x,i=t.y;ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i)})),new o.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}contains(t,e){let i=this.pointList;return!(i.length<3||!o.SPolygonUtil.pointIn(t,e,i))}onDraw(t){this.scenceLen=t.toPx(this.len),this.status==r.SItemStatus.Normal?this.drawShowPolygon(t,this.pointList):this.status==r.SItemStatus.Create?this.drawCreatePolygon(t,this.pointList):this.drawEditPolygon(t,this.pointList)}}e.SPolygonItem=h},1276:function(t,e,i){"use strict";var n=i("d784"),s=i("44e7"),o=i("825a"),r=i("1d80"),a=i("4840"),h=i("8aa5"),c=i("50c4"),l=i("14c3"),u=i("9263"),A=i("d039"),d=[].push,m=Math.min,p=4294967295,f=!A((function(){return!RegExp(p,"y")}));n("split",2,(function(t,e,i){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var n=String(r(this)),o=void 0===i?p:i>>>0;if(0===o)return[];if(void 0===t)return[n];if(!s(t))return e.call(n,t,o);var a,h,c,l=[],A=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,f=new RegExp(t.source,A+"g");while(a=u.call(f,n)){if(h=f.lastIndex,h>m&&(l.push(n.slice(m,a.index)),a.length>1&&a.index=o))break;f.lastIndex===a.index&&f.lastIndex++}return m===n.length?!c&&f.test("")||l.push(""):l.push(n.slice(m)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,i){var s=r(this),o=void 0==e?void 0:e[t];return void 0!==o?o.call(e,s,i):n.call(String(s),e,i)},function(t,s){var r=i(n,t,this,s,n!==e);if(r.done)return r.value;var u=o(t),A=String(this),d=a(u,RegExp),g=u.unicode,S=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),y=new d(f?u:"^(?:"+u.source+")",S),v=void 0===s?p:s>>>0;if(0===v)return[];if(0===A.length)return null===l(y,A)?[A]:[];var b=0,w=0,x=[];while(w1?arguments[1]:void 0)}},"1bcc":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STextAlign=void 0,function(t){t[t["Start"]=0]="Start",t[t["End"]=1]="End",t[t["Right"]=2]="Right",t[t["Left"]=3]="Left",t[t["Center"]=4]="Center"}(e.STextAlign||(e.STextAlign={}))},"1d58":function(t,e,i){"use strict";var n=i("63d3"),s=i.n(n);s.a},"1dde":function(t,e,i){var n=i("d039"),s=i("b622"),o=i("2d00"),r=s("species");t.exports=function(t){return o>=51||!n((function(){var e=[],i=e.constructor={};return i[r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1f2d":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SBrush=void 0;var n=i("3bc4"),s=i("64b5"),o=function(){function t(e){this.type=n.SBrushType.Color,this._color=s.SColor.Black,this._gradient=null,void 0!=e&&(e instanceof s.SGradient?this.gradient=e:e instanceof t?(this.type=e.type,this.color=new s.SColor(e.color)):this.color=new s.SColor(e))}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this.type=n.SBrushType.Color,this._color=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gradient",{get:function(){return this._gradient},set:function(t){this._gradient=t,this.type=n.SBrushType.Gradient},enumerable:!1,configurable:!0}),t}();e.SBrush=o},"1fdd":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGradientStop=void 0;var n=function(){function t(t,e){this._pos=0,this.pos=t,this.color=e}return Object.defineProperty(t.prototype,"pos",{get:function(){return this._pos},set:function(t){t<0&&(t=0),t>1&&(t=1),this._pos=t},enumerable:!1,configurable:!0}),t}();e.SGradientStop=n},2288:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SObject=void 0;var n=i("7682"),s=function(){function t(){this.name="",this.listeners={},this.id=""}return t.prototype.connect=function(t,e,i){var s=this.listeners[t];if(s)for(var o=0,r=s;o1?arguments[1]:void 0)}})},"25f0":function(t,e,i){"use strict";var n=i("6eeb"),s=i("825a"),o=i("d039"),r=i("ad6d"),a="toString",h=RegExp.prototype,c=h[a],l=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),u=c.name!=a;(l||u)&&n(RegExp.prototype,a,(function(){var t=s(this),e=String(t.source),i=t.flags,n=String(void 0===i&&t instanceof RegExp&&!("flags"in h)?r.call(t):i);return"/"+e+"/"+n}),{unsafe:!0})},2755:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABmUlEQVQ4Ea2VP0jDUBDG79K0gptLQRCEqItiEQwYqVIFF/eiqyIoKB2KuCk46KiCUrHi31UEJ5GKoFKLiKlDQRwU907iotY0Od/rkKYQk4Y2ELh3930/LrzjgsAeIhI2tvcl0ScE+NnrU9SN3/js1DsiGliCJXaviGDYK8iqR4Tr+Nz0CK4n9trJ0F8R8JaAbqyiamPmHWLeCAq+DpF/pmbowGHzsZnlaiFW3dpWkvsinCVYC25x+jEnuWmqBmZUtQ31QqwuQFVVm40iXQIJ6ZqB6Vyu6UeDFBAGhZbgRU1A1lkjfhXO2YV1I9Ib5POtNQG/A4EGQEyyN8XmtEfX6CVzn51wgjpeymAo9DHQJx+z6c9yCBMvhvt7j5yAolOxXMNxAWElrMir5Zx95Nght9w9PMmAcMZgS/aIyqxrhyLhp6LIC5W2/0+4uXPQqWnaM9sUpwjgOhZ2KAIYZUsm6vf7u8wOeYIVonYGLzkTiCgcsvE48WI2tURjRMYkP4t8OZYKRBJLKqbIQ8DWl8TlnFX/BcvJ9fwF/AFmxKSOjcx7JQAAAABJRU5ErkJggg=="},2778:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAAj0lEQVRoBe3YMQ7CMBBEUQdx11RUnIOKitOG3u0vFqSXLpF2nLyxm6zlIkCAAAECBOYEjtf7c80t31e+9YjZBB8w67/WfX+B5+M89me/dL+fWVtouh0NaCAK2EIRMI9rIBPGAA1EwDyugUwYAzQQAfO4BjJhDNBABMzj/gtlwhjgDERA4wQIECBAgMBfC3wBWGUJqYa+rNwAAAAASUVORK5CYII="},"29ac":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEs0lEQVRoBe1YS4gcRRj+anZxdSEefBEFZdGLuLAXYcEEQXIQhBj14gujBALiI4ZswFM86UlwYScmEgiID3xdTFQI5CCCuIcFLwuCF2WJEBZjPChsVjFbfl9VV3f1TM901z4SB+eHnq75639X1d//X8AQhhH4f0fAbJn7c9aWZB80W6KrVVIygH+GDlztRdv8fXnC3oS/MAmLb0rOGTyAMfyA581vJfwG/2yOA217Mw3eS1segcFOjkcq7TK4zLnvOHeadB/gFXOhki4BuTEHTthxRnuGRr1KndsS9Ir0TzrxJldllquyksibk6/fgTl7Lw34nMbfnkvTQFEGFvgs8TnPR3Abnwk+012rY/ALcY/hoPme88mwPgeO2iewhnep7bpI4yI3ziyuxZfYb36P8MXwpL0Bq3iYLs4QOVVM4BJa2IcD5tMI12iY7oA3/pNcusFFjmdwAB/CmLUc329gbQtH8QxJZhn9G3PSFp5MdSLNAW0b4Fs+PvKGWWUUe/Ci+Tk3ImVw3N6Jf/AFnZjM2C7xfX/KdmrugD+wP1KZ3/MyHtjBTPJHis1dtG17PXHzuRM6E2O4u+nBHu0S2Avhs00w/mIW+W7j37aTPB/7KeZBPndk4s7xfZb7/CReNnK8AAXguN3DlVhw20kBki7gjYKo96jZCvg8/xPF+FRp8Bwj/35J7Gf2Giy7Pf0C8b1KlDVmqXewnQY+bv4u8bfts3TgvQynFHtXk+9EL0Ul2RS8l4iQ5xfdgY0pvPFnSPcS0f1kthzNMs5APDEoCQCLGWpbpjOmqBz3U1YwGDya/zF4qyvb+MjvymnqBha73GrFdMpgSsMBYp0BV/Gu30K+tllmREbcR2oct5TyvPb8ZRe5ZsEojJDBU6Uzoe/ECn7NdY1xs9XUTt2HuLMRWS00crRQMl5T/sCmGi/OVsZ7SH8c6APYtvqK3+ecWMUFzEV9UUVTlKp4yWsq/SrbrBeqeJdShKU6cL5CeEiVFVO1qCreKh09BaU6UH9meqpqPJGko/sMdO6ztn2K+/GjTP2tFWacI+6eCnwTlHg7odBh8DS/BR93EsT/m6xAvKQTMXM2PluBa4qq4p2ImGPdEboY1jugNtDX+OKahlJdDCoPlIvSYc2VFjGflz3tUNIp3TVQ74DPw/NOjr4FK9hdkqnaRuVBKoinsy5SrxDaUbWeNd8Aqax3QFQWp/RyYHEYqudjUG1j8HWM6jsWrXhikEzf6ATs6TDo9y4b0otSDbh6WA9TWTNSUKsw246H6MQxIvttJxVzxxxtZzHnG5zQpamYk85aaJ6y2vYIV+J1J1Fd2CjPQ1Ujk1pOS6BvbHw5rf8GrzH7bGI5LaH/0Yam2RaSA7r60O0B2IALfBs476LnEOv4UeTjbkyypSPhmqW5A7JPVx+6PQggJ9RJuWak42AHmqq3Dqx4fBcW+mGllH0p/bBENz8DsSG9rlXUK4zjq66KNfD6cnk3o3yYqHBgNXsFr1WCMQN9sRWcGOirxeCE3uFy17eBO7hFRuLpfOxLEl2hnHJ5/qpf7uaWRYOBvF6P7M+Hna1pZ5meE25skJZGN6ZrS7gH3oEticpQ6DACwwhcuQj8C1VPeGj4u6b3AAAAAElFTkSuQmCC"},"2e66":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STextItem=void 0;const n=i("edfc"),s=i("64b5"),o=i("f80e"),r=i("f80e");class a extends n.SObjectItem{constructor(t,e=""){super(t),this._painter=null,this._text="",this._textArr=[],this._color=new s.SColor("#333333"),this._backgroundColor=s.SColor.Transparent,this._strokeColor=s.SColor.Transparent,this._lineWidth=1,this._borderStyle=o.SLineStyle.None,this._originPosition=r.STextOrigin.LeftTop,this.maxWidth=void 0,this._text=e,this._font=new s.SFont("sans-serif",12),this.height=12}get text(){return this._text}set text(t){this._text=t,this._textArr=this.text.split(/\n/g),this.drawFormatText(),this.update()}get color(){return this._color}set color(t){this._color=t,this.update()}get font(){return this._font}set font(t){this._font=t,this.drawFormatText(),this.update()}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){this._backgroundColor=t,this.update()}get strokeColor(){return this._strokeColor}set strokeColor(t){this._strokeColor=t,this.update()}get lineWidth(){return this._lineWidth}set lineWidth(t){this._lineWidth=t,this.update()}get borderStyle(){return this._borderStyle}set borderStyle(t){this._borderStyle=t,this.update()}get originPosition(){return this._originPosition}set originPosition(t){this._originPosition=t,this.update()}boundingRect(){return new s.SRect(-this.origin.x,-this.origin.y,this.width,this.height)}moveToOrigin(t,e){this.moveTo(this.x+t,this.y+e)}drawShowText(t){t.translate(-this.origin.x,-this.origin.y),this.selected?(t.shadow.shadowBlur=10,t.shadow.shadowColor=new s.SColor("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5):t.shadow.shadowColor=s.SColor.Transparent,t.brush.color=this.backgroundColor,t.pen.lineWidth=this.lineWidth,t.pen.color=this.strokeColor,t.drawRect(0,0,this.width,this.height),t.brush.color=new s.SColor(this.color),t.shadow.shadowColor=s.SColor.Transparent,t.font=this.font,this._textArr.forEach((e,i)=>{t.drawText(e,this.font.size/4,i*(1.25*this.font.size)+this.font.size/4,this.maxWidth)})}drawFormatText(){if(this._painter instanceof s.SPainter){this._painter.save(),this._painter.font=this.font;let t=0,e=this.font.size;this._textArr.forEach((i,n)=>{let s=this._painter?this._painter.textWidth(i)+e/2:e/2;s>t&&(t=s)}),this.width=t,this.height=1.25*e*this._textArr.length+e/8,this.originPosition==r.STextOrigin.Centrum&&(this.origin=new s.SPoint(this.width/2,this.height/2)),this._painter.restore()}}onDraw(t){this._painter instanceof s.SPainter||(this._painter=t,this.drawFormatText()),this.drawShowText(t)}}e.STextItem=a},"30ea":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABOUlEQVQ4EWNkQAP379/nePnyvRKaMF7uH2bmv9YmencZGRn/sKCrfPryzbr//xk80cXx8v/8ZThy4uy5////mzOiKzxy4owNUMIFXZwA3wEob8/IwqaBYSABjVilDx8/3QCUqGdlZNYGe3n69Ok5QIEkYBiwY9WBXfANMzNzUWpq6llkaab58+dLAA2aBBSUQZYgxAaF19+/f/vQ1bH8/PlTCCgJ8vq0jIyMBnQFuPgzZsy4CpQTQZdnQheglD9qIKUhyMAwAsMQo7QhJxSBOW0PA8N/M3FxwXtUMdDGwuQI0CFeIMewAMGv379/g9gOwEKiAcQgBgCzqyhQ3RN0tSzJycn3Zs6cuR+owBEoaY+uABcf6E2glv9N6PLg8hAowTR37lylP3/+sKErwMVnZ2d/l5iY+AJdHgCrJGNmPYZ55wAAAABJRU5ErkJggg=="},"32c6":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphLayoutType=void 0,function(t){t[t["Vertical"]=0]="Vertical",t[t["Horizontal"]=1]="Horizontal",t[t["Left"]=2]="Left",t[t["Right"]=3]="Right",t[t["Top"]=4]="Top",t[t["Bottom"]=5]="Bottom",t[t["Center"]=6]="Center",t[t["Middle"]=7]="Middle"}(e.SGraphLayoutType||(e.SGraphLayoutType={}))},"33bd":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAFMElEQVRoBe1YS2gkRRiu6pn4yKqsbxRXRC9iYC9CwBVBPAiCrnqJD6JimBhMdDUT8KQn9yRkVtedyJgQUYOPXHyC4EEEMYeAFyHgRRGzLOj6WNzdrJrp/v2+mqmhptM9XZ1s3B2cPnT99df/rMdf/19K9b7eDPy/Z0Bvl/vTr9bElT319Ni26ApcJd0I9xw406t22vdlrVa77GSoBySUL13ndEHfvqMgK2NjY7+6+K3Cp8WBg/Pzl4dr9UciJfdqpW8VkUKSYVrrUJR8HSj9UaG/+Pa+kZGjSXR5cFtyALPdf3JdlxFunlMiF+ZRrLQ+DuUv7eiTClZlLRevQ7xpB16Zmb25HkUfKFG7HHmwS4dKybKI/lFrOcIxwFcDvk4pPbhhdbRaLQbB/c+Mj37jyvGFN+XAy9XZB6IoegMzf75VBMO/hakVdV7hk3Kp9LvFu21lbu4S9Vd4Dxwpw5HddgxGnAqC4PFnJ0bftzjfNrcDND6MovesAq3Vb6KDcnm8tAAnIovv1ML4oDIzN6wlqoioSy1tIQgezOtELge4bcIw+srOPAxe0UFx7+T4yA/WiDztgZn56yWqfwyHBsjHlSgUgtvybCdvB3hgT6yr7+yep/HFnf179g0P/5nH6DjtwYWFi+rH1pasE/Bi9YI+daPvwS7GBab1GW1wGs2B5bbhzCcZXzn0+oBWUopE3Qm6aykP2+SnQKvPRem58lNPrLg6KAMrsVdF6zj42E4ICkaXUvtdujTYawUY59fX6t+3QmUQPDY1MfqWK3RxcfGc1V/+qMCAJ4FPS1EizPBru664uDw0NPSPyz9dnX1URdGbBocQ29dfvMHnnkhT5MpWvKSs8Yw2PLAuAY0//POxz2D8BPCdZAakIS15XBnNIIBIhg93itHpEqTAnZS1WLC099mOaD0djzacedywd1iarJa0ZrUcwoZMhOHm5+q0uKQ20wHmNlj2PWSGklCfqz91BXHPN7eNi86GsdUMr0uJO4Q6DAo6jW53PAHecIjjhcgJs1NtbSLL8UuKBxajmRORoBvnWkrAT9oxyq4cqi2jfwuiUgG6j8IeO6ySiqJcipketKQ1AUabOM63n8SbpKOTvFwO2NzGFWhDpYvzhZN4k3R0kpfLAcRxr7DbSWHWWF4dG85AfJ8dqM4+hMTtHaNY1FVxA3hJAXdTHO/Tb/K2kzo6kOA9PDkx+m47QXsvcwWkmRKTrZESxwTghm3H+Pd4O8epXR2u7jid7Wc6wDKwFdqQz5uU2HKjZXqAxisLddgI4gwb3ha6IVsPEkGd1N0aTAEyHTA1rKgl8jO0yd9ytyvL5DZID1ycFwyeeF7EWoE6yM/S06d+znSAwnB0P2TLT4tMQUkbH3Mb1MJfNCiy/6Qlj0vZkImEsfmxbrZwp7bNkDRCFuDw4jjHoWg3ixGXlonZNVfuvAs3dhX4TtuJyVyVtPFkjjIp28iFLqPTVZICe4dFXPvPQ8GLlIMVQTrdN5hUyORNpymvUdg002kjX7+A7bWfY1mftwNna0HjtYU4C6yQ+HoAj0+xj9UYYCXF2WN/Mx953WqMsqnDtxqjTm8HSMxala8HhPnRCUElxWIEsLcs0hoeU4U16mHKo+w89TB5vLcQie2X9qxiagWk2/GM1fIxzjMMNyPZmXlWscZ09cOWdYIHu2ufFq0TbO3jrikDUUlhj6c+7uKKXeLFeFY87rpOWJhlYNc9r1vj3TZemsbTdJd2K7B36NuKku3k7XoHtnNyerJ7M9Cbgf9gBv4FufJ9bWWcAFUAAAAASUVORK5CYII="},3410:function(t,e,i){var n=i("23e7"),s=i("d039"),o=i("7b0b"),r=i("e163"),a=i("e177"),h=s((function(){r(1)}));n({target:"Object",stat:!0,forced:h,sham:!a},{getPrototypeOf:function(t){return r(o(t))}})},"34cc":function(t,e){var i={toPolygon:function(t,e){function i(e){if(e.length<=0)return t.segments({inverted:!1,regions:[]});function i(e){var i=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[i]})}for(var n=i(e[0]),s=1;s=i.length?{value:void 0,done:!0}:(t=n(i,s),e.index+=t.length,{value:t,done:!1})}))},"3dd1":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SStringUtil=void 0;var n=function(){function t(){}return t.num2Hex=function(t,e){void 0===e&&(e=2);var i="",n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];while(e>0)i=n[15&t]+i,t>>=4,e--;return i},t}();e.SStringUtil=n},"3f8a":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPoint=void 0;var n=function(){function t(e,i){void 0==e?(this.x=0,this.y=0):e instanceof t?(this.x=e.x,this.y=e.y):(this.x=e,this.y=i)}return t.prototype.setPoint=function(e,i){e instanceof t?(this.x=e.x,this.y=e.y):(this.x=e,this.y=i)},t.prototype.manhattanLength=function(){return Math.abs(this.x)+Math.abs(this.y)},t.prototype.matrixTransform=function(e){var i=new t;return i.x=this.x*e.a+this.y*e.b+e.e,i.y=this.x*e.c+this.y*e.d+e.f,i},t.prototype.translate=function(t,e){this.x+=t,this.y+=e},t}();e.SPoint=n},4001:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SEquipParser=void 0;const n=i("676a");class s extends n.SParser{}e.SEquipParser=s},4160:function(t,e,i){"use strict";var n=i("23e7"),s=i("17c2");n({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},4203:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SCompositeType=void 0,function(t){t[t["Copy"]=0]="Copy",t[t["DestinationAtop"]=1]="DestinationAtop",t[t["DestinationIn"]=2]="DestinationIn",t[t["DestinationOut"]=3]="DestinationOut",t[t["DestinationOver"]=4]="DestinationOver",t[t["Lighter"]=5]="Lighter",t[t["SourceAtop"]=6]="SourceAtop",t[t["SourceIn"]=7]="SourceIn",t[t["SourceOut"]=8]="SourceOut",t[t["SourceOver"]=9]="SourceOver",t[t["Xor"]=10]="Xor"}(e.SCompositeType||(e.SCompositeType={}))},4292:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAADkElEQVRoBe1ZS08UQRCuGgV8gHLwYoR4Aw56woN/wL9giB6EhMdlMYv+CE88YogJguzNGH6AidEfoInc9WQUHwmJT9bEsOyU1bPTM9090zPNMqySzISk6/FVdVVXd0/tAFA+5QocaAWwXev55Yc1zZbgAvPdoWwXED5pesnk4O5Wpick1GU87gJKxRCNp8qlkCSRMyZx+0rAy3H/36vbrwDgrp4dCV9yQXwA3NP1knPFSXz22PYZMN3ymXgNRKOBHHGT9/IVEyN4V1yabZpMrlia7kjIygT+dZnKCpQVOOAKaO+Boq+4A8aWME+Lr7AzgEDROwUJGonZQ4GqU21s+Dx5YQkQwal4Mvoc0yYV63QbE+fGa1tIMyHqWXrwaFiTGQyR7/kIZ8GHq0D+UKRG+BjRJiF0cQM3NL+8WuUG5KVH8BPR4xbE/jSbez2m1p4AwCU2eGMauPAe4VMbTuiaQLdDvceJL0ITeA3Ekxl/aKIPhW0h6RYBX1Rnp59J3hyFTmBMebt8kQnsIcLjbuwZywtGYASWcZaONc9DrLdvIYQtD3AphiYpPoRNDmSHV3TLP4GbdyYnvyVRSUmlcusrS28urK3Nen9olIAG2Vcf+zqWRMcSH6jK52cwlgDYEwDcnqtML6jgoukw4eeufvk9cAM4WRVf5BZS/XaMLhPo2FJbJiorYFmYjonttxDBSND9ZYTCjRm/Q6HObdwHpl9hb9eTuYmJHxkmkWqxVuunemMMkLgNQXGz9LKfzGuUr9CRyEFI2BMAOs0Gra8MplXIRy0NE/w3DvXGvaXl1evVylTm1ciYa369scH3f78wDKyVIXTvNBR6BkRAPtH6wsbGSdvsQicwQfA20D7kGRXA3/x9M7OZ4x8AXHI6wx+xLhJRUH4ObAC2v09xDPfT4qCWbkDqEJG3Ib1nH7+4GGJL2p9gC/HOUB57Ahy87eOUYh+Qiysr56mBb/nDVl+ou2xiFD7WIe5gFw3Pzcx8UfRWsvWLTN/WhWwhEQBX452cmelohaVMjqpO2LgGL+3NsZAEhFMuv/oz8pw5kcJHOsNGgbiThSWgTknAfaXlydJZTDLF2hlw3fOZHg9RmRbfoVTgEHNIuC4TSCxJhwVlBTq84InpjnwFrPd1IlVDkGi1tT4lo4/KwaVdlcbUGqu9BzRNHiP/oZeKy2/FW2auuNRJAuGR30LtV4D/lWpfl1LjvAJ/ATVDGPliqDSWAAAAAElFTkSuQmCC"},4440:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SSpaceItem=void 0;const n=i("64b5"),s=i("6aaf"),o=i("6aaf"),r=i("f80e");class a extends r.SGraphItem{constructor(t,e){super(t),this.pointArr=[],this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this._highLightFlag=!1,this._showBaseName=!1,this._nameSize=10,this._nameTransform=!1,this._nameColor="#000000",this.data=e,this.zOrder=s.ItemOrder.spaceOrder;let i=this.data.OutLine;this.name=e.Name||"",i&&i.length&&(this.minX=i[0][0].X,this.maxX=this.minX,this.minY=-i[0][0].Y,this.maxY=this.minY,this.pointArr=i.map(t=>{let e=t.map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(e,i)});return e}))}get highLightFlag(){return this._highLightFlag}set highLightFlag(t){this._highLightFlag=t,this.update()}get showBaseName(){return this._showBaseName}set showBaseName(t){this._showBaseName=t,this.update()}get nameSize(){return this._nameSize}set nameSize(t){this._nameSize=t,this.update()}get nameTransform(){return this._nameTransform}set nameTransform(t){this._nameTransform=t,this.update()}get nameColor(){return this._nameColor}set nameColor(t){this._nameColor=t,this.update()}boundingRect(){return new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}contains(t,e){let i=this.pointArr;if(i.length<1||!n.SPolygonUtil.pointIn(t,e,i[0]))return!1;for(let s=1;s{this.addWall(t)}),t.Columns&&t.Columns.forEach(t=>{this.addColumn(t)}),t.Windows&&t.Windows.forEach(t=>{this.addCasement(t)}),t.VirtualWalls&&t.VirtualWalls.forEach(t=>{this.addVirtualWall(t)}),t.Doors&&t.Doors.forEach(t=>{this.addDoor(t)}),t.Spaces&&t.Spaces.forEach(t=>{this.addSpace(t)})}addWall(t){let e=this.factory.createWall(t);this.wallList.push(e)}addColumn(t){let e=this.factory.createColumn(t);this.columnList.push(e)}addCasement(t){let e=this.factory.createWindow(t);this.casementList.push(e)}addVirtualWall(t){let e=this.factory.createVirtualWall(t);this.virtualWallList.push(e)}addDoor(t){let e=this.factory.createDoor(t);this.doorList.push(e)}addSpace(t){let e=this.factory.createSpace(t);this.spaceList.push(e)}}e.SFloorParser=s},"487c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAACQUlEQVRoBe1Yv08UURD+5s4ECcTEYGVCKRQ2BGNjyf9Aw19AFDSxoaWkUZPLWfA3GNTEnkYDBcECK2gMxM5KE2ICyvjdL283+97t5uYeZzGb7N3bb+Z9M/PN7l5uAD9cAVfAFRinAlIavKFNKJ6U+qVyEGzjqazG6GsxQwafyqyvf6kYGP9GhYymAz6/ITggfszzjOtzXOEX11dtX8Esu7bRXuc/XvHyaxuqoSXeJP2meM6SY47fD4nlcxKE4rcpWh95539wbpEluKBlk8Fes60/c17Zi6Yu4k+ggDreYE32s665dUNvkfsxC9nkOdG1ZePn3FsXVQrot7CGFazLToFlVEBHlC009ZgCvO3SDiygyjPQIRC8T5p8VoQ1ecfLnlB9AbM+3XWVAnoELwP7U0K9eCPogOAb1vEpZbYF7meyx+fhlPgICgB2IaKFIKkBZVwMfo2W30KKI5J8SJ1rkL/OuIovUI3+4EYNQcKqYOc1elhwr+PRwNdoYUM5UN6Bco6xengBY5Wfwb0D3gGjAn4LGQU0b/cOmCU0EngHjAKat3sHzBIaCbwDRgHN270DZgmNBGk6IKgb86q8PU0Bypln6OiPC0PWobA0BQB3I9nMRPCh4TQFKB4EM1IsBHEDOPqxSlPvc8j+kfOc24W8WhM+YJGT7e8F25CAvYBtvYNL3GPS88xhiecyk78ZzUfwg7Ydjg336HfCf+VnnBWdRv1LDPYCGvqCiTwviRM3Cz6zI+FbLr7LLa6AK+AK/CcK/AW/f16c00E7aQAAAABJRU5ErkJggg=="},"4ae1":function(t,e,i){var n=i("23e7"),s=i("d066"),o=i("1c0b"),r=i("825a"),a=i("861d"),h=i("7c73"),c=i("0538"),l=i("d039"),u=s("Reflect","construct"),A=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),d=!l((function(){u((function(){}))})),m=A||d;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){o(t),r(e);var i=arguments.length<3?t:o(arguments[2]);if(d&&!A)return u(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var s=i.prototype,l=h(a(s)?s:Object.prototype),m=Function.apply.call(t,l,e);return a(m)?m:l}})},"4b4f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphPointListDelete=void 0;const n=i("f80e");class s extends n.SGraphCommand{constructor(t,e,i,n,s=null){super(t),this.item=e,this.index=s,this.pointList=i,this.pos=n,this.command="SGraphPointListDelete",this.desc="删除折点="+e.id}redo(){null==this.index?this.pointList.pop():this.pointList.splice(this.index,1),this.item.update()}undo(){null!=this.pos&&(null==this.index?this.pointList.push(this.pos):this.pointList.splice(this.index,0,this.pos),this.item.update())}toString(){const t="pointList="+JSON.stringify(this.pointList),e="pos="+JSON.stringify(this.pos),i="index="+this.index;return`${i};\n${e};\n${t}`}}e.SGraphPointListDelete=s},"4c26":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SObjectObserver=e.SObject=e.SMouseEvent=e.SMatrix=e.SStringUtil=e.SStringBuilder=e.SNetUtil=e.SUndoStack=e.SUndoCommand=e.SKeyCode=e.STouchState=e.SMouseButton=void 0;var n=i("c51d");Object.defineProperty(e,"SMouseButton",{enumerable:!0,get:function(){return n.SMouseButton}});var s=i("5803");Object.defineProperty(e,"STouchState",{enumerable:!0,get:function(){return s.STouchState}});var o=i("6357");Object.defineProperty(e,"SKeyCode",{enumerable:!0,get:function(){return o.SKeyCode}});var r=i("826b");Object.defineProperty(e,"SUndoCommand",{enumerable:!0,get:function(){return r.SUndoCommand}});var a=i("0723");Object.defineProperty(e,"SUndoStack",{enumerable:!0,get:function(){return a.SUndoStack}});var h=i("69f3b");Object.defineProperty(e,"SNetUtil",{enumerable:!0,get:function(){return h.SNetUtil}});var c=i("d727");Object.defineProperty(e,"SStringBuilder",{enumerable:!0,get:function(){return c.SStringBuilder}});var l=i("3dd1");Object.defineProperty(e,"SStringUtil",{enumerable:!0,get:function(){return l.SStringUtil}});var u=i("7cb8");Object.defineProperty(e,"SMatrix",{enumerable:!0,get:function(){return u.SMatrix}});var A=i("76fd");Object.defineProperty(e,"SMouseEvent",{enumerable:!0,get:function(){return A.SMouseEvent}});var d=i("2288");Object.defineProperty(e,"SObject",{enumerable:!0,get:function(){return d.SObject}});var m=i("7682");Object.defineProperty(e,"SObjectObserver",{enumerable:!0,get:function(){return m.SObjectObserver}})},"4de4":function(t,e,i){"use strict";var n=i("23e7"),s=i("b727").filter,o=i("1dde"),r=i("ae40"),a=o("filter"),h=r("filter");n({target:"Array",proto:!0,forced:!a||!h},{filter:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,i){"use strict";var n=i("0366"),s=i("7b0b"),o=i("9bdd"),r=i("e95a"),a=i("50c4"),h=i("8418"),c=i("35a1");t.exports=function(t){var e,i,l,u,A,d,m=s(t),p="function"==typeof this?this:Array,f=arguments.length,g=f>1?arguments[1]:void 0,S=void 0!==g,y=c(m),v=0;if(S&&(g=n(g,f>2?arguments[2]:void 0,2)),void 0==y||p==Array&&r(y))for(e=a(m.length),i=new p(e);e>v;v++)d=S?g(m[v],v):m[v],h(i,v,d);else for(u=y.call(m),A=u.next,i=new p;!(l=A.call(u)).done;v++)d=S?o(u,g,[l.value,v],!0):l.value,h(i,v,d);return i.length=v,i}},"4ee8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphScene=void 0;const n=i("4c26"),s=i("64b5"),o=i("b034"),r=i("f37f");class a{constructor(){this.view=null,this.root=new o.SGraphItem,this.grabItem=null,this.hoverItem=null,this.selectContainer=new r.SGraphSelectContainer,this.root.scene=this}addItem(t){t.parent=this.root}removeItem(t){t.parent=null}drawScene(t,e){this.root.onPaint(t,e)}drawBackground(t,e){}drawForeground(t,e){}allItemRect(){let t=null;for(let e of this.root.children)null==t?t=e.boundingRect().translated(e.pos.x,e.pos.y):t.union(e.boundingRect().translated(e.pos.x,e.pos.y));return t}selectedItemRect(){let t=null;for(let e of this.root.children)e.selected&&(null==t?t=e.boundingRect().translated(e.pos.x,e.pos.y):t.union(e.boundingRect().translated(e.pos.x,e.pos.y)));return t}selectedItems(){let t=Array();for(let e of this.root.children)e.selected&&t.push(e);return t}onDoubleClick(t){return null!=this.grabItem?this.grabItem.onDoubleClick(this.toGrabItemMotionEvent(this.grabItem,t)):this.root.onDoubleClick(t)}onMouseDown(t){if(null!=this.grabItem)return this.grabItem.onMouseDown(this.toGrabItemMotionEvent(this.grabItem,t));const e=this.root.onMouseDown(t);return e||this.selectContainer.clear(),e}onMouseMove(t){return null!=this.grabItem?this.grabItem.onMouseMove(this.toGrabItemMotionEvent(this.grabItem,t)):this.root.onMouseMove(t)}onMouseUp(t){return null!=this.grabItem?this.grabItem.onMouseUp(this.toGrabItemMotionEvent(this.grabItem,t)):this.root.onMouseUp(t)}onContextMenu(t){return null!=this.grabItem?this.grabItem.onContextMenu(this.toGrabItemMotionEvent(this.grabItem,t)):this.root.onContextMenu(t)}onKeyDown(t){return null!=this.grabItem?this.grabItem.onKeyDown(t):this.root.onKeyDown(t)}onKeyUp(t){return null!=this.grabItem?this.grabItem.onKeyUp(t):this.root.onKeyUp(t)}toGrabItemMotionEvent(t,e){let i=Object.assign({},e);i.matrix=new n.SMatrix,this.view&&(i.matrix.translate(this.view.origin.x,this.view.origin.y),i.matrix.scale(this.view.scale,this.view.scale),i.matrix.rotate(this.view.rotate)),i.matrix.multiply(t.scene2itemMattrix());let o=new s.SPoint(e.offsetX,e.offsetY).matrixTransform(i.matrix.inversed());return i.x=o.x,i.y=o.y,i}}e.SGraphScene=a},"4f2c":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SArrowStyleType=void 0,function(t){t[t["None"]=0]="None",t[t["Basic"]=1]="Basic",t[t["Triangle"]=2]="Triangle",t[t["Diamond"]=3]="Diamond",t[t["Square"]=4]="Square",t[t["Circle"]=5]="Circle"}(e.SArrowStyleType||(e.SArrowStyleType={}))},"52a7":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGradient=void 0;var n=i("64b5"),s=function(){function t(){this.start=new n.SPoint,this.end=new n.SPoint,this.stopList=[]}return Object.defineProperty(t.prototype,"x1",{get:function(){return this.start.x},set:function(t){this.start.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this.start.y},set:function(t){this.start.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){return this.end.x},set:function(t){this.end.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this.end.y},set:function(t){this.end.y=t},enumerable:!1,configurable:!0}),t.prototype.addColorStop=function(t,e){this.stopList.push(new n.SGradientStop(t,e))},t.prototype.setStart=function(t,e){this.start.x=t,this.start.y=e},t.prototype.setEnd=function(t,e){this.end.x=t,this.end.y=e},t}();e.SGradient=s},"531f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ItemColor=void 0;const n=i("64b5");class s{}e.ItemColor=s,s.wallColor=new n.SColor("#2b2b2b"),s.columnColor=n.SColor.Black,s.virtualWallColor=n.SColor.Black,s.spaceColor=new n.SColor("#f1fffd80"),s.doorColor=new n.SColor("#f5b36f"),s.windowColor=new n.SColor("#fcd6ff"),s.sceneMarkColor=new n.SColor("#00000080"),s.shadeColor=new n.SColor("#00000080"),s.highLightPointColor=new n.SColor("#ff8d00"),s.highLightLineColor=new n.SColor("#409EFF"),s.rectSelectOutColor=new n.SColor("#3e78f9e8"),s.rectSelectInColor=new n.SColor("#8cf2fd73"),s.spaceBorderColor=new n.SColor("#2b2b2b"),s.selectColor=new n.SColor("#1abc9c"),s.spaceHighColor=new n.SColor("#fbb029"),s.zoneUnselectColor=new n.SColor("#cecece"),s.zoneInfectedColor=new n.SColor("#ff0000"),s.zoneInfectedBorder=new n.SColor("#e2675c")},5468:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphAddCommand=void 0;const n=i("c652");class s extends n.SGraphCommand{constructor(t,e){super(t),this.item=e,this.parent=e.parent,this.command="SGraphAddCommand",this.desc="添加对象="+e.id}mergeWith(t){return!1}redo(){this.item.parent=this.parent,this.parent.update()}undo(){this.item.parent=null,this.parent.update()}}e.SGraphAddCommand=s},"546c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABw0lEQVQ4Ec1VzUrDQBDe2QSlCAoF8Wz9AUUICHpQQQPiuU9QDwYL/hxaX6AvYD1ohWo92CfoWYToQQ8KQkEqKPYuQkFBirW760zS1G3xmEOXhNnJfvuxM9/MBhgOpRQ/OD6LmQbvIz8YUiphTcVebdtu0jfXdc3yU3WMczACDNmmkI3U1kYVACR4ZLmTS6WYrYO0eWV4KDJP/vtH/Q7NtLbWngIwN7W9uQrZXGFcSfECDK4VU1dthD+x0MQN4GvkCiUv0JTwLZMfDNy7gnuXgRsTJoX5IwUjsr3dZCYAkc0e5dfx5HHFpZ8KwRiepJTeSZ7ruP3DfAb9ZeLi+kIY894nNKk0WqFalDM9bMXYEvkgwCsbLDB8YBFxOgzLjpF4jLiAauvh8ZlU+78cGLyxCPfX6rKC4o10sP05ldmZSQvILxaLA7XP74W2mi0QnUxG+H3acWr0KVsoRHldzilDmS2IZ0DyRnSw/zaRSHyFLkroIXu9ieemHJWoaPVQSBRsTcfAMCU2MOUPu+KUgbrpwGHxox+nPjep0YWvc7m7A0hNJHUoZ8Com3AgWTcOO2WUCIkr9Bz2PmHo11f4FywJF+Yv4Bck5/OHgzcQTAAAAABJRU5ErkJggg=="},5803:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STouchState=void 0,function(t){t[t["None"]=0]="None",t[t["Move"]=1]="Move",t[t["Zoom"]=2]="Zoom"}(e.STouchState||(e.STouchState={}))},5841:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphLineItem=void 0;const n=i("64b5"),s=i("b034");class o extends s.SGraphItem{constructor(t,e,i,s,o,r=n.SColor.Black,a=1){super(t),this.color=n.SColor.Black,this.width=1,this.x1=e,this.y1=i,this.x2=s,this.y2=o}boundingRect(){let t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),i=Math.max(this.x1,this.x2),s=Math.max(this.y1,this.y2);return new n.SRect(t-this.width/2,e-this.width/2,i-t+this.width,s-e+this.width)}onDraw(t){t.pen=new n.SPen(this.color,this.width),t.drawLine(this.x1,this.y1,this.x2,this.y2)}}e.SGraphLineItem=o},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,i){var n=i("1d80"),s=i("5899"),o="["+s+"]",r=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),h=function(t){return function(e){var i=String(n(e));return 1&t&&(i=i.replace(r,"")),2&t&&(i=i.replace(a,"")),i}};t.exports={start:h(1),end:h(2),trim:h(3)}},"591e":function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.SPainter=void 0;var s=i("4c26"),o=i("64b5"),r=i("4203"),a=i("4f2c"),h=i("7fc16"),c=function(t){function e(e){var i=t.call(this)||this;return e instanceof o.SCanvasView?i.engine=new o.SCanvasPaintEngine(e.canvas):i.engine=e,i.pen=new o.SPen,i.brush=new o.SBrush,i.font=new o.SFont,i.composite=r.SCompositeType.SourceOver,i.shadow=new h.SShadow,i}return n(e,t),Object.defineProperty(e.prototype,"pen",{get:function(){return this.engine.state.pen},set:function(t){this.engine.state.pen=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.engine.state.brush},set:function(t){this.engine.state.brush=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.engine.state.font},set:function(t){this.engine.state.font=t,this.engine.changeFont(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"composite",{get:function(){return this.engine.state._composite},set:function(t){this.engine.state._composite=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadow",{get:function(){return this.engine.state.shadow},set:function(t){this.engine.state.shadow=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.engine.state.matrix},enumerable:!1,configurable:!0}),e.prototype.save=function(){this.engine.save()},e.prototype.restore=function(){this.engine.restore()},e.prototype.translate=function(t,e){this.engine.translate(t,e)},e.prototype.scale=function(t,e){this.engine.scale(t,e)},e.prototype.rotate=function(t){this.engine.rotate(t)},e.prototype.transform=function(t,e,i,n,s,o){this.engine.transform(t,e,i,n,s,o)},e.prototype.setTransform=function(t,e,i,n,s,o){this.engine.setTransform(t,e,i,n,s,o)},e.prototype.resetTransform=function(){this.engine.resetTransform()},e.prototype.setClip=function(t){this.engine.setClip(t)},e.prototype.clearRect=function(t,e,i,n){t instanceof o.SRect?this.engine.clearRect(t):t instanceof o.SPoint&&e instanceof o.SPoint||t instanceof o.SPoint&&e instanceof o.SSize?this.engine.clearRect(new o.SRect(t,e)):this.engine.clearRect(new o.SRect(t,e,i,n))},e.prototype.drawRect=function(t,e,i,n){t instanceof o.SRect?this.engine.drawRect(t):t instanceof o.SPoint&&e instanceof o.SPoint||t instanceof o.SPoint&&e instanceof o.SSize?this.engine.drawRect(new o.SRect(t,e)):this.engine.drawRect(new o.SRect(t,e,i,n))},e.prototype.drawCircle=function(t,e,i){this.engine.drawCircle(t,e,i)},e.prototype.drawEllipse=function(t,e,i,n){this.engine.drawEllipse(t,e,i,n)},e.prototype.drawArc=function(t,e,i,n,s,r){t instanceof o.SRect?this.engine.drawArc(t.x,t.y,t.width,t.height,e,i):this.engine.drawArc(t,e,i,n,s,r)},e.prototype.drawChord=function(t,e,i,n,s,r){t instanceof o.SRect?this.engine.drawChord(t.x,t.y,t.width,t.height,e,i):this.engine.drawChord(t,e,i,n,s,r)},e.prototype.drawPie=function(t,e,i,n,s,r){t instanceof o.SRect?this.engine.drawPie(t.x,t.y,t.width,t.height,e,i):this.engine.drawPie(t,e,i,n,s,r)},e.prototype.drawLine=function(t,e,i,n){t instanceof o.SLine?this.engine.drawLine(t):t instanceof o.SPoint&&e instanceof o.SPoint?this.engine.drawLine(new o.SLine(t,e)):this.engine.drawLine(new o.SLine(t,e,i,n))},e.prototype.drawPolyline=function(t){this.engine.drawPolyline(t)},e.prototype.drawPolygon=function(t){this.engine.drawPolygon(t)},e.prototype.drawPath=function(t){this.engine.drawPath(t)},e.prototype.drawText=function(t,e,i,n){this.engine.drawText(t,e,i,n)},e.prototype.drawImage=function(t,e,i,n,s){this.engine.drawImage(t,e,i,n,s)},e.prototype.toPx=function(t){return t/this.engine.state.matrix.a},e.prototype.textWidth=function(t){return this.engine.textWidth(t)},e.prototype.drawArrowLine=function(t,e,i,n,s){var r,h;t instanceof o.SLine?(r=t,h=e):t instanceof o.SPoint&&e instanceof o.SPoint?(r=new o.SLine(t,e),h=i):(r=new o.SLine(t,e,i,n),h=s),this.engine.drawLine(r),h&&(h.begin&&(h.begin==a.SArrowStyleType.Basic?this.drawBasicArrow(r,!1):h.begin==a.SArrowStyleType.Triangle?this.drawTriangleArrow(r,!1):h.begin==a.SArrowStyleType.Diamond?this.drawDiamondArrow(r,!1):h.begin==a.SArrowStyleType.Square?this.drawSquareArrow(r,!1):h.begin==a.SArrowStyleType.Circle&&this.drawCircleArrow(r,!1)),h.end&&(h.end==a.SArrowStyleType.Basic?this.drawBasicArrow(r,!0):h.end==a.SArrowStyleType.Triangle?this.drawTriangleArrow(r,!0):h.end==a.SArrowStyleType.Diamond?this.drawDiamondArrow(r,!0):h.end==a.SArrowStyleType.Square?this.drawSquareArrow(r,!0):h.end==a.SArrowStyleType.Circle&&this.drawCircleArrow(r,!0)))},e.prototype.drawBasicArrow=function(t,e){void 0===e&&(e=!0);var i=5,n=i*Math.cos(Math.PI/4),s=i*Math.sin(Math.PI/4),r=Math.atan(t.dy/t.dx),a=t.dx>=0?r:r+Math.PI;e?(this.save(),this.translate(t.x2,t.y2),this.rotate(a),this.engine.drawPolyline([new o.SPoint(-n,s),new o.SPoint(0,0),new o.SPoint(-n,-s)]),this.restore()):(this.save(),this.translate(t.x1,t.y1),this.rotate(a),this.engine.drawPolyline([new o.SPoint(n,s),new o.SPoint(0,0),new o.SPoint(n,-s)]),this.restore())},e.prototype.drawTriangleArrow=function(t,e){void 0===e&&(e=!0);var i=5,n=i*Math.cos(Math.PI/12),s=i*Math.sin(Math.PI/12),r=Math.atan(t.dy/t.dx),a=t.dx>=0?r:r+Math.PI;e?(this.save(),this.translate(t.x2,t.y2),this.rotate(a),this.engine.drawPolygon([new o.SPoint(-n,s),new o.SPoint(0,0),new o.SPoint(-n,-s)]),this.restore()):(this.save(),this.translate(t.x1,t.y1),this.rotate(a),this.engine.drawPolygon([new o.SPoint(n,s),new o.SPoint(0,0),new o.SPoint(n,-s)]),this.restore())},e.prototype.drawDiamondArrow=function(t,e){void 0===e&&(e=!0);var i=2,n=i*Math.cos(Math.PI/4),s=i*Math.sin(Math.PI/4),r=Math.atan(t.dy/t.dx),a=t.dx>=0?r:r+Math.PI;e?(this.save(),this.translate(t.x2,t.y2),this.rotate(a),this.engine.drawPolygon([new o.SPoint(-n,s),new o.SPoint(0,0),new o.SPoint(-n,-s),new o.SPoint(-Math.sqrt(2)*i,0)]),this.restore()):(this.save(),this.translate(t.x1,t.y1),this.rotate(a),this.engine.drawPolygon([new o.SPoint(n,s),new o.SPoint(0,0),new o.SPoint(n,-s),new o.SPoint(Math.sqrt(2)*i,0)]),this.restore())},e.prototype.drawSquareArrow=function(t,e){void 0===e&&(e=!0);var i=2,n=Math.atan(t.dy/t.dx),s=t.dx>=0?n:n+Math.PI;e?(this.save(),this.translate(t.x2,t.y2),this.rotate(s),this.engine.drawPolygon([new o.SPoint(-i,i/2),new o.SPoint(0,i/2),new o.SPoint(0,-i/2),new o.SPoint(-i,-i/2)]),this.restore()):(this.save(),this.translate(t.x1,t.y1),this.rotate(s),this.engine.drawPolygon([new o.SPoint(0,i/2),new o.SPoint(i,i/2),new o.SPoint(i,-i/2),new o.SPoint(0,-i/2)]),this.restore())},e.prototype.drawCircleArrow=function(t,e){void 0===e&&(e=!0);var i=2,n=Math.atan(t.dy/t.dx),s=t.dx>=0?n:n+Math.PI;e?(this.save(),this.translate(t.x2,t.y2),this.rotate(s),this.engine.drawCircle(-i/2,0,i/2),this.restore()):(this.save(),this.translate(t.x1,t.y1),this.rotate(s),this.engine.drawCircle(i/2,0,i/2),this.restore())},e}(s.SObject);e.SPainter=c},"5a34":function(t,e,i){var n=i("44e7");t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5a67":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLayerItem=void 0;const n=i("75f3");class s extends n.SFloorItem{}e.SLayerItem=s},"5d41":function(t,e,i){var n=i("23e7"),s=i("861d"),o=i("825a"),r=i("5135"),a=i("06cf"),h=i("e163");function c(t,e){var i,n,l=arguments.length<3?t:arguments[2];return o(t)===l?t[e]:(i=a.f(t,e))?r(i,"value")?i.value:void 0===i.get?void 0:i.get.call(l):s(n=h(t))?c(n,e,l):void 0}n({target:"Reflect",stat:!0},{get:c})},"5e56":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SAspectRatioMode=void 0,function(t){t[t["IgnoreAspectRatio"]=0]="IgnoreAspectRatio",t[t["KeepAspectRatio"]=1]="KeepAspectRatio",t[t["KeepAspectRatioByExpanding"]=2]="KeepAspectRatioByExpanding"}(e.SAspectRatioMode||(e.SAspectRatioMode={}))},"5ea6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAACj0lEQVRoBe1Zv08UQRT+3t6qIMQfkcqEUi1sDMTG0v/BhlCd5KKyYg4KY0dpIyTmKNaazoAk9jQQLYwWWmFjIHZWGNEEznm+ueNk2Zvd2TDsXTPT7Ox73/v1vZm95B3gl2fAM+AZ6CcDZAv+ohE3wJi24crSB0RxPao9yPIfZCmO5DR0tO/9jplz44e2lKRFw9wNahLhA4O2RL9DxHtQ9AdEqg3lUcX8NG1GoEXBf9Ny8Rkg4EGwJohHRXSdGbfleSwnwQ1rfNY6BjaDOOGA9kGYP3Pp/NLM5ORPMx5YbMRjousugCqv69H991l2L5eXLzR39x5BYV4SP6dxUnQifrelvYA2Qx3LibmottJ5Oe3nISnPFxqvtsC8eug/twDrHWD878Da3OPykk+SMRvV3hBRmyjKvwPWAuRcty4RVYKFZJCy9xVCKx5z/hGyFyCXSM7h9/rDqc2yk076fzJdeyfkbeuPSFKe3lsLIGYpAOvSUrlXvV0EXofrEWLCZwT0trepd6K14n6R3wLh0LwyFWZ4Man+jCrGxzQ6oPBO3mc0jS/ybj1CRZz0E+ML6Cf7OrbvgO+AIwP+CDkS6GzuO+BMoaMD3wFHAp3NfQecKXR04DvgSKCzue+AM4WODkrpgAwAKo55FTYvpQBwMGjMgFVrXGjUnVBYSgEK6qopHwW+YpK7yEopQIYg46akZKJ9yyR3kZ36WEUGszdlnroh8/PL6cT0hC8cCsdmqtUfad1J350LiON45PdBeA3094bM9+/K+O6eTJYHMhMi7MrQfEUuuowO8fWsop0omtrOxFsU9vG6xcGvA3oGbs7qfywKLcZF+UOjKtO2qsbvEz7Jw3jkCvnzIM+AZ8Az0FcG/gEyCJdTYEyTpQAAAABJRU5ErkJggg=="},6232:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STextDirection=void 0,function(t){t[t["Inherit"]=0]="Inherit",t[t["LTR"]=1]="LTR",t[t["RTL"]=2]="RTL"}(e.STextDirection||(e.STextDirection={}))},6317:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphPropertyCommand=void 0;const n=i("c652");class s extends n.SGraphCommand{constructor(t,e,i,n,s){super(t),this.item=e,this.propName=i,this.oldProp=n,this.newProp=s,this.command="SGraphPropertyCommand",this.command="更新属性="+e.id}redo(){this.item[this.propName]=this.newProp,this.item.update()}undo(){this.item[this.propName]=this.oldProp,this.item.update()}toString(){const t="propName="+this.propName,e="oldProp="+JSON.stringify(this.oldProp),i="newProp="+JSON.stringify(this.newProp);return`${t};\n${e};\n${i}`}}e.SGraphPropertyCommand=s},6357:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SKeyCode=void 0,function(t){t[t["Enter"]=13]="Enter",t[t["Esc"]=27]="Esc",t[t["Delete"]=46]="Delete",t[t["Z"]=90]="Z"}(e.SKeyCode||(e.SKeyCode={}))},"63d3":function(t,e,i){},"64b5":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SArrowStyleType=e.SRadialGradient=e.SPen=e.SPath2D=e.SPainter=e.SLinearGradient=e.SGradientStop=e.SGradient=e.SFont=e.SColor=e.SCanvasView=e.SBrush=e.SPolygonUtil=e.SSize=e.SRect=e.SPoint=e.SLine=e.STextDirection=e.STextBaseLine=e.STextAlign=e.SPaintEngineType=e.SLineJoinStyle=e.SLineCapStyle=e.SBrushType=e.SAspectRatioMode=e.SSvgPaintEngine=e.SPaintState=e.SPaintEngine=e.SCanvasPaintEngine=void 0;var n=i("ef63");Object.defineProperty(e,"SCanvasPaintEngine",{enumerable:!0,get:function(){return n.SCanvasPaintEngine}});var s=i("fca3");Object.defineProperty(e,"SPaintEngine",{enumerable:!0,get:function(){return s.SPaintEngine}});var o=i("f1f6");Object.defineProperty(e,"SPaintState",{enumerable:!0,get:function(){return o.SPaintState}});var r=i("75d8");Object.defineProperty(e,"SSvgPaintEngine",{enumerable:!0,get:function(){return r.SSvgPaintEngine}});var a=i("5e56");Object.defineProperty(e,"SAspectRatioMode",{enumerable:!0,get:function(){return a.SAspectRatioMode}});var h=i("3bc4");Object.defineProperty(e,"SBrushType",{enumerable:!0,get:function(){return h.SBrushType}});var c=i("7155");Object.defineProperty(e,"SLineCapStyle",{enumerable:!0,get:function(){return c.SLineCapStyle}});var l=i("95ab");Object.defineProperty(e,"SLineJoinStyle",{enumerable:!0,get:function(){return l.SLineJoinStyle}});var u=i("9a78");Object.defineProperty(e,"SPaintEngineType",{enumerable:!0,get:function(){return u.SPaintEngineType}});var A=i("1bcc");Object.defineProperty(e,"STextAlign",{enumerable:!0,get:function(){return A.STextAlign}});var d=i("edc2");Object.defineProperty(e,"STextBaseLine",{enumerable:!0,get:function(){return d.STextBaseLine}});var m=i("6232");Object.defineProperty(e,"STextDirection",{enumerable:!0,get:function(){return m.STextDirection}});var p=i("b1b8");Object.defineProperty(e,"SLine",{enumerable:!0,get:function(){return p.SLine}});var f=i("3f8a");Object.defineProperty(e,"SPoint",{enumerable:!0,get:function(){return f.SPoint}});var g=i("f2a9");Object.defineProperty(e,"SRect",{enumerable:!0,get:function(){return g.SRect}});var S=i("ab10");Object.defineProperty(e,"SSize",{enumerable:!0,get:function(){return S.SSize}});var y=i("f412");Object.defineProperty(e,"SPolygonUtil",{enumerable:!0,get:function(){return y.SPolygonUtil}});var v=i("1f2d");Object.defineProperty(e,"SBrush",{enumerable:!0,get:function(){return v.SBrush}});var b=i("ecd9");Object.defineProperty(e,"SCanvasView",{enumerable:!0,get:function(){return b.SCanvasView}});var w=i("125a");Object.defineProperty(e,"SColor",{enumerable:!0,get:function(){return w.SColor}});var x=i("a237");Object.defineProperty(e,"SFont",{enumerable:!0,get:function(){return x.SFont}});var C=i("52a7");Object.defineProperty(e,"SGradient",{enumerable:!0,get:function(){return C.SGradient}});var P=i("1fdd");Object.defineProperty(e,"SGradientStop",{enumerable:!0,get:function(){return P.SGradientStop}});var I=i("9f44");Object.defineProperty(e,"SLinearGradient",{enumerable:!0,get:function(){return I.SLinearGradient}});var E=i("591e");Object.defineProperty(e,"SPainter",{enumerable:!0,get:function(){return E.SPainter}});var O=i("db5a");Object.defineProperty(e,"SPath2D",{enumerable:!0,get:function(){return O.SPath2D}});var M=i("df85");Object.defineProperty(e,"SPen",{enumerable:!0,get:function(){return M.SPen}});var B=i("3920");Object.defineProperty(e,"SRadialGradient",{enumerable:!0,get:function(){return B.SRadialGradient}});var L=i("4f2c");Object.defineProperty(e,"SArrowStyleType",{enumerable:!0,get:function(){return L.SArrowStyleType}})},6547:function(t,e,i){var n=i("a691"),s=i("1d80"),o=function(t){return function(e,i){var o,r,a=String(s(e)),h=n(i),c=a.length;return h<0||h>=c?t?"":void 0:(o=a.charCodeAt(h),o<55296||o>56319||h+1===c||(r=a.charCodeAt(h+1))<56320||r>57343?t?a.charAt(h):o:t?a.slice(h,h+2):r-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,i){var n=i("861d"),s=i("e8b5"),o=i("b622"),r=o("species");t.exports=function(t,e){var i;return s(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!s(i.prototype)?n(i)&&(i=i[r],null===i&&(i=void 0)):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},"676a":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SParser=void 0;const n=i("6aaf");class s{constructor(t=null){this.factory=new n.SItemFactory,t&&(this.factory=t)}}e.SParser=s},"69f3b":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SNetUtil=void 0;var n=function(){function t(){}return t.downLoad=function(t,e){var i=document.createElement("a");i.download=t,i.href=e,document.body.appendChild(i),i.click(),i.remove()},t}();e.SNetUtil=n},"6aaf":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SBoardItem=e.SRectSelectItem=e.SPolygonItem=e.SItemStatus=e.SRelationState=e.SIconTextItem=e.SBigParser=e.SEquipParser=e.SZoneParser=e.STopologyParser=e.SFloorParser=e.SParser=e.SItemFactory=e.Transparency=e.ItemOrder=e.ItemColor=e.SVerticalRelation=e.STooltipItem=e.SRelation=e.SPolylineItem=e.SLineItem=e.SLineRelation=e.SLayerItem=e.SFloorItem=e.SCurveRelation=e.SCompassItem=void 0;const n=i("3a93");Object.defineProperty(e,"SCompassItem",{enumerable:!0,get:function(){return n.SCompassItem}});const s=i("7fe8");Object.defineProperty(e,"SCurveRelation",{enumerable:!0,get:function(){return s.SCurveRelation}});const o=i("75f3");Object.defineProperty(e,"SFloorItem",{enumerable:!0,get:function(){return o.SFloorItem}});const r=i("5a67");Object.defineProperty(e,"SLayerItem",{enumerable:!0,get:function(){return r.SLayerItem}});const a=i("e9ec");Object.defineProperty(e,"SLineRelation",{enumerable:!0,get:function(){return a.SLineRelation}});const h=i("042d");Object.defineProperty(e,"SRelation",{enumerable:!0,get:function(){return h.SRelation}});const c=i("bf90");Object.defineProperty(e,"STooltipItem",{enumerable:!0,get:function(){return c.STooltipItem}});const l=i("ca0c");Object.defineProperty(e,"SVerticalRelation",{enumerable:!0,get:function(){return l.SVerticalRelation}});const u=i("531f");Object.defineProperty(e,"ItemColor",{enumerable:!0,get:function(){return u.ItemColor}});const A=i("b475");Object.defineProperty(e,"Transparency",{enumerable:!0,get:function(){return A.Transparency}});const d=i("7683");Object.defineProperty(e,"ItemOrder",{enumerable:!0,get:function(){return d.ItemOrder}});const m=i("02d2");Object.defineProperty(e,"SItemFactory",{enumerable:!0,get:function(){return m.SItemFactory}});const p=i("78c2");Object.defineProperty(e,"SBigParser",{enumerable:!0,get:function(){return p.SBigParser}});const f=i("4001");Object.defineProperty(e,"SEquipParser",{enumerable:!0,get:function(){return f.SEquipParser}});const g=i("0c4f");Object.defineProperty(e,"SZoneParser",{enumerable:!0,get:function(){return g.SZoneParser}});const S=i("f984");Object.defineProperty(e,"STopologyParser",{enumerable:!0,get:function(){return S.STopologyParser}});const y=i("461d");Object.defineProperty(e,"SFloorParser",{enumerable:!0,get:function(){return y.SFloorParser}});const v=i("676a");Object.defineProperty(e,"SParser",{enumerable:!0,get:function(){return v.SParser}});const b=i("d452");Object.defineProperty(e,"SIconTextItem",{enumerable:!0,get:function(){return b.SIconTextItem}});const w=i("de8f");Object.defineProperty(e,"SPolylineItem",{enumerable:!0,get:function(){return w.SPolylineItem}});const x=i("bec8");Object.defineProperty(e,"SLineItem",{enumerable:!0,get:function(){return x.SLineItem}});const C=i("fca1");Object.defineProperty(e,"SRelationState",{enumerable:!0,get:function(){return C.SRelationState}});const P=i("898c");Object.defineProperty(e,"SItemStatus",{enumerable:!0,get:function(){return P.SItemStatus}});const I=i("1271");Object.defineProperty(e,"SPolygonItem",{enumerable:!0,get:function(){return I.SPolygonItem}});const E=i("b631");Object.defineProperty(e,"SRectSelectItem",{enumerable:!0,get:function(){return E.SRectSelectItem}});const O=i("9fce");Object.defineProperty(e,"SBoardItem",{enumerable:!0,get:function(){return O.SBoardItem}})},"6d58":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphPointListUpdate=void 0;const n=i("f80e");class s extends n.SGraphCommand{constructor(t,e,i,n,s,o){super(t),this.item=e,this.old=n,this.pos=s,this.index=o,this.pointList=i,this.command="SGraphPointListUpdate",this.desc="更新折点="+e.id}redo(){this.pointList[this.index].x=this.pos.x,this.pointList[this.index].y=this.pos.y,this.item.update()}undo(){this.pointList[this.index].x=this.old.x,this.pointList[this.index].y=this.old.y,this.item.update()}toString(){const t="pointList="+JSON.stringify(this.pointList),e="old="+JSON.stringify(this.old),i="pos="+JSON.stringify(this.pos),n="index="+this.index;return`${n};\n${e};\n${i};\n${t}`}}e.SGraphPointListUpdate=s},"6f34":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEYElEQVRoBe1Y3YtVVRT/rTuOiREmiuNDDz0F9qFJJkX0IL5EL31QFkSRNjmO49yysoggzRr6jjx3nJqifKmgCPoDIqiHnsqHSCRFRUqZQAhqzGnGm6vfvnPPPnufzrlz77nn5BBnw+Ws9dt7r6+99t5rX6BsZQTKCJQR+H9HYFTvwvvaV5STlaIEN+SO6xJcwBjO4e2i9BTrwDT2QrGSxt+PfXpbEU5IEUIbMgNdw+9BOtDT1HESi3ANBuRcnjqLWQFVE5j9jvHG5isxjT2GyLMVswI13czc/zDB0DoE61CVHxL6MkH5r8ABvZyRfyXFmgXE34NqbnpzE2QN/gMjdGCF5QXnLW0IxXoEGPKwLph8UyjQtTTwe9oTBaaC54mt5u8ex85JLMQqDMppB8tERooyTXcmzW7cMSKRTMExGv4aLkGVuf+7M/oyrsuow2cmI2WZRTQnjmILjb3JE6MY5oad5tE5QfzZWN+dvBvu8LAMTD4pNKZLGdGj1L/cseELPCZ3W96sUA3f0smbLSY4hUtxNR6RSYt1SOSzAnW8TL2R8cLiYREe92wRUfRiK1Mp2tSKK/AnXvLGdch070BN1zGqj8b0jjBtfo5h4KY9RAfe8HDFDuzXGz2sA6Y7B8x5rrxx/Y17lNWPb6RrUB9epBPHHaiCOu+GzzQsOZyuucnuHAjQTwfWx9QMY5PMxLCI3SRTPKcGI6BBXY8J7IxhbbHZN/GoLmO5cIQOLLOaBJ/z1LnX8q2IQD/i3AfsELNvelnsDcpJi7VBZF+BC9y4rvHgduzBE23oDIeYiP8WMpS1GDONdLRQO0Q2BwI1adPvKRDm9pD84mGtmKqc4V7YFRtyO2p6XwxryXbuwOzGHWPEovQT/MTb9q2WmpI6h3GAUr7xupSvN1MQttk6d6CGAcq+wZNf4VE4INH57nW2YMzdsIDyhC+FsJkX3GRqNRuOst/OHBhXc1mN2NmGEHyKHfKVh3XCbJcjlGEuQrdtZSrd4gJpdGcOTONVps5SK0xwlifHk5bPSvTRAZOGYTPpqRjHuPaGUNq3fQcCNYXaZk+Q4oU8SuLmvbGtYXaoQHmk/oWnQzbtG23EtBEGN7fkr/iOUVlrhwkO4zqswQapW6xbItAPqGOLFSN0oYdahuSYxWJEeyswgW2e8UaI8FWVp/FG5mIeq4Izhmw0ZUlYx7shm/Sd24F3dAUnxivGTzAsXycJ7ArrF3OxxUuKjQj0oTS5czswwxcV4J7Lk4zLU2kCu8ar8jFlfOnJUbwJU7oktNYOmKNM4Htfwe7mCytBXE5QL1MWmHKkLWfdlVjhpjtgNq4plf0b90dcy3dV0W27nGDFutdTo3iYT9ANHkYm/RQKtErj98UnXFReGs/W1Y13dtOQ5BWY/Tvcj8BFtbypXHEVg/qca0qyA1N4nQOXuAPnEf0Mn6CrQnv+7UCgt9L4B8MB8/C7EH+zzJj9H2oemleaVEagjEAZgTIC/2UE/gGodwxXdeYHTQAAAABJRU5ErkJggg=="},7155:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLineCapStyle=void 0,function(t){t[t["Butt"]=0]="Butt",t[t["Round"]=1]="Round",t[t["Square"]=2]="Square"}(e.SLineCapStyle||(e.SLineCapStyle={}))},7156:function(t,e,i){var n=i("861d"),s=i("d2bb");t.exports=function(t,e,i){var o,r;return s&&"function"==typeof(o=e.constructor)&&o!==i&&n(r=o.prototype)&&r!==i.prototype&&s(t,r),t}},"746f":function(t,e,i){var n=i("428f"),s=i("5135"),o=i("e538"),r=i("9bf2").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});s(e,t)||r(e,t,{value:o.f(t)})}},7484:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SWindowItem=void 0;const n=i("64b5"),s=i("6aaf"),o=i("6aaf"),r=i("f80e");class a extends r.SGraphItem{constructor(t,e){super(t),this.pointArr=[],this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this.data=e,this.zOrder=s.ItemOrder.windowOrder,this.data.OutLine.length&&(this.pointArr=this.data.OutLine[0].map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(t.X,-t.Y)}))}boundingRect(){return new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onDraw(t){t.pen.color=o.ItemColor.windowColor,t.pen.lineWidth=t.toPx(1),t.drawPolyline(this.pointArr)}}e.SWindowItem=a},"74ad":function(t,e,i){"use strict";var n=i("a18d"),s=i.n(n);s.a},"75ae":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABVklEQVRoBe1XbQ7CIAwtxnu50+gv4xH0Cou/9DTzYiJIwspHxhYbwfn4sbQrK32Pl0GJMMAAGAADYOCfGVAe/FV39KTO+y0bGxroqAZb4tbX6Yo/e79l4/kubrDPzdv84ce4AxyEogdps00tDWXkrWkXl5QHYIs/qUs8uarfa1tPAmClEuJU9/rG3UX2SR38/DgPj/lJy428hMI8+9Bd5I0AiOI8PLYoKZ/8BxIiunPEH9hSeYISyhIS0qr5q4lIJqjeOCuVkD003H83BlzPdwdZsn5eQu7ESw6N5OtvvtD5xVYkIXtFdbe8PNSW3tpaMRphAB1ZlY1AR1aDdnRkNVifsWb+KsE/jDspHivZ/AYa5+GxUp6JeBlA2klNpEtC/AqNjiyhx7yYswNSnZRUngBHGYCQVtGRBbyPTn4H0JGNDIlZ6MjEqBRIhI5MgESkAANgQIaBF3JwSW+PHKZWAAAAAElFTkSuQmCC"},"75b0":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAAiUlEQVRoBe3YMQ7CMBBE0TXivpyFE4eelL9YkF5KSztO3thNZjwECBAgQIDAnsCZ93Xtbd93fvSI3QQfsOs/87y9wOuc29ovLXzdWUdouxwNaCAKOEIRMI9rIBPGAA1EwDyugUwYAzQQAfO4BjJhDNBABMzj/gtlwhjgDkRA4wQIECBAgMBfC3wAlo8IV8DRXQAAAAAASUVORK5CYII="},"75d8":function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.SSvgPaintEngine=void 0;var s=i("4c26"),o=i("db5a"),r=i("64b5"),a=function(t){function e(e,i){var n=t.call(this)||this;return n._builder=new s.SStringBuilder,n.version="1.1",n.width=0,n.height=0,n.width=e,n.height=i,n._builder.append(""),n._builder.append(''),n._builder.append(''),n}return n(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return r.SPaintEngineType.SVG},enumerable:!1,configurable:!0}),e.prototype.toSvg=function(){return this._builder.toString("\n")+"\n"},e.prototype.setClip=function(t){},e.prototype.clearRect=function(t){},e.prototype.drawRect=function(t){this._builder.append('")},e.prototype.drawCircle=function(t,e,i){this._builder.append('")},e.prototype.drawEllipse=function(t,e,i,n){this._builder.append('")},e.prototype.drawArc=function(t,e,i,n,s,r){var a=o.SPath2D.arc(t,e,i,n,s,r);this._builder.append('")},e.prototype.drawChord=function(t,e,i,n,s,r){var a=o.SPath2D.chord(t,e,i,n,s,r);this._builder.append('")},e.prototype.drawPie=function(t,e,i,n,s,r){var a=o.SPath2D.pie(t,e,i,n,s,r);this._builder.append('")},e.prototype.drawLine=function(t){this._builder.append('")},e.prototype.drawPolyline=function(t){this._builder.append('")},e.prototype.drawPolygon=function(t){this._builder.append('")},e.prototype.drawPath=function(t){this._builder.append('")},e.prototype.drawText=function(t,e,i,n){this._builder.append('"+t+">")},e.prototype.drawImage=function(t,e,i,n,s){},e.prototype.textWidth=function(t){return 0},e.prototype.changeFont=function(t){},e.prototype.getSvgMatrix=function(){return'transform="matrix('+this.state.matrix.a+", "+this.state.matrix.b+", "+this.state.matrix.c+", "+this.state.matrix.d+", "+this.state.matrix.e+", "+this.state.matrix.f+')"'},e.pointsToStr=function(t){for(var e=new s.SStringBuilder,i=0,n=t;it.length)&&(e=t.length);for(var i=0,n=new Array(e);in?(e=this.height,t=n*e):i0&&t!=this._width){var e=this._width;this._width=t,this.onResize(new Tt["SSize"](e,this._height),new Tt["SSize"](this._width,this._height))}}},{key:"height",get:function(){return this._height},set:function(t){if(t>0&&t!=this._height){var e=this._height;this._height=t,this.onResize(new Tt["SSize"](this._width,e),new Tt["SSize"](this._width,this._height))}}},{key:"status",get:function(){return this._status},set:function(t){var e=this._status,i=t;this._status=t,this.$emit("StatusChange",e,i),this.update()}}]),i}(Lt));i("99af"),i("d81d"),i("a9e3"),i("aff5"),i("e6e1");function _t(t,e,i){return _t=Pt()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var s=Function.bind.apply(t,n),o=new s;return i&&xt(o,i.prototype),o},_t.apply(null,arguments)}function jt(t){if(Array.isArray(t))return At(t)}function Gt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Nt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yt(t){return jt(t)||Gt(t)||dt(t)||Nt()}var Qt=i("ad3d"),Ft=function(t){Ct(i,t);var e=Ot(i);function i(t,n){var s;return ft(this,i),s=e.call(this,t),s.minX=Number.MAX_SAFE_INTEGER,s.maxX=Number.MIN_SAFE_INTEGER,s.minY=Number.MAX_SAFE_INTEGER,s.maxY=Number.MIN_SAFE_INTEGER,s._line=[],s._verAndLeve=!1,s._status=Bt["SItemStatus"].Normal,s._strokeColor=Tt["SColor"].Black,s._lineStyle=Mt["SLineStyle"].Solid,s._fillColor=Tt["SColor"].White,s._activeFillColor=new Tt["SColor"]("#2196f3"),s._lineWidth=1,s.dis=5,s.sceneDis=5,s.curIndex=-1,s.curPoint=null,s.undoStack=new Rt["SUndoStack"],n?n instanceof Tt["SPoint"]?s.line.push(n):s.line=n:s.line=[],s}return St(i,[{key:"addPoint",value:function(t){this.line.length<2?(this.line.push(t),this.recordAction(Mt["SGraphPointListInsert"],[this.line,t])):(this.line[1]=t,this.recordAction(Mt["SGraphPointListInsert"],[this.line,t,1]),this.status=Bt["SItemStatus"].Normal,this.releaseItem(),this.$emit("finishCreated")),this.update()}},{key:"onDoubleClick",value:function(t){return this.status==Bt["SItemStatus"].Normal?(this.status=Bt["SItemStatus"].Edit,this.grabItem(this)):this.status==Bt["SItemStatus"].Edit&&(this.status=Bt["SItemStatus"].Normal,this.releaseItem()),this.update(),!0}},{key:"onMouseDown",value:function(t){if(this.curIndex=-1,this.curPoint=null,(t.shiftKey||this._verAndLeve)&&(t=this.compare(t)),t.buttons==Rt["SMouseButton"].LeftButton){if(this.status==Bt["SItemStatus"].Normal)return wt(vt(i.prototype),"onMouseDown",this).call(this,t);if(this.status==Bt["SItemStatus"].Edit)this.findNearestPoint(new Tt["SPoint"](t.x,t.y));else if(this.status==Bt["SItemStatus"].Create)return this.addPoint(new Tt["SPoint"](t.x,t.y)),!0}return!0}},{key:"onMouseUp",value:function(t){if(this.status==Bt["SItemStatus"].Edit){if(this.curIndex>-1){var e=new Tt["SPoint"](this.line[this.curIndex].x,this.line[this.curIndex].y);this.recordAction(Mt["SGraphPointListUpdate"],[this.line,this.curPoint,e,this.curIndex])}}else if(this.status==Bt["SItemStatus"].Normal)return this.moveToOrigin(this.x,this.y),wt(vt(i.prototype),"onMouseUp",this).call(this,t);return this.curIndex=-1,this.curPoint=null,!0}},{key:"onKeyUp",value:function(t){27==t.keyCode&&(this.status==Bt["SItemStatus"].Edit?(this.status=Bt["SItemStatus"].Normal,this.releaseItem()):this.status==Bt["SItemStatus"].Create&&(this.update(),this.releaseItem(),this.parent=null))}},{key:"onMouseMove",value:function(t){if((t.shiftKey||this._verAndLeve)&&(t=this.compare(t)),this.status==Bt["SItemStatus"].Create)this.line[0]instanceof Tt["SPoint"]&&(this.line[1]=new Tt["SPoint"](t.x,t.y));else{if(this.status!=Bt["SItemStatus"].Edit)return wt(vt(i.prototype),"onMouseMove",this).call(this,t);-1!=this.curIndex&&(this.line[this.curIndex].x=t.x,this.line[this.curIndex].y=t.y)}return this.update(),!0}},{key:"findNearestPoint",value:function(t){for(var e=this.sceneDis,i=0;ii?t.x=e.x:t.y=e.y}return t}},{key:"contains",value:function(t,e){if(2==this.line.length){var i=new Tt["SPoint"](t,e);if(Qt["SMathUtil"].pointToLine(i,new Tt["SLine"](this.line[0],this.line[1])).MinDist.maxX&&(t.maxX=i),n>t.maxY&&(t.maxY=n)}))),new Tt["SRect"](this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}},{key:"onDraw",value:function(t){var e=this;this.sceneDis=t.toPx(this.dis),t.pen.lineWidth=t.toPx(this.lineWidth),t.pen.color=this.strokeColor,2==this.line.length?(t.pen.color=new Tt["SColor"](this.strokeColor),this.lineStyle==Mt["SLineStyle"].Dashed?t.pen.lineDash=[t.toPx(3*this.lineWidth),t.toPx(7*this.lineWidth)]:this.lineStyle==Mt["SLineStyle"].Dotted&&(t.pen.lineDash=[t.toPx(this.lineWidth),t.toPx(this.lineWidth)]),this.selected&&this.status==Bt["SItemStatus"].Normal&&(t.pen.lineWidth=t.toPx(2*this.lineWidth),t.shadow.shadowBlur=10,t.shadow.shadowColor=new Tt["SColor"]("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5),t.drawLine(this.line[0],this.line[1]),this.status!=Bt["SItemStatus"].Edit&&this.status!=Bt["SItemStatus"].Create||this.line.forEach((function(i,n){t.brush.color=e.fillColor,n==e.curIndex&&(t.brush.color=e.activeFillColor),t.drawCircle(i.x,i.y,t.toPx(5))}))):1==this.line.length&&(this.status!=Bt["SItemStatus"].Edit&&this.status!=Bt["SItemStatus"].Create||(t.brush.color=this.fillColor,t.drawCircle(this.line[0].x,this.line[0].y,t.toPx(5))))}},{key:"line",get:function(){return this._line},set:function(t){this._line=t,this.update()}},{key:"verAndLeve",get:function(){return this._verAndLeve},set:function(t){this._verAndLeve=t,this.update()}},{key:"status",get:function(){return this._status},set:function(t){this._status=t,this.undoStack.clear(),this.update()}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(t){this._strokeColor=t,this.update()}},{key:"lineStyle",get:function(){return this._lineStyle},set:function(t){this._lineStyle=t,this.update()}},{key:"fillColor",get:function(){return this._fillColor},set:function(t){this._fillColor=t,this.update()}},{key:"activeFillColor",get:function(){return this._activeFillColor},set:function(t){this._activeFillColor=t,this.update()}},{key:"lineWidth",get:function(){return this._lineWidth},set:function(t){this._lineWidth=t,this.update()}}]),i}(Lt),Ut=(i("a434"),function(t){Ct(i,t);var e=Ot(i);function i(t){var n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return ft(this,i),n=e.call(this,t),n._status=Bt["SItemStatus"].Normal,n._painter=null,n._text="",n._textArr=[],n.anchorList=[],n._width=64,n._height=64,n.origin=new Tt["SPoint"],n._color=new Tt["SColor"]("#333333"),n._backgroundColor=Tt["SColor"].Transparent,n._strokeColor=Tt["SColor"].Transparent,n._lineWidth=1,n._borderStyle=Mt["SLineStyle"].None,n._originPosition=Mt["STextOrigin"].LeftTop,n.maxWidth=void 0,n._text=s,n._font=new Tt["SFont"]("sans-serif",12),n.height=12,n}return St(i,[{key:"onResize",value:function(t,e){}},{key:"boundingRect",value:function(){return new Tt["SRect"](-this.origin.x,-this.origin.y,this.width,this.height)}},{key:"moveToOrigin",value:function(t,e){this.moveTo(this.x+t,this.y+e)}},{key:"drawShowText",value:function(t){var e=this;t.translate(-this.origin.x,-this.origin.y),this.selected?(t.shadow.shadowBlur=10,t.shadow.shadowColor=new Tt["SColor"]("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5):t.shadow.shadowColor=Tt["SColor"].Transparent,t.brush.color=this.backgroundColor,t.pen.lineWidth=this.lineWidth,t.pen.color=this.strokeColor,t.drawRect(0,0,this.width,this.height),t.brush.color=new Tt["SColor"](this.color),t.shadow.shadowColor=Tt["SColor"].Transparent,t.font=this.font,this._textArr.forEach((function(i,n){t.drawText(i,e.font.size/4,n*(1.25*e.font.size)+e.font.size/4,e.maxWidth)}))}},{key:"drawFormatText",value:function(){var t=this;if(this._painter instanceof Tt["SPainter"]){this._painter.save(),this._painter.font=this.font;var e=0,i=this.font.size;this._textArr.forEach((function(n,s){var o=t._painter?t._painter.textWidth(n)+i/2:i/2;o>e&&(e=o)})),this.width=e,this.height=1.25*i*this._textArr.length+i/8,this.originPosition==Mt["STextOrigin"].Centrum&&(this.origin=new Tt["SPoint"](this.width/2,this.height/2)),this._painter.restore()}}},{key:"onDraw",value:function(t){this._painter instanceof Tt["SPainter"]||(this._painter=t,this.drawFormatText()),this.drawShowText(t)}},{key:"status",get:function(){return this._status},set:function(t){var e=this._status,i=t;this._status=t,this.$emit("StatusChange",e,i),this.update()}},{key:"text",get:function(){return this._text},set:function(t){this._text=t,this._textArr=this.text.split(/\n/g),this.drawFormatText(),this.update()}},{key:"width",get:function(){return this._width},set:function(t){if(t>0&&t!=this._width){var e=this._width;this._width=t,this.onResize(new Tt["SSize"](e,this._height),new Tt["SSize"](this._width,this._height))}}},{key:"height",get:function(){return this._height},set:function(t){if(t>0&&t!=this._height){var e=this._height;this._height=t,this.onResize(new Tt["SSize"](this._width,e),new Tt["SSize"](this._width,this._height))}}},{key:"color",get:function(){return this._color},set:function(t){this._color=t,this.update()}},{key:"font",get:function(){return this._font},set:function(t){this._font=t,this.drawFormatText(),this.update()}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this.update()}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(t){this._strokeColor=t,this.update()}},{key:"lineWidth",get:function(){return this._lineWidth},set:function(t){this._lineWidth=t,this.update()}},{key:"borderStyle",get:function(){return this._borderStyle},set:function(t){this._borderStyle=t,this.update()}},{key:"originPosition",get:function(){return this._originPosition},set:function(t){this._originPosition=t,this.update()}}]),i}(Lt)),Xt=function(t){Ct(i,t);var e=Ot(i);function i(t){var n;return ft(this,i),n=e.call(this),n.scene=null,n.scene=t,n}return i}(Rt["SUndoCommand"]),zt=function(t){Ct(i,t);var e=Ot(i);function i(t,n){var s;return ft(this,i),s=e.call(this,t),s.item=n,s.parent=n.parent,s.command="SGraphAddCommand",s.desc="添加对象=".concat(n.id),s}return St(i,[{key:"mergeWith",value:function(t){return!1}},{key:"redo",value:function(){this.item.parent=this.parent,this.parent.update()}},{key:"undo",value:function(){this.item.parent=null,this.parent.update()}}]),i}(Xt);Mt["SGraphCommand"],Mt["SGraphCommand"],Mt["SGraphCommand"],i("a15b");function Kt(){for(var t=[],e="0123456789abcdef",i=0;i<36;i++)t[i]=e.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=e.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-";var n=t.join("");return"".concat(n,"-").concat((new Date).getTime())}var Wt=function(t){Ct(i,t);var e=Ot(i);function i(){var t;return ft(this,i),t=e.call(this),t.Nodes=[],t.Markers=[],t.Relations=[],t.copyString=[],t}return St(i,[{key:"redo",value:function(){this.grabItem&&this.grabItem.redo?this.grabItem.redo():this.undoStack.redo()}},{key:"undo",value:function(){this.grabItem&&this.grabItem.undo?this.grabItem.undo():this.undoStack.undo()}},{key:"deleteItem",value:function(){var t=this;if(0==this.selectContainer.count)return[];var e=this.selectContainer.itemList;return e.forEach((function(e){t.removeItem(e)})),this.view&&this.view.update(),e}},{key:"addRectSelect",value:function(t){var e=new Tt["SPoint"](t.x,t.y),i=new Bt["SRectSelectItem"](null,e);this.addItem(i),this.grabItem=i}},{key:"groupSelect",value:function(t){if(this.grabItem instanceof Bt["SRectSelectItem"]){var e=this.grabItem.boundingRect();this.arrToSelect(this.root.children,e)}}},{key:"arrToSelect",value:function(t,e){var i=this;Array.isArray(t)&&t.length&&t.forEach((function(t){if(t.parent){var n=t.boundingRect(),s=t.mapToScene(n.left,n.top),o=t.mapToScene(n.right,n.bottom),r=new Tt["SRect"](s,o);e.isIn(r)&&i.selectContainer.toggleItem(t)}}))}},{key:"onMouseDown",value:function(t){wt(vt(i.prototype),"onMouseDown",this).call(this,t)||1!=t.buttons||this.addRectSelect(t)}},{key:"onMouseUp",value:function(t){return this.grabItem?this.grabItem instanceof Bt["SRectSelectItem"]?(this.removeItem(this.grabItem),this.groupSelect(!1),this.grabItem=null,this.view&&this.view.update(),!0):this.grabItem.onMouseUp(t):wt(vt(i.prototype),"onMouseUp",this).call(this,t)}},{key:"copy",value:function(){var t=this,e=this.selectContainer.itemList;if(e.length){e.forEach((function(e){var i=JSON.parse(JSON.stringify(e.toData()));i.ID=Kt(),t.copyString.push(i)})),console.log(this.copyString);var i=document.createElement("input");i.setAttribute("id","COPYINPUT"),i.value=JSON.stringify(this.copyString),sessionStorage.setItem("copyString",i.value),document.body.appendChild(i),i.select(),document.execCommand("copy"),i.style.display="none",console.log(i.value,Date.now()),document.body.removeChild(i)}}},{key:"paste",value:function(){var t=this,e=JSON.parse(JSON.stringify(this.copyString));e.forEach((function(e){t.view&&(e.Pos.X+=10,e.Pos.Y+=10),e.moveable=!0,console.log("t",e),t.addItem(e)})),this.view&&this.view.update(),console.log(this.view)}}]),i}(Dt),Ht=function(t){Ct(i,t);var e=Ot(i);function i(t,n){var s,o;(ft(this,i),s=e.call(this,t),s.startItem=null,s.endItem=null,s.data=n,n.Style&&n.Style.Line)&&(o=n.Style.Line.map((function(t){return new Tt["SPoint"](t.X,t.Y)})),s.line=o);return s}return St(i,[{key:"onMouseDown",value:function(t){return wt(vt(i.prototype),"onMouseDown",this).call(this,t),!0}},{key:"toData",value:function(){console.log(1230)}}]),i}(Ft),Vt=function(t){Ct(i,t);var e=Ot(i);function i(t,n){var s;return ft(this,i),s=e.call(this,t),s.startItem=null,s.endItem=null,s.zOrder=Bt["ItemOrder"].textOrder,s.isTransform=!1,s.data=n,n.ID||(n.ID=Kt()),s.id=n.ID,s.name=n.Name,s.moveTo(n.Pos.X,n.Pos.Y),n.Size&&(s.width=n.Size.Width,s.height=n.Size.Height),n.Properties.Zorder&&(s.zOrder=n.Properties.Zorder),n.Properties&&n.Properties.Text&&(s.text=n.Properties.Text),n.Properties&&n.Properties.Color&&(s.color=new Tt["SColor"](n.Properties.Color)),n.Properties&&n.Properties.Font&&(s.font=new Tt["SFont"]("sans-serif",n.Properties.Font)),n.Properties&&n.Properties.BackgroundColor&&(s.backgroundColor=new Tt["SColor"](n.Properties.BackgroundColor)),s}return St(i,[{key:"onMouseDown",value:function(t){return wt(vt(i.prototype),"onMouseDown",this).call(this,t),!0}},{key:"toData",value:function(){return this.data}}]),i}(Ut),Zt=(i("caad"),i("2532"),function(t){Ct(i,t);var e=Ot(i);function i(t,n){var s;return ft(this,i),s=e.call(this,t),s.startItem=null,s.endItem=null,s.zOrder=Bt["ItemOrder"].textOrder,s.isTransform=!1,s.data=n,n.ID||(n.ID=Kt()),s.id=n.ID,s.name=n.Name,s.moveTo(n.Pos.X,n.Pos.Y),n.Size&&(s.width=n.Size.Width,s.height=n.Size.Height),n.Properties.Zorder&&(s.zOrder=n.Properties.Zorder),n.Properties&&n.Properties.Text&&(s.text=n.Properties.Text),n.Properties&&n.Properties.Color&&(s.color=new Tt["SColor"](n.Properties.Color)),n.Properties&&n.Properties.Font&&(s.font=new Tt["SFont"]("sans-serif",n.Properties.Font)),n.Properties&&n.Properties.BackgroundColor&&(s.backgroundColor=new Tt["SColor"](n.Properties.BackgroundColor)),s}return St(i,[{key:"onMouseDown",value:function(t){return wt(vt(i.prototype),"onMouseDown",this).call(this,t),!0}},{key:"toData",value:function(){return this.data}}]),i}(Ut)),Jt=i("898c"),qt=function(t){Ct(i,t);var e=Ot(i);function i(){var t;return ft(this,i),t=e.call(this),t.selectContainer.connect("listChange",yt(t),t.listChange),t}return St(i,[{key:"listChange",value:function(t){this.emitChoice(t.itemList)}},{key:"emitChoice",value:function(t){}},{key:"onMouseDown",value:function(t){this.vueOnMouseDown(t),"EditBaseLine"==this.editCmd?(this.addLine(t),this.clearCmdStatus()):"EditBasetext"==this.editCmd?(this.addTextItem(t),this.clearCmdStatus()):"EditBaseImage"==this.editCmd?(this.addImageItem(t),this.clearCmdStatus()):"EditBasePostil"==this.editCmd?(this.addExplainItem(t),this.clearCmdStatus()):"EditBasePolygon"==this.editCmd?console.log("编辑多边形"):"EditBaseTriangle"==this.editCmd?console.log("编辑三角形"):"EditBaseCircle"==this.editCmd?console.log("编辑圆"):"EditBaseArrows"==this.editCmd?console.log("编辑箭头"):""==this.editCmd&&wt(vt(i.prototype),"onMouseDown",this).call(this,t)}},{key:"onContextMenu",value:function(t){return wt(vt(i.prototype),"onContextMenu",this).call(this,t)||this.getItem(null,[t]),!0}},{key:"addLine",value:function(t){var e={ID:Kt(),Name:"基础直线",Type:"BaseLine",Pos:{X:0,Y:0},Properties:{},Style:{Line:[{X:t.x,Y:t.y}]}},i=new Ht(null,e);i.status=Jt["SItemStatus"].Create,this.addItem(i),this.undoStack.push(new zt(this,i)),i.selectable=!0,this.grabItem=i,i.connect("finishCreated",this,this.finishCreated),i.connect("onContextMenu",this,this.getItem),this.view&&this.view.update()}},{key:"addTextItem",value:function(t){var e={ID:Kt(),Name:"基础文本",Type:"BaseText",Pos:{X:t.x,Y:t.y},Properties:{Text:"请在右侧属性栏输入文字!",Color:"#646c73",Font:14,BackgroundColor:"#f7f9facc"},Style:{}},i=new Zt(null,e);i.moveTo(t.x,t.y),i.selectable=!0,i.moveable=!0,this.addItem(i),this.undoStack.push(new zt(this,i)),this.grabItem=null,i.connect("onContextMenu",this,this.getItem),this.finishCreated(i)}},{key:"addExplainItem",value:function(t){var e={ID:Kt(),Name:"基础注释文本",Type:"BaseExplain",Pos:{X:t.x,Y:t.y},Properties:{Text:"请在右侧属性栏输入文字!",Color:"#646c73",Font:14,BackgroundColor:"#f7f9facc"},Style:{}},i=new Vt(null,e);i.moveTo(t.x,t.y),i.selectable=!0,i.moveable=!0,this.addItem(i),this.undoStack.push(new zt(this,i)),this.grabItem=null,this.finishCreated(i)}},{key:"addImageItem",value:function(t){var e={ID:Kt(),Name:"基础图片",Num:1,Type:"BaseImage",Pos:{X:t.x,Y:t.y},Properties:{StrokeColor:"#c0ccda",Url:""},Style:{}},i=new $t(null,e);i.selectable=!0,i.moveable=!0,this.addItem(i),this.undoStack.push(new zt(this,i)),this.Markers.push(i),this.finishCreated(i)}},{key:"updateStyle",value:function(){}},{key:"finishCreated",value:function(t){this.grabItem=null,t.status=Jt["SItemStatus"].Normal}},{key:"clearCmdStatus",value:function(){}},{key:"getItem",value:function(t,e){}},{key:"vueOnMouseDown",value:function(t){}}]),i}(Wt),$t=function(t){Ct(i,t);var e=Ot(i);function i(t,n){var s;return ft(this,i),s=e.call(this,t,""),s.startItem=null,s.endItem=null,s.zOrder=Bt["ItemOrder"].imageOrder,s.isTransform=!1,s.url="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQKADAAQAAAABAAAAQAAAAABGUUKwAAAJW0lEQVR4Ae1Ze3CU1RW/537fbjZkKRJoNWBbHB20tuKIVGesdrRYGoeig6Vg6XSG0c0mtNkkkA1BpjNNR2kgDx7ZBLJJlHFsbccWWutQ8QF08MFD2w4VaXm0FUhweAQI2U2yu993b393k2/58iCbRBn/+e7M5p5z7rmP73fvPefcE8ac4iDgIOAg4CDgIOAg4CDgIOAg4CDgIOAg4CDgIOAg4CDgIDBiBPwlq3LSKVdUVHjUL52evX3ZsnWZdn4oWkpJQ8ktWTAYzLLo4Wp9uEarzR8oLZUu96ueRM6JmN423ZKLRHyHf1l5rsWzCZn/aaqo6ErxIFovRFaRlHGQz9rlw9ERo22vr6j0qZa62r9dTc8fCL6WFyh7mTExxdIh0t6dkj1uL/h4a3vkddT3W21Xq0cEgGDau5SIv5Kgkz8UCfZ4ajCS40TCTPHuy4nn0daFxa3H/riVHnbqB0zSO3lFwYZUvz5Ck/yFxlDVAV+gdAER8V4x5TAhc4jYzehzs72PlPy9llBVa0HJymmmaXyZkbiVMX4Os5wkQdMEmXPaLnTmaoxetPcbjh4RAJh0X35J8EmX+ZVjJjt1g2QyeURJMl0ydpOagDhd2LRu9SlFQ7adJHHJxCLU7+HjmpRwYNEzWauS4cvvkpJpikaffHz8NoA2U/H2wnX6F/hWIYwlkuSfcQc4afx1YZi5nDh2XDxh1x8JPew9UgP8tKzsBjMhb9JIP6cZ1NGjGVOtgaUht5NOcy3enamfaqisbFe8v7RisohFPvCM4/fVV1WdVrK8QPB4c6jmFkUPVfILyxaZTDzVUl87Z6h2JVN3H0f/f5zYOoAwlTT919IwN3CmLTfJeIJL0piuvQhQNreEaj79FTDjdIcQslgw40Kc8U3ckN+1Fgf0Gpkh51l8otvYDrodRo/jDoZxqMPWxysdnByvpTuwVoCZscgGTWOLiotXXT+wfeJEtxrXKCgu/w4jNnlg+1j5tFcgvLHqzYLAig7sTKG6CkD/EWzDHViEeWVSqeM67GnaUPN3JWtrj2yCzuOca42+QFkN6LuVHMYw21cY3K1o9P8ndqhYkcrqR+Jtf8TRHycEPdvFlM20Fcm+0dNuPgTJQcHMKcT4+uRF61PB9dExXrLgVEjNNKXoa0tXpQVg8ABiBhbwksblEavNlPwe7O49ivcHyuYIKW8lRlsFjo4rS1/t7uZJgxgV8Q+zuDt5T+OZIvmV/nDYFTl0bCuOR1Qy+qilvubb1rhWjavzF4uemj3+t6fPR+fjg5MumAzYAZLJ8S2d0dRjAADYczHLFLDWqSKmqy1V5eEHvrnzrcOH35Htkc2K37xmzUVVqwJrLzZu/NWZXq73r/jo6AwYyg7mdv8CnmaLvc1Oc24mzai6Bv7Cst4m4gfgbcYzkz4xSbZrkr0viN1r75eO7nM96dTQLpnHV1T2s6SmYLdjNbOsn5AMAPSWhQsXmgNjAattqFr5+qZQ9WJKGLYrNZTmYFnzxuqt0jQfwzpm4hTMD4dqtxHpDSLb+9/B2kNLRnQCcK+U0ZmP65UMTDjpPw+H1h60hswrXvGoFGK2xVs1MXkndt1n8XBtE8D/LsUz3tASqn4bblLi6iiQZ+QFSlUg06/get1mnTB7A+zREniFb13nYV/viMnf4KpMmzIx8+kzPT1Zgslxdt2r0SMCQGj8hEyY38P93JVXGHxZuljSxiBQWQhrU8KEiOuMrxgwSUwQHdelvislJ7Y2RYPI1D0n7LwyjHqW6/v9ZGASUeMlk+OA2wpAuQ5sbsZ417yaysoorsaCT9ojjyAQehJG0Y/A5DmbukM6CDgIOAh8vgio8PharwBz6Oo3mnlGpawGVomGSz3sODyCLRAaPGV+IDgPrmIuHj8FqhV5gQrkFTqaQrW1A7XhvtRrMU18L08219eWWH39xcHFUpCnOVT9vCVra+9cCevfCX6jJUtXjxqALq+XKNY5Id3A8MM/wpb/Ia+o9Cfw4TfCXS5A1LYXrvNp1Rfvd9lUX71G0fDls91uz4OKThg9c/GOPqu5PO8rXhXTiHsQB27r5fr+mvJ6PC6y+snGwFyTY5lMR0ma7WZf3a5xOoUX7MeIdb6IybZzKY+oH5E4aq1XBUIql2AmjGz48NWCkS8Rj62PJ2Ib4vHYMznZWck8g6X/WdajPgG9k5Mrr6hsnX0hePy82lRXtVvJLvdQQIV1GRkn9Xic2iDKQRRzEMfzQ3sff3n5hKa1azuULH/Zill4w9fgbBzAo6jS5dUOGREjjBfi7+197DT0ivC6XGzJMMdkhpAUsnwlQ98iXMG3rPah6rEBgDOLhES/j0HYe05NsHTlyolGNIEFULzT5F8T0lyOEPg+7PLHQopf2hfBu0lFazuVTLrpmMfwPtotI5NwOnYZUYngUq5++P57dxw+fNhl75fUxxsQj6iwh7KqB7ZZT+NJk1i//OQgPQjGBgAxI1xXs2WoARNRMxfpvXXYiJLw+qoPoLPYFwj+OyOTL7YnRwb2pajI7aHIUnzVacZ5kHM6IZBsefPt/X9Fds32fujrKRHrE+sK1VVcHjjWaPixATDMDK4sbcdDM2defmPP/qTFVm4J1vkLsW7xJ1j73p5YPI7vQXiSH1tDkUfunur1voJMUoBMsUQIdh4fuL+5rvaBpOeJsaQ3sfTRNh7WswDHvTAlUwSxTiRabusnG4b5zAFQ73+VCPAVlianvXgxPikjU5tl7b4vsOJGuIDXOKMX7OtqrKk56ysKPkacHyEhtzHN1UWm+SWl4/V6zUuxiF0d3063ENcWNm9Y84a9wV8UPGvn09HXxAvYJ42KxPRYt7kTr8jq/ED5nSTNHRpRGXIA/Rau+uiCzpMQ0/D8Xi6N2BZTmnVwm4MyvSqLBKvx4MQMqTLO0v6zzz0SOu0JwD8o7oaFX2oNFj8fUX3cWFiLJbNqTeoNjaE1/7B4Vav3Pq7BXW0XIsvwQXj7s50yO2uPXQc0V/EC8o5KrDJI+5Ar3wfjCdsqx7e1R1OWXinIQ0fL8dm7q6qqVNDzqUpaAJjUzuDIpnar998XlMrR9Ztd12zHj2JWGwDoAV1ZEAw+Z/SwZ9j5qIoGU6DCqcCD0SRL/0qNV3+SQQYCSf8rcnY7adpyG58iMdKlFOMQDgIOAg4CDgIOAg4CDgIOAg4CDgIOAg4CDgIOAg4CDgIOAoMQ+D+N/M18Xo047gAAAABJRU5ErkJggg==",s.data=n,n.ID||(n.ID=Kt()),s.id=n.ID,s.name=n.Name,s.moveTo(n.Pos.X,n.Pos.Y),n.Size&&(s.width=n.Size.Width,s.height=n.Size.Height),n.Properties.Zorder&&(s.zOrder=n.Properties.Zorder),n.Properties&&n.Properties.Url&&(s.url=n.Properties.Url),n.Properties.LineWidth&&(s.lineWidth=n.Properties.LineWidth),n.Properties.StrokeColor&&(s.strokeColor=n.Properties.StrokeColor.includes("#")?new Tt["SColor"](n.Properties.StrokeColor):new Tt["SColor"](hexify(n.Properties.StrokeColor))),s.origin=new Tt["SPoint"](s.width/2,s.height/2),s}return St(i,[{key:"onMouseDown",value:function(t){return wt(vt(i.prototype),"onMouseDown",this).call(this,t),!0}},{key:"toData",value:function(){console.log(1230)}},{key:"onDoubleClick",value:function(t){var e=document.createElement("input");e.type="file",e.name="file",e.accept="image/*",e.click();var i=this;return e.onchange=function(t){console.log(t.path[0].files);var e=t.path[0].files[0];console.log(t.path[0].files);var n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",(function(){var t=n.result;console.log(t,"sersrf"),i.url=t}))},!0}}]),i}(kt),te=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"topo_tooltip"},[t.havItem?i("div",{staticClass:"tooltip-card"},[t._m(0)]):i("div",{staticClass:"tooltip-card"},[t._m(1)])])},ee=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",[i("li",[t._v("编辑")]),i("li",[t._v("锁定")]),i("li",[t._v("置顶")]),i("li",[t._v("置底")]),i("li",[t._v("删除")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",[i("li",[t._v("保存")]),i("li",[t._v("发布")]),i("li",[t._v("下载")])])}],ie={props:["havItem"],name:"topoTooltip",data:function(){return{}}},ne=ie,se=(i("0dc9"),Object(S["a"])(ne,te,ee,!1,null,"6fee0f2a",null)),oe=se.exports,re={components:{topoTooltip:oe},data:function(){return{scene:null,view:null,canvasWidth:700,canvasHeight:700,havItem:!1,showTooltip:!1}},computed:u({},Object(p["c"])(["choiceLegend"])),mounted:function(){this.canvasWidth=this.$refs.baseTopo.offsetWidth,this.canvasHeight=this.$refs.baseTopo.offsetHeight-10,this.scene=new qt,this.view=new Mt["SGraphView"]("persagy_topo"),this.view.scene=this.scene,this.scene.clearCmdStatus=this.clearCmdStatus,this.initBusEvent(),this.scene.getItem=this.onContextMenu,this.scene.emitChoice=this.emitChoice,this.scene.vueOnMouseDown=this.vueOnMouseDown,document.getElementById("baseTopo").oncontextmenu=function(t){return!1}},methods:u(u({},Object(p["b"])(["SETCHOICELEHEND"])),{},{clearCmdStatus:function(){this.SETCHOICELEHEND("")},onContextMenu:function(t,e){var i=pt(e,1),n=i[0];this.showTooltip=!0,console.log(t),this.havItem=!!t;var s=document.getElementsByClassName("topoTooltip-box")[0];s.style.left=n.offsetX+"px",s.style.top=n.offsetY+"px"},vueOnMouseDown:function(t){this.showTooltip=!1},emitChoice:function(t){D.$emit("emitChoice",t)},initBusEvent:function(){var t=this;D.$on("baseTextSize",(function(t){console.log("aaaaaaaaa",t)})),D.$on("topoUndo",(function(e){t.scene.undo()})),D.$on("topoRedo",(function(e){t.scene.redo()})),D.$on("deleteItem",(function(e){t.scene.deleteItem()})),D.$on("copy",(function(e){t.scene.copy()})),D.$on("paste",(function(e){t.scene.paste()}))}}),watch:{choiceLegend:function(t){this.scene&&(this.scene.editCmd=this.choiceLegend)}}},ae=re,he=(i("076a"),Object(S["a"])(ae,ht,ct,!1,null,"7f2889ed",null)),ce=he.exports,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"topToolBar"}},[n("div",{staticClass:"left"},[n("ul",[n("li",{on:{click:t.topoUndo}},[n("img",{staticClass:"lock",attrs:{src:i("93af"),alt:""}}),n("span",[t._v("撤销")])]),n("li",{on:{click:t.topoRedo}},[n("img",{staticClass:"lock",attrs:{src:i("abdb"),alt:""}}),n("span",[t._v("重做")])]),n("li",{on:{click:t.copy}},[n("img",{staticClass:"lock",attrs:{src:i("8c7b"),alt:""}}),n("span",[t._v("复制")])]),n("li",{on:{click:t.paste}},[n("img",{staticClass:"lock",attrs:{src:i("fc34"),alt:""}}),n("span",[t._v("粘贴")])]),n("li",[n("span",[t._v(t._s(t.isLock?"锁定":"解锁"))])]),n("li",{on:{click:t.deleteItem}},[n("img",{staticClass:"lock",attrs:{src:i("b32a"),alt:""}}),n("span",[t._v("删除")])])])]),n("div",{staticClass:"rght"})])},ue=[],Ae={data:function(){return{}},methods:{topoUndo:function(){D.$emit("topoUndo")},topoRedo:function(){D.$emit("topoRedo")},deleteItem:function(){D.$emit("deleteItem")},copy:function(){D.$emit("copy")},paste:function(){D.$emit("paste")}}},de=Ae,me=(i("bbd0"),Object(S["a"])(de,le,ue,!1,null,null,null)),pe=me.exports,fe={components:{leftToolBar:P,rightPropertyBar:at,topToolBar:pe,baseTopoEditer:ce},data:function(){return{view:null,scene:null}}},ge=fe,Se=(i("1d58"),Object(S["a"])(ge,o,r,!1,null,null,null)),ye=Se.exports,ve={components:{topoEditer:ye},data:function(){return{}}},be=ve,we=(i("d81c"),Object(S["a"])(be,n,s,!1,null,"fcb1e18a",null));e["default"]=we.exports},8113:function(t,e,i){},8161:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SImageShowType=void 0,function(t){t[t["Full"]=0]="Full",t[t["AutoFit"]=1]="AutoFit",t[t["Equivalency"]=2]="Equivalency"}(e.SImageShowType||(e.SImageShowType={}))},"826b":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUndoCommand=void 0;var n=function(){function t(t){void 0===t&&(t=null),this.desc="undefined"}return t.prototype.mergeWith=function(t){return!1},t.prototype.id=function(){return-1},t.prototype.toString=function(){return""},t}();e.SUndoCommand=n},8418:function(t,e,i){"use strict";var n=i("c04e"),s=i("9bf2"),o=i("5c6c");t.exports=function(t,e,i){var r=n(e);r in t?s.f(t,r,o(0,i)):t[r]=i}},"898c":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SItemStatus=void 0,function(t){t[t["Normal"]=0]="Normal",t[t["Edit"]=1]="Edit",t[t["Create"]=2]="Create"}(e.SItemStatus||(e.SItemStatus={}))},"8aa5":function(t,e,i){"use strict";var n=i("6547").charAt;t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"8c7b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABa0lEQVRYR+2YTVLCMBiG368XEG/gUepJdIYutBuUuhf3wuAGXNQZbqLewCN4A+ECvk5aQSg0bVL6M06ybpJnnuZ78yPoeBPFF4TDEYGBQHpN8RJcCvAUzyYj3ZwJYD8cfjUJtw0Uz8YJQ177NRixKXPZecwByXcI3uoCJuVMBBfr8c0BwYeidVEFPri68+Hx1QHaWjy6wX4YTQUY2ALZ90uX2oEq3l2DQdhOhaucfJlNTjsLqMyrCjcDJG9B78P+t+l7UniZjSAzwG85j58fa8tIteUCcr8dQQ7QZDk4gya2Dn3rDDqDqQHNVudy0AV1tTJxMVPNX3o/d4eFKhZLGSS48MjFeiKK93f+60YOahy0BngdLSE4Kfw9rQFmqicXtC1Anbmda6cDzMnBf2NQRZAAn4XFZPsBxYfA37t2ljZoO7Flv83LQicBiVU8H/e078MKPNl+KDelctLS1F43YgXhdPO6daxx6xjnB1tJ2TjXkJDkAAAAAElFTkSuQmCC"},"8e5d":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphMoveCommand=void 0;const n=i("c652"),s=i("64b5");class o extends n.SGraphCommand{constructor(t,e,i,n){super(t),this.item=e,this.old=i,this.pos=n,this.command="SGraphMoveCommand",this.desc="移动对象="+e.id}mergeWith(t){return t instanceof o&&t.item==this.item&&(t.pos=this.pos,!0)}redo(){this.item.pos=new s.SPoint(this.pos.x,this.pos.y),this.item.update()}undo(){this.item.pos=new s.SPoint(this.old.x,this.old.y),this.item.update()}toString(){return`oldPos=${JSON.stringify(this.old)};\nnewPos=${JSON.stringify(this.pos)}`}}e.SGraphMoveCommand=o},"8efe":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SImageItem=void 0;const n=i("edfc"),s=i("64b5"),o=i("f80e");class r extends n.SObjectItem{constructor(t,e){super(t),this._showType=o.SImageShowType.Full,this._strokeColor=s.SColor.Transparent,this._lineWidth=1,this._originPosition=o.STextOrigin.LeftTop,this.isLoadOver=!1,this.imgWidth=this.width,this.imgHeight=this.height,this._url="",e&&(this.url=e)}get showType(){return this._showType}set showType(t){this._showType=t,this.computeImgSize(),this.update()}get strokeColor(){return this._strokeColor}set strokeColor(t){this._strokeColor=t,this.update()}get lineWidth(){return this._lineWidth}set lineWidth(t){this._lineWidth=t,this.update()}get originPosition(){return this._originPosition}set originPosition(t){this._originPosition=t,this.update()}get url(){return this._url}set url(t){this._url=t,this.img=new Image,this.img.onload=t=>{const e=t.path[0].src;this.isUrlIdentical(e)&&(this.isLoadOver=!0,this.computeImgSize(),this.$emit("imgLoadOver"),this.update())},this.img.onerror=t=>{const e=t.path[0].src;this.isUrlIdentical(e)&&(this.isLoadOver=!1,this.$emit("imgLoadOver"),this.update(),console.log("加载图片错误!",t))},this.img.src=t}computeImgSize(){if(this.isLoadOver){let t=0,e=0,i=this.width/this.height,n=this.img.width/this.img.height,r=this.img.height/this.img.width;this.showType==o.SImageShowType.Full?(t=this.width,e=this.height):this.showType==o.SImageShowType.Equivalency?i>n?(e=this.height,t=n*e):it.map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(e,i)})))}boundingRect(){return new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onDraw(t){t.pen.lineWidth=t.toPx(1),t.pen.color=o.ItemColor.virtualWallColor,t.pen.lineDash=[20,20],this.pointArr.forEach(e=>{t.drawPolyline(e)})}}e.SVirtualWallItem=a},9263:function(t,e,i){"use strict";var n=i("ad6d"),s=i("9f7f"),o=RegExp.prototype.exec,r=String.prototype.replace,a=o,h=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),c=s.UNSUPPORTED_Y||s.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],u=h||l||c;u&&(a=function(t){var e,i,s,a,u=this,A=c&&u.sticky,d=n.call(u),m=u.source,p=0,f=t;return A&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),f=String(t).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==t[u.lastIndex-1])&&(m="(?: "+m+")",f=" "+f,p++),i=new RegExp("^(?:"+m+")",d)),l&&(i=new RegExp("^"+m+"$(?!\\s)",d)),h&&(e=u.lastIndex),s=o.call(A?i:u,f),A?s?(s.input=s.input.slice(p),s[0]=s[0].slice(p),s.index=u.lastIndex,u.lastIndex+=s[0].length):u.lastIndex=0:h&&s&&(u.lastIndex=u.global?s.index+s[0].length:e),l&&s&&s.length>1&&r.call(s[0],i,(function(){for(a=1;a=40){t.rotate(6*Math.PI/180);for(let i=1;i<=4;i++)t.pen.lineWidth=s,t.drawLine(0,-this.radius,0,-this.radius+e),t.rotate(6*Math.PI/180)}else t.rotate(30*Math.PI/180);t.restore()}drawHour(t,e,i,s){t.save(),t.pen.lineCapStyle=n.SLineCapStyle.Round,t.pen.lineWidth=Math.max(this.radius/30,4),t.rotate((30*e+30*i/60+30*s/3600)*Math.PI/180),t.drawLine(0,this.radius/10,0,-this.radius/2),t.restore()}drawMinute(t,e,i){t.save(),t.pen.lineCapStyle=n.SLineCapStyle.Round,t.pen.lineWidth=Math.max(this.radius/40,4),t.rotate((6*e+6*i/60)*Math.PI/180),t.drawLine(0,this.radius/10,0,2*-this.radius/3),t.restore()}drawSecond(t,e){t.save(),t.pen.lineCapStyle=n.SLineCapStyle.Round,t.pen.lineWidth=Math.max(this.radius/100,3),t.pen.color=n.SColor.Red,t.rotate(6*e*Math.PI/180),t.drawLine(0,this.radius/5,0,-this.radius+this.radius/10),t.restore()}}e.SGraphClockItem=o},"93af":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAD4ElEQVRYCe2YS2xMURiAz3/ujEpaxKPEcyEEaRMLEhaERmKBiFea2DURjY6EVppG2EwsKp3pQt0WndZaPWLByltqoxLEoxFKiHQqigVaYab3/P7/mjOZGTN3BrcdizmLnsf/uN/9z/3/c6ZCFFohAoUIOEYAHKUxod/v94QHh00BuAkk7AqZwau52LmhI7M5seE+DHWhUHsQcQ5aakM2GzflHidnDNc/OHRWCNxm6wEMIIgWJxu3ZRkjmA4OhLeis7X5tdsQTv6MdMJ0cIYBa0OtTX3p9Edz7bcIVre3e1O3leHajwfHHI5fPAmQ4dSjvi79zVGKh/MJx4DxJGE4fNzHCbGVBQwnPbIiX5FjBm7xOrh7b/1FKiM2nC0A6KH5Gx670UAKBQjvESAsBdw+ZTbdBwDM5tsGrN5bv0Ih3s2m7Kac4Prp4cFZpSWnKCkjmXzb36AHS3pJ+V0mpdFY56JPQWkJDw493bOvvjzTM+JbXLO/YdFI1LpFMZ/JyvSGN71FRVXieySayfhP1lXROEOMWNMRR8oUii0EuIXsY2UOvoIhtnWYzddTfcYBWZAG8sLs0pKdtAUjqYb/OvfVNiyJRq0QoljFvgDEF6/XWHniWOBZou+kMnOyJfDc4zUq9HbTW+4Ifxg6w4U70ciNMYPMLp2wjnaKyhrVDhQTIxF1jlrS4ZEEyIoMKWDc2rGA5OQYL+dVEWQPP5swy69236uyh7E/vwHyekfb0RdjBWma+36AAB891i45gFgXY7O7tIAs0ZD0cQzwPLbdXaOx3aG24AOCvPHrOaLM5zu4gMfcMgKykCH5BpMAuT38cbiWZa43CZe0z6iw7MThuSMgK6RCClTjed3tRln8XPukO+csPc4KyIoMOaVYLjZArKHMa9TGrvYKP2t/gGqSHudcPgKBwFcy6taGbvd0Vk8X1i+vVEEGtf+cIqiVR7NXCpbH/Uv5Vo//C0CqEBQ0tT0GZRV7i+2M5nlS1dbUY90PfByupJOEayHd/+Bmm9kY0gx5j6DvwOG5KPC4BkIDjugx93kFrKk7OD/y/ccVOkNmMAwdeec7zeAdHuuWcxZrAzd6+7fP45fV0UiUozWFfVId7J1cLHel+qePM3Pjm8W17p71CLI0s1ZuErCE5FKCCssoJTbS2Tk1wfKhMIzNnWagP2HNHjpG8NrtnkY6wRsow1Lt/njONwHUbuxrgb2lirLiNEwrqQ35/d/SOXUEJBf0jca8pbP+2zWATyDwMhWR5o7Wpl4nN46AsHThIfHk1R36x9G/b7ECSwKdEFKG161e9rSysjJ2bjjhFWSFCOQ/Aj8B8SR8U6cOdZcAAAAASUVORK5CYII="},"957e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLineStyle=void 0,function(t){t[t["Solid"]=0]="Solid",t[t["Dashed"]=1]="Dashed",t[t["Dotted"]=2]="Dotted",t[t["None"]=3]="None"}(e.SLineStyle||(e.SLineStyle={}))},"95ab":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLineJoinStyle=void 0,function(t){t[t["Miter"]=0]="Miter",t[t["Round"]=1]="Round",t[t["Bevel"]=2]="Bevel"}(e.SLineJoinStyle||(e.SLineJoinStyle={}))},9801:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEcklEQVRoBe2YTWhcVRTHz3n5NqKJ0tSPdNOFulVEFBcWbCt0YWuQROsXqW2hpEZcSLci4somVSfRZCqB2qbpWBcKBhRtXLuwm7ZgC0FJKk2sJoumo5mZd/yfiffNMPPe5H3NpMg8CPe+O/fe8/ufc+5994ao/tQ9UPdA3QMb6QGulfHhkWSPiP2+EN0No5Od7c1H+vv7/45qvyYChhPJg0LyqYgU7DF/e1d7056oIgoTRnWFx3hX+P/6wvh3nbc3744iwvKwG0tzGTzzb8x81kyOdNr510rm64mJiVbTFrSsmgA3eKuhadtbAwf6iPmUAyqyQ0UMpVJtTluASlUEeMIf6v8VEbC3dHW8xkyTDidE0MJyKBGxCyiDz1NKS6O16qRJb29vrrur81UiPm1EYJFvVxGpVKrBtPkpYxXgDg8MoXsyq3Tu2OhnDxooFbFlc8criMiUaVMRc38s7TfvfsrYBJTCI0VmLeJBQGQVBAv2XjuXnUkkxh8wYCqCujr2EdM100bCjzl1H5VYBLjBtzAW7BsHP4aHX8JfTllUxD9EjoixsbEmWVia1Ag5rCw/OXUflcjfAS/4gYF9c8b+sZFkny1yCh+ytfxm/h2Gd+L9PfTZY/qh7ZvuzZ2785ExjeuUkQT4gTf2hxLjL6B+0hGxllqN5ndEabpxa3fP4K5dCJL/J7SAIPAGB+ehFyHg8yIR+Z/CwuvgUGsgDLwau3/TnV9iJZzXunmiwOscgQWEhcf+3jy/uHRWhB6NC17nCZRCYeF1t7mRwRlI5Nk44XUu3xGIAr+S4S+qAa8CfEUgCvyNVUrBTmGrDLnbKKzbs24EosDD82dgtGrwKqiigLDwMzMzjSurNIXt8jnjtai7jZmntPRMoaOjyZfZlhOAyPfRs40eD4q/sKWT6bvCn79w+QyODT3m92rB6/zOl9AYMyXb9nZsecHhL145XSt4Za2QQly4ITGN+vK8wos87zgh5gVr5i0uKwiQggDidPGg0no+bS5e0cNaTeGVwzOFkD24QSEZ8LCQ5/9v9Ab184XLJ9GtN99Z+9fA88aWpwDAFyLA7hFQ+LmFJb2g95kJ/cAPf3L8Scraj5gx65UWW5fePLz/B7d+ngKwelvX/A8pImURUPj5xWX1fCD4DxPHn85mc9+7wXi12ZIjnGT34j8azh3a9PUUgERABIwEGsR5fi/eNK3aWLh1bnF5E5Q510M/nlejNslDxniQEk50HVdBQCGFMHhbsTFcvou0Bcv5O9qsE8s37acg+GHM6/kdMvbQD+bkl7aG1hHTVlx6TnA0MX4VA+8r7uxW9+t5t7FxtFWIAE2xxQ1kSxrbCrZRTkPtTbh+7Z3tNOc4bW3t/jHoNTAO8P/NHGUp9NH0dIs9O78DXm+/VVRi07g+OPD6ufx6KIEqS6HM7PxXyP1n8FfSdWNfh0aTH4Dg7VKKsqMEizxR2umWeBd53I2jLAJYrEeQV+9gg7vNbcBGtDHJnxZZ726E7brNugfqHqh7oLIH/gVXnGG1s+2dlgAAAABJRU5ErkJggg=="},9935:function(t,e,i){var n=i("c14d");function s(t,e,i){function s(t,e){return{id:i?i.segmentId():-1,start:t,end:e,myFill:{above:null,below:null},otherFill:null}}function o(t,e,n){return{id:i?i.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var r=n.create();function a(t,i,n,s,o,r){var a=e.pointsCompare(i,o);return 0!==a?a:e.pointsSame(n,r)?0:t!==s?t?1:-1:e.pointAboveOrOnLine(n,s?o:r,s?r:o)?1:-1}function h(t,e){r.insertBefore(t,(function(i){var n=a(t.isStart,t.pt,e,i.isStart,i.pt,i.other.pt);return n<0}))}function c(t,e){var i=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return h(i,t.end),i}function l(t,e,i){var s=n.node({isStart:!1,pt:e.end,seg:e,primary:i,other:t,status:null});t.other=s,h(s,t.pt)}function u(t,e){var i=c(t,e);return l(i,t,e),i}function A(t,e){i&&i.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,h(t.other,t.pt)}function d(t,e){var i=o(e,t.seg.end,t.seg);return A(t,e),u(i,t.primary)}function m(s,o){var a=n.create();function h(t,i){var n=t.seg.start,s=t.seg.end,o=i.seg.start,r=i.seg.end;return e.pointsCollinear(n,o,r)?e.pointsCollinear(s,o,r)||e.pointAboveOrOnLine(s,o,r)?1:-1:e.pointAboveOrOnLine(n,o,r)?1:-1}function c(t){return a.findTransition((function(e){var i=h(t,e.ev);return i>0}))}function l(t,n){var s=t.seg,o=n.seg,r=s.start,a=s.end,h=o.start,c=o.end;i&&i.checkIntersection(s,o);var l=e.linesIntersect(r,a,h,c);if(!1===l){if(!e.pointsCollinear(r,a,h))return!1;if(e.pointsSame(r,c)||e.pointsSame(a,h))return!1;var u=e.pointsSame(r,h),A=e.pointsSame(a,c);if(u&&A)return n;var m=!u&&e.pointBetween(r,h,c),p=!A&&e.pointBetween(a,h,c);if(u)return p?d(n,a):d(t,c),n;m&&(A||(p?d(n,a):d(t,c)),d(n,r))}else 0===l.alongA&&(-1===l.alongB?d(t,h):0===l.alongB?d(t,l.pt):1===l.alongB&&d(t,c)),0===l.alongB&&(-1===l.alongA?d(n,r):0===l.alongA?d(n,l.pt):1===l.alongA&&d(n,a));return!1}var u=[];while(!r.isEmpty()){var A=r.getHead();if(i&&i.vert(A.pt[0]),A.isStart){i&&i.segmentNew(A.seg,A.primary);var m=c(A),p=m.before?m.before.ev:null,f=m.after?m.after.ev:null;function g(){if(p){var t=l(A,p);if(t)return t}return!!f&&l(A,f)}i&&i.tempStatus(A.seg,!!p&&p.seg,!!f&&f.seg);var S,y=g();if(y){var v;if(t)v=null===A.seg.myFill.below||A.seg.myFill.above!==A.seg.myFill.below,v&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=A.seg.myFill;i&&i.segmentUpdate(y.seg),A.other.remove(),A.remove()}if(r.getHead()!==A){i&&i.rewind(A.seg);continue}if(t)v=null===A.seg.myFill.below||A.seg.myFill.above!==A.seg.myFill.below,A.seg.myFill.below=f?f.seg.myFill.above:s,A.seg.myFill.above=v?!A.seg.myFill.below:A.seg.myFill.below;else if(null===A.seg.otherFill)S=f?A.primary===f.primary?f.seg.otherFill.above:f.seg.myFill.above:A.primary?o:s,A.seg.otherFill={above:S,below:S};i&&i.status(A.seg,!!p&&p.seg,!!f&&f.seg),A.other.status=m.insert(n.node({ev:A}))}else{var b=A.status;if(null===b)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(a.exists(b.prev)&&a.exists(b.next)&&l(b.prev.ev,b.next.ev),i&&i.statusRemove(b.ev.seg),b.remove(),!A.primary){var w=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=w}u.push(A.seg)}r.getHead().remove()}return i&&i.done(),u}return t?{addRegion:function(t){for(var i,n=t[t.length-1],o=0;o=51||!s((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),S=u("concat"),y=function(t){if(!r(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)},v=!g||!S;n({target:"Array",proto:!0,forced:v},{concat:function(t){var e,i,n,s,o,r=a(this),u=l(r,0),A=0;for(e=-1,n=arguments.length;ep)throw TypeError(f);for(i=0;i=p)throw TypeError(f);c(u,A++,o)}return u.length=A,u}})},"9a69":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAADN0lEQVRoBe1Yy2pUQRA9nYjxkegs3IgGd8aFrnSRH/AXJOjGgOImifkLd2qGIAhidkHyAYKYD1Bw9nEVNL4QFE0UxGjK6vuYqe6+3dPOtCMDt2GY6qpTVV2P21NzgXrVGegrA6pn7SatGLqEE1DYn/EIP5l+a8jLTTfcgpotoTHf+2JAlRjCVYdPgiNpwc5IKZN0jvurAEZs28O2770C4DYxl7ZVJmSP6V+muL2LxbUVQkTvz4BtdYleMOt8wW7hprpgQ7J9LK5S2WWWGXMlQ8KpA/jfhaorUFegzwyYvwOJr7g+z+aqV5wv3TOgePopl8JuSTrfUiZ1HGAcI10AwCHh8p2gbVLKpI6Ni9qbLWSqjOEeTZksa0c8OvzGUeZOg3BaSN8I2iY7Mq3TpEUGPMMovnIN9QjiX7sYs4WhAM5yI2zYClF7hcdenJYRFgr5CNN3Mto3OXkN5YKULZRbVFjHvHri9atlGpNopQxA53CVm2qm69lyzCrjesx7x4O/hRS2uLx3O9AKSj8BhB0+9BYOoIVr6nMFymXNqU/MvIIHNI8fPMHuYZKrMsHfoy5YcBQW2d+k4MAfAOEjj8S3JTg5nQf8NNruEl1mrBFAyhaKPkdKYB1Aymz2YquuQC9ZS6njv4WAM8inP78/xdco8I0/r/kafI5xPMKs+uJXEJIVarDmDF+d06yrb5ZxviLD16g+k7VCARxmbPmWwVIrtvKllH7RtY1bWKZLmFPhq3GZLjJ2ja00MkvSTrUnLzf1M9DgjD7EGh30etQyjSkP7wXGCUIV+M4mug1zuuRHuAVOtctPOIkPuM78ZuURtExjyqXbkPCKt9v80S0ZWrqFdGe0VyiADe/LqbZ6Qdyn4zwSvOTdRME5Z0PEXsp2eECewg31Xsj9pPmPLMOlaaH8AJvCcyfDglmQUrYZfXjXTsZJE0BuXP6NPObxp9lSJnUCKn5RygA6XoifCt8KyXw6Ab75DPheyAYMDFRUcb5/U4EBRlUHMMBkV7qqK1CZlgEyh74C/vu6WxbdUVvOKaE5KoyruCpDRzF/B0JIVxYatbuP4rm9WJzrveAMfQv1U4GWNy21ID4DfwAeE6lbE+6zcwAAAABJRU5ErkJggg=="},"9a78":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPaintEngineType=void 0,function(t){t[t["Canvas"]=0]="Canvas",t[t["SVG"]=1]="SVG",t[t["OpenGL"]=2]="OpenGL",t[t["Image"]=3]="Image"}(e.SPaintEngineType||(e.SPaintEngineType={}))},"9a7a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAEX0lEQVRoBe1YW2hVRxRd++ZaU6Fof3yABdEq0tL8hFIfUazVWh9FoTYFH4VCa0oe17/qh2jiZ6EfuclNjUoFMYhRoeALrW3BRC1t/bEgoT4QWoj9Mir4aGt219zjGc85Obnn5vZ6b4QzMMyevWfPrLVnz5wHEJc4AnEE4giUMwKCNt2AQSwoJ4iC106gJ/kE/KaCJymn4yCQKOf6xVg76ZtE0AfFOZ9utHUEC4lxtgvLT8CA3yx1rnFUtq3aSVyWwHOfQjGBcqeZ/wyEoenWF3ALO3lwPs6aBfsxGdtRK3+HDS+1LpqAA36LBabYQkKmbLW6MgrRZ8CNvBdkmM5rL6EcTaCEYApZKpqAyflgCdMFx5SoH30GzIE1Oe+mjXuISwQwaploAs5tYw5s8Q9tp47DI+yCYIAB2oaU3I0CHLRHp1DQo1j9Dp2Oh7hI4Bv5RtzEtg+tWjvS6ctDoF1X4B9cItgqD+AplA8hraeR0Vc9+pxiaQmomg+oHYz4caKaYJEJ4+8Wxbt4jN9IZDvrWFc9XDsyAt1aAQOikLJPJ6ANxwi+mXCdOYT7AKTYf5PtL3ZaRSV1LexfRru+Y/UhQv4EuvVF3kZHkcZhGHkkpUOrcA+/EtRKj1s/abzN1/c21kukMYe2Ruru2DGKWdyNszwbXUyryVbvEfIj0KEvE/x3BLCavh+gHz9ij07yzDO8mNb1+Dd7WGd4BvUyxtVokvNWJzJIIhlU8F1fcNDqHWEdifQx/eqD35DRBDL6CgH0Evx8z6Rv4T5+Yo6+5tH5xU4dQ3sr/Q6wjrPGBBOpEotRJ/1W5xUa5Bav03UksoREfrcmxXimX4ZzrbE6CrkJtOvrZH6BTmFAp9H/AkEu8U6YlTt1Cq/IH+iXsjYhZcEGRj1F8Cb3c5dG+Z4Dquizg/WhHayYaGUKwxPIaA0Z9xDEVI/Dbspf2r6JiuIUc/RTq2vT+VzOXJE1Vie4jiTmMrJdVpePkJJH9NnJ3XiDJM6EuSTDlMy1NYz8QYKr9NhbmKPN2X6rXmX7NavxN3UPScxk+yd9vmI7htUpghN4iZH/RAZc1YjbBrlGn2XE9RGD+g1lm5JDdyCtdQRxxIIXUhF8bsGb1TfLXuqWsz69MYAvaEnTzwFv7vYEmvmMff9/gTfruaVJDlE01ZYggWouu4u1IjvC5J5gLbfR/Anwl5ScpWIe602/IdsbIPhVzPcWiDx9SIUMLEDlOz9DCbgzCm6TxlKC+NZVDWlTcoWbOYckf/bYLnMPqtEoJz26ZyYGCTgLCXM5wf+lDdIbufJn8he/kRdx3FES6eKpmYt6uRHpV6QB5gD6i+AKI/8ewf/hN+To1coDvmJ8+AzSJceijslPQPi8TfL6q5fbkZ7BAcXP9eAKoX1/CinfEgsBHzp1aZTBHajhfT70xikNlvxWcX7u2rF+As5fX/vj1I4aTULgUvan0GgCmieWJK/LHj6en89isMcljkAcgTgCZY3Af8ogImgv35xFAAAAAElFTkSuQmCC"},"9f44":function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.SLinearGradient=void 0;var s=i("64b5"),o=function(t){function e(e,i,n,o){var r=t.call(this)||this;return e instanceof s.SPoint&&i instanceof s.SPoint?(r.start=new s.SPoint(e),r.end=new s.SPoint(i)):(r.start=new s.SPoint(e,i),r.end=new s.SPoint(n,o)),r}return n(e,t),e}(s.SGradient);e.SLinearGradient=o},"9f7f":function(t,e,i){"use strict";var n=i("d039");function s(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=s("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=s("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"9fce":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SBoardItem=void 0;const n=i("64b5"),s=i("6aaf"),o=i("f80e");class r extends o.SGraphItem{constructor(t,e){if(super(t),this.pointArr=[],this.pathList=[],this.data=e,this.zOrder=0,this.data.OutLine.length&&this.data.OutLine[0]&&this.data.OutLine[0].length){let t=this.data.OutLine;this.pointArr=t.map(t=>{let e=new n.SPath2D,i=t.map(t=>{let i=t.map(t=>{let e=t.X,i=-t.Y;return new n.SPoint(e,i)});return e.polygon(i),i});return this.pathList.push(e),i})}}contains(t,e){return!1}onDraw(t){t.pen.lineWidth=t.toPx(1),t.brush.color=s.ItemColor.spaceColor,t.pen.color=s.ItemColor.spaceBorderColor,this.pathList.forEach(e=>{t.drawPath(e)})}}e.SBoardItem=r},a15b:function(t,e,i){"use strict";var n=i("23e7"),s=i("44ad"),o=i("fc6a"),r=i("a640"),a=[].join,h=s!=Object,c=r("join",",");n({target:"Array",proto:!0,forced:h||!c},{join:function(t){return a.call(o(this),void 0===t?",":t)}})},a18d:function(t,e,i){},a237:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SFont=void 0;var n=i("1bcc"),s=i("edc2"),o=i("6232"),r=function(){function t(e,i){this.name="sans-serif",this.size=16,this.textAlign=n.STextAlign.Start,this.textBaseLine=s.STextBaseLine.Top,this.textDirection=o.STextDirection.Inherit,void 0!=e&&(e instanceof t?(this.name=e.name,this.size=e.size,this.textAlign=e.textAlign,this.textDirection=e.textDirection):(this.name=e,this.size=void 0!=i?i:16))}return t}();e.SFont=r},a2fe:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAACC0lEQVRoBe2ZMU7DMBSGn1FZuEAnFjY4BfQSiImdAY5Q4AYggdSFuQfojDgFI0un3gAEkvFvx5A2ceLE78kZ8qQqVqy8fN+zFScu0RhjBcYKyFXgWR8RfoKhxHID/IfebP4JndKV+pC4l4yAh9d0aKEVrUlIgl9gF96XXUiCVyAELyjBJ1APvynYp96BmEeCRyAEr2hmwTW9mqOIRLpAE/y1ercCj/qEhCT2/oa2b+OblgbOPW1cjo2ZJjPy8DiHthsNP6XIXoPHLAqQEOkCE7o09/dgVXgPJySRPoUA+KSPzaK1NFW+2Kq8hy8fmacTjwAAtVaklC6zBtuMEt0EHvSthbpR7hgkjOhgkogXcPDzAu2OBiIRJ7AN78s7CIl2gXr4wUg0CzTDD0IiLBAHn12iXqAbfFaJqkA/+GwS6a8SHj3TsToCAOk3Clkeq/UC3SWywAMzLBAvkQ2+XaBdIit8nEBYIjt8vEBVYhDw3QT+JWgob6LdBXDFbiz0AX3Rizl93/o15q9l+hZAurSFzMGvzAf6ud11AFhbMMKnC3zSwoCfFczTVglm+HSBfZqblWRdKnpYQgAe921eyEpkwWbmja10AZg1SaBfaFcOqXkEkCkkgT6hfVEk5hNAtnoJ9Lhg3plGUl4BZAxJCMDLCNRJCMHLCZQl0Bb6fwypZQPTCb8xxgqMFRCrwC9BGmh5ts+RaAAAAABJRU5ErkJggg=="},a434:function(t,e,i){"use strict";var n=i("23e7"),s=i("23cb"),o=i("a691"),r=i("50c4"),a=i("7b0b"),h=i("65f0"),c=i("8418"),l=i("1dde"),u=i("ae40"),A=l("splice"),d=u("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,p=Math.min,f=9007199254740991,g="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!A||!d},{splice:function(t,e){var i,n,l,u,A,d,S=a(this),y=r(S.length),v=s(t,y),b=arguments.length;if(0===b?i=n=0:1===b?(i=0,n=y-v):(i=b-2,n=p(m(o(e),0),y-v)),y+i-n>f)throw TypeError(g);for(l=h(S,n),u=0;uy-n+i;u--)delete S[u-1]}else if(i>n)for(u=y-n;u>v;u--)A=u+n-1,d=u+i-1,A in S?S[d]=S[A]:delete S[d];for(u=0;uo)s.push(arguments[o++]);if(n=e,(d(e)||void 0!==t)&&!at(t))return A(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),s[1]=e,W.apply(null,s)}})}K[Q][F]||E(K[Q],F,K[Q].valueOf),_(K,Y),L[N]=!0},a551:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SOrderSetType=void 0,function(t){t[t["Top"]=0]="Top",t[t["Bottom"]=1]="Bottom",t[t["After"]=2]="After",t[t["Before"]=3]="Before"}(e.SOrderSetType||(e.SOrderSetType={}))},a626:function(t,e){function i(t,e,i){var n=[],s=[];return t.forEach((function(t){var o=t.start,r=t.end;if(e.pointsSame(o,r))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{i&&i.chainStart(t);for(var a={index:0,matches_head:!1,matches_pt1:!1},h={index:0,matches_head:!1,matches_pt1:!1},c=a,l=0;l{let e=new n.SPath2D,i=t.map(t=>{let i=t.map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(e,i)});return e.polygon(i),i});return this.pathList.push(e),i})}}get highLightFlag(){return this._highLightFlag}set highLightFlag(t){this._highLightFlag=t,this.update()}get transparency(){return this._transparency}set transparency(t){this._transparency=t,this.update()}get isInfected(){return this._isInfected}set isInfected(t){this._isInfected=t,this.update()}boundingRect(){return new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onMouseDown(t){return this.selectable&&(this.selected=!this.selected,this.clickPoint=new n.SPoint(t.x,t.y)),this.$emit("click",t),!0}onMouseUp(t){return!1}contains(t,e){for(let i=0;i{t.drawPath(e)}),t.brush.color=n.SColor.Black,t.font.size=t.toPx(10),this.clickPoint&&t.drawText(this.data.RoomLocalName,this.clickPoint.x,this.clickPoint.y)}}e.SZoneItem=r},a6b1:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABKklEQVQ4Ee1UsUoDQRB9s7uotSgqWMXSVoyFkKTUz7DUgGAteChYCp5o6x/4BUKaA0XUztJYKGhA/ADJOr4jTZiQMyR2ujCwb97bd3Oz7AjMOn/SidcWSiZdCKNHXF3CY02kHazyuRUvoFiz+ULcBrJruW+olnsMHfyh4uum0MCQCq0yKtktFsRwQ8GDq5jQcC+IX+xUmGqdThuM8YEdFe/U7mBb7rrPOJzqLBMpY76b+HEvKFNzZHUBEZO8hPzXz/i1xAr64lQfeGrK8s4mRsX/hqN2EPiDPewZDsN0UcRdKuLy3Ayav2K4uyIZC1nPiwnw+ATnGZ9RFcea5MkB1zR1L1YbsIkmTtDge66RrFhBAVZy+5bvzENVx9FQ4qAYs4K+2OMDW/Jm+W8GpUkHQNXUzgAAAABJRU5ErkJggg=="},a6dc:function(t,e){function i(){var t,e=0,i=!1;function n(e,i){return t.list.push({type:e,data:i?JSON.parse(JSON.stringify(i)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n("check",{seg1:t,seg2:e})},segmentChop:function(t,e){return n("div_seg",{seg:t,pt:e}),n("chop",{seg:t,pt:e})},statusRemove:function(t){return n("pop_seg",{seg:t})},segmentUpdate:function(t){return n("seg_update",{seg:t})},segmentNew:function(t,e){return n("new_seg",{seg:t,primary:e})},segmentRemove:function(t){return n("rem_seg",{seg:t})},tempStatus:function(t,e,i){return n("temp_status",{seg:t,above:e,below:i})},rewind:function(t){return n("rewind",{seg:t})},status:function(t,e,i){return n("status",{seg:t,above:e,below:i})},vert:function(e){return e===i?t:(i=e,n("vert",{x:e}))},log:function(t){return"string"!==typeof t&&(t=JSON.stringify(t,!1," ")),n("log",{txt:t})},reset:function(){return n("reset")},selected:function(t){return n("selected",{segs:t})},chainStart:function(t){return n("chain_start",{seg:t})},chainRemoveHead:function(t,e){return n("chain_rem_head",{index:t,pt:e})},chainRemoveTail:function(t,e){return n("chain_rem_tail",{index:t,pt:e})},chainNew:function(t,e){return n("chain_new",{pt1:t,pt2:e})},chainMatch:function(t){return n("chain_match",{index:t})},chainClose:function(t){return n("chain_close",{index:t})},chainAddHead:function(t,e){return n("chain_add_head",{index:t,pt:e})},chainAddTail:function(t,e){return n("chain_add_tail",{index:t,pt:e})},chainConnect:function(t,e){return n("chain_con",{index1:t,index2:e})},chainReverse:function(t){return n("chain_rev",{index:t})},chainJoin:function(t,e){return n("chain_join",{index1:t,index2:e})},done:function(){return n("done")}},t}t.exports=i},a73e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABmUlEQVQ4Ea1UMS9DURT+TotKlMQu0QWxWPwOYWHWXYnEZjGUxeK9DsQiBgsWOzub0MQoEoPEIkpVwzu++15v86S9bUNvc3q/d853v3vOO/ddoMtDQj1PcxBsQZGO6Vfp28ey5GK+tjAS9LVE5hvtKrZikhuMI4kMluQh5m8Je8KoyUxwwWzm6uyC5im4zud41vWwC0SCrqjxB9iEpy+tKExG+bvFFPz2gorZlmImqDVGEWW3YBp5VLGNT1xyQR+GMO0ULmGUnGvahFswKxUKVODrN0sKkBV32QUdtlkmnLv+MeDO0AoqTpFgyR2O9oIrstGhVkhrLXisfXhnfmYsskUiQYjtn6+pGrRzjWwJ8dnTBTyhjFd8hObjEQfaX6d4es5GVEILcGf97gwTuCH5iB025zBJfMhOm85HQ3BC33P4IBggnjHYXg5KdPbr04uWgcemSJhibMy6GuZdzfCF3FNjp+vHpuuCtmRzPY3QvhrKEfTy/RhetSFmHcK4kidYjZoimGdsjdb8qoq2tcubz8ImDmKvefAf3h+Vv2whSiBdIAAAAABJRU5ErkJggg=="},a9e3:function(t,e,i){"use strict";var n=i("83ab"),s=i("da84"),o=i("94ca"),r=i("6eeb"),a=i("5135"),h=i("c6b6"),c=i("7156"),l=i("c04e"),u=i("d039"),A=i("7c73"),d=i("241c").f,m=i("06cf").f,p=i("9bf2").f,f=i("58a8").trim,g="Number",S=s[g],y=S.prototype,v=h(A(y))==g,b=function(t){var e,i,n,s,o,r,a,h,c=l(t,!1);if("string"==typeof c&&c.length>2)if(c=f(c),e=c.charCodeAt(0),43===e||45===e){if(i=c.charCodeAt(2),88===i||120===i)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+c}for(o=c.slice(2),r=o.length,a=0;as)return NaN;return parseInt(o,n)}return+c};if(o(g,!S(" 0o1")||!S("0b1")||S("+0x1"))){for(var w,x=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof x&&(v?u((function(){y.valueOf.call(i)})):h(i)!=g)?c(new S(b(e)),i,x):b(e)},C=n?d(S):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),P=0;C.length>P;P++)a(S,w=C[P])&&!a(x,w)&&p(x,w,m(S,w));x.prototype=y,y.constructor=x,r(s,g,x)}},ab10:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SSize=void 0;var n=i("64b5"),s=function(){function t(e,i){void 0==e?(this.width=0,this.height=0):e instanceof t?(this.width=e.width,this.height=e.height):(this.width=e,this.height=i)}return t.prototype.isEmpty=function(){return this.width<=0||this.height<=0},t.prototype.isNull=function(){return 0==this.width&&0==this.height},t.prototype.isValid=function(){return this.width>0&&this.height>0},t.prototype.scale=function(t,e,i){void 0===i&&(i=n.SAspectRatioMode.IgnoreAspectRatio);var s=this.scaled(t,e,i);this.width=s.width,this.height=s.height},t.prototype.scaled=function(e,i,s){void 0===s&&(s=n.SAspectRatioMode.IgnoreAspectRatio);var o=0,r=0;if(s==n.SAspectRatioMode.KeepAspectRatio){var a=Math.min(e/this.width,i/this.height);o=this.width*a,r=this.height*a}else if(s==n.SAspectRatioMode.KeepAspectRatioByExpanding){a=Math.max(e/this.width,i/this.height);o=this.width*a,r=this.height*a}else o=e,r=i;return new t(o,r)},t.prototype.transpose=function(){var t=this.transposed();this.width=t.width,this.height=t.height},t.prototype.transposed=function(){return new t(this.height,this.width)},t}();e.SSize=s},ab13:function(t,e,i){var n=i("b622"),s=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[s]=!1,"/./"[t](e)}catch(n){}}return!1}},abdb:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAD2ElEQVRYCe2XX2hTdxTHz/ndppRF5ybYgukmbCvM6RTxYXsQ16Lbg0+bzrrn2aU1muLEWGEvlz1MSCtaazvaOnBPdh0UGYpMKI65h4lssEEZ2gdBrGKrAyGONum9Z+fc5nfNdTeJkrubl/wg+f3/nU++5/fnBKCWagrUFCipAJbsDbgznkx9QDZ9A4QXYo3RpGmai+VMqHIDguwny95BRM0EdtfMXGaMAevKrR8uoMJ+QLwrUAy661kgQwU8c7rvFkKkrRDyzmzmu1JKhroHtTs7u1MtlkU/sYyrl9pworlx2R6/PRmqghpw+FTvtGFgq1aSHb5TlIwPD0f0GJ1XRUFt3E9JtbHlk5HOzpweUxUFtXGtJKs0s9RGO+nPaY+SZY+5TOQTh13Jns02UCsSxQipiWwI5MdZizZ7Gu+wkVje1kf0x/QYl3dJvaSLedPW353LdBFASu4vmRBWUojvjgz2XSuqYFf34fUzs5kJAmoJC0rbYdXu1dGyKan7An6WPLx9cREm2LnL85MsdsN5hXAesW4K6oxZtZC19IIV5Q31kdz8/LfspTZZx4GLGG1D/WYmX/cunzh4ZG0uZ/1KBC86AxB+iUSM+NDJ9F/ekZXX5ILm1+Qcb5+PHVuiHMN93Z++oVf3bPTx8XEjm7XHn8DhWGzV8m1hwQHWtxbCCaShSSVf0bTmUz5NHVJml15rUK9+mE73ZKUeZPJTTuBGB4/dfNqOZw8iwSHeC5IIARMDA90LS9XgvvNwYxIsOKs6wUOkzQ9O+l0XJxJH3+BJb0kjw02ODPb+LuUgkx+cBA/F4MS2C5gDa4sLo/AHtxxgYebB44OFypWDE9MuIPs0H1nI/gP3FAXIxxvHbnDWY7c+C5wHUAG95MLY9MgtB1jgG+ErA+G9lVH1Zim3Fpp8ckiI7usOVNCoy0HmvAdtXu/n51nTdTEodVtP5Htwsy5XO3cBo5HoJMM4z5fc7PwpGUiEBe4Cnjhh/s3XyxUxzAquix9I7Q4LopQdF9ABM/BLPZijmFOJQ1+8ouvVyj2AZwZ6r/IT970DQ9CUnV/4cd/nR1+rFpzY9QBKw8tRtZfvQScWY2evzWVz1zv2p/b7/aGR8f938j0IHckjzWBZ8ppscgEQH/JbfREVTnG4P0sGyJVRUUKy597f+s7l9vb2orGlL6BYjZvmC/QgcxII9vKJ/o/SFZEVTGaA9OjQ8Z6CJk+xqOER0/xn9HRfnCOyDezys/z+PfTMDKzCz0KJVFTBp+dIMDt59bf1YNsxm6CRFDu5woSg5vDt1y8V/g+ucMna9JoCgSvwL01BhzbQ6eMUAAAAAElFTkSuQmCC"},ac1f:function(t,e,i){"use strict";var n=i("23e7"),s=i("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad3d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SMathUtil=void 0;const n=i("64b5"),s=i("2441");class o{static pointDistance(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))}static getMinDisPoint(t,e){if(!e.length)return null;let i={MinDis:o.pointDistance(t.x,t.y,e[0].X,-e[0].Y),Point:e[0]};for(let n=1;no&&t.yr&&t.xr&&ue.right?t.right:e.right,o=(t.bottom,e.bottom,e.bottom);return t.width+e.width>s-i&&t.height+e.height>o-n}static lineIntersection(t,e){let i=t.dy/t.dx,s=t.y1-i*t.x1,o=e.dy/e.dx,r=e.y1-o*e.x1;if(i==o)return s==r?"repeat":null;let a=(r-s)/(i-o),h=i*a+s,c=Math.min(t.x1,t.x2),l=Math.min(e.x1,e.x2);return a>=c&&a<=l?new n.SPoint(a,h):null}static transferToArray(t){return t.map(t=>[t.x,t.y])}static transferToSPoint(t){return t.map(t=>new n.SPoint(t[0],t[1]))}static getIntersectInArray(t){let e=[];if(t.length)if(1==t.length){let i={Outer:[],Inner:[]};i.Outer=t[0].map(t=>new n.SPoint(t[0],t[1])),e.push(i)}else{let i={regions:[],inverted:!1};i.regions.push(t[t.length-1]);let o=[t.length-1];for(let e=t.length-2;e>0;e--){let n={regions:[],inverted:!1};n.regions.push(t[e]);let r=s.intersect(n,i);console.log(r),r.regions.length||(o.unshift(e),i.regions=[],i.regions.push(t[e]))}o.unshift(0),console.log(o);for(let s=0;snew n.SPoint(t[0],t[1])),r.Inner=i.map(t=>t.map(t=>new n.SPoint(t[0],t[1]))),e.push(r)}}else;return console.log(e),e}static calculateArea(t){let e=0,i=t.length;t[i]=t[0];for(let n=1;n<=i;n++)e+=t[n].x*t[n-1].y-t[n-1].x*t[n].y;return e/2}}e.SMathUtil=o},ad6d:function(t,e,i){"use strict";var n=i("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ada0:function(t,e,i){},ae40:function(t,e,i){var n=i("83ab"),s=i("d039"),o=i("5135"),r=Object.defineProperty,a={},h=function(t){throw t};t.exports=function(t,e){if(o(a,t))return a[t];e||(e={});var i=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:h,u=o(e,1)?e[1]:void 0;return a[t]=!!i&&!s((function(){if(c&&!n)return!0;var t={length:-1};c?r(t,1,{enumerable:!0,get:h}):t[1]=1,i.call(t,l,u)}))}},aff5:function(t,e,i){var n=i("23e7");n({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},b019:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAFBklEQVRoBe1ZbWhbVRg+5yZpt1qw/tkcTpD5gSj2TxE314kf84MqOFAjbFVoyYfmpmnT/pg/ZFv3U2jSrrlZb1JSEItYHQjOijoVXN1ErT8mjOLHEKxs65/G0X20Sc7xOV3P9d6Y7LYlJq3kwu15z/t1nvc973vuzS0h1auagWoGqhmoZAZoXzzZShnbVUkQq12bK8pJpwDPOfGt1kkl7YCdKJUEUIq1nXlOpiglX+fx1tQU1fIIAN0rQVkCEOC7g36/FK7FMRLTdQRhBLDuS6gaQKXLzNIDhcCMjY3V/DmTPsw5f1XIKaVv37ap4YDb7V4opF9unm0AAjzjfL8EhkD2gyemb0heJUfbHpCZN4MsxDPLy0nbBlBOMKtZyzYAUfP5jgvx8nXKNbftAdGwouZl2cgmLhdAu3VsA1g6bUTDlrxpdV2vu5yhQ5yQtKuh7s1Qa+slO8D5ctsSyjco1TwaT20D+NPY2VewvR3Z2ctTkVjCvVL/FQmgL5Zs4bnsJMA3SsDYhS2YvxcZ1D+NaMN3Sb7dWNYAAJBGteRBSvhxTniDBIe+Av7rF4inOGc/YTcOHBkfr5X8YuOKAsBT2SFAFHN2I350ZKQhGkt8xBg7JH3g7TejEBpyKPRBPOK/N+w53wCd3sy56TMDseEnDH4BYtkBRMbGNk7PpI8hg+8LuoCvoqz+eLKRzS38gOw+K5WQhfPU4Xgs3OEb7Ax4J7tV73aFKkFCyV9SB71xT5bnTuAVelTTRm41+CZiWQHE46O3kIvpz5GV53G/QGZmv+pPJjeb/BQlo1piH7J+Ggp3GkqUTNAa0hR+3fON5KGMWDjo1TbQGrzr03clX4x4/997jS9MRbREgCpWyNaZ2WqJ1rTU7VdzcxOo2Z1SDIcPsXn27ZGh1H2Slz/iiHQhcwOM8XegX2fIKR2sd5HHw37/eYNnIlS17UJPh2+vkzp2o6x+NkSc3MwZ1+Bvj8EDccMA0Ej3z7PsKej9CyhA3ZHJZk5F44ndZoeCjur6lrkM+RI6ISlDvV9RFNraE/SF/H5/RvKLjZ1BzxeubVsbsTMHEcg1Q4/zTQYNomgAA5rejKyfxL1VGgBEAtv7lpwTZIXl+CfRmO6RvOjR4Z18gUxC1ix5GH9TFGVHWPWNmni2ZKilZb476DtMqfIAeuazQgYFn8TRuL4ny1CHOA1MRr34vXxIzAH4F8bJUZDC3gk62TeYuBvZmOa5XB+a1SX0xIWFP6b1Na1dbW2L7+DXuSv72616foXF0/1a8mX0Uwr+jZKkSz+SF78LiQzjkPyRcqqhWR1iGWxhjlOu9qh+3bysKB3U4wdiF8x8SYuzHXdvV8CDDP5zzkv5asdIXE/xHGkT9gKvpYQQWRNhZEiCF7VHFf5iPnhhHA74Tricrofh5HcxN1+U0DQn9Lmw6u0tJfjFNRix9I8lAGSzyQBCyayT8ifDAf+HBi+PCL3WflapVbYD8HdSBMBnqMPZ1BP0jkvefzlaA1haCYCmce/qVP0Tdot3eb0XyeaGRwH8GHZs9CYX3xEOtJ+zsyuVvFATn61VnM+oavsfy12k2+2+irJ7qeTlsgwA+QFc2Oiobw4E9s0uw9aiUgnwAoC1hBzK8dWAt0RS5ol1B3KsWRyrZcawouXwdBcfd43LGgC++kLB+HBqaK1hwlpCaxhoMWhO8W8a8Z+O9XgJ7OsRdxVzNQPVDPyfMvA37Tvcn8EoqWAAAAAASUVORK5CYII="},b031:function(t,e,i){"use strict";var n=i("d3c2"),s=i.n(n);s.a},b034:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphItem=void 0;const n=i("4c26"),s=i("64b5");class o extends n.SObject{constructor(t=null){super(),this._scene=null,this._parent=null,this.children=[],this._zOrder=0,this.pos=new s.SPoint(0,0),this.scale=1,this._inverseScale=1,this._rotate=0,this._visible=!0,this.moveable=!1,this._isMoving=!1,this.enabled=!0,this.selectable=!1,this._selected=!1,this.isTransform=!0,this._mouseDownPos=new s.SPoint,this.cursor="default",this._lastGrab=null,t&&(this.parent=t)}get scene(){return null!=this._parent?this._parent.scene:this._scene}set scene(t){this._scene=t,this.update()}get parent(){return this._parent}set parent(t){if(this.parent!=t){if(null!=this._parent){let t=this._parent.children.indexOf(this);this._parent.children.splice(t,1)}this._parent=t,this.update(),null!=this._parent&&(this._parent.children.push(this),this._parent.children.sort(o.sortItemZOrder))}}get zOrder(){return this._zOrder}set zOrder(t){this._zOrder=t,null!=this._parent&&this._parent.children.sort(o.sortItemZOrder),this.update()}get x(){return this.pos.x}set x(t){if(this.pos.x==t)return;this.pos.x;this.pos.x=t,this.update()}get y(){return this.pos.y}set y(t){if(this.pos.y==t)return;this.pos.y;this.pos.y=t,this.update()}get inverseScale(){return this._inverseScale}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.update()}get visible(){return this._visible}set visible(t){this._visible=t,this.update()}get selected(){return this._selected&&this.selectable&&this.enabled}set selected(t){this.selected!=t&&(this._selected=t,this.update())}onPaint(t,e){this.onDraw(t);for(let n of this.children)if(n.visible){t.save();try{if(t.translate(n.x,n.y),t.scale(n.scale,n.scale),t.rotate(n.rotate),!n.isTransform){let e=t.worldTransform;n._inverseScale=1/e.a,t.scale(n._inverseScale,n._inverseScale)}n.onPaint(t,e)}catch(i){console.log(i)}t.restore()}}onDraw(t){}hide(){this.visible=!1}show(){this.visible=!0}update(){if(null!=this.scene){const t=this.scene.view;null!=t&&t.update()}}boundingRect(){return new s.SRect(0,0,10,10)}moveTo(t,e){this.x=t,this.y=e}contains(t,e){return this.boundingRect().contains(t,e)}itemPath(){if(null!=this.parent){let t=this.parent.itemPath();return t.push(this),t}return[this]}mapFromScene(t,e){const i=this.scene2itemMattrix();return new s.SPoint(t,e).matrixTransform(i.inversed())}mapToScene(t,e){if(null==this.parent)return new s.SPoint(t,e);const i=this.scene2itemMattrix();return new s.SPoint(t,e).matrixTransform(i)}scene2itemMattrix(){let t=new n.SMatrix,e=this.itemPath();for(let i of e)t.translate(i.x,i.y),t.scale(i.scale,i.scale),t.rotate(i.rotate),i.isTransform||t.scale(i._inverseScale,i._inverseScale);return t}onClick(t){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(!this.acceptEvent()||!i.visible)continue;let n=o.toChildMouseEvent(i,t);if(i.contains(n.x,n.y)&&i.onClick(n))return!0}return!1}onDoubleClick(t){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(!this.acceptEvent()||!i.visible)continue;let n=o.toChildMouseEvent(i,t);if(i.contains(n.x,n.y)&&i.onDoubleClick(n))return!0}return!1}onMouseDown(t){for(let n=this.children.length-1;n>=0;n--)try{let e=this.children[n];if(!this.acceptEvent()||!e.visible)continue;let i=o.toChildMouseEvent(e,t);if(e.contains(i.x,i.y)&&e.onMouseDown(i))return!0}catch(i){console.log(i)}let e=!1;return this.selectable&&(e=this.clickSelect(t)),this.moveable?(this._mouseDownPos=new s.SPoint(t.x,t.y),this._isMoving=!0,this.scene&&(this._lastGrab=this.scene.grabItem),this.grabItem(this),!0):e}onMouseMove(t){for(let i=this.children.length-1;i>=0;i--){let e=this.children[i];if(!this.acceptEvent()||!e.visible)continue;let n=o.toChildMouseEvent(e,t);if(e.contains(n.x,n.y)&&e.onMouseMove(n))return!0}if(this.scene&&this.scene.view&&(this.scene.view.cursor=this.cursor),t.buttons&n.SMouseButton.LeftButton&&this.moveable&&this._isMoving){let e=new s.SPoint(this.pos.x,this.pos.y);const i=this.toParentChange(t.x-this._mouseDownPos.x,t.y-this._mouseDownPos.y);this.moveTo(this.pos.x+i.x,this.pos.y+i.y),this.$emit("onMove",e,this.pos)}const e=this.scene;return null!=e&&(null!=e.hoverItem&&e.hoverItem===this||(null!=e.hoverItem&&e.hoverItem.onMouseLeave(t),this.onMouseEnter(t),e.hoverItem=this)),!0}onMouseUp(t){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(!this.acceptEvent()||!i.visible)continue;let n=o.toChildMouseEvent(i,t);if(i.contains(n.x,n.y)&&i.onMouseUp(n))return!0}return this._isMoving=!1,this.releaseItem(),this.scene&&(this.scene.grabItem=this._lastGrab),!1}onMouseEnter(t){return!1}onMouseLeave(t){return!1}onContextMenu(t){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(!this.acceptEvent()||!i.visible)continue;let n=o.toChildMouseEvent(i,t);if(i.contains(n.x,n.y)&&i.onContextMenu(n))return!0}return!1}onKeyDown(t){}onKeyPress(t){}onKeyUp(t){}cancelOperate(){}toData(){return null}moveToOrigin(t,e){this.children&&this.children.length&&this.children.forEach(i=>{i.moveToOrigin(t,e)})}static sortItemZOrder(t,e){return t.zOrder-e.zOrder}static toChildMouseEvent(t,e){let i=new n.SMouseEvent(e);i.matrix.translate(t.x,t.y),i.matrix.scale(t.scale,t.scale),i.matrix.rotate(0,0,t.rotate),t.isTransform||i.matrix.scale(t._inverseScale,t._inverseScale);const o=new s.SPoint(e.offsetX,e.offsetY).matrixTransform(i.matrix.inversed());return i.x=o.x,i.y=o.y,i}grabItem(t){null!=this.scene&&(this.scene.grabItem=t)}releaseItem(){null!=this.scene&&(this.scene.grabItem=null)}toParentChange(t,e){const i=new n.SMatrix;i.scale(this.scale,this.scale),this.isTransform||i.scale(this._inverseScale,this._inverseScale),i.rotate(this.rotate);const o=new s.SPoint(t,e).matrixTransform(i);return new s.SPoint(o.x,o.y)}acceptEvent(){return this.visible&&this.enabled}clickSelect(t){if(!this.selectable||t.buttons!=n.SMouseButton.LeftButton)return!1;const e=this.scene;return null!=e&&(t.ctrlKey?e.selectContainer.toggleItem(this):e.selectContainer.setItem(this),!0)}}e.SGraphItem=o},b0c0:function(t,e,i){var n=i("83ab"),s=i("9bf2").f,o=Function.prototype,r=o.toString,a=/^\s*function ([^ (]*)/,h="name";n&&!(h in o)&&s(o,h,{configurable:!0,get:function(){try{return r.call(this).match(a)[1]}catch(t){return""}}})},b1b8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLine=void 0;var n=i("3f8a"),s=function(){function t(e,i,s,o){void 0==e?(this.p1=new n.SPoint(0,0),this.p2=new n.SPoint(0,0)):e instanceof t?(this.p1=new n.SPoint(e.p1.x,e.p1.y),this.p2=new n.SPoint(e.p2.x,e.p2.y)):e instanceof n.SPoint&&i instanceof n.SPoint?(this.p1=new n.SPoint(e.x,e.y),this.p2=new n.SPoint(i.x,i.y)):(this.p1=new n.SPoint(e,i),this.p2=new n.SPoint(s,o))}return Object.defineProperty(t.prototype,"x1",{get:function(){return this.p1.x},set:function(t){this.p1.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y1",{get:function(){return this.p1.y},set:function(t){this.p1.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x2",{get:function(){return this.p2.x},set:function(t){this.p2.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y2",{get:function(){return this.p2.y},set:function(t){this.p2.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dx",{get:function(){return this.p2.x-this.p1.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dy",{get:function(){return this.p2.y-this.p1.y},enumerable:!1,configurable:!0}),t.prototype.isNull=function(){return Math.abs(this.p1.x-this.p2.x)+Math.abs(this.p1.y-this.p2.y)<1e-6},t.prototype.center=function(){return new n.SPoint((this.p1.x+this.p2.x)/2,(this.p1.y+this.p2.y)/2)},t.prototype.translate=function(t,e){this.p1.x+=t,this.p2.x+=t,this.p1.y+=e,this.p2.y+=e},t.prototype.translated=function(e,i){return new t(this.p1.x+e,this.p1.y+i,this.p2.x+e,this.p2.y+i)},t}();e.SLine=s},b32a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAoCAYAAABnyQNuAAACU0lEQVRYR+1ZXXLSUBT+vptOX8UVSFdgugO6AruDMoIzJU8I9rn0WYP4Ap0xjHEFsgNhBeIKZAfFRx2S00lCOhETSMJPdSZ5vefc8+XLOd8994TI+dQv31RAuRaKTrC0bhuBzCEcK6qbj/2305whwTyOL41WVYGf8vjC5Zl1+26cxzcX2JrRugvZFJHvBObrmUWJ5HPPRkRmw0H35CBg/c+v5GsQGJ+HA7OaJnDdaI0AvvBsF65zYt/2Zmn8ojaZmY2CBeTG6nc7aYLWjVYH4LVvmzMVHsDWGu0LUsqbAgtQJhiwKRiDki7/hBUQlcBNbAKbmXXVJJrfPtitCmbT2225TqjTUEF8sLVG+5zEly333Yv7X2C9KK+MK11cCfSSrg7yfVhEFNp7QbLcVChVEhdBaslriPK1mIrzqC7HFljeIsr7QmmLrwCbleGC2ayMpbU/KLO1Rtv2qlmAD8O+2VwFGZHGqdU3T1fXDwq2brRlKTsTa9D1T6noEwUT1c3Q5p8FG9cXFGCTCiZLGhTMhg12mp61YDYm53bSGxTMFswCKNKgSIP/LQ1qRntG4BlENnZdi2Pnqd3r/TFuOmgj49+M4ZwT2ihuSlhtNktHv1VThNPhwBw9aj+b9kaQ3AilGy3t5AQrwO5Luh6V2epls3yktB/BvQpja2CebQsoyd8rPu2X+kbSn2BafTNxDJu48CBH+0IZt2+C9IWmiWCXPzhGIJ4cBK/g50Icfd1EfO3k20sHjVoHED38J7Bz4CITIafOsdNZPSxWY2Ue0+8cbIYN7wEBu8dHwhnWhAAAAABJRU5ErkJggg=="},b475:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Transparency=void 0,e.Transparency=["00","03","05","08","0A","0D","0F","12","14","17","1A","1C","1F","21","24","26","29","2B","2E","30","33","36","38","3B","3D","40","42","45","47","4A","4D","4F","52","54","57","59","5C","5E","61","63","66","69","6B","6E","70","73","75","78","7A","7D","80","82","85","87","8A","8C","8F","91","94","96","99","9C","9E","A1","A3","A6","A8","AB","AD","B0","B3","B5","B8","BA","BD","BF","C2","C4","C7","C9","CC","CF","D1","D4","D6","D9","DB","DE","E0","E3","E6","E8","EB","ED","F0","F2","F5","F7","FA","FC","FF"]},b631:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SRectSelectItem=void 0;const n=i("f80e"),s=i("64b5"),o=i("6aaf");class r extends n.SGraphItem{constructor(t,e){super(t),this.startPoint=new s.SPoint,this.endPoint=new s.SPoint,this.startPoint=e,this.endPoint=new s.SPoint(e.x,e.y),this.update(),this.zOrder=o.ItemOrder.rectSelectOrder}boundingRect(){return new s.SRect(this.startPoint,this.endPoint)}onMouseMove(t){return this.endPoint.x=t.x,this.endPoint.y=t.y,this.update(),!0}onDraw(t){t.pen.lineWidth=t.toPx(2),t.pen.color=o.ItemColor.rectSelectOutColor,t.brush.color=o.ItemColor.rectSelectInColor,t.drawRect(this.startPoint,this.endPoint)}}e.SRectSelectItem=r},b64b:function(t,e,i){var n=i("23e7"),s=i("7b0b"),o=i("df75"),r=i("d039"),a=r((function(){o(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(t){return o(s(t))}})},b727:function(t,e,i){var n=i("0366"),s=i("44ad"),o=i("7b0b"),r=i("50c4"),a=i("65f0"),h=[].push,c=function(t){var e=1==t,i=2==t,c=3==t,l=4==t,u=6==t,A=5==t||u;return function(d,m,p,f){for(var g,S,y=o(d),v=s(y),b=n(m,p,3),w=r(v.length),x=0,C=f||a,P=e?C(d,w):i?C(d,0):void 0;w>x;x++)if((A||x in v)&&(g=v[x],S=b(g,x,y),t))if(e)P[x]=S;else if(S)switch(t){case 3:return!0;case 5:return g;case 6:return x;case 2:h.call(P,g)}else if(l)return!1;return u?-1:c||l?l:P}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},b924:function(t,e){function i(t,e,i){var n=[];return t.forEach((function(t){var s=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&&t.otherFill.above?2:0)+(t.otherFill&&t.otherFill.below?1:0);0!==e[s]&&n.push({id:i?i.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[s],below:2===e[s]},otherFill:null})})),i&&i.selected(n),n}var n={union:function(t,e){return i(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return i(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return i(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return i(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return i(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};t.exports=n},bbd0:function(t,e,i){"use strict";var n=i("787a"),s=i.n(n);s.a},bec8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLineItem=void 0;const n=i("64b5"),s=i("4c26"),o=i("ad3d"),r=i("6aaf"),a=i("f80e");class h extends a.SGraphItem{constructor(t,e){super(t),this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this._line=[],this._status=r.SItemStatus.Normal,this._strokeColor=n.SColor.Black,this._lineStyle=a.SLineStyle.Solid,this._fillColor=n.SColor.White,this._activeFillColor=new n.SColor("#2196f3"),this._lineWidth=1,this.dis=5,this.sceneDis=5,this.curIndex=-1,this.curPoint=null,this.undoStack=new s.SUndoStack,e?e instanceof n.SPoint?this.line.push(e):this.line=e:this.line=[]}get line(){return this._line}set line(t){this._line=t,this.update()}get status(){return this._status}set status(t){this._status=t,this.undoStack.clear(),this.update()}get strokeColor(){return this._strokeColor}set strokeColor(t){this._strokeColor=t,this.update()}get lineStyle(){return this._lineStyle}set lineStyle(t){this._lineStyle=t,this.update()}get fillColor(){return this._fillColor}set fillColor(t){this._fillColor=t,this.update()}get activeFillColor(){return this._activeFillColor}set activeFillColor(t){this._activeFillColor=t,this.update()}get lineWidth(){return this._lineWidth}set lineWidth(t){this._lineWidth=t,this.update()}addPoint(t){this.line.length<2?(this.line.push(t),this.recordAction(a.SGraphPointListInsert,[this.line,t])):(this.line[1]=t,this.recordAction(a.SGraphPointListInsert,[this.line,t,1]),this.status=r.SItemStatus.Normal,this.releaseItem(),this.$emit("finishCreated")),this.update()}onDoubleClick(t){return this.status==r.SItemStatus.Normal?(this.status=r.SItemStatus.Edit,this.grabItem(this)):this.status==r.SItemStatus.Edit&&(this.status=r.SItemStatus.Normal,this.releaseItem()),this.update(),!0}onMouseDown(t){if(this.curIndex=-1,this.curPoint=null,t.shiftKey&&(t=this.compare(t)),t.buttons==s.SMouseButton.LeftButton){if(this.status==r.SItemStatus.Normal)return super.onMouseDown(t);if(this.status==r.SItemStatus.Edit)this.findNearestPoint(new n.SPoint(t.x,t.y));else if(this.status==r.SItemStatus.Create)return this.addPoint(new n.SPoint(t.x,t.y)),!0}return!0}onMouseUp(t){if(this.status==r.SItemStatus.Edit){if(this.curIndex>-1){const t=new n.SPoint(this.line[this.curIndex].x,this.line[this.curIndex].y);this.recordAction(a.SGraphPointListUpdate,[this.line,this.curPoint,t,this.curIndex])}}else if(this.status==r.SItemStatus.Normal)return this.moveToOrigin(this.x,this.y),super.onMouseUp(t);return this.curIndex=-1,this.curPoint=null,!0}onMouseMove(t){if(t.shiftKey&&(t=this.compare(t)),this.status==r.SItemStatus.Create)this.line[0]instanceof n.SPoint&&(this.line[1]=new n.SPoint(t.x,t.y));else{if(this.status!=r.SItemStatus.Edit)return super.onMouseMove(t);-1!=this.curIndex&&(this.line[this.curIndex].x=t.x,this.line[this.curIndex].y=t.y)}return this.update(),!0}findNearestPoint(t){let e=this.sceneDis;for(let i=0;i(i.x=i.x+t,i.y=i.y+e,i)),this.x=0,this.y=0}compare(t){if(this.line.length){let e=new n.SPoint(t.x,t.y);this.status==r.SItemStatus.Create?e=this.line[0]:this.status==r.SItemStatus.Edit&&(1==this.curIndex?e=this.line[0]:0==this.curIndex&&(e=this.line[1]));const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);s>i?t.x=e.x:t.y=e.y}return t}contains(t,e){if(2==this.line.length){let i=new n.SPoint(t,e);if(o.SMathUtil.pointToLine(i,new n.SLine(this.line[0],this.line[1])).MinDis{let e=t.x,i=t.y;ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i)})),new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onDraw(t){this.sceneDis=t.toPx(this.dis),t.pen.lineWidth=t.toPx(this.lineWidth),t.pen.color=this.strokeColor,2==this.line.length?(t.pen.color=new n.SColor(this.strokeColor),this.lineStyle==a.SLineStyle.Dashed?t.pen.lineDash=[t.toPx(3*this.lineWidth),t.toPx(7*this.lineWidth)]:this.lineStyle==a.SLineStyle.Dotted&&(t.pen.lineDash=[t.toPx(this.lineWidth),t.toPx(this.lineWidth)]),this.selected&&this.status==r.SItemStatus.Normal&&(t.pen.lineWidth=t.toPx(2*this.lineWidth),t.shadow.shadowBlur=10,t.shadow.shadowColor=new n.SColor("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5),t.drawLine(this.line[0],this.line[1]),this.status!=r.SItemStatus.Edit&&this.status!=r.SItemStatus.Create||this.line.forEach((e,i)=>{t.brush.color=this.fillColor,i==this.curIndex&&(t.brush.color=this.activeFillColor),t.drawCircle(e.x,e.y,t.toPx(5))})):1==this.line.length&&(this.status!=r.SItemStatus.Edit&&this.status!=r.SItemStatus.Create||(t.brush.color=this.fillColor,t.drawCircle(this.line[0].x,this.line[0].y,t.toPx(5))))}}e.SLineItem=h},bf90:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STooltipItem=void 0;const n=i("f80e");class s extends n.STextItem{}e.STooltipItem=s},c14d:function(t,e){var i={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&&e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,i){var n=t.root,s=t.root.next;while(null!==s){if(i(s))return e.prev=s.prev,e.next=s,s.prev.next=e,void(s.prev=e);n=s,s=s.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){var i=t.root,n=t.root.next;while(null!==n){if(e(n))break;i=n,n=n.next}return{before:i===t.root?null:i,after:n,insert:function(t){return t.prev=i,t.next=n,i.next=t,null!==n&&(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&&(t.next.prev=t.prev),t.prev=null,t.next=null},t}};t.exports=i},c17f:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABqElEQVRoBe3ZW0rDQBQG4Eza5Qguwi0IFqxP2qJU8LYA3UC9YIuX6pMVFVyMgm9uwg0k4xzJCSVNYpLO5R90IAy5tPzfzGkKM0Hw3wBH4OLqbgkwVm6kMHt1eHlzEkXx2+notpO9h3guZkNReHV+TNeEEJHquoe7/Wc6R20pgMqGRl5K2eKwhFDHxsGg98TX0Pq0hPZ2tj5UuG4y8j85CaOOB+RySmeARzYJO83OBOEQy2kOQBCfELkAnxCFAF8QpQAfEL8C0BGVAMiIygBURC0AIqI2AA3RCICEaAxAQSwEQEAsDHCN0AJwidAGcIXQCnCB0A6wjTACsIkwBrCFMAqwgTAOMI2wAjCJsAYwhbAKMIGwDtCNcALQiXAG0IVIF3fpC223ZK11bkFZ5ZiejydrVfI4nQEOWLQWGwqxvj/ovfBzeT0EgII1RcAAmiKgAISg2o+lfMzuTxSVExygLgISUAcBCyhDqH28jtp4fKVnnP4PUICyRq9Qqv3ZjccgkF9xK/zkz0HPAIfkHzaFl+32ytH25jvf86Y/G09Wh9f3y94E/jNBvwEQ2o5/YwbJXAAAAABJRU5ErkJggg=="},c437:function(t,e,i){var n,s,o=i("e1f4"),r=i("2366"),a=0,h=0;function c(t,e,i){var c=e&&i||0,l=e||[];t=t||{};var u=t.node||n,A=void 0!==t.clockseq?t.clockseq:s;if(null==u||null==A){var d=o();null==u&&(u=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==A&&(A=s=16383&(d[6]<<8|d[7]))}var m=void 0!==t.msecs?t.msecs:(new Date).getTime(),p=void 0!==t.nsecs?t.nsecs:h+1,f=m-a+(p-h)/1e4;if(f<0&&void 0===t.clockseq&&(A=A+1&16383),(f<0||m>a)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,h=p,s=A,m+=122192928e5;var g=(1e4*(268435455&m)+p)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var S=m/4294967296*1e4&268435455;l[c++]=S>>>8&255,l[c++]=255&S,l[c++]=S>>>24&15|16,l[c++]=S>>>16&255,l[c++]=A>>>8|128,l[c++]=255&A;for(var y=0;y<6;++y)l[c+y]=u[y];return e||r(l)}t.exports=c},c51d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SMouseButton=void 0,function(t){t[t["LeftButton"]=1]="LeftButton",t[t["RightButton"]=2]="RightButton",t[t["MidButton"]=4]="MidButton"}(e.SMouseButton||(e.SMouseButton={}))},c64e:function(t,e,i){var n=i("e1f4"),s=i("2366");function o(t,e,i){var o=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null),t=t||{};var r=t.random||(t.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var a=0;a<16;++a)e[o+a]=r[a];return e||s(r)}t.exports=o},c652:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphCommand=void 0;const n=i("4c26");class s extends n.SUndoCommand{constructor(t){super(),this.scene=null,this.scene=t}}e.SGraphCommand=s},c975:function(t,e,i){"use strict";var n=i("23e7"),s=i("4d64").indexOf,o=i("a640"),r=i("ae40"),a=[].indexOf,h=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),l=r("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:h||!c||!l},{indexOf:function(t){return h?a.apply(this,arguments)||0:s(this,t,arguments.length>1?arguments[1]:void 0)}})},ca0c:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SVerticalRelation=void 0;const n=i("042d");class s extends n.SRelation{constructor(t,e){super(t),this.data=e}vertical2Curve(){}vertical2Line(){}vertical2Polyline(){}}e.SVerticalRelation=s},ca14:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAACQElEQVRoBe2Zu0oDQRSGZze7jS9gZWOnTxFtBMFarIQ0iqAgPkDUXgKK4iKkzgMEBAvJU1jaWNmbJgk7zr9mQtzd2dvMYVbcA8neyDnfdzLZy4SxJpoONB0g60Dvob+OF1kBkdihSg7wMJyOkN91/fb5SeedohaJwAKes7UI2mEfVBLGBRLwsu1EEkYFlPCEEsYE0uAd5nyCnTO+Kh3Er87ocDIioIL3fG8b4LPp7JVKQlsgC/7suPMGgdvH/iaVhIsCOhGGs4EYIz9nG5EIwwadl/DIjXXsk0Mqqic+g9MsGhBtV3zTFnAd51CCpcFLLioJ7SEEwN790wbnfOB53sFy5yX88tL0cDIiAEAh4Ijgy7CqdZMSpQRu7oJLQF2cHkVLrFcNUxKFBebw3TnwVV0kCgnE4GXTayGRK6CAr41EpkAOfC0klAIF4a1LpAqUhLcqkRCoCG9NQvtWQpLbWrbihV+eh6Od3T18M+34sZxtK6fVhAAgK0hYgQdrqkBJCWvwmQIFJazC5wrkSFiHLySgkKgFPNgS1wHsVMX8GvE3b6dVUkEQrHxNWN/3/eu8pzGZw9SzAPJpXcgAP56yocizj1kHgElI1dIkPGpoCYwnLOCcbSER5n3yJEzDaws4Lb+LmTYkQmRJUMCjZqkfMT4QD9sTW9oCEMqSwHGqWTnkNiKARCoJHKOaF0VuYwJIliaB/YswPDONvEYFkFApQQBPIpAqQQRPJvBLQmxQ/T+GOqSB4YQXaZEmedOBf96Bb300RWM9JXs6AAAAAElFTkSuQmCC"},caad:function(t,e,i){"use strict";var n=i("23e7"),s=i("4d64").includes,o=i("44d2"),r=i("ae40"),a=r("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!a},{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc9c:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAC50lEQVRoBe1YT2sTURB/s02s0h48VDxq0IJoQVARvPbixYOevBkDkiBGFD35AbwIjUi3tAnVFY85KHorIvkAWnIpqFCEHkQEi6dg22R3nLdk/yS7+5ps3zZbeA82b968vJn5zczbGZYxNZQHlAeUB5QH9uAB6D87p9eMfp7M9eNysSBTXiYgDPF2gCeXIRWAJte2/ZcWjACDHc8M5PtdkIBEt729KMp/hlmMQSfqnzL4gTvgF1qZr31ChrOcBwDrj8rFaf9+GE136AtDvGjvAaxSzl8K+58s3oFPIQVAVirElaMiENdzss6pCMjyZFw5IYUsrqhkzu1WV5JIIaq+3YGYhHxHuj0noAC3HQ1U5icdOqlZPgBkP11jAU5X9NqNhYV6YkCk3wHQtI9oWTc5CETkvdbbLfzLCIhJHC+9XJRigjpIoY3SIzCRsd5Q57fabxaBGUNk2WEf8oKw4ZQOoFQqtcfZ+FXqXt/3g0hiLQxPXIXlcn6Tzl6fr1bPtDswS2mQI08epaY8jr5rdHYqypY4AqNkBfj3S6VvxORP7GHXAcYiAYhTCLDlakaccOkUEUIAFPrfjq1EH2s0GolGzNE1zCwEQDn7wycs0/y6fsW3TgUpBKAxXOmx0sR8zzoFCyGAh/eKTXqnb7h2At6aW3p53l2ngBACoHc5MmBPHTt5EWJt893zReOkwxv1LATAjbtwdtqgqekZijnL3Plc0av5er0+5vFHQwnLtGOSri+f2GYmfe/pfR/T4V8IsEKB+k6h2gQGQ/c6jo6omfqqJ7R3yt4P+c40EAB++MXi8kynY32ghixnC9u/n3+k6oitLgTArink2Png7p21yUN4mS71a7ob1FmmYwwMgJtLjdof/nk8m8UZqhHPiLU2ahgDp1CUoYZhHG61zOOmhlMmgPxLbVqvqBU/Z+sPSaE9twaFQmGLhG90nyicsfnUzHH5kWOoFIqUMsKNAw9ghL5TqpUHlAdkeOA/T2feBw5dE68AAAAASUVORK5CYII="},d28b:function(t,e,i){var n=i("746f");n("iterator")},d3c2:function(t,e,i){},d43d:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAACiElEQVQ4Ea2Tz2sTQRSAdzabIBJyMCD2YBQkCkI8WaRQhRwEjYh6MAcJHpSYUPHav0AE8WjBJII5eNHcxJseRCI0laqgVQ9iLgqCECHapoYkO35v7W7HbRAKHZh9b96Pb968mbWsLR5qq3jN1uIysDvOZoHVanW7bduHXNfdbeYqrW1tK9tpLry6ziKilaUsVzH4WMp2+Xiq7banj0zOAZoAcltrfXY4HEZMmKcr1ZN4B9gshojlam1ZMpXrahQ+SmnX0qpZqVRagJ6y2wpzhjkfi8W+mFASv9qKGsXI7ldIqJTLZVvWAI6zfhKNRvcmEonvnU7nDZAf8Xj8RKFQ+Ckx4dGcX/zFGe95PeQoxK/fDz3So9GIMrUN7DK+PcxTPqxWq+0HKDMYSk6nObJYBMAInGzgLSKRiKJfUzhelkqlzxIA7CT+x8T/20elugEwIK0pgDQgazAYSOUZ5nM/hsqvob+miDP0MagC5aNFD8c+m1CFUQADH4jcxQYLVPzNsFn08AX2T/8FUuV6Y83sMfrRqcOnxezdatjPTq7YuOWx/nC8uR6bID2UoM1U6EN9YJ9bU41GIyYOGr8qEttORJye9mW9NrYhf/uLsPSAVPRWHN1uNyMylUq9Q7QBPkNOOI7zSOz1el1gaaYXL7bw8IBUtETfVjjiRQnI5XJ9nsU0tqvAJovFYkvsPKMLCIcCvLXYwiO4RX63GZxzzHP8gl5FZjC/Z4ajy9N4gL9k+kw9AEoPSXqIPE/SXaq4z8P90Ov19rGWJzGL730ymTyWz+eXTYipB0DfyK91iUpukbzDtyFXacFN5A0etPnIjZC/6gagmKVawAeQBwG10+n0UjabHW7IHmP4A1KyI023V+ASAAAAAElFTkSuQmCC"},d452:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SIconTextItem=void 0;const n=i("f80e"),s=i("6aaf"),o=i("64b5");class r extends n.SObjectItem{constructor(t,e){let i;super(t),this._status=s.SItemStatus.Normal,this._showText=!0,this._isActive=!1,this._activeColor=new o.SColor("#00000033"),this._showAnchor=!1,this.img=new n.SImageItem(this),this.textItem=new n.STextItem(this),this.img.width=32,this.img.height=32,this.img.origin=new o.SPoint(.5*this.img.width,.5*this.img.height),this.img.connect("onMove",this,this.changeAhchorPoint.bind(this)),i=e&&e.length?e.map(t=>({x:t.Pos.X,y:t.Pos.Y,id:t.ID})):[{x:this.img.x,y:this.img.y,id:""},{x:this.img.x,y:this.img.y,id:""},{x:this.img.x,y:this.img.y,id:""},{x:this.img.x,y:this.img.y,id:""}],this.anchorList=i.map(t=>{let e=new n.SAnchorItem(this);return t.id&&(e.id=t.id),e.moveTo(t.x,t.y),e}),this.showAnchor=!1,this.textItem.text="",this.textItem.font.size=12,this.textItem.moveTo(.5*this.img.width,-1.25*this.font.size*.5),this.moveable=!0,this.selectable=!0}get status(){return this._status}set status(t){this._status=t,t==s.SItemStatus.Normal?(this.moveable=!0,this.textItem.moveable=!1,this.img.moveable=!1):t==s.SItemStatus.Edit?(this.moveable=!1,this.textItem.moveable=!0,this.img.moveable=!0):t==s.SItemStatus.Create&&(this.moveable=!0,this.textItem.moveable=!1,this.img.moveable=!1),this.update()}get showText(){return this._showText}set showText(t){t!==this._showText&&(this._showText=t,t?this.textItem.show():this.textItem.hide())}get selected(){return this._selected&&this.selectable&&this.enabled}set selected(t){this.selected!=t&&(this._selected=t,t?(this.img.scale=1.25,this.zOrder=s.ItemOrder.highLightOrder):(this.img.scale=1,this.zOrder=s.ItemOrder.markOrder),this.update())}get isActive(){return this._isActive}set isActive(t){this._isActive=t,t?(this.cursor="pointer",this.textItem.cursor="pointer",this.img.cursor="pointer"):(this.cursor="auto",this.textItem.cursor="auto",this.img.cursor="auto"),this.update()}get activeColor(){return this._activeColor}set activeColor(t){this._activeColor=t,this.update()}get x(){return this.pos.x}set x(t){this.pos.x=t,this.$emit("changePos"),this.update()}get y(){return this.pos.y}set y(t){this.pos.y=t,this.$emit("changePos"),this.update()}get sWidth(){return this.img.width}set sWidth(t){this.img.width=t,this.img.origin=new o.SPoint(.5*this.img.width,.5*this.img.height),this.changeAhchorPoint(),this.update()}get sHeight(){return this.img.height}set sHeight(t){this.img.height=t,this.img.origin=new o.SPoint(.5*this.img.width,.5*this.img.height),this.changeAhchorPoint(),this.update()}get showAnchor(){return this._showAnchor}set showAnchor(t){this._showAnchor=t,this.anchorList.forEach(e=>{e.visible=t})}get text(){return this.textItem.text}set text(t){this.textItem.text=t,this.update()}get color(){return this.textItem.color}set color(t){this.textItem.color=t,this.update()}get font(){return this.textItem.font}set font(t){this.textItem.font=t,this.update()}changeAhchorPoint(){if(this.anchorList.length){let t=[{x:this.img.x,y:this.img.y},{x:this.img.x,y:this.img.y},{x:this.img.x,y:this.img.y},{x:this.img.x,y:this.img.y}];this.anchorList.forEach((e,i)=>{e.moveTo(t[i].x,t[i].y)})}}onMouseDown(t){return this.status==s.SItemStatus.Normal?super.onMouseDown(t):this.status!=s.SItemStatus.Edit||super.onMouseDown(t)}onResize(t,e){console.log(arguments)}onDoubleClick(t){return s.SItemStatus.Normal==this.status?(this.status=s.SItemStatus.Edit,this.grabItem(this)):s.SItemStatus.Edit==this.status&&(this.status=s.SItemStatus.Normal,this.releaseItem()),this.update(),!0}boundingRect(){let t=this.img.boundingRect().adjusted(this.img.pos.x,this.img.pos.y,0,0);return this.showText&&(t=t.unioned(this.textItem.boundingRect().adjusted(this.textItem.pos.x,this.textItem.pos.y,0,0))),t.adjusted(-5,-5,10,10)}onDraw(t){this.status==s.SItemStatus.Edit&&(t.pen.lineWidth=t.toPx(1),t.pen.lineDash=[t.toPx(3),t.toPx(7)],t.pen.color=o.SColor.Black,t.brush.color=o.SColor.Transparent,t.drawRect(this.boundingRect())),this.isActive?(t.pen.color=o.SColor.Transparent,t.brush.color=this.activeColor,this.selected?(t.shadow.shadowBlur=10,t.shadow.shadowColor=this.activeColor,t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5,t.drawCircle(this.img.x,this.img.y,1.25*(this.sWidth/2+3))):t.drawCircle(this.img.x,this.img.y,this.sWidth/2+3)):this.selected&&(t.pen.color=o.SColor.Transparent,t.brush.color=o.SColor.Transparent,t.shadow.shadowBlur=10,t.shadow.shadowColor=new o.SColor("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5,t.drawCircle(this.img.x,this.img.y,this.sWidth/2))}}e.SIconTextItem=r},d727:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SStringBuilder=void 0;var n=function(){function t(t){this._strArray=new Array,void 0!=t&&this.append(t)}return t.prototype.append=function(t){return this._strArray.push(t),this},t.prototype.toString=function(t){return void 0===t&&(t="\n"),this._strArray.join(t)},t}();e.SStringBuilder=n},d784:function(t,e,i){"use strict";i("ac1f");var n=i("6eeb"),s=i("d039"),o=i("b622"),r=i("9263"),a=i("9112"),h=o("species"),c=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l=function(){return"$0"==="a".replace(/./,"$0")}(),u=o("replace"),A=function(){return!!/./[u]&&""===/./[u]("a","$0")}(),d=!s((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]}));t.exports=function(t,e,i,u){var m=o(t),p=!s((function(){var e={};return e[m]=function(){return 7},7!=""[t](e)})),f=p&&!s((function(){var e=!1,i=/a/;return"split"===t&&(i={},i.constructor={},i.constructor[h]=function(){return i},i.flags="",i[m]=/./[m]),i.exec=function(){return e=!0,null},i[m](""),!e}));if(!p||!f||"replace"===t&&(!c||!l||A)||"split"===t&&!d){var g=/./[m],S=i(m,""[t],(function(t,e,i,n,s){return e.exec===r?p&&!s?{done:!0,value:g.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:A}),y=S[0],v=S[1];n(String.prototype,t,y),n(RegExp.prototype,m,2==e?function(t,e){return v.call(t,this,e)}:function(t){return v.call(t,this)})}u&&a(RegExp.prototype[m],"sham",!0)}},d7a8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SColumnItem=void 0;const n=i("f80e"),s=i("64b5"),o=i("6aaf"),r=i("6aaf");class a extends n.SGraphItem{constructor(t,e){super(t),this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this.pointArr=[],this.data=e,this.zOrder=o.ItemOrder.columnOrder;let i=this.data.OutLine;i&&i.length&&(this.minX=i[0][0].X,this.maxX=this.minX,this.minY=-i[0][0].Y,this.maxY=this.minY,this.pointArr=i.map(t=>t.map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new s.SPoint(e,i)})))}boundingRect(){return new s.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onDraw(t){t.pen.color=r.ItemColor.columnColor,t.pen.lineWidth=t.toPx(1),t.brush.color=r.ItemColor.columnColor,this.pointArr.forEach(e=>{t.drawPolygon(e)})}}e.SColumnItem=a},d81c:function(t,e,i){"use strict";var n=i("78ca"),s=i.n(n);s.a},d81d:function(t,e,i){"use strict";var n=i("23e7"),s=i("b727").map,o=i("1dde"),r=i("ae40"),a=o("map"),h=r("map");n({target:"Array",proto:!0,forced:!a||!h},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},db5a:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPath2D=void 0;var n=i("64b5"),s=i("4c26"),o=function(){function t(){this._path=new Path2D,this.svgBuilder=new s.SStringBuilder}return t.prototype.svgPath=function(){return this.svgBuilder.toString(" ")},t.prototype.addPath=function(t){this._path.addPath(t._path),this.svgBuilder.append(t.svgBuilder.toString(" "))},t.prototype.moveTo=function(t,e){this._path.moveTo(t,e),this.svgBuilder.append("M "+t+" "+e)},t.prototype.lineTo=function(t,e){this._path.lineTo(t,e),this.svgBuilder.append("L "+t+" "+e)},t.prototype.rect=function(t,e,i,n){var s=t+i,o=e+n;this._path.moveTo(t,e),this._path.lineTo(s,e),this._path.lineTo(s,o),this._path.lineTo(t,o),this._path.closePath(),this.svgBuilder.append("M "+t+" "+e+" L"+s+" "+e+" L"+s+" "+o+" L"+t+" "+o+" Z")},t.prototype.polyline=function(t){var e=this;t.length<2||t.map((function(t,i){0==i?(e._path.moveTo(t.x,t.y),e.svgBuilder.append("M "+t.x+" "+t.y)):(e._path.lineTo(t.x,t.y),e.svgBuilder.append("L "+t.x+" "+t.y))}))},t.prototype.polygon=function(t){var e=this;t.length<3||(t.map((function(t,i){0==i?(e._path.moveTo(t.x,t.y),e.svgBuilder.append("M "+t.x+" "+t.y)):(e._path.lineTo(t.x,t.y),e.svgBuilder.append("L "+t.x+" "+t.y))})),this._path.closePath(),this.svgBuilder.append("Z"))},t.arc=function(e,i,n,s,o,r){var a=n/2,h=s/2,c=t.arcPoint(a,h,o),l=t.arcPoint(a,h,r),u=t.largeArcFlag(o,r);return c.x=e+a+c.x,c.y=i+h-c.y,l.x=e+a+l.x,l.y=i+h-l.y,"M "+c.x+" "+c.y+" A "+a+" "+h+" 0 "+u+" 0 "+l.x+" "+l.y},t.chord=function(e,i,n,s,o,r){var a=n/2,h=s/2,c=t.arcPoint(a,h,o),l=t.arcPoint(a,h,r),u=t.largeArcFlag(o,r);return c.x=e+a+c.x,c.y=i+h-c.y,l.x=e+a+l.x,l.y=i+h-l.y,"M "+c.x+" "+c.y+" A "+a+" "+h+" 0 "+u+" 0 "+l.x+" "+l.y+" Z"},t.pie=function(e,i,n,s,o,r){var a=n/2,h=s/2,c=t.arcPoint(a,h,o),l=t.arcPoint(a,h,r),u=t.largeArcFlag(o,r);return c.x=e+a+c.x,c.y=i+h-c.y,l.x=e+a+l.x,l.y=i+h-l.y,"M "+(e+a)+" "+(i+h)+" L "+c.x+" "+c.y+" A "+a+" "+h+" 0 "+u+" 0 "+l.x+" "+l.y+" Z"},t.largeArcFlag=function(t,e){return 180*Math.abs(e-t)/Math.PI%360>179.99999?1:0},t.arcPoint=function(t,e,i){var s=new n.SPoint;return i>=0?i-=2*Math.floor(i/Math.PI/2)*Math.PI:i+=2*Math.ceil(-i/Math.PI/2)*Math.PI,Math.abs(Math.PI/2-i)<=1e-6?(s.x=0,s.y=e):Math.abs(3*Math.PI/2-i)<=1e-6?(s.x=0,s.y=-e):Math.PI/2u)i=s(n,e=c[u++]),void 0!==i&&h(l,e,i);return l}})},dc6f:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAACY0lEQVQ4Ea2UP2hUQRDGv733PIOksghGEAVRQYidaEAEC0GRoI2NhYWCQoKxS2WqiCBWyR3oYWFhpZ3YaWGhkMRCQaMW4jUKEbtoYjxy742/3Xd/Xi53RSBz7M7OfN9+N7s7PGmLzW2V3tRcsmzS/XjTghXboZqOyGnPur2WFsQvnppPbpspck7OUjnvIRYM73xcUPXWsaisig3qn0qIXRB8xjqD/9fzY4AJkEhpoKCt1BnrlKxTamavVbI5xF6SWQEZpZJZ9et7XpEqfsAvxJPHo6Km7RrBA41Tj7eynVaiF/zNPg3oF+Lvwb+AnIHzO3A6JptNDA4VesuO2aZk1YpqCvqpq+B7Ac+1xMp2kNiPlvnDwG8IhmUL4waBEuIIqTUNs3qrm+5bYJTsLBU/hxHldviilrivxhHXIQT+D7zVQ+1DzB9C7CfTDcY79Wm3Yg02Bxv8kQvd26Z5ZF9hom1Q11qC0i7W87ruFnM5udn6G1rka3dBf2T/yplgfl/P9eRwPOLB7FU7adxwSKU98E5+Lu4u2DxywpE3aZlgRP/7K31qxbDfabXhB/D9jFqI/WQ8h6PNe1gmmDZecVFDgWf6iK/yIK/wgwg8C/lH1oc/QNx+9QC0p0xwuxZIrUC8HKBxV6OOE9zgGPFRGnou5P/oEj4mn8Uh2Wsq2ahm+DxM2/mulJINgS+BV7rijWT70o3vRUlPuKOLVPoQ/DGVfOa997MeIT9B/hOtdFJjbrmXaFuwyZixK2y+R7izmcKvIn5XRd2hofNNnqNky42CPu+rLesQwoepqMq8oFOuvmF3l8R/j42+QOQdLz0AAAAASUVORK5CYII="},ddb0:function(t,e,i){var n=i("da84"),s=i("fdbc"),o=i("e260"),r=i("9112"),a=i("b622"),h=a("iterator"),c=a("toStringTag"),l=o.values;for(var u in s){var A=n[u],d=A&&A.prototype;if(d){if(d[h]!==l)try{r(d,h,l)}catch(p){d[h]=l}if(d[c]||r(d,c,u),s[u])for(var m in o)if(d[m]!==o[m])try{r(d,m,o[m])}catch(p){d[m]=o[m]}}}},de8f:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPolylineItem=void 0;const n=i("64b5"),s=i("4c26"),o=i("6aaf"),r=i("ad3d"),a=i("f80e");class h extends a.SGraphItem{constructor(t,e){super(t),this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this.pointList=[],this._status=o.SItemStatus.Normal,this.lastPoint=null,this._strokeColor=n.SColor.Black,this._fillColor=new n.SColor("#2196f3"),this._lineWidth=1,this.dis=10,this.sceneDis=10,this.curIndex=-1,this.curPoint=null,this.undoStack=new s.SUndoStack,e instanceof n.SPoint?this.pointList.push(e):this.pointList=e}get status(){return this._status}set status(t){this._status=t,this.undoStack.clear(),this.update()}get strokeColor(){return this._strokeColor}set strokeColor(t){this._strokeColor=t,this.update()}get fillColor(){return this._fillColor}set fillColor(t){this._fillColor=t,this.update()}get lineWidth(){return this._lineWidth}set lineWidth(t){this._lineWidth=t,this.update()}addPoint(t,e){e&&this.canHandle(e)?(this.pointList.splice(e,0,t),this.recordAction(a.SGraphPointListInsert,[this.pointList,t,e])):(this.pointList.push(t),this.recordAction(a.SGraphPointListInsert,[this.pointList,t])),this.update()}canHandle(t){return t>=0&&t<=this.pointList.length}deletePoint(t){if(this.canHandle(t)&&this.pointList.length>2){const e=new n.SPoint(this.pointList[this.curIndex].x,this.pointList[this.curIndex].y);this.pointList.splice(t,1),this.recordAction(a.SGraphPointListDelete,[this.pointList,e,t]),this.curIndex=-1,this.curPoint=null,this.update()}}onMouseDown(t){return this.curIndex=-1,this.curPoint=null,t.shiftKey&&(t=this.compare(t)),1==t.buttons?this.status==o.SItemStatus.Create?(this.addPoint(new n.SPoint(t.x,t.y)),!0):this.status==o.SItemStatus.Edit?(this.findNearestPoint(new n.SPoint(t.x,t.y)),this.curIndex<0&&this.findAddPos(new n.SPoint(t.x,t.y)),t.altKey&&this.canHandle(this.curIndex)&&this.deletePoint(this.curIndex),this.update(),!0):super.onMouseDown(t):super.onMouseDown(t)}onMouseMove(t){return t.shiftKey&&(t=this.compare(t)),this.status==o.SItemStatus.Create?(this.lastPoint?(this.lastPoint.x=t.x,this.lastPoint.y=t.y):this.lastPoint=new n.SPoint(t.x,t.y),this.update(),!0):this.status==o.SItemStatus.Edit?(1==t.buttons&&this.canHandle(this.curIndex)&&(this.pointList[this.curIndex].x=t.x,this.pointList[this.curIndex].y=t.y),this.update(),!0):super.onMouseMove(t)}onMouseUp(t){if(this.status==o.SItemStatus.Edit){if(this.curIndex>-1){const t=new n.SPoint(this.pointList[this.curIndex].x,this.pointList[this.curIndex].y);this.recordAction(a.SGraphPointListUpdate,[this.pointList,this.curPoint,t,this.curIndex])}}else if(this.status==o.SItemStatus.Normal)return this.moveToOrigin(this.x,this.y),super.onMouseUp(t);return!0}onDoubleClick(t){return this.status==o.SItemStatus.Normal?(this.status=o.SItemStatus.Edit,this.grabItem(this)):this.status==o.SItemStatus.Edit?(this.status=o.SItemStatus.Normal,this.releaseItem()):this.status==o.SItemStatus.Create&&this.pointList.length>1&&(this.status=o.SItemStatus.Normal,this.releaseItem(),this.$emit("finishCreated")),this.$emit("onDoubleClick",t),!0}onKeyUp(t){t.keyCode==s.SKeyCode.Enter&&this.pointList.length>1&&(this.status==o.SItemStatus.Create&&this.$emit("finishCreated"),this.status=o.SItemStatus.Normal,this.releaseItem()),t.keyCode==s.SKeyCode.Delete&&this.status==o.SItemStatus.Edit&&this.deletePoint(this.curIndex)}moveToOrigin(t,e){super.moveToOrigin(t,e),this.pointList=this.pointList.map(i=>(i.x=i.x+t,i.y=i.y+e,i)),this.x=0,this.y=0}findNearestPoint(t){let e=this.sceneDis;for(let i=0;i2)for(let s=1;s1&&(e=this.pointList[this.curIndex-1]);const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);s>i?t.x=e.x:t.y=e.y}return t}recordAction(t,e){const i=new t(this.scene,this,...e);this.undoStack.push(i)}boundingRect(){return this.pointList.length&&(this.minX=this.pointList[0].x,this.maxX=this.pointList[0].x,this.minY=this.pointList[0].y,this.maxY=this.pointList[0].y,this.pointList.forEach(t=>{let e=t.x,i=t.y;ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i)})),new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}contains(t,e){let i=new n.SPoint(t,e);for(let s=1;s{t.brush.color=n.SColor.White,i==this.curIndex&&(t.brush.color=this.fillColor),t.drawCircle(e.x,e.y,t.toPx(5))})):this.status==o.SItemStatus.Edit?(this.drawBaseLine(t),this.pointList.forEach((e,i)=>{t.brush.color=n.SColor.White,i==this.curIndex&&(t.brush.color=this.fillColor),t.drawCircle(e.x,e.y,t.toPx(5))})):(this.selected&&(t.pen.lineWidth=t.toPx(2*this.lineWidth),t.shadow.shadowBlur=10,t.shadow.shadowColor=new n.SColor("#00000033"),t.shadow.shadowOffsetX=5,t.shadow.shadowOffsetY=5),this.drawBaseLine(t))}}e.SPolylineItem=h},df85:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPen=void 0;var n=i("64b5"),s=function(){function t(e,i){this.color=n.SColor.Black,this.lineWidth=1,this.lineCapStyle=n.SLineCapStyle.Butt,this.lineJoinStyle=n.SLineJoinStyle.Miter,this.miterLimit=10,this.lineDash=null,this.dashOffset=0,void 0!=e&&(e instanceof t?(this.color=new n.SColor(e.color),this.lineWidth=e.lineWidth,this.lineCapStyle=e.lineCapStyle,this.lineJoinStyle=e.lineJoinStyle,this.miterLimit=e.miterLimit,this.dashOffset=e.dashOffset,this.lineDash=null!=e.lineDash?e.lineDash.slice():null):(this.color=new n.SColor(e),this.lineWidth=void 0!=i?i:1))}return t}();e.SPen=s},e01a:function(t,e,i){"use strict";var n=i("23e7"),s=i("83ab"),o=i("da84"),r=i("5135"),a=i("861d"),h=i("9bf2").f,c=i("e893"),l=o.Symbol;if(s&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var u={},A=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof A?new l(t):void 0===t?l():l(t);return""===t&&(u[e]=!0),e};c(A,l);var d=A.prototype=l.prototype;d.constructor=A;var m=d.toString,p="Symbol(test)"==String(l("test")),f=/^Symbol\((.*)\)[^)]+$/;h(d,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=m.call(t);if(r(u,t))return"";var i=p?e.slice(7,-1):e.replace(f,"$1");return""===i?void 0:i}}),n({global:!0,forced:!0},{Symbol:A})}},e1f4:function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var s=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}},e439:function(t,e,i){var n=i("23e7"),s=i("d039"),o=i("fc6a"),r=i("06cf").f,a=i("83ab"),h=s((function(){r(1)})),c=!a||h;n({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(t,e){return r(o(t),e)}})},e538:function(t,e,i){var n=i("b622");e.f=n},e6e1:function(t,e,i){var n=i("23e7");n({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},e8b5:function(t,e,i){var n=i("c6b6");t.exports=Array.isArray||function(t){return"Array"==n(t)}},e9ec:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLineRelation=void 0;const n=i("042d");class s extends n.SRelation{constructor(){super(...arguments),this.canAddPoint=!0}polyline2Curve(){}polyline2Line(){}polyline2Vertical(){}}e.SLineRelation=s},ecd9:function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.SCanvasView=void 0;var s=i("4c26"),o=i("75d8"),r=i("3f8a"),a=i("591e"),h=function(t){function e(e){var i=t.call(this)||this;return i._needDraw=!0,i._origin=new r.SPoint,i.moveable=!0,i._scale=1,i.scalable=!0,i.wheelZoom=1.05,i.minScale=1e-6,i.maxScale=1e6,i._lastFrameTime=0,i._midKeyPos=new r.SPoint,i._touchState=s.STouchState.None,i._touchPoint=new r.SPoint,i._beforeLength=0,i._afterLength=0,i.canvasView=document.getElementById(e),i.bindEvent(i.canvasView),i.requestAnimationFrame(i.loop.bind(i)),i}return n(e,t),Object.defineProperty(e.prototype,"canvas",{get:function(){return this.canvasView.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.canvasView.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvasView.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this._origin},set:function(t){this.moveable&&(this._origin.x=t.x,this._origin.y=t.y,this._needDraw=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this.scalable&&(this._scale=t,this._needDraw=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(t){this.canvasView.style.cursor=t},enumerable:!1,configurable:!0}),e.prototype.update=function(){this._needDraw=!0},e.prototype.saveImage=function(t,e){var i=this.canvasView.toDataURL("image/"+e);s.SNetUtil.downLoad(t,i)},e.prototype.imageUrl=function(t){return this.canvasView.toDataURL("image/"+t)},e.prototype.saveSvg=function(t){var e=URL.createObjectURL(new Blob([this.svgData()],{type:"text/xml,charset=UTF-8"}));s.SNetUtil.downLoad(t,e)},e.prototype.svgData=function(){var t=new o.SSvgPaintEngine(this.width,this.height),e=new a.SPainter(t);return this.onDraw(e),t.toSvg()},e.prototype.scaleByPoint=function(t,e,i){if(this.scalable){var n=t;this.scale*t>=this.maxScale?(n=this.maxScale/this.scale,this.scale=this.maxScale):this.scale*t<=this.minScale?(n=this.minScale/this.scale,this.scale=this.minScale):this.scale*=t,this.origin.x=e-(e-this.origin.x)*n,this.origin.y=i-(i-this.origin.y)*n}},e.prototype.loop=function(){var t=this.canvas;if(null!=t&&this._needDraw){this._needDraw=!1;var e=new a.SPainter(this);this.onDraw(e)}this.requestAnimationFrame(this.loop.bind(this))},e.prototype.onDraw=function(t){},e.prototype.onClick=function(t){},e.prototype.onDoubleClick=function(t){},e.prototype.onMouseDown=function(t){var e=new s.SMouseEvent(t);e.buttons&s.SMouseButton.MidButton&&(this._midKeyPos.x=e.x,this._midKeyPos.y=e.y)},e.prototype.onMouseMove=function(t){if(this.moveable){var e=new s.SMouseEvent(t);if(e.buttons&s.SMouseButton.MidButton)return this.origin.x+=e.x-this._midKeyPos.x,this.origin.y+=e.y-this._midKeyPos.y,this._midKeyPos.x=e.x,this._midKeyPos.y=e.y,void this.update()}},e.prototype.onMouseUp=function(t){},e.prototype.onContextMenu=function(t){},e.prototype.onMouseWheel=function(t){t.deltaY<0?this.scaleByPoint(this.wheelZoom,t.offsetX,t.offsetY):this.scaleByPoint(1/this.wheelZoom,t.offsetX,t.offsetY)},e.prototype.onKeyDown=function(t){},e.prototype.onKeyPress=function(t){},e.prototype.onKeyUp=function(t){},e.prototype.onTouchStart=function(t){var e=t.touches;1==e.length&&(this._touchPoint.x=t.touches[0].clientX,this._touchPoint.y=t.touches[0].clientY),2==e.length&&(this._touchState=s.STouchState.Zoom,this._beforeLength=this.getDistance(t))},e.prototype.onTouchMove=function(t){var e=t.touches;1==e.length&&(this.origin.x+=t.touches[0].clientX-this._touchPoint.x,this.origin.y+=t.touches[0].clientY-this._touchPoint.y,this._touchPoint.x=t.touches[0].clientX,this._touchPoint.y=t.touches[0].clientY),2==e.length&&this.viewZoom(t)},e.prototype.onTouchEnd=function(t){this._touchState=s.STouchState.None},e.prototype.onResize=function(t){},e.prototype.bindEvent=function(t){t.onclick=this.onClick.bind(this),t.ondblclick=this.onDoubleClick.bind(this),t.onmousedown=this.onMouseDown.bind(this),t.onmousemove=this.onMouseMove.bind(this),t.onmouseup=this.onMouseUp.bind(this),t.oncontextmenu=this.onContextMenu.bind(this),t.onwheel=this.onMouseWheel.bind(this),t.onkeydown=this.onKeyDown.bind(this),t.onkeypress=this.onKeyPress.bind(this),t.onkeyup=this.onKeyUp.bind(this),t.ontouchstart=this.onTouchStart.bind(this),t.ontouchmove=this.onTouchMove.bind(this),t.ontouchend=this.onTouchEnd.bind(this),t.onresize=this.onResize.bind(this)},e.prototype.requestAnimationFrame=function(t){var e=(new Date).getTime(),i=Math.max(0,16-(e-this._lastFrameTime)),n=setTimeout((function(){t(e+i)}),i);return this._lastFrameTime=e+i,n},e.prototype.viewZoom=function(t){if(this._touchState==s.STouchState.Zoom){this._afterLength=this.getDistance(t);var e=this._afterLength-this._beforeLength;if(Math.abs(e)>5&&0!=this._beforeLength){var i=this._afterLength/this._beforeLength,n=this.getMiddlePoint(t);this.scaleByPoint(i,n.x,n.y),this._beforeLength=this._afterLength}}return!0},e.prototype.getDistance=function(t){if(t.touches.length<2)return 0;var e=t.touches[0].clientX-t.touches[1].clientX,i=t.touches[0].clientY-t.touches[1].clientY;return Math.sqrt(e*e+i*i)},e.prototype.getMiddlePoint=function(t){return new r.SPoint((t.touches[0].clientX+t.touches[1].clientX)/2,(t.touches[0].clientY+t.touches[1].clientY)/2)},e}(s.SObject);e.SCanvasView=h},edc2:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STextBaseLine=void 0,function(t){t[t["Alphabetic"]=0]="Alphabetic",t[t["Top"]=1]="Top",t[t["Hanging"]=2]="Hanging",t[t["Middle"]=3]="Middle",t[t["Ideographic"]=4]="Ideographic",t[t["Bottom"]=5]="Bottom"}(e.STextBaseLine||(e.STextBaseLine={}))},edfc:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SObjectItem=void 0;const n=i("64b5"),s=i("f80e");class o extends s.SGraphItem{constructor(){super(...arguments),this.anchorList=[],this._width=64,this._height=64,this.origin=new n.SPoint}get width(){return this._width}set width(t){if(t>0&&t!=this._width){let e=this._width;this._width=t,this.onResize(new n.SSize(e,this._height),new n.SSize(this._width,this._height))}}get height(){return this._height}set height(t){if(t>0&&t!=this._height){let e=this._height;this._height=t,this.onResize(new n.SSize(this._width,e),new n.SSize(this._width,this._height))}}onResize(t,e){}}e.SObjectItem=o},ef63:function(t,e,i){"use strict";var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.SCanvasPaintEngine=void 0;var s=i("fca3"),o=i("64b5"),r=i("db5a"),a=function(t){function e(e){var i=t.call(this)||this;return i._canvas=e,i._canvas.imageSmoothingEnabled=!0,i}return n(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return o.SPaintEngineType.Canvas},enumerable:!1,configurable:!0}),e.prototype.setClip=function(t){this.setMatrix(),this._canvas.fill(t),this._canvas.clip()},e.prototype.clearRect=function(t){this.setMatrix(),this._canvas.clearRect(t.x,t.y,t.width,t.height)},e.prototype.drawRect=function(t){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow(),this._canvas.fillRect(t.x,t.y,t.width,t.height),this._canvas.strokeRect(t.x,t.y,t.width,t.height)},e.prototype.drawCircle=function(t,e,i){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow(),this._canvas.beginPath(),this._canvas.arc(t,e,i,0,2*Math.PI,!0),this._canvas.fill(),this._canvas.stroke()},e.prototype.drawEllipse=function(t,e,i,n){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow(),this._canvas.beginPath(),this._canvas.ellipse(t,e,i,n,.5,0,2*Math.PI,!0)},e.prototype.drawArc=function(t,e,i,n,s,o){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow();r.SPath2D.arc(t,e,i,n,s,o);var a=new Path2D(r.SPath2D.arc(t,e,i,n,s,o));this._canvas.stroke(a)},e.prototype.drawChord=function(t,e,i,n,s,o){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow();var a=new Path2D(r.SPath2D.chord(t,e,i,n,s,o));this._canvas.fill(a),this._canvas.stroke(a)},e.prototype.drawPie=function(t,e,i,n,s,o){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow();var a=new Path2D(r.SPath2D.pie(t,e,i,n,s,o));this._canvas.fill(a),this._canvas.stroke(a)},e.prototype.drawLine=function(t){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow(),this._canvas.beginPath(),this._canvas.moveTo(t.x1,t.y1),this._canvas.lineTo(t.x2,t.y2),this._canvas.stroke()},e.prototype.drawPolyline=function(t){if(!(t.length<2)){this.setMatrix(),this.setPen(),this.setBrush(),this.setComposite(),this.setShadow(),this._canvas.beginPath(),this._canvas.moveTo(t[0].x,t[0].y);for(var e=0,i=t;e0&&this.state.shadow.shadowColor?(this._canvas.shadowBlur=this.state.shadow.shadowBlur,this._canvas.shadowColor="rgba("+this.state.shadow.shadowColor.red+","+this.state.shadow.shadowColor.green+", "+this.state.shadow.shadowColor.blue+", "+this.state.shadow.shadowColor.alpha/255+")",this._canvas.shadowOffsetX=this.state.shadow.shadowOffsetX,this._canvas.shadowOffsetY=this.state.shadow.shadowOffsetY):(this._canvas.shadowBlur=0,this._canvas.shadowColor="",this._canvas.shadowOffsetX=0,this._canvas.shadowOffsetY=0)},e.prototype.setFont=function(){this._canvas.font=this.state.font.size+"px "+this.state.font.name,this.setTextAlign(this.state.font.textAlign),this.setBaseLine(this.state.font.textBaseLine),this.setTextDirection(this.state.font.textDirection)},e.prototype.setTextAlign=function(t){void 0!=t&&(t===o.STextAlign.Start?this._canvas.textAlign="start":t===o.STextAlign.End?this._canvas.textAlign="end":t===o.STextAlign.Left?this._canvas.textAlign="left":t===o.STextAlign.Center?this._canvas.textAlign="center":this._canvas.textAlign="right")},e.prototype.setBaseLine=function(t){void 0!=t&&(t==o.STextBaseLine.Alphabetic?this._canvas.textBaseline="alphabetic":t==o.STextBaseLine.Top?this._canvas.textBaseline="top":t==o.STextBaseLine.Hanging?this._canvas.textBaseline="hanging":t==o.STextBaseLine.Middle?this._canvas.textBaseline="middle":t==o.STextBaseLine.Ideographic?this._canvas.textBaseline="ideographic":this._canvas.textBaseline="bottom")},e.prototype.setTextDirection=function(t){void 0!=t&&(t==o.STextDirection.Inherit?this._canvas.direction="inherit":t==o.STextDirection.LTR?this._canvas.direction="ltr":this._canvas.direction="rtl")},e.prototype.setMatrix=function(){this._canvas.setTransform(this.state.matrix.a,this.state.matrix.b,this.state.matrix.c,this.state.matrix.d,this.state.matrix.e,this.state.matrix.f)},e.gcoList=["copy","destination-atop","destination-in","destination-out","destination-over","lighter","source-atop","source-in","source-out","source-over","xor"],e}(s.SPaintEngine);e.SCanvasPaintEngine=a},f1f6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPaintState=void 0;var n=i("64b5"),s=i("4203"),o=i("7fc16"),r=i("4c26"),a=function(){function t(t){if(this.matrix=new r.SMatrix,this._pen=new n.SPen,this._brush=new n.SBrush,this._font=new n.SFont,this._composite=s.SCompositeType.SourceOver,this._shadow=new o.SShadow,void 0!=t){this.pen=new n.SPen(t.pen),this.brush=new n.SBrush(t.brush),this.font=new n.SFont(t.font),this._composite=t._composite,this.shadow=new o.SShadow(t.shadow);var e=new r.SMatrix;e.m11=t.matrix.m11,e.m12=t.matrix.m12,e.m13=t.matrix.m13,e.m14=t.matrix.m14,e.m21=t.matrix.m21,e.m22=t.matrix.m22,e.m23=t.matrix.m23,e.m24=t.matrix.m24,e.m31=t.matrix.m31,e.m32=t.matrix.m32,e.m33=t.matrix.m33,e.m34=t.matrix.m34,e.m41=t.matrix.m41,e.m42=t.matrix.m42,e.m43=t.matrix.m43,e.m44=t.matrix.m44,this.matrix=e}}return Object.defineProperty(t.prototype,"pen",{get:function(){return this._pen},set:function(t){this._pen=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this._brush},set:function(t){this._brush=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this._font},set:function(t){this._font=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(t){this._shadow=t},enumerable:!1,configurable:!0}),t}();e.SPaintState=a},f20e:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDoorItem=void 0;const n=i("64b5"),s=i("ad3d"),o=i("6aaf"),r=i("6aaf"),a=i("f80e");class h extends a.SGraphItem{constructor(t,e){if(super(t),this.pointArr=[],this.r=0,this.ang=0,this.p=new n.SPoint(0,0),this.startAng=-Math.PI/2,this.minX=Number.MAX_SAFE_INTEGER,this.maxX=Number.MIN_SAFE_INTEGER,this.minY=Number.MAX_SAFE_INTEGER,this.maxY=Number.MIN_SAFE_INTEGER,this.data=e,this.zOrder=o.ItemOrder.doorOrder,this.data.OutLine.length){this.pointArr=this.data.OutLine[0].map(t=>{let e=t.X,i=-t.Y;return ethis.maxX&&(this.maxX=e),i>this.maxY&&(this.maxY=i),new n.SPoint(t.X,-t.Y)});let t=this.pointArr[0],e=this.pointArr[1];this.p=t;const i=this.data.HandDirection.X=Number(this.data.HandDirection.X.toFixed()),o=this.data.HandDirection.Y=Number(this.data.HandDirection.Y.toFixed()),r=this.data.FaceDirection.X=Number(this.data.FaceDirection.X.toFixed()),a=this.data.FaceDirection.Y=Number(this.data.FaceDirection.Y.toFixed());let h=(e.x-t.x)*i+(e.y-t.y)*-o;h>0&&(this.p=e,e=t,t=this.p),this.r=s.SMathUtil.pointDistance(t.x,t.y,e.x,e.y);let c=Math.atan(-a/r);this.ang=r>0?c:c+Math.PI;let l=(e.x-t.x)*-a-(e.y-t.y)*r;l>0&&(this.startAng=0)}}boundingRect(){return new n.SRect(this.minX,this.minY,this.maxX-this.minX,this.maxY-this.minY)}onDraw(t){t.translate(this.p.x,this.p.y),t.rotate(this.ang),t.pen.lineWidth=100,t.pen.color=r.ItemColor.doorColor,t.drawLine(0,0,this.r,0),t.pen.lineDash=[50,100],t.pen.lineWidth=t.toPx(1)}}e.SDoorItem=h},f2a9:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SRect=void 0;var n=i("3f8a"),s=i("ab10"),o=function(){function t(t,e,i,o){void 0==t?(this.leftTop=new n.SPoint(0,0),this.size=new s.SSize(0,0)):t instanceof n.SPoint&&e instanceof n.SPoint?(this.leftTop=new n.SPoint(t.x,t.y),this.size=new s.SSize(e.x-t.x,e.y-t.y)):t instanceof n.SPoint&&e instanceof s.SSize?(this.leftTop=new n.SPoint(t.x,t.y),this.size=new s.SSize(e.width,e.height)):(this.leftTop=new n.SPoint(t,e),this.size=new s.SSize(i,o))}return Object.defineProperty(t.prototype,"x",{get:function(){return this.leftTop.x},set:function(t){this.leftTop.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.leftTop.y},set:function(t){this.leftTop.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},set:function(t){this.size.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},set:function(t){this.size.height=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.leftTop.x},set:function(t){this.leftTop.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},set:function(t){this.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},set:function(t){this.width=t-this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},set:function(t){this.height=t-this.y},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.size.isEmpty()},t.prototype.isNull=function(){return this.size.isNull()},t.prototype.isValid=function(){return this.size.isValid()},t.prototype.isIn=function(t){return this.left<=t.left&&this.right>=t.right&&this.bottom>=t.bottom&&this.top<=t.top},t.prototype.contains=function(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom},t.prototype.center=function(){return new n.SPoint(this.x+this.width/2,this.y+this.height/2)},t.prototype.translate=function(t,e){this.x+=t,this.y+=e},t.prototype.translated=function(e,i){return new t(this.x+e,this.y+i,this.width,this.height)},t.prototype.adjust=function(t,e,i,n){this.x+=t,this.y+=e,this.width+=i,this.height+=n},t.prototype.adjusted=function(e,i,n,s){return new t(this.x+e,this.y+i,this.width+n,this.height+s)},t.prototype.union=function(t){var e=this.unioned(t);this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},t.prototype.unioned=function(e){var i=Math.min(this.left,e.left),n=Math.min(this.top,e.top),s=Math.max(this.right,e.right),o=Math.max(this.bottom,e.bottom);return new t(i,n,s-i,o-n)},t.prototype.intersected=function(e){var i=this.lefte.right?this.right:e.right);this.bottom>e.bottom?this.bottom:e.bottom;return this.width+e.width>n-i&&(this.height,e.height),new t},t.prototype.intersect=function(e){var i=Math.min(this.left,e.left),n=Math.min(this.top,e.top),s=Math.max(this.right,e.right),o=Math.max(this.bottom,e.bottom);return new t(i,n,s-i,o-n)},t}();e.SRect=o},f370:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAABaklEQVRoBe1XQXLCMAy0M/yr+Qzk0hxoHwAfAA5wSflM+jHSaMb2CEVgQjU4OMohsSx7vVprYssYfVQBVUAVUAXmrID1wR+O5/JiLqW3p/wtTNGu62ULHBeeqCO/8faUvz1XoNfCq4DXOz9hB3AQ1tjfznQt7kvd7jmVPacPyoMNAMh/19WWDk5p744N8BkEkGcKYaX3p6bB9pj212dV+fEUB/v8mGe+bAphoK4zK2yPbIcAGJzgG4l5NTz/FLLW/FyF/KQhhUOXj6aQVK5K4dAA8kwhODTcf5cGnMx2B9lgfTaF3Ik3ODQGs1/Y0XNiV8snheCK6m55bKRT6gSuU+Izby5akaXYf63IUqiuFVkK1R9Zk71K4Im0ksK+WBvfQCkO9sVw7vmjATCV1D086gtVF4MTfHTSGDufu9CtqKUqKSkcyjOaQlK5KoVDA8gzhbQio/ssYGtFJiCiGIRWZGJSKpAqoAr8W4E/fZNxDUsYXroAAAAASUVORK5CYII="},f37f:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SGraphSelectContainer=void 0;const n=i("4c26"),s=i("32c6"),o=i("a551");class r extends n.SObject{constructor(){super(),this.itemList=[],this.radix=.001}get count(){return this.itemList.length}addItem(t){for(let e=0;e{t.selected=!1}),this.itemList.length=0,t.selected=!0,this.itemList.push(t),this.$emit("listChange",this.itemList)}clear(){this.itemList.forEach(t=>{t.selected=!1}),this.itemList.length=0,this.$emit("listChange",this.itemList)}toggleItem(t){for(let e=0;es){let e=this.itemList[t];this.itemList[t]=this.itemList[t+1],this.itemList[t+1]=e}}let t=this.itemList[0],e=this.itemList[this.itemList.length-1],i=t.boundingRect().center(),n=e.boundingRect().center(),s=e.mapToScene(n.x,n.y).y-t.mapToScene(i.x,i.y).y,o=s/(this.itemList.length-1);for(let r=1;rs){let e=this.itemList[t];this.itemList[t]=this.itemList[t+1],this.itemList[t+1]=e}}let t=this.itemList[0],e=this.itemList[this.itemList.length-1],i=t.boundingRect().center(),n=e.boundingRect().center(),s=e.mapToScene(n.x,n.y).x-t.mapToScene(i.x,i.y).x,o=s/(this.itemList.length-1);for(let r=1;r{let e=t.zOrder;t.parent&&(t.parent.children.forEach(t=>{Number(e.toFixed())==Number(t.zOrder.toFixed())&&t.zOrder>e&&(e=t.zOrder)}),t.zOrder=e+this.radix)})}setBottom(){const t=this.sortItemList(this.itemList,!1);t.forEach(t=>{let e=t.zOrder;t.parent&&(t.parent.children.forEach(t=>{Number(e.toFixed())==Number(t.zOrder.toFixed())&&t.zOrder{if(t.parent){const e=t.zOrder;let i=t.parent.children.map(t=>{if(Number(t.zOrder.toFixed())==Number(e.toFixed()))return t.zOrder}).filter(t=>t);i=[...new Set(i)];const n=i.indexOf(t.zOrder);n<=1?t.zOrder=i[0]-this.radix:n>1&&(t.zOrder=(i[n-1]+i[n-2])/2)}})}setAfter(){const t=this.sortItemList(this.itemList,!1);t.forEach(t=>{if(t.parent){const e=t.zOrder;let i=t.parent.children.map(t=>{if(Number(t.zOrder.toFixed())==Number(e.toFixed()))return t.zOrder}).filter(t=>t);i=[...new Set(i)].reverse();const n=i.indexOf(t.zOrder);n<=1?t.zOrder=i[0]+this.radix:n>1&&(t.zOrder=(i[n-1]+i[n-2])/2)}})}sortItemList(t,e=!0){const i=t.map(t=>t);return i.sort(this.compare("zOrder",e)),i}compare(t,e){const i=e?1:-1;return(e,n)=>(e=e[t],n=n[t],en?1*i:0)}}e.SGraphSelectContainer=r},f412:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SPolygonUtil=void 0;var n=function(){function t(){}return t.pointIn=function(t,e,i){for(var n=0,s=0;s=Math.max(o.y,r.y))){var a=(e-o.y)*(r.x-o.x)/(r.y-o.y)+o.x;a>t&&n++}}return n%2==1},t.clockDir=function(t){if(t.length<3)return 0;for(var e=0,i=t.length,n=1;nt[e].x&&(e=n);var s=t[0==e?i-1:e-1],o=t[e],r=t[(e+1)%i];return(o.x-s.x)*(r.y-o.y)-(o.y-s.y)*(r.x-o.x)},t}();e.SPolygonUtil=n},f809:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAFKADAAQAAAABAAAAFAAAAACRFdLHAAABw0lEQVQ4Ea1Uv0vDQBROokkDdnEX7KLB2b9D6qJzC4W2QwfBzcWhuriIS1M7FAeX6uLSSXfdpArSSULdhCJoaxJi4veuPUlaLinYg7t3773vfffu3Q9JmnOTic80zUoQBMeYpjm/LMsu+nmxWKxw2yySEdZqtU+Av0DwEArawCLrqqpmCoWCFbLHThfH3jTI7kql0jZH1+v1KggPfN//y5r74iQnFGJAeIQdfAgBcCCZAOLJMIyzREJkmY0jIx8wDNLtdodCQk3Tqq7rngB8j67pur4pInYcZxWYR/gNIWE+n7cBsHEDfiB96MJtNxqNZc/z2HoKG+c4CDPka2Ar1yi6xvUkmUhYLpcPk0jC/ljCVqulDQYDVpZcLkcvxw8Ht9vtFOm9Xo9JmgtriLu32+/3h7Ztf1PHRX9rNps6BVHDYd1almVTx119GVklSZihoigd1O8SWWUhF9AvxifPYqFfYfJOCjBL0LfYnAZkE8B4E356ZKeGTJ4BTqGWayPL9Ij4DKyv4DgVbnk6bDbL3An5f2hhWytIeXTdo8mo8MElu1FzRJOBUVH3PXYoUHYQsA8p/KrgizBMKojv4P2bk/Z/678xZsFd61q4NgAAAABJRU5ErkJggg=="},f80e:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STextOrigin=e.SOrderSetType=e.SLineStyle=e.SImageShowType=e.STextItem=e.SAnchorItem=e.SObjectItem=e.SImageItem=e.SGraphPropertyCommand=e.SGraphPointListUpdate=e.SGraphPointListInsert=e.SGraphPointListDelete=e.SGraphMoveCommand=e.SGraphAddCommand=e.SGraphLayoutType=e.SGraphSelectContainer=e.SGraphView=e.SGraphScene=e.SGraphItem=e.SGraphLineItem=e.SGraphClockItem=e.SGraphCommand=void 0;const n=i("c652");Object.defineProperty(e,"SGraphCommand",{enumerable:!0,get:function(){return n.SGraphCommand}});const s=i("9313");Object.defineProperty(e,"SGraphClockItem",{enumerable:!0,get:function(){return s.SGraphClockItem}});const o=i("5841");Object.defineProperty(e,"SGraphLineItem",{enumerable:!0,get:function(){return o.SGraphLineItem}});const r=i("b034");Object.defineProperty(e,"SGraphItem",{enumerable:!0,get:function(){return r.SGraphItem}});const a=i("4ee8");Object.defineProperty(e,"SGraphScene",{enumerable:!0,get:function(){return a.SGraphScene}});const h=i("142a");Object.defineProperty(e,"SGraphView",{enumerable:!0,get:function(){return h.SGraphView}});const c=i("f37f");Object.defineProperty(e,"SGraphSelectContainer",{enumerable:!0,get:function(){return c.SGraphSelectContainer}});const l=i("32c6");Object.defineProperty(e,"SGraphLayoutType",{enumerable:!0,get:function(){return l.SGraphLayoutType}});const u=i("5468");Object.defineProperty(e,"SGraphAddCommand",{enumerable:!0,get:function(){return u.SGraphAddCommand}});const A=i("8e5d");Object.defineProperty(e,"SGraphMoveCommand",{enumerable:!0,get:function(){return A.SGraphMoveCommand}});const d=i("4b4f");Object.defineProperty(e,"SGraphPointListDelete",{enumerable:!0,get:function(){return d.SGraphPointListDelete}});const m=i("0a87");Object.defineProperty(e,"SGraphPointListInsert",{enumerable:!0,get:function(){return m.SGraphPointListInsert}});const p=i("6d58");Object.defineProperty(e,"SGraphPointListUpdate",{enumerable:!0,get:function(){return p.SGraphPointListUpdate}});const f=i("6317");Object.defineProperty(e,"SGraphPropertyCommand",{enumerable:!0,get:function(){return f.SGraphPropertyCommand}});const g=i("8efe");Object.defineProperty(e,"SImageItem",{enumerable:!0,get:function(){return g.SImageItem}});const S=i("edfc");Object.defineProperty(e,"SObjectItem",{enumerable:!0,get:function(){return S.SObjectItem}});const y=i("3897");Object.defineProperty(e,"SAnchorItem",{enumerable:!0,get:function(){return y.SAnchorItem}});const v=i("2e66");Object.defineProperty(e,"STextItem",{enumerable:!0,get:function(){return v.STextItem}});const b=i("8161");Object.defineProperty(e,"SImageShowType",{enumerable:!0,get:function(){return b.SImageShowType}});const w=i("957e");Object.defineProperty(e,"SLineStyle",{enumerable:!0,get:function(){return w.SLineStyle}});const x=i("a551");Object.defineProperty(e,"SOrderSetType",{enumerable:!0,get:function(){return x.SOrderSetType}});const C=i("38ad");Object.defineProperty(e,"STextOrigin",{enumerable:!0,get:function(){return C.STextOrigin}})},f8a5:function(t,e){function i(t){"number"!==typeof t&&(t=1e-10);var e={epsilon:function(e){return"number"===typeof e&&(t=e),t},pointAboveOrOnLine:function(e,i,n){var s=i[0],o=i[1],r=n[0],a=n[1],h=e[0],c=e[1];return(r-s)*(c-o)-(a-o)*(h-s)>=-t},pointBetween:function(e,i,n){var s=e[1]-i[1],o=n[0]-i[0],r=e[0]-i[0],a=n[1]-i[1],h=r*o+s*a;if(h-t)},pointsSameX:function(e,i){return Math.abs(e[0]-i[0])t!=r-s>t&&(o-c)*(s-l)/(r-l)+c-n>t&&(a=!a),o=c,r=l}return a}};return e}t.exports=i},f94f:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAAD4/042AAAD2UlEQVRoBe2ZzWvUQBjGn+mHbf04ibD1D1CviojiwYJWb7YWaf0WRQSp1pN4FRFPXtxdi54Eta2u9aCgoKj17MWDIHgpiqg96EXQttju+MxuJjO7m3SzSXZbJIHtvJlk5v097zuZzKRAciQRSCKQRGAxIyAa5jwt+yBxlf5WQ2AUq3ARJ8RMVP+NEXBdnib0TQow/gSeU0RvVBGmw6ih8GvvBa/vFXhBET1RRDTpvupSlsMLfGYOxl1fErvxC09wW7a7dTUa9RPgBd+KLpzDAEWMWJzdBRE52WHVBTbrI8AP/oz4BCHySOE4CUctym5MMRMhRMQvoBy+SNmGOZhh0i/m0YljzMSYK0JilyOi2a0LYMQrwBsenH1SyOM1huV6l0mJSOEoz++7dUURp9zzAEZ8AirhJ+l/iL85h6MTfzGBrFznchUzcZKZmHLrgC2WXdWMR4AXfAu6cF5kSHCYgPMOSSczYUTckq1EHy1kyKC+NWZ1K/p7wA9+UHxx3WfkACFH+CuOb4FvaOIUmscV1vW69wk85bDqgcpMwCOagCDwGiQrDxD4niuiOLRa9GWWz5ipPgyJWauuqhleQC3wGiMtD9K8a4nQV0LBq8bhnoEw8MpbCo/4950yrSM0vOqjdgFh4XNyGR/YcUZ/c1zwqp/ahlBYeDXbzBbg98YJr/oKnoFo8A8Z+djhgwuIBp8jfE/ckdf92dOYristo8DP4AE7M/N8yKmyFKj0bOEhFBZ+QrZwzKs1zj7LXaTZxuqnxPR/iDPyCFN/hz99zyTU8sB+w5Z05Zwo+PeMvORLyRx1gVfd+w+hPJe3ZpaqBX6sUfBKgP8QEjA7JIHhgJFX8PtVx85Rt8hrB/4CUCJgWjfwLIvDRi3WGgqvWPwFSGsHJeH//SYnmznm1SKt3xJX98hrX/7PgJ0BwDsDCn6qsEwe0B2yrA6fkdu5Mt1ktVnYbMYHnBWvvG7yFyCYAek0afLIgIL/zsiDXxnMUR0+K3dye/PSNAlgqd1BWh7iUtvsoZ1m/gLsDOS5NVQdFIdVByfWdkZ+Dfsw28MgkVdO57HB8V1r4dnOX4C0HmLJ+d8+dGZMXfXI63tX8t3yGzt4upE//Y7RV71K5e0jWnHD66J/B2n5lRFf69WorC44fFnDOE79M1D83KH2sNOMk3qIpynoj2ubuje1bgPjAP9v+qgcQmnZxrdDN6O9YsmoFPiBQX4YE6Li6fMaQo85U+xZMvAaJItrNC/oU116vYm36YtLqsxjqxdPZQYE//UjcYk3L/dqsEh1P/lJ7PIi+U7cJhFIIpBEYIEI/AN8BmvT4TGaPQAAAABJRU5ErkJggg=="},f984:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STopologyParser=void 0;const n=i("676a");class s extends n.SParser{}e.STopologyParser=s},fb6a:function(t,e,i){"use strict";var n=i("23e7"),s=i("861d"),o=i("e8b5"),r=i("23cb"),a=i("50c4"),h=i("fc6a"),c=i("8418"),l=i("b622"),u=i("1dde"),A=i("ae40"),d=u("slice"),m=A("slice",{ACCESSORS:!0,0:0,1:2}),p=l("species"),f=[].slice,g=Math.max;n({target:"Array",proto:!0,forced:!d||!m},{slice:function(t,e){var i,n,l,u=h(this),A=a(u.length),d=r(t,A),m=r(void 0===e?A:e,A);if(o(u)&&(i=u.constructor,"function"!=typeof i||i!==Array&&!o(i.prototype)?s(i)&&(i=i[p],null===i&&(i=void 0)):i=void 0,i===Array||void 0===i))return f.call(u,d,m);for(n=new(void 0===i?Array:i)(g(m-d,0)),l=0;d0&&(this.state=this.stateStack.pop())},t.prototype.translate=function(t,e){this.state.matrix.translate(t,e)},t.prototype.scale=function(t,e){this.state.matrix.scale(t,e)},t.prototype.rotate=function(t){this.state.matrix.rotate(0,0,t)},t.prototype.transform=function(t,e,i,n,s,o){},t.prototype.setTransform=function(t,e,i,n,s,o){},t.prototype.resetTransform=function(){this.state.matrix=new s.SMatrix},t}();e.SPaintEngine=o},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ffe1:function(t,e,i){}}]); //# sourceMappingURL=chunk-17ded99a.22f4eeeb.js.map