13.3be4c45594ee29da1e8e.js 78 KB

1
  1. webpackJsonp([13],{"8FPX":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAC40lEQVRIx62WT08aURTFfwPjiH8aJAYoJhIraYnRbqqL4sK0CSTapKap3Rjjjo2rrvwOdmNSPwEfoCH9k3Qh7OqmmlKSYpNGpaSyoAWhKFbFYaaLAYs4g1o9q8l7b86577x3730CzWEF7gK3ADvQDijALvAbSAHrQMGIQGhC7AcGAdM5QahAAogCxYsIeIGnQCuXQxl4B3ypHzQ3LLoPPAHES5LXuAaqQmk9gSHgcRPbLgIB8AA7wC/4568VmLwieb3IZJXzRMAPSNdAXoMEBEDzuqtqzym43W5LMBj09Pf322RZVs6EKQiCKIqmra2tfCgUSiaTyYOGJYNAVKySn7FmcXHRNzU1NWYUoqqqCIL22+jo6Jrf73+vY9WQCejTIwgEAveMyHd3d0srKyufM5lMFsDn8w0ZLO0zAQ69mc7Ozvbadz6fL2xsbKRkWa4ASJIkyrJcURRFAWhtbTU6P4cJLf3PQJZlGeD4+Pg4FAp9CAaDb3O5XF5RFGV9fT05PDzs7enpcQJUKpWKgUCHYUIJgiCoqqrG4/FviURiZ2Zm5nY4HF6zWCxiNBr94fV6u+bm5h46HI5umlxvE/BHb8JsNovpdDqztLT0cX5+fmx2dvZBOp3eSyaThYWFhUd2u719eXk5fnBwcCiKotmAf18AZtGy7xRKpdJ8qVTaj8VimxMTEz5VVclmszstLS2izWazFovFvVwuV+jt7b2pKIrS1tb2Qkdg0wR815OORCIxp9NpHx8f91Utw+FwdNtsNiuA1Wq94fF43JIkSaurq18NdpAS0BLteaOPLpdLmp6edo+MjLjK5bLuIYqiaIrFYj/D4fB2KpU6bJhWgZc10mfoZPMVkQBe1WpRBK3MXhfKVc6Tcn2E1vYGuHpFVYHXwHa9AGj1+wjtRv2viFqN/FNtoPH+poEMcIfLd7Uy8KaeHJo3/QBayT1vNyrayyLCBZt+o1D9s6WjOr4PZNFyqOmz5S+6LfOrvDYtEAAAAABJRU5ErkJggg=="},"8wDT":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("HzJ8"),a=n.n(i),o=n("3cXf"),r=n.n(o),s=(n("yf3K"),n("YVz9")),l=n("Bnvi"),c=n.n(l),u=(n("qBmJ"),n("pc3H")),d=n.n(u),p=n("oiq+"),f=n.n(p),h=(n("4ZJk"),n("IQB2"));f.a.setDefaults({inline:!1,button:!0,navbar:!0,title:!0,toolbar:!1,tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!1,fullscreen:!1,keyboard:!0,ready:function(t){},show:function(t){document.getElementById("iconBox").style.display="block"},shown:function(t){},hide:function(t){document.getElementById("reseau").innerHTML="",document.getElementById("iconBox").style.display="none"},hidden:function(t){},view:function(t){console.log(t.type,"视图开始")},viewed:function(t){var e=document.getElementById("iconDom");if(-1!==r()(e).indexOf("icon2")){var n,i=[];i=t.path[0].ownerDocument.images;for(var a=0;a<i.length;a++){var o=i[a].outerHTML.indexOf('style="');i[a].outerHTML.indexOf("margin-top:");-1!==o&&-1!==o&&(n=i[a].outerHTML)}var s='<div class="griddingLine" v-show="iconShow"><img src="../../../../static/images/gridding.png" alt="" class="" style="'+(n.split('style="')[1].split('">')[0].replace("margin-top","top").replace("margin-left","left")+"z-index:10000;")+'" /></div>';document.getElementById("reseau").innerHTML=s}},zoom:function(t){var e=document.getElementById("iconDom"),n=r()(e).indexOf("icon2");if(console.log(n),-1!==n){var i='<div class="griddingLine" v-show="iconShow"><img src="../../../../static/images/gridding.png" alt="" class="" style="'+(t.detail.originalEvent.path[0].outerHTML.split('style="')[1].split('">')[0].replace("margin-top","top").replace("margin-left","left")+"z-index:10000;")+'" /></div>';document.getElementById("reseau").innerHTML=i}},zoomed:function(t){var e=document.getElementById("iconDom");if(-1!==r()(e).indexOf("icon2")){var n='<div class="griddingLine" v-show="iconShow"><img src="../../../../static/images/gridding.png" alt="" class="" style="'+(t.detail.originalEvent.path[0].outerHTML.split('style="')[1].split('">')[0].replace("margin-top","top").replace("margin-left","left")+"z-index:10000;")+'" /></div>';document.getElementById("reseau").innerHTML=n}}});var m={data:function(){return{id:this.$store.state.cbd_pest_id,d_id:this.$store.state.cbd_pest_did,btnSelected:"2",allPest:[],options:{},options2:{},options3:{},options4:{},equip_name:"",worms:[],equipStatus:{},tableHeadTxt:[["害虫名称","name"],["害虫数量","sum"]],tableHeadTxtAll:[["害虫名称","name"],["害虫数量","sum"],["统计时间","upl_time"]],tableData:[],tableDataB:[],tableDataAll:[],tableDataAllB:[],index:0,tableDataA:[],timeRange:"",total:null,totalall:null,queryInfo:{begin:"",end:"",page:1,pageall:1,pest_name:"",manualpage:1},viewSwitch:1,viewSwitch2:"",viewSwitch23:"",tableHeadTxtA:[["害虫名称","pest_name"],["害虫数量","pest_num"],["作物种类","crop_name"],["虫害阶段","pest_case"],["统计时间","add_time"]],dropDown:[],chartsLineShow:!0,chartsPieShow:!0,pestTit:"详细信息",flag:1,dataSwitchType:1,dialogVisible:!1,optionsA:[{value:"选项1",label:"全部"},{value:"选项2",label:"时间段"}],value:"",value1:"",value2:"",timeShow:!1,imgListData:"",recognitionImage:[],AxiosImageList:[],imageListtData:!1,dialogFormVisible:!1,popUpData:{},isClick:!0,discernVisible:!1,discernVisibleA:!1,enlargement:!1,enlargementImg:!0,loading:!1,recognitionData:{},htmlData:"",iconShow:!1,iconIf:!0,iconShowA:!1,readOnly:!0,currentImage:"",imagepopShow:!0,uuid:"0da9130"}},watch:{viewSwitch:function(t){this.btnSelected="2"},value1:function(t){"选项2"==t&&(this.timeShow=!0),"选项1"==t&&(this.timeShow=!1)},dialogVisible:function(t){0==t&&(this.value="",this.value1="",this.value2="",this.timeShow=!1)},discernVisible:function(t){0==t&&new c.a(".swiper-container",{initialSlide:0,observer:!0,observeParents:!0,prevButton:".swiper-button-prev",nextButton:".swiper-button-next"}).destroy(!0,!0)},discernVisibleA:function(t){0==t&&(this.setdataNum={},this.$refs["aiPanel-editor"].getMarker().clearData())}},created:function(){this.getPests()},mounted:function(){this.refreshData()},methods:{refreshData:function(){d.a.setOptions({lang:{resetZoom:"刷新",resetZoomTitle:"重置缩放比例"}})},dateChange:function(t){this.queryInfo.begin=t.begin,this.queryInfo.end=t.end,this.queryInfo.pest_name="",1==this.viewSwitch?this.getPestAllData():0==this.viewSwitch&&this.manualStatistics()},getPests:function(){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.worm_list"}).then(function(e){""==e.data.message&&(t.allPest=e.data.data)})},getPestAllData:function(t){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.pest_statistics",data:this.qs.stringify({d_id:this.d_id,start_time:this.queryInfo.begin,end_time:this.queryInfo.end,pest_name:this.queryInfo.pest_name})}).then(function(n){if(""==n.data.message){e.equipStatus={address:n.data.data.address,device_name:n.data.data.device_name};var i=[{name:"温度(°C)",dat:[]},{name:"湿度(%)",dat:[]},{name:"害虫总数",dat:[]}];if((v=n.data.data.date).length>0){e.viewSwitch2=v[0]._sname;var o=!0,r=!1,s=void 0;try{for(var l,c=a()(v);!(o=(l=c.next()).done);o=!0){var u=l.value;i[0].dat.unshift([1e3*u.addtime+288e5,Number(u.temperature)]),i[1].dat.unshift([1e3*u.addtime+288e5,Number(u.humidity)]),i[2].dat.unshift([1e3*u.addtime+288e5,Number(u._sums)])}}catch(t){r=!0,s=t}finally{try{!o&&c.return&&c.return()}finally{if(r)throw s}}e.options={chart:{zoomType:"x"},title:{text:"害虫变化趋势",align:"left"},subtitle:{text:""},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"center",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{type:"column",name:i[0].name,data:i[0].dat},{type:"column",name:i[1].name,data:i[1].dat},{type:"spline",name:i[2].name,data:i[2].dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>"},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}}else e.options={},e.viewSwitch2="",e.gainInsect([]);if(1!=t){var d=n.data.data.percentage;if(d.length>0){var p=[],f=[];for(var h in d){var m={value:d[h].name_num,label:d[h].name_num};p.push(m),f.push([d[h].name_num,d[h].sum]),console.log(f)}e.chartPieInit(f),e.gainInsect(p),e.total=d.length;var v=d;for(var g in e.tableData=[],v)e.tableData.push({name:v[g].name_num,sum:v[g].sum,img:v[g].indentify_photos,serial:v[g].num});e.tableDataB=e.tableData.slice(0,10)}else e.tableData=[],e.tableDataB=[],e.options2={};var b=n.data.data.time_d_sums;if(b.length>0){for(var y in e.tableDataAll=[],b){var w=b[y].pest.split("#");for(var _ in w){var A=w[_].split(",");null!==b[y].mark?e.tableDataAll.push({name:e.allPest[A[0]],sum:A[1],upl_time:e.formatTime(1e3*b[y].addtime),img:b[y].result_photo,serial:A[0],mark:b[y].mark}):e.tableDataAll.push({name:e.allPest[A[0]],sum:A[1],upl_time:e.formatTime(1e3*b[y].addtime),img:b[y].result_photo,serial:A[0],mark:null})}if(b[y].mark)for(var x=0;x<JSON.parse(b[y].mark).length;x++){var S=JSON.parse(b[y].mark);e.tableDataAll.push({name:S[x].tagName,sum:1,img:b[y].result_photo,serila:null,upl_time:e.formatTime(1e3*b[y].addtime),mark:b[y].mark})}}e.totalall=e.tableDataAll.length,e.tableDataAllB=e.tableDataAll.slice(0,10)}else e.totalall=0,e.tableDataAllB=[],e.tableDataAll=[]}}})},chartPieInit:function(t){var e=this;this.options2={chart:{type:"pie",options3d:{enabled:!0,alpha:60,beta:0}},credits:{enabled:!1},title:{text:"害虫比例",align:"left"},tooltip:{headerFormat:"{series.name}<br>",pointFormat:"{point.name}: <b>{point.y}头</b>"},colors:["#00e29d","#6cbbff","#ff3f3f"],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.percentage:.1f} %"},point:{events:{mouseOver:function(t){},click:function(t){e.viewSwitch2=t.point.name,e.screenInsect()}}}}},series:[{type:"pie",innerSize:"80%",name:"害虫比例",data:t}]}},getTableList:function(){var t=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.pest_statistics_list",data:this.qs.stringify({device_id:this.d_id,page:this.queryInfo.page,start_time:this.queryInfo.begin,end_time:this.queryInfo.end})}).then(function(e){if(0!==e.data.data.counts){var n=e.data.data.data,i=[],a=[];for(var o in n){var r={value:n[o].name_num,label:n[o].name_num};i.push(r),a.push([n[o].name_num,n[o].sum])}t.chartPieInit(a),t.gainInsect(i),t.viewSwitch2=i[0].label,t.viewSwitch23=a[0].label}else t.chartPieInit([]),t.gainInsect([]),t.viewSwitch2="",t.viewSwitch23="";if(""==e.data.message){t.total=e.data.data.counts;n=e.data.data.data;for(var s in t.tableData=[],n)t.tableData.push({name:n[s].name_num,sum:n[s].sum})}}),this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.worm_lamp.pest_statistics_list_old",data:this.qs.stringify({device_id:this.d_id,page:this.queryInfo.page,start_time:this.queryInfo.begin,end_time:this.queryInfo.end})}).then(function(e){if(e.data.data.counts>0){var n=e.data.data.data;for(var i in t.tableDataAll=[],n){var a=n[i].pest.split("#");for(var o in a){var r=a[o].split(",");t.tableDataAll.push({name:t.allPest[r[0]],sum:r[1],upl_time:t.formatTime(1e3*n[i].addtime)})}}t.totalall=t.tableDataAll.length;for(var s=[],l=0,c=t.index;c<t.tableDataAll.length;c++)++l<=10&&s.push(t.tableDataAll[c]);t.index+=10,t.tableDataAllB=s}else t.tableDataAll=[]})},viewSwitchFun:function(t){this.viewSwitch=t,this.queryInfo.page=1,this.queryInfo.pest_name="",this.queryInfo.manualpage=1,1==t?this.getPestAllData():0==t&&this.manualStatistics()},changePage:function(t){this.queryInfo.page=t,this.tableDataB=this.tableData.slice(10*(t-1),10*t)},changePageall:function(t){this.queryInfo.pageall=t,this.tableDataAllB=this.tableDataAll.slice(10*(t-1),10*t)},manualchangePage:function(t){this.queryInfo.manualpage=t,this.manualStatisticspage()},gainInsect:function(t){this.worms=t},screenInsect:function(){this.queryInfo.pest_name=this.viewSwitch2,this.getPestAllData(1)},dataSwitch:function(t){this.dataSwitchType=t,this.flag=t},manualStatistics:function(t){var e=this,n=this,i=n.qs.stringify({device_id:this.d_id,start_time:this.queryInfo.begin,end_time:this.queryInfo.end,pest_name:this.queryInfo.pest_name,page:this.queryInfo.manualpage});n.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.pest_manual_statistics",data:i}).then(function(i){if(""==i.data.message){e.total=i.data.data.nums;var o=[{name:"害虫总数(头)",dat:[]}];if(1!=t){var r=i.data.data.dat;if(e.viewSwitch23=i.data.data.pests.pest_name,r.length>0){var s=[],l=!0,c=!1,u=void 0;try{for(var d,p=a()(r);!(l=(d=p.next()).done);l=!0){var f=d.value,h={};h.value=f.pest_name,h.label=f.pest_name,s.push(h)}}catch(t){c=!0,u=t}finally{try{!l&&p.return&&p.return()}finally{if(c)throw u}}e.dropDown=s}else e.dropDown=[];n.manualStatisticsPie(i.data),n.manualStatisticsTab(i.data)}var m=i.data.data.pests.pest_list||[];if(m.length>0){e.chartsLineShow=!0;var v=!0,g=!1,b=void 0;try{for(var y,w=a()(m);!(v=(y=w.next()).done);v=!0){var _=y.value;o[0].dat.unshift([1e3*_.add_time+288e5,Number(_.pest_num)])}}catch(t){g=!0,b=t}finally{try{!v&&w.return&&w.return()}finally{if(g)throw b}}e.options3={chart:{zoomType:"x"},title:{text:"害虫变化趋势",align:"left"},subtitle:{text:""},xAxis:{crosshair:!0,type:"datetime",dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""}},legend:{align:"center",verticalAlign:"top"},plotOptions:{series:{label:{connectorAllowed:!1},pointStart:2010}},series:[{name:o[0].name,data:o[0].dat}],colors:["#00e29d","#6cbbff","#ff3f3f"],credits:{enabled:!1},tooltip:{shared:!0,headerFormat:"<b>{point.x:%Y-%m-%e %H:%M:%S}</b><br>"},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}}else 0==i.data.data.nums&&(e.chartsLineShow=!1,e.options3={})}}).catch(function(t){console.log(t)})},manualStatisticspage:function(){var t=this,e=this.qs.stringify({device_id:this.d_id,start_time:this.queryInfo.begin,end_time:this.queryInfo.end,pest_name:this.queryInfo.pest_name,page:this.queryInfo.manualpage});this.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.pest_manual_statistics",data:e}).then(function(e){""==e.data.message&&(t.total=e.data.data.nums,t.manualStatisticsTab(e.data))}).catch(function(t){console.log(t)})},screenInsectA:function(){this.queryInfo.pest_name=this.viewSwitch23,this.manualStatistics(1)},manualStatisticsPie:function(t){for(var e=t.data.dat,n=[],i=0;i<e.length;i++){var a=[];a.push(e[i].pest_name),a.push(parseInt(e[i].pest_num)),n.push(a)}if(0!==t.data.nums){this.chartsPieShow=!0;var o=this;this.options4={chart:{type:"pie",options3d:{enabled:!0,alpha:60,beta:0}},credits:{enabled:!1},title:{text:"害虫比例",align:"left"},tooltip:{headerFormat:"{series.name}<br>",pointFormat:"{point.name}: <b>{point.y}头</b>"},colors:["#00e29d","#6cbbff","#ff3f3f"],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}</b>: {point.percentage:.1f} %"},point:{events:{mouseOver:function(t){},click:function(t){o.viewSwitch23=t.point.name,o.screenInsectA()}}}}},series:[{type:"pie",innerSize:"80%",name:"害虫比例",data:n}]}}else 0==t.data.nums&&(this.chartsPieShow=!1,this.options4={})},manualStatisticsTab:function(t){for(var e=t.data.date,n=this.tableDataA=[],i=0;i<e.length;i++){var a=e[i].add_time,o=new Date(1e3*parseInt(a)).toLocaleString().replace(/:\d{1,2}$/," "),r={};r.add_time=o,r.crop_name=e[i].crop_name||"--",r.pest_case=e[i].pest_case||"--",r.pest_name=e[i].pest_name,r.pest_num=e[i].pest_num,r.img=e[i].image,n.push(r)}this.tableDataA=n},goBackPage:function(){this.$router.go(-1)},deriveData:function(){this.dialogVisible=!0},addData:function(){if(""==this.value&&""==this.value1&&""==this.value2)this.$message({message:"请将必填项填写完整",type:"warning",duration:1500});else if(""!==this.value&&"选项2"==this.value1&&""==this.value2)this.$message({message:"请填写导出时间段",type:"warning",duration:1500});else if(""!==this.value&&("选项1"==this.value1||"选项2"==this.value1&&""!==this.value2)){if(1==this.viewSwitch){console.log("自动统计");var t="autom"}else if(0==this.viewSwitch){console.log("手动统计");t="manual"}var e="",n="";this.value2?(e=parseInt(new Date(this.value2[0]).getTime()/1e3),n=parseInt(new Date(this.value2[1]).getTime()/1e3)):(e="",n=""),window.location.href=this.$deriveData+"/api/cbd_pest_export?device_id="+this.d_id+"&filename="+this.value+"&start_time="+e+"&end_time="+n+"&types="+t}},handleEdit:function(t,e){var n=this;if(this.recognitionData={},this.recognitionImage=[],this.recognitionImage.push(e.img),void 0!==e.serial||null!==e.serial)this.recognitionData=e,this.imagepopShow=!0,null!==e.serial&&null!==e.mark?(console.log(e.serial),this.imagepopShow=!1,this.currentImage=e.img,this.$nextTick(function(){e.mark&&n.renderData(JSON.parse(e.mark))})):(this.recognitionData=e,this.imagepopShow=!0);else if(void 0==e.serial){console.log(222);var i={};this.recognitionData=i,void 0==e.pest_name&&void 0==e.pest_num&&void 0==e.image?(i.name=e.name,i.sum=e.sum,i.img=e.img,i.serial="暂无",i.mark=e.mark):(i.name=e.pest_name,i.sum=e.pest_num,i.img=e.image,i.serial="暂无"),void 0==e.pest_name&&void 0==e.pest_num&&void 0==e.image?(this.imagepopShow=!1,this.currentImage=i.img,this.$nextTick(function(){n.renderData(JSON.parse(i.mark))})):this.imagepopShow=!0}this.discernVisibleA=!0,this.loading=!1},handleEditA:function(t,e){this.loading=!0,this.imageAxiosData(e.img,e.name,e.serial)},imageAxiosData:function(t,e,n){var i=this,a=this,o=a.qs.stringify({photo_ids:r()(t)});a.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.photo_result",data:o}).then(function(t){if(t.data.data.length>0){var o=t.data.data,r=[],s=[];for(var l in o){var c=o[l].indentify_result.split("#");for(var u in c){var d=c[u].split(",");n==d[0]&&(r.push({name:e,sum:d[1],img:o[l].indentify_photo,serial:d[0]}),s.push(o[l].indentify_photo))}}a.discernVisible=!0,a.AxiosImageList=[],a.AxiosImageList=r,a.recognitionImage=[],a.recognitionImage=s,i.$nextTick(function(){i.switchChu()}),a.loading=!1}}).catch(function(t){console.log(t)})},inited:function(t){this.$viewer=t,this.$viewer.index=this.activeIndex},amplification:function(){console.log("v-viewer组件事件"),this.$viewer.show()},insectData:function(t,e){var n=this,i=this;if(!0===i.isClick){i.isClick=!1;var a=void 0==e.name?e.pest_name:e.name,o=i.qs.stringify({code:"2",name:a,page:1});i.$axios({method:"post",url:"/api/api_gateway?method=pest.pests.pests_search",data:o}).then(function(t){0==t.data.data.nums?n.$message({message:"暂无此虫害的信息",type:"warning",duration:1500}):0!==t.data.data.data.length&&i.insectAxios(t.data.data.data[0].id)}).catch(function(t){console.log(t)}),setTimeout(function(){i.isClick=!0},1500)}},insectAxios:function(t){var e=this,n=e.qs.stringify({code:"2",page:1,pest_id:t});e.$axios({method:"post",url:"api/api_gateway?method=pest.pests.pests_info",data:n}).then(function(t){e.popUpData=t.data.data,e.dialogFormVisible=!0}).catch(function(t){console.log(t)})},errImg:function(t){t.target.src="/images/expertDiagnosis/ku/noData.jpg"},switchChu:function(){new c.a(".swiper-container",{initialSlide:0,observer:!0,observeParents:!0,prevButton:".swiper-button-prev",nextButton:".swiper-button-next"})},add:function(){var t=this;t.$axios({method:"post",url:"/api/api_gateway?method=forecast.worm_lamp.html_test"}).then(function(e){t.htmlData=e.data.data}).catch(function(t){console.log(t)})},openGridding:function(){var t,e=[];e=this.$viewer.element.ownerDocument.images;for(var n=0;n<e.length;n++){var i=e[n].outerHTML.indexOf('style="'),a=e[n].outerHTML.indexOf("margin-top:");-1!==i&&-1!==a&&(t=e[n].outerHTML)}var o=t.split('style="')[1].split('">')[0].replace("margin-top","top").replace("margin-left","left"),r=document.getElementById("reseau"),s='<div class="griddingLine" v-show="iconShow"><img src="../../../../static/images/gridding.png" alt="" class="" style="z-index: 10000;'+o+'" /><div style="color: red; font-weight: 550; float: left; position: absolute; left: 3.5rem;bottom: .8rem; z-index: 10001; font-size: 15px;">*注:每个网格大小为20*20mm</div></div>';r.innerHTML=s,console.log(r),this.iconIf=!1},offGridding:function(){document.getElementById("reseau").innerHTML="",this.iconIf=!0},renderData:function(t){var e=this;this.$nextTick(function(){e.$refs["aiPanel-editor"].getMarker().renderData(t)})},onAnnoAdded:function(){},onAnnoSelected:function(t,e){},onUpdated:function(t){},onReady:function(){},onImageLoad:function(t){},tableRowClassName:function(t){var e=t.row;t.rowIndex;return null!==e.mark&&null===e.serila?"success-row":""}},components:{DateSearch:s.a,"ui-marker":h.AIMarker}},v={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"innerMargin"},[i("div",{staticClass:"equipInfo"},[i("div",{staticClass:"equipMsg"},[i("span",[t._v("设备ID:"+t._s(t.id))]),t._v(" "),i("span",[t._v("设备名称:"+t._s(t.equipStatus.device_name||"无"))]),t._v(" "),i("span",[t._v("位置:"+t._s(t.equipStatus.address))])]),t._v(" "),i("div",{staticClass:"dateBox"},[i("DateSearch",{on:{dateChange:t.dateChange}}),t._v(" "),i("div",{staticClass:"viewSwitch"},[t.viewSwitch?i("el-button",{attrs:{type:"blueInfo",size:"mini"},on:{click:function(e){return t.viewSwitchFun(!1)}}},[t._v("手动统计")]):t._e(),t._v(" "),t.viewSwitch?t._e():i("el-button",{attrs:{type:"blueInfo",size:"mini"},on:{click:function(e){return t.viewSwitchFun(!0)}}},[t._v("自动统计")])],1)],1)]),t._v(" "),t.viewSwitch?i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{md:24,lg:15}},[i("el-card",{staticClass:"box-card"},[[i("div",{staticClass:"chartsSelect"},[i("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:function(e){return t.screenInsect()}},model:{value:t.viewSwitch2,callback:function(e){t.viewSwitch2=e},expression:"viewSwitch2"}},t._l(t.worms,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)],t._v(" "),i("div",{staticClass:"charts"},[Object.keys(t.options).length>0?i("highcharts",{attrs:{options:t.options}}):i("div",{staticClass:"noDataClass"},[t._v("暂无数据")])],1)],2)],1),t._v(" "),i("el-col",{attrs:{md:24,lg:9}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"pie"},[Object.keys(t.options2).length>0?i("highcharts",{attrs:{options:t.options2}}):i("div",{staticClass:"noDataClass"},[t._v("暂无数据")])],1)])],1)],1)],1),t._v(" "),i("div",{staticClass:"dataTableSearch"},[i("div",{staticClass:"sel_box"},[t._m(0),t._v(" "),i("div",{class:0==t.dataSwitchType?"btn":"selectbtn",on:{click:function(e){return t.dataSwitch(1)}}},[t._v("\n 详细信息\n ")]),t._v(" "),i("div",{class:1==t.dataSwitchType?"btn":"selectbtn",on:{click:function(e){return t.dataSwitch(0)}}},[t._v("\n 统计信息\n ")])]),t._v(" "),i("el-button",{staticClass:"elbtn",attrs:{type:"blueInfo",size:"mini"},on:{click:function(e){return t.deriveData()}}},[t._v("导出")])],1),t._v(" "),0==t.dataSwitchType?i("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"-2px"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableDataB,stripe:""}},[t._l(t.tableHeadTxt,function(e,n){return i("el-table-column",{key:n,attrs:{prop:e[1],label:e[0]},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row[e.column.property]))]}}],null,!0)})}),t._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{type:"blueInfo",size:"mini",id:"viewerDom",plain:""},on:{click:function(n){return t.handleEditA(e.$index,e.row)}}},[t._v("害虫来源")]),t._v(" "),i("el-button",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{type:"orangeInfo",size:"mini",id:"viewerDom",plain:""},on:{click:function(n){return t.insectData(e.$index,e.row)}}},[t._v("害虫资料")])]}}],null,!1,1912067543)})],2),t._v(" "),t.tableDataB.length>0?i("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.total,"current-page":t.queryInfo.page},on:{"current-change":t.changePage}}):t._e()],1):i("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"-2px"}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableDataAllB,stripe:"","row-class-name":t.tableRowClassName}},[t._l(t.tableHeadTxtAll,function(e,n){return i("el-table-column",{key:n,attrs:{prop:e[1],label:e[0]},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row[e.column.property]))]}}],null,!0)})}),t._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{type:"blueInfo",size:"mini",id:"viewerDom",plain:""},on:{click:function(n){return t.handleEdit(e.$index,e.row)}}},[t._v("害虫来源")]),t._v(" "),i("el-button",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{type:"orangeInfo",size:"mini",id:"viewerDom",plain:""},on:{click:function(n){return t.insectData(e.$index,e.row)}}},[t._v("害虫资料")])]}}],null,!1,2841756214)})],2),t._v(" "),t.tableDataAllB.length>0?i("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.totalall,"current-page":t.queryInfo.pageall},on:{"current-change":t.changePageall}}):t._e()],1)],1):t._e(),t._v(" "),t.viewSwitch?t._e():i("div",[i("div",[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{md:24,lg:15}},[i("el-card",{staticClass:"box-card"},[[i("div",{staticClass:"chartsSelect"},[i("el-select",{attrs:{size:"mini",placeholder:"请选择"},on:{change:function(e){return t.screenInsectA()}},model:{value:t.viewSwitch23,callback:function(e){t.viewSwitch23=e},expression:"viewSwitch23"}},t._l(t.dropDown,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)],t._v(" "),i("div",{staticClass:"charts"},[Object.keys(t.options3).length>0?i("highcharts",{attrs:{options:t.options3}}):i("div",{staticClass:"noDataClass"},[t._v("暂无数据")])],1)],2)],1),t._v(" "),i("el-col",{attrs:{md:24,lg:9}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"pie"},[Object.keys(t.options4).length>0?i("highcharts",{attrs:{options:t.options4}}):i("div",{staticClass:"noDataClass"},[t._v("暂无数据")])],1)])],1)],1)],1),t._v(" "),i("div",{staticClass:"dataTableSearch"},[t._m(1),t._v(" "),i("el-button",{staticClass:"elbtn",attrs:{type:"blueInfo",size:"mini"},on:{click:function(e){return t.deriveData()}}},[t._v("导出")])],1),t._v(" "),i("el-card",{staticClass:"box-card"},[[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableDataA,stripe:""}},[t._l(t.tableHeadTxtA,function(e,n){return i("el-table-column",{key:n,attrs:{prop:e[1],label:e[0]},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row[e.column.property]))]}}],null,!0)})}),t._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"blueInfo",size:"mini",plain:""},on:{click:function(n){return t.handleEdit(e.$index,e.row)}}},[t._v("害虫来源")]),t._v(" "),i("el-button",{attrs:{type:"orangeInfo",size:"mini",plain:""},on:{click:function(n){return t.insectData(e.$index,e.row)}}},[t._v("害虫资料")])]}}],null,!1,537739414)})],2)],t._v(" "),i("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.total,"current-page":t.queryInfo.manualpage},on:{"current-change":t.manualchangePage}})],2),t._v(" "),i("el-dialog",{attrs:{title:"导出信息",visible:t.dialogVisible,width:"30%",top:"20%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("ul",{staticClass:"iptUl"},[i("li",{staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v("文件名称:\n ")]),t._v(" "),i("div",{staticClass:"iptBox"},[i("el-input",{attrs:{placeholder:"请输入文件的名称",clearable:""},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)]),t._v(" "),i("li",{staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v("下载类型:\n ")]),t._v(" "),i("div",{staticClass:"iptBox"},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}},t._l(t.optionsA,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)]),t._v(" "),i("li",{directives:[{name:"show",rawName:"v-show",value:t.timeShow,expression:"timeShow"}],staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v("时间段:\n ")]),t._v(" "),i("div",{staticClass:"iptBox"},[i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)])]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"blueInfo"},on:{click:function(e){return t.addData()}}},[t._v("确 定")])],1)])],1),t._v(" "),i("el-dialog",{attrs:{title:"导出信息",visible:t.dialogVisible,width:"30%",top:"20%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("ul",{staticClass:"iptUl"},[i("li",{staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v("文件名称:\n ")]),t._v(" "),i("div",{staticClass:"iptBox"},[i("el-input",{attrs:{placeholder:"请输入文件的名称",clearable:""},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)]),t._v(" "),i("li",{staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v("下载类型:\n ")]),t._v(" "),i("div",{staticClass:"iptBox"},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}},t._l(t.optionsA,function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)]),t._v(" "),i("li",{directives:[{name:"show",rawName:"v-show",value:t.timeShow,expression:"timeShow"}],staticClass:"iptList"},[i("div",{staticClass:"iptTxt"},[i("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v("时间段:")]),t._v(" "),i("div",{staticClass:"iptBox"},[i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1)])]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"blueInfo"},on:{click:function(e){return t.addData()}}},[t._v("确 定")])],1)]),t._v(" "),i("viewer",{directives:[{name:"show",rawName:"v-show",value:t.imageListtData,expression:"imageListtData"}],ref:"viewer",attrs:{images:t.recognitionImage,index:3},on:{inited:t.inited}},t._l(t.recognitionImage,function(t,e){return i("img",{key:e,attrs:{src:t}})}),0),t._v(" "),i("el-dialog",{attrs:{title:"病虫害档案","close-on-click-modal":!1,visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("ul",{staticClass:"expertDiagnosis_library_main_popUp"},[i("li",{staticClass:"expertDiagnosis_library_main_popUp_li"},[i("div",{staticClass:"expertDiagnosis_library_main_popUp_li_name"},[t._v("\n 害虫名称:\n ")]),t._v(" "),i("div",{staticClass:"expertDiagnosis_library_main_popUp_li_nameVal"},[t._v("\n "+t._s(t.popUpData.name)+"\n ")])]),t._v(" "),i("li",{staticClass:"expertDiagnosis_library_main_popUp_li"},[i("div",{staticClass:"expertDiagnosis_library_main_popUp_li_img"},[t._v("\n 害虫图片:\n ")]),t._v(" "),i("div",{directives:[{name:"viewer",rawName:"v-viewer"}],attrs:{id:"viewerDom"}},[i("img",{staticClass:"expertDiagnosis_library_main_popUp_li_imgVal",staticStyle:{cursor:"pointer"},attrs:{src:t.popUpData.img_urls,alt:""},on:{error:function(e){t.$imghost,t.errImg}}})])]),t._v(" "),i("li",{staticClass:"expertDiagnosis_library_main_popUp_li"},[i("div",{staticClass:"expertDiagnosis_library_main_popUp_li_details"},[t._v("\n 详细信息:\n ")]),t._v(" "),i("div",{staticClass:"expertDiagnosis_library_main_popUp_li_detailsVal"},[t._v("\n "+t._s(t.popUpData.prevention)+"\n ")])])])]),t._v(" "),i("el-dialog",{attrs:{title:"识别结果",visible:t.discernVisibleA,width:"50%",fullscreen:t.enlargement},on:{"update:visible":function(e){t.discernVisibleA=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.imagepopShow?i("div",[t.enlargementImg?i("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.recognitionImage[0],alt:""},on:{click:function(e){return t.amplification()}}}):i("img",{staticClass:"enlargementImg",attrs:{src:t.recognitionImage[0],alt:""},on:{click:function(e){return t.amplification()}}})]):i("ui-marker",{ref:"aiPanel-editor",staticClass:"ai-observer",attrs:{uniqueKey:t.uuid,width:"100%",ratio:16/9,readOnly:t.readOnly,imgUrl:t.currentImage},on:{"vmarker:onAnnoSelected":t.onAnnoSelected,"vmarker:onAnnoAdded":t.onAnnoAdded,"vmarker:onUpdated":t.onUpdated,"vmarker:onReady":t.onReady,"vmarker:onImageLoad":t.onImageLoad}})],1),t._v(" "),i("div",[i("div",{class:0==t.enlargementImg?"enlargementDiv":"discernResult"},[i("div",{staticClass:"name"},[i("i",{staticClass:"icon-zhuti_tiaosepan_o iconfont"}),t._v("\n 害虫名称\n "),i("span",[t._v(t._s(t.recognitionData.name)+"(序号:"+t._s(t.recognitionData.serial)+")")])]),t._v(" "),i("div",{staticClass:"number"},[t._v("\n 害虫个数:\n "),i("span",[t._v(t._s(t.recognitionData.sum))])])])])]),t._v(" "),i("el-dialog",{attrs:{title:"识别结果",visible:t.discernVisible,"close-on-click-modal":!1,width:"30%",fullscreen:t.enlargement},on:{"update:visible":function(e){t.discernVisible=e}}},[i("div",[i("div",{ref:"swiperRef",staticClass:"swiper-container"},[i("div",{staticClass:"swiper-wrapper"},t._l(t.AxiosImageList,function(e,n){return i("div",{key:n,staticClass:"swiper-slide"},[i("img",{staticClass:"swiper-slide-img",attrs:{src:e.img,alt:""},on:{click:function(e){return t.amplification()}}}),t._v(" "),i("div",[i("div",{class:0==t.enlargementImg?"enlargementDiv":"discernResult"},[i("div",{staticClass:"name"},[i("i",{staticClass:"icon-zhuti_tiaosepan_o iconfont"}),t._v("\n 害虫名称\n "),i("span",[t._v(t._s(e.name)+"(序号:"+t._s(e.serial)+")")])]),t._v(" "),i("div",{staticClass:"number"},[t._v("\n 害虫个数:\n "),i("span",[t._v(t._s(e.sum))])])])])])}),0),t._v(" "),i("div",{staticClass:"swiper-button-prev"}),t._v(" "),i("div",{staticClass:"swiper-button-next"})])])]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.iconShow,expression:"iconShow"}],staticClass:"griddingBox",attrs:{id:"iconBox"}},[t.iconIf?i("img",{staticClass:"icon1",attrs:{src:n("E/c3"),alt:"",id:"iconDom"},on:{click:function(e){return t.openGridding()}}}):i("img",{staticClass:"icon2",attrs:{src:n("8FPX"),alt:"",id:"iconDom"},on:{click:function(e){return t.offGridding()}}})]),t._v(" "),i("div",{attrs:{id:"reseau"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img_box"},[e("img",{attrs:{src:n("ecdK"),alt:""}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"sel_box"},[e("div",{staticClass:"img_box"},[e("img",{attrs:{src:n("ecdK"),alt:""}})]),this._v(" "),e("div",{staticClass:"btn"},[this._v("\n 统计信息\n ")])])}]};var g=n("C7Lr")(m,v,!1,function(t){n("wj/q"),n("MKTR")},"data-v-75ff3ab4",null);e.default=g.exports},"E/c3":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAABbUlEQVRIx7XWQUocQRQG4K86wYBZjBvdS0QJM+5zAF0qwWzjGbxAQDyCB3ERstQruNLZCXHhIighRlDIQCwX1Z20TU9PjzPz7+rR/f+v/qr3XgXN6GAdy1jEPB5xh1tcoo9fwwhCA/EGushGJBFxjhP8biOwhh28MR4G+IazcvBV5aMP+IjXY5IXXO9zoas6gR62Gmxrg4B3+Ilr/vvbwfaE5GWR7Zzzn8AG5ob9EWPcjzHuD1vXYA6bhcBCbs+00cVClpNPw5o6q3oBn7FSZ8tYbCEc1IQvMizNIPsCSwFfjLj3xW6KLKvrBvwd1QYmRoaHGfLfB+xK1VdrS1s0HfL3Ge7gMkiFtqehFl54yBGHmTQ4+jPIvo/b4hYdS212WhjknM9s6eGTydtGxJE05Z7Ng2v8kW7US0VinvlpEahOtCv8wKrxp9oAX8vkVYvK6Ej9vNtiN1E60GMth35VqPxseZvH73Ej1VDjs+UJB3NgU4rbK6AAAAAASUVORK5CYII="},IQB2:function(t,e,n){var i;"undefined"!=typeof self&&self,i=function(){return function(t){function e(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=16)}([function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=i(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(a=0;a<t.length;a++){var r=t[a];null!=r[0]&&i[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),e.push(r))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=c[n.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](n.parts[a]);for(;a<n.parts.length;a++)i.parts.push(o(n.parts[a]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var r=[];for(a=0;a<n.parts.length;a++)r.push(o(n.parts[a]));c[n.id]={id:n.id,refs:1,parts:r}}}}function a(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,n,i=document.querySelector("style["+v+'~="'+t.id+'"]');if(i){if(f)return h;i.parentNode.removeChild(i)}if(g){var o=p++;i=d||(d=a()),e=r.bind(null,i,o,!1),n=r.bind(null,i,o,!0)}else i=a(),e=function(t,e){var n=e.css,i=e.media,a=e.sourceMap;if(i&&t.setAttribute("media",i),m.ssrId&&t.setAttribute(v,e.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function r(t,e,n,i){var a=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,a);else{var o=document.createTextNode(a),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(o,r[e]):t.appendChild(o)}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(21),c={},u=s&&(document.head||document.getElementsByTagName("head")[0]),d=null,p=0,f=!1,h=function(){},m=null,v="data-vue-ssr-id",g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,a){f=n,m=a||{};var o=l(t,e);return i(o),function(e){for(var n=[],a=0;a<o.length;a++){var r=o[a];(s=c[r.id]).refs--,n.push(s)}e?i(o=l(t,e)):o=[];for(a=0;a<n.length;a++){var s;if(0===(s=n[a]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete c[s.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";var i=n(23),a=n.n(i),o=n(13),r=n(57);n.n(r),e.a={name:"vue-ai-marker",props:{readOnly:Boolean,imgUrl:String,uniqueKey:[String,Number],width:[String,Number],ratio:{default:16/9,type:Number}},watch:{imgUrl:function(t,e){this.currentBaseImage=t},width:function(t,e){this.__updateFrame()},readOnly:function(t,e){this.options.options=a()({},this.options.options,{editable:!t}),this.marker&&this.marker.updateConfig(this.options)},ratio:function(t,e){t&&(this.wratioh=t,this.__updateFrame())}},data:function(){return{emptyImg:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==",options:void 0,currentBaseImage:void 0,rootClass:"",key:"",wratioh:this.ratio,loading:!0}},beforeMount:function(){this.key=this.uniqueKey,this.rootClass=this.uniqueKey?"pannel-"+this.uniqueKey:void 0},mounted:function(){this.__updateFrame()},created:function(){var t=this;this.options={options:{blurOtherDots:!0,blurOtherDotsShowTags:!0,editable:!this.readOnly,trashPositionStart:1},onAnnoContextMenu:function(e,n,i){t.$emit("vmarker:onAnnoContextMenu",e,n,t.key)},onAnnoRemoved:function(e){return t.$emit("vmarker:onAnnoRemoved",e,t.key),!0},onAnnoAdded:function(e,n){t.$emit("vmarker:onAnnoAdded",e,t.key)},onAnnoChanged:function(e,n){t.$emit("vmarker:onAnnoChanged",e,n,t.key)},onAnnoDataFullLoaded:function(){t.$emit("vmarker:onAnnoDataFullLoaded",t.key)},onAnnoSelected:function(e,n){t.$emit("vmarker:onAnnoSelected",e,n,t.key)},onUpdated:function(e){t.$emit("vmarker:onUpdated",e,t.key)}},/^.+$/.test(this.imgUrl)?this.currentBaseImage=this.imgUrl:this.currentBaseImage=this.emptyImg,this.$nextTick(function(){t.__initMarker(),t.$emit("vmarker:onReady",t.key)})},activated:function(){this.rootClass="pannel-"+this.key,this.$emit("vmarker:onReady",this.key)},methods:{getMarker:function(){return this.marker},__updateFrame:function(){var t=this,e=this.$el;if(e){var n=this.width;this.width||(n="100%"),e.style.width=n.endsWith("%")?n:parseInt(n)+"px",e.style.height=e.clientWidth/this.wratioh+"px",e.querySelectorAll(".vmr-g-image,.vmr-ai-raw-image,.vmr-ai-raw-image-mask").forEach(function(n){n.style.width=e.style.width,n.style.height=parseInt(e.clientWidth)/t.wratioh+"px"})}},__initMarker:function(){var t=this.$el;t&&(this.marker=new o.a(t.querySelector(".annotate"),t.querySelector(".draft "),this.options))},onImageLoad:function(t){var e={rawW:t.target.naturalWidth,rawH:t.target.naturalHeight,currentW:t.target.offsetWidth,currentH:t.target.offsetHeight};this.currentBaseImage.startsWith("data")||this.$emit("vmarker:onImageLoad",e,this.key),this.loading=!1},dispatchEvent:function(t,e){if(this.marker)return this.marker[t](e)},renderData:function(t,e){this.marker&&this.marker.renderData(t,e)},clearData:function(){this.marker&&this.marker.clearData()},setTag:function(t){this.marker&&this.marker.setTag(t)},renderer:function(t){this.currentBaseImage=this.imgUrl=t}}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(10),a=n(11);t.exports=function(t){return i(a(t))}},function(t,e,n){var i=n(40);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){"use strict";var i=n(52),a=n.n(i),o=n(53),r=(n.n(o),function t(e,n,i){a()(this,t),s.call(this),this.marker=this._makeMarker(e,n,i)}),s=function(){var t=this;this._makeMarker=function(t,e,n){return new o.BdAIMarker(t,e,null,n)},this.updateConfig=function(e){t.marker.setConfigOptions(e)},this.getMarker=function(){return t.marker},this.setTag=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.marker.setTag(e)},this.renderData=function(e,n){t.marker.renderData(e,n)},this.getData=function(){return t.marker.dataSource()},this.clearData=function(){t.marker.clearAll()},this.mapDataPercent2Real=function(t,e,n){return t.map(function(t){return t.position=Object(o.positionP2S)(t.position,e,n),t})}};e.a=r},function(t,e,n){"use strict";Array.prototype.forEach=Array.prototype.forEach||function(t){if("[object Array]"!=Object.prototype.toString.call(this))throw TypeError;for(var e in this)"forEach"!=e&&t.call(this[e],e,this[e],this)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformDataArray=e.positionP2S=e.percentToSize=e.UUID=e.dotCls=e.PREFIX_RESIZE_DOT=e.imageOpContent=e.imageOpTag=e.defaultConfig=e.defaultPositions=e.TOUCH_EVENT=e.MOUSE_EVENT=void 0;e.MOUSE_EVENT=["mousedown","mousemove","mouseend","mouseout","mouseup","mouseleave","contextmenu"];e.TOUCH_EVENT=["touchstart","touchmove","touchend","touchcancel","touchup","touchleave"];var i={bottom:1,out_bottom:2};e.defaultPositions=i;var a={options:{deviceType:"both",blurOtherDots:!1,blurOtherDotsShowTags:!1,editable:!0,showTags:!0,supportDelKey:!1,tagLocation:i.bottom,trashPositionStart:0,boundReachPercent:.01,annotationClass:"annotation"},onAnnoContextMenu:function(t,e,n){},onAnnoRemoved:function(t,e){return!0},onAnnoAdded:function(t,e){},onAnnoChanged:function(t,e){},onAnnoDataFullLoaded:function(){},onAnnoSelected:function(t,e){},onUpdated:function(){}};e.defaultConfig=a,e.imageOpTag="g-image-op-name",e.imageOpContent="g-image-op-content",e.PREFIX_RESIZE_DOT="resize-dot";var o=["".concat("resize-dot","-n"),"".concat("resize-dot","-s"),"".concat("resize-dot","-w"),"".concat("resize-dot","-e"),"".concat("resize-dot","-nw"),"".concat("resize-dot","-ne"),"".concat("resize-dot","-sw"),"".concat("resize-dot","-se"),"".concat("resize-dot","-tag-trash")];e.dotCls=o;e.UUID=function(t,e){var n,i,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(e=e||a.length,t)for(n=0;n<t;n++)o[n]=a[0|Math.random()*e];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",n=0;n<36;n++)o[n]||(i=0|16*Math.random(),o[n]=a[19===n?3&i|8:i]);return o.join("")};var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(parseFloat(t).toFixed(3)*e/100)};e.percentToSize=r;var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:"0%",y:"0%",x1:"0%",y1:"0%"},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;for(var i in t)i.startsWith("x")?t[i]=r(t[i],e):t[i]=r(t[i],n);return t};e.positionP2S=s;e.transformDataArray=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<t.length;n++){var i=t[n];i.position=s(i.position,e)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"install",function(){return r});var i=n(17),a=n(13);n.d(e,"AIMarker",function(){return i.a}),n.d(e,"PictureMarker",function(){return a.a});var o=[i.a],r=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],o.forEach(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&r(window.Vue)},function(t,e,n){"use strict";var i=n(18);i.a.install=function(t){return t.component(i.a.name,i.a)},e.a=i.a},function(t,e,n){"use strict";var i=n(7),a=n(59),o=function(t){n(19)},r=n(22)(i.a,a.a,!1,o,"data-v-58d7da78",null);e.a=r.exports},function(t,e,n){var i=n(20);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(6)("b03e0dc2",i,!0,{})},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,"\n.vmr-ai-panel[data-v-58d7da78]{background:#3e3e3e;width:100%;display:flex;flex-direction:row;align-items:center;height:auto\n}\n.vmr-ai-panel .vmr-g-image[data-v-58d7da78],.vmr-ai-panel .vmr-ai-raw-image[data-v-58d7da78],.vmr-ai-panel .vmr-ai-raw-image-mask[data-v-58d7da78]{width:100%;height:100%\n}\n",""])},function(t,e){t.exports=function(t,e){for(var n=[],i={},a=0;a<e.length;a++){var o=e[a],r=o[0],s={id:t+":"+a,css:o[1],media:o[2],sourceMap:o[3]};i[r]?i[r].parts.push(s):n.push(i[r]={id:r,parts:[s]})}return n}},function(t,e){t.exports=function(t,e,n,i,a,o){var r,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),a&&(u._scopeId=a),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:s,options:u}}},function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{default:t}}(n(24));e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){t.exports={default:n(25),__esModule:!0}},function(t,e,n){n(26),t.exports=n(2).Object.assign},function(t,e,n){var i=n(27);i(i.S+i.F,"Object",{assign:n(37)})},function(t,e,n){var i=n(1),a=n(2),o=n(28),r=n(30),s=n(8),l=function(t,e,n){var c,u,d,p=t&l.F,f=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,g=t&l.W,b=f?a:a[e]||(a[e]={}),y=b.prototype,w=f?i:h?i[e]:(i[e]||{}).prototype;for(c in f&&(n=e),n)(u=!p&&w&&void 0!==w[c])&&s(b,c)||(d=u?w[c]:n[c],b[c]=f&&"function"!=typeof w[c]?n[c]:v&&u?o(d,i):g&&w[c]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[c]=d,t&l.R&&y&&!y[c]&&r(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(29);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,a){return t.call(e,n,i,a)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(31),a=n(36);t.exports=n(0)?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(32),a=n(33),o=n(35),r=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),a)try{return r(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(3);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(0)&&!n(4)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(3),a=n(1).document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var i=n(3);t.exports=function(t,e){if(!i(t))return t;var n,a;if(e&&"function"==typeof(n=t.toString)&&!i(a=n.call(t)))return a;if("function"==typeof(n=t.valueOf)&&!i(a=n.call(t)))return a;if(!e&&"function"==typeof(n=t.toString)&&!i(a=n.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(0),a=n(38),o=n(49),r=n(50),s=n(51),l=n(10),c=Object.assign;t.exports=!c||n(4)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i})?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=o.f,p=r.f;c>u;)for(var f,h=l(arguments[u++]),m=d?a(h).concat(d(h)):a(h),v=m.length,g=0;v>g;)f=m[g++],i&&!p.call(h,f)||(n[f]=h[f]);return n}:c},function(t,e,n){var i=n(39),a=n(48);t.exports=Object.keys||function(t){return i(t,a)}},function(t,e,n){var i=n(8),a=n(9),o=n(41)(!1),r=n(44)("IE_PROTO");t.exports=function(t,e){var n,s=a(t),l=0,c=[];for(n in s)n!=r&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(9),a=n(42),o=n(43);t.exports=function(t){return function(e,n,r){var s,l=i(e),c=a(l.length),u=o(r,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var i=n(12),a=Math.min;t.exports=function(t){return t>0?a(i(t),9007199254740991):0}},function(t,e,n){var i=n(12),a=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?a(t+e,0):o(t,e)}},function(t,e,n){var i=n(45)("keys"),a=n(47);t.exports=function(t){return i[t]||(i[t]=a(t))}},function(t,e,n){var i=n(2),a=n(1),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(46)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(11);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){t.exports=n(54)},function(t,e,n){"use strict";function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"UUID",{enumerable:!0,get:function(){return s.UUID}}),Object.defineProperty(e,"positionP2S",{enumerable:!0,get:function(){return s.positionP2S}}),Object.defineProperty(e,"transformDataArray",{enumerable:!0,get:function(){return s.transformDataArray}}),Object.defineProperty(e,"ResizeAnnotation",{enumerable:!0,get:function(){return l.default}}),e.BdAIMarker=void 0,n(14);var s=n(15),l=function(t){return t&&t.__esModule?t:{default:t}}(n(55));e.BdAIMarker=function t(e,n,a){var c=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,"eventTargetOnTransform",!1),r(this,"$callback_handler",function(t){c.eventTargetOnTransform=t}),r(this,"setConfigOptions",function(t){c.options=o(o({},c.options),t.options),c.resizeAnnotation&&c.resizeAnnotation.setConfigOptions(t)}),r(this,"_compatibalBoundRect",function(){var t=c.boundRect();return void 0!==t.x?t:{x:t.left,y:t.top,left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}}),r(this,"mouseEventHandler",function(t,e,n){var i=t.type,a=c._compatibalBoundRect();if(e&&(c.moveX=e-a.x),n&&(c.moveY=n-a.y),i===s.MOUSE_EVENT[6])return c.eventTargetOnTransform=!1,c.actionDown=!1,void c.resizeAnnotation.dragEventOn(t);if(c.eventTargetOnTransform)c.resizeAnnotation.dragEventOn(t);else if(i===s.MOUSE_EVENT[0]||i===s.TOUCH_EVENT[0]){if(t.target.classList.contains(c.options.annotationClass)||t.target.classList.contains("".concat(s.PREFIX_RESIZE_DOT)))return c.eventTargetOnTransform=!0,void c.resizeAnnotation.dragEventOn(t);if(c.actionDown)return void c.dragTo(c.moveX,c.moveY);c.resizeAnnotation.removeSelectedAnnotation(),c.actionDown=!0,c.anchorX=c.moveX,c.anchorY=c.moveY,c.resetDraft(),c.anchorAt(c.anchorX,c.anchorY)}else i===s.MOUSE_EVENT[1]||i===s.TOUCH_EVENT[1]?c.actionDown&&c.dragTo(c.moveX,c.moveY):i===s.MOUSE_EVENT[4]||i===s.TOUCH_EVENT[2]||i===s.TOUCH_EVENT[4]?(c.actionDown&&c.resizeAnnotation&&(c.resizeAnnotation.drawAnnotation(c.draftRect),c.resetDraft()),c.actionDown=!1):c.actionDown&&c.filterOutOfBounds(c.moveX,c.moveY)&&(c.resizeAnnotation&&(c.resizeAnnotation.drawAnnotation(c.draftRect),c.resetDraft()),c.actionDown=!1)}),r(this,"anchorAt",function(t,e){if(c.options.editable){var n=c._compatibalBoundRect();c.draft.style.display="",c.moveX<t?(c.draft.style.right=100*Math.abs(n.width-t)/n.width+"%",c.draft.style.left="",c.draftRect=Object.assign(c.draftRect,{x:(100*Math.abs(c.moveX)/n.width).toFixed(3)+"%"})):(c.draft.style.left=(100*Math.abs(t)/n.width).toFixed(3)+"%",c.draft.style.right="",c.draftRect=Object.assign(c.draftRect,{x:(100*Math.abs(t)/n.width).toFixed(3)+"%"})),c.moveY<e?(c.draft.style.bottom=(100*Math.abs(n.height-e)/n.height).toFixed(3)+"%",c.draft.style.top="",c.draftRect=Object.assign(c.draftRect,{y:(100*Math.abs(c.moveY)/n.height).toFixed(3)+"%"})):(c.draft.style.top=(100*Math.abs(e)/n.height).toFixed(3)+"%",c.draft.style.bottom="",c.draftRect=Object.assign(c.draftRect,{y:(100*Math.abs(e)/n.height).toFixed(3)+"%"}))}}),r(this,"filterOutOfBounds",function(t,e){return t>=c._compatibalBoundRect().width||e>=c._compatibalBoundRect().height||t<1||e<1}),r(this,"resetDraft",function(){c.draftRect={x:-1,y:-1,width:0,height:0},c.draft.style.width="0%",c.draft.style.height="0%"}),r(this,"clearAll",function(){c.layer.querySelectorAll(".".concat(c.options.annotationClass)).forEach(function(t){t.remove()}),c.renderData(void 0)}),r(this,"dragTo",function(t,e){if(c.options.editable){c.filterOutOfBounds(t,e)&&(c.actionDown=!1),c.anchorAt(c.anchorX,c.anchorY);var n=(100*Math.abs(t-c.anchorX)/c._compatibalBoundRect().width).toFixed(3),i=(100*Math.abs(e-c.anchorY)/c._compatibalBoundRect().height).toFixed(3);c.draftRect=Object.assign(c.draftRect,{width:n+"%",height:i+"%"}),c.draft.style.width=c.draftRect.width,c.draft.style.height=c.draftRect.height}}),r(this,"renderData",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=c.resizeAnnotation;n&&n.renderData(t,e)}),r(this,"setTag",function(t){c.resizeAnnotation&&t&&c.resizeAnnotation.setTagForCurrentMovement(t)}),r(this,"selectMarkerByTagId",function(t){t&&c.resizeAnnotation.selectMarkerByTagId(t)}),r(this,"dataSource",function(){if(c.resizeAnnotation)return c.resizeAnnotation.dataSource()}),r(this,"dataForTag",function(t,e){return c.resizeAnnotation.dataSourceOfTag(t,e)}),"object"!==i(u))throw new Error("Please provide a callback Config for BdAIMarker");if(this.options=o(o({},s.defaultConfig.options),u.options),e){this.layer=e,this.draft=n,this.actionDown=!1,this.draftRect={},this.anchorX=-1,this.anchorY=-1,this.boundRect=function(){return e.getBoundingClientRect()},this.resizeAnnotation=a||new l.default(n.parentNode,this._compatibalBoundRect,u,this.$callback_handler);var d=this;"both"!=this.options.deviceType&&"mouse"!=this.options.deviceType||s.MOUSE_EVENT.forEach(function(t,n,i){e.addEventListener(t,function(t){if("touch"!=c.options.deviceType){var e=t.clientX,n=t.clientY;d.mouseEventHandler(t,e,n)}},!0)}),"both"!=this.options.deviceType&&"touch"!=this.options.deviceType||s.TOUCH_EVENT.forEach(function(t,n,i){e.addEventListener(t,function(t){if("mouse"!=c.options.deviceType&&t.targetTouches){var e=t.targetTouches[0],n=e?e.clientX:void 0,i=e?e.clientY:void 0;d.mouseEventHandler(t,n,i)}},!0)})}}},function(t,e,n){"use strict";function i(t){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(14);var s=n(15),l=function(t){return t&&t.__esModule?t:{default:t}}(n(56));e.default=function t(e,n){var a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.defaultConfig,u=arguments.length>3?arguments[3]:void 0;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),r(this,"_event",function(){a.options.supportDelKey?document.addEventListener("keydown",a.delEvent):document.removeEventListener("keydown",a.delEvent)}),r(this,"_uiconstruct",function(){if(a.annotationContainer)for(var t=a.annotationContainer.querySelectorAll(".".concat(s.imageOpContent)),e=0;e<t.length;e++){var n=t[e];a.options.showTags?n.style.visibility="visible":n.style.visibility="collapse",a.options.tagLocation==s.defaultPositions.out_bottom?(n.style.position="absolute",n.style.bottom=null):n.style.position=null}a.currentMovement&&!a.options.editable&&a.currentMovement.moveNode.querySelectorAll("[class*=".concat(s.PREFIX_RESIZE_DOT,"]")).forEach(function(t){t.classList.contains(s.dotCls[8])?t.classList.remove("hidden"):t.classList.add("hidden")})}),r(this,"setConfigOptions",function(t){a.options=o(o({},a.options),t.options),a.rawConfig=o(o({},a.rawConfig),t),a._event(),a._uiconstruct()}),r(this,"dataTemplate",function(t,e,n,i,a){return t&&/^.+$/gi.test(t)||(t={tag:"temp@".concat((new Date).getTime())}),o(o({},t),{},{position:{x:e,y:n,x1:i,y1:a}})}),r(this,"reset",function(){a.data=[]}),r(this,"isValid",function(t){return t&&parseFloat(t.width)>1&&parseFloat(t.height)>1}),r(this,"renderData",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:a.boundRect().width,height:a.boundRect().height};t instanceof Array&&t.length>0?t.forEach(function(t,n,i){var o;o=t.position.x.endsWith("%")?{x:t.position.x,y:t.position.y,width:parseFloat(t.position.x1)-parseFloat(t.position.x)+"%",height:parseFloat(t.position.y1)-parseFloat(t.position.y)+"%"}:{x:(100*t.position.x/e.width).toFixed(3)+"%",y:(100*t.position.y/e.height).toFixed(3)+"%",width:(100*(t.position.x1-t.position.x)/e.width).toFixed(3)+"%",height:(100*(t.position.y1-t.position.y)/e.height).toFixed(3)+"%"},a.drawAnnotation(o,t)}):a.reset(),a.rawConfig.onAnnoDataFullLoaded()}),r(this,"dataSource",function(){return a.data}),r(this,"dataSourceOfTag",function(t,e){for(var n=0;n<a.data.length;n++){var i=a.data[n];if(i.tag===t&&i.uuid==e)return i}}),r(this,"setTagForCurrentMovement",function(t){if(a.currentMovement){var e=a.currentMovement.moveNode,n="",r="";"string"==typeof t&&(r=n=t);var l=e.querySelector(".".concat(s.imageOpTag)).dataset.id,c={};if("object"===i(t))for(var u in n=t.tagName,r=t.tag,c=o({},t),t)e.querySelector(".".concat(s.imageOpTag)).dataset[u]=t[u];var d=e.dataset.uuid;e.querySelector(".".concat(s.imageOpTag)).innerText=n;for(var p=0;p<a.data.length;p++){var f=a.data[p],h=Object.assign({},f);f.tag===l&&f.uuid===d&&(f=o(o(o({},f),c),{},{tag:r,tagName:n}),e.querySelector(".".concat(s.imageOpTag)).dataset.id=r,e.querySelector(".".concat(s.imageOpTag)).dataset.name=n,a.rawConfig.onAnnoChanged(f,h)),a.data[p]=f}a.rawConfig.onUpdated(a.dataSource())}}),r(this,"updateMovementData",function(){if(null!=a.currentMovement){for(var t=a.currentMovement.moveNode,e=t.dataset.uuid,n=t.querySelector(".".concat(s.imageOpTag)).dataset.id,i={x:t.style.left,y:t.style.top,x1:(parseFloat(t.style.width)+parseFloat(t.style.left)).toFixed(3)+"%",y1:(parseFloat(t.style.height)+parseFloat(t.style.top)).toFixed(3)+"%"},o=!1,r=0;r<a.data.length;r++){var l=a.data[r],c=Object.assign({},l);if(l.tag===n&&l.uuid===e){JSON.stringify(l.position)!=JSON.stringify(i)&&(l.position=i,a.data[r]=l,o=!0,a.rawConfig.onAnnoChanged(l,c));break}}o&&a.rawConfig.onUpdated(a.dataSource(),a.currentMovement)}}),r(this,"_removeAnnotationEvent",function(t){if(a.options.editable){var e=t.currentTarget.parentNode.parentNode.parentNode;a.removeAnnotation(e)}}),r(this,"removeAnnotation",function(t){if(t){for(var e,n=t.dataset.uuid,i=0;i<a.data.length;i++)if((e=a.data[i]).uuid===n){a.rawConfig.onAnnoRemoved(e)&&a.data.splice(i,1);break}a.rawConfig.onUpdated(a.dataSource()),t.remove()}}),r(this,"drawAnnotation",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(a.isValid(t)){a.removeSelectedAnnotation();var n=document.createElement("div");n.className="".concat(a.options.annotationClass," selected"),n.style.position="absolute",n.style.top=t.y,n.style.left=t.x,n.style.width=t.width,n.style.height=t.height;var r={top:"".concat(s.PREFIX_RESIZE_DOT," top"),bottom:"".concat(s.PREFIX_RESIZE_DOT," bottom"),left:"".concat(s.PREFIX_RESIZE_DOT," left"),right:"".concat(s.PREFIX_RESIZE_DOT," right"),topLeft:"".concat(s.PREFIX_RESIZE_DOT," top-left"),topRight:"".concat(s.PREFIX_RESIZE_DOT," top-right"),bottomLeft:"".concat(s.PREFIX_RESIZE_DOT," bottom-left"),bottomRight:"".concat(s.PREFIX_RESIZE_DOT," bottom-right"),trash:"g-image-op"},c="".concat((0,s.UUID)(16,16));n.dataset.uuid=c;var u,d,p=0;for(var f in"object"===i(e)?(u=e.tagName,d=e.tag):"string"==typeof e?(u=e,d=e):(u="请选择或添加新标签",e={tag:d="temp@".concat(c),tagName:u}),r){var h=document.createElement("div");if(8===p){h.className="".concat(a.options.blurOtherDotsShowTags?"":"".concat(s.dotCls[p])," ").concat(r[f]);var m=document.createElement("div");m.className=s.imageOpContent,a.options.showTags?m.style.visibility="visible":m.style.visibility="collapse",a.options.tagLocation==s.defaultPositions.out_bottom?(m.style.position="absolute",m.style.bottom=null):m.style.position=null;var v=document.createElement("i");v.className="g-image-op-del iconfont s-icon icon-trash s-icon-trash",v.innerText=" × ",v.addEventListener("click",a._removeAnnotationEvent,!0);var g=document.createElement("span");g.dataset.name=u,g.className="".concat(s.imageOpTag),g.innerText=u,g.dataset.id=d,a.options.trashPositionStart?(m.appendChild(v),m.appendChild(g)):(m.appendChild(g),m.appendChild(v)),h.appendChild(m)}else h.className="".concat(r[f]," ").concat(s.dotCls[p]," ").concat(a.options.editable?"":"hidden");n.appendChild(h),p++}a.annotationContainer.appendChild(n),n.oncontextmenu=function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var e=t.currentTarget,n=e.querySelector(".".concat(s.imageOpTag)).dataset,i=a.dataSourceOfTag(n.id,e.dataset.uuid);return a.rawConfig.onAnnoContextMenu(i,t.target,a),!0},a.currentMovement=new l.default(n,0,a.boundRect(),a.options);var b=o(o({},a.dataTemplate(e,t.x,t.y,parseFloat(t.x)+parseFloat(t.width)+"%",parseFloat(t.y)+parseFloat(t.height)+"%")),{},{uuid:c});a.data.push(b),a.rawConfig.onAnnoAdded(b,n),a.rawConfig.onUpdated(a.dataSource())}}),r(this,"dragEventOn",function(t){var e=t.type;if(e!==s.MOUSE_EVENT[6]){var n=t.clientX,i=t.clientY;if(t.targetTouches&&t.targetTouches.length>0){var o=t.targetTouches[0];n=o?o.clientX:void 0,i=o?o.clientY:void 0}if(a.moveX=n,a.moveY=i,e===s.MOUSE_EVENT[0]||e===s.TOUCH_EVENT[0])a.actionDown=!0,a.lastX=a.moveX,a.lastY=a.moveY,"function"==typeof a.callback_handler&&a.callback_handler(!0),a.targetEventType(t);else if(e===s.MOUSE_EVENT[1]||e===s.MOUSE_EVENT[3]||e===s.MOUSE_EVENT[5]||e===s.TOUCH_EVENT[1]||e===s.TOUCH_EVENT[3]||e===s.TOUCH_EVENT[5]){if(null==a.currentMovement)return!0;if(a.actionDown){if(a.filterOutOfBounds(a.moveX,a.moveY))return;a.currentMovement.transform(a.moveX-a.lastX,a.moveY-a.lastY),a.lastX=a.moveX,a.lastY=a.moveY}}else"function"==typeof a.callback_handler&&a.callback_handler(!1),a.actionDown&&(a.updateMovementData(),a.selectAnnotation()),a.actionDown=!1}else a.selectAnnotation()}),r(this,"removeSelectedAnnotation",function(){a.currentMovement&&(a.currentMovement.moveNode.classList.remove("selected"),a.options.blurOtherDots&&a.currentMovement.moveNode.querySelectorAll("[class*=".concat(s.PREFIX_RESIZE_DOT,"]")).forEach(function(t){t.classList.add("hidden")}))}),r(this,"selectAnnotation",function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(a.currentMovement){if(a.currentMovement.moveNode.classList.add("selected"),a.options.blurOtherDots){if(!a.options.editable)return void a.currentMovement.moveNode.querySelectorAll("[class*=".concat(s.PREFIX_RESIZE_DOT,"]")).forEach(function(t){t.classList.contains(s.dotCls[8])?t.classList.remove("hidden"):t.classList.add("hidden")});a.currentMovement.moveNode.querySelectorAll("[class*=".concat(s.PREFIX_RESIZE_DOT,"]")).forEach(function(t){t.classList.remove("hidden")})}if(!t)return;var e=a.currentMovement.moveNode,n=(e.querySelector(".".concat(s.imageOpTag)).innerText,e.querySelector(".".concat(s.imageOpTag)).dataset),i=o(o({},n),a.dataSourceOfTag(n.id,e.dataset.uuid));a.rawConfig.onAnnoSelected(i,e)}}),r(this,"selectMarkerByTagId",function(t){var e=a.annotationContainer.querySelector('[data-id="'.concat(t,'"]'));if(e){var n=e.parentNode.parentNode.parentNode;a.removeSelectedAnnotation(),a.currentMovement=new l.default(n,-1,a.boundRect(),a.options),a.selectAnnotation(!1)}}),r(this,"targetEventType",function(t){a.removeSelectedAnnotation();var e=t.target,n=e.classList.contains("annotation")?e:e.parentNode;e.classList.contains(s.dotCls[0])?a.currentMovement=new l.default(n,0,a.boundRect(),a.options):e.classList.contains(s.dotCls[1])?a.currentMovement=new l.default(n,1,a.boundRect(),a.options):e.classList.contains(s.dotCls[2])?a.currentMovement=new l.default(n,2,a.boundRect(),a.options):e.classList.contains(s.dotCls[3])?a.currentMovement=new l.default(n,3,a.boundRect(),a.options):e.classList.contains(s.dotCls[4])?a.currentMovement=new l.default(n,4,a.boundRect(),a.options):e.classList.contains(s.dotCls[5])?a.currentMovement=new l.default(n,5,a.boundRect(),a.options):e.classList.contains(s.dotCls[6])?a.currentMovement=new l.default(n,6,a.boundRect(),a.options):e.classList.contains(s.dotCls[7])?a.currentMovement=new l.default(n,7,a.boundRect(),a.options):e.classList.contains("annotation")?a.currentMovement=new l.default(n,-1,a.boundRect(),a.options):a.currentMovement=null}),r(this,"filterOutOfBounds",function(t,e){return t>=a.boundRect().x+a.boundRect().width+2||e>=a.boundRect().y+a.boundRect().height+2||t<5||e<5}),this.options=o({},s.defaultConfig.options),this.rawConfig=o({},s.defaultConfig),this.callback_handler=u,this.annotationContainer=e,this.boundRect=n,this.actionDown=!1,this.currentMovement=null,this.data=[];var d=this;this.delEvent=function(t){if(8===t.keyCode||46===t.keyCode){var e=d.currentMovement;e&&d.removeAnnotation(e.moveNode)}},this.setConfigOptions(c)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"transform",function(t,e){if(n.options.editable){var i=n.moveNode,a=parseFloat(i.style.height),o=parseFloat(i.style.width),r=parseFloat(i.style.top),s=parseFloat(i.style.left),l=100*e/n.boundRect.height,c=100*t/n.boundRect.width;if(!(r+l<n.options.boundReachPercent||r+l>100-n.options.boundReachPercent))if(0===n.type){if(a-l<n.options.boundReachPercent)return;i.style.top=(r+l).toFixed(3)+"%",i.style.height=(a-l).toFixed(3)+"%"}else if(1===n.type)i.style.height=(a+l).toFixed(3)+"%";else if(2===n.type){if(c+s<n.options.boundReachPercent||c+s>=o+s)return;i.style.left=(c+s).toFixed(3)+"%",i.style.width=(o-c).toFixed(3)+"%"}else if(3===n.type)i.style.width=(o+c).toFixed(3)+"%";else if(4===n.type){if(a-l<n.options.boundReachPercent)return;if(o-c<n.options.boundReachPercent)return;i.style.top=(r+l).toFixed(3)+"%",i.style.height=(a-l).toFixed(3)+"%",i.style.left=(c+s).toFixed(3)+"%",i.style.width=(o-c).toFixed(3)+"%"}else if(5===n.type){if(o+c<n.options.boundReachPercent)return;if(a-l<n.options.boundReachPercent)return;i.style.top=(r+l).toFixed(3)+"%",i.style.height=(a-l).toFixed(3)+"%",i.style.width=(o+c).toFixed(3)+"%"}else if(6===n.type){if(a+l<n.options.boundReachPercent)return;if(o-c<n.options.boundReachPercent)return;i.style.height=(a+l).toFixed(3)+"%",i.style.left=(c+s).toFixed(3)+"%",i.style.width=(o-c).toFixed(3)+"%"}else if(7===n.type){if(a+l<n.options.boundReachPercent)return;if(o+c<n.options.boundReachPercent)return;i.style.height=(a+l).toFixed(3)+"%",i.style.width=(o+c).toFixed(3)+"%"}else if(-1===n.type){if(l+r<n.options.boundReachPercent||l+r+a>100-n.options.boundReachPercent)return;if(c+s<n.options.boundReachPercent||c+s+o>100-n.options.boundReachPercent)return;i.style.top=(l+r).toFixed(3)+"%",i.style.left=(c+s).toFixed(3)+"%"}}}),this.moveNode=e,this.type=i,this.boundRect=a,this.options=o}},function(t,e,n){var i=n(58);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(6)("1cca3750",i,!0,{})},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,'.annotation{cursor:move;border:1px solid #3e3e3e;background:rgba(0,0,0,0.3)}.selected{background:rgba(89,190,244,0.3)}.hidden{display:none}.resize-dot{position:absolute;width:8px;height:8px;border-radius:50%;background:#fff;box-sizing:border-box}.resize-dot-n{position:absolute;cursor:n-resize;top:-4px;left:50%;margin-left:-4px}.resize-dot-s{position:absolute;cursor:s-resize;bottom:-4px;left:50%;margin-left:-4px}.resize-dot-w{position:absolute;cursor:w-resize;left:-4px;top:50%;margin-top:-4px}.resize-dot-e{position:absolute;cursor:e-resize;right:-4px;top:50%;margin-top:-4px}.resize-dot-nw{position:absolute;cursor:nw-resize;margin-top:-4px;margin-left:-4px}.resize-dot-ne{position:absolute;cursor:ne-resize;right:0;margin-top:-4px;margin-right:-4px}.resize-dot-sw{position:absolute;cursor:sw-resize;bottom:0;margin-left:-4px;margin-bottom:-4px}.resize-dot-se{cursor:se-resize;right:-4px;bottom:0;margin-bottom:-4px}.g-image-op{bottom:0;cursor:auto;position:absolute}.g-image-op-content{background-color:rgba(255,255,255,0.6);box-sizing:border-box;height:30px;line-height:30px;padding:0 10px;white-space:nowrap}.g-image-op-del{cursor:pointer}@media screen and (max-width: 768px){.resize-dot-n::after,.resize-dot-s::after,.resize-dot-w::after,.resize-dot-e::after,.resize-dot-nw::after,.resize-dot-ne::after,.resize-dot-sw::after,.resize-dot-se::after{content:"";position:absolute;top:0;bottom:0;right:0;left:0;display:inline-block;width:auto;height:auto;background-color:rgba(0,0,0,0.2)}.resize-dot{position:absolute;width:auto;height:auto;min-width:12px;min-height:12px;border-radius:2px;background:#fff;box-sizing:border-box}.resize-dot-n{position:absolute;cursor:n-resize;height:12px;top:-6px;left:40%;right:40%}.resize-dot-n::after{line-height:12px;border-top:5px dotted white;border-bottom:5px dotted white}.resize-dot-s{position:absolute;cursor:s-resize;height:12px;bottom:-6px;left:40%;right:40%}.resize-dot-s::after{line-height:12px;border-top:5px dotted white;border-bottom:5px dotted white}.resize-dot-w{position:absolute;cursor:w-resize;width:12px;left:-6px;top:40%;bottom:40%}.resize-dot-w::after{line-height:12px;border-left:5px dotted white;border-right:5px dotted white}.resize-dot-e{position:absolute;cursor:e-resize;width:12px;right:-6px;top:40%;bottom:40%}.resize-dot-e::after{line-height:12px;border-left:5px dotted white;border-right:5px dotted white}.resize-dot-nw::after,.resize-dot-ne::after,.resize-dot-sw::after,.resize-dot-se::after{line-height:12px;border-top:5px dotted white;border-bottom:5px dotted white}.resize-dot-nw{position:absolute;cursor:nw-resize;width:12px;height:12px;margin-top:-6px;margin-left:-6px}.resize-dot-ne{position:absolute;cursor:ne-resize;right:0;width:12px;height:12px;margin-top:-6px;margin-right:-6px}.resize-dot-sw{position:absolute;cursor:sw-resize;bottom:0;width:12px;height:12px;margin-left:-6px;margin-bottom:-6px}.resize-dot-se{position:absolute;cursor:se-resize;bottom:0;width:12px;height:12px;right:0;margin-bottom:-6px;margin-right:-6px}.g-image-op-content{line-height:20px;height:20px}.g-image-op-content .g-image-op-name{font-size:12px}}\n',""])},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vmr-ai-panel",class:t.rootClass,attrs:{loading:t.loading}},[n("div",{staticClass:"vmr-g-image",staticStyle:{position:"relative",overflow:"hidden"}},[n("img",{staticClass:"vmr-ai-raw-image",staticStyle:{display:"block",position:"absolute","user-select":"none"},attrs:{src:t.currentBaseImage},on:{load:t.onImageLoad}}),t._v(" "),t._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"annotate vmr-ai-raw-image-mask",staticStyle:{"user-select":"none",position:"absolute",cursor:"crosshair",left:"0px",top:"0"}},[e("div",{staticClass:"draft",staticStyle:{position:"absolute","user-select":"none",display:"none","background-color":"rgba(1,0,0,0.5)"}})])}]};e.a=i}])},t.exports=i()},MKTR:function(t,e){},ecdK:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAYAAAAxrNxjAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsSAAALEgHS3X78AAAAZUlEQVQY043PMQrCYAxA4e8v0lFn9w5epZ5CnLIonqCTe8EpN+w1uoiE6uDbHiSPpNmQmQNeEXGu3srAHhNu6HGo3jKzwwVPHEt8qb7DjLtv6pIOD1zfBZvih/9v/PH1CXNEjNVX5P8cFOPYXZwAAAAASUVORK5CYII="},"wj/q":function(t,e){}});