import{$ as commonjsGlobal,_ as _export_sfc,r as ref,D as reactive,t as onMounted,C as onUpdated,d as resolveComponent,o as openBlock,c as createElementBlock,k as createBaseVNode,m as createTextVNode,x as toDisplayString,f as unref,e as createVNode,w as withCtx,l as createCommentVNode,G as withDirectives,H as vShow,p as pushScopeId,q as popScopeId}from"./index.42ab3fdc.js";import{L,c as getTreeData,d as getCameraName,e as getCameraNameS,i as iconShadow,b as getQuery,f as getSxtbf,_ as _imports_0,a as _imports_1}from"./VideoSurveillance.c0604781.js";import"./index.b8675889.js";import"./imouplayer.78f91836.js";import"./video.vue_vue_type_style_index_1_lang.b98caf21.js";import"./install.5b5161c6.js";var md5={exports:{}};/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.7.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT */(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(o){return new Md5(!0).update(o)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var o=0;o>2]|=e[s]<>6,f[i++]=128|t&63):t<55296||t>=57344?(f[i++]=224|t>>12,f[i++]=128|t>>6&63,f[i++]=128|t&63):(t=65536+((t&1023)<<10|e.charCodeAt(++s)&1023),f[i++]=240|t>>18,f[i++]=128|t>>12&63,f[i++]=128|t>>6&63,f[i++]=128|t&63);else for(i=this.start;s>2]|=t<>2]|=(192|t>>6)<>2]|=(128|t&63)<=57344?(n[i>>2]|=(224|t>>12)<>2]|=(128|t>>6&63)<>2]|=(128|t&63)<>2]|=(240|t>>18)<>2]|=(128|t>>12&63)<>2]|=(128|t>>6&63)<>2]|=(128|t&63)<=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,o=this.lastByteIndex;e[o>>2]|=EXTRA[o&3],o>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,o,r,t,s,i,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,t=(-1732584194^e&2004318071)+a[1]-117830708,t=(t<<12|t>>>20)+e<<0,r=(-271733879^t&(e^-271733879))+a[2]-1126478375,r=(r<<17|r>>>15)+t<<0,o=(e^r&(t^e))+a[3]-1316259209,o=(o<<22|o>>>10)+r<<0):(e=this.h0,o=this.h1,r=this.h2,t=this.h3,e+=(t^o&(r^t))+a[0]-680876936,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+a[1]-389564586,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+a[2]+606105819,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+a[3]-1044525330,o=(o<<22|o>>>10)+r<<0),e+=(t^o&(r^t))+a[4]-176418897,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+a[5]+1200080426,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+a[6]-1473231341,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+a[7]-45705983,o=(o<<22|o>>>10)+r<<0,e+=(t^o&(r^t))+a[8]+1770035416,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+a[9]-1958414417,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+a[10]-42063,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+a[11]-1990404162,o=(o<<22|o>>>10)+r<<0,e+=(t^o&(r^t))+a[12]+1804603682,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+a[13]-40341101,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+a[14]-1502002290,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+a[15]+1236535329,o=(o<<22|o>>>10)+r<<0,e+=(r^t&(o^r))+a[1]-165796510,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+a[6]-1069501632,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+a[11]+643717713,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+a[0]-373897302,o=(o<<20|o>>>12)+r<<0,e+=(r^t&(o^r))+a[5]-701558691,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+a[10]+38016083,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+a[15]-660478335,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+a[4]-405537848,o=(o<<20|o>>>12)+r<<0,e+=(r^t&(o^r))+a[9]+568446438,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+a[14]-1019803690,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+a[3]-187363961,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+a[8]+1163531501,o=(o<<20|o>>>12)+r<<0,e+=(r^t&(o^r))+a[13]-1444681467,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+a[2]-51403784,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+a[7]+1735328473,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+a[12]-1926607734,o=(o<<20|o>>>12)+r<<0,s=o^r,e+=(s^t)+a[5]-378558,e=(e<<4|e>>>28)+o<<0,t+=(s^e)+a[8]-2022574463,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+a[11]+1839030562,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+a[14]-35309556,o=(o<<23|o>>>9)+r<<0,s=o^r,e+=(s^t)+a[1]-1530992060,e=(e<<4|e>>>28)+o<<0,t+=(s^e)+a[4]+1272893353,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+a[7]-155497632,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+a[10]-1094730640,o=(o<<23|o>>>9)+r<<0,s=o^r,e+=(s^t)+a[13]+681279174,e=(e<<4|e>>>28)+o<<0,t+=(s^e)+a[0]-358537222,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+a[3]-722521979,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+a[6]+76029189,o=(o<<23|o>>>9)+r<<0,s=o^r,e+=(s^t)+a[9]-640364487,e=(e<<4|e>>>28)+o<<0,t+=(s^e)+a[12]-421815835,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+a[15]+530742520,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+a[2]-995338651,o=(o<<23|o>>>9)+r<<0,e+=(r^(o|~t))+a[0]-198630844,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+a[7]+1126891415,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+a[14]-1416354905,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+a[5]-57434055,o=(o<<21|o>>>11)+r<<0,e+=(r^(o|~t))+a[12]+1700485571,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+a[3]-1894986606,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+a[10]-1051523,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+a[1]-2054922799,o=(o<<21|o>>>11)+r<<0,e+=(r^(o|~t))+a[8]+1873313359,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+a[15]-30611744,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+a[6]-1560198380,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+a[13]+1309151649,o=(o<<21|o>>>11)+r<<0,e+=(r^(o|~t))+a[4]-145523070,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+a[11]-1120210379,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+a[2]+718787259,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+a[9]-343485551,o=(o<<21|o>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=o-271733879<<0,this.h2=r-1732584194<<0,this.h3=t+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+t<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,o=this.h1,r=this.h2,t=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,o=this.h1,r=this.h2,t=this.h3;return[e&255,e>>8&255,e>>16&255,e>>24&255,o&255,o>>8&255,o>>16&255,o>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,t&255,t>>8&255,t>>16&255,t>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),o=new Uint32Array(e);return o[0]=this.h0,o[1]=this.h1,o[2]=this.h2,o[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,o,r,t="",s=this.array(),i=0;i<15;)e=s[i++],o=s[i++],r=s[i++],t+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[(e<<4|o>>>4)&63]+BASE64_ENCODE_CHAR[(o<<2|r>>>6)&63]+BASE64_ENCODE_CHAR[r&63];return e=s[i],t+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",t};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5);const imouplayer_css_vue_type_style_index_0_src_true_lang="",index_vue_vue_type_style_index_1_scoped_a98e0f94_lang="",index_vue_vue_type_style_index_2_lang="",_withScopeId=e=>(pushScopeId("data-v-a98e0f94"),e=e(),popScopeId(),e),_hoisted_1={class:"fatherDiv"},_hoisted_2={class:"tabulation"},_hoisted_3={class:"tabulationCente"},_hoisted_4={class:"left"},_hoisted_5={style:{color:"rgba(100, 195, 164, 1)"}},_hoisted_6={class:"freckle"},_hoisted_7={class:"chartModeFather"},_hoisted_8={class:"tableBox"},_hoisted_9=["onClick"],_hoisted_10={class:"example-pagination-block"},_hoisted_11={class:"centent"},_hoisted_12={key:0},_hoisted_13=_withScopeId(()=>createBaseVNode("img",{style:{width:"300%"},src:_imports_0},null,-1)),_hoisted_14=[_hoisted_13],_hoisted_15={key:1},_hoisted_16=_withScopeId(()=>createBaseVNode("img",{style:{width:"300%"},src:_imports_1},null,-1)),_hoisted_17=[_hoisted_16],_hoisted_18={class:"cesiumContainersDiv"},_hoisted_19=_withScopeId(()=>createBaseVNode("div",{id:"cesiumContainers",class:"detailed"},null,-1)),_hoisted_20=[_hoisted_19],_hoisted_21=_withScopeId(()=>createBaseVNode("div",{id:"myVideo",style:{width:"100%",height:"100%"}},null,-1)),_sfc_main={__name:"index",setup(e){let o=L.Map,r=ref([]);ref({});let t=ref([]);ref("");let s=ref("\u5168\u90E8"),i=ref([]);const a=ref(!1);let n=ref({yearMonth:"",flag:"",divisions:""}),f=ref(!1),p=ref(1),x=ref(18),b=null;const m=ref({});let H=ref("");const N=reactive({videoSrc:"http://cmgw-vpc.lechange.com:8888/LCO/9C023C5FACFE48F/0/1/20230530T033445/a44e6e04b0608347f0209ab2b25aa258.m3u8"});onMounted(()=>{g(),B(),F(),w()}),onUpdated(()=>{window.document.querySelector(".mode")&&(document.querySelector(".mode").style.display="none"),window.document.querySelector("#screenfull")&&(window.document.querySelector("#screenfull").style.display="none")});const B=()=>{o=L.map("cesiumContainers",{center:[36.4,119.166326],zoom:7,zoomControl:!1,doubleClickZoom:!1,attributionControl:!1,maxZoom:16,crs:serverAPI.tiandituzhuji=="http://59.206.203.34/tileservice/SDRasterPubMapDJ?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdcia&STYLE=default&TILEMATRIXSET=sdcia&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?L.CRS.EPSG4326:L.CRS.EPSG3857});let l=null,c=null;serverAPI.tiandituzhuji=="http://59.206.203.34/tileservice/SDRasterPubMapDJ?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdcia&STYLE=default&TILEMATRIXSET=sdcia&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng"?(l=L.tileLayer(serverAPI.tiandituLayers,{maxZoom:20,tileSize:256,zoomOffset:1}),c=L.tileLayer(serverAPI.tiandituzhuji,{maxZoom:20,tileSize:256,zoomOffset:1})):(l=L.tileLayer(serverAPI.tiandituLayers,{}),c=L.tileLayer(serverAPI.tiandituzhuji,{})),l.addTo(o),c.addTo(o),L.Util.requestAnimFrame(o.invalidateSize,o,!1,o._container)},g=()=>{getTreeData({divisions:window.localStorage.getItem("deptName")}).then(l=>{l.data.forEach(c=>{t.value.push(c)})})},F=l=>{getCameraName({name:l}).then(c=>{c.data.forEach((d,h)=>{b=L.latLng(d.latitude,d.longitude),o.setView(b,17),L.marker([d.latitude,d.longitude],{icon:X}).addTo(o).bindPopup(`${d.cameraName}

\u7ECF\u5EA6:${d.longitude}

\u7EAC\u5EA6:${d.latitude}`).openPopup()})})},w=()=>{getCameraNameS().then(l=>{r.value=l.data,m.value.children!==null&&(i.value=l.data.slice((p.value-1)*x.value,p.value*x.value))})},I=l=>{p.value=l,i.value=r.value.slice((p.value-1)*x.value,p.value*x.value)},T=(l,c,d,h)=>{s.value=l.label,n.value.flag="",m.value=l,F(s.value)};function k(l,c){var d=l,h=c;return l9&&(R=String.fromCharCode(v[E])),C+=R}return C}ref(""),ref(""),ref(""),ref(""),ref(0),ref(1),ref(null);let M=l=>{H.value=l.cameraName,N.videoSrc=l.hdStreaming,a.value=!0,getQuery({name:l.cameraName}).then(c=>{c.data[0].appId,c.data[0].appSecret,new Date().getTime()/1e3,O(!0,!1,!0,32),c.data[0].id,getSxtbf({deviceId:l.cameraName}).then(d=>{let h=new imouPlayer({id:"myVideo",deviceId:c.data[0].deviceId,token:d.data.data.kitToken,channelId:0,type:1,streamId:0,recordType:"cloud",code:""});h.on("play",_=>{console.log("\u5F00\u59CB\u64AD\u653E play",_)}),h.on("pause",()=>{console.log("\u64AD\u653E\u5668\u6682\u505C pause")}),h.on("error",_=>{console.log("\u64AD\u653E\u5668\u9519\u8BEF error",_)}),h.on("volume",_=>{console.log("\u58F0\u97F3\u63A7\u5236",_)}),h.on("talk",_=>{console.log("\u5BF9\u8BB2 talk",_)})}).catch(d=>{console.log(d)})})};const V=l=>{const c=p.value,d=x.value;return l+1+(c-1)*d};var D=L.Icon.extend({options:{iconSize:[50,50],shadowSize:[50,64],iconAnchor:[22,94],shadowAnchor:[4,62],popupAnchor:[0,-86]}}),X=new D({iconUrl:iconShadow});const U=()=>{f.value=!f.value};return(l,c)=>{const d=resolveComponent("el-tree"),h=resolveComponent("el-table-column"),_=resolveComponent("el-table"),S=resolveComponent("el-pagination"),y=resolveComponent("el-dialog");return openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createBaseVNode("div",_hoisted_3,[createBaseVNode("div",_hoisted_4,[createBaseVNode("p",null,[createTextVNode(" \u5F53\u524D\u9009\u62E9 \uFF1A "),createBaseVNode("span",_hoisted_5,toDisplayString(unref(s)),1)]),createVNode(d,{data:unref(t),props:l.defaultProps,onNodeClick:T},null,8,["data","props"])]),createBaseVNode("div",_hoisted_6,[createBaseVNode("div",_hoisted_7,[createBaseVNode("div",_hoisted_8,[createVNode(_,{data:unref(i),"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},"header-row-class-name":"tabth",height:"calc(100vh - 200px)","highlight-current-row":""},{default:withCtx(()=>[createVNode(h,{type:"index",width:"80",label:"\u5E8F\u53F7",index:V}),createVNode(h,{prop:"village",label:"\u4F4D\u7F6E",width:"180"}),createVNode(h,{prop:"cameraName",label:"\u6444\u50CF\u5934\u540D\u79F0",width:"180"}),createVNode(h,{label:"\u64CD\u4F5C"},{default:withCtx(A=>[createBaseVNode("span",{style:{color:"rgba(100, 195, 164, 1)",cursor:"pointer"},onClick:v=>unref(M)(A.row)}," \u64AD\u653E ",8,_hoisted_9)]),_:1})]),_:1},8,["data"]),createBaseVNode("div",_hoisted_10,[createTextVNode(" \u5171"+toDisplayString(unref(r).length)+"\u6761 ",1),createVNode(S,{background:"",layout:"prev, pager, next",total:unref(r).length,"current-page":unref(p),"page-size":unref(x),onCurrentChange:I},null,8,["total","current-page","page-size"])])])])]),createBaseVNode("div",_hoisted_11,[createBaseVNode("div",{class:"arrow",onClick:U},[unref(f)?createCommentVNode("",!0):(openBlock(),createElementBlock("p",_hoisted_12,_hoisted_14)),unref(f)?(openBlock(),createElementBlock("p",_hoisted_15,_hoisted_17)):createCommentVNode("",!0)])]),withDirectives(createBaseVNode("div",_hoisted_18,_hoisted_20,512),[[vShow,!unref(f)]])]),createVNode(y,{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=A=>a.value=A),"append-to-body":"",class:"video","destroy-on-close":"",title:"\u5B9E\u65F6\u76D1\u63A7",width:"40%","before-close":l.handleClose},{default:withCtx(()=>[_hoisted_21]),_:1},8,["modelValue","before-close"])])])}}},index=_export_sfc(_sfc_main,[["__scopeId","data-v-a98e0f94"]]);export{index as default};