| 1 |
- webpackJsonp([20],{"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=="},"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 o;"undefined"!=typeof self&&self,o=function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},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 o(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=o(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(i=0;i<t.length;i++){var r=t[i];null!=r[0]&&o[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),e.push(r))}},e}},function(t,e,n){function o(t){for(var e=0;e<t.length;e++){var n=t[e],o=d[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(a(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{var r=[];for(i=0;i<n.parts.length;i++)r.push(a(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:r}}}}function i(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function a(t){var e,n,o=document.querySelector("style["+m+'~="'+t.id+'"]');if(o){if(h)return p;o.parentNode.removeChild(o)}if(v){var a=f++;o=u||(u=i()),e=r.bind(null,o,a,!1),n=r.bind(null,o,a,!0)}else o=i(),e=function(t,e){var n=e.css,o=e.media,i=e.sourceMap;if(o&&t.setAttribute("media",o),g.ssrId&&t.setAttribute(m,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,o),n=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else n()}}function r(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}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 c=n(21),d={},l=s&&(document.head||document.getElementsByTagName("head")[0]),u=null,f=0,h=!1,p=function(){},g=null,m="data-vue-ssr-id",v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,i){h=n,g=i||{};var a=c(t,e);return o(a),function(e){for(var n=[],i=0;i<a.length;i++){var r=a[i];(s=d[r.id]).refs--,n.push(s)}e?o(a=c(t,e)):a=[];for(i=0;i<n.length;i++){var s;if(0===(s=n[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";var o=n(23),i=n.n(o),a=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=i()({},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,o){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 a.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 o=n(10),i=n(11);t.exports=function(t){return o(i(t))}},function(t,e,n){var o=n(40);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(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,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){"use strict";var o=n(52),i=n.n(o),a=n(53),r=(n.n(a),function t(e,n,o){i()(this,t),s.call(this),this.marker=this._makeMarker(e,n,o)}),s=function(){var t=this;this._makeMarker=function(t,e,n){return new a.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(a.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 o={bottom:1,out_bottom:2};e.defaultPositions=o;var i={options:{deviceType:"both",blurOtherDots:!1,blurOtherDotsShowTags:!1,editable:!0,showTags:!0,supportDelKey:!1,tagLocation:o.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=i,e.imageOpTag="g-image-op-name",e.imageOpContent="g-image-op-content",e.PREFIX_RESIZE_DOT="resize-dot";var a=["".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=a;e.UUID=function(t,e){var n,o,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),a=[];if(e=e||i.length,t)for(n=0;n<t;n++)a[n]=i[0|Math.random()*e];else for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",n=0;n<36;n++)a[n]||(o=0|16*Math.random(),a[n]=i[19===n?3&o|8:o]);return a.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 o in t)o.startsWith("x")?t[o]=r(t[o],e):t[o]=r(t[o],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 o=t[n];o.position=s(o.position,e)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"install",function(){return r});var o=n(17),i=n(13);n.d(e,"AIMarker",function(){return o.a}),n.d(e,"PictureMarker",function(){return i.a});var a=[o.a],r=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1],a.forEach(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&r(window.Vue)},function(t,e,n){"use strict";var o=n(18);o.a.install=function(t){return t.component(o.a.name,o.a)},e.a=o.a},function(t,e,n){"use strict";var o=n(7),i=n(59),a=function(t){n(19)},r=n(22)(o.a,i.a,!1,a,"data-v-58d7da78",null);e.a=r.exports},function(t,e,n){var o=n(20);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals),n(6)("b03e0dc2",o,!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=[],o={},i=0;i<e.length;i++){var a=e[i],r=a[0],s={id:t+":"+i,css:a[1],media:a[2],sourceMap:a[3]};o[r]?o[r].parts.push(s):n.push(o[r]={id:r,parts:[s]})}return n}},function(t,e){t.exports=function(t,e,n,o,i,a){var r,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(r=t,s=t.default);var d,l="function"==typeof s?s.options:s;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i),a?(d=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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=d):o&&(d=o),d){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=d,l.render=function(t,e){return d.call(e),f(t,e)}):l.beforeCreate=f?[].concat(f,d):[d]}return{esModule:r,exports:s,options:l}}},function(t,e,n){"use strict";e.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{default:t}}(n(24));e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}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 o=n(27);o(o.S+o.F,"Object",{assign:n(37)})},function(t,e,n){var o=n(1),i=n(2),a=n(28),r=n(30),s=n(8),c=function(t,e,n){var d,l,u,f=t&c.F,h=t&c.G,p=t&c.S,g=t&c.P,m=t&c.B,v=t&c.W,y=h?i:i[e]||(i[e]={}),b=y.prototype,w=h?o:p?o[e]:(o[e]||{}).prototype;for(d in h&&(n=e),n)(l=!f&&w&&void 0!==w[d])&&s(y,d)||(u=l?w[d]:n[d],y[d]=h&&"function"!=typeof w[d]?n[d]:m&&l?a(u,o):v&&w[d]==u?function(t){var e=function(e,n,o){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,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):g&&"function"==typeof u?a(Function.call,u):u,g&&((y.virtual||(y.virtual={}))[d]=u,t&c.R&&b&&!b[d]&&r(b,d,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var o=n(29);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,i){return t.call(e,n,o,i)}}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 o=n(31),i=n(36);t.exports=n(0)?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(32),i=n(33),a=n(35),r=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)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 o=n(3);t.exports=function(t){if(!o(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 o=n(3),i=n(1).document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var o=n(3);t.exports=function(t,e){if(!o(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!o(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;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 o=n(0),i=n(38),a=n(49),r=n(50),s=n(51),c=n(10),d=Object.assign;t.exports=!d||n(4)(function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach(function(t){e[t]=t}),7!=d({},t)[n]||Object.keys(d({},e)).join("")!=o})?function(t,e){for(var n=s(t),d=arguments.length,l=1,u=a.f,f=r.f;d>l;)for(var h,p=c(arguments[l++]),g=u?i(p).concat(u(p)):i(p),m=g.length,v=0;m>v;)h=g[v++],o&&!f.call(p,h)||(n[h]=p[h]);return n}:d},function(t,e,n){var o=n(39),i=n(48);t.exports=Object.keys||function(t){return o(t,i)}},function(t,e,n){var o=n(8),i=n(9),a=n(41)(!1),r=n(44)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,d=[];for(n in s)n!=r&&o(s,n)&&d.push(n);for(;e.length>c;)o(s,n=e[c++])&&(~a(d,n)||d.push(n));return d}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var o=n(9),i=n(42),a=n(43);t.exports=function(t){return function(e,n,r){var s,c=o(e),d=i(c.length),l=a(r,d);if(t&&n!=n){for(;d>l;)if((s=c[l++])!=s)return!0}else for(;d>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var o=n(12),i=Math.min;t.exports=function(t){return t>0?i(o(t),9007199254740991):0}},function(t,e,n){var o=n(12),i=Math.max,a=Math.min;t.exports=function(t,e){return(t=o(t))<0?i(t+e,0):a(t,e)}},function(t,e,n){var o=n(45)("keys"),i=n(47);t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var o=n(2),i=n(1),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(46)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).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 o=n(11);t.exports=function(t){return Object(o(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 o(t){"@babel/helpers - typeof";return(o="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 i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(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 c.default}}),e.BdAIMarker=void 0,n(14);var s=n(15),c=function(t){return t&&t.__esModule?t:{default:t}}(n(55));e.BdAIMarker=function t(e,n,i){var d=this,l=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){d.eventTargetOnTransform=t}),r(this,"setConfigOptions",function(t){d.options=a(a({},d.options),t.options),d.resizeAnnotation&&d.resizeAnnotation.setConfigOptions(t)}),r(this,"_compatibalBoundRect",function(){var t=d.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 o=t.type,i=d._compatibalBoundRect();if(e&&(d.moveX=e-i.x),n&&(d.moveY=n-i.y),o===s.MOUSE_EVENT[6])return d.eventTargetOnTransform=!1,d.actionDown=!1,void d.resizeAnnotation.dragEventOn(t);if(d.eventTargetOnTransform)d.resizeAnnotation.dragEventOn(t);else if(o===s.MOUSE_EVENT[0]||o===s.TOUCH_EVENT[0]){if(t.target.classList.contains(d.options.annotationClass)||t.target.classList.contains("".concat(s.PREFIX_RESIZE_DOT)))return d.eventTargetOnTransform=!0,void d.resizeAnnotation.dragEventOn(t);if(d.actionDown)return void d.dragTo(d.moveX,d.moveY);d.resizeAnnotation.removeSelectedAnnotation(),d.actionDown=!0,d.anchorX=d.moveX,d.anchorY=d.moveY,d.resetDraft(),d.anchorAt(d.anchorX,d.anchorY)}else o===s.MOUSE_EVENT[1]||o===s.TOUCH_EVENT[1]?d.actionDown&&d.dragTo(d.moveX,d.moveY):o===s.MOUSE_EVENT[4]||o===s.TOUCH_EVENT[2]||o===s.TOUCH_EVENT[4]?(d.actionDown&&d.resizeAnnotation&&(d.resizeAnnotation.drawAnnotation(d.draftRect),d.resetDraft()),d.actionDown=!1):d.actionDown&&d.filterOutOfBounds(d.moveX,d.moveY)&&(d.resizeAnnotation&&(d.resizeAnnotation.drawAnnotation(d.draftRect),d.resetDraft()),d.actionDown=!1)}),r(this,"anchorAt",function(t,e){if(d.options.editable){var n=d._compatibalBoundRect();d.draft.style.display="",d.moveX<t?(d.draft.style.right=100*Math.abs(n.width-t)/n.width+"%",d.draft.style.left="",d.draftRect=Object.assign(d.draftRect,{x:(100*Math.abs(d.moveX)/n.width).toFixed(3)+"%"})):(d.draft.style.left=(100*Math.abs(t)/n.width).toFixed(3)+"%",d.draft.style.right="",d.draftRect=Object.assign(d.draftRect,{x:(100*Math.abs(t)/n.width).toFixed(3)+"%"})),d.moveY<e?(d.draft.style.bottom=(100*Math.abs(n.height-e)/n.height).toFixed(3)+"%",d.draft.style.top="",d.draftRect=Object.assign(d.draftRect,{y:(100*Math.abs(d.moveY)/n.height).toFixed(3)+"%"})):(d.draft.style.top=(100*Math.abs(e)/n.height).toFixed(3)+"%",d.draft.style.bottom="",d.draftRect=Object.assign(d.draftRect,{y:(100*Math.abs(e)/n.height).toFixed(3)+"%"}))}}),r(this,"filterOutOfBounds",function(t,e){return t>=d._compatibalBoundRect().width||e>=d._compatibalBoundRect().height||t<1||e<1}),r(this,"resetDraft",function(){d.draftRect={x:-1,y:-1,width:0,height:0},d.draft.style.width="0%",d.draft.style.height="0%"}),r(this,"clearAll",function(){d.layer.querySelectorAll(".".concat(d.options.annotationClass)).forEach(function(t){t.remove()}),d.renderData(void 0)}),r(this,"dragTo",function(t,e){if(d.options.editable){d.filterOutOfBounds(t,e)&&(d.actionDown=!1),d.anchorAt(d.anchorX,d.anchorY);var n=(100*Math.abs(t-d.anchorX)/d._compatibalBoundRect().width).toFixed(3),o=(100*Math.abs(e-d.anchorY)/d._compatibalBoundRect().height).toFixed(3);d.draftRect=Object.assign(d.draftRect,{width:n+"%",height:o+"%"}),d.draft.style.width=d.draftRect.width,d.draft.style.height=d.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=d.resizeAnnotation;n&&n.renderData(t,e)}),r(this,"setTag",function(t){d.resizeAnnotation&&t&&d.resizeAnnotation.setTagForCurrentMovement(t)}),r(this,"selectMarkerByTagId",function(t){t&&d.resizeAnnotation.selectMarkerByTagId(t)}),r(this,"dataSource",function(){if(d.resizeAnnotation)return d.resizeAnnotation.dataSource()}),r(this,"dataForTag",function(t,e){return d.resizeAnnotation.dataSourceOfTag(t,e)}),"object"!==o(l))throw new Error("Please provide a callback Config for BdAIMarker");if(this.options=a(a({},s.defaultConfig.options),l.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=i||new c.default(n.parentNode,this._compatibalBoundRect,l,this.$callback_handler);var u=this;"both"!=this.options.deviceType&&"mouse"!=this.options.deviceType||s.MOUSE_EVENT.forEach(function(t,n,o){e.addEventListener(t,function(t){if("touch"!=d.options.deviceType){var e=t.clientX,n=t.clientY;u.mouseEventHandler(t,e,n)}},!0)}),"both"!=this.options.deviceType&&"touch"!=this.options.deviceType||s.TOUCH_EVENT.forEach(function(t,n,o){e.addEventListener(t,function(t){if("mouse"!=d.options.deviceType&&t.targetTouches){var e=t.targetTouches[0],n=e?e.clientX:void 0,o=e?e.clientY:void 0;u.mouseEventHandler(t,n,o)}},!0)})}}},function(t,e,n){"use strict";function o(t){"@babel/helpers - typeof";return(o="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 i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(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),c=function(t){return t&&t.__esModule?t:{default:t}}(n(56));e.default=function t(e,n){var i=this,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.defaultConfig,l=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(){i.options.supportDelKey?document.addEventListener("keydown",i.delEvent):document.removeEventListener("keydown",i.delEvent)}),r(this,"_uiconstruct",function(){if(i.annotationContainer)for(var t=i.annotationContainer.querySelectorAll(".".concat(s.imageOpContent)),e=0;e<t.length;e++){var n=t[e];i.options.showTags?n.style.visibility="visible":n.style.visibility="collapse",i.options.tagLocation==s.defaultPositions.out_bottom?(n.style.position="absolute",n.style.bottom=null):n.style.position=null}i.currentMovement&&!i.options.editable&&i.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){i.options=a(a({},i.options),t.options),i.rawConfig=a(a({},i.rawConfig),t),i._event(),i._uiconstruct()}),r(this,"dataTemplate",function(t,e,n,o,i){return t&&/^.+$/gi.test(t)||(t={tag:"temp@".concat((new Date).getTime())}),a(a({},t),{},{position:{x:e,y:n,x1:o,y1:i}})}),r(this,"reset",function(){i.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:i.boundRect().width,height:i.boundRect().height};t instanceof Array&&t.length>0?t.forEach(function(t,n,o){var a;a=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)+"%"},i.drawAnnotation(a,t)}):i.reset(),i.rawConfig.onAnnoDataFullLoaded()}),r(this,"dataSource",function(){return i.data}),r(this,"dataSourceOfTag",function(t,e){for(var n=0;n<i.data.length;n++){var o=i.data[n];if(o.tag===t&&o.uuid==e)return o}}),r(this,"setTagForCurrentMovement",function(t){if(i.currentMovement){var e=i.currentMovement.moveNode,n="",r="";"string"==typeof t&&(r=n=t);var c=e.querySelector(".".concat(s.imageOpTag)).dataset.id,d={};if("object"===o(t))for(var l in n=t.tagName,r=t.tag,d=a({},t),t)e.querySelector(".".concat(s.imageOpTag)).dataset[l]=t[l];var u=e.dataset.uuid;e.querySelector(".".concat(s.imageOpTag)).innerText=n;for(var f=0;f<i.data.length;f++){var h=i.data[f],p=Object.assign({},h);h.tag===c&&h.uuid===u&&(h=a(a(a({},h),d),{},{tag:r,tagName:n}),e.querySelector(".".concat(s.imageOpTag)).dataset.id=r,e.querySelector(".".concat(s.imageOpTag)).dataset.name=n,i.rawConfig.onAnnoChanged(h,p)),i.data[f]=h}i.rawConfig.onUpdated(i.dataSource())}}),r(this,"updateMovementData",function(){if(null!=i.currentMovement){for(var t=i.currentMovement.moveNode,e=t.dataset.uuid,n=t.querySelector(".".concat(s.imageOpTag)).dataset.id,o={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)+"%"},a=!1,r=0;r<i.data.length;r++){var c=i.data[r],d=Object.assign({},c);if(c.tag===n&&c.uuid===e){JSON.stringify(c.position)!=JSON.stringify(o)&&(c.position=o,i.data[r]=c,a=!0,i.rawConfig.onAnnoChanged(c,d));break}}a&&i.rawConfig.onUpdated(i.dataSource(),i.currentMovement)}}),r(this,"_removeAnnotationEvent",function(t){if(i.options.editable){var e=t.currentTarget.parentNode.parentNode.parentNode;i.removeAnnotation(e)}}),r(this,"removeAnnotation",function(t){if(t){for(var e,n=t.dataset.uuid,o=0;o<i.data.length;o++)if((e=i.data[o]).uuid===n){i.rawConfig.onAnnoRemoved(e)&&i.data.splice(o,1);break}i.rawConfig.onUpdated(i.dataSource()),t.remove()}}),r(this,"drawAnnotation",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(i.isValid(t)){i.removeSelectedAnnotation();var n=document.createElement("div");n.className="".concat(i.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"},d="".concat((0,s.UUID)(16,16));n.dataset.uuid=d;var l,u,f=0;for(var h in"object"===o(e)?(l=e.tagName,u=e.tag):"string"==typeof e?(l=e,u=e):(l="请选择或添加新标签",e={tag:u="temp@".concat(d),tagName:l}),r){var p=document.createElement("div");if(8===f){p.className="".concat(i.options.blurOtherDotsShowTags?"":"".concat(s.dotCls[f])," ").concat(r[h]);var g=document.createElement("div");g.className=s.imageOpContent,i.options.showTags?g.style.visibility="visible":g.style.visibility="collapse",i.options.tagLocation==s.defaultPositions.out_bottom?(g.style.position="absolute",g.style.bottom=null):g.style.position=null;var m=document.createElement("i");m.className="g-image-op-del iconfont s-icon icon-trash s-icon-trash",m.innerText=" × ",m.addEventListener("click",i._removeAnnotationEvent,!0);var v=document.createElement("span");v.dataset.name=l,v.className="".concat(s.imageOpTag),v.innerText=l,v.dataset.id=u,i.options.trashPositionStart?(g.appendChild(m),g.appendChild(v)):(g.appendChild(v),g.appendChild(m)),p.appendChild(g)}else p.className="".concat(r[h]," ").concat(s.dotCls[f]," ").concat(i.options.editable?"":"hidden");n.appendChild(p),f++}i.annotationContainer.appendChild(n),n.oncontextmenu=function(t){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var e=t.currentTarget,n=e.querySelector(".".concat(s.imageOpTag)).dataset,o=i.dataSourceOfTag(n.id,e.dataset.uuid);return i.rawConfig.onAnnoContextMenu(o,t.target,i),!0},i.currentMovement=new c.default(n,0,i.boundRect(),i.options);var y=a(a({},i.dataTemplate(e,t.x,t.y,parseFloat(t.x)+parseFloat(t.width)+"%",parseFloat(t.y)+parseFloat(t.height)+"%")),{},{uuid:d});i.data.push(y),i.rawConfig.onAnnoAdded(y,n),i.rawConfig.onUpdated(i.dataSource())}}),r(this,"dragEventOn",function(t){var e=t.type;if(e!==s.MOUSE_EVENT[6]){var n=t.clientX,o=t.clientY;if(t.targetTouches&&t.targetTouches.length>0){var a=t.targetTouches[0];n=a?a.clientX:void 0,o=a?a.clientY:void 0}if(i.moveX=n,i.moveY=o,e===s.MOUSE_EVENT[0]||e===s.TOUCH_EVENT[0])i.actionDown=!0,i.lastX=i.moveX,i.lastY=i.moveY,"function"==typeof i.callback_handler&&i.callback_handler(!0),i.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==i.currentMovement)return!0;if(i.actionDown){if(i.filterOutOfBounds(i.moveX,i.moveY))return;i.currentMovement.transform(i.moveX-i.lastX,i.moveY-i.lastY),i.lastX=i.moveX,i.lastY=i.moveY}}else"function"==typeof i.callback_handler&&i.callback_handler(!1),i.actionDown&&(i.updateMovementData(),i.selectAnnotation()),i.actionDown=!1}else i.selectAnnotation()}),r(this,"removeSelectedAnnotation",function(){i.currentMovement&&(i.currentMovement.moveNode.classList.remove("selected"),i.options.blurOtherDots&&i.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(i.currentMovement){if(i.currentMovement.moveNode.classList.add("selected"),i.options.blurOtherDots){if(!i.options.editable)return void i.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")});i.currentMovement.moveNode.querySelectorAll("[class*=".concat(s.PREFIX_RESIZE_DOT,"]")).forEach(function(t){t.classList.remove("hidden")})}if(!t)return;var e=i.currentMovement.moveNode,n=(e.querySelector(".".concat(s.imageOpTag)).innerText,e.querySelector(".".concat(s.imageOpTag)).dataset),o=a(a({},n),i.dataSourceOfTag(n.id,e.dataset.uuid));i.rawConfig.onAnnoSelected(o,e)}}),r(this,"selectMarkerByTagId",function(t){var e=i.annotationContainer.querySelector('[data-id="'.concat(t,'"]'));if(e){var n=e.parentNode.parentNode.parentNode;i.removeSelectedAnnotation(),i.currentMovement=new c.default(n,-1,i.boundRect(),i.options),i.selectAnnotation(!1)}}),r(this,"targetEventType",function(t){i.removeSelectedAnnotation();var e=t.target,n=e.classList.contains("annotation")?e:e.parentNode;e.classList.contains(s.dotCls[0])?i.currentMovement=new c.default(n,0,i.boundRect(),i.options):e.classList.contains(s.dotCls[1])?i.currentMovement=new c.default(n,1,i.boundRect(),i.options):e.classList.contains(s.dotCls[2])?i.currentMovement=new c.default(n,2,i.boundRect(),i.options):e.classList.contains(s.dotCls[3])?i.currentMovement=new c.default(n,3,i.boundRect(),i.options):e.classList.contains(s.dotCls[4])?i.currentMovement=new c.default(n,4,i.boundRect(),i.options):e.classList.contains(s.dotCls[5])?i.currentMovement=new c.default(n,5,i.boundRect(),i.options):e.classList.contains(s.dotCls[6])?i.currentMovement=new c.default(n,6,i.boundRect(),i.options):e.classList.contains(s.dotCls[7])?i.currentMovement=new c.default(n,7,i.boundRect(),i.options):e.classList.contains("annotation")?i.currentMovement=new c.default(n,-1,i.boundRect(),i.options):i.currentMovement=null}),r(this,"filterOutOfBounds",function(t,e){return t>=i.boundRect().x+i.boundRect().width+2||e>=i.boundRect().y+i.boundRect().height+2||t<5||e<5}),this.options=a({},s.defaultConfig.options),this.rawConfig=a({},s.defaultConfig),this.callback_handler=l,this.annotationContainer=e,this.boundRect=n,this.actionDown=!1,this.currentMovement=null,this.data=[];var u=this;this.delEvent=function(t){if(8===t.keyCode||46===t.keyCode){var e=u.currentMovement;e&&u.removeAnnotation(e.moveNode)}},this.setConfigOptions(d)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function t(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2?arguments[2]:void 0,a=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 o=n.moveNode,i=parseFloat(o.style.height),a=parseFloat(o.style.width),r=parseFloat(o.style.top),s=parseFloat(o.style.left),c=100*e/n.boundRect.height,d=100*t/n.boundRect.width;if(!(r+c<n.options.boundReachPercent||r+c>100-n.options.boundReachPercent))if(0===n.type){if(i-c<n.options.boundReachPercent)return;o.style.top=(r+c).toFixed(3)+"%",o.style.height=(i-c).toFixed(3)+"%"}else if(1===n.type)o.style.height=(i+c).toFixed(3)+"%";else if(2===n.type){if(d+s<n.options.boundReachPercent||d+s>=a+s)return;o.style.left=(d+s).toFixed(3)+"%",o.style.width=(a-d).toFixed(3)+"%"}else if(3===n.type)o.style.width=(a+d).toFixed(3)+"%";else if(4===n.type){if(i-c<n.options.boundReachPercent)return;if(a-d<n.options.boundReachPercent)return;o.style.top=(r+c).toFixed(3)+"%",o.style.height=(i-c).toFixed(3)+"%",o.style.left=(d+s).toFixed(3)+"%",o.style.width=(a-d).toFixed(3)+"%"}else if(5===n.type){if(a+d<n.options.boundReachPercent)return;if(i-c<n.options.boundReachPercent)return;o.style.top=(r+c).toFixed(3)+"%",o.style.height=(i-c).toFixed(3)+"%",o.style.width=(a+d).toFixed(3)+"%"}else if(6===n.type){if(i+c<n.options.boundReachPercent)return;if(a-d<n.options.boundReachPercent)return;o.style.height=(i+c).toFixed(3)+"%",o.style.left=(d+s).toFixed(3)+"%",o.style.width=(a-d).toFixed(3)+"%"}else if(7===n.type){if(i+c<n.options.boundReachPercent)return;if(a+d<n.options.boundReachPercent)return;o.style.height=(i+c).toFixed(3)+"%",o.style.width=(a+d).toFixed(3)+"%"}else if(-1===n.type){if(c+r<n.options.boundReachPercent||c+r+i>100-n.options.boundReachPercent)return;if(d+s<n.options.boundReachPercent||d+s+a>100-n.options.boundReachPercent)return;o.style.top=(c+r).toFixed(3)+"%",o.style.left=(d+s).toFixed(3)+"%"}}}),this.moveNode=e,this.type=o,this.boundRect=i,this.options=a}},function(t,e,n){var o=n(58);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals),n(6)("1cca3750",o,!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 o={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=o}])},t.exports=o()},gRH8:function(t,e){},qlFu:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("3cXf"),i=n.n(o),a=n("yf3K"),r=n("IQB2"),s=n("oiq+"),c=n.n(s);n("4ZJk");a.default.use(c.a),c.a.setDefaults({inline:!1,button:!0,navbar:!0,title:!0,toolbar:!1,tooltip:!0,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,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){},viewed:function(t){var e=document.getElementById("iconDom");if(-1!==i()(e).indexOf("icon2")){var n='<div class="griddingLine" v-show="iconShow"><img src="../../../../static/images/gridding.png" alt="" class="" style="'+(t.path[0].ownerDocument.images[20].outerHTML.split('style="')[1].split('">')[0].replace("margin-top","top").replace("margin-left","left")+"z-index:10000;")+'" /></div>';document.getElementById("reseau").innerHTML=n}},zoom:function(t){var e=document.getElementById("iconDom"),n=i()(e).indexOf("icon2");if(console.log(n),-1!==n){var o='<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=o}},zoomed:function(t){var e=document.getElementById("iconDom"),n=i()(e).indexOf("icon2");if(console.log(n),-1!==n){var o='<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=o}}});var d={components:{"ui-marker":r.AIMarker},data:function(){return{id:this.$store.state.cbd_photo_id,d_id:this.$store.state.cbd_photo_did,data:[{label:"一级 1",children:[{label:"二级 1-1",children:[{label:"三级 1-1-1"}]}]},{label:"一级 2",children:[{label:"二级 2-1",children:[{label:"三级 2-1-1"}]},{label:"二级 2-2",children:[{label:"三级 2-2-1"}]}]},{label:"一级 3",children:[{label:"二级 3-1",children:[{label:"三级 3-1-1"}]},{label:"二级 3-2",children:[{label:"三级 3-2-1"}]}]}],defaultProps:{children:"children",label:"label",isLeaf:"leaf"},radio1:"",totalNum:30,page:1,begin:"",end:"",recognitionImage:[],imgList:[],imgDataList:[],delBtnState:!0,downBtnState:!0,discernState:0,iconIf:!0,iconShow:!1,discernShow:!1,againData:{},recognitionData:[],imgTagDataVisible:!1,uuid:"0da9130",readOnly:!1,currentImage:"",setdataNum:{},tagName2:"",tagName:"",describe:!0,worminfo:{},regexptitle:[],preventionArr:[],wormloading:!1,wormTF:!1,wormname:""}},computed:{tagName:{get:function(){return this.tagName2},set:function(t){this.tagName2=t.replace(/[\w]/g,"")}}},watch:{},methods:{errImg:function(t){t.target.src=$imghost+"/images/expertDiagnosis/ku/noData.jpg"},handleNodeClick:function(t){console.log(t),console.log(t.year),console.log(t.month),console.log(t.day),t.year&&t.month&&t.day?(this.begin=new Date(t.year+"-"+t.month+"-"+t.day).getTime()/1e3,this.end=new Date(t.year+"-"+t.month+"-"+(t.day+1)).getTime()/1e3):t.year&&t.month?(this.begin=new Date(t.year+"-"+t.month+"-1").getTime()/1e3,this.end=new Date(t.year+"-"+(t.month+1)+"-1").getTime()/1e3):t.year&&(this.begin=new Date(t.year+"-1-1").getTime()/1e3,this.end=new Date(t.year+1+"-1-1").getTime()/1e3),this.imgListData()},renderIconContent:function(t,e){return t.data.leaf?"el-icon-document document":t.expanded?"el-icon-folder-opened":"el-icon-folder"},loadNode:function(t,e){console.log(t),console.log(t.data),console.log(t.data.year);var n=new Date,o=n.getFullYear(),i=n.getMonth()+1,a=[{label:parseInt(o)+"年",year:parseInt(o),icon:"el-icon-document"},{label:parseInt(o)-1+"年",year:parseInt(o)-1,icon:"el-icon-document"},{label:parseInt(o)-2+"年",year:parseInt(o)-2,icon:"el-icon-document"},{label:parseInt(o)-3+"年",year:parseInt(o)-3,icon:"el-icon-document"}];if(0===t.level)return e(a);if(t.level>2)return e([]);if(1===t.level){var r=[];if(t.data.year!=o)var s=12;else s=i;for(var c=1;c<=s;c++)r.push({label:c+"月",year:t.data.year,month:c});return e(r)}if(2===t.level){var d=[],l=new Date(t.data.year,t.data.month,0).getDate();for(c=1;c<=l;c++)d.push({label:c+"日",year:t.data.year,month:t.data.month,day:c,leaf:!0});return e(d)}},equipStatusCheck:function(t){var e=this;this.active=t,0==t&&this.equipBtnControl("takephoto"),1==t&&this.imgListData(),2==t&&(this.delBtnState=!1,this.downBtnState=!0),3==t&&(this.idList=this.imgDataList.filter(function(t){return 1==t.checked}).map(function(t){return t.id}),0==this.idList.length?this.$message.warning("请选择要删除的图片!"):this.delImgFun(this.idList)),4==t&&(this.imgDataList.map(function(t){t.checked=!1}),this.delBtnState=!0),5==t&&this.delImgFun(""),6==t&&this.$router.push("/index/messageWarn/"+this.id),7==t&&(this.delBtnState=!0,this.downBtnState=!1),8==t&&(this.idList=this.imgDataList.filter(function(t){return 1==t.checked}).map(function(t){return t.id}),0==this.idList.length?this.$message.warning("请选择要下载的图片!"):this.downPhoto(this.idList)),9==t&&(this.imgDataList.map(function(t){t.checked=!1}),this.downBtnState=!this.downBtnState),10==t&&("开启识别"==this.btnOperation?this.$confirm("确认开启识别状态?").then(function(t){e.operationDiscern("enable")}).catch(function(t){}):"禁止识别"==this.btnOperation&&this.$confirm("确认关闭识别状态?").then(function(t){e.operationDiscern("disable")}).catch(function(t){}))},equipBtnControl:function(t){var e=this;this.$axios({method:"POST",url:"/api/api_gateway?method=forecast.send_control.admin_device_control",data:this.qs.stringify({cmd:t,device_type_id:3,d_id:this.d_id})}).then(function(t){""==t.data.message&&e.$message.success("指令下发成功!")})},radio1ChangeFun:function(){this.page=1,this.imgListData()},imgListData:function(){var t=this,e=this,n=e.qs.stringify({device_id:e.id,page_number:8,page:e.page,ret:"list",rets:e.radio1,time_begin:e.begin,time_end:e.end});e.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo",data:n}).then(function(n){var o=n.data.data.num;e.totalNum=o,t.discernState=n.data.data.disable,e.recognitionImage=[],e.imgList=[];for(var i=n.data.data.data,a=0;a<i.length;a++)e.recognitionImage.push(i[a].addr),e.imgList.push(i[a].addr);if(0==o)e.imgDataList=[];else if(0!==o){var r=n.data.data.data;e.imgDataList=r.map(function(t){return t.checked=!1,t})}}).catch(function(t){console.log(t)})},changePage:function(t){this.page=t,this.imgListData()},delImgFun:function(t){var e=this;this.$confirm("此操作将永久删除该设备图片, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$axios({method:"POST",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_del",data:e.qs.stringify({device_id:e.id,addrlist:i()(t)})}).then(function(t){""==t.data.message&&(e.$message({type:"success",message:"删除成功!"}),e.imgListData())})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})},downloadFile:function(t){var e=new Blob([t],{type:"application/zip"}),n=window.URL.createObjectURL(e),o=document.createElement("a");o.href=n,o.download="下载图片",o.click(),URL.revokeObjectURL(n)},downPhoto:function(t){var e=this,n=(this.$store.state.user_id,i()(t));this.$axios({method:"post",url:"/api/download",responseType:"blob",data:this.qs.stringify({id_list:n,device_id:this.id})}).then(function(t){""==t.data.message&&(e.$message.success("图片下载中!"),e.downloadFile(t.data))})},inited:function(t){this.$viewer=t},amplificationA:function(t){this.iconIf=!0,this.$viewer.view(t)},openGridding:function(){var t,e=[];e=this.$viewer.element.ownerDocument.images;for(var n=0;n<e.length;n++){var o=e[n].outerHTML.indexOf('style="'),i=e[n].outerHTML.indexOf("margin-top:");-1!==o&&-1!==i&&(t=e[n].outerHTML)}var a=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;'+a+'" /><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},discernFunData:function(t){var e=this,n=this;n.againData=t;var o=n.qs.stringify({img_id:t.id,ret:"see"});n.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_discern",data:o}).then(function(t){n.loading=!1,""==t.data.message?(n.recognitionData=t.data.data.result,e.recognitionImage=[],n.recognitionImage.push(t.data.data.image),e.discernShow=!0):(e.$message({showClose:!0,message:t.data.message,type:"warning",offset:100}),e.discernShow=!1)}).catch(function(t){console.log(t)})},closeDiscerRes:function(){this.recognitionImage=this.imgList,this.discernShow=!1,this.describe=!0},imgTagClosed:function(){this.tagName="",this.setdataNum={},this.$refs["aiPanel-editor"].getMarker().clearData()},onAnnoSelected:function(t,e){},onAnnoAdded:function(){},onUpdated:function(t){this.saveTag()},onReady:function(){},onImageLoad:function(t){},setTag:function(){this.$refs["aiPanel-editor"].getMarker().setTag({tagName:this.tagName,tag:"0x0001"}),this.saveTag()},imgTagSubm:function(){var t=this;this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.cbdphoto_receive",data:this.qs.stringify({img_id:this.tagImgId,mark:i()(this.setdata)})}).then(function(e){e.data.data?t.$message.success("提交成功!"):t.$message.warning(e.data.message),t.imgTagDataVisible=!1,t.discernShow=!1,t.imgListData()})},imgTag:function(t){var e=this;if("result"==t)t=this.againData;this.$axios({method:"post",url:"/api/api_gateway?method=forecast.forecast_system.equip_photo_discern",data:this.qs.stringify({img_id:t.id,ret:"see"})}).then(function(n){""==n.data.message?(e.currentImage=n.data.data.image,e.tagImgId=t.id,console.log(t),console.log(t.mark),e.imgTagDataVisible=!0,e.$nextTick(function(){e.renderData(JSON.parse(t.mark))})):e.$message.warning(n.data.message)})},renderData:function(t){var e=this;console.log(t),this.$nextTick(function(){e.$refs["aiPanel-editor"].getMarker().renderData(t)})},saveTag:function(){var t=this.$refs["aiPanel-editor"].getMarker().getData();this.setdata=t;for(var e={},n=0;n<t.length;n++){var o=t[n].tagName;e[o]=e[o]+1||1}this.setdataNum=e},getWromDiscern:function(t){this.describe=!1,console.log(t),this.wormname=t,this.psetsearch(t)},psetsearch:function(t){var e=this;this.wormloading=!0,this.$axios({method:"post",url:"/api/api_gateway?method=pest.pests.pests_search",data:this.qs.stringify({code:2,page:1,name:t})}).then(function(t){t.data.data.data?(e.pestsinfo(t.data.data.data[0].id),e.wormTF=!0):(e.wormloading=!1,e.wormTF=!1)})},pestsinfo:function(t){var e=this;this.$axios({method:"post",url:"/api/api_gateway?method=pest.pests.pests_info",data:this.qs.stringify({code:2,page:1,pest_id:t})}).then(function(t){e.wormloading=!1,console.log(t.data.data),e.worminfo=t.data.data;for(var n=e.worminfo.prevention,o=n.match(/\[(.+?)\]/g),i=[],a=0;a<o.length;a++)i.push(n.indexOf(o[a]));for(a=0;a<o.length;a++)e.preventionArr.push(n.slice(i[a]+o[a].length,i[a+1]));console.log(e.preventionArr);for(a=0;a<o.length;a++)o[a]=o[a].slice(1,o[a].length-1);e.regexptitle=o})}},created:function(){},mounted:function(){this.imgListData()},beforeCreate:function(){},beforeMount:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},l={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"innerMargin"},[o("el-card",{staticClass:"box-card"},[o("div",{staticClass:"cbdPhoto"},[o("div",{staticClass:"timeLIneLeft"},[o("div",{staticClass:"title"},[t._v("设备:"+t._s(t.id))]),t._v(" "),o("el-tree",{attrs:{data:t.data,accordion:"",props:t.defaultProps,load:t.loadNode,lazy:"","highlight-current":!0},on:{"node-click":t.handleNodeClick},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.node,i=e.data;return o("span",{staticClass:"custom-tree-node"},[o("span",[o("i",{class:[t.renderIconContent(n,i),"treeicon"]}),t._v(t._s(i.label)+"\n ")])])}}])})],1),t._v(" "),o("div",{staticClass:"photosRight"},[o("div",{staticClass:"typeBtns"},[o("div",[o("el-radio-group",{on:{change:function(e){return t.radio1ChangeFun()}},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[o("el-radio-button",{attrs:{label:""}},[t._v("时间顺序展示")]),t._v(" "),o("el-radio-button",{attrs:{label:"des_nums"}},[t._v("害虫数量展示")]),t._v(" "),o("el-radio-button",{attrs:{label:"desc_kind"}},[t._v("害虫种类展示")])],1)],1),t._v(" "),o("div",[o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("0")}}},[t._v("拍照")]),t._v(" "),o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("1")}}},[t._v("刷新")]),t._v(" "),t.delBtnState?o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("2")}}},[t._v("批量删除")]):t._e(),t._v(" "),t.delBtnState?t._e():o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("3")}}},[t._v("删除")]),t._v(" "),t.delBtnState?t._e():o("el-button",{attrs:{type:"grayInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("4")}}},[t._v("取消")]),t._v(" "),o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("5")}}},[t._v("一键删除")]),t._v(" "),t.downBtnState?o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("7")}}},[t._v("图片下载")]):t._e(),t._v(" "),t.downBtnState?t._e():o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("8")}}},[t._v("下载")]),t._v(" "),t.downBtnState?t._e():o("el-button",{attrs:{type:"grayInfo",size:"small"},on:{click:function(e){return t.equipStatusCheck("9")}}},[t._v("取消")])],1)]),t._v(" "),o("div",{staticClass:"phohos"},[o("el-row",{attrs:{gutter:20}},[t._l(t.imgDataList,function(e,n){return o("el-col",{key:e.id,attrs:{xs:12,sm:12,md:12,lg:8,xl:6}},[o("div",{staticClass:"grid-content bg-gray"},[o("div",{staticClass:"delBoxs"},[o("i",{directives:[{name:"show",rawName:"v-show",value:t.delBtnState&&t.downBtnState,expression:"delBtnState && downBtnState"}],staticClass:"iconfont icon-shanchu",on:{click:function(n){return t.delectImg(e.id)}}}),t._v(" "),o("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.delBtnState||!t.downBtnState,expression:"!delBtnState || !downBtnState"}],model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"item.checked"}})],1),t._v(" "),o("div",{staticClass:"imgBox"},["des_nums"==t.radio1||"desc_kind"==t.radio1?o("div",{staticClass:"uptime"},[t._v("\n "+t._s(t._f("formatTime")(1e3*e.addtime))+"\n ")]):t._e(),t._v(" "),o("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.addr,expression:"item.addr"}],attrs:{alt:""},on:{click:function(e){return t.amplificationA(n)},error:t.errImg}})]),t._v(" "),""==t.radio1?o("div",{staticClass:"photoTime"},[o("span",[t._v(t._s(t._f("formatTime")(1e3*e.addtime)))]),t._v(" "),t.discernState?o("span",{on:{click:function(n){return t.discernFunData(e)}}},[o("i",{staticClass:"el-icon-search"}),t._v("害虫识别\n ")]):o("span",{on:{click:function(n){return t.imgTag(e)}}},[o("i",{staticClass:"el-icon-edit"}),t._v("手动标注\n ")])]):t._e(),t._v(" "),"des_nums"==t.radio1?o("div",{staticClass:"photoTime"},[o("span",[t._v("害虫数量:"+t._s(e.des_nums)+"头")]),t._v(" "),o("span",{on:{click:function(n){return t.discernFunData(e)}}},[o("i",{staticClass:"el-icon-document"}),t._v("查看详情\n ")])]):t._e(),t._v(" "),"desc_kind"==t.radio1?o("div",{staticClass:"photoTime"},[o("span",[t._v("害虫种类:"+t._s(e.desc_kind)+"类")]),t._v(" "),o("span",{on:{click:function(n){return t.discernFunData(e)}}},[o("i",{staticClass:"el-icon-document"}),t._v("查看详情\n ")])]):t._e()])])}),t._v(" "),t.imgDataList.length?t._e():o("el-col",{attrs:{xs:12}},[o("div",{staticClass:"empty"},[t._v("暂无数据")])])],2),t._v(" "),t.imgDataList.length?o("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.totalNum,"current-page":t.page,"page-size":8},on:{"current-change":t.changePage}}):t._e()],1)])])]),t._v(" "),o("viewer",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"viewer",attrs:{images:t.recognitionImage,index:3},on:{inited:t.inited}},t._l(t.recognitionImage,function(t,e){return o("img",{key:e,attrs:{src:t}})}),0),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.iconShow,expression:"iconShow"}],staticClass:"griddingBox",attrs:{id:"iconBox"}},[t.iconIf?o("img",{staticClass:"icon1",attrs:{src:n("E/c3"),alt:"",id:"iconDom"},on:{click:function(e){return t.openGridding()}}}):o("img",{staticClass:"icon2",attrs:{src:n("8FPX"),alt:"",id:"iconDom"},on:{click:function(e){return t.offGridding()}}})]),t._v(" "),o("div",{attrs:{id:"reseau"}}),t._v(" "),o("el-dialog",{attrs:{title:"图片详情",visible:t.discernShow,width:"1000px",top:"180px"},on:{"update:visible":function(e){t.discernShow=e},close:t.imgTagClosed}},[o("div",{staticClass:"discernResult"},[o("div",{staticClass:"discernResultImg"},[o("div",{staticClass:"rectTitle"},[t._v("识别结果")]),t._v(" "),o("img",{attrs:{src:t.recognitionImage,alt:""},on:{click:function(e){return t.amplificationA(t.index)}}})]),t._v(" "),t.describe?o("div",{staticClass:"discernResultRight"},[o("div",{staticClass:"rectTitle discernResultBtn"},[o("span",[t._v("害虫识别")]),t._v(" "),o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){return t.imgTag("result")}}},[t._v("手动标注")])],1),t._v(" "),t._l(t.recognitionData,function(e,n){return o("div",{key:n,staticClass:"discernResults"},[o("div",{staticClass:"name"},[t._v("\n 名称\n "),o("span",{on:{click:function(n){return t.getWromDiscern(e.result_list)}}},[t._v(t._s(e.result_list)+"(序号:"+t._s(e.number)+")")])]),t._v(" "),o("div",{staticClass:"number"},[t._v("\n 个数:\n "),o("span",[t._v(t._s(e.nums))])])])})],2):o("div",{staticClass:"discernResultRight"},[o("div",{staticClass:"rectTitle discernResultBtn"},[o("span",[t._v("害虫识别")]),t._v(" "),o("el-button",{attrs:{type:"blueInfo",size:"small"},on:{click:function(e){t.describe=!0}}},[t._v("返回")])],1),t._v(" "),t.wormTF?o("div",{directives:[{name:"loading",rawName:"v-loading",value:t.wormloading,expression:"wormloading"}],staticClass:"worminfo_box"},[o("div",{staticClass:"worming"},[o("img",{attrs:{src:t.worminfo.img_urls,alt:""}})]),t._v(" "),o("div",{staticClass:"worminfo"},[o("span",{staticStyle:{color:"#fd7100","margin-right":"5px"}},[t._v("害虫名称:")]),t._v(" "),o("span",[t._v(t._s(t.wormname))])]),t._v(" "),t._l(t.regexptitle,function(e,n){return o("div",{key:n,staticClass:"worminfo"},[o("span",{staticStyle:{color:"#fd7100","margin-right":"5px"}},[t._v(t._s(e)+":")]),t._v(" "),o("span",[t._v(t._s(t.preventionArr[n]))])])})],2):o("div",{staticClass:"wormnone_box"},[t._v("\n 暂无\n "),o("span",{staticStyle:{color:"#fd7100"}},[t._v(t._s(t.wormname))]),t._v("\n 详情信息\n ")])])])]),t._v(" "),o("el-dialog",{attrs:{title:"手动标注",visible:t.imgTagDataVisible,width:"1000px"},on:{"update:visible":function(e){t.imgTagDataVisible=e},close:t.imgTagClosed}},[o("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}}),t._v(" "),o("div",{staticClass:"imgTagCon",staticStyle:{"margin-top":"20px"}},[o("div",[o("el-input",{staticStyle:{width:"217px"},attrs:{type:"text",size:"mini",placeholder:"请输入虫子名称"},model:{value:t.tagName,callback:function(e){t.tagName=e},expression:"tagName"}}),t._v(" "),o("el-button",{attrs:{type:"success",size:"mini"},on:{click:t.setTag}},[t._v("打标签")])],1)]),t._v(" "),Object.keys(t.setdataNum).length>0?o("table",[o("tr",[o("th",[t._v("害虫名字")]),t._v(" "),o("th",[t._v("害虫数量")])]),t._v(" "),t._l(t.setdataNum,function(e,n){return o("tr",{key:n},[o("td",[t._v(t._s(n))]),t._v(" "),o("td",[t._v(t._s(e))])])})],2):t._e(),t._v(" "),o("div",{staticClass:"btn-box"},[o("el-button",{attrs:{size:"mini"},on:{click:function(e){t.imgTagDataVisible=!1}}},[t._v("取消")]),t._v(" "),o("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.imgTagSubm}},[t._v("确定")])],1)],1)],1)},staticRenderFns:[]};var u=n("C7Lr")(d,l,!1,function(t){n("gRH8")},"data-v-160a866a",null);e.default=u.exports}});
|