ezuikit.83a44b16.js 572 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
  1. import{ak as wo,al as Io,ao as Om}from"./vendor.5f04cee5.js";var Nr={exports:{}};(function(Bn,Ds){function Se(h){return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Se(h)}function Tt(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function Ur(h,u){for(var n=0;n<u.length;n++){var i=u[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(h,i.key,i)}}function Pt(h,u,n){return u&&Ur(h.prototype,u),n&&Ur(h,n),Object.defineProperty(h,"prototype",{writable:!1}),h}function Zn(h,u,n){return u in h?Object.defineProperty(h,u,{value:n,enumerable:!0,configurable:!0,writable:!0}):h[u]=n,h}var Ms=function(){function h(u,n){Tt(this,h),this.coreX=u,this.coreY=n}return Pt(h,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}}]),h}();Date.prototype.Format=function(h){var u={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(h)&&(h=h.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in u)new RegExp("("+n+")").test(h)&&(h=h.replace(RegExp.$1,RegExp.$1.length==1?u[n]:("00"+u[n]).substr((""+u[n]).length)));return h};var Jn=function(u,n,i){var r=document.getElementsByTagName("head")[0].getElementsByTagName("script"),a=!1;if(i)a=i();else for(var s=0;s<r.length;s++)r[s].getAttribute("src")==u&&(a=!0,n());if(a)n();else{var l=document.createElement("script");l.setAttribute("src",u),l.setAttribute("crossorigin",!0),l.onload=n,document.getElementsByTagName("head")[0].appendChild(l)}},xo=function(u,n){for(var i=document.getElementsByTagName("head")[0].getElementsByTagName("link"),r=!1,a=0;a<i.length;a++)i[a].getAttribute("href")==u&&(r=!0);if(!r){var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href=u,s.onload=n,document.getElementsByTagName("head")[0].appendChild(s)}},mn=function(u){return!!u&&(Se(u)==="object"||typeof u=="function")&&typeof u.then=="function"},Ze=function(u,n){var i=new RegExp("(\\?|#|&)"+u+"=(.*?)(#|&|$)"),r=(n||window.location.href).match(i);return decodeURIComponent(r?r[2]:"")},Ln=function(u,n){var i=n.parentNode;i.lastChild==n?i.appendChild(u):i.insertBefore(u,n.nextSibling)},Fs=function(u){console.log("requestFullScreen",document.getElementById(u));var n=u.requestFullScreen||u.webkitRequestFullScreen||u.mozRequestFullScreen||u.msRequestFullScreen;if(n)n.call(u);else if(typeof window.ActiveXObject!="undefined"){var i=new window.ActiveXObject("WScript.Shell");i!==null&&i.SendKeys("{F11}")}},Hr=function(u){var n=document.documentElement.clientWidth,i=document.documentElement.clientHeight,r=u,a="";a+="width:"+i+"px;",a+="height:"+n+"px;",a+="-webkit-transform: rotate(90.001deg); transform: rotate(90.001deg);",a+="-webkit-transform-origin: "+n/2+"px "+n/2+"px;",a+="transform-origin: "+n/2+"px "+n/2+"px;",a+="position: fixed;top: 0;left: 0;z-index:10",r.style.cssText=a},ui=function(u){Fs(u);var n=new Promise(function(i,r){var a=setInterval(function(){var l=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;if(l)return clearInterval(a),i(!0)},100),s=setTimeout(function(){var l=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;l||r(!1),clearTimeout(s)},2e3)});return n},Bs=function(u,n,i){var r="";r+="width:"+n+"px;",r+="height:"+i+"px;",r+="-webkit-transform: none; transform: none;",r+="-webkit-transform-origin: 0 0;",r+="transform-origin: 0 0;",u.style.cssText=r},Ls=function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()},_o=function(u){Ls();var n=new Promise(function(i,r){var a=setInterval(function(){var l=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;if(!l)return clearInterval(a),i(!0)},50),s=setTimeout(function(){var l=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;l&&r(!1),clearTimeout(s)},2e3)});return n},Ue=function(u){var n=u.split("/")[3],i=u.split("/")[4].split(".")[0],r=u.split("/")[2].split("@").length===2?u.split("/")[2].split("@")[0]:"",a=u.indexOf(".hd")!==-1,s=u.split("/")[4].split(".")[u.split("/")[4].split(".").length-1].split("?")[0];return s==="rec"&&u.indexOf(".cloud.rec")!==-1&&(s="cloud.rec"),{deviceSerial:n,channelNo:i,validCode:r,hd:a,type:s}};function zs(h){if(typeof h=="string")try{var u=JSON.parse(h);return!!(Se(u)==="object"&&u)}catch{return!1}console.log("It is not a string!")}var zn=function(u,n,i,r,a,s){var l=u,C=new XMLHttpRequest;C.onreadystatechange=function(){if(C.readyState==4&&C.status==200)if(zs(C.responseText)){var v=JSON.parse(C.responseText);a(v)}else a(C.responseText)},C.open(n,l,!0);var _=new FormData;for(var y in i)_.append(y,i[y]);C.send(_)},js=function(){function h(u,n){var i=this;Tt(this,h),Jn("https://open.ys7.com/assets/ezuikit_v3.4/js/hls.js",function(){console.log("\u52A0\u8F7Dhls.min.js\u6210\u529F",window.Hls),console.log("isSupportHls",window.Hls.isSupported()),window.Hls.isSupported()&&i.initHLS(u,n)},function(){return!!window.Hls})}return Pt(h,[{key:"toString",value:function(){return"hls ".concat(this.coreX,"-").concat(this.coreY)}},{key:"initHLS",value:function(n,i){var r=document.getElementById(n),a=new window.Hls({defaultAudioCodec:"mp4a.40.2"});a.loadSource(i),a.attachMedia(r),a.on(window.Hls.Events.MANIFEST_PARSED,function(){r.play()}),a.on(window.Hls.Events.ERROR,function(s,l){if(l.fatal)switch(l.type){case window.Hls.ErrorTypes.NETWORK_ERROR:console.log("fatal network error encountered, try to recover"),a.startLoad();break;case window.Hls.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover"),a.recoverMediaError();break;default:a.destroy();break}}),this.hls=a,this.video=r,this.hlsUrl=i}},{key:"play",value:function(){console.log("\u6267\u884Chls\u64AD\u653E",this.video),this.hls.startLoad(),this.video.play()}},{key:"stop",value:function(){this.video.pause(),this.hls.stopLoad()}}]),h}(),Os=function(){function h(u,n){var i=this;Tt(this,h),Jn("https://open.ys7.com/sdk/js/2.0/js/flv.min.js",function(){console.log("\u52A0\u8F7Dflv.min.js\u6210\u529F",window.flvjs),console.log("isSupportFlv",window.flvjs.isSupported()),window.flvjs.isSupported()&&i.initFLV(u,n)})}return Pt(h,[{key:"toString",value:function(){return"Flv ".concat(this.coreX,"-").concat(this.coreY)}},{key:"initFLV",value:function(n,i){var r=document.getElementById(n),a=r.getAttribute("controls");a||r.setAttribute("controls",!0);var s=window.flvjs.createPlayer({type:"flv",url:i,isLive:!0},{enableStashBuffer:!0,stashInitialSize:128,enableWorker:!0});s.attachMediaElement(r),s.load(),s.play(),this.flvUrl=i,this.flv=s,this.video=r}},{key:"play",value:function(){console.log("\u6267\u884Cflv\u64AD\u653E",this.video),this.video.play()}},{key:"stop",value:function(){this.video.pause(),this.flv.unload()}}]),h}(),fi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof wo!="undefined"?wo:typeof self!="undefined"?self:{};function Ns(h,u){return u={exports:{}},h(u,u.exports),u.exports}var Mt=Ns(function(h,u){(function(){var n,i="4.17.21",r=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",C="__lodash_hash_undefined__",_=500,y="__lodash_placeholder__",v=1,m=2,w=4,R=1,E=2,b=1,j=2,T=4,d=8,f=16,x=32,A=64,B=128,U=256,N=512,K=30,ee="...",X=800,Y=16,de=1,ce=2,fe=3,Ce=1/0,me=9007199254740991,xe=17976931348623157e292,He=0/0,se=4294967295,mt=se-1,nt=se>>>1,Qe=[["ary",B],["bind",b],["bindKey",j],["curry",d],["curryRight",f],["flip",N],["partial",x],["partialRight",A],["rearg",U]],Ne="[object Arguments]",$e="[object Array]",ke="[object AsyncFunction]",Be="[object Boolean]",Le="[object Date]",ln="[object DOMException]",Wt="[object Error]",vt="[object Function]",Ft="[object GeneratorFunction]",ze="[object Map]",ut="[object Number]",bt="[object Null]",Ae="[object Object]",qe="[object Promise]",Te="[object Proxy]",le="[object RegExp]",Pe="[object Set]",We="[object String]",S="[object Symbol]",D="[object Undefined]",M="[object WeakMap]",L="[object WeakSet]",P="[object ArrayBuffer]",H="[object DataView]",z="[object Float32Array]",G="[object Float64Array]",Z="[object Int8Array]",ie="[object Int16Array]",q="[object Int32Array]",re="[object Uint8Array]",Ve="[object Uint8ClampedArray]",it="[object Uint16Array]",ge="[object Uint32Array]",at=/\b__p \+= '';/g,Ie=/\b(__p \+=) '' \+/g,Ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vt=/&(?:amp|lt|gt|quot|#39);/g,Bt=/[&<>"']/g,De=RegExp(Vt.source),et=RegExp(Bt.source),wn=/<%-([\s\S]+?)%>/g,pi=/<%([\s\S]+?)%>/g,mi=/<%=([\s\S]+?)%>/g,Ai=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Di=/^\w*$/,lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(ot.source),tn=/^\s+/,cn=/\s/,qn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mi=/\{\n\/\* \[wrapped with (.+)\] \*/,Fi=/,? & /,Bi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yn=/[()=,{}\[\]\/\s]/,nn=/\\(\\)?/g,bl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,aa=/\w*$/,El=/^[-+]0x[0-9a-f]+$/i,wl=/^0b[01]+$/i,Il=/^\[object .+?Constructor\]$/,xl=/^0o[0-7]+$/i,_l=/^(?:0|[1-9]\d*)$/,Rl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Li=/($^)/,kl=/['\n\r\u2028\u2029\\]/g,zi="\\ud800-\\udfff",Al="\\u0300-\\u036f",Dl="\\ufe20-\\ufe2f",Ml="\\u20d0-\\u20ff",da=Al+Dl+Ml,sa="\\u2700-\\u27bf",la="a-z\\xdf-\\xf6\\xf8-\\xff",Fl="\\xac\\xb1\\xd7\\xf7",Bl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ll="\\u2000-\\u206f",zl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ca="A-Z\\xc0-\\xd6\\xd8-\\xde",ua="\\ufe0e\\ufe0f",fa=Fl+Bl+Ll+zl,ko="['\u2019]",jl="["+zi+"]",pa="["+fa+"]",ji="["+da+"]",ma="\\d+",Ol="["+sa+"]",ha="["+la+"]",ga="[^"+zi+fa+ma+sa+la+ca+"]",Ao="\\ud83c[\\udffb-\\udfff]",Nl="(?:"+ji+"|"+Ao+")",va="[^"+zi+"]",Do="(?:\\ud83c[\\udde6-\\uddff]){2}",Mo="[\\ud800-\\udbff][\\udc00-\\udfff]",$n="["+ca+"]",ya="\\u200d",Ca="(?:"+ha+"|"+ga+")",Ul="(?:"+$n+"|"+ga+")",Sa="(?:"+ko+"(?:d|ll|m|re|s|t|ve))?",Ta="(?:"+ko+"(?:D|LL|M|RE|S|T|VE))?",Pa=Nl+"?",ba="["+ua+"]?",Hl="(?:"+ya+"(?:"+[va,Do,Mo].join("|")+")"+ba+Pa+")*",Wl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ea=ba+Pa+Hl,Gl="(?:"+[Ol,Do,Mo].join("|")+")"+Ea,Kl="(?:"+[va+ji+"?",ji,Do,Mo,jl].join("|")+")",Zl=RegExp(ko,"g"),Jl=RegExp(ji,"g"),Fo=RegExp(Ao+"(?="+Ao+")|"+Kl+Ea,"g"),ql=RegExp([$n+"?"+ha+"+"+Sa+"(?="+[pa,$n,"$"].join("|")+")",Ul+"+"+Ta+"(?="+[pa,$n+Ca,"$"].join("|")+")",$n+"?"+Ca+"+"+Sa,$n+"+"+Ta,Vl,Wl,ma,Gl].join("|"),"g"),Yl=RegExp("["+ya+zi+da+ua+"]"),$l=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ql=-1,rt={};rt[z]=rt[G]=rt[Z]=rt[ie]=rt[q]=rt[re]=rt[Ve]=rt[it]=rt[ge]=!0,rt[Ne]=rt[$e]=rt[P]=rt[Be]=rt[H]=rt[Le]=rt[Wt]=rt[vt]=rt[ze]=rt[ut]=rt[Ae]=rt[le]=rt[Pe]=rt[We]=rt[M]=!1;var tt={};tt[Ne]=tt[$e]=tt[P]=tt[H]=tt[Be]=tt[Le]=tt[z]=tt[G]=tt[Z]=tt[ie]=tt[q]=tt[ze]=tt[ut]=tt[Ae]=tt[le]=tt[Pe]=tt[We]=tt[S]=tt[re]=tt[Ve]=tt[it]=tt[ge]=!0,tt[Wt]=tt[vt]=tt[M]=!1;var ec={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},tc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ic={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oc=parseFloat,rc=parseInt,wa=typeof fi=="object"&&fi&&fi.Object===Object&&fi,ac=typeof self=="object"&&self&&self.Object===Object&&self,Ct=wa||ac||Function("return this")(),Bo=u&&!u.nodeType&&u,jn=Bo&&!0&&h&&!h.nodeType&&h,Ia=jn&&jn.exports===Bo,Lo=Ia&&wa.process,Gt=function(){try{var W=jn&&jn.require&&jn.require("util").types;return W||Lo&&Lo.binding&&Lo.binding("util")}catch{}}(),xa=Gt&&Gt.isArrayBuffer,_a=Gt&&Gt.isDate,Ra=Gt&&Gt.isMap,ka=Gt&&Gt.isRegExp,Aa=Gt&&Gt.isSet,Da=Gt&&Gt.isTypedArray;function zt(W,Q,J){switch(J.length){case 0:return W.call(Q);case 1:return W.call(Q,J[0]);case 2:return W.call(Q,J[0],J[1]);case 3:return W.call(Q,J[0],J[1],J[2])}return W.apply(Q,J)}function dc(W,Q,J,ue){for(var be=-1,Ke=W==null?0:W.length;++be<Ke;){var ht=W[be];Q(ue,ht,J(ht),W)}return ue}function Kt(W,Q){for(var J=-1,ue=W==null?0:W.length;++J<ue&&Q(W[J],J,W)!==!1;);return W}function sc(W,Q){for(var J=W==null?0:W.length;J--&&Q(W[J],J,W)!==!1;);return W}function Ma(W,Q){for(var J=-1,ue=W==null?0:W.length;++J<ue;)if(!Q(W[J],J,W))return!1;return!0}function In(W,Q){for(var J=-1,ue=W==null?0:W.length,be=0,Ke=[];++J<ue;){var ht=W[J];Q(ht,J,W)&&(Ke[be++]=ht)}return Ke}function Oi(W,Q){var J=W==null?0:W.length;return!!J&&Xn(W,Q,0)>-1}function zo(W,Q,J){for(var ue=-1,be=W==null?0:W.length;++ue<be;)if(J(Q,W[ue]))return!0;return!1}function dt(W,Q){for(var J=-1,ue=W==null?0:W.length,be=Array(ue);++J<ue;)be[J]=Q(W[J],J,W);return be}function xn(W,Q){for(var J=-1,ue=Q.length,be=W.length;++J<ue;)W[be+J]=Q[J];return W}function jo(W,Q,J,ue){var be=-1,Ke=W==null?0:W.length;for(ue&&Ke&&(J=W[++be]);++be<Ke;)J=Q(J,W[be],be,W);return J}function lc(W,Q,J,ue){var be=W==null?0:W.length;for(ue&&be&&(J=W[--be]);be--;)J=Q(J,W[be],be,W);return J}function Oo(W,Q){for(var J=-1,ue=W==null?0:W.length;++J<ue;)if(Q(W[J],J,W))return!0;return!1}var cc=No("length");function uc(W){return W.split("")}function fc(W){return W.match(Bi)||[]}function Fa(W,Q,J){var ue;return J(W,function(be,Ke,ht){if(Q(be,Ke,ht))return ue=Ke,!1}),ue}function Ni(W,Q,J,ue){for(var be=W.length,Ke=J+(ue?1:-1);ue?Ke--:++Ke<be;)if(Q(W[Ke],Ke,W))return Ke;return-1}function Xn(W,Q,J){return Q===Q?Ec(W,Q,J):Ni(W,Ba,J)}function pc(W,Q,J,ue){for(var be=J-1,Ke=W.length;++be<Ke;)if(ue(W[be],Q))return be;return-1}function Ba(W){return W!==W}function La(W,Q){var J=W==null?0:W.length;return J?Ho(W,Q)/J:He}function No(W){return function(Q){return Q==null?n:Q[W]}}function Uo(W){return function(Q){return W==null?n:W[Q]}}function za(W,Q,J,ue,be){return be(W,function(Ke,ht,Xe){J=ue?(ue=!1,Ke):Q(J,Ke,ht,Xe)}),J}function mc(W,Q){var J=W.length;for(W.sort(Q);J--;)W[J]=W[J].value;return W}function Ho(W,Q){for(var J,ue=-1,be=W.length;++ue<be;){var Ke=Q(W[ue]);Ke!==n&&(J=J===n?Ke:J+Ke)}return J}function Wo(W,Q){for(var J=-1,ue=Array(W);++J<W;)ue[J]=Q(J);return ue}function hc(W,Q){return dt(Q,function(J){return[J,W[J]]})}function ja(W){return W&&W.slice(0,Ha(W)+1).replace(tn,"")}function jt(W){return function(Q){return W(Q)}}function Vo(W,Q){return dt(Q,function(J){return W[J]})}function hi(W,Q){return W.has(Q)}function Oa(W,Q){for(var J=-1,ue=W.length;++J<ue&&Xn(Q,W[J],0)>-1;);return J}function Na(W,Q){for(var J=W.length;J--&&Xn(Q,W[J],0)>-1;);return J}function gc(W,Q){for(var J=W.length,ue=0;J--;)W[J]===Q&&++ue;return ue}var vc=Uo(ec),yc=Uo(tc);function Cc(W){return"\\"+ic[W]}function Sc(W,Q){return W==null?n:W[Q]}function Qn(W){return Yl.test(W)}function Tc(W){return $l.test(W)}function Pc(W){for(var Q,J=[];!(Q=W.next()).done;)J.push(Q.value);return J}function Go(W){var Q=-1,J=Array(W.size);return W.forEach(function(ue,be){J[++Q]=[be,ue]}),J}function Ua(W,Q){return function(J){return W(Q(J))}}function _n(W,Q){for(var J=-1,ue=W.length,be=0,Ke=[];++J<ue;){var ht=W[J];(ht===Q||ht===y)&&(W[J]=y,Ke[be++]=J)}return Ke}function Ui(W){var Q=-1,J=Array(W.size);return W.forEach(function(ue){J[++Q]=ue}),J}function bc(W){var Q=-1,J=Array(W.size);return W.forEach(function(ue){J[++Q]=[ue,ue]}),J}function Ec(W,Q,J){for(var ue=J-1,be=W.length;++ue<be;)if(W[ue]===Q)return ue;return-1}function wc(W,Q,J){for(var ue=J+1;ue--;)if(W[ue]===Q)return ue;return ue}function ei(W){return Qn(W)?xc(W):cc(W)}function on(W){return Qn(W)?_c(W):uc(W)}function Ha(W){for(var Q=W.length;Q--&&cn.test(W.charAt(Q)););return Q}var Ic=Uo(nc);function xc(W){for(var Q=Fo.lastIndex=0;Fo.test(W);)++Q;return Q}function _c(W){return W.match(Fo)||[]}function Rc(W){return W.match(ql)||[]}var kc=function W(Q){Q=Q==null?Ct:ti.defaults(Ct.Object(),Q,ti.pick(Ct,Xl));var J=Q.Array,ue=Q.Date,be=Q.Error,Ke=Q.Function,ht=Q.Math,Xe=Q.Object,Ko=Q.RegExp,Ac=Q.String,Zt=Q.TypeError,Hi=J.prototype,Dc=Ke.prototype,ni=Xe.prototype,Wi=Q["__core-js_shared__"],Vi=Dc.toString,Ye=ni.hasOwnProperty,Mc=0,Wa=function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Gi=ni.toString,Fc=Vi.call(Xe),Bc=Ct._,Lc=Ko("^"+Vi.call(Ye).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ki=Ia?Q.Buffer:n,Rn=Q.Symbol,Zi=Q.Uint8Array,Va=Ki?Ki.allocUnsafe:n,Ji=Ua(Xe.getPrototypeOf,Xe),Ga=Xe.create,Ka=ni.propertyIsEnumerable,qi=Hi.splice,Za=Rn?Rn.isConcatSpreadable:n,gi=Rn?Rn.iterator:n,On=Rn?Rn.toStringTag:n,Yi=function(){try{var e=Vn(Xe,"defineProperty");return e({},"",{}),e}catch{}}(),zc=Q.clearTimeout!==Ct.clearTimeout&&Q.clearTimeout,jc=ue&&ue.now!==Ct.Date.now&&ue.now,Oc=Q.setTimeout!==Ct.setTimeout&&Q.setTimeout,$i=ht.ceil,Xi=ht.floor,Zo=Xe.getOwnPropertySymbols,Nc=Ki?Ki.isBuffer:n,Ja=Q.isFinite,Uc=Hi.join,Hc=Ua(Xe.keys,Xe),gt=ht.max,Et=ht.min,Wc=ue.now,Vc=Q.parseInt,qa=ht.random,Gc=Hi.reverse,Jo=Vn(Q,"DataView"),vi=Vn(Q,"Map"),qo=Vn(Q,"Promise"),ii=Vn(Q,"Set"),yi=Vn(Q,"WeakMap"),Ci=Vn(Xe,"create"),Qi=yi&&new yi,oi={},Kc=Gn(Jo),Zc=Gn(vi),Jc=Gn(qo),qc=Gn(ii),Yc=Gn(yi),eo=Rn?Rn.prototype:n,Si=eo?eo.valueOf:n,Ya=eo?eo.toString:n;function I(e){if(ct(e)&&!we(e)&&!(e instanceof je)){if(e instanceof Jt)return e;if(Ye.call(e,"__wrapped__"))return $d(e)}return new Jt(e)}var ri=function(){function e(){}return function(t){if(!st(t))return{};if(Ga)return Ga(t);e.prototype=t;var o=new e;return e.prototype=n,o}}();function to(){}function Jt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}I.templateSettings={escape:wn,evaluate:pi,interpolate:mi,variable:"",imports:{_:I}},I.prototype=to.prototype,I.prototype.constructor=I,Jt.prototype=ri(to.prototype),Jt.prototype.constructor=Jt;function je(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=se,this.__views__=[]}function $c(){var e=new je(this.__wrapped__);return e.__actions__=Rt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rt(this.__views__),e}function Xc(){if(this.__filtered__){var e=new je(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Qc(){var e=this.__wrapped__.value(),t=this.__dir__,o=we(e),c=t<0,g=o?e.length:0,k=u0(0,g,this.__views__),F=k.start,O=k.end,V=O-F,te=c?O:F-1,ne=this.__iteratees__,oe=ne.length,ae=0,pe=Et(V,this.__takeCount__);if(!o||!c&&g==V&&pe==V)return Sd(e,this.__actions__);var ve=[];e:for(;V--&&ae<pe;){te+=t;for(var Re=-1,ye=e[te];++Re<oe;){var Fe=ne[Re],Oe=Fe.iteratee,Ut=Fe.type,_t=Oe(ye);if(Ut==ce)ye=_t;else if(!_t){if(Ut==de)continue e;break e}}ve[ae++]=ye}return ve}je.prototype=ri(to.prototype),je.prototype.constructor=je;function Nn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var c=e[t];this.set(c[0],c[1])}}function eu(){this.__data__=Ci?Ci(null):{},this.size=0}function tu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function nu(e){var t=this.__data__;if(Ci){var o=t[e];return o===C?n:o}return Ye.call(t,e)?t[e]:n}function iu(e){var t=this.__data__;return Ci?t[e]!==n:Ye.call(t,e)}function ou(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ci&&t===n?C:t,this}Nn.prototype.clear=eu,Nn.prototype.delete=tu,Nn.prototype.get=nu,Nn.prototype.has=iu,Nn.prototype.set=ou;function gn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var c=e[t];this.set(c[0],c[1])}}function ru(){this.__data__=[],this.size=0}function au(e){var t=this.__data__,o=no(t,e);if(o<0)return!1;var c=t.length-1;return o==c?t.pop():qi.call(t,o,1),--this.size,!0}function du(e){var t=this.__data__,o=no(t,e);return o<0?n:t[o][1]}function su(e){return no(this.__data__,e)>-1}function lu(e,t){var o=this.__data__,c=no(o,e);return c<0?(++this.size,o.push([e,t])):o[c][1]=t,this}gn.prototype.clear=ru,gn.prototype.delete=au,gn.prototype.get=du,gn.prototype.has=su,gn.prototype.set=lu;function vn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var c=e[t];this.set(c[0],c[1])}}function cu(){this.size=0,this.__data__={hash:new Nn,map:new(vi||gn),string:new Nn}}function uu(e){var t=ho(this,e).delete(e);return this.size-=t?1:0,t}function fu(e){return ho(this,e).get(e)}function pu(e){return ho(this,e).has(e)}function mu(e,t){var o=ho(this,e),c=o.size;return o.set(e,t),this.size+=o.size==c?0:1,this}vn.prototype.clear=cu,vn.prototype.delete=uu,vn.prototype.get=fu,vn.prototype.has=pu,vn.prototype.set=mu;function Un(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new vn;++t<o;)this.add(e[t])}function hu(e){return this.__data__.set(e,C),this}function gu(e){return this.__data__.has(e)}Un.prototype.add=Un.prototype.push=hu,Un.prototype.has=gu;function rn(e){var t=this.__data__=new gn(e);this.size=t.size}function vu(){this.__data__=new gn,this.size=0}function yu(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Cu(e){return this.__data__.get(e)}function Su(e){return this.__data__.has(e)}function Tu(e,t){var o=this.__data__;if(o instanceof gn){var c=o.__data__;if(!vi||c.length<r-1)return c.push([e,t]),this.size=++o.size,this;o=this.__data__=new vn(c)}return o.set(e,t),this.size=o.size,this}rn.prototype.clear=vu,rn.prototype.delete=yu,rn.prototype.get=Cu,rn.prototype.has=Su,rn.prototype.set=Tu;function $a(e,t){var o=we(e),c=!o&&Kn(e),g=!o&&!c&&Fn(e),k=!o&&!c&&!g&&li(e),F=o||c||g||k,O=F?Wo(e.length,Ac):[],V=O.length;for(var te in e)(t||Ye.call(e,te))&&!(F&&(te=="length"||g&&(te=="offset"||te=="parent")||k&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Tn(te,V)))&&O.push(te);return O}function Xa(e){var t=e.length;return t?e[ar(0,t-1)]:n}function Pu(e,t){return go(Rt(e),Hn(t,0,e.length))}function bu(e){return go(Rt(e))}function Yo(e,t,o){(o!==n&&!an(e[t],o)||o===n&&!(t in e))&&yn(e,t,o)}function Ti(e,t,o){var c=e[t];(!(Ye.call(e,t)&&an(c,o))||o===n&&!(t in e))&&yn(e,t,o)}function no(e,t){for(var o=e.length;o--;)if(an(e[o][0],t))return o;return-1}function Eu(e,t,o,c){return kn(e,function(g,k,F){t(c,g,o(g),F)}),c}function Qa(e,t){return e&&fn(t,yt(t),e)}function wu(e,t){return e&&fn(t,At(t),e)}function yn(e,t,o){t=="__proto__"&&Yi?Yi(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function $o(e,t){for(var o=-1,c=t.length,g=J(c),k=e==null;++o<c;)g[o]=k?n:Ar(e,t[o]);return g}function Hn(e,t,o){return e===e&&(o!==n&&(e=e<=o?e:o),t!==n&&(e=e>=t?e:t)),e}function qt(e,t,o,c,g,k){var F,O=t&v,V=t&m,te=t&w;if(o&&(F=g?o(e,c,g,k):o(e)),F!==n)return F;if(!st(e))return e;var ne=we(e);if(ne){if(F=p0(e),!O)return Rt(e,F)}else{var oe=wt(e),ae=oe==vt||oe==Ft;if(Fn(e))return bd(e,O);if(oe==Ae||oe==Ne||ae&&!g){if(F=V||ae?{}:Hd(e),!O)return V?n0(e,wu(F,e)):t0(e,Qa(F,e))}else{if(!tt[oe])return g?e:{};F=m0(e,oe,O)}}k||(k=new rn);var pe=k.get(e);if(pe)return pe;k.set(e,F),vs(e)?e.forEach(function(ye){F.add(qt(ye,t,o,ye,e,k))}):hs(e)&&e.forEach(function(ye,Fe){F.set(Fe,qt(ye,t,o,Fe,e,k))});var ve=te?V?vr:gr:V?At:yt,Re=ne?n:ve(e);return Kt(Re||e,function(ye,Fe){Re&&(Fe=ye,ye=e[Fe]),Ti(F,Fe,qt(ye,t,o,Fe,e,k))}),F}function Iu(e){var t=yt(e);return function(o){return ed(o,e,t)}}function ed(e,t,o){var c=o.length;if(e==null)return!c;for(e=Xe(e);c--;){var g=o[c],k=t[g],F=e[g];if(F===n&&!(g in e)||!k(F))return!1}return!0}function td(e,t,o){if(typeof e!="function")throw new Zt(s);return _i(function(){e.apply(n,o)},t)}function Pi(e,t,o,c){var g=-1,k=Oi,F=!0,O=e.length,V=[],te=t.length;if(!O)return V;o&&(t=dt(t,jt(o))),c?(k=zo,F=!1):t.length>=r&&(k=hi,F=!1,t=new Un(t));e:for(;++g<O;){var ne=e[g],oe=o==null?ne:o(ne);if(ne=c||ne!==0?ne:0,F&&oe===oe){for(var ae=te;ae--;)if(t[ae]===oe)continue e;V.push(ne)}else k(t,oe,c)||V.push(ne)}return V}var kn=_d(un),nd=_d(Qo,!0);function xu(e,t){var o=!0;return kn(e,function(c,g,k){return o=!!t(c,g,k),o}),o}function io(e,t,o){for(var c=-1,g=e.length;++c<g;){var k=e[c],F=t(k);if(F!=null&&(O===n?F===F&&!Nt(F):o(F,O)))var O=F,V=k}return V}function _u(e,t,o,c){var g=e.length;for(o=_e(o),o<0&&(o=-o>g?0:g+o),c=c===n||c>g?g:_e(c),c<0&&(c+=g),c=o>c?0:Cs(c);o<c;)e[o++]=t;return e}function id(e,t){var o=[];return kn(e,function(c,g,k){t(c,g,k)&&o.push(c)}),o}function St(e,t,o,c,g){var k=-1,F=e.length;for(o||(o=g0),g||(g=[]);++k<F;){var O=e[k];t>0&&o(O)?t>1?St(O,t-1,o,c,g):xn(g,O):c||(g[g.length]=O)}return g}var Xo=Rd(),od=Rd(!0);function un(e,t){return e&&Xo(e,t,yt)}function Qo(e,t){return e&&od(e,t,yt)}function oo(e,t){return In(t,function(o){return Pn(e[o])})}function Wn(e,t){t=Dn(t,e);for(var o=0,c=t.length;e!=null&&o<c;)e=e[pn(t[o++])];return o&&o==c?e:n}function rd(e,t,o){var c=t(e);return we(e)?c:xn(c,o(e))}function It(e){return e==null?e===n?D:bt:On&&On in Xe(e)?c0(e):b0(e)}function er(e,t){return e>t}function Ru(e,t){return e!=null&&Ye.call(e,t)}function ku(e,t){return e!=null&&t in Xe(e)}function Au(e,t,o){return e>=Et(t,o)&&e<gt(t,o)}function tr(e,t,o){for(var c=o?zo:Oi,g=e[0].length,k=e.length,F=k,O=J(k),V=1/0,te=[];F--;){var ne=e[F];F&&t&&(ne=dt(ne,jt(t))),V=Et(ne.length,V),O[F]=!o&&(t||g>=120&&ne.length>=120)?new Un(F&&ne):n}ne=e[0];var oe=-1,ae=O[0];e:for(;++oe<g&&te.length<V;){var pe=ne[oe],ve=t?t(pe):pe;if(pe=o||pe!==0?pe:0,!(ae?hi(ae,ve):c(te,ve,o))){for(F=k;--F;){var Re=O[F];if(!(Re?hi(Re,ve):c(e[F],ve,o)))continue e}ae&&ae.push(ve),te.push(pe)}}return te}function Du(e,t,o,c){return un(e,function(g,k,F){t(c,o(g),k,F)}),c}function bi(e,t,o){t=Dn(t,e),e=Kd(e,t);var c=e==null?e:e[pn($t(t))];return c==null?n:zt(c,e,o)}function ad(e){return ct(e)&&It(e)==Ne}function Mu(e){return ct(e)&&It(e)==P}function Fu(e){return ct(e)&&It(e)==Le}function Ei(e,t,o,c,g){return e===t?!0:e==null||t==null||!ct(e)&&!ct(t)?e!==e&&t!==t:Bu(e,t,o,c,Ei,g)}function Bu(e,t,o,c,g,k){var F=we(e),O=we(t),V=F?$e:wt(e),te=O?$e:wt(t);V=V==Ne?Ae:V,te=te==Ne?Ae:te;var ne=V==Ae,oe=te==Ae,ae=V==te;if(ae&&Fn(e)){if(!Fn(t))return!1;F=!0,ne=!1}if(ae&&!ne)return k||(k=new rn),F||li(e)?Od(e,t,o,c,g,k):s0(e,t,V,o,c,g,k);if(!(o&R)){var pe=ne&&Ye.call(e,"__wrapped__"),ve=oe&&Ye.call(t,"__wrapped__");if(pe||ve){var Re=pe?e.value():e,ye=ve?t.value():t;return k||(k=new rn),g(Re,ye,o,c,k)}}return ae?(k||(k=new rn),l0(e,t,o,c,g,k)):!1}function Lu(e){return ct(e)&&wt(e)==ze}function nr(e,t,o,c){var g=o.length,k=g,F=!c;if(e==null)return!k;for(e=Xe(e);g--;){var O=o[g];if(F&&O[2]?O[1]!==e[O[0]]:!(O[0]in e))return!1}for(;++g<k;){O=o[g];var V=O[0],te=e[V],ne=O[1];if(F&&O[2]){if(te===n&&!(V in e))return!1}else{var oe=new rn;if(c)var ae=c(te,ne,V,e,t,oe);if(!(ae===n?Ei(ne,te,R|E,c,oe):ae))return!1}}return!0}function dd(e){if(!st(e)||y0(e))return!1;var t=Pn(e)?Lc:Il;return t.test(Gn(e))}function zu(e){return ct(e)&&It(e)==le}function ju(e){return ct(e)&&wt(e)==Pe}function Ou(e){return ct(e)&&Po(e.length)&&!!rt[It(e)]}function sd(e){return typeof e=="function"?e:e==null?Dt:typeof e=="object"?we(e)?ud(e[0],e[1]):cd(e):ks(e)}function ir(e){if(!xi(e))return Hc(e);var t=[];for(var o in Xe(e))Ye.call(e,o)&&o!="constructor"&&t.push(o);return t}function Nu(e){if(!st(e))return P0(e);var t=xi(e),o=[];for(var c in e)c=="constructor"&&(t||!Ye.call(e,c))||o.push(c);return o}function or(e,t){return e<t}function ld(e,t){var o=-1,c=kt(e)?J(e.length):[];return kn(e,function(g,k,F){c[++o]=t(g,k,F)}),c}function cd(e){var t=Cr(e);return t.length==1&&t[0][2]?Vd(t[0][0],t[0][1]):function(o){return o===e||nr(o,e,t)}}function ud(e,t){return Tr(e)&&Wd(t)?Vd(pn(e),t):function(o){var c=Ar(o,e);return c===n&&c===t?Dr(o,e):Ei(t,c,R|E)}}function ro(e,t,o,c,g){e!==t&&Xo(t,function(k,F){if(g||(g=new rn),st(k))Uu(e,t,F,o,ro,c,g);else{var O=c?c(br(e,F),k,F+"",e,t,g):n;O===n&&(O=k),Yo(e,F,O)}},At)}function Uu(e,t,o,c,g,k,F){var O=br(e,o),V=br(t,o),te=F.get(V);if(te){Yo(e,o,te);return}var ne=k?k(O,V,o+"",e,t,F):n,oe=ne===n;if(oe){var ae=we(V),pe=!ae&&Fn(V),ve=!ae&&!pe&&li(V);ne=V,ae||pe||ve?we(O)?ne=O:ft(O)?ne=Rt(O):pe?(oe=!1,ne=bd(V,!0)):ve?(oe=!1,ne=Ed(V,!0)):ne=[]:Ri(V)||Kn(V)?(ne=O,Kn(O)?ne=Ss(O):(!st(O)||Pn(O))&&(ne=Hd(V))):oe=!1}oe&&(F.set(V,ne),g(ne,V,c,k,F),F.delete(V)),Yo(e,o,ne)}function fd(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,Tn(t,o)?e[t]:n}function pd(e,t,o){t.length?t=dt(t,function(k){return we(k)?function(F){return Wn(F,k.length===1?k[0]:k)}:k}):t=[Dt];var c=-1;t=dt(t,jt(he()));var g=ld(e,function(k,F,O){var V=dt(t,function(te){return te(k)});return{criteria:V,index:++c,value:k}});return mc(g,function(k,F){return e0(k,F,o)})}function Hu(e,t){return md(e,t,function(o,c){return Dr(e,c)})}function md(e,t,o){for(var c=-1,g=t.length,k={};++c<g;){var F=t[c],O=Wn(e,F);o(O,F)&&wi(k,Dn(F,e),O)}return k}function Wu(e){return function(t){return Wn(t,e)}}function rr(e,t,o,c){var g=c?pc:Xn,k=-1,F=t.length,O=e;for(e===t&&(t=Rt(t)),o&&(O=dt(e,jt(o)));++k<F;)for(var V=0,te=t[k],ne=o?o(te):te;(V=g(O,ne,V,c))>-1;)O!==e&&qi.call(O,V,1),qi.call(e,V,1);return e}function hd(e,t){for(var o=e?t.length:0,c=o-1;o--;){var g=t[o];if(o==c||g!==k){var k=g;Tn(g)?qi.call(e,g,1):lr(e,g)}}return e}function ar(e,t){return e+Xi(qa()*(t-e+1))}function Vu(e,t,o,c){for(var g=-1,k=gt($i((t-e)/(o||1)),0),F=J(k);k--;)F[c?k:++g]=e,e+=o;return F}function dr(e,t){var o="";if(!e||t<1||t>me)return o;do t%2&&(o+=e),t=Xi(t/2),t&&(e+=e);while(t);return o}function Me(e,t){return Er(Gd(e,t,Dt),e+"")}function Gu(e){return Xa(ci(e))}function Ku(e,t){var o=ci(e);return go(o,Hn(t,0,o.length))}function wi(e,t,o,c){if(!st(e))return e;t=Dn(t,e);for(var g=-1,k=t.length,F=k-1,O=e;O!=null&&++g<k;){var V=pn(t[g]),te=o;if(V==="__proto__"||V==="constructor"||V==="prototype")return e;if(g!=F){var ne=O[V];te=c?c(ne,V,O):n,te===n&&(te=st(ne)?ne:Tn(t[g+1])?[]:{})}Ti(O,V,te),O=O[V]}return e}var gd=Qi?function(e,t){return Qi.set(e,t),e}:Dt,Zu=Yi?function(e,t){return Yi(e,"toString",{configurable:!0,enumerable:!1,value:Fr(t),writable:!0})}:Dt;function Ju(e){return go(ci(e))}function Yt(e,t,o){var c=-1,g=e.length;t<0&&(t=-t>g?0:g+t),o=o>g?g:o,o<0&&(o+=g),g=t>o?0:o-t>>>0,t>>>=0;for(var k=J(g);++c<g;)k[c]=e[c+t];return k}function qu(e,t){var o;return kn(e,function(c,g,k){return o=t(c,g,k),!o}),!!o}function ao(e,t,o){var c=0,g=e==null?c:e.length;if(typeof t=="number"&&t===t&&g<=nt){for(;c<g;){var k=c+g>>>1,F=e[k];F!==null&&!Nt(F)&&(o?F<=t:F<t)?c=k+1:g=k}return g}return sr(e,t,Dt,o)}function sr(e,t,o,c){var g=0,k=e==null?0:e.length;if(k===0)return 0;t=o(t);for(var F=t!==t,O=t===null,V=Nt(t),te=t===n;g<k;){var ne=Xi((g+k)/2),oe=o(e[ne]),ae=oe!==n,pe=oe===null,ve=oe===oe,Re=Nt(oe);if(F)var ye=c||ve;else te?ye=ve&&(c||ae):O?ye=ve&&ae&&(c||!pe):V?ye=ve&&ae&&!pe&&(c||!Re):pe||Re?ye=!1:ye=c?oe<=t:oe<t;ye?g=ne+1:k=ne}return Et(k,mt)}function vd(e,t){for(var o=-1,c=e.length,g=0,k=[];++o<c;){var F=e[o],O=t?t(F):F;if(!o||!an(O,V)){var V=O;k[g++]=F===0?0:F}}return k}function yd(e){return typeof e=="number"?e:Nt(e)?He:+e}function Ot(e){if(typeof e=="string")return e;if(we(e))return dt(e,Ot)+"";if(Nt(e))return Ya?Ya.call(e):"";var t=e+"";return t=="0"&&1/e==-Ce?"-0":t}function An(e,t,o){var c=-1,g=Oi,k=e.length,F=!0,O=[],V=O;if(o)F=!1,g=zo;else if(k>=r){var te=t?null:a0(e);if(te)return Ui(te);F=!1,g=hi,V=new Un}else V=t?[]:O;e:for(;++c<k;){var ne=e[c],oe=t?t(ne):ne;if(ne=o||ne!==0?ne:0,F&&oe===oe){for(var ae=V.length;ae--;)if(V[ae]===oe)continue e;t&&V.push(oe),O.push(ne)}else g(V,oe,o)||(V!==O&&V.push(oe),O.push(ne))}return O}function lr(e,t){return t=Dn(t,e),e=Kd(e,t),e==null||delete e[pn($t(t))]}function Cd(e,t,o,c){return wi(e,t,o(Wn(e,t)),c)}function so(e,t,o,c){for(var g=e.length,k=c?g:-1;(c?k--:++k<g)&&t(e[k],k,e););return o?Yt(e,c?0:k,c?k+1:g):Yt(e,c?k+1:0,c?g:k)}function Sd(e,t){var o=e;return o instanceof je&&(o=o.value()),jo(t,function(c,g){return g.func.apply(g.thisArg,xn([c],g.args))},o)}function cr(e,t,o){var c=e.length;if(c<2)return c?An(e[0]):[];for(var g=-1,k=J(c);++g<c;)for(var F=e[g],O=-1;++O<c;)O!=g&&(k[g]=Pi(k[g]||F,e[O],t,o));return An(St(k,1),t,o)}function Td(e,t,o){for(var c=-1,g=e.length,k=t.length,F={};++c<g;){var O=c<k?t[c]:n;o(F,e[c],O)}return F}function ur(e){return ft(e)?e:[]}function fr(e){return typeof e=="function"?e:Dt}function Dn(e,t){return we(e)?e:Tr(e,t)?[e]:Yd(Je(e))}var Yu=Me;function Mn(e,t,o){var c=e.length;return o=o===n?c:o,!t&&o>=c?e:Yt(e,t,o)}var Pd=zc||function(e){return Ct.clearTimeout(e)};function bd(e,t){if(t)return e.slice();var o=e.length,c=Va?Va(o):new e.constructor(o);return e.copy(c),c}function pr(e){var t=new e.constructor(e.byteLength);return new Zi(t).set(new Zi(e)),t}function $u(e,t){var o=t?pr(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function Xu(e){var t=new e.constructor(e.source,aa.exec(e));return t.lastIndex=e.lastIndex,t}function Qu(e){return Si?Xe(Si.call(e)):{}}function Ed(e,t){var o=t?pr(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function wd(e,t){if(e!==t){var o=e!==n,c=e===null,g=e===e,k=Nt(e),F=t!==n,O=t===null,V=t===t,te=Nt(t);if(!O&&!te&&!k&&e>t||k&&F&&V&&!O&&!te||c&&F&&V||!o&&V||!g)return 1;if(!c&&!k&&!te&&e<t||te&&o&&g&&!c&&!k||O&&o&&g||!F&&g||!V)return-1}return 0}function e0(e,t,o){for(var c=-1,g=e.criteria,k=t.criteria,F=g.length,O=o.length;++c<F;){var V=wd(g[c],k[c]);if(V){if(c>=O)return V;var te=o[c];return V*(te=="desc"?-1:1)}}return e.index-t.index}function Id(e,t,o,c){for(var g=-1,k=e.length,F=o.length,O=-1,V=t.length,te=gt(k-F,0),ne=J(V+te),oe=!c;++O<V;)ne[O]=t[O];for(;++g<F;)(oe||g<k)&&(ne[o[g]]=e[g]);for(;te--;)ne[O++]=e[g++];return ne}function xd(e,t,o,c){for(var g=-1,k=e.length,F=-1,O=o.length,V=-1,te=t.length,ne=gt(k-O,0),oe=J(ne+te),ae=!c;++g<ne;)oe[g]=e[g];for(var pe=g;++V<te;)oe[pe+V]=t[V];for(;++F<O;)(ae||g<k)&&(oe[pe+o[F]]=e[g++]);return oe}function Rt(e,t){var o=-1,c=e.length;for(t||(t=J(c));++o<c;)t[o]=e[o];return t}function fn(e,t,o,c){var g=!o;o||(o={});for(var k=-1,F=t.length;++k<F;){var O=t[k],V=c?c(o[O],e[O],O,o,e):n;V===n&&(V=e[O]),g?yn(o,O,V):Ti(o,O,V)}return o}function t0(e,t){return fn(e,Sr(e),t)}function n0(e,t){return fn(e,Nd(e),t)}function lo(e,t){return function(o,c){var g=we(o)?dc:Eu,k=t?t():{};return g(o,e,he(c,2),k)}}function ai(e){return Me(function(t,o){var c=-1,g=o.length,k=g>1?o[g-1]:n,F=g>2?o[2]:n;for(k=e.length>3&&typeof k=="function"?(g--,k):n,F&&xt(o[0],o[1],F)&&(k=g<3?n:k,g=1),t=Xe(t);++c<g;){var O=o[c];O&&e(t,O,c,k)}return t})}function _d(e,t){return function(o,c){if(o==null)return o;if(!kt(o))return e(o,c);for(var g=o.length,k=t?g:-1,F=Xe(o);(t?k--:++k<g)&&c(F[k],k,F)!==!1;);return o}}function Rd(e){return function(t,o,c){for(var g=-1,k=Xe(t),F=c(t),O=F.length;O--;){var V=F[e?O:++g];if(o(k[V],V,k)===!1)break}return t}}function i0(e,t,o){var c=t&b,g=Ii(e);function k(){var F=this&&this!==Ct&&this instanceof k?g:e;return F.apply(c?o:this,arguments)}return k}function kd(e){return function(t){t=Je(t);var o=Qn(t)?on(t):n,c=o?o[0]:t.charAt(0),g=o?Mn(o,1).join(""):t.slice(1);return c[e]()+g}}function di(e){return function(t){return jo(_s(xs(t).replace(Zl,"")),e,"")}}function Ii(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=ri(e.prototype),c=e.apply(o,t);return st(c)?c:o}}function o0(e,t,o){var c=Ii(e);function g(){for(var k=arguments.length,F=J(k),O=k,V=si(g);O--;)F[O]=arguments[O];var te=k<3&&F[0]!==V&&F[k-1]!==V?[]:_n(F,V);if(k-=te.length,k<o)return Bd(e,t,co,g.placeholder,n,F,te,n,n,o-k);var ne=this&&this!==Ct&&this instanceof g?c:e;return zt(ne,this,F)}return g}function Ad(e){return function(t,o,c){var g=Xe(t);if(!kt(t)){var k=he(o,3);t=yt(t),o=function(O){return k(g[O],O,g)}}var F=e(t,o,c);return F>-1?g[k?t[F]:F]:n}}function Dd(e){return Sn(function(t){var o=t.length,c=o,g=Jt.prototype.thru;for(e&&t.reverse();c--;){var k=t[c];if(typeof k!="function")throw new Zt(s);if(g&&!F&&mo(k)=="wrapper")var F=new Jt([],!0)}for(c=F?c:o;++c<o;){k=t[c];var O=mo(k),V=O=="wrapper"?yr(k):n;V&&Pr(V[0])&&V[1]==(B|d|x|U)&&!V[4].length&&V[9]==1?F=F[mo(V[0])].apply(F,V[3]):F=k.length==1&&Pr(k)?F[O]():F.thru(k)}return function(){var te=arguments,ne=te[0];if(F&&te.length==1&&we(ne))return F.plant(ne).value();for(var oe=0,ae=o?t[oe].apply(this,te):ne;++oe<o;)ae=t[oe].call(this,ae);return ae}})}function co(e,t,o,c,g,k,F,O,V,te){var ne=t&B,oe=t&b,ae=t&j,pe=t&(d|f),ve=t&N,Re=ae?n:Ii(e);function ye(){for(var Fe=arguments.length,Oe=J(Fe),Ut=Fe;Ut--;)Oe[Ut]=arguments[Ut];if(pe)var _t=si(ye),Ht=gc(Oe,_t);if(c&&(Oe=Id(Oe,c,g,pe)),k&&(Oe=xd(Oe,k,F,pe)),Fe-=Ht,pe&&Fe<te){var pt=_n(Oe,_t);return Bd(e,t,co,ye.placeholder,o,Oe,pt,O,V,te-Fe)}var dn=oe?o:this,En=ae?dn[e]:e;return Fe=Oe.length,O?Oe=E0(Oe,O):ve&&Fe>1&&Oe.reverse(),ne&&V<Fe&&(Oe.length=V),this&&this!==Ct&&this instanceof ye&&(En=Re||Ii(En)),En.apply(dn,Oe)}return ye}function Md(e,t){return function(o,c){return Du(o,e,t(c),{})}}function uo(e,t){return function(o,c){var g;if(o===n&&c===n)return t;if(o!==n&&(g=o),c!==n){if(g===n)return c;typeof o=="string"||typeof c=="string"?(o=Ot(o),c=Ot(c)):(o=yd(o),c=yd(c)),g=e(o,c)}return g}}function mr(e){return Sn(function(t){return t=dt(t,jt(he())),Me(function(o){var c=this;return e(t,function(g){return zt(g,c,o)})})})}function fo(e,t){t=t===n?" ":Ot(t);var o=t.length;if(o<2)return o?dr(t,e):t;var c=dr(t,$i(e/ei(t)));return Qn(t)?Mn(on(c),0,e).join(""):c.slice(0,e)}function r0(e,t,o,c){var g=t&b,k=Ii(e);function F(){for(var O=-1,V=arguments.length,te=-1,ne=c.length,oe=J(ne+V),ae=this&&this!==Ct&&this instanceof F?k:e;++te<ne;)oe[te]=c[te];for(;V--;)oe[te++]=arguments[++O];return zt(ae,g?o:this,oe)}return F}function Fd(e){return function(t,o,c){return c&&typeof c!="number"&&xt(t,o,c)&&(o=c=n),t=bn(t),o===n?(o=t,t=0):o=bn(o),c=c===n?t<o?1:-1:bn(c),Vu(t,o,c,e)}}function po(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Xt(t),o=Xt(o)),e(t,o)}}function Bd(e,t,o,c,g,k,F,O,V,te){var ne=t&d,oe=ne?F:n,ae=ne?n:F,pe=ne?k:n,ve=ne?n:k;t|=ne?x:A,t&=~(ne?A:x),t&T||(t&=~(b|j));var Re=[e,t,g,pe,oe,ve,ae,O,V,te],ye=o.apply(n,Re);return Pr(e)&&Zd(ye,Re),ye.placeholder=c,Jd(ye,e,t)}function hr(e){var t=ht[e];return function(o,c){if(o=Xt(o),c=c==null?0:Et(_e(c),292),c&&Ja(o)){var g=(Je(o)+"e").split("e"),k=t(g[0]+"e"+(+g[1]+c));return g=(Je(k)+"e").split("e"),+(g[0]+"e"+(+g[1]-c))}return t(o)}}var a0=ii&&1/Ui(new ii([,-0]))[1]==Ce?function(e){return new ii(e)}:zr;function Ld(e){return function(t){var o=wt(t);return o==ze?Go(t):o==Pe?bc(t):hc(t,e(t))}}function Cn(e,t,o,c,g,k,F,O){var V=t&j;if(!V&&typeof e!="function")throw new Zt(s);var te=c?c.length:0;if(te||(t&=~(x|A),c=g=n),F=F===n?F:gt(_e(F),0),O=O===n?O:_e(O),te-=g?g.length:0,t&A){var ne=c,oe=g;c=g=n}var ae=V?n:yr(e),pe=[e,t,o,c,g,ne,oe,k,F,O];if(ae&&T0(pe,ae),e=pe[0],t=pe[1],o=pe[2],c=pe[3],g=pe[4],O=pe[9]=pe[9]===n?V?0:e.length:gt(pe[9]-te,0),!O&&t&(d|f)&&(t&=~(d|f)),!t||t==b)var ve=i0(e,t,o);else t==d||t==f?ve=o0(e,t,O):(t==x||t==(b|x))&&!g.length?ve=r0(e,t,o,c):ve=co.apply(n,pe);var Re=ae?gd:Zd;return Jd(Re(ve,pe),e,t)}function zd(e,t,o,c){return e===n||an(e,ni[o])&&!Ye.call(c,o)?t:e}function jd(e,t,o,c,g,k){return st(e)&&st(t)&&(k.set(t,e),ro(e,t,n,jd,k),k.delete(t)),e}function d0(e){return Ri(e)?n:e}function Od(e,t,o,c,g,k){var F=o&R,O=e.length,V=t.length;if(O!=V&&!(F&&V>O))return!1;var te=k.get(e),ne=k.get(t);if(te&&ne)return te==t&&ne==e;var oe=-1,ae=!0,pe=o&E?new Un:n;for(k.set(e,t),k.set(t,e);++oe<O;){var ve=e[oe],Re=t[oe];if(c)var ye=F?c(Re,ve,oe,t,e,k):c(ve,Re,oe,e,t,k);if(ye!==n){if(ye)continue;ae=!1;break}if(pe){if(!Oo(t,function(Fe,Oe){if(!hi(pe,Oe)&&(ve===Fe||g(ve,Fe,o,c,k)))return pe.push(Oe)})){ae=!1;break}}else if(!(ve===Re||g(ve,Re,o,c,k))){ae=!1;break}}return k.delete(e),k.delete(t),ae}function s0(e,t,o,c,g,k,F){switch(o){case H:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!k(new Zi(e),new Zi(t)));case Be:case Le:case ut:return an(+e,+t);case Wt:return e.name==t.name&&e.message==t.message;case le:case We:return e==t+"";case ze:var O=Go;case Pe:var V=c&R;if(O||(O=Ui),e.size!=t.size&&!V)return!1;var te=F.get(e);if(te)return te==t;c|=E,F.set(e,t);var ne=Od(O(e),O(t),c,g,k,F);return F.delete(e),ne;case S:if(Si)return Si.call(e)==Si.call(t)}return!1}function l0(e,t,o,c,g,k){var F=o&R,O=gr(e),V=O.length,te=gr(t),ne=te.length;if(V!=ne&&!F)return!1;for(var oe=V;oe--;){var ae=O[oe];if(!(F?ae in t:Ye.call(t,ae)))return!1}var pe=k.get(e),ve=k.get(t);if(pe&&ve)return pe==t&&ve==e;var Re=!0;k.set(e,t),k.set(t,e);for(var ye=F;++oe<V;){ae=O[oe];var Fe=e[ae],Oe=t[ae];if(c)var Ut=F?c(Oe,Fe,ae,t,e,k):c(Fe,Oe,ae,e,t,k);if(!(Ut===n?Fe===Oe||g(Fe,Oe,o,c,k):Ut)){Re=!1;break}ye||(ye=ae=="constructor")}if(Re&&!ye){var _t=e.constructor,Ht=t.constructor;_t!=Ht&&"constructor"in e&&"constructor"in t&&!(typeof _t=="function"&&_t instanceof _t&&typeof Ht=="function"&&Ht instanceof Ht)&&(Re=!1)}return k.delete(e),k.delete(t),Re}function Sn(e){return Er(Gd(e,n,es),e+"")}function gr(e){return rd(e,yt,Sr)}function vr(e){return rd(e,At,Nd)}var yr=Qi?function(e){return Qi.get(e)}:zr;function mo(e){for(var t=e.name+"",o=oi[t],c=Ye.call(oi,t)?o.length:0;c--;){var g=o[c],k=g.func;if(k==null||k==e)return g.name}return t}function si(e){var t=Ye.call(I,"placeholder")?I:e;return t.placeholder}function he(){var e=I.iteratee||Br;return e=e===Br?sd:e,arguments.length?e(arguments[0],arguments[1]):e}function ho(e,t){var o=e.__data__;return v0(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Cr(e){for(var t=yt(e),o=t.length;o--;){var c=t[o],g=e[c];t[o]=[c,g,Wd(g)]}return t}function Vn(e,t){var o=Sc(e,t);return dd(o)?o:n}function c0(e){var t=Ye.call(e,On),o=e[On];try{e[On]=n;var c=!0}catch{}var g=Gi.call(e);return c&&(t?e[On]=o:delete e[On]),g}var Sr=Zo?function(e){return e==null?[]:(e=Xe(e),In(Zo(e),function(t){return Ka.call(e,t)}))}:jr,Nd=Zo?function(e){for(var t=[];e;)xn(t,Sr(e)),e=Ji(e);return t}:jr,wt=It;(Jo&&wt(new Jo(new ArrayBuffer(1)))!=H||vi&&wt(new vi)!=ze||qo&&wt(qo.resolve())!=qe||ii&&wt(new ii)!=Pe||yi&&wt(new yi)!=M)&&(wt=function(e){var t=It(e),o=t==Ae?e.constructor:n,c=o?Gn(o):"";if(c)switch(c){case Kc:return H;case Zc:return ze;case Jc:return qe;case qc:return Pe;case Yc:return M}return t});function u0(e,t,o){for(var c=-1,g=o.length;++c<g;){var k=o[c],F=k.size;switch(k.type){case"drop":e+=F;break;case"dropRight":t-=F;break;case"take":t=Et(t,e+F);break;case"takeRight":e=gt(e,t-F);break}}return{start:e,end:t}}function f0(e){var t=e.match(Mi);return t?t[1].split(Fi):[]}function Ud(e,t,o){t=Dn(t,e);for(var c=-1,g=t.length,k=!1;++c<g;){var F=pn(t[c]);if(!(k=e!=null&&o(e,F)))break;e=e[F]}return k||++c!=g?k:(g=e==null?0:e.length,!!g&&Po(g)&&Tn(F,g)&&(we(e)||Kn(e)))}function p0(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Ye.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Hd(e){return typeof e.constructor=="function"&&!xi(e)?ri(Ji(e)):{}}function m0(e,t,o){var c=e.constructor;switch(t){case P:return pr(e);case Be:case Le:return new c(+e);case H:return $u(e,o);case z:case G:case Z:case ie:case q:case re:case Ve:case it:case ge:return Ed(e,o);case ze:return new c;case ut:case We:return new c(e);case le:return Xu(e);case Pe:return new c;case S:return Qu(e)}}function h0(e,t){var o=t.length;if(!o)return e;var c=o-1;return t[c]=(o>1?"& ":"")+t[c],t=t.join(o>2?", ":" "),e.replace(qn,`{
  2. /* [wrapped with `+t+`] */
  3. `)}function g0(e){return we(e)||Kn(e)||!!(Za&&e&&e[Za])}function Tn(e,t){var o=typeof e;return t=t==null?me:t,!!t&&(o=="number"||o!="symbol"&&_l.test(e))&&e>-1&&e%1==0&&e<t}function xt(e,t,o){if(!st(o))return!1;var c=typeof t;return(c=="number"?kt(o)&&Tn(t,o.length):c=="string"&&t in o)?an(o[t],e):!1}function Tr(e,t){if(we(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Nt(e)?!0:Di.test(e)||!Ai.test(e)||t!=null&&e in Xe(t)}function v0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Pr(e){var t=mo(e),o=I[t];if(typeof o!="function"||!(t in je.prototype))return!1;if(e===o)return!0;var c=yr(o);return!!c&&e===c[0]}function y0(e){return!!Wa&&Wa in e}var C0=Wi?Pn:Or;function xi(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||ni;return e===o}function Wd(e){return e===e&&!st(e)}function Vd(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==n||e in Xe(o))}}function S0(e){var t=So(e,function(c){return o.size===_&&o.clear(),c}),o=t.cache;return t}function T0(e,t){var o=e[1],c=t[1],g=o|c,k=g<(b|j|B),F=c==B&&o==d||c==B&&o==U&&e[7].length<=t[8]||c==(B|U)&&t[7].length<=t[8]&&o==d;if(!(k||F))return e;c&b&&(e[2]=t[2],g|=o&b?0:T);var O=t[3];if(O){var V=e[3];e[3]=V?Id(V,O,t[4]):O,e[4]=V?_n(e[3],y):t[4]}return O=t[5],O&&(V=e[5],e[5]=V?xd(V,O,t[6]):O,e[6]=V?_n(e[5],y):t[6]),O=t[7],O&&(e[7]=O),c&B&&(e[8]=e[8]==null?t[8]:Et(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=g,e}function P0(e){var t=[];if(e!=null)for(var o in Xe(e))t.push(o);return t}function b0(e){return Gi.call(e)}function Gd(e,t,o){return t=gt(t===n?e.length-1:t,0),function(){for(var c=arguments,g=-1,k=gt(c.length-t,0),F=J(k);++g<k;)F[g]=c[t+g];g=-1;for(var O=J(t+1);++g<t;)O[g]=c[g];return O[t]=o(F),zt(e,this,O)}}function Kd(e,t){return t.length<2?e:Wn(e,Yt(t,0,-1))}function E0(e,t){for(var o=e.length,c=Et(t.length,o),g=Rt(e);c--;){var k=t[c];e[c]=Tn(k,o)?g[k]:n}return e}function br(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Zd=qd(gd),_i=Oc||function(e,t){return Ct.setTimeout(e,t)},Er=qd(Zu);function Jd(e,t,o){var c=t+"";return Er(e,h0(c,w0(f0(c),o)))}function qd(e){var t=0,o=0;return function(){var c=Wc(),g=Y-(c-o);if(o=c,g>0){if(++t>=X)return arguments[0]}else t=0;return e.apply(n,arguments)}}function go(e,t){var o=-1,c=e.length,g=c-1;for(t=t===n?c:t;++o<t;){var k=ar(o,g),F=e[k];e[k]=e[o],e[o]=F}return e.length=t,e}var Yd=S0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lt,function(o,c,g,k){t.push(g?k.replace(nn,"$1"):c||o)}),t});function pn(e){if(typeof e=="string"||Nt(e))return e;var t=e+"";return t=="0"&&1/e==-Ce?"-0":t}function Gn(e){if(e!=null){try{return Vi.call(e)}catch{}try{return e+""}catch{}}return""}function w0(e,t){return Kt(Qe,function(o){var c="_."+o[0];t&o[1]&&!Oi(e,c)&&e.push(c)}),e.sort()}function $d(e){if(e instanceof je)return e.clone();var t=new Jt(e.__wrapped__,e.__chain__);return t.__actions__=Rt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function I0(e,t,o){(o?xt(e,t,o):t===n)?t=1:t=gt(_e(t),0);var c=e==null?0:e.length;if(!c||t<1)return[];for(var g=0,k=0,F=J($i(c/t));g<c;)F[k++]=Yt(e,g,g+=t);return F}function x0(e){for(var t=-1,o=e==null?0:e.length,c=0,g=[];++t<o;){var k=e[t];k&&(g[c++]=k)}return g}function _0(){var e=arguments.length;if(!e)return[];for(var t=J(e-1),o=arguments[0],c=e;c--;)t[c-1]=arguments[c];return xn(we(o)?Rt(o):[o],St(t,1))}var R0=Me(function(e,t){return ft(e)?Pi(e,St(t,1,ft,!0)):[]}),k0=Me(function(e,t){var o=$t(t);return ft(o)&&(o=n),ft(e)?Pi(e,St(t,1,ft,!0),he(o,2)):[]}),A0=Me(function(e,t){var o=$t(t);return ft(o)&&(o=n),ft(e)?Pi(e,St(t,1,ft,!0),n,o):[]});function D0(e,t,o){var c=e==null?0:e.length;return c?(t=o||t===n?1:_e(t),Yt(e,t<0?0:t,c)):[]}function M0(e,t,o){var c=e==null?0:e.length;return c?(t=o||t===n?1:_e(t),t=c-t,Yt(e,0,t<0?0:t)):[]}function F0(e,t){return e&&e.length?so(e,he(t,3),!0,!0):[]}function B0(e,t){return e&&e.length?so(e,he(t,3),!0):[]}function L0(e,t,o,c){var g=e==null?0:e.length;return g?(o&&typeof o!="number"&&xt(e,t,o)&&(o=0,c=g),_u(e,t,o,c)):[]}function Xd(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var g=o==null?0:_e(o);return g<0&&(g=gt(c+g,0)),Ni(e,he(t,3),g)}function Qd(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var g=c-1;return o!==n&&(g=_e(o),g=o<0?gt(c+g,0):Et(g,c-1)),Ni(e,he(t,3),g,!0)}function es(e){var t=e==null?0:e.length;return t?St(e,1):[]}function z0(e){var t=e==null?0:e.length;return t?St(e,Ce):[]}function j0(e,t){var o=e==null?0:e.length;return o?(t=t===n?1:_e(t),St(e,t)):[]}function O0(e){for(var t=-1,o=e==null?0:e.length,c={};++t<o;){var g=e[t];c[g[0]]=g[1]}return c}function ts(e){return e&&e.length?e[0]:n}function N0(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var g=o==null?0:_e(o);return g<0&&(g=gt(c+g,0)),Xn(e,t,g)}function U0(e){var t=e==null?0:e.length;return t?Yt(e,0,-1):[]}var H0=Me(function(e){var t=dt(e,ur);return t.length&&t[0]===e[0]?tr(t):[]}),W0=Me(function(e){var t=$t(e),o=dt(e,ur);return t===$t(o)?t=n:o.pop(),o.length&&o[0]===e[0]?tr(o,he(t,2)):[]}),V0=Me(function(e){var t=$t(e),o=dt(e,ur);return t=typeof t=="function"?t:n,t&&o.pop(),o.length&&o[0]===e[0]?tr(o,n,t):[]});function G0(e,t){return e==null?"":Uc.call(e,t)}function $t(e){var t=e==null?0:e.length;return t?e[t-1]:n}function K0(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var g=c;return o!==n&&(g=_e(o),g=g<0?gt(c+g,0):Et(g,c-1)),t===t?wc(e,t,g):Ni(e,Ba,g,!0)}function Z0(e,t){return e&&e.length?fd(e,_e(t)):n}var J0=Me(ns);function ns(e,t){return e&&e.length&&t&&t.length?rr(e,t):e}function q0(e,t,o){return e&&e.length&&t&&t.length?rr(e,t,he(o,2)):e}function Y0(e,t,o){return e&&e.length&&t&&t.length?rr(e,t,n,o):e}var $0=Sn(function(e,t){var o=e==null?0:e.length,c=$o(e,t);return hd(e,dt(t,function(g){return Tn(g,o)?+g:g}).sort(wd)),c});function X0(e,t){var o=[];if(!(e&&e.length))return o;var c=-1,g=[],k=e.length;for(t=he(t,3);++c<k;){var F=e[c];t(F,c,e)&&(o.push(F),g.push(c))}return hd(e,g),o}function wr(e){return e==null?e:Gc.call(e)}function Q0(e,t,o){var c=e==null?0:e.length;return c?(o&&typeof o!="number"&&xt(e,t,o)?(t=0,o=c):(t=t==null?0:_e(t),o=o===n?c:_e(o)),Yt(e,t,o)):[]}function ef(e,t){return ao(e,t)}function tf(e,t,o){return sr(e,t,he(o,2))}function nf(e,t){var o=e==null?0:e.length;if(o){var c=ao(e,t);if(c<o&&an(e[c],t))return c}return-1}function of(e,t){return ao(e,t,!0)}function rf(e,t,o){return sr(e,t,he(o,2),!0)}function af(e,t){var o=e==null?0:e.length;if(o){var c=ao(e,t,!0)-1;if(an(e[c],t))return c}return-1}function df(e){return e&&e.length?vd(e):[]}function sf(e,t){return e&&e.length?vd(e,he(t,2)):[]}function lf(e){var t=e==null?0:e.length;return t?Yt(e,1,t):[]}function cf(e,t,o){return e&&e.length?(t=o||t===n?1:_e(t),Yt(e,0,t<0?0:t)):[]}function uf(e,t,o){var c=e==null?0:e.length;return c?(t=o||t===n?1:_e(t),t=c-t,Yt(e,t<0?0:t,c)):[]}function ff(e,t){return e&&e.length?so(e,he(t,3),!1,!0):[]}function pf(e,t){return e&&e.length?so(e,he(t,3)):[]}var mf=Me(function(e){return An(St(e,1,ft,!0))}),hf=Me(function(e){var t=$t(e);return ft(t)&&(t=n),An(St(e,1,ft,!0),he(t,2))}),gf=Me(function(e){var t=$t(e);return t=typeof t=="function"?t:n,An(St(e,1,ft,!0),n,t)});function vf(e){return e&&e.length?An(e):[]}function yf(e,t){return e&&e.length?An(e,he(t,2)):[]}function Cf(e,t){return t=typeof t=="function"?t:n,e&&e.length?An(e,n,t):[]}function Ir(e){if(!(e&&e.length))return[];var t=0;return e=In(e,function(o){if(ft(o))return t=gt(o.length,t),!0}),Wo(t,function(o){return dt(e,No(o))})}function is(e,t){if(!(e&&e.length))return[];var o=Ir(e);return t==null?o:dt(o,function(c){return zt(t,n,c)})}var Sf=Me(function(e,t){return ft(e)?Pi(e,t):[]}),Tf=Me(function(e){return cr(In(e,ft))}),Pf=Me(function(e){var t=$t(e);return ft(t)&&(t=n),cr(In(e,ft),he(t,2))}),bf=Me(function(e){var t=$t(e);return t=typeof t=="function"?t:n,cr(In(e,ft),n,t)}),Ef=Me(Ir);function wf(e,t){return Td(e||[],t||[],Ti)}function If(e,t){return Td(e||[],t||[],wi)}var xf=Me(function(e){var t=e.length,o=t>1?e[t-1]:n;return o=typeof o=="function"?(e.pop(),o):n,is(e,o)});function os(e){var t=I(e);return t.__chain__=!0,t}function _f(e,t){return t(e),e}function vo(e,t){return t(e)}var Rf=Sn(function(e){var t=e.length,o=t?e[0]:0,c=this.__wrapped__,g=function(k){return $o(k,e)};return t>1||this.__actions__.length||!(c instanceof je)||!Tn(o)?this.thru(g):(c=c.slice(o,+o+(t?1:0)),c.__actions__.push({func:vo,args:[g],thisArg:n}),new Jt(c,this.__chain__).thru(function(k){return t&&!k.length&&k.push(n),k}))});function kf(){return os(this)}function Af(){return new Jt(this.value(),this.__chain__)}function Df(){this.__values__===n&&(this.__values__=ys(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Mf(){return this}function Ff(e){for(var t,o=this;o instanceof to;){var c=$d(o);c.__index__=0,c.__values__=n,t?g.__wrapped__=c:t=c;var g=c;o=o.__wrapped__}return g.__wrapped__=e,t}function Bf(){var e=this.__wrapped__;if(e instanceof je){var t=e;return this.__actions__.length&&(t=new je(this)),t=t.reverse(),t.__actions__.push({func:vo,args:[wr],thisArg:n}),new Jt(t,this.__chain__)}return this.thru(wr)}function Lf(){return Sd(this.__wrapped__,this.__actions__)}var zf=lo(function(e,t,o){Ye.call(e,o)?++e[o]:yn(e,o,1)});function jf(e,t,o){var c=we(e)?Ma:xu;return o&&xt(e,t,o)&&(t=n),c(e,he(t,3))}function Of(e,t){var o=we(e)?In:id;return o(e,he(t,3))}var Nf=Ad(Xd),Uf=Ad(Qd);function Hf(e,t){return St(yo(e,t),1)}function Wf(e,t){return St(yo(e,t),Ce)}function Vf(e,t,o){return o=o===n?1:_e(o),St(yo(e,t),o)}function rs(e,t){var o=we(e)?Kt:kn;return o(e,he(t,3))}function as(e,t){var o=we(e)?sc:nd;return o(e,he(t,3))}var Gf=lo(function(e,t,o){Ye.call(e,o)?e[o].push(t):yn(e,o,[t])});function Kf(e,t,o,c){e=kt(e)?e:ci(e),o=o&&!c?_e(o):0;var g=e.length;return o<0&&(o=gt(g+o,0)),bo(e)?o<=g&&e.indexOf(t,o)>-1:!!g&&Xn(e,t,o)>-1}var Zf=Me(function(e,t,o){var c=-1,g=typeof t=="function",k=kt(e)?J(e.length):[];return kn(e,function(F){k[++c]=g?zt(t,F,o):bi(F,t,o)}),k}),Jf=lo(function(e,t,o){yn(e,o,t)});function yo(e,t){var o=we(e)?dt:ld;return o(e,he(t,3))}function qf(e,t,o,c){return e==null?[]:(we(t)||(t=t==null?[]:[t]),o=c?n:o,we(o)||(o=o==null?[]:[o]),pd(e,t,o))}var Yf=lo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function $f(e,t,o){var c=we(e)?jo:za,g=arguments.length<3;return c(e,he(t,4),o,g,kn)}function Xf(e,t,o){var c=we(e)?lc:za,g=arguments.length<3;return c(e,he(t,4),o,g,nd)}function Qf(e,t){var o=we(e)?In:id;return o(e,To(he(t,3)))}function ep(e){var t=we(e)?Xa:Gu;return t(e)}function tp(e,t,o){(o?xt(e,t,o):t===n)?t=1:t=_e(t);var c=we(e)?Pu:Ku;return c(e,t)}function np(e){var t=we(e)?bu:Ju;return t(e)}function ip(e){if(e==null)return 0;if(kt(e))return bo(e)?ei(e):e.length;var t=wt(e);return t==ze||t==Pe?e.size:ir(e).length}function op(e,t,o){var c=we(e)?Oo:qu;return o&&xt(e,t,o)&&(t=n),c(e,he(t,3))}var rp=Me(function(e,t){if(e==null)return[];var o=t.length;return o>1&&xt(e,t[0],t[1])?t=[]:o>2&&xt(t[0],t[1],t[2])&&(t=[t[0]]),pd(e,St(t,1),[])}),Co=jc||function(){return Ct.Date.now()};function ap(e,t){if(typeof t!="function")throw new Zt(s);return e=_e(e),function(){if(--e<1)return t.apply(this,arguments)}}function ds(e,t,o){return t=o?n:t,t=e&&t==null?e.length:t,Cn(e,B,n,n,n,n,t)}function ss(e,t){var o;if(typeof t!="function")throw new Zt(s);return e=_e(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var xr=Me(function(e,t,o){var c=b;if(o.length){var g=_n(o,si(xr));c|=x}return Cn(e,c,t,o,g)}),ls=Me(function(e,t,o){var c=b|j;if(o.length){var g=_n(o,si(ls));c|=x}return Cn(t,c,e,o,g)});function cs(e,t,o){t=o?n:t;var c=Cn(e,d,n,n,n,n,n,t);return c.placeholder=cs.placeholder,c}function us(e,t,o){t=o?n:t;var c=Cn(e,f,n,n,n,n,n,t);return c.placeholder=us.placeholder,c}function fs(e,t,o){var c,g,k,F,O,V,te=0,ne=!1,oe=!1,ae=!0;if(typeof e!="function")throw new Zt(s);t=Xt(t)||0,st(o)&&(ne=!!o.leading,oe="maxWait"in o,k=oe?gt(Xt(o.maxWait)||0,t):k,ae="trailing"in o?!!o.trailing:ae);function pe(pt){var dn=c,En=g;return c=g=n,te=pt,F=e.apply(En,dn),F}function ve(pt){return te=pt,O=_i(Fe,t),ne?pe(pt):F}function Re(pt){var dn=pt-V,En=pt-te,As=t-dn;return oe?Et(As,k-En):As}function ye(pt){var dn=pt-V,En=pt-te;return V===n||dn>=t||dn<0||oe&&En>=k}function Fe(){var pt=Co();if(ye(pt))return Oe(pt);O=_i(Fe,Re(pt))}function Oe(pt){return O=n,ae&&c?pe(pt):(c=g=n,F)}function Ut(){O!==n&&Pd(O),te=0,c=V=g=O=n}function _t(){return O===n?F:Oe(Co())}function Ht(){var pt=Co(),dn=ye(pt);if(c=arguments,g=this,V=pt,dn){if(O===n)return ve(V);if(oe)return Pd(O),O=_i(Fe,t),pe(V)}return O===n&&(O=_i(Fe,t)),F}return Ht.cancel=Ut,Ht.flush=_t,Ht}var dp=Me(function(e,t){return td(e,1,t)}),sp=Me(function(e,t,o){return td(e,Xt(t)||0,o)});function lp(e){return Cn(e,N)}function So(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Zt(s);var o=function(){var c=arguments,g=t?t.apply(this,c):c[0],k=o.cache;if(k.has(g))return k.get(g);var F=e.apply(this,c);return o.cache=k.set(g,F)||k,F};return o.cache=new(So.Cache||vn),o}So.Cache=vn;function To(e){if(typeof e!="function")throw new Zt(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cp(e){return ss(2,e)}var up=Yu(function(e,t){t=t.length==1&&we(t[0])?dt(t[0],jt(he())):dt(St(t,1),jt(he()));var o=t.length;return Me(function(c){for(var g=-1,k=Et(c.length,o);++g<k;)c[g]=t[g].call(this,c[g]);return zt(e,this,c)})}),_r=Me(function(e,t){var o=_n(t,si(_r));return Cn(e,x,n,t,o)}),ps=Me(function(e,t){var o=_n(t,si(ps));return Cn(e,A,n,t,o)}),fp=Sn(function(e,t){return Cn(e,U,n,n,n,t)});function pp(e,t){if(typeof e!="function")throw new Zt(s);return t=t===n?t:_e(t),Me(e,t)}function mp(e,t){if(typeof e!="function")throw new Zt(s);return t=t==null?0:gt(_e(t),0),Me(function(o){var c=o[t],g=Mn(o,0,t);return c&&xn(g,c),zt(e,this,g)})}function hp(e,t,o){var c=!0,g=!0;if(typeof e!="function")throw new Zt(s);return st(o)&&(c="leading"in o?!!o.leading:c,g="trailing"in o?!!o.trailing:g),fs(e,t,{leading:c,maxWait:t,trailing:g})}function gp(e){return ds(e,1)}function vp(e,t){return _r(fr(t),e)}function yp(){if(!arguments.length)return[];var e=arguments[0];return we(e)?e:[e]}function Cp(e){return qt(e,w)}function Sp(e,t){return t=typeof t=="function"?t:n,qt(e,w,t)}function Tp(e){return qt(e,v|w)}function Pp(e,t){return t=typeof t=="function"?t:n,qt(e,v|w,t)}function bp(e,t){return t==null||ed(e,t,yt(t))}function an(e,t){return e===t||e!==e&&t!==t}var Ep=po(er),wp=po(function(e,t){return e>=t}),Kn=ad(function(){return arguments}())?ad:function(e){return ct(e)&&Ye.call(e,"callee")&&!Ka.call(e,"callee")},we=J.isArray,Ip=xa?jt(xa):Mu;function kt(e){return e!=null&&Po(e.length)&&!Pn(e)}function ft(e){return ct(e)&&kt(e)}function xp(e){return e===!0||e===!1||ct(e)&&It(e)==Be}var Fn=Nc||Or,_p=_a?jt(_a):Fu;function Rp(e){return ct(e)&&e.nodeType===1&&!Ri(e)}function kp(e){if(e==null)return!0;if(kt(e)&&(we(e)||typeof e=="string"||typeof e.splice=="function"||Fn(e)||li(e)||Kn(e)))return!e.length;var t=wt(e);if(t==ze||t==Pe)return!e.size;if(xi(e))return!ir(e).length;for(var o in e)if(Ye.call(e,o))return!1;return!0}function Ap(e,t){return Ei(e,t)}function Dp(e,t,o){o=typeof o=="function"?o:n;var c=o?o(e,t):n;return c===n?Ei(e,t,n,o):!!c}function Rr(e){if(!ct(e))return!1;var t=It(e);return t==Wt||t==ln||typeof e.message=="string"&&typeof e.name=="string"&&!Ri(e)}function Mp(e){return typeof e=="number"&&Ja(e)}function Pn(e){if(!st(e))return!1;var t=It(e);return t==vt||t==Ft||t==ke||t==Te}function ms(e){return typeof e=="number"&&e==_e(e)}function Po(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=me}function st(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ct(e){return e!=null&&typeof e=="object"}var hs=Ra?jt(Ra):Lu;function Fp(e,t){return e===t||nr(e,t,Cr(t))}function Bp(e,t,o){return o=typeof o=="function"?o:n,nr(e,t,Cr(t),o)}function Lp(e){return gs(e)&&e!=+e}function zp(e){if(C0(e))throw new be(a);return dd(e)}function jp(e){return e===null}function Op(e){return e==null}function gs(e){return typeof e=="number"||ct(e)&&It(e)==ut}function Ri(e){if(!ct(e)||It(e)!=Ae)return!1;var t=Ji(e);if(t===null)return!0;var o=Ye.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Vi.call(o)==Fc}var kr=ka?jt(ka):zu;function Np(e){return ms(e)&&e>=-me&&e<=me}var vs=Aa?jt(Aa):ju;function bo(e){return typeof e=="string"||!we(e)&&ct(e)&&It(e)==We}function Nt(e){return typeof e=="symbol"||ct(e)&&It(e)==S}var li=Da?jt(Da):Ou;function Up(e){return e===n}function Hp(e){return ct(e)&&wt(e)==M}function Wp(e){return ct(e)&&It(e)==L}var Vp=po(or),Gp=po(function(e,t){return e<=t});function ys(e){if(!e)return[];if(kt(e))return bo(e)?on(e):Rt(e);if(gi&&e[gi])return Pc(e[gi]());var t=wt(e),o=t==ze?Go:t==Pe?Ui:ci;return o(e)}function bn(e){if(!e)return e===0?e:0;if(e=Xt(e),e===Ce||e===-Ce){var t=e<0?-1:1;return t*xe}return e===e?e:0}function _e(e){var t=bn(e),o=t%1;return t===t?o?t-o:t:0}function Cs(e){return e?Hn(_e(e),0,se):0}function Xt(e){if(typeof e=="number")return e;if(Nt(e))return He;if(st(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=st(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ja(e);var o=wl.test(e);return o||xl.test(e)?rc(e.slice(2),o?2:8):El.test(e)?He:+e}function Ss(e){return fn(e,At(e))}function Kp(e){return e?Hn(_e(e),-me,me):e===0?e:0}function Je(e){return e==null?"":Ot(e)}var Zp=ai(function(e,t){if(xi(t)||kt(t)){fn(t,yt(t),e);return}for(var o in t)Ye.call(t,o)&&Ti(e,o,t[o])}),Ts=ai(function(e,t){fn(t,At(t),e)}),Eo=ai(function(e,t,o,c){fn(t,At(t),e,c)}),Jp=ai(function(e,t,o,c){fn(t,yt(t),e,c)}),qp=Sn($o);function Yp(e,t){var o=ri(e);return t==null?o:Qa(o,t)}var $p=Me(function(e,t){e=Xe(e);var o=-1,c=t.length,g=c>2?t[2]:n;for(g&&xt(t[0],t[1],g)&&(c=1);++o<c;)for(var k=t[o],F=At(k),O=-1,V=F.length;++O<V;){var te=F[O],ne=e[te];(ne===n||an(ne,ni[te])&&!Ye.call(e,te))&&(e[te]=k[te])}return e}),Xp=Me(function(e){return e.push(n,jd),zt(Ps,n,e)});function Qp(e,t){return Fa(e,he(t,3),un)}function e1(e,t){return Fa(e,he(t,3),Qo)}function t1(e,t){return e==null?e:Xo(e,he(t,3),At)}function n1(e,t){return e==null?e:od(e,he(t,3),At)}function i1(e,t){return e&&un(e,he(t,3))}function o1(e,t){return e&&Qo(e,he(t,3))}function r1(e){return e==null?[]:oo(e,yt(e))}function a1(e){return e==null?[]:oo(e,At(e))}function Ar(e,t,o){var c=e==null?n:Wn(e,t);return c===n?o:c}function d1(e,t){return e!=null&&Ud(e,t,Ru)}function Dr(e,t){return e!=null&&Ud(e,t,ku)}var s1=Md(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Gi.call(t)),e[t]=o},Fr(Dt)),l1=Md(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Gi.call(t)),Ye.call(e,t)?e[t].push(o):e[t]=[o]},he),c1=Me(bi);function yt(e){return kt(e)?$a(e):ir(e)}function At(e){return kt(e)?$a(e,!0):Nu(e)}function u1(e,t){var o={};return t=he(t,3),un(e,function(c,g,k){yn(o,t(c,g,k),c)}),o}function f1(e,t){var o={};return t=he(t,3),un(e,function(c,g,k){yn(o,g,t(c,g,k))}),o}var p1=ai(function(e,t,o){ro(e,t,o)}),Ps=ai(function(e,t,o,c){ro(e,t,o,c)}),m1=Sn(function(e,t){var o={};if(e==null)return o;var c=!1;t=dt(t,function(k){return k=Dn(k,e),c||(c=k.length>1),k}),fn(e,vr(e),o),c&&(o=qt(o,v|m|w,d0));for(var g=t.length;g--;)lr(o,t[g]);return o});function h1(e,t){return bs(e,To(he(t)))}var g1=Sn(function(e,t){return e==null?{}:Hu(e,t)});function bs(e,t){if(e==null)return{};var o=dt(vr(e),function(c){return[c]});return t=he(t),md(e,o,function(c,g){return t(c,g[0])})}function v1(e,t,o){t=Dn(t,e);var c=-1,g=t.length;for(g||(g=1,e=n);++c<g;){var k=e==null?n:e[pn(t[c])];k===n&&(c=g,k=o),e=Pn(k)?k.call(e):k}return e}function y1(e,t,o){return e==null?e:wi(e,t,o)}function C1(e,t,o,c){return c=typeof c=="function"?c:n,e==null?e:wi(e,t,o,c)}var Es=Ld(yt),ws=Ld(At);function S1(e,t,o){var c=we(e),g=c||Fn(e)||li(e);if(t=he(t,4),o==null){var k=e&&e.constructor;g?o=c?new k:[]:st(e)?o=Pn(k)?ri(Ji(e)):{}:o={}}return(g?Kt:un)(e,function(F,O,V){return t(o,F,O,V)}),o}function T1(e,t){return e==null?!0:lr(e,t)}function P1(e,t,o){return e==null?e:Cd(e,t,fr(o))}function b1(e,t,o,c){return c=typeof c=="function"?c:n,e==null?e:Cd(e,t,fr(o),c)}function ci(e){return e==null?[]:Vo(e,yt(e))}function E1(e){return e==null?[]:Vo(e,At(e))}function w1(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=Xt(o),o=o===o?o:0),t!==n&&(t=Xt(t),t=t===t?t:0),Hn(Xt(e),t,o)}function I1(e,t,o){return t=bn(t),o===n?(o=t,t=0):o=bn(o),e=Xt(e),Au(e,t,o)}function x1(e,t,o){if(o&&typeof o!="boolean"&&xt(e,t,o)&&(t=o=n),o===n&&(typeof t=="boolean"?(o=t,t=n):typeof e=="boolean"&&(o=e,e=n)),e===n&&t===n?(e=0,t=1):(e=bn(e),t===n?(t=e,e=0):t=bn(t)),e>t){var c=e;e=t,t=c}if(o||e%1||t%1){var g=qa();return Et(e+g*(t-e+oc("1e-"+((g+"").length-1))),t)}return ar(e,t)}var _1=di(function(e,t,o){return t=t.toLowerCase(),e+(o?Is(t):t)});function Is(e){return Mr(Je(e).toLowerCase())}function xs(e){return e=Je(e),e&&e.replace(Rl,vc).replace(Jl,"")}function R1(e,t,o){e=Je(e),t=Ot(t);var c=e.length;o=o===n?c:Hn(_e(o),0,c);var g=o;return o-=t.length,o>=0&&e.slice(o,g)==t}function k1(e){return e=Je(e),e&&et.test(e)?e.replace(Bt,yc):e}function A1(e){return e=Je(e),e&&Lt.test(e)?e.replace(ot,"\\$&"):e}var D1=di(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),M1=di(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),F1=kd("toLowerCase");function B1(e,t,o){e=Je(e),t=_e(t);var c=t?ei(e):0;if(!t||c>=t)return e;var g=(t-c)/2;return fo(Xi(g),o)+e+fo($i(g),o)}function L1(e,t,o){e=Je(e),t=_e(t);var c=t?ei(e):0;return t&&c<t?e+fo(t-c,o):e}function z1(e,t,o){e=Je(e),t=_e(t);var c=t?ei(e):0;return t&&c<t?fo(t-c,o)+e:e}function j1(e,t,o){return o||t==null?t=0:t&&(t=+t),Vc(Je(e).replace(tn,""),t||0)}function O1(e,t,o){return(o?xt(e,t,o):t===n)?t=1:t=_e(t),dr(Je(e),t)}function N1(){var e=arguments,t=Je(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var U1=di(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function H1(e,t,o){return o&&typeof o!="number"&&xt(e,t,o)&&(t=o=n),o=o===n?se:o>>>0,o?(e=Je(e),e&&(typeof t=="string"||t!=null&&!kr(t))&&(t=Ot(t),!t&&Qn(e))?Mn(on(e),0,o):e.split(t,o)):[]}var W1=di(function(e,t,o){return e+(o?" ":"")+Mr(t)});function V1(e,t,o){return e=Je(e),o=o==null?0:Hn(_e(o),0,e.length),t=Ot(t),e.slice(o,o+t.length)==t}function G1(e,t,o){var c=I.templateSettings;o&&xt(e,t,o)&&(t=n),e=Je(e),t=Eo({},t,c,zd);var g=Eo({},t.imports,c.imports,zd),k=yt(g),F=Vo(g,k),O,V,te=0,ne=t.interpolate||Li,oe="__p += '",ae=Ko((t.escape||Li).source+"|"+ne.source+"|"+(ne===mi?bl:Li).source+"|"+(t.evaluate||Li).source+"|$","g"),pe="//# sourceURL="+(Ye.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ql+"]")+`
  4. `;e.replace(ae,function(ye,Fe,Oe,Ut,_t,Ht){return Oe||(Oe=Ut),oe+=e.slice(te,Ht).replace(kl,Cc),Fe&&(O=!0,oe+=`' +
  5. __e(`+Fe+`) +
  6. '`),_t&&(V=!0,oe+=`';
  7. `+_t+`;
  8. __p += '`),Oe&&(oe+=`' +
  9. ((__t = (`+Oe+`)) == null ? '' : __t) +
  10. '`),te=Ht+ye.length,ye}),oe+=`';
  11. `;var ve=Ye.call(t,"variable")&&t.variable;if(!ve)oe=`with (obj) {
  12. `+oe+`
  13. }
  14. `;else if(Yn.test(ve))throw new be(l);oe=(V?oe.replace(at,""):oe).replace(Ie,"$1").replace(Ge,"$1;"),oe="function("+(ve||"obj")+`) {
  15. `+(ve?"":`obj || (obj = {});
  16. `)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(V?`, __j = Array.prototype.join;
  17. function print() { __p += __j.call(arguments, '') }
  18. `:`;
  19. `)+oe+`return __p
  20. }`;var Re=Rs(function(){return Ke(k,pe+"return "+oe).apply(n,F)});if(Re.source=oe,Rr(Re))throw Re;return Re}function K1(e){return Je(e).toLowerCase()}function Z1(e){return Je(e).toUpperCase()}function J1(e,t,o){if(e=Je(e),e&&(o||t===n))return ja(e);if(!e||!(t=Ot(t)))return e;var c=on(e),g=on(t),k=Oa(c,g),F=Na(c,g)+1;return Mn(c,k,F).join("")}function q1(e,t,o){if(e=Je(e),e&&(o||t===n))return e.slice(0,Ha(e)+1);if(!e||!(t=Ot(t)))return e;var c=on(e),g=Na(c,on(t))+1;return Mn(c,0,g).join("")}function Y1(e,t,o){if(e=Je(e),e&&(o||t===n))return e.replace(tn,"");if(!e||!(t=Ot(t)))return e;var c=on(e),g=Oa(c,on(t));return Mn(c,g).join("")}function $1(e,t){var o=K,c=ee;if(st(t)){var g="separator"in t?t.separator:g;o="length"in t?_e(t.length):o,c="omission"in t?Ot(t.omission):c}e=Je(e);var k=e.length;if(Qn(e)){var F=on(e);k=F.length}if(o>=k)return e;var O=o-ei(c);if(O<1)return c;var V=F?Mn(F,0,O).join(""):e.slice(0,O);if(g===n)return V+c;if(F&&(O+=V.length-O),kr(g)){if(e.slice(O).search(g)){var te,ne=V;for(g.global||(g=Ko(g.source,Je(aa.exec(g))+"g")),g.lastIndex=0;te=g.exec(ne);)var oe=te.index;V=V.slice(0,oe===n?O:oe)}}else if(e.indexOf(Ot(g),O)!=O){var ae=V.lastIndexOf(g);ae>-1&&(V=V.slice(0,ae))}return V+c}function X1(e){return e=Je(e),e&&De.test(e)?e.replace(Vt,Ic):e}var Q1=di(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Mr=kd("toUpperCase");function _s(e,t,o){return e=Je(e),t=o?n:t,t===n?Tc(e)?Rc(e):fc(e):e.match(t)||[]}var Rs=Me(function(e,t){try{return zt(e,n,t)}catch(o){return Rr(o)?o:new be(o)}}),em=Sn(function(e,t){return Kt(t,function(o){o=pn(o),yn(e,o,xr(e[o],e))}),e});function tm(e){var t=e==null?0:e.length,o=he();return e=t?dt(e,function(c){if(typeof c[1]!="function")throw new Zt(s);return[o(c[0]),c[1]]}):[],Me(function(c){for(var g=-1;++g<t;){var k=e[g];if(zt(k[0],this,c))return zt(k[1],this,c)}})}function nm(e){return Iu(qt(e,v))}function Fr(e){return function(){return e}}function im(e,t){return e==null||e!==e?t:e}var om=Dd(),rm=Dd(!0);function Dt(e){return e}function Br(e){return sd(typeof e=="function"?e:qt(e,v))}function am(e){return cd(qt(e,v))}function dm(e,t){return ud(e,qt(t,v))}var sm=Me(function(e,t){return function(o){return bi(o,e,t)}}),lm=Me(function(e,t){return function(o){return bi(e,o,t)}});function Lr(e,t,o){var c=yt(t),g=oo(t,c);o==null&&!(st(t)&&(g.length||!c.length))&&(o=t,t=e,e=this,g=oo(t,yt(t)));var k=!(st(o)&&"chain"in o)||!!o.chain,F=Pn(e);return Kt(g,function(O){var V=t[O];e[O]=V,F&&(e.prototype[O]=function(){var te=this.__chain__;if(k||te){var ne=e(this.__wrapped__),oe=ne.__actions__=Rt(this.__actions__);return oe.push({func:V,args:arguments,thisArg:e}),ne.__chain__=te,ne}return V.apply(e,xn([this.value()],arguments))})}),e}function cm(){return Ct._===this&&(Ct._=Bc),this}function zr(){}function um(e){return e=_e(e),Me(function(t){return fd(t,e)})}var fm=mr(dt),pm=mr(Ma),mm=mr(Oo);function ks(e){return Tr(e)?No(pn(e)):Wu(e)}function hm(e){return function(t){return e==null?n:Wn(e,t)}}var gm=Fd(),vm=Fd(!0);function jr(){return[]}function Or(){return!1}function ym(){return{}}function Cm(){return""}function Sm(){return!0}function Tm(e,t){if(e=_e(e),e<1||e>me)return[];var o=se,c=Et(e,se);t=he(t),e-=se;for(var g=Wo(c,t);++o<e;)t(o);return g}function Pm(e){return we(e)?dt(e,pn):Nt(e)?[e]:Rt(Yd(Je(e)))}function bm(e){var t=++Mc;return Je(e)+t}var Em=uo(function(e,t){return e+t},0),wm=hr("ceil"),Im=uo(function(e,t){return e/t},1),xm=hr("floor");function _m(e){return e&&e.length?io(e,Dt,er):n}function Rm(e,t){return e&&e.length?io(e,he(t,2),er):n}function km(e){return La(e,Dt)}function Am(e,t){return La(e,he(t,2))}function Dm(e){return e&&e.length?io(e,Dt,or):n}function Mm(e,t){return e&&e.length?io(e,he(t,2),or):n}var Fm=uo(function(e,t){return e*t},1),Bm=hr("round"),Lm=uo(function(e,t){return e-t},0);function zm(e){return e&&e.length?Ho(e,Dt):0}function jm(e,t){return e&&e.length?Ho(e,he(t,2)):0}return I.after=ap,I.ary=ds,I.assign=Zp,I.assignIn=Ts,I.assignInWith=Eo,I.assignWith=Jp,I.at=qp,I.before=ss,I.bind=xr,I.bindAll=em,I.bindKey=ls,I.castArray=yp,I.chain=os,I.chunk=I0,I.compact=x0,I.concat=_0,I.cond=tm,I.conforms=nm,I.constant=Fr,I.countBy=zf,I.create=Yp,I.curry=cs,I.curryRight=us,I.debounce=fs,I.defaults=$p,I.defaultsDeep=Xp,I.defer=dp,I.delay=sp,I.difference=R0,I.differenceBy=k0,I.differenceWith=A0,I.drop=D0,I.dropRight=M0,I.dropRightWhile=F0,I.dropWhile=B0,I.fill=L0,I.filter=Of,I.flatMap=Hf,I.flatMapDeep=Wf,I.flatMapDepth=Vf,I.flatten=es,I.flattenDeep=z0,I.flattenDepth=j0,I.flip=lp,I.flow=om,I.flowRight=rm,I.fromPairs=O0,I.functions=r1,I.functionsIn=a1,I.groupBy=Gf,I.initial=U0,I.intersection=H0,I.intersectionBy=W0,I.intersectionWith=V0,I.invert=s1,I.invertBy=l1,I.invokeMap=Zf,I.iteratee=Br,I.keyBy=Jf,I.keys=yt,I.keysIn=At,I.map=yo,I.mapKeys=u1,I.mapValues=f1,I.matches=am,I.matchesProperty=dm,I.memoize=So,I.merge=p1,I.mergeWith=Ps,I.method=sm,I.methodOf=lm,I.mixin=Lr,I.negate=To,I.nthArg=um,I.omit=m1,I.omitBy=h1,I.once=cp,I.orderBy=qf,I.over=fm,I.overArgs=up,I.overEvery=pm,I.overSome=mm,I.partial=_r,I.partialRight=ps,I.partition=Yf,I.pick=g1,I.pickBy=bs,I.property=ks,I.propertyOf=hm,I.pull=J0,I.pullAll=ns,I.pullAllBy=q0,I.pullAllWith=Y0,I.pullAt=$0,I.range=gm,I.rangeRight=vm,I.rearg=fp,I.reject=Qf,I.remove=X0,I.rest=pp,I.reverse=wr,I.sampleSize=tp,I.set=y1,I.setWith=C1,I.shuffle=np,I.slice=Q0,I.sortBy=rp,I.sortedUniq=df,I.sortedUniqBy=sf,I.split=H1,I.spread=mp,I.tail=lf,I.take=cf,I.takeRight=uf,I.takeRightWhile=ff,I.takeWhile=pf,I.tap=_f,I.throttle=hp,I.thru=vo,I.toArray=ys,I.toPairs=Es,I.toPairsIn=ws,I.toPath=Pm,I.toPlainObject=Ss,I.transform=S1,I.unary=gp,I.union=mf,I.unionBy=hf,I.unionWith=gf,I.uniq=vf,I.uniqBy=yf,I.uniqWith=Cf,I.unset=T1,I.unzip=Ir,I.unzipWith=is,I.update=P1,I.updateWith=b1,I.values=ci,I.valuesIn=E1,I.without=Sf,I.words=_s,I.wrap=vp,I.xor=Tf,I.xorBy=Pf,I.xorWith=bf,I.zip=Ef,I.zipObject=wf,I.zipObjectDeep=If,I.zipWith=xf,I.entries=Es,I.entriesIn=ws,I.extend=Ts,I.extendWith=Eo,Lr(I,I),I.add=Em,I.attempt=Rs,I.camelCase=_1,I.capitalize=Is,I.ceil=wm,I.clamp=w1,I.clone=Cp,I.cloneDeep=Tp,I.cloneDeepWith=Pp,I.cloneWith=Sp,I.conformsTo=bp,I.deburr=xs,I.defaultTo=im,I.divide=Im,I.endsWith=R1,I.eq=an,I.escape=k1,I.escapeRegExp=A1,I.every=jf,I.find=Nf,I.findIndex=Xd,I.findKey=Qp,I.findLast=Uf,I.findLastIndex=Qd,I.findLastKey=e1,I.floor=xm,I.forEach=rs,I.forEachRight=as,I.forIn=t1,I.forInRight=n1,I.forOwn=i1,I.forOwnRight=o1,I.get=Ar,I.gt=Ep,I.gte=wp,I.has=d1,I.hasIn=Dr,I.head=ts,I.identity=Dt,I.includes=Kf,I.indexOf=N0,I.inRange=I1,I.invoke=c1,I.isArguments=Kn,I.isArray=we,I.isArrayBuffer=Ip,I.isArrayLike=kt,I.isArrayLikeObject=ft,I.isBoolean=xp,I.isBuffer=Fn,I.isDate=_p,I.isElement=Rp,I.isEmpty=kp,I.isEqual=Ap,I.isEqualWith=Dp,I.isError=Rr,I.isFinite=Mp,I.isFunction=Pn,I.isInteger=ms,I.isLength=Po,I.isMap=hs,I.isMatch=Fp,I.isMatchWith=Bp,I.isNaN=Lp,I.isNative=zp,I.isNil=Op,I.isNull=jp,I.isNumber=gs,I.isObject=st,I.isObjectLike=ct,I.isPlainObject=Ri,I.isRegExp=kr,I.isSafeInteger=Np,I.isSet=vs,I.isString=bo,I.isSymbol=Nt,I.isTypedArray=li,I.isUndefined=Up,I.isWeakMap=Hp,I.isWeakSet=Wp,I.join=G0,I.kebabCase=D1,I.last=$t,I.lastIndexOf=K0,I.lowerCase=M1,I.lowerFirst=F1,I.lt=Vp,I.lte=Gp,I.max=_m,I.maxBy=Rm,I.mean=km,I.meanBy=Am,I.min=Dm,I.minBy=Mm,I.stubArray=jr,I.stubFalse=Or,I.stubObject=ym,I.stubString=Cm,I.stubTrue=Sm,I.multiply=Fm,I.nth=Z0,I.noConflict=cm,I.noop=zr,I.now=Co,I.pad=B1,I.padEnd=L1,I.padStart=z1,I.parseInt=j1,I.random=x1,I.reduce=$f,I.reduceRight=Xf,I.repeat=O1,I.replace=N1,I.result=v1,I.round=Bm,I.runInContext=W,I.sample=ep,I.size=ip,I.snakeCase=U1,I.some=op,I.sortedIndex=ef,I.sortedIndexBy=tf,I.sortedIndexOf=nf,I.sortedLastIndex=of,I.sortedLastIndexBy=rf,I.sortedLastIndexOf=af,I.startCase=W1,I.startsWith=V1,I.subtract=Lm,I.sum=zm,I.sumBy=jm,I.template=G1,I.times=Tm,I.toFinite=bn,I.toInteger=_e,I.toLength=Cs,I.toLower=K1,I.toNumber=Xt,I.toSafeInteger=Kp,I.toString=Je,I.toUpper=Z1,I.trim=J1,I.trimEnd=q1,I.trimStart=Y1,I.truncate=$1,I.unescape=X1,I.uniqueId=bm,I.upperCase=Q1,I.upperFirst=Mr,I.each=rs,I.eachRight=as,I.first=ts,Lr(I,function(){var e={};return un(I,function(t,o){Ye.call(I.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),I.VERSION=i,Kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){I[e].placeholder=I}),Kt(["drop","take"],function(e,t){je.prototype[e]=function(o){o=o===n?1:gt(_e(o),0);var c=this.__filtered__&&!t?new je(this):this.clone();return c.__filtered__?c.__takeCount__=Et(o,c.__takeCount__):c.__views__.push({size:Et(o,se),type:e+(c.__dir__<0?"Right":"")}),c},je.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Kt(["filter","map","takeWhile"],function(e,t){var o=t+1,c=o==de||o==fe;je.prototype[e]=function(g){var k=this.clone();return k.__iteratees__.push({iteratee:he(g,3),type:o}),k.__filtered__=k.__filtered__||c,k}}),Kt(["head","last"],function(e,t){var o="take"+(t?"Right":"");je.prototype[e]=function(){return this[o](1).value()[0]}}),Kt(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");je.prototype[e]=function(){return this.__filtered__?new je(this):this[o](1)}}),je.prototype.compact=function(){return this.filter(Dt)},je.prototype.find=function(e){return this.filter(e).head()},je.prototype.findLast=function(e){return this.reverse().find(e)},je.prototype.invokeMap=Me(function(e,t){return typeof e=="function"?new je(this):this.map(function(o){return bi(o,e,t)})}),je.prototype.reject=function(e){return this.filter(To(he(e)))},je.prototype.slice=function(e,t){e=_e(e);var o=this;return o.__filtered__&&(e>0||t<0)?new je(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(t=_e(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},je.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},je.prototype.toArray=function(){return this.take(se)},un(je.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),g=I[c?"take"+(t=="last"?"Right":""):t],k=c||/^find/.test(t);!g||(I.prototype[t]=function(){var F=this.__wrapped__,O=c?[1]:arguments,V=F instanceof je,te=O[0],ne=V||we(F),oe=function(Fe){var Oe=g.apply(I,xn([Fe],O));return c&&ae?Oe[0]:Oe};ne&&o&&typeof te=="function"&&te.length!=1&&(V=ne=!1);var ae=this.__chain__,pe=!!this.__actions__.length,ve=k&&!ae,Re=V&&!pe;if(!k&&ne){F=Re?F:new je(this);var ye=e.apply(F,O);return ye.__actions__.push({func:vo,args:[oe],thisArg:n}),new Jt(ye,ae)}return ve&&Re?e.apply(this,O):(ye=this.thru(oe),ve?c?ye.value()[0]:ye.value():ye)})}),Kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Hi[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);I.prototype[e]=function(){var g=arguments;if(c&&!this.__chain__){var k=this.value();return t.apply(we(k)?k:[],g)}return this[o](function(F){return t.apply(we(F)?F:[],g)})}}),un(je.prototype,function(e,t){var o=I[t];if(o){var c=o.name+"";Ye.call(oi,c)||(oi[c]=[]),oi[c].push({name:t,func:o})}}),oi[co(n,j).name]=[{name:"wrapper",func:n}],je.prototype.clone=$c,je.prototype.reverse=Xc,je.prototype.value=Qc,I.prototype.at=Rf,I.prototype.chain=kf,I.prototype.commit=Af,I.prototype.next=Df,I.prototype.plant=Ff,I.prototype.reverse=Bf,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=Lf,I.prototype.first=I.prototype.head,gi&&(I.prototype[gi]=Mf),I},ti=kc();jn?((jn.exports=ti)._=ti,Bo._=ti):Ct._=ti}).call(fi)});function Us(h,u){var n=u.parentNode;n.lastChild==u?n.appendChild(h):n.insertBefore(h,u.nextSibling)}var Hs=function(){function h(u,n){Tt(this,h),this.id=n,this.jSPlugin=u,this.state={play:!1,loading:!1}}return Pt(h,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"setPlayStatus",value:function(n){this.state=Object.assign(this.state,n)}},{key:"loadingStart",value:function(n){var i=document.createElement("style");document.getElementsByTagName("head")[0].appendChild(i),i.innerHTML="@keyframes antRotate {to {transform: rotate(400deg);transform-origin:50% 50%;}} .loading {display: inline-block;z-index: 1000;-webkit-animation: antRotate 1s infinite linear;animation: antRotate 1s infinite linear;}";var r=n,a=document.getElementById(r),s=a.offsetWidth,l=a.offsetHeight,C=0,_=a.offsetLeft;document.getElementById("".concat(n,"-loading-id-0"))&&document.getElementById("".concat(n,"-loading-id-0")).parentNode.removeChild(document.getElementById("".concat(n,"-loading-id-0")));var y=document.createElement("div");y.setAttribute("id","".concat(n,"-loading-id-0"));var v="position:absolute;outline:none;pointer-events:none;";console.log("this.jSPlugin",this.jSPlugin),v+="width: 100%;background-size: cover; background-repeat:no-repeat;",v+="height: 100%;",v+="top:"+C+";",v+="left:"+_+"px;",y.setAttribute("style",v),y.style.height=l,y.setAttribute("class","loading-container"),Us(y,a);var m=1,w=document.createElement("div"),R=document.createElement("div");w.setAttribute("class","loading-item"),w.setAttribute("id","".concat(n,"-loading-item-0"));var v="display:inline-flex;pointer-events:none;flex-direction:column;justify-content:center;align-items: center;width:100%;height:"+l+"px;outline:none;vertical-align: top;position:absolute;";v+="left:"+E(l,s,m,0).left+"px;",v+="top:"+E(l,s,m,0).top+"px;",w.setAttribute("style",v);function E(T,d,f,x){var A=parseInt(x/f,10)*(T/f),B=x%f*(d/f);return{top:A,left:B}}var b=document.createElement("div");R.innerHTML="",R.style.color="#fff",b.setAttribute("class","loading");var j='<svg t="1567069979438" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2399" width="32" height="32"><path d="M538.5344 266.4448a133.12 133.12 0 1 1 133.12-133.12 133.4272 133.4272 0 0 1-133.12 133.12zM255.0144 372.1984a121.6768 121.6768 0 1 1 121.6768-121.6768 121.856 121.856 0 0 1-121.6768 121.6768zM134.72 647.424a107.3664 107.3664 0 1 1 107.3664-107.264A107.52 107.52 0 0 1 134.72 647.424z m120.32 272.4608a90.9824 90.9824 0 1 1 90.9824-90.9824A91.1616 91.1616 0 0 1 255.04 919.8848zM538.5344 1024a79.36 79.36 0 1 1 79.36-79.36 79.36 79.36 0 0 1-79.36 79.36z m287.6928-134.144a64.1792 64.1792 0 1 1 64.1792-64.1792 64.3584 64.3584 0 0 1-64.1792 64.1792z m117.76-296.704a52.6336 52.6336 0 1 1 52.6592-52.6336 52.608 52.608 0 0 1-52.6336 52.6336z m-158.72-338.7136a40.96 40.96 0 1 1 12.0064 28.8512 40.5248 40.5248 0 0 1-12.0064-28.8512z" fill="#ffffff" p-id="2400"></path></svg>';b.innerHTML=j,w.appendChild(b),w.appendChild(R),y.appendChild(w)}},{key:"loadingSetText",value:function(n){if(this.loadingClearText(),document.getElementById("".concat(this.id,"-loading-item-0"))){var i=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes[1];if(!i){var r=document.getElementById("".concat(this.id,"-loading-item-0"));i=document.createElement("div"),i.innerHTML=n.text,r.appendChild(i)}i.innerHTML=n.text,i.style.fontSize="14px",i.style.color=n.color||"#FFFFFF"}}},{key:"loadingClearText",value:function(){if(document.getElementById("".concat(this.id,"-loading-item-0"))){var n=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes;n.length>1?n[1].parentNode.removeChild(n[1]):n[0]&&n[0].parentNode.removeChild(n[0])}}},{key:"loadingClear",value:function(){if(document.getElementById("".concat(this.id,"-loading-item-0"))){for(var n=document.getElementById("".concat(this.id,"-loading-item-0")).childNodes,i=n.length-1;i>=0;i--)n[i].parentNode.removeChild(n[i]);document.getElementById("".concat(this.id,"-loading-id-0"))&&(document.getElementById("".concat(this.id,"-loading-id-0")).style.background="none")}}},{key:"loadingEnd",value:function(){var n=document.getElementById("".concat(this.id,"-loading-item-0"));if(n){n.parentNode.removeChild(n);var i=document.getElementById("".concat(this.id,"-loading-id-0"));i&&i.children.length===0&&i.parentNode.removeChild(i)}document.getElementById("".concat(this.id,"-loading-item-0")).style.background="none"}}]),h}(),Ws=function(){function h(u,n){Tt(this,h),this.id=n,this.jSPlugin=u,this.timer=null,this.state={play:!1,loading:!1}}return Pt(h,[{key:"default",value:function(n){var i=this,r="msgId";document.getElementById("".concat(this.id,"-").concat(r))&&document.getElementById("".concat(this.id,"-wrap")).removeChild(document.getElementById("".concat(this.id,"-").concat(r)));var a=document.createElement("div");a.id="".concat(this.id,"-").concat(r),a.style="position: absolute;top: 50%;left:calc(50% - ".concat(n.length*14/2,"px);padding: 4px 16px;background: #00000080;color: #FFFFFF;font-size: 14px"),a.innerHTML=n,document.getElementById("".concat(this.id,"-wrap")).appendChild(a),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){document.getElementById("".concat(i.id,"-wrap")).removeChild(document.getElementById("".concat(i.id,"-").concat(r)))},2e3)}}]),h}(),Vs=[{moduleCode:"",detailCode:"405984",description:"",solution:"",updateTime:1559564188e3},{moduleCode:"",detailCode:"10035",description:"\u83B7\u53D6\u5B50\u8D26\u6237AccessToken\u5F02\u5E38,\u5B50\u8D26\u6237\u4E0D\u5B58\u5728\u6216\u5B50\u8D26\u6237\u4E0D\u5C5E\u4E8E\u8BE5\u5F00\u53D1\u8005",solution:"",updateTime:1559551958e3},{moduleCode:"",detailCode:"1052674",description:"\u83B7\u53D6\u672C\u5730\u5F55\u50CF\u5931\u8D25",solution:"",updateTime:1558579653e3},{moduleCode:"",detailCode:"395547",description:"",solution:"",updateTime:1557367296e3},{moduleCode:"",detailCode:"12",description:"",solution:"",updateTime:1557229476e3},{moduleCode:"",detailCode:"10052",description:"\u4F59\u989D\u4E0D\u8DB3",solution:"",updateTime:1557121463e3},{moduleCode:"",detailCode:"20108",description:"\u5F53\u524D\u7528\u6237\u548C\u6240\u6DFB\u52A0\u7528\u6237\u4E0D\u662F\u597D\u53CB\u5173\u7CFB",solution:"",updateTime:1556541725e3},{moduleCode:"",detailCode:"10009",description:"",solution:"",updateTime:1556422452e3},{moduleCode:"",detailCode:"320001",description:"\u901A\u9053\u4E0D\u5B58\u5728",solution:"\u8BF7\u68C0\u67E5\u5F55\u50CF\u673A\u7684\u5173\u8054\u72B6\u6001\u662F\u5426\u6B63\u5E38\uFF0C\u6CA1\u6709\u6444\u50CF\u5934\u7684\u901A\u9053\u65E0\u6CD5\u64AD\u653E",updateTime:1556419044e3},{moduleCode:"",detailCode:"120001",description:"\u901A\u9053\u4E0D\u5B58\u5728",solution:"\u8BF7\u68C0\u67E5\u5F55\u50CF\u673A\u7684\u5173\u8054\u72B6\u6001\u662F\u5426\u6B63\u5E38\uFF0C\u6CA1\u6709\u6444\u50CF\u5934\u7684\u901A\u9053\u65E0\u6CD5\u64AD\u653E",updateTime:155641903e4},{moduleCode:"",detailCode:"320049",description:"",solution:"",updateTime:1556272984e3},{moduleCode:"",detailCode:"380227",description:"",solution:"",updateTime:1556264379e3},{moduleCode:"",detailCode:"10033",description:"policy\u53C2\u6570\u4FE1\u606F\u5F02\u5E38",solution:"",updateTime:1555922124e3},{moduleCode:"",detailCode:"10065",description:"weakAppKey \u4E0D\u5C5E\u4E8EaccessToken\u5BF9\u5E94\u7684\u7528\u6237",solution:"",updateTime:1555497522e3},{moduleCode:"",detailCode:"395416",description:"\u8BBE\u5907\u8FBE\u5230\u6700\u5927\u8FDE\u63A5\u6570\uFF0C\u65E0\u6CD5\u5EFA\u7ACB\u8FDE\u63A5",solution:"\u8BF7\u5347\u7EA7\u8BBE\u5907\u56FA\u4EF6\u7248\u672C",updateTime:1555394722e3},{moduleCode:"",detailCode:"100001",description:"",solution:"",updateTime:1555141776e3},{moduleCode:"",detailCode:"395558",description:"",solution:"",updateTime:1554987121e3},{moduleCode:"",detailCode:"70001",description:"\u667A\u80FD\u5BB6\u5C45\u4E70\u65AD\u7528\u6237\u8BBE\u5907\u53D7\u5230\u9650\u5236,\u5EFA\u8BAE\u5408\u7406\u9009\u62E9pagestart\u548CpageSize",solution:"",updateTime:1554691023e3},{moduleCode:"",detailCode:"170001",description:"",solution:"",updateTime:1554691023e3},{moduleCode:"",detailCode:"1012",description:"\u91CD\u7F6E\u5931\u8D25",solution:"",updateTime:1554645841e3},{moduleCode:"",detailCode:"1043",description:"\u91CD\u7F6E\u5931\u8D25",solution:"",updateTime:1554645834e3},{moduleCode:"",detailCode:"60060",description:"\u76F4\u64AD\u529F\u80FD\u672A\u5F00\u901A",solution:"\u901A\u9053\u672A\u5F00\u901A\u76F4\u64AD\u529F\u80FD\uFF0C\u8BF7\u5148\u5F00\u901A\u76F4\u64AD",updateTime:1554346018e3},{moduleCode:"",detailCode:"380203",description:"",solution:"",updateTime:1554093666e3},{moduleCode:"",detailCode:"399048",description:"\u514D\u8D39\u7248\u5E76\u53D1\u6570\u8FBE\u5230\u4E0A\u9650\uFF0C\u8BF7\u5347\u7EA7\u4F01\u4E1A\u7248\u4F7F\u7528\u591A\u5E76\u53D1\u80FD\u529B",solution:"\u5347\u7EA7\u6210\u4E3A\u4F01\u4E1A\u7248\u5957\u9910\u5373\u53EF\u53D6\u6D88\u5E76\u53D1\u6570\u9650\u5236",updateTime:1553839878e3},{moduleCode:"",detailCode:"60007",description:"\u9884\u7F6E\u70B9\u4E2A\u6570\u8D85\u8FC7\u6700\u5927\u503C",solution:"",updateTime:1553671316e3},{moduleCode:"",detailCode:"1005",description:"",solution:"",updateTime:1553513701e3},{moduleCode:"",detailCode:"20605",description:"\u5176\u4ED6\u7528\u6237\u6B63\u5728\u8BA4\u8BC1\u4E2D",solution:"",updateTime:1552976317e3},{moduleCode:"",detailCode:"90004",description:"\u5F53\u524D\u578B\u53F7\u8BBE\u5907\u6682\u65F6\u4E0D\u652F\u6301AI\u4EFB\u52A1\uFF1ACS-C3W-3B1WFR-YGL",solution:"",updateTime:1552898525e3},{moduleCode:"",detailCode:"60046",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7684IP\u548C\u672C\u8BBE\u5907\u7684IP\u51B2\u7A81",solution:"",updateTime:1552872372e3},{moduleCode:"",detailCode:"3",description:"\u4FEE\u6539\u89C6\u9891\u6E05\u6670\u5EA6\u5931\u8D25!",solution:"",updateTime:1552440229e3},{moduleCode:"",detailCode:"1013",description:"",solution:"",updateTime:1552035069e3},{moduleCode:"",detailCode:"370007",description:"",solution:"",updateTime:1551852327e3},{moduleCode:"",detailCode:"-1",description:"",solution:"",updateTime:1551752889e3},{moduleCode:"",detailCode:"30005",description:"\u5F31\u8D26\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:1551422358e3},{moduleCode:"",detailCode:"90006",description:"\u7528\u6237\u64CD\u4F5CAI\u4EFB\u52A1\u53D7\u9650",solution:"",updateTime:155107332e4},{moduleCode:"",detailCode:"60203",description:"\u672A\u5F00\u901A\u76F8\u5173\u670D\u52A1",solution:"",updateTime:155062307e4},{moduleCode:"",detailCode:"10002",description:"accessToken\u8FC7\u671F\u6216\u5F02\u5E38",solution:"",updateTime:1550300346e3},{moduleCode:"",detailCode:"380339",description:"",solution:"",updateTime:1549889458e3},{moduleCode:"",detailCode:"90002",description:"AI\u4EFB\u52A1\u8BBE\u5907\u914D\u7F6E\u6570\u8FBE\u5230\u4E0A\u9650\uFF1A3",solution:"",updateTime:1549071664e3},{moduleCode:"",detailCode:"380008",description:"",solution:"",updateTime:1549005979e3},{moduleCode:"",detailCode:"320227",description:"",solution:"",updateTime:1548739731e3},{moduleCode:"",detailCode:"60059",description:"ezopen\u5730\u5740\u5747\u4E0D\u53EF\u7528",solution:"",updateTime:154839535e4},{moduleCode:"",detailCode:"10005",description:"appKey\u5F02\u5E38",solution:"",updateTime:1548317858e3},{moduleCode:"",detailCode:"60045",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7684IP\u548C\u5176\u4ED6\u901A\u9053\u7684IP\u51B2\u7A81",solution:"",updateTime:1548155085e3},{moduleCode:"",detailCode:"60047",description:"\u7801\u6D41\u7C7B\u578B\u4E0D\u652F\u6301",solution:"",updateTime:1547962108e3},{moduleCode:"",detailCode:"60041",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u88AB\u5176\u4ED6\u8BBE\u5907\u5173\u8054\u6216\u54CD\u5E94\u8D85\u65F6",solution:"",updateTime:154796098e4},{moduleCode:"",detailCode:"110029",description:"\u4E2A\u4EBA\u7528\u6237\u63A5\u53E3\u8C03\u7528\u9891\u7387\u8D85\u9650",solution:"\u8BF7\u5347\u7EA7\u4F01\u4E1A\u7248\uFF1Ahttps://open.ys7.com/price.html",updateTime:1547606859e3},{moduleCode:"",detailCode:"380355",description:"\u8BBE\u5907\u76F4\u8FDE\u63A8\u6D41\u5F02\u5E38\u7ED3\u675F",solution:"",updateTime:1547106294e3},{moduleCode:"",detailCode:"320081",description:"",solution:"",updateTime:1547106279e3},{moduleCode:"",detailCode:"60035",description:"\u8D2D\u4E70\u4E91\u5B58\u50A8\u670D\u52A1\u5931\u8D25",solution:"",updateTime:1547026959e3},{moduleCode:"",detailCode:"90005",description:"\u8BBE\u5907\u5DF2\u5B58\u5728\uFF1AC75714141",solution:"",updateTime:1546940622e3},{moduleCode:"",detailCode:"1053445",description:"\u8BE5\u65F6\u95F4\u6BB5\u6CA1\u6709\u5F55\u50CF\u7247\u6BB5",solution:"",updateTime:1546935727e3},{moduleCode:"",detailCode:"90007",description:"\u8BBE\u5907\u672A\u52A0\u5165\u5230AI\u4EFB\u52A1",solution:"",updateTime:1546932948e3},{moduleCode:"",detailCode:"326000",description:"",solution:"",updateTime:1546823143e3},{moduleCode:"",detailCode:"1021",description:"\u91CD\u7F6E\u5931\u8D25",solution:"",updateTime:1546781152e3},{moduleCode:"",detailCode:"2001",description:"\u5220\u9664\u8BBE\u5907\u5931\u8D25!",solution:"",updateTime:1546422886e3},{moduleCode:"",detailCode:"380425",description:"",solution:"",updateTime:1546407694e3},{moduleCode:"",detailCode:"120097",description:"",solution:"",updateTime:1546085995e3},{moduleCode:"",detailCode:"10059",description:"requestId\u5DF2\u5B58\u5728",solution:"",updateTime:1545824509e3},{moduleCode:"",detailCode:"1154723",description:"",solution:"",updateTime:1545795209e3},{moduleCode:"",detailCode:"60043",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u8D85\u51FA\u6700\u5927\u6570\u91CF",solution:"",updateTime:1545493607e3},{moduleCode:"",detailCode:"1152677",description:"",solution:"",updateTime:1545313404e3},{moduleCode:"",detailCode:"20097",description:"\u8BBE\u5907\u6DFB\u52A0\u5F02\u5E38,\u8BBE\u5907\u9A8C\u8BC1\u7801\u4E3AABCDEF\u6216\u8BBE\u5907\u88ABN1\uFF0CR1\u5173\u8054",solution:"",updateTime:1545310795e3},{moduleCode:"",detailCode:"10060",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u8BE5\u4E91\u5B58\u50A8\u7C7B\u578B",solution:"",updateTime:1545309064e3},{moduleCode:"",detailCode:"20102",description:"\u65E0\u76F8\u5E94\u9080\u8BF7\u4FE1\u606F\uFF0C\u65E0\u6CD5\u63A5\u53D7\u9080\u8BF7",solution:"",updateTime:1545204966e3},{moduleCode:"",detailCode:"10053",description:"\u4E91\u5B58\u50A8\u5F00\u901A\u4E2D",solution:"",updateTime:1545100293e3},{moduleCode:"",detailCode:"20401",description:"\u7528\u6237\u4E91\u7A7A\u95F4\u4FE1\u606F\u4E0D\u5B58\u5728",solution:"",updateTime:154501788e4},{moduleCode:"",detailCode:"20600",description:"\u4E34\u65F6\u5BC6\u7801\u6570\u5DF2\u8FBE\u4E0A\u9650",solution:"",updateTime:1544873457e3},{moduleCode:"",detailCode:"901",description:"",solution:"",updateTime:1544693519e3},{moduleCode:"",detailCode:"60210",description:"\u56FE\u7247\u6570\u636E\u9519\u8BEF",solution:"",updateTime:1544604457e3},{moduleCode:"",detailCode:"10013",description:"\u60A8\u7684\u5E94\u7528\u6CA1\u6709\u6743\u9650\u8C03\u7528",solution:"",updateTime:1544416237e3},{moduleCode:"",detailCode:"70007",description:"\u6388\u6743\u7801\u4E0D\u5B58\u5728",solution:"",updateTime:1544179533e3},{moduleCode:"",detailCode:"10015",description:"\u6388\u6743\u5730\u5740\u4E0D\u5B58\u5728",solution:"",updateTime:154416324e4},{moduleCode:"",detailCode:"320423",description:"",solution:"",updateTime:1544100685e3},{moduleCode:"",detailCode:"370009",description:"",solution:"",updateTime:1544077151e3},{moduleCode:"",detailCode:"10031",description:"\u5B50\u8D26\u6237\u6216\u8424\u77F3\u7528\u6237\u6CA1\u6709\u6743\u9650",solution:"",updateTime:1543990462e3},{moduleCode:"",detailCode:"10055",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u8BD5\u7528\u4E91\u5B58\u50A8\u670D\u52A1",solution:"",updateTime:1543986292e3},{moduleCode:"",detailCode:"60042",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u5BC6\u7801\u9519\u8BEF",solution:"",updateTime:1543710913e3},{moduleCode:"",detailCode:"60082",description:"\u8BBE\u5907\u6B63\u5728\u54CD\u5E94\u672C\u6B21\u58F0\u6E90\u5B9A\u4F4D",solution:"",updateTime:1543647426e3},{moduleCode:"",detailCode:"10056",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u4E91\u5B58\u50A8\u670D\u52A1\u8F6C\u51FA",solution:"",updateTime:1543558342e3},{moduleCode:"",detailCode:"20104",description:"\u597D\u53CB\u4E0D\u5B58\u5728",solution:"",updateTime:1543492403e3},{moduleCode:"",detailCode:"20111",description:"\u597D\u53CB\u4E0D\u662F\u7B49\u5F85\u9A8C\u8BC1\u72B6\u6001\uFF0C\u65E0\u6CD5\u63A5\u53D7\u9080\u8BF7",solution:"",updateTime:1543492365e3},{moduleCode:"",detailCode:"20107",description:"\u4E0D\u80FD\u6DFB\u52A0\u81EA\u5DF1\u4E3A\u597D\u53CB",solution:"",updateTime:1543480986e3},{moduleCode:"",detailCode:"1",description:"\u8BBE\u5907\u8FD4\u56DE\u5176\u4ED6\u9519\u8BEF",solution:"",updateTime:1543459921e3},{moduleCode:"",detailCode:"60084",description:"\u5F53\u524D\u6B63\u5728\u5173\u95ED\u9690\u79C1\u906E\u853D",solution:"",updateTime:1543456515e3},{moduleCode:"",detailCode:"380255",description:"",solution:"",updateTime:1543411652e3},{moduleCode:"",detailCode:"20015",description:"\u8BBE\u5907\u4E0D\u652F\u6301",solution:"",updateTime:1543390936e3},{moduleCode:"",detailCode:"30003",description:"\u624B\u673A\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"",updateTime:1543389137e3},{moduleCode:"",detailCode:"20615",description:"\u9501\u7528\u6237\u5DF2\u5B58\u5728",solution:"",updateTime:1543388325e3},{moduleCode:"",detailCode:"60061",description:"\u8D26\u6237\u6D41\u91CF\u5DF2\u8D85\u51FA\u6216\u672A\u8D2D\u4E70\uFF0C\u9650\u5236\u5F00\u901A",solution:"",updateTime:1543372581e3},{moduleCode:"",detailCode:"60020",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u8BE5\u4FE1\u4EE4",solution:"",updateTime:1543321636e3},{moduleCode:"",detailCode:"320146",description:"",solution:"",updateTime:1543318472e3},{moduleCode:"",detailCode:"60018",description:"\u8BBE\u5907\u5347\u7EA7\u5931\u8D25",solution:"",updateTime:1543304928e3},{moduleCode:"",detailCode:"60044",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7F51\u7EDC\u4E0D\u53EF\u8FBE\u8D85\u65F6",solution:"",updateTime:1543304102e3},{moduleCode:"",detailCode:"20619",description:"\u4E3B\u7528\u6237\u65E0\u6CD5\u5220\u9664",solution:"",updateTime:1543290219e3},{moduleCode:"",detailCode:"20608",description:"\u9501\u7528\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:154328195e4},{moduleCode:"",detailCode:"20609",description:"\u8BBE\u5907\u54CD\u5E94\u8D85\u65F6,\u95E8\u9501\u901A\u4FE1\u6545\u969C\u6216\u8005\u7535\u91CF\u4E0D\u8DB3,\u8BF7\u91CD\u8BD5.",solution:"",updateTime:1543281601e3},{moduleCode:"",detailCode:"1049954",description:"\u5347\u7EA7\u8BBE\u5907\u5931\u8D25",solution:"",updateTime:1543279264e3},{moduleCode:"",detailCode:"60009",description:"\u6B63\u5728\u8C03\u7528\u9884\u7F6E\u70B9",solution:"",updateTime:1543238114e3},{moduleCode:"",detailCode:"1052677",description:"\u83B7\u53D6\u672C\u5730\u5F55\u50CF\u5931\u8D25",solution:"",updateTime:1543207604e3},{moduleCode:"",detailCode:"327000",description:"",solution:"",updateTime:1543196609e3},{moduleCode:"",detailCode:"20021",description:"\u8BBE\u5907\u5728\u7EBF\uFF0C\u672A\u88AB\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:1543193436e3},{moduleCode:"",detailCode:"20202",description:"\u64CD\u4F5C\u7559\u8A00\u4FE1\u606F\u5931\u8D25",solution:"",updateTime:1543191562e3},{moduleCode:"",detailCode:"1052678",description:"\u83B7\u53D6\u672C\u5730\u5F55\u50CF\u5931\u8D25",solution:"",updateTime:1543132218e3},{moduleCode:"",detailCode:"1054723",description:"\u683C\u5F0F\u5316\u8BBE\u5907\u5931\u8D25",solution:"",updateTime:1543129833e3},{moduleCode:"",detailCode:"20109",description:"\u5BF9\u5E94\u5206\u4EAB\u4E0D\u5B58\u5728",solution:"",updateTime:1543129111e3},{moduleCode:"",detailCode:"60026",description:"\u8BBE\u5907\u5904\u4E8E\u9690\u79C1\u906E\u853D\u72B6\u6001",solution:"",updateTime:1543110403e3},{moduleCode:"",detailCode:"60083",description:"\u5F53\u524D\u6B63\u5728\u5F00\u542F\u9690\u79C1\u906E\u853D",solution:"",updateTime:1543071148e3},{moduleCode:"",detailCode:"60001",description:"\u7528\u6237\u65E0\u4E91\u53F0\u63A7\u5236\u6743\u9650",solution:"",updateTime:1543059167e3},{moduleCode:"",detailCode:"2003",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF",solution:"",updateTime:1543051046e3},{moduleCode:"",detailCode:"-24",description:"\u8BBE\u7F6E\u8BBE\u5907enable\u9519\u8BEF",solution:"",updateTime:1543042701e3},{moduleCode:"",detailCode:"10018",description:"",solution:"",updateTime:1543041564e3},{moduleCode:"",detailCode:"20103",description:"\u597D\u53CB\u5DF2\u5B58\u5728",solution:"",updateTime:154303843e4},{moduleCode:"",detailCode:"70010",description:"\u6388\u6743\u5F02\u5E38\u8BF7\u91CD\u8BD5",solution:"",updateTime:154303559e4},{moduleCode:"",detailCode:"60056",description:"\u5220\u9664\u8BBE\u5907\u5931\u8D25",solution:"",updateTime:1543031275e3},{moduleCode:"",detailCode:"60040",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u4E0D\u5728\u540C\u4E00\u5C40\u57DF\u7F51",solution:"",updateTime:154303121e4},{moduleCode:"",detailCode:"60019",description:"\u52A0\u5BC6\u5DF2\u5F00\u542F",solution:"",updateTime:1543029931e3},{moduleCode:"",detailCode:"1054722",description:"\u683C\u5F0F\u5316\u8BBE\u5907\u5931\u8D25",solution:"",updateTime:1543028537e3},{moduleCode:"",detailCode:"20016",description:"\u5F53\u524D\u8BBE\u5907\u6B63\u5728\u683C\u5F0F\u5316",solution:"",updateTime:1543028537e3},{moduleCode:"",detailCode:"10024",description:"\u900F\u660E\u901A\u9053\u6743\u9650\u6821\u9A8C\u4E0D\u901A\u8FC7",solution:"",updateTime:154302554e4},{moduleCode:"",detailCode:"6002",description:"\u5220\u9664\u8BBE\u5907\u5931\u8D25!",solution:"",updateTime:1543025026e3},{moduleCode:"",detailCode:"1011",description:"\u9A8C\u8BC1\u7801\u9519\u8BEF\uFF01",solution:"",updateTime:1543016865e3},{moduleCode:"",detailCode:"60032",description:"\u5361\u5BC6\u5DF2\u4F7F\u7528",solution:"",updateTime:1543006668e3},{moduleCode:"",detailCode:"10034",description:"\u5B50\u8D26\u53F7\u5DF2\u5B58\u5728",solution:"",updateTime:1542989194e3},{moduleCode:"",detailCode:"20301",description:"\u6839\u636Euuid\u67E5\u8BE2\u8054\u52A8\u4FE1\u606F\u4E0D\u5B58\u5728",solution:"",updateTime:1542988651e3},{moduleCode:"",detailCode:"1041",description:"\u83B7\u53D6\u9A8C\u8BC1\u7801\u8FC7\u4E8E\u9891\u7E41",solution:"",updateTime:1542980953e3},{moduleCode:"",detailCode:"10012",description:"\u8BE5appkey\u4E0B\u5DF2\u7ED1\u5B9A\u91CD\u590D\u7684phone\uFF01",solution:"",updateTime:15429808e5},{moduleCode:"",detailCode:"1008",description:"phone\u4E0D\u5408\u6CD5\uFF01",solution:"",updateTime:1542979812e3},{moduleCode:"",detailCode:"60023",description:"\u8BA2\u9605\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:1542979006e3},{moduleCode:"",detailCode:"5",description:"\u8BBE\u5907\u8FD4\u56DE\u5176\u4ED6\u9519\u8BEF",solution:"",updateTime:1542977828e3},{moduleCode:"",detailCode:"60006",description:"\u4E91\u53F0\u5F53\u524D\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:1542977598e3},{moduleCode:"",detailCode:"131",description:"\u4FEE\u6539\u89C6\u9891\u6E05\u6670\u5EA6\u5931\u8D25!",solution:"",updateTime:1542977246e3},{moduleCode:"",detailCode:"10019",description:"\u5BC6\u7801\u9519\u8BEF",solution:"",updateTime:1542976628e3},{moduleCode:"",detailCode:"10004",description:"\u7528\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:1542976268e3},{moduleCode:"",detailCode:"20201",description:"\u64CD\u4F5C\u62A5\u8B66\u4FE1\u606F\u5931\u8D25",solution:"",updateTime:1542975906e3},{moduleCode:"",detailCode:"20024",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u5DF2\u7ECF\u88AB\u522B\u7684\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:1542975858e3},{moduleCode:"",detailCode:"60004",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u5DE6\u9650\u4F4D",solution:"",updateTime:1542975207e3},{moduleCode:"",detailCode:"1052679",description:"\u4FEE\u6539\u89C6\u9891\u6E05\u6670\u5EA6\u5931\u8D25!",solution:"",updateTime:1542974886e3},{moduleCode:"",detailCode:"20031",description:"\u8BF7\u5728\u8424\u77F3\u5BA2\u6237\u7AEF\u5173\u95ED\u7EC8\u7AEF\u7ED1\u5B9A",solution:"",updateTime:1542974756e3},{moduleCode:"",detailCode:"1053825",description:"\u83B7\u53D6\u672C\u5730\u5F55\u50CF\u5931\u8D25",solution:"",updateTime:1542974692e3},{moduleCode:"",detailCode:"60011",description:"\u9884\u7F6E\u70B9\u4E0D\u5B58\u5728",solution:"",updateTime:1542974414e3},{moduleCode:"",detailCode:"1052936",description:"\u4FEE\u6539\u89C6\u9891\u6E05\u6670\u5EA6\u5931\u8D25!",solution:"",updateTime:154297439e4},{moduleCode:"",detailCode:"1016",description:"",solution:"",updateTime:1542974273e3},{moduleCode:"",detailCode:"10032",description:"\u5B50\u8D26\u53F7\u4E0D\u5B58\u5728",solution:"",updateTime:1542973906e3},{moduleCode:"",detailCode:"20013",description:"\u8BBE\u5907\u5DF2\u88AB\u522B\u4EBA\u6DFB\u52A0",solution:"",updateTime:1542973817e3},{moduleCode:"",detailCode:"50000",description:"\u670D\u52A1\u5668\u9519\u8BEF!",solution:"",updateTime:1542973801e3},{moduleCode:"",detailCode:"60010",description:"\u8BE5\u9884\u7F6E\u70B9\u5DF2\u7ECF\u662F\u5F53\u524D\u4F4D\u7F6E",solution:"",updateTime:15429738e5},{moduleCode:"",detailCode:"60003",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u4E0B\u9650\u4F4D",solution:"",updateTime:154297377e4},{moduleCode:"",detailCode:"4",description:"\u8BBE\u5907\u8FD4\u56DE\u5176\u4ED6\u9519\u8BEF",solution:"",updateTime:1542973755e3},{moduleCode:"",detailCode:"60016",description:"\u52A0\u5BC6\u672A\u5F00\u542F\uFF0C\u65E0\u9700\u5173\u95ED",solution:"",updateTime:1542973753e3},{moduleCode:"",detailCode:"60002",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u4E0A\u9650\u4F4D",solution:"",updateTime:1542973742e3},{moduleCode:"",detailCode:"20023",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u672A\u88AB\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:1542973685e3},{moduleCode:"",detailCode:"10008",description:"",solution:"",updateTime:1542973676e3},{moduleCode:"",detailCode:"20010",description:"\u8BBE\u5907\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"",updateTime:1542973658e3},{moduleCode:"",detailCode:"60005",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u53F3\u9650\u4F4D",solution:"",updateTime:1542973657e3},{moduleCode:"",detailCode:"20017",description:"\u8BBE\u5907\u5DF2\u7ECF\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:1542973648e3},{moduleCode:"",detailCode:"20020",description:"\u8BBE\u5907\u5728\u7EBF\uFF0C\u5DF2\u7ECF\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:1542973533e3},{moduleCode:"",detailCode:"20029",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u5DF2\u7ECF\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:154297353e4},{moduleCode:"",detailCode:"10014",description:"APPKEY\u4E0B\u5BF9\u5E94\u7684\u7B2C\u4E09\u65B9userId\u548Cphone\u672A\u7ED1\u5B9A\uFF01",solution:"",updateTime:1542973499e3},{moduleCode:"",detailCode:"20002",description:"\u8BBE\u5907\u4E0D\u5B58\u5728",solution:"",updateTime:1542973499e3},{moduleCode:"",detailCode:"10030",description:"appkey\u548Cappsecret\u4E0D\u5339\u914D",solution:"",updateTime:154297349e4},{moduleCode:"",detailCode:"20022",description:"\u8BBE\u5907\u5728\u7EBF\uFF0C\u5DF2\u7ECF\u88AB\u522B\u7684\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:1542973486e3},{moduleCode:"",detailCode:"20008",description:"\u8BBE\u5907\u54CD\u5E94\u8D85\u65F6",solution:"",updateTime:1542973484e3},{moduleCode:"",detailCode:"20032",description:"\u8BE5\u7528\u6237\u4E0B\u901A\u9053\u4E0D\u5B58\u5728",solution:"",updateTime:1542973481e3},{moduleCode:"",detailCode:"20006",description:"\u7F51\u7EDC\u5F02\u5E38",solution:"",updateTime:1542973475e3},{moduleCode:"",detailCode:"20014",description:"deviceSerial\u4E0D\u5408\u6CD5!",solution:"",updateTime:1542973454e3},{moduleCode:"",detailCode:"20007",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF",solution:"",updateTime:1542973454e3},{moduleCode:"",detailCode:"20018",description:"\u8BE5\u7528\u6237\u4E0D\u62E5\u6709\u8BE5\u8BBE\u5907",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"10010",description:"",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"10011",description:"\u672A\u7ED1\u5B9A\uFF01",solution:"",updateTime:1542973453e3},{moduleCode:"",detailCode:"20001",description:"\u901A\u9053\u4E0D\u5B58\u5728!",solution:"",updateTime:1542973452e3},{moduleCode:"",detailCode:"10017",description:"appKey\u4E0D\u5B58\u5728",solution:"",updateTime:1542973451e3},{moduleCode:"",detailCode:"400259",description:"",solution:"",updateTime:1542875643e3},{moduleCode:"",detailCode:"400004",description:"",solution:"",updateTime:1542873364e3},{moduleCode:"",detailCode:"3840",description:"",solution:"",updateTime:154186e7},{moduleCode:"",detailCode:"-1017",description:"",solution:"",updateTime:1541733663e3},{moduleCode:"",detailCode:"320025",description:"",solution:"",updateTime:1541078281e3},{moduleCode:"",detailCode:"320024",description:"",solution:"",updateTime:1540801374e3},{moduleCode:"",detailCode:"321002",description:"",solution:"",updateTime:1540631734e3},{moduleCode:"",detailCode:"321000",description:"",solution:"",updateTime:1540609178e3},{moduleCode:"",detailCode:"321022",description:"",solution:"",updateTime:1540548345e3},{moduleCode:"",detailCode:"321016",description:"",solution:"",updateTime:1540287187e3},{moduleCode:"",detailCode:"320023",description:"",solution:"",updateTime:1539825993e3},{moduleCode:"",detailCode:"-1016",description:"",solution:"",updateTime:1539584931e3},{moduleCode:"",detailCode:"8",description:"",solution:"",updateTime:1539391812e3},{moduleCode:"",detailCode:"1075127593",description:"",solution:"",updateTime:1538959251e3},{moduleCode:"",detailCode:"380421",description:"",solution:"",updateTime:1537288465e3},{moduleCode:"",detailCode:"322000",description:"\u9EA6\u514B\u98CE\u6743\u9650\u672A\u5F00\u542F",solution:"",updateTime:1536820136e3},{moduleCode:"",detailCode:"1152678",description:"",solution:"",updateTime:1536738348e3},{moduleCode:"",detailCode:"320047",description:"",solution:"",updateTime:1536664472e3},{moduleCode:"",detailCode:"327006",description:"",solution:"",updateTime:153613612e4},{moduleCode:"",detailCode:"1074807593",description:"",solution:"",updateTime:1536135035e3},{moduleCode:"",detailCode:"320291",description:"",solution:"",updateTime:1536110836e3},{moduleCode:"",detailCode:"320045",description:"",solution:"",updateTime:1535963775e3},{moduleCode:"",detailCode:"370004",description:"",solution:"",updateTime:1535883699e3},{moduleCode:"",detailCode:"1149954",description:"",solution:"",updateTime:1535700674e3},{moduleCode:"",detailCode:"320053",description:"",solution:"",updateTime:1535681079e3},{moduleCode:"",detailCode:"400000",description:"",solution:"",updateTime:1535532332e3},{moduleCode:"",detailCode:"110028",description:"\u4E2A\u4EBA\u7248\u6293\u56FE\u63A5\u53E3\u65E5\u8C03\u7528\u6B21\u6570\u8D85\u51FA\u9650\u5236",solution:"\u8BF7\u5347\u7EA7\u4F01\u4E1A\u7248\uFF1Ahttps://open.ys7.com/price.html",updateTime:1535348756e3},{moduleCode:"",detailCode:"110027",description:"\u4E2A\u4EBA\u7248\u5E10\u53F7\u6570\u91CF\u8D85\u51FA\u5B89\u5168\u9650\u5236\uFF0C\u65E0\u6CD5\u8C03\u7528",solution:"\u8BF7\u5347\u7EA7\u4F01\u4E1A\u7248\uFF1Ahttps://open.ys7.com/price.html",updateTime:1535348734e3},{moduleCode:"",detailCode:"110026",description:"\u8BBE\u5907\u6570\u91CF\u8D85\u51FA\u4E2A\u4EBA\u7248\u9650\u5236\uFF0C\u5F53\u524D\u8BBE\u5907\u65E0\u6CD5\u64CD\u4F5C",solution:"\u8BF7\u5347\u7EA7\u4F01\u4E1A\u7248\uFF1Ahttps://open.ys7.com/price.html",updateTime:1535348588e3},{moduleCode:"",detailCode:"100000",description:"",solution:"",updateTime:1534980008e3},{moduleCode:"",detailCode:"324004",description:"",solution:"",updateTime:1534927762e3},{moduleCode:"",detailCode:"360104",description:"",solution:"",updateTime:1534761006e3},{moduleCode:"",detailCode:"320204",description:"",solution:"",updateTime:1534584221e3},{moduleCode:"",detailCode:"380001",description:"",solution:"",updateTime:1534404715e3},{moduleCode:"",detailCode:"380204",description:"",solution:"",updateTime:1534401682e3},{moduleCode:"",detailCode:"328006",description:"",solution:"",updateTime:1534144407e3},{moduleCode:"",detailCode:"321703",description:"",solution:"",updateTime:1534127274e3},{moduleCode:"",detailCode:"321510",description:"",solution:"",updateTime:1533428892e3},{moduleCode:"",detailCode:"321006",description:"",solution:"",updateTime:1533036916e3},{moduleCode:"",detailCode:"50009",description:"",solution:"",updateTime:1532078548e3},{moduleCode:"",detailCode:"50007",description:"",solution:"",updateTime:153199172e4},{moduleCode:"",detailCode:"50018",description:"",solution:"",updateTime:1531912829e3},{moduleCode:"",detailCode:"380451",description:"",solution:"",updateTime:15316157e5},{moduleCode:"",detailCode:"380336",description:"",solution:"",updateTime:1531231721e3},{moduleCode:"",detailCode:"360020",description:"",solution:"",updateTime:1531117554e3},{moduleCode:"",detailCode:"380418",description:"",solution:"",updateTime:153110707e4},{moduleCode:"",detailCode:"1153445",description:"\u8BBE\u5907\u5728\u8BE5\u65F6\u95F4\u6BB5\u5185\u6CA1\u6709\u5F55\u50CF",solution:"",updateTime:1530944007e3},{moduleCode:"",detailCode:"110007",description:"\u8C03\u7528\u63A5\u53E3\u603B\u6B21\u6570\u8FBE\u5230\u4E0A\u9650",solution:"\u8BF7\u5347\u7EA7\u4F01\u4E1A\u7248\uFF0C\u83B7\u53D6\u66F4\u9AD8\u80FD\u529B",updateTime:1530935584e3},{moduleCode:"",detailCode:"360019",description:"",solution:"",updateTime:1530869771e3},{moduleCode:"",detailCode:"360100",description:"",solution:"",updateTime:1530786188e3},{moduleCode:"",detailCode:"380042",description:"",solution:"",updateTime:1530775199e3},{moduleCode:"",detailCode:"320355",description:"",solution:"",updateTime:1530716074e3},{moduleCode:"",detailCode:"100003",description:"",solution:"",updateTime:1530232541e3},{moduleCode:"",detailCode:"371026",description:"",solution:"",updateTime:15301926e5},{moduleCode:"",detailCode:"102",description:"",solution:"",updateTime:1529895641e3},{moduleCode:"",detailCode:"380201",description:"",solution:"",updateTime:1529740929e3},{moduleCode:"",detailCode:"320054",description:"",solution:"",updateTime:1529544875e3},{moduleCode:"",detailCode:"500101",description:"",solution:"",updateTime:1529485953e3},{moduleCode:"",detailCode:"321001",description:"",solution:"",updateTime:1529411048e3},{moduleCode:"",detailCode:"321508",description:"",solution:"",updateTime:1529393279e3},{moduleCode:"",detailCode:"405991",description:"",solution:"",updateTime:1529380238e3},{moduleCode:"",detailCode:"380461",description:"",solution:"",updateTime:1529130941e3},{moduleCode:"",detailCode:"-1019",description:"",solution:"",updateTime:1529057245e3},{moduleCode:"",detailCode:"322009",description:"",solution:"",updateTime:1528965717e3},{moduleCode:"",detailCode:"324005",description:"",solution:"",updateTime:1528950153e3},{moduleCode:"",detailCode:"325000",description:"",solution:"",updateTime:1528947143e3},{moduleCode:"",detailCode:"326032",description:"",solution:"",updateTime:1528872971e3},{moduleCode:"",detailCode:"325032",description:"",solution:"",updateTime:1528863189e3},{moduleCode:"",detailCode:"328000",description:"",solution:"",updateTime:1528794505e3},{moduleCode:"",detailCode:"53",description:"",solution:"",updateTime:1528693249e3},{moduleCode:"",detailCode:"-1020",description:"",solution:"",updateTime:152849944e4},{moduleCode:"",detailCode:"329032",description:"",solution:"",updateTime:1528446301e3},{moduleCode:"",detailCode:"-1202",description:"",solution:"",updateTime:152843982e4},{moduleCode:"",detailCode:"2",description:"",solution:"",updateTime:1528434175e3},{moduleCode:"",detailCode:"1152936",description:"",solution:"",updateTime:1528345986e3},{moduleCode:"",detailCode:"328011",description:"",solution:"",updateTime:15283386e5},{moduleCode:"",detailCode:"28",description:"",solution:"",updateTime:152833753e4},{moduleCode:"",detailCode:"320356",description:"",solution:"",updateTime:1528188693e3},{moduleCode:"",detailCode:"320357",description:"",solution:"",updateTime:1528188517e3},{moduleCode:"",detailCode:"405800",description:"",solution:"",updateTime:1528168732e3},{moduleCode:"",detailCode:"405996",description:"",solution:"",updateTime:1528168686e3},{moduleCode:"",detailCode:"380357",description:"",solution:"",updateTime:1528011565e3},{moduleCode:"",detailCode:"328022",description:"",solution:"",updateTime:1527929065e3},{moduleCode:"",detailCode:"380003",description:"",solution:"",updateTime:1527927819e3},{moduleCode:"",detailCode:"50004",description:"",solution:"",updateTime:1527770643e3},{moduleCode:"",detailCode:"50011",description:"",solution:"",updateTime:1527770635e3},{moduleCode:"",detailCode:"370017",description:"",solution:"",updateTime:1527739514e3},{moduleCode:"",detailCode:"327032",description:"",solution:"",updateTime:1527726704e3},{moduleCode:"",detailCode:"324001",description:"",solution:"",updateTime:1527681892e3},{moduleCode:"",detailCode:"405997",description:"",solution:"",updateTime:1527653408e3},{moduleCode:"",detailCode:"405995",description:"",solution:"",updateTime:1527647283e3},{moduleCode:"",detailCode:"1153825",description:"",solution:"",updateTime:1527601747e3},{moduleCode:"",detailCode:"328002",description:"",solution:"",updateTime:1527495292e3},{moduleCode:"",detailCode:"1152679",description:"",solution:"",updateTime:1527486665e3},{moduleCode:"",detailCode:"380356",description:"",solution:"",updateTime:1527125669e3},{moduleCode:"",detailCode:"328032",description:"",solution:"",updateTime:1527069382e3},{moduleCode:"",detailCode:"22",description:"",solution:"",updateTime:1527049826e3},{moduleCode:"",detailCode:"9",description:"",solution:"",updateTime:1527006778e3},{moduleCode:"",detailCode:"89",description:"",solution:"",updateTime:1526622784e3},{moduleCode:"",detailCode:"328016",description:"",solution:"",updateTime:1526452365e3},{moduleCode:"",detailCode:"368005",description:"",solution:"",updateTime:1525921264e3},{moduleCode:"",detailCode:"0",description:"",solution:"",updateTime:1525920242e3},{moduleCode:"",detailCode:"380006",description:"",solution:"",updateTime:1525918868e3},{moduleCode:"",detailCode:"310",description:"",solution:"",updateTime:1525834436e3},{moduleCode:"",detailCode:"360011",description:"",solution:"",updateTime:1525681552e3},{moduleCode:"",detailCode:"170005",description:"",solution:"",updateTime:15254339e5},{moduleCode:"",detailCode:"50023",description:"",solution:"",updateTime:1525403338e3},{moduleCode:"",detailCode:"100131",description:"",solution:"",updateTime:1525229691e3},{moduleCode:"",detailCode:"-1018",description:"",solution:"",updateTime:1525142341e3},{moduleCode:"",detailCode:"362026",description:"",solution:"",updateTime:1524882677e3},{moduleCode:"",detailCode:"368007",description:"",solution:"",updateTime:1524832269e3},{moduleCode:"",detailCode:"54",description:"",solution:"",updateTime:1524793646e3},{moduleCode:"",detailCode:"1154722",description:"",solution:"",updateTime:1524620807e3},{moduleCode:"",detailCode:"320229",description:"",solution:"",updateTime:1524551682e3},{moduleCode:"",detailCode:"360012",description:"",solution:"",updateTime:1524472094e3},{moduleCode:"",detailCode:"380229",description:"",solution:"",updateTime:1524110755e3},{moduleCode:"",detailCode:"360016",description:"",solution:"",updateTime:1523933518e3},{moduleCode:"",detailCode:"-1003",description:"",solution:"",updateTime:1523584804e3},{moduleCode:"",detailCode:"410026",description:"",solution:"",updateTime:152351743e4},{moduleCode:"",detailCode:"360102",description:"TTS\u521D\u59CB\u5316\u5931\u8D25",solution:"",updateTime:1523503528e3},{moduleCode:"",detailCode:"360013",description:"\u8BBE\u5907\u5F00\u542F\u4E86\u9690\u79C1\u4FDD\u62A4",solution:"",updateTime:1523503507e3},{moduleCode:"",detailCode:"360010",description:"\u8BBE\u5907\u6B63\u5728\u5BF9\u8BB2\u4E2D",solution:"",updateTime:1523503491e3},{moduleCode:"",detailCode:"360007",description:"TTS\u5173\u95ED\u4E86\u4E0E\u5BA2\u6237\u7AEF\u7684\u8FDE\u63A5",solution:"",updateTime:1523503475e3},{moduleCode:"",detailCode:"360006",description:"\u5BA2\u6237\u7AEF\u63A5\u6536\u53D1\u751F\u9519\u8BEF",solution:"",updateTime:1523503457e3},{moduleCode:"",detailCode:"360005",description:"\u5BA2\u6237\u7AEF\u53D1\u9001\u7684\u6D88\u606F\u9519\u8BEF",solution:"",updateTime:1523503437e3},{moduleCode:"",detailCode:"360004",description:"TTS\u5185\u90E8\u53D1\u751F\u9519\u8BEF",solution:"",updateTime:1523503421e3},{moduleCode:"",detailCode:"360003",description:"TTS\u7684\u8BBE\u5907\u7AEF\u53D1\u751F\u9519\u8BEF",solution:"",updateTime:1523503397e3},{moduleCode:"",detailCode:"360002",description:"\u5BF9\u8BB2\u53D1\u8D77\u8D85\u65F6",solution:"",updateTime:1523503376e3},{moduleCode:"",detailCode:"360001",description:"\u5BA2\u6237\u7AEF\u8BF7\u6C42\u8D85\u65F6",solution:"",updateTime:1523503357e3},{moduleCode:"",detailCode:"320077",description:"",solution:"",updateTime:1523444274e3},{moduleCode:"",detailCode:"370047",description:"",solution:"",updateTime:152344048e4},{moduleCode:"",detailCode:"100002",description:"",solution:"",updateTime:1523413964e3},{moduleCode:"",detailCode:"-1004",description:"",solution:"",updateTime:1523336653e3},{moduleCode:"",detailCode:"380000",description:"",solution:"",updateTime:1523180856e3},{moduleCode:"",detailCode:"380213",description:"",solution:"",updateTime:1523180623e3},{moduleCode:"",detailCode:"380101",description:"",solution:"",updateTime:1522834231e3},{moduleCode:"",detailCode:"50047",description:"",solution:"",updateTime:1522833243e3},{moduleCode:"",detailCode:"-999",description:"",solution:"",updateTime:1522831034e3},{moduleCode:"",detailCode:"320418",description:"",solution:"",updateTime:1522829072e3},{moduleCode:"",detailCode:"-1009",description:"",solution:"",updateTime:1522746247e3},{moduleCode:"",detailCode:"320209",description:"",solution:"",updateTime:1522744395e3},{moduleCode:"",detailCode:"368006",description:"",solution:"",updateTime:15227443e5},{moduleCode:"",detailCode:"369003",description:"",solution:"",updateTime:1522736355e3},{moduleCode:"",detailCode:"405989",description:"",solution:"",updateTime:1522726571e3},{moduleCode:"",detailCode:"-1012",description:"",solution:"",updateTime:1522726203e3},{moduleCode:"",detailCode:"322016",description:"",solution:"",updateTime:1522722918e3},{moduleCode:"",detailCode:"500103",description:"",solution:"",updateTime:1522655556e3},{moduleCode:"",detailCode:"405999",description:"",solution:"",updateTime:1522654716e3},{moduleCode:"",detailCode:"321032",description:"",solution:"",updateTime:1522647732e3},{moduleCode:"",detailCode:"381101",description:"",solution:"",updateTime:1522392414e3},{moduleCode:"",detailCode:"399999",description:"",solution:"",updateTime:1522379834e3},{moduleCode:"",detailCode:"380103",description:"",solution:"",updateTime:1522312724e3},{moduleCode:"",detailCode:"360014",description:"",solution:"",updateTime:1522304341e3},{moduleCode:"",detailCode:"-1005",description:"",solution:"",updateTime:1522288195e3},{moduleCode:"",detailCode:"395454",description:"",solution:"",updateTime:152222018e4},{moduleCode:"",detailCode:"100005",description:"",solution:"",updateTime:1522218849e3},{moduleCode:"",detailCode:"100004",description:"",solution:"",updateTime:1522209053e3},{moduleCode:"",detailCode:"106002",description:"",solution:"",updateTime:15222062e5},{moduleCode:"",detailCode:"410030",description:"",solution:"",updateTime:1522162252e3},{moduleCode:"",detailCode:"-1002",description:"",solution:"",updateTime:152215069e4},{moduleCode:"",detailCode:"-1200",description:"",solution:"",updateTime:1522139025e3},{moduleCode:"",detailCode:"-1001",description:"",solution:"",updateTime:1522046436e3},{moduleCode:"",detailCode:"-1011",description:"",solution:"",updateTime:1522045931e3},{moduleCode:"",detailCode:"381102",description:"",solution:"",updateTime:1522044953e3},{moduleCode:"",detailCode:"381103",description:"",solution:"",updateTime:1522044953e3},{moduleCode:"",detailCode:"391205",description:"vtdu\u89E3\u6790\u670D\u52A1\u5668ip\u5931\u8D25",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391206",description:"vtdu\u63CF\u8FF0\u7B26select\u5931\u8D25",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391207",description:"vtdu\u6587\u4EF6\u63CF\u8FF0\u7B26\u4E0D\u5728\u53EF\u8BFB\u4E2D",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391208",description:"vtdu\u7F51\u7EDC\u53D1\u751F\u9519\u8BEFgetsockopt",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"391209",description:"vtdu\u63CF\u8FF0\u7B26select\u8D85\u65F6",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395000",description:"cas\u56DE\u590D\u4FE1\u4EE4\uFF0C\u53D1\u73B0\u5185\u5B58\u5DF2\u7ECF\u91CA\u653E\uFF08\u548C\u8BBE\u5907\u4E4B\u95F4\u5F02\u5E38\u65AD\u5F00\uFF09",solution:"\u68C0\u67E5\u8BBE\u5907\u7F51\u7EDC\uFF1B\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395400",description:"\u79C1\u6709\u5316\u534F\u8BAEvtm\u68C0\u6D4B\u79C1\u6709\u5316\u534F\u8BAE\u4E2D\u7801\u6D41\u7C7B\u578B\u5C0F\u4E8E0\u6216\u8005\u8BBE\u5907\u5E8F\u5217\u53F7\u4E3A\u7A7A\u7B49\u975E\u6CD5\u53C2\u6570\u573A\u666F\u8FD4\u56DE(app\u4E0D\u91CD\u8BD5\u53D6\u6D41)",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395402",description:"\u56DE\u653E\u627E\u4E0D\u5230\u5F55\u50CF\u6587\u4EF6",solution:"\u68C0\u67E5\u662F\u5426\u6709\u5B58\u50A8\u5361\u5E76\u4E14\u63A5\u89E6\u826F\u597D",updateTime:1522034841e3},{moduleCode:"",detailCode:"395403",description:"\u64CD\u4F5C\u7801\u6216\u4FE1\u4EE4\u5BC6\u94A5\u4E0E\u8BBE\u5907\u4E0D\u5339\u914D",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395404",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF",solution:"\u68C0\u67E5\u8BBE\u5907\u7F51\u7EDC\uFF1B\u91CD\u542F\u8BBE\u5907\u63A5\u5165\u8424\u77F3\u4E91",updateTime:1522034841e3},{moduleCode:"",detailCode:"395405",description:"\u6D41\u5A92\u4F53\u5411\u8BBE\u5907\u53D1\u9001\u6216\u63A5\u53D7\u4FE1\u4EE4\u8D85\u65F6/cas\u54CD\u5E94\u8D85\u65F6",solution:"\u68C0\u67E5\u8BBE\u5907\u7F51\u7EDC\uFF1B\u91CD\u542F\u8BBE\u5907",updateTime:1522034841e3},{moduleCode:"",detailCode:"395406",description:"token\u5931\u6548",solution:"\u5237\u65B0\u91CD\u8BD5\u6216\u8005\u91CD\u542F\u8BBE\u5907",updateTime:1522034841e3},{moduleCode:"",detailCode:"395407",description:"\u5BA2\u6237\u7AEF\u7684URL\u683C\u5F0F\u9519\u8BEF",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395409",description:"\u9884\u89C8\u5F00\u542F\u9690\u79C1\u4FDD\u62A4",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395410",description:"\u8BBE\u5907\u8FBE\u5230\u6700\u5927\u8FDE\u63A5\u6570",solution:"\u8BF7\u5347\u7EA7\u8BBE\u5907\u56FA\u4EF6\u7248\u672C",updateTime:1522034841e3},{moduleCode:"",detailCode:"395411",description:"token\u65E0\u6743\u9650",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395412",description:"session\u4E0D\u5B58\u5728 ",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395413",description:"\u9A8C\u8BC1token\u7684\u4ED6\u5F02\u5E38\uFF08\u4E0D\u5177\u4F53\uFF09 ",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395415",description:"\u8BBE\u5907\u901A\u9053\u9519",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395451",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u7684\u7801\u6D41\u7C7B\u578B",solution:"\u5237\u65B0\u91CD\u8BD5\u6216\u8005\u5207\u6362\u5230\u9AD8\u6E05\u6A21\u5F0F",updateTime:1522034841e3},{moduleCode:"",detailCode:"395452",description:"\u8BBE\u5907\u94FE\u63A5\u6D41\u5A92\u4F53\u670D\u52A1\u5668\u5931\u8D25 ",solution:"\u68C0\u67E5\u8BBE\u5907\u7F51\u7EDC\uFF0C\u91CD\u542F\u8BBE\u5907\uFF0C\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395500",description:"\u670D\u52A1\u5668\u5904\u7406\u5931\u8D25 ",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395501",description:"\u6D41\u5A92\u4F53vtdu\u8FBE\u5230\u6700\u5927\u8D1F\u8F7D\uFF0C\u8BF7\u6269\u5BB9",solution:"\u670D\u52A1\u5668\u8D1F\u8F7D\u8FBE\u5230\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395503",description:"vtm\u8FD4\u56DE\u5206\u914Dvtdu\u5931\u8D25",solution:"\u670D\u52A1\u5668\u8D1F\u8F7D\u8FBE\u5230\u4E0A\u9650\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395544",description:"\u8BBE\u5907\u8FD4\u56DE\u65E0\u89C6\u9891\u6E90 ",solution:"\u8BBE\u5907\u662F\u5426\u63A5\u89E6\u826F\u597D\uFF1B",updateTime:1522034841e3},{moduleCode:"",detailCode:"395545",description:"\u89C6\u9891\u5206\u4EAB\u65F6\u95F4\u5DF2\u7ECF\u7ED3\u675F",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395546",description:"vtdu\u8FD4\u56DE\u8FBE\u5230\u53D6\u6D41\u5E76\u53D1\u8DEF\u6570\u9650\u5236",solution:"\u8BF7\u5347\u7EA7\u4E3A\u4F01\u4E1A\u7248\uFF0C\u653E\u5F00\u5E76\u53D1\u9650\u5236",updateTime:1522034841e3},{moduleCode:"",detailCode:"395560",description:"\u8681\u5175\u4EE3\u7406\u4E0D\u652F\u6301\u7684\u7528\u6237\u53D6\u6D41\u7C7B\u578B\uFF0C\u4F1A\u91CD\u5B9A\u5411\u5230vtdu\u53D6\u6D41",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395557",description:"\u56DE\u653E\u670D\u52A1\u5668\u7B49\u5F85\u6D41\u5934\u8D85\u65F6",solution:"\u5237\u65B0\u91CD\u8BD5\uFF0C\u68C0\u6D4B\u8BBE\u5907\u7F51\u7EDC\uFF0C\u91CD\u542F\u8BBE\u5907",updateTime:1522034841e3},{moduleCode:"",detailCode:"395600",description:"\u5206\u4EAB\u8BBE\u5907\u4E0D\u5728\u5206\u4EAB\u65F6\u95F4\u5185",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395601",description:"\u7FA4\u7EC4\u5206\u4EAB\u7528\u6237\u6CA1\u6743\u9650",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395602",description:"\u7FA4\u7EC4\u5206\u4EAB\u6743\u9650\u53D8\u66F4",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395556",description:"ticket\u53D6\u6D41\u9A8C\u8BC1\u5931\u8D25",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"395530",description:"\u673A\u623F\u6545\u969C\u4E0D\u53EF\u7528",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"395701",description:"cas\u4FE1\u4EE4\u8FD4\u56DE\u683C\u5F0F\u9519\u8BEF",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396001",description:"\u5BA2\u6237\u7AEF\u53C2\u6570\u51FA\u9519",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396099",description:"\u5BA2\u6237\u7AEF\u9ED8\u8BA4\u9519\u8BEF",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396101",description:"\u4E0D\u652F\u6301\u7684\u547D\u4EE4",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396102",description:"\u8BBE\u5907\u6D41\u5934\u53D1\u9001\u5931\u8D25",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396103",description:"cas/\u8BBE\u5907\u8FD4\u56DE\u9519\u8BEF1",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396104",description:"cas/\u8BBE\u5907\u8FD4\u56DE\u9519\u8BEF-1",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396105",description:"\u8BBE\u5907\u8FD4\u56DE\u9519\u8BEF\u78013",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396106",description:"\u8BBE\u5907\u8FD4\u56DE\u9519\u8BEF\u78014",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396107",description:"\u8BBE\u5907\u8FD4\u56DE\u9519\u8BEF\u78015",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396108",description:"cas\u4FE1\u4EE4\u56DE\u5E94\u91CD\u590D",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396109",description:"\u89C6\u9891\u5E7F\u573A\u53D6\u6D88\u5206\u4EAB",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396110",description:"\u8BBE\u5907\u4FE1\u4EE4\u9ED8\u8BA4\u9519\u8BEF",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396501",description:"\u8BBE\u5907\u6570\u636E\u94FE\u8DEF\u548C\u5B9E\u9645\u94FE\u8DEF\u4E0D\u5339\u914D",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396502",description:"\u8BBE\u5907\u6570\u636E\u94FE\u8DEF\u91CD\u590D\u5EFA\u7ACB\u8FDE\u63A5",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396503",description:"\u8BBE\u5907\u6570\u636E\u94FE\u8DEF\u7AEF\u53E3\u4E0D\u5339\u914D",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396504",description:"\u7F13\u5B58\u8BBE\u5907\u6570\u636E\u94FE\u8DEF\u5931\u8D25(\u5185\u5B58\u5757\u4E0D\u8DB3)",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396505",description:"\u8BBE\u5907\u53D1\u9001\u786E\u8BA4\u5934\u6D88\u606F\u91CD\u590D",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396506",description:"\u8BBE\u5907\u6570\u636E\u5148\u4E8E\u786E\u5B9A\u5934\u90E8\u5230\u8FBE",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396508",description:"\u8BBE\u5907\u6570\u636E\u5934\u90E8\u957F\u5EA6\u975E\u6CD5",solution:"\u5237\u65B0\u91CD\u8BD5\uFF0C\u6216\u8005\u91CD\u542F\u8BBE\u5907",updateTime:1522034841e3},{moduleCode:"",detailCode:"396509",description:"\u7D22\u5F15\u627E\u4E0D\u5230\u8BBE\u5907\u6570\u636E\u7BA1\u7406\u5757",solution:"\u5237\u65B0\u91CD\u8BD5",updateTime:1522034841e3},{moduleCode:"",detailCode:"396510",description:"\u8BBE\u5907\u6570\u636E\u94FE\u8DEFvtdu\u5185\u5B58\u5757\u534F\u8BAE\u72B6\u6001\u4E0D\u5339\u914D",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396511",description:"\u8BBE\u5907\u6570\u636E\u5934\u90E8\u6CA1\u6709streamkey\u9519\u8BEF",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396512",description:"\u8BBE\u5907\u6570\u636E\u5934\u90E8\u975E\u6CD5(\u8F83\u7B3C\u7EDF)",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396513",description:"\u8BBE\u5907\u6570\u636E\u957F\u5EA6\u8FC7\u5C0F",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396514",description:"\u8BBE\u5907\u8001\u534F\u8BAE\u63A8\u6D41\u5934\u90E8\u6CA1\u6709streamkey\u9519\u8BEF",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396515",description:"\u8BBE\u5907\u8001\u534F\u8BAE\u63A8\u6D41\u6570\u636E\u975E\u6CD5",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396516",description:"\u8BBE\u5907\u8001\u534F\u8BAE\u7D22\u5F15\u627E\u4E0D\u5230\u5185\u5B58\u7BA1\u7406\u5757",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396517",description:"\u8BBE\u5907\u8001\u534F\u8BAE\u63A8\u6D41\u6570\u636E\u975E\u6CD5",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396518",description:"\u8BBE\u5907\u6570\u636E\u5305\u8FC7\u5927",solution:"\u5237\u65B0\u91CD\u8BD5\uFF0C\u6216\u8005\u91CD\u542F\u8BBE\u5907",updateTime:1522034841e3},{moduleCode:"",detailCode:"396519",description:"\u8BBE\u5907\u63A8\u6D41\u94FE\u8DEF\u7F51\u7EDC\u4E0D\u7A33\u5B9A",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"396520",description:"\u8BBE\u5907\u63A8\u6D41\u94FE\u8DEF\u7F51\u7EDC\u4E0D\u7A33\u5B9A(\u9ED8\u8BA4)",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"170003",description:"refreshToken\u4E0D\u5B58\u5728",solution:"\u5EFA\u8BAE\u7528\u6237\u91CD\u65B0\u8C03\u7528logout\u63A5\u53E3\uFF0C\u7136\u540E\u8C03\u7528openLoginPage\u63A5\u53E3\u91CD\u65B0\u542F\u52A8\u767B\u5F55\u9875\u9762\u767B\u5F55",updateTime:1522034841e3},{moduleCode:"",detailCode:"170004",description:"refreshToken\u5DF2\u8FC7\u671F",solution:"\u5EFA\u8BAE\u7528\u6237\u91CD\u65B0\u8C03\u7528logout\u63A5\u53E3\uFF0C\u7136\u540E\u8C03\u7528openLoginPage\u63A5\u53E3\u91CD\u65B0\u542F\u52A8\u767B\u5F55\u9875\u9762\u767B\u5F55",updateTime:1522034841e3},{moduleCode:"",detailCode:"380011",description:"\u8BBE\u5907\u9690\u79C1\u4FDD\u62A4\u4E2D",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380045",description:"\u8BBE\u5907\u76F4\u8FDE\u53D6\u6D41\u8FDE\u63A5\u6570\u91CF\u8FC7\u5927",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380047",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u8BE5\u547D\u4EE4",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380077",description:"\u8BBE\u5907\u6B63\u5728\u5BF9\u8BB2\u4E2D",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380102",description:"\u6570\u636E\u63A5\u6536\u5F02\u5E38",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380205",description:"\u8BBE\u5907\u68C0\u6D4B\u5165\u53C2\u5F02\u5E38",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380209",description:"\u7F51\u7EDC\u8FDE\u63A5\u8D85\u65F6",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"380212",description:"\u8BBE\u5907\u7AEF\u7F51\u7EDC\u8FDE\u63A5\u8D85\u65F6",solution:"",updateTime:1522034841e3},{moduleCode:"",detailCode:"101007",description:"\u624B\u673A\u53F7\u672A\u6CE8\u518C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120503",description:"\u6B63\u5728\u54CD\u94C3",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390016",description:"vtdu\u6210\u529F\u54CD\u5E94\u672A\u643A\u5E26\u6D41\u5934",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101008",description:"\u624B\u673A\u53F7\u7801\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120504",description:"\u5BA4\u5185\u673A\u6B63\u5728\u901A\u8BDD",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390017",description:"\u65E0\u6570\u636E\u6D41\uFF0C\u5C1A\u672A\u4F7F\u7528",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101009",description:"\u7528\u6237\u540D\u4E0E\u624B\u673A\u4E0D\u5339\u914D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120505",description:"\u8BBE\u5907\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390018",description:"\u4FE1\u4EE4\u6D88\u606F\u4F53PB\u89E3\u6790\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101010",description:"\u83B7\u53D6\u9A8C\u8BC1\u7801\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120506",description:"\u975E\u6CD5\u547D\u4EE4",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390019",description:"\u4FE1\u4EE4\u6D88\u606F\u4F53PB\u5C01\u88C5\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101011",description:"\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120507",description:"\u667A\u80FD\u9501\u5BC6\u7801\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390020",description:"\u7533\u8BF7\u7CFB\u7EDF\u5185\u5B58\u8D44\u6E90\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101012",description:"\u9A8C\u8BC1\u7801\u5931\u6548",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120508",description:"\u5F00\u5173\u9501\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390021",description:"vtdu\u5730\u5740\u5C1A\u672A\u83B7\u53D6\u5230",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101013",description:"\u7528\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120509",description:"\u5F00\u5173\u9501\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390022",description:"\u5BA2\u6237\u7AEF\u5C1A\u672A\u652F\u6301",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101014",description:"\u5BC6\u7801\u4E0D\u6B63\u786E\u6216\u8005appKey\u4E0D\u6B63\u786E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120510",description:"\u667A\u80FD\u9501\u8BBE\u5907\u7E41\u5FD9",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390023",description:"\u83B7\u53D6\u7CFB\u7EDFsocket\u8D44\u6E90\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101015",description:"\u7528\u6237\u88AB\u9501\u4F4F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120511",description:"\u8FDC\u7A0B\u5F00\u9501\u529F\u80FD\u672A\u6253\u5F00",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390024",description:"\u4E0A\u5C42\u586B\u5145\u7684StreamSsnId\u4E0D\u5339\u914D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101021",description:"\u9A8C\u8BC1\u53C2\u6570\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120600",description:"\u4E34\u65F6\u5BC6\u7801\u6570\u5DF2\u8FBE\u4E0A\u9650",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390025",description:"\u94FE\u63A5\u670D\u52A1\u5668\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101026",description:"\u90AE\u7BB1\u5DF2\u7ECF\u88AB\u6CE8\u518C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120601",description:"\u6DFB\u52A0\u4E34\u65F6\u5BC6\u7801\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390026",description:"\u5BA2\u6237\u7AEF\u8BF7\u6C42\u672A\u6536\u5230\u670D\u52A1\u7AEF\u5E94\u7B54",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101031",description:"\u90AE\u7BB1\u672A\u6CE8\u518C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120602",description:"\u5220\u9664\u4E34\u65F6\u5BC6\u7801\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390027",description:"\u94FE\u8DEF\u65AD\u5F00",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101032",description:"\u90AE\u7BB1\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120603",description:"\u8BE5\u4E34\u65F6\u5BC6\u7801\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390028",description:"\u6CA1\u6709\u53D6\u6D41\u94FE\u63A5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101041",description:"\u83B7\u53D6\u9A8C\u8BC1\u7801\u8FC7\u4E8E\u9891\u7E41",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120604",description:"\u6307\u7EB9\u9501\u5C04\u9891\u901A\u4FE1\u5931\u8D25,\u8BF7\u7A0D\u540E\u518D\u8BD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390029",description:"\u6D41\u6210\u529F\u505C\u6B62",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101043",description:"\u624B\u673A\u9A8C\u8BC1\u7801\u8F93\u5165\u9519\u8BEF\u8D85\u8FC7\u89C4\u5B9A\u6B21\u6570",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120605",description:"\u5176\u4ED6\u7528\u6237\u6B63\u5728\u8BA4\u8BC1\u4E2D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390030",description:"\u5BA2\u6237\u7AEF\u9632\u4E32\u6D41\u6821\u9A8C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102000",description:"\u8BBE\u5907\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120606",description:"\u9A8C\u8BC1\u5DF2\u542F\u52A8,\u8BF7\u5728120s\u5185\u8FDB\u884C\u672C\u5730\u9A8C\u8BC1\u548C\u8C03\u7528\u6DFB\u52A0\u8BBE\u5907\u63A5\u53E3",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390031",description:"\u5E94\u7528\u5C42tcp\u7C98\u5305\u5904\u7406\u7F13\u51B2\u533A\u6EE1",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102001",description:"\u6444\u50CF\u673A\u4E0D\u5B58\u5728",solution:"\u6444\u50CF\u673A\u672A\u6CE8\u518C\u5230\u8424\u77F3\u4E91\u5E73\u53F0\uFF0C\u8BF7\u4ED4\u7EC6\u68C0\u67E5\u6444\u50CF\u673A\u7684\u7F51\u7EDC\u914D\u7F6E\uFF0C\u786E\u4FDD\u8FDE\u63A5\u5230\u7F51\u7EDC",updateTime:152203484e4},{moduleCode:"",detailCode:"120607",description:"\u5220\u9664\u7528\u6237\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390032",description:"\u65E0\u6548\u72B6\u6001\u8FC1\u79FB",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102003",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF",solution:"\u53C2\u8003\u670D\u52A1\u4E2D\u5FC3\u6392\u67E5\u65B9\u6CD5",updateTime:152203484e4},{moduleCode:"",detailCode:"120608",description:"\u7528\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390033",description:"\u65E0\u6548\u5BA2\u6237\u7AEF\u72B6\u6001",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102004",description:"\u8BBE\u5907\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120609",description:"\u8BBE\u5907\u54CD\u5E94\u8D85\u65F6,\u95E8\u9501\u901A\u4FE1\u6545\u969C\u6216\u8005\u7535\u91CF\u4E0D\u8DB3,\u8BF7\u91CD\u8BD5.",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390034",description:"\u5411vtm\u53D6\u6D41\u6D41\u5A92\u4F53\u4FE1\u606F\u8BF7\u6C42\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102007",description:"\u8BBE\u5907\u5E8F\u5217\u53F7\u4E0D\u6B63\u786E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120610",description:"\u83B7\u53D6\u4E34\u65F6\u5BC6\u7801\u5217\u8868\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390035",description:"\u5411\u4EE3\u7406\u53D6\u6D41\u8BF7\u6C42\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"102009",description:"\u8BBE\u5907\u8BF7\u6C42\u54CD\u5E94\u8D85\u65F6\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130001",description:"\u7528\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390036",description:"\u5411\u4EE3\u7406\u4FDD\u6D3B\u53D6\u6D41\u8BF7\u6C42\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105000",description:"\u8BBE\u5907\u5DF2\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130002",description:"\u624B\u673A\u53F7\u7801\u5DF2\u7ECF\u6CE8\u518C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390037",description:"\u5411vtdu\u53D6\u6D41\u8BF7\u6C42\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105001",description:"\u8BBE\u5907\u5DF2\u88AB\u522B\u4EBA\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130003",description:"\u624B\u673A\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390038",description:"\u5411vtdu\u4FDD\u6D3B\u53D6\u6D41\u8BF7\u6C42\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"105002",description:"\u8BBE\u5907\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"130004",description:"\u7EC8\u7AEF\u7ED1\u5B9A\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391001",description:"vtm\u5730\u5740\u6216\u7AEF\u53E3\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107001",description:"\u9080\u8BF7\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"149999",description:"\u6570\u636E\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391002",description:"vtm\u751F\u6210\u6587\u4EF6\u63CF\u8FF0\u7B26\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107002",description:"\u9080\u8BF7\u9A8C\u8BC1\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"150000",description:"\u670D\u52A1\u5668\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391003",description:"vtm\u8BBE\u7F6E\u6587\u4EF6\u63CF\u8FF0\u7B26\u975E\u963B\u585E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107003",description:"\u9080\u8BF7\u7528\u6237\u4E0D\u5339\u914D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160000",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u4E91\u53F0\u63A7\u5236",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391004",description:"vtm\u8BBE\u7F6E\u6587\u4EF6\u63CF\u8FF0\u7B26\u963B\u585E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107004",description:"\u4E91\u5B58\u50A8\u8FDE\u63A5\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160001",description:"\u7528\u6237\u65E0\u4E91\u53F0\u63A7\u5236\u6743\u9650",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391005",description:"vtm\u89E3\u6790\u670D\u52A1\u5668ip\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"7005",description:"VTDU\u4E3B\u52A8\u65AD\u5F00\u8FDE\u63A5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107005",description:"VTDU\u4E3B\u52A8\u65AD\u5F00\u8FDE\u63A5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160002",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u4E0A\u9650\u4F4D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391006",description:"vtm\u63CF\u8FF0\u7B26select\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107006",description:"\u4E0D\u80FD\u9080\u8BF7\u81EA\u5DF1",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160003",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u4E0B\u9650\u4F4D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391007",description:"vtm\u6587\u4EF6\u63CF\u8FF0\u7B26\u4E0D\u5728\u53EF\u8BFB\u4E2D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"107007",description:"\u91CD\u590D\u9080\u8BF7",solution:"\u5206\u4EAB\u548C\u5220\u9664\u5206\u4EAB\u5FC5\u987B\u5168\u90E8\u7531\u63A5\u53E3\u5F62\u5F0F\u64CD\u4F5C\uFF0C\u5982\u679C\u4E0E\u8424\u77F3\u5BA2\u6237\u7AEF\u6DF7\u7528\u4F1A\u9020\u6210\u8FD9\u4E2A\u95EE\u9898\uFF0C\u89E3\u51B3\u529E\u6CD5\uFF1A\u5728\u8424\u77F3\u5BA2\u6237\u7AEF\u6E05\u7A7A\u6240\u6709\u76F8\u5173\u5206\u4EAB\u6570\u636E\u5E76\u91CD\u65B0\u6DFB\u52A0\u8BBE\u5907\uFF0C\u518D\u901A\u8FC7\u63A5\u53E3\u64CD\u4F5C\u5373\u53EF",updateTime:152203484e4},{moduleCode:"",detailCode:"160004",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u5DE6\u9650\u4F4D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391008",description:"vtm\u7F51\u7EDC\u53D1\u751F\u9519\u8BEFgetsockopt",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110001",description:"\u53C2\u6570\u9519\u8BEF",solution:"\u53C2\u6570\u4E3A\u7A7A\u6216\u8005\u683C\u5F0F\u4E0D\u5BF9",updateTime:152203484e4},{moduleCode:"",detailCode:"160005",description:"\u8BBE\u5907\u4E91\u53F0\u65CB\u8F6C\u8FBE\u5230\u53F3\u9650\u4F4D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391009",description:"vtm\u63CF\u8FF0\u7B26select\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110002",description:"accessToken\u5F02\u5E38\u6216\u8FC7\u671F",solution:"accessToken\u6709\u6548\u671F\u4E3A\u4E03\u5929\uFF0C\u5EFA\u8BAE\u5728accessToken\u5373\u5C06\u8FC7\u671F\u6216\u8005\u51FA\u73B010002\u9519\u8BEF\u7801\u7684\u65F6\u5019\u91CD\u65B0\u83B7\u53D6accessToken",updateTime:152203484e4},{moduleCode:"",detailCode:"160006",description:"\u4E91\u53F0\u5F53\u524D\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391101",description:"proxy\u5730\u5740\u6216\u7AEF\u53E3\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110004",description:"\u7528\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160007",description:"\u9884\u7F6E\u70B9\u4E2A\u6570\u8D85\u8FC7\u6700\u5927\u503C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391102",description:"proxy\u751F\u6210\u6587\u4EF6\u63CF\u8FF0\u7B26\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110005",description:"appKey\u5F02\u5E38",solution:"\u786E\u8BA4appKey\u72B6\u6001\uFF0C\u4E0D\u901A\u8FC7\u6216\u8005\u51BB\u7ED3\u72B6\u6001\u4F1A\u8FD4\u56DE\u8BE5\u9519\u8BEF\u7801",updateTime:152203484e4},{moduleCode:"",detailCode:"160009",description:"\u6B63\u5728\u8C03\u7528\u9884\u7F6E\u70B9",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391103",description:"proxy\u8BBE\u7F6E\u6587\u4EF6\u63CF\u8FF0\u7B26\u975E\u963B\u585E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110006",description:"ip\u53D7\u9650",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160010",description:"\u8BE5\u9884\u7F6E\u70B9\u5DF2\u7ECF\u662F\u5F53\u524D\u4F4D\u7F6E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391104",description:"proxy\u8BBE\u7F6E\u6587\u4EF6\u63CF\u8FF0\u7B26\u963B\u585E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160011",description:"\u9884\u7F6E\u70B9\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391105",description:"proxy\u89E3\u6790\u670D\u52A1\u5668ip\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110008",description:"\u7B7E\u540D\u9519\u8BEF",solution:"\u2460\u83B7\u53D6\u7B7E\u540D\u65B9\u5F0F\u8BE6\u89C1apidemo\u53CA[\u65E7]API\u6587\u6863 \u2461\u6CE8\u610F\u7F16\u7801\u683C\u5F0F\u4E3AUTF-8",updateTime:152203484e4},{moduleCode:"",detailCode:"160013",description:"\u8BBE\u5907\u7248\u672C\u5DF2\u662F\u6700\u65B0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391106",description:"proxy\u63CF\u8FF0\u7B26select\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110009",description:"\u7B7E\u540D\u53C2\u6570\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160014",description:"\u8BBE\u5907\u6B63\u5728\u5347\u7EA7",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391107",description:"proxy\u6587\u4EF6\u63CF\u8FF0\u7B26\u4E0D\u5728\u53EF\u8BFB\u4E2D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110010",description:"\u7B7E\u540D\u8D85\u65F6",solution:"\u8BF7\u8C03\u7528\u540C\u6B65\u670D\u52A1\u5668\u65F6\u95F4\u63A5\u53E3\u8FDB\u884C\u6821\u65F6",updateTime:152203484e4},{moduleCode:"",detailCode:"160015",description:"\u8BBE\u5907\u6B63\u5728\u91CD\u542F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391108",description:"proxy\u7F51\u7EDC\u53D1\u751F\u9519\u8BEFgetsockopt",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110011",description:"\u672A\u5F00\u901A\u8424\u77F3\u4E91\u670D\u52A1",solution:"\u53C2\u7167\u7ED1\u5B9A\u6D41\u7A0B",updateTime:152203484e4},{moduleCode:"",detailCode:"160016",description:"\u52A0\u5BC6\u672A\u5F00\u542F\uFF0C\u65E0\u987B\u5173\u95ED",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391109",description:"proxy\u63CF\u8FF0\u7B26select\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110012",description:"\u7B2C\u4E09\u65B9\u8D26\u6237\u4E0E\u8424\u77F3\u8D26\u53F7\u5DF2\u7ECF\u7ED1\u5B9A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160017",description:"\u8BBE\u5907\u6293\u56FE\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391201",description:"vtdu\u5730\u5740\u6216\u7AEF\u53E3\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110013",description:"\u5E94\u7528\u6CA1\u6709\u6743\u9650\u8C03\u7528\u6B64\u63A5\u53E3",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160018",description:"\u8BBE\u5907\u5347\u7EA7\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391202",description:"vtdu\u751F\u6210\u6587\u4EF6\u63CF\u8FF0\u7B26\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110014",description:"APPKEY\u4E0B\u5BF9\u5E94\u7684\u7B2C\u4E09\u65B9userId\u548Cphone\u672A\u7ED1\u5B9A",solution:"\u83B7\u53D6AccessToken\u65F6\u6240\u7528appKey\u4E0ESDK\u6240\u7528appKey\u4E0D\u4E00\u81F4",updateTime:152203484e4},{moduleCode:"",detailCode:"160019",description:"\u52A0\u5BC6\u5DF2\u5F00\u542F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"391203",description:"vtdu\u8BBE\u7F6E\u6587\u4EF6\u63CF\u8FF0\u7B26\u975E\u963B\u585E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110017",description:"appKey\u4E0D\u5B58\u5728",solution:"\u8BF7\u586B\u5199\u5728\u5B98\u7F51\u7533\u8BF7\u7684\u5E94\u7528\u79D8\u94A5",updateTime:152203484e4},{moduleCode:"",detailCode:"160020",description:"\u4E0D\u652F\u6301\u8BE5\u547D\u4EE4",solution:"\u8BF7\u786E\u8BA4\u8BBE\u5907\u662F\u5426\u652F\u6301\u8BE5\u547D\u4EE4",updateTime:152203484e4},{moduleCode:"",detailCode:"391204",description:"vtdu\u8BBE\u7F6E\u6587\u4EF6\u63CF\u8FF0\u7B26\u963B\u585E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110018",description:"AccessToken\u4E0EAppkey\u4E0D\u5339\u914D",solution:"\u8BF7\u68C0\u67E5\u83B7\u53D6accessToken\u5BF9\u5E94\u7684appKey\u548CSDK\u4E2D\u8BBE\u7F6E\u7684appKey\u662F\u5426\u4E00\u81F4",updateTime:152203484e4},{moduleCode:"",detailCode:"160023",description:"\u8BA2\u9605\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110019",description:"\u5BC6\u7801\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160024",description:"\u53D6\u6D88\u8BA2\u9605\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110020",description:"\u8BF7\u6C42\u65B9\u6CD5\u4E3A\u7A7A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160025",description:"\u5BA2\u6D41\u7EDF\u8BA1\u914D\u7F6E\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110021",description:"ticket\u6821\u9A8C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160026",description:"\u8BBE\u5907\u5904\u4E8E\u9690\u79C1\u906E\u853D\u72B6\u6001",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110022",description:"\u900F\u4F20\u76EE\u7684\u5730\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160027",description:"\u8BBE\u5907\u6B63\u5728\u955C\u50CF\u64CD\u4F5C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110024",description:"\u65E0\u900F\u4F20\u6743\u9650",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160028",description:"\u8BBE\u5907\u6B63\u5728\u952E\u63A7\u52A8\u4F5C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110025",description:"appKey\u88AB\u7981\u6B62\u4F7F\u7528\u901A\u660E\u901A\u9053",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160029",description:"\u8BBE\u5907\u5904\u4E8E\u8BED\u97F3\u5BF9\u8BB2\u72B6\u6001",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160030",description:"\u5361\u5BC6\u8F93\u5165\u9519\u8BEF\u6B21\u6570\u8FC7\u591A\uFF0C24\u5C0F\u65F6\u540E\u518D\u8F93\u5165",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160031",description:"\u5361\u5BC6\u4FE1\u606F\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160032",description:"\u5361\u5BC6\u72B6\u6001\u4E0D\u5BF9\u6216\u5DF2\u8FC7\u671F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160033",description:"\u5361\u5BC6\u975E\u5356\u54C1\uFF0C\u53EA\u80FD\u5F00\u901A\u5BF9\u5E94\u7684\u7ED1\u5B9A\u8BBE\u5907",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110030",description:"appKey\u548CappSecret\u4E0D\u5339\u914D",solution:"\u8BF7\u68C0\u67E5appKey\u548CappSecret\u662F\u5426\u5BF9\u5E94",updateTime:152203484e4},{moduleCode:"",detailCode:"160035",description:"\u8D2D\u4E70\u4E91\u5B58\u50A8\u670D\u52A1\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110031",description:"\u5B50\u8D26\u6237\u6216\u8424\u77F3\u7528\u6237\u6CA1\u6709\u6743\u9650",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160040",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u4E0D\u5728\u540C\u4E00\u5C40\u57DF\u7F51",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110032",description:"\u5B50\u8D26\u6237\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160041",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u88AB\u5176\u4ED6\u8BBE\u5907\u5173\u8054\u6216\u54CD\u5E94\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110033",description:"\u5B50\u8D26\u6237\u672A\u8BBE\u7F6E\u6388\u6743\u7B56\u7565",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160042",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u5BC6\u7801\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110034",description:"\u5B50\u8D26\u6237\u5DF2\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160043",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u8D85\u51FA\u6700\u5927\u6570\u91CF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110035",description:"\u83B7\u53D6\u5B50\u8D26\u6237AccessToken\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160044",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7F51\u7EDC\u4E0D\u53EF\u8FBE\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110036",description:"\u5B50\u8D26\u6237\u88AB\u7981\u7528",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160045",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7684IP\u548C\u5176\u4ED6\u901A\u9053\u7684IP\u51B2\u7A81",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"110051",description:"\u65E0\u6743\u9650\u8FDB\u884C\u6293\u56FE",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160046",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7684IP\u548C\u672C\u8BBE\u5907\u7684IP\u51B2\u7A81",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160047",description:"\u7801\u6D41\u7C7B\u578B\u4E0D\u652F\u6301",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120002",description:"\u8BBE\u5907\u4E0D\u5B58\u5728",solution:"\u2460\u8BBE\u5907\u6CA1\u6709\u6CE8\u518C\u5230\u8424\u77F3\u4E91\u5E73\u53F0\uFF0C\u8BF7\u68C0\u67E5\u4E0B\u8BBE\u5907\u7F51\u7EDC\u53C2\u6570\uFF0C\u786E\u4FDD\u80FD\u6B63\u5E38\u8FDE\u63A5\u7F51\u7EDC\u2461\u8BBE\u5907\u5E8F\u5217\u53F7\u4E0D\u5B58\u5728",updateTime:152203484e4},{moduleCode:"",detailCode:"160048",description:"\u5E26\u5BBD\u8D85\u51FA\u7CFB\u7EDF\u63A5\u5165\u5E26\u5BBD",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120003",description:"\u53C2\u6570\u5F02\u5E38\uFF0CSDK\u7248\u672C\u8FC7\u4F4E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160049",description:"IP\u6216\u8005\u7AEF\u53E3\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120004",description:"\u53C2\u6570\u5F02\u5E38\uFF0CSDK\u7248\u672C\u8FC7\u4F4E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160050",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u7248\u672C\u4E0D\u652F\u6301\u9700\u8981\u5347\u7EA7\u624D\u80FD\u63A5\u5165",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120005",description:"\u5B89\u5168\u8BA4\u8BC1\u5931\u8D25\uFF0C\u9700\u8FDB\u884CSDK\u5B89\u5168\u8BA4\u8BC1",solution:"\u5DF2\u53BB\u6389\u5B89\u5168\u9A8C\u8BC1",updateTime:152203484e4},{moduleCode:"",detailCode:"160051",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u4E0D\u652F\u6301\u63A5\u5165",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120006",description:"\u7F51\u7EDC\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160052",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u901A\u9053\u53F7\u51FA\u9519",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120007",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF",solution:"\u53C2\u8003\u670D\u52A1\u4E2D\u5FC3\u6392\u67E5\u65B9\u6CD5",updateTime:152203484e4},{moduleCode:"",detailCode:"160053",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u5206\u8FA8\u7387\u4E0D\u652F\u6301",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120008",description:"\u8BBE\u5907\u54CD\u5E94\u8D85\u65F6",solution:"\u8BBE\u5907\u54CD\u5E94\u8D85\u65F6\uFF0C\u8BF7\u68C0\u6D4B\u8BBE\u5907\u7F51\u7EDC\u6216\u91CD\u8BD5",updateTime:152203484e4},{moduleCode:"",detailCode:"160054",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u8D26\u53F7\u88AB\u9501\u5B9A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120009",description:"\u5B50\u8D26\u53F7\u4E0D\u80FD\u6DFB\u52A0\u8BBE\u5907",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160055",description:"\u6DFB\u52A0\u7684\u8BBE\u5907\u53D6\u7801\u6D41\u51FA\u9519",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120010",description:"\u8BBE\u5907\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"\u9A8C\u8BC1\u7801\u5728\u8BBE\u5907\u6807\u7B7E\u4E0A\uFF0C\u516D\u4F4D\u5927\u5199\u5B57\u6BCD\uFF0C\u6CE8\u610F\u5927\u5C0F\u5199",updateTime:152203484e4},{moduleCode:"",detailCode:"160056",description:"\u5220\u9664\u8BBE\u5907\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120012",description:"\u8BBE\u5907\u6DFB\u52A0\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160057",description:"\u5220\u9664\u7684\u8BBE\u5907\u672A\u5173\u8054",solution:"\u68C0\u67E5IPC\u4E0ENVR\u662F\u5426\u6709\u5173\u8054\u5173\u7CFB",updateTime:152203484e4},{moduleCode:"",detailCode:"120013",description:"\u8BBE\u5907\u5DF2\u88AB\u522B\u4EBA\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160060",description:"\u5730\u5740\u672A\u7ED1\u5B9A",solution:"\u8BF7\u524D\u5F80\u5B98\u7F51\u8BBE\u7F6E\u76F4\u64AD",updateTime:152203484e4},{moduleCode:"",detailCode:"120014",description:"\u8BBE\u5907\u5E8F\u5217\u53F7\u4E0D\u6B63\u786E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160061",description:"\u8D26\u6237\u6D41\u91CF\u5DF2\u8D85\u51FA\u6216\u672A\u8D2D\u4E70\uFF0C\u9650\u5236\u5F00\u901A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120015",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u8BE5\u529F\u80FD",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160062",description:"\u8BE5\u901A\u9053\u76F4\u64AD\u5DF2\u5F00\u901A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120016",description:"\u5F53\u524D\u8BBE\u5907\u6B63\u5728\u683C\u5F0F\u5316",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160063",description:"\u76F4\u64AD\u672A\u4F7F\u7528\u6216\u76F4\u64AD\u5DF2\u5173\u95ED",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120017",description:"\u8BBE\u5907\u5DF2\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160070",description:"\u8BBE\u5907\u4E0D\u80FD\u8F6C\u79FB\u7ED9\u81EA\u5DF1",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120018",description:"\u8BE5\u7528\u6237\u4E0D\u62E5\u6709\u8BE5\u8BBE\u5907",solution:"\u786E\u8BA4\u8BBE\u5907\u662F\u5426\u5C5E\u4E8E\u7528\u6237",updateTime:152203484e4},{moduleCode:"",detailCode:"160071",description:"\u8BBE\u5907\u4E0D\u80FD\u8F6C\u79FB\uFF0C\u8BBE\u5907\u4E0E\u5176\u4ED6\u8BBE\u5907\u5B58\u5728\u5173\u8054\u5173\u7CFB",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400001",description:"\u53C2\u6570\u4E3A\u7A7A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120019",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u4E91\u5B58\u50A8\u670D\u52A1",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160072",description:"\u8BBE\u5907\u4E0D\u80FD\u8F6C\u79FB\uFF0C\u901A\u9053\u88AB\u5206\u4EAB\u7ED9\u5176\u4ED6\u7528\u6237\u6216\u8005\u5206\u4EAB\u5230\u89C6\u9891\u5E7F\u573A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400002",description:"\u53C2\u6570\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120020",description:"\u8BBE\u5907\u5728\u7EBF\uFF0C\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160073",description:"\u4E91\u5B58\u50A8\u8F6C\u79FB\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400025",description:"\u8BBE\u5907\u4E0D\u652F\u6301\u5BF9\u8BB2",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120021",description:"\u8BBE\u5907\u5728\u7EBF\uFF0C\u4F46\u662F\u672A\u88AB\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160080",description:"\u5F53\u524D\u6B63\u5728\u58F0\u6E90\u5B9A\u4F4D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400029",description:"\u6CA1\u6709\u521D\u59CB\u5316\u6216\u8D44\u6E90\u88AB\u91CA\u653E",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120022",description:"\u8BBE\u5907\u5728\u7EBF\uFF0C\u4F46\u662F\u5DF2\u7ECF\u88AB\u522B\u7684\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160081",description:"\u5F53\u524D\u6B63\u5728\u8F68\u8FF9\u5DE1\u822A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400030",description:"json\u89E3\u6790\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120023",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u672A\u88AB\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160082",description:"\u8BBE\u5907\u6B63\u5728\u54CD\u5E94\u672C\u6B21\u58F0\u6E90\u5B9A\u4F4D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400031",description:"\u7F51\u7EDC\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120024",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u4F46\u662F\u5DF2\u7ECF\u88AB\u522B\u7684\u7528\u6237\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"160083",description:"\u5F53\u524D\u6B63\u5728\u5F00\u542F\u9690\u79C1\u906E\u853D",solution:"\u8BBE\u5907\u6B63\u5728\u64CD\u4F5C\u9690\u79C1\u906E\u853D\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5F53\u524D\u64CD\u4F5C",updateTime:152203484e4},{moduleCode:"",detailCode:"400032",description:"\u8BBE\u5907\u4FE1\u606F\u5F02\u5E38\u4E3A\u7A7A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120025",description:"\u91CD\u590D\u7533\u8BF7\u5206\u4EAB",solution:"\u786E\u8BA4\u8BBE\u5907\u662F\u5426\u7531\u6DFB\u52A0\u8FC7\u8BE5\u8BBE\u5907\u4E14\u7533\u8BF7\u8FC7\u5206\u4EAB\u7684\u8D26\u6237\u4E0B\u662F\u5426\u8FD8\u5B58\u5728\u5206\u4EAB\u8BB0\u5F55",updateTime:152203484e4},{moduleCode:"",detailCode:"160084",description:"\u5F53\u524D\u6B63\u5728\u5173\u95ED\u9690\u79C1\u906E\u853D",solution:"\u8BBE\u5907\u6B63\u5728\u64CD\u4F5C\u9690\u79C1\u906E\u853D\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5F53\u524D\u64CD\u4F5C",updateTime:152203484e4},{moduleCode:"",detailCode:"400034",description:"\u53D6\u6D41\u8D85\u65F6",solution:"\u4E00\u822C\u662F\u7531\u4E8E\u7F51\u7EDC\u72B6\u51B5\u4E0D\u597D\u5BFC\u81F4\uFF0C\u53EF\u4EE5\u5C1D\u8BD5\u4E0B\u8BA9\u7528\u6237\u91CD\u65B0\u64AD\u653E",updateTime:152203484e4},{moduleCode:"",detailCode:"120026",description:"\u89C6\u9891\u5E7F\u573A\u4E0D\u5B58\u5728\u8BE5\u89C6\u9891",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"380290",description:"\u3000\u8FDE\u63A5CAS\u670D\u52A1\u5668\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400035",description:"\u8BBE\u5907\u5DF2\u52A0\u5BC6\uFF0C\u9700\u8981\u8F93\u5165\u9A8C\u8BC1\u7801",solution:"\u6536\u5230\u6B64\u9519\u8BEF\u7801\uFF0C\u9700\u8981\u8BA9\u7528\u6237\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8C03\u7528EZPlayer.setPlayKey\u4F20\u5165\u9A8C\u8BC1\u7801\uFF0C\u5E76\u91CD\u65B0\u8C03\u7528\u64AD\u653E\u51FD\u6570",updateTime:152203484e4},{moduleCode:"",detailCode:"120027",description:"\u89C6\u9891\u8F6C\u7801\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361001",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u6392\u961F\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400036",description:"\u64AD\u653E\u9A8C\u8BC1\u7801\u9519\u8BEF",solution:"\u6536\u5230\u6B64\u9519\u8BEF\u7801\uFF0C\u9700\u8981\u8BA9\u7528\u6237\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8C03\u7528EZPlayer.setPlayKey\u4F20\u5165\u9A8C\u8BC1\u7801\uFF0C\u5E76\u91CD\u65B0\u8C03\u7528\u64AD\u653E\u51FD\u6570",updateTime:152203484e4},{moduleCode:"",detailCode:"120028",description:"\u8BBE\u5907\u56FA\u4EF6\u5347\u7EA7\u5305\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361002",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u5904\u7406\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400037",description:"surfacehold\u9519\u8BEF",solution:"\u8BF7\u68C0\u67E5\u662F\u5426\u662F\u64AD\u653E\u4E4B\u524D\u9500\u6BC1\u4E86surface\uFF0C\u6536\u5230\u6B64\u9519\u8BEF\u4E5F\u53EF\u4EE5\u91CD\u65B0\u5EFA\u7ACBsurface\u540E\u64AD\u653E",updateTime:152203484e4},{moduleCode:"",detailCode:"120029",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u4F46\u662F\u5DF2\u7ECF\u88AB\u81EA\u5DF1\u6DFB\u52A0",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361003",description:"\u8BBE\u5907\u94FE\u63A5\u5BF9\u8BB2\u670D\u52A1\u5668\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400100",description:"\u672A\u77E5\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120030",description:"\u8BE5\u7528\u6237\u4E0D\u62E5\u6709\u8BE5\u89C6\u9891\u5E7F\u573A\u89C6\u9891",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361004",description:"\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400200",description:"player sdk\u51FA\u9519\uFF0C\u8FD9\u79CD\u9519\u8BEF\u4E00\u822C\u5F00\u53D1\u8005\u4E5F\u662F\u65E0\u6CD5\u89E3\u51B3\uFF0C\u4E0D\u5177\u4F53\u5206\u7C7B\u4F20\u51FA\uFF0C\u4F20\u4E00\u4E2A\u7EDF\u4E00\u7684inner\u9519\u8BEF\u7801\u51FA\u53BB",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120031",description:"\u5F00\u542F\u7EC8\u7AEF\u7ED1\u5B9A\uFF0C\u786C\u4EF6\u7279\u5F81\u7801\u9A8C\u8BC1\u5931\u8D25",solution:"\u8BF7\u5728\u8424\u77F3\u5BA2\u6237\u7AEF\u5173\u95ED\u7EC8\u7AEF\u7ED1\u5B9A\uFF0C\u53C2\u8003\u6B64\u6B65\u9AA4",updateTime:152203484e4},{moduleCode:"",detailCode:"361005",description:"\u89E3\u6790\u6D88\u606F\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400300",description:"\u5185\u5B58\u6EA2\u51FA",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120032",description:"\u8BE5\u7528\u6237\u4E0B\u901A\u9053\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361006",description:"\u8BF7\u6C42\u91CD\u5B9A\u5411--\u9700\u8981\u5411\u5176\u4ED6\u670D\u52A1\u7533\u8BF7\u5BF9\u8BB2",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400901",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF\uFF0C\u53EF\u4EE5\u63D0\u793A\u7528\u6237",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120033",description:"\u65E0\u6CD5\u6536\u85CF\u81EA\u5DF1\u5206\u4EAB\u7684\u89C6\u9891",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361007",description:"\u8BF7\u6C42url\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400902",description:"accesstoken\u5F02\u5E38\u6216\u5931\u6548\uFF0C\u9700\u8981\u91CD\u65B0\u83B7\u53D6accesstoken\uFF0C\u5E76\u4F20\u5165\u5230sdk",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120034",description:"\u8BE5\u7528\u6237\u4E0B\u65E0\u8BBE\u5907",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361008",description:"token\u5931\u6548",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400903",description:"\u5F53\u524D\u8D26\u53F7\u5F00\u542F\u4E86\u7EC8\u7AEF\u7ED1\u5B9A\uFF0C\u53EA\u5141\u8BB8\u6307\u5B9A\u8BBE\u5907\u767B\u5F55\u64CD\u4F5C\uFF0C\u63D0\u793A\u7528\u6237\u767B\u5F55i.ys7.com\u89E3\u9664\u7EC8\u7AEF\u7ED1\u5B9A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120090",description:"\u7528\u6237\u53CD\u9988\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361009",description:"\u8BBE\u5907\u9A8C\u8BC1\u7801\u6216\u8005\u901A\u4FE1\u79D8\u94A5\u4E0D\u5339\u914D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400904",description:"\u8BBE\u5907\u6B63\u5728\u5BF9\u8BB2\u4E2D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120095",description:"APP\u5305\u4E0B\u8F7D\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361010",description:"\u8BBE\u5907\u5DF2\u7ECF\u5728\u5BF9\u8BB2",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"400905",description:"\u8BBE\u5907\u5F00\u542F\u4E86\u9690\u79C1\u4FDD\u62A4\uFF0C\u4E0D\u5141\u8BB8\u9884\u89C8\u3001\u5BF9\u8BB2\u7B49",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120096",description:"APP\u5305\u4FE1\u606F\u5220\u9664\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361011",description:"\u8BBE\u590710s\u54CD\u5E94\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120101",description:"\u89C6\u9891\u4E0D\u652F\u6301\u5206\u4EAB\u7ED9\u672C\u4EBA",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361012",description:"\u8BBE\u5907\u4E0D\u5728\u7EBF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320002",description:"\u53C2\u6570\u65E0\u6548",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120102",description:"\u65E0\u76F8\u5E94\u9080\u8BF7\u4FE1\u606F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361013",description:"\u8BBE\u5907\u5F00\u542F\u9690\u79C1\u4FDD\u62A4\u62D2\u7EDD\u5BF9\u8BB2",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320003",description:"\u6682\u4E0D\u652F\u6301\u6B64\u64CD\u4F5C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120103",description:"\u597D\u53CB\u5DF2\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361014",description:"token\u65E0\u6743\u9650",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320004",description:"\u5185\u5B58\u6EA2\u51FA",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120104",description:"\u597D\u53CB\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361015",description:"\u8BBE\u5907\u8FD4\u56DEsession\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320005",description:"\u521B\u5EFACAS session\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120105",description:"\u597D\u53CB\u72B6\u6001\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361016",description:"\u9A8C\u8BC1token\u5176\u4ED6\u5F02\u5E38\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320006",description:"\u521B\u5EFAcloud session\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120106",description:"\u5BF9\u5E94\u7FA4\u7EC4\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361017",description:"\u670D\u52A1\u7AEF\u76D1\u542C\u8BBE\u5907\u5EFA\u7ACB\u7AEF\u53E3\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320007",description:"token\u5931\u6548",solution:"\u91CD\u65B0\u8BBE\u7F6Etoken\u540E\u518D\u91CD\u8BD5",updateTime:152203484e4},{moduleCode:"",detailCode:"120107",description:"\u4E0D\u80FD\u6DFB\u52A0\u81EA\u5DF1\u4E3A\u597D\u53CB",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361018",description:"\u8BBE\u5907\u94FE\u8DEF\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320008",description:"token\u6C60\u91CC\u9762\u6CA1\u6709token,\u8BF7\u4F20\u5165token",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120108",description:"\u5F53\u524D\u7528\u6237\u548C\u6240\u6DFB\u52A0\u7528\u6237\u4E0D\u662F\u597D\u53CB\u5173\u7CFB",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361019",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u4E0D\u652F\u6301\u7684\u4FE1\u4EE4\u6D88\u606F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320009",description:"\u4F20\u5165\u65B0\u7684INIT_PARAM\u5E76reset(\u4FDD\u7559\uFF0C\u76EE\u524D\u672A\u7528)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120109",description:"\u5BF9\u5E94\u5206\u4EAB\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361020",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u89E3\u6790\u5BF9\u8BB2\u8BF7\u6C42\u672A\u643A\u5E26\u4F1A\u8BDD\u63CF\u8FF0\u80FD\u529B\u96C6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320010",description:"\u8BF7\u91CD\u8BD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120110",description:"\u597D\u53CB\u7FA4\u7EC4\u4E0D\u5C5E\u4E8E\u5F53\u524D\u7528\u6237",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361021",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u4F18\u5148\u80FD\u529B\u96C6\u7ED3\u679C\u4E3A\u7A7A",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320011",description:"500\u6BEB\u79D2\u540E\u8BF7\u91CD\u8BD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120111",description:"\u597D\u53CB\u4E0D\u662F\u7B49\u5F85\u9A8C\u8BC1\u72B6\u6001",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361022",description:"cas\u94FE\u8DEF\u5F02\u5E38",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320012",description:"token\u6C60\u5DF2\u6EE1",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120112",description:"\u6DFB\u52A0\u5E94\u7528\u4E0B\u7684\u7528\u6237\u4E3A\u597D\u53CB\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361023",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u5206\u914D\u5BF9\u8BB2\u4F1A\u8BDD\u8D44\u6E90\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320013",description:"P2P client\u8D85\u8FC7\u9650\u5236",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120201",description:"\u64CD\u4F5C\u62A5\u8B66\u4FE1\u606F\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"361024",description:"\u5BF9\u8BB2\u670D\u52A1\u7AEF\u89E3\u6790\u4FE1\u4EE4\u6D88\u606F\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320014",description:"sdk\u672A\u521D\u59CB\u5316",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120202",description:"\u64CD\u4F5C\u7559\u8A00\u4FE1\u606F\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390001",description:"\u901A\u7528\u9519\u8BEF\u8FD4\u56DE",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320015",description:"\u8D85\u65F6",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120301",description:"\u6839\u636EUUID\u67E5\u8BE2\u62A5\u8B66\u6D88\u606F\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390002",description:"\u5165\u53C2\u4E3A\u7A7A\u6307\u9488",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320016",description:"\u6B63\u5728\u6253\u6D1E\u4E2D",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120302",description:"\u6839\u636EUUID\u67E5\u8BE2\u56FE\u7247\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390003",description:"\u5165\u53C2\u503C\u65E0\u6548",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320017",description:"\u6CA1\u6709\u89C6\u9891\u6587\u4EF6\u5934(\u64AD\u653E\u5668\u5C42\u9762\u4EA7\u751F\u548C\u5904\u7406\u6B64\u9519\u8BEF)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120303",description:"\u6839\u636EFID\u67E5\u8BE2\u56FE\u7247\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390004",description:"\u4FE1\u4EE4\u6D88\u606F\u89E3\u6790\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320018",description:"\u89E3\u7801\u9519\u8BEF/\u8D85\u65F6(\u64AD\u653E\u5668\u5C42\u9762\u4EA7\u751F\u548C\u5904\u7406\u6B64\u9519\u8BEF)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120305",description:"\u8BBE\u5907ip\u89E3\u6790\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390005",description:"\u5185\u5B58\u8D44\u6E90\u4E0D\u8DB3",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320019",description:"\u53D6\u6D88(\u4FDD\u7559\uFF0C\u7528\u6237\u4E0D\u7528\u5904\u7406)",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120401",description:"\u7528\u6237\u4E91\u7A7A\u95F4\u4FE1\u606F\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390006",description:"\u534F\u8BAE\u683C\u5F0F\u4E0D\u5BF9\u6216\u8005\u6D88\u606F\u4F53\u957F\u5EA6\u8D85\u8FC7STREAM_MAX_MSGBODY_LEN",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320020",description:"\u64AD\u653E\u8FC7\u7A0B\u4E2D\u9884\u8FDE\u63A5\u88AB\u7528\u6237\u6E05\u9664\u9884\u64CD\u4F5C\u4FE1\u606F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120402",description:"\u4E91\u7A7A\u95F4\u64CD\u4F5C\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390007",description:"\u8BBE\u5907\u5E8F\u5217\u53F7\u957F\u5EA6\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320021",description:"\u6D41\u52A0\u5BC6\u7801\u4E0D\u5BF9",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120403",description:"\u7528\u6237\u76EE\u5F55\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390008",description:"\u53D6\u6D41url\u957F\u5EA6\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"320022",description:"\u672A\u4F20\u5165\u64AD\u653E\u7A97\u53E3",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120404",description:"\u8981\u64CD\u4F5C\u7684\u76EE\u6807\u76EE\u5F55\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390009",description:"\u89E3\u6790vtm\u8FD4\u56DEvtdu\u5730\u5740\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"100200",description:"\u64CD\u4F5C\u6210\u529F",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120405",description:"\u8981\u5220\u9664\u7684\u6587\u4EF6\u4FE1\u606F\u4E0D\u5B58\u5728",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390010",description:"\u89E3\u6790vtm\u8FD4\u56DE\u7EA7\u8054vtdu\u5730\u5740\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101001",description:"\u7528\u6237\u540D\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120406",description:"\u5DF2\u5F00\u901A\u4E91\u5B58\u50A8",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390011",description:"\u89E3\u6790vtm\u8FD4\u56DE\u4F1A\u8BDD\u6807\u8BC6\u957F\u5EA6\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101002",description:"\u7528\u6237\u540D\u5DF2\u88AB\u5360\u7528",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120407",description:"\u5F00\u901A\u8BB0\u5F55\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390012",description:"vtdu\u8FD4\u56DE\u6D41\u5934\u957F\u5EA6\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101003",description:"\u5BC6\u7801\u4E0D\u5408\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120500",description:"\u83B7\u53D6\u6570\u636E\u9519\u8BEF",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390013",description:"vtdu\u4F1A\u8BDD\u957F\u5EA6\u975E\u6CD5",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101004",description:"\u5BC6\u7801\u4E3A\u540C\u4E00\u5B57\u7B26",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120501",description:"\u5F00\u9501\u5931\u8D25",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390014",description:"\u56DE\u8C03\u51FD\u6570\u672A\u6CE8\u518C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"101006",description:"\u624B\u673A\u53F7\u7801\u5DF2\u7ECF\u88AB\u6CE8\u518C",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"120502",description:"\u5BA4\u5185\u673A\u672A\u6536\u5230\u547C\u53EB",solution:"",updateTime:152203484e4},{moduleCode:"",detailCode:"390015",description:"vtdu\u6210\u529F\u54CD\u5E94\u672A\u643A\u5E26\u4F1A\u8BDD\u6807\u8BC6",solution:"",updateTime:152203484e4}],Gs="200",Ks="\u64CD\u4F5C\u6210\u529F!",Wr={data:Vs,code:Gs,msg:Ks},Vr=function(){function h(u,n){Tt(this,h),this.coreX=u,this.coreY=n,console.log("ErrorCode",Wr)}return Pt(h,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"matchErrorInfo",value:function(n){return Wr.data.find(function(i){return i.detailCode.substr(-4)==n})}}]),h}(),Zs={color:"red",backgroundColor:"red",activeColor:"red",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-0",iconId:"deviceID",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"},{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-header-1",iconId:"deviceName",part:"left",defaultActive:1,isrender:1,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},Js={color:"blue",backgroundColor:"blue",activeColor:"blue",btnList:[{btnKey:"ade5d065a113432e8091a1c5bc819c57-934f270c08b14e928bf0c2ae8e1a937d-footer-0",iconId:"play",part:"left",defaultActive:0,isrender:0,themeId:"934f270c08b14e928bf0c2ae8e1a937d"}]},Gr={header:Zs,footer:Js},qs=function h(u){this.jsPlugin=u;var n={isMouseDown:!1,isOver:!1,mousePosition:null,oldTime:null,nowTime:null,moved:null,hoverTime:"2018-12-07 12:00:00",hoverLeft:0,timeTipShow:!1,randomNum:123,timeWidthTbls:[60,1800,3600,86400],timeUnits:["\u8303\u56F4: 1\u5206\u949F; \u5355\u4F4D: \u79D2","\u8303\u56F4: 30\u5206\u949F; \u5355\u4F4D: \u5206\u949F","\u8303\u56F4: 1\u5C0F\u65F6; \u5355\u4F4D: \u5206\u949F","\u8303\u56F4: 1\u5929; \u5355\u4F4D: \u5C0F\u65F6","\u8303\u56F4: 3\u5929; \u5355\u4F4D: \u5C0F\u65F6"],drawPen:null,timeSection:[],canvasWidth:null,canvasHeight:null,timeTips:null},i=this;Object.keys(n).forEach(function(r){i[r]=n[r]}),this.options={width:this.canvasWidth,height:48,time:new Date().getTime(),timeSection:[],timeWidth:0},h.prototype.subTime=function(r){return r<10?"0"+r:r},h.prototype.tranTime=function(r){var a=r;if(r){var s=new Date(r);a=s.getFullYear()+"/"+(s.getMonth()+1)+"/"+s.getDate()+" "+this.subTime(s.getHours())+":"+this.subTime(s.getMinutes())+":"+this.subTime(s.getSeconds())}return a},h.prototype.init=function(r){r.width&&document.getElementById(r.id).setAttribute("width",parseInt(r.width,10)+"px");var a=this,s=this.options;a.randomNum=(Math.random()+"").split(".").join(""),a.timeWidthTblIndex=s.timeWidth;var l=document.querySelector("#".concat(this.jsPlugin.id,"-canvas"));a.drawPen=l.getContext("2d"),a.nowTime=s.time||Date.now(),a.timeSection=s.timeSection||[],a.canvasWidth=l.offsetWidth,a.canvasHeight=l.offsetHeight,a.updata(),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mousemove",function(C){a.options.readOnly||a.mousemove(C)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseover",function(C){a.options.readOnly||a.mouseover(C)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseleave",function(C){a.options.readOnly||a.mouseleave(C)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mousedown",function(C){a.options.readOnly||a.mousedown(C)}),document.getElementById("".concat(this.jsPlugin.id,"-canvas")).addEventListener("mouseup",function(C){if(!a.options.readOnly){var _=r.onChange;a.mouseUpFn(C,_)}})},h.prototype.mousemove=function(r){if(this.isMouseDown&&this.isOver){var a=this.mousePosition-r.pageX;if(a===0)return;var s=0;switch(this.timeWidth){case 60:s=1/10;break;case 1800:s=1/20*60;break;case 3600:s=1/20*60;break;case 86400:s=1/30*60*60;break}var l=new Date(this.oldTime).getTime()+a*s*1e3;this.updata({time:l}),this.moved=!0}else{var C=parseInt(document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).offsetLeft,10);this.mousePosition=r.pageX-C,this.updata()}},h.prototype.mousedown=function(r){this.isMouseDown=!0,this.mousePosition=r.pageX,this.oldTime=this.nowTime},h.prototype.mouseover=function(r){this.isOver=!0},h.prototype.mouseleave=function(r){this.isOver=!1,this.isMouseDown=!1,this.updata()},h.prototype.changeSize=function(r){console.log("changeSize",r),this.options.timeWidth=r,this.updata({timeWidth:r})},h.prototype.mouseUpFn=function(r,a){if(this.isMouseDown&&(this.isMouseDown=!1,this.moved)){this.moved=!1;var s=this.subTime(new Date(this.nowTime).getHours())+":"+this.subTime(new Date(this.nowTime).getMinutes())+":"+this.subTime(new Date(this.nowTime).getSeconds()),l=new Date(this.oldTime).getFullYear()+"/"+(new Date(this.oldTime).getMonth()+1)+"/"+new Date(this.oldTime).getDate();this.nowTime=new Date("".concat(l," ").concat(s)),this.updata({time:this.nowTime}),this.oldTime=this.nowTime,console.log("nowTime",new Date(this.nowTime),"".concat(l," ").concat(s)),a(this.nowTime)}},h.prototype.readOnly=function(r){console.log("\u66F4\u6539\u4E3A\u53EA\u8BFB"),this.options.readOnly=!0,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.cursor="not-allowed"},h.prototype.unReadOnly=function(r){console.log("\u66F4\u6539\u4E3A\u53EA\u8BFB"),this.options.readOnly=!1,document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.cursor="pointer"},h.prototype.run=function(r){this.isMouseDown||this.updata(r)},h.prototype.getTime=function(r){console.log("this",this),console.log("\u5F53\u524D\u65F6\u95F4",new Date(this.nowTime))},h.prototype.updata=function(r){var a=this;r=r||{},a.nowTime=r.time||a.nowTime,a.timeSection=r.timeSection||a.timeSection,a.timeWidthTblIndex=r.timeWidth||a.timeWidthTblIndex,a.timeWidth=a.timeWidthTbls[r.timeWidth||a.timeWidthTblIndex],a.timeUnit=a.timeUnits[r.timeWidth||a.timeWidthTblIndex],r.timeWidth===0&&(a.timeWidthTblIndex=0,a.timeWidth=a.timeWidthTbls[0],a.timeUnit=a.timeUnits[0]),a.drawPen.fillStyle="#000000",a.drawPen.fillRect(0,0,a.canvasWidth,a.canvasHeight),a.drawScale(),a.drawRecord(),a.drawOtherMsg(),document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.width=this.options.width+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.width=this.options.width+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas-container")).style.height=this.options.height+"px",document.getElementById("".concat(this.jsPlugin.id,"-canvas")).style.height=this.options.height+"px"},h.prototype.drawSolidLine=function(r,a,s,l,C,_){this.drawPen.save(),this.drawPen.strokeStyle=_,this.drawPen.lineWidth=C,this.drawPen.beginPath(),this.drawPen.moveTo(r,a),this.drawPen.lineTo(s,l),this.drawPen.stroke(),this.drawPen.restore()},h.prototype.drawString=function(r,a,s,l,C){this.drawPen.font="12px serif",this.drawPen.fillStyle="#ffffff",this.drawPen.textAlign=l||"left",this.drawPen.fillText(r,a,s+10)},h.prototype.drawScale=function(){var r=this,a="rgba(255,255,255)",s=new Date(r.nowTime),l=s.getFullYear(),C=s.getSeconds(),_=s.getMinutes(),y=s.getHours(),v=s.getDate(),m=0;switch(r.timeWidth){case 60:{var w=parseInt(r.canvasWidth/10);s.setSeconds(s.getSeconds()-parseInt(w/2,10)),v=s.getDate(),y=s.getHours(),_=s.getMinutes(),C=s.getSeconds();for(var R=0;R<w;R++){if(m=C+R,s.setSeconds(m),m%10==0){r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5+8,1,a);var E=this.subTime(s.getHours())+":"+this.subTime(s.getMinutes())+":"+this.subTime(s.getSeconds());r.drawString(E,R*r.canvasWidth/w,r.canvasHeight/5*2.5,"center","rgba(255,255,255,0.3)")}else r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5*.5+8,1,a);s.setDate(v),s.setHours(y),s.setMinutes(_)}break}case 1800:{var w=parseInt(r.canvasWidth/20);s.setMinutes(s.getMinutes()-parseInt(w/2,10)),y=s.getHours(),_=s.getMinutes();for(var R=0;R<=w;R++){if(m=_+R,s.setMinutes(m),m%5==0){r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5*1.5+8,1,a);var E=this.subTime(s.getHours())+":"+this.subTime(s.getMinutes());r.drawString(E,R*r.canvasWidth/w,r.canvasHeight/5*2.5,"center","rgba(255,255,255,0.3)")}else r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5*.5+8,1,a);s.setHours(y)}break}case 3600:{var w=parseInt(r.canvasWidth/20);s.setMinutes(s.getMinutes()-parseInt(w/2,10)),y=s.getHours(),_=s.getMinutes();for(var R=0;R<=w;R++){if(m=_+R,s.setMinutes(m),m%10==0){r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5*1.5+8,1,a);var E=this.subTime(s.getHours())+":"+this.subTime(s.getMinutes());r.drawString(E,R*r.canvasWidth/w,r.canvasHeight/5*2.5,"center","rgba(255,255,255,0.3)")}else r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5*.5+8,1,a);s.setHours(y)}break}case 86400:{var w=parseInt(r.canvasWidth/30);s.setHours(s.getHours()-parseInt(w/2,10)),C=s.getSeconds(),_=s.getMinutes(),y=s.getHours(),v=s.getDate(),l=s.getFullYear();for(var R=0;R<=w;R++){m=y+R,s.setHours(m);var E;E=this.subTime(s.getHours())+":00",r.drawSolidLine(R*r.canvasWidth/w,8,R*r.canvasWidth/w,r.canvasHeight/5*.5+8,1,a),m%2==0&&r.drawString(E,R*r.canvasWidth/w,r.canvasHeight/5*2,"center","rgba(255,255,255,0.3)"),s.setFullYear(l),s.setDate(v),s.setHours(y)}break}}},h.prototype.getRecord=function(r,a,s){this.timeSection=r,this.drawRecord()},h.prototype.drawRecord=function(){for(var r=this.timeSection||[],a=this,s=a.drawPen,l=0;l<r.length;l++){var C=y(r[l].startTime),_=y(r[l].endTime);s.fillStyle="#1890ff80",s.fillRect(C,0,_-C,48)}function y(v){var m=10;switch(a.timeWidth){case 60:m=10;break;case 1800:m=20/60;break;case 3600:m=20/60;break;case 86400:m=20/60/60;break}var w=a.canvasWidth/2,R=w+(v-a.nowTime)/1e3*m;return R>a.canvasWidth&&(R=a.canvasWidth),R<=0&&(R=0),R}},h.prototype.drawOtherMsg=function(){this.drawSolidLine(this.canvasWidth/2,0,this.canvasWidth/2,this.canvasHeight,2,"#1890FF"),this.drawPen.shadowBlur=0,this.isOver&&!this.isMouseDown?(this.mouseTime=this.mousePosition/this.canvasWidth*this.timeWidth*1e3+this.nowTime-this.timeWidth/2*1e3,this.mouseString=this.tranTime(this.mouseTime),this.hoverTime=this.mouseString,this.hoverLeft=this.mousePosition-60,this.timeTipShow=!0):this.timeTipShow=!1}},Ys=function(){function h(u){var n=this;if(Tt(this,h),this.jSPlugin=u,!document.getElementById("".concat(this.jSPlugin.id,"-audioControls")))return!1;this.currentTimeWidth=1,this.timer=null,this.date=new Date,this.datepickerVisible=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency);var i=parseInt(getComputedStyle(document.getElementById(u.id)).width,10)-100,r=document.createElement("div");r.style="display:inline-block;height:48px;",r.id=this.jSPlugin.id+"-canvas-container";var a=document.createElement("canvas");a.id=this.jSPlugin.id+"-canvas",a.className="time-line-body",a.height="48",a.width=i,a.style="display:inline-block;",a.innerHTML="\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301canvas",r.appendChild(a),Ln(r,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")));var s=document.createElement("div");s.className="timeline-controls",s.style="display:flex;width:100px;height:48px;text-align:center;line-height: 48px;vertical-align: top;background: #000000;";var l=`
  21. <div class="timeline-controls-scale" style="display: inline-flex;flex-direction: column;justify-content: center;vertical-align: top;padding: 0 20px;">
  22. <span style="vertical-Align: middle;line-height: 14px;height: 18px; width: 18px;cursor:pointer;" id="`.concat(this.jSPlugin.id,`-timeline-scale-add">
  23. <svg fill="#2C2C2C" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"
  24. viewBox="0 0 20 20">
  25. <title>add</title>
  26. <g>
  27. <polygon points="0.1,0.5 15,0.5 15,15.4 0.1,15.4 " />
  28. </g>
  29. <g>
  30. <path
  31. fill="#FFFFFF";
  32. d="M7.6,12.4c-0.3,0-0.5-0.2-0.5-0.5v-8c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v8C8.1,12.2,7.9,12.4,7.6,12.4z" />
  33. </g>
  34. <g>
  35. <path
  36. fill="#FFFFFF";
  37. d="M11.6,8.4h-8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5S11.8,8.4,11.6,8.4z" />
  38. </g>
  39. </svg>
  40. </span>
  41. <span style="vertical-Align: middle;line-height: 14px;height: 18px; width: 18px;cursor:pointer;" id="`).concat(this.jSPlugin.id,`-timeline-scale-sub">
  42. <svg fill="#2C2C2C" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"
  43. viewBox="0 0 20 20">
  44. <title>reduce</title>
  45. <g>
  46. <polygon class="st0" points="1,0.8 15.2,0.8 15.2,15 1,15 " />
  47. </g>
  48. <g>
  49. <path class="st1"
  50. fill="#FFFFFF";
  51. d="M12.1,8.4h-8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5S12.4,8.4,12.1,8.4z" />
  52. </g>
  53. </svg>
  54. </span>
  55. </div>
  56. <label for="`).concat(this.jSPlugin.id,`-datepicker">
  57. <div class="timeline-controls-date">
  58. <span>
  59. <svg fill="#2C2C2C" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20"
  60. viewBox="0 0 20 20">
  61. <title>ifttt</title>
  62. <g id="Rectangle">
  63. <rect x="0.6" y="0.9" class="st0" width="20" height="20" />
  64. </g>
  65. <g id="Stroke-1">
  66. <path fill="#FFFFFF"; class="st1"
  67. d="M14,7.2c-0.3,0-0.5-0.2-0.5-0.5V3.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v3.3C14.5,7,14.2,7.2,14,7.2z" />
  68. </g>
  69. <g id="Stroke-3">
  70. <path fill="#FFFFFF"; class="st1"
  71. d="M7.3,7.2C7,7.2,6.8,7,6.8,6.7V3.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v3.3C7.8,7,7.6,7.2,7.3,7.2z" />
  72. </g>
  73. <g id="Stroke-5">
  74. <path fill="#FFFFFF"; class="st1"
  75. d="M18.1,9.7h-15c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h15c0.3,0,0.5,0.2,0.5,0.5S18.4,9.7,18.1,9.7z" />
  76. </g>
  77. <g id="Stroke-7">
  78. <path fill="#FFFFFF"; class="st1" d="M16.5,19.7H4.8c-1.2,0-2.2-1-2.2-2.2V6.7c0-1.2,1-2.2,2.2-2.2h11.7c1.2,0,2.2,1,2.2,2.2v10.8
  79. C18.6,18.8,17.7,19.7,16.5,19.7z M4.8,5.6c-0.6,0-1.2,0.5-1.2,1.2v10.8c0,0.6,0.5,1.2,1.2,1.2h11.7c0.6,0,1.2-0.5,1.2-1.2V6.7
  80. c0-0.6-0.5-1.2-1.2-1.2H4.8z" />
  81. </g>
  82. <g id="Stroke-9">
  83. <path fill="#FFFFFF"; class="st1" d="M10.6,13.3c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5s0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7
  84. S11,13.3,10.6,13.3z" />
  85. </g>
  86. <g id="Stroke-11">
  87. <path fill="#FFFFFF"; class="st1" d="M14.8,13.3c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2c0.4,0,0.7,0.3,0.7,0.7
  88. S15.2,13.3,14.8,13.3z M14.8,12.3c-0.2,0-0.3,0.1-0.3,0.3c0,0.2,0.3,0.4,0.5,0.2c0.1-0.1,0.1-0.1,0.1-0.2
  89. C15.1,12.4,15,12.3,14.8,12.3z" />
  90. </g>
  91. <g id="Stroke-13">
  92. <path fill="#FFFFFF"; class="st1" d="M6.5,16.6c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7
  93. C7.2,16.3,6.9,16.6,6.5,16.6z" />
  94. </g>
  95. <g id="Stroke-15">
  96. <path fill="#FFFFFF"; class="st1" d="M10.6,16.6c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7
  97. C11.4,16.3,11,16.6,10.6,16.6z" />
  98. </g>
  99. </svg>
  100. </span>
  101. </div>
  102. </label>
  103. <input data-toggle="`).concat(this.jSPlugin.id,'-datepicker" id="').concat(this.jSPlugin.id,'-datepicker" name="').concat(this.jSPlugin.id,`-datepicker" style="opacity:0;width:24px;margin-left:-24px;cursor:pointer;" />
  104. `);s.innerHTML=l,Ln(s,r),this.timeLine=new qs(this.jSPlugin),this.timeLine.init({id:this.jSPlugin.id+"-canvas",width:i,onChange:function(m){console.log("time",m,new Date(m).Format("yyyyMMddhhmmss"));var w=new Date(m).Format("yyyyMMddhhmmss");if(Ue(n.jSPlugin.url).type==="cloud.rec"){var R=function(){n.jSPlugin.seek(w.substr(8,6),"235959"),n.unSyncTimeLine(),setTimeout(function(){n.syncTimeLine()},6e3)};n.seekTimer?clearTimeout(n.seekTimer):R(),n.seekTimer=setTimeout(function(){R(),clearTimeout(n.seekTimer),n.seekTimer=null},n.seekFrequency)}else{var E=function(){setTimeout(function(){n.disabled=!1},n.seekFrequency)},b=function(T){n.disabled=!0,n.jSPlugin.pause().then(function(){console.log("\u6682\u505C\u6210\u529F"),n.jSPlugin.resume(w).then(function(d){console.log("\u6062\u590D\u6210\u529F"),n.jSPlugin.Theme&&n.jSPlugin.Theme.setDecoderState({play:!0}),T&&T()}).catch(function(d){console.log("\u6062\u590D\u5931\u8D25",d)})}).catch(function(){console.log("\u6682\u505C\u5931\u8D25"),n.jSPlugin.resume(w).then(function(d){console.log("\u6062\u590D\u6210\u529F"),n.jSPlugin.Theme&&n.jSPlugin.Theme.setDecoderState({play:!0}),T&&T()}).catch(function(d){console.log("\u6062\u590D\u5931\u8D25",d)})})};n.disabled?(console.log("\u64CD\u4F5C\u9891\u7E41\uFF0C\u7B49\u5F852\u79D2\u540E\u6267\u884C"),n.seekTimer&&clearTimeout(n.seekTimer),n.seekTimer=setTimeout(function(){b(E)},n.seekFrequency)):b(E)}}}),this.syncTimeLine(),xo("".concat(this.jSPlugin.staticPath,"/rec/datepicker.min.css")),Jn("".concat(this.jSPlugin.staticPath,"/rec/jquery.min.js"),function(){Jn("".concat(n.jSPlugin.staticPath,"/rec/datepicker.js"),function(){Jn("".concat(n.jSPlugin.staticPath,"/rec/datepicker.zh-CN.js"),function(){document.getElementsByClassName("datepicker-container")[0]||$("#".concat(n.jSPlugin.id,"-datepicker")).datepicker({autoShow:!1,autoHide:!0,autoPick:!0,language:"zh-CN",defaultDate:new Date,format:"yyyy-mm-dd",endDate:new Date,inline:!0,container:document.getElementById("".concat(n.jSPlugin.id,"-wrap"))}),document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),n.datepickerVisible=!1,$("#".concat(n.jSPlugin.id,"-datepicker")).on("pick.datepicker",function(v){console.log("\u91CD\u65B0\u9009\u62E9\u65E5\u671F",v.date,new Date(v.date).Format("yyyyMMdd"),new Date(document.getElementById("".concat(n.jSPlugin.id,"-datepicker")).value).Format("yyyyMMdd")),v.date>new Date||new Date(v.date).Format("yyyyMMdd")===new Date(document.getElementById("".concat(n.jSPlugin.id,"-datepicker")).value).Format("yyyyMMdd")?v.preventDefault():(n.renderRec(v.date),n.jSPlugin.changePlayUrl({begin:new Date(v.date).Format("yyyyMMdd")})),document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"),n.datepickerVisible=!1}),$("#".concat(n.jSPlugin.id,"-datepicker")).off("click").on("click",function(v){console.log("\u70B9\u51FB\u65E5\u671F"),n.datepickerVisible?document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="none"):document.getElementsByClassName("datepicker-container")[0]&&(document.getElementsByClassName("datepicker-container")[0].style.display="inline"),n.datepickerVisible=!n.datepickerVisible})})})}),document.getElementById("".concat(this.jSPlugin.id,"-timeline-scale-add")).onclick=function(){var v=n.currentTimeWidth;v<3&&n.timeLine.changeSize(++n.currentTimeWidth)},document.getElementById("".concat(this.jSPlugin.id,"-timeline-scale-sub")).onclick=function(){var v=n.currentTimeWidth;v>0&&n.timeLine.changeSize(--n.currentTimeWidth)};var C=Ze("begin",this.jSPlugin.url)||new Date().Format("yyyyMMdd");this.renderRec("".concat(C.slice(0,4),"-").concat(C.slice(4,6),"-").concat(C.slice(6,8))),this.observer=new MutationObserver(function(v,m){n.recAutoSize()});var _={attributes:!0,attributeOldValue:!0,attributeFilter:["style"]},y=document.getElementById("".concat(this.jSPlugin.id));this.observer.observe(y,_)}return Pt(h,[{key:"recAutoSize",value:function(){var n=this;if(document.getElementById("".concat(this.jSPlugin.id,"-canvas"))){var i=parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width,10)-100;i!==parseInt(document.getElementById("".concat(this.jSPlugin.id,"-canvas")).width)&&(document.getElementById("".concat(this.jSPlugin.id,"-canvas")).width=i,this.timeLine.init({id:"".concat(this.jSPlugin.id,"-canvas"),width:i,onChange:function(a){console.log("time",a,new Date(a).Format("yyyyMMddhhmmss")),console.log("jSPlugin",n.jSPlugin);var s=new Date(a).Format("yyyyMMddhhmmss");n.jSPlugin.changePlayUrl({begin:s})}}),this.renderRec(this.date))}}},{key:"renderRec",value:function(n){var i=this;this.date=n;var r=new Date(new Date(n).Format("yyyy-MM-dd 00:00:00").replace(/-/g,"/")).getTime(),a=new Date(new Date(n).Format("yyyy-MM-dd 23:59:59").replace(/-/g,"/")).getTime();this.timeLine.getRecord([],r,a);var s={accessToken:this.jSPlugin.accessToken,recType:Ue(this.jSPlugin.url).type==="cloud.rec"?1:2,deviceSerial:Ue(this.jSPlugin.url).deviceSerial,channelNo:Ue(this.jSPlugin.url).channelNo,startTime:r,endTime:a,version:"2.0"},l=function(y){if(y.data&&y.data.files&&y.data.files.length>0){var v=y.data.files,m=new Date().getTime(),w=y.data.isAll;if(w)i.timeLine.getRecord(v,r,a);else{var R=function E(){function b(j){j.data&&j.data.files&&j.data.files.length>0?j.data.isAll==!1?(j.data.files&&(v=v.concat(j.data.files)),m=j.data.nextFileTime>0?j.data.nextFileTime:new Date().getTime(),E()):(console.log("\u4E91\u5B58\u50A8\u6267\u884C\u6E32\u67D3\u7247\u6BB5"),this.timeLine.getRecord(v,r,a)):this.timeLine.getRecord(v,r,a)}s.startTime=m,zn(this.jSPlugin.env.domain+"/api/lapp/video/by/time","POST",s,"",b)};R()}i.timeLine.run({time:new Date(r)})}else y.data&&y.data.length>0&&(console.log("\u83B7\u53D6\u672C\u5730\u5F55\u50CF\u7247\u6BB5\u6210\u529F",y),i.timeLine.getRecord(y.data,r,a),i.timeLine.run({time:new Date(r)}))},C=this.jSPlugin.env.domain+"/api/lapp/video/by/time";zn(C,"POST",s,"",l)}},{key:"syncTimeLine",value:function(){var n=this;this.timer&&clearInterval(this.timer),this.timer=setInterval(function(){var i=n.jSPlugin.getOSDTime();i.then(function(r){var a=r.data;a===-1?console.log("\u83B7\u53D6\u64AD\u653E\u65F6\u95F4\u9519\u8BEF"):a>0&&n.timeLine.run({time:new Date(a>1e12?a:a*1e3)})}).catch(function(r){})},1e3)}},{key:"unSyncTimeLine",value:function(){this.timer&&clearInterval(this.timer)}}]),h}(),Qt=function(u){console.log("\u6267\u884CTimeLine - params",u),this.state={id:u.id,start:"00:00:00",end:"24:00:00",current:0,timelag:30,timeArr:[],availTimeLine:[],scrollTop:0,index:0,date:"",noTimeLineTxt:"",disabled:!1};var n=this;this.setState=function(i){Object.keys(i).forEach(function(r){n.state[r]=i[r],r==="scrollTop"&&document.getElementById("time-line-item").parentNode.scrollTo(0,i[r]),r==="current"&&(document.getElementById("time-line-current").innerHTML=i[r])})},this.setDisabled=function(i){this.setState({disabled:i}),document.getElementById("time-line-item").parentNode.style.overflowY=i?"hidden":"scroll"},this.timeToSecond=function(i){var r=i.split(":"),a=Number(r[0]),s=Number(r[1]),l=Number(r[2]);return a*60*60+s*60+(l||0)},this.minuteToTime=function(i){var r=Math.floor(i/60),a=i%60;return(r>9?r:"0"+r)+":"+(a>9?a:"0"+a)},this.timeToMinute=function(i){var r=i.split(":"),a=Number(r[0]),s=Number(r[1]);return a*60+s},this.getPalyParam=u.getPalyParam,document.getElementById("time-line-item").parentNode.ontouchstart=function(){if(n.state.disabled)return!1;u.ontouchstart()},document.getElementById("time-line-item").parentNode.ontouchmove=function(){if(n.state.disabled)return!1;u.ontouchmove()},document.getElementById("time-line-item").parentNode.ontouchend=function(){if(n.state.disabled)return!1;var i,r=new Promise(function(a,s){var l=-1;i=setInterval(function(){var C=document.getElementById("time-line-item").parentNode.scrollTop;C!==l?(console.log("scolling",C,l),l=C):(console.log("scoll stop",C,l),clearInterval(i),a(C))},100)});r.then(function(a){console.log("scollPromise: then",a,n),n.rectTopTotime(a),console.log("\u9875\u9762\u6EDA\u52A8\u5B9E\u9645\u9AD8\u5EA6",a,n.state),n.getPalyParam({current:n.state.current})}),u.ontouchend()},this.matchTimeDot()};Qt.prototype.changeScale=function(h){this.setState({timelag:h}),this.matchTimeDot()},Qt.prototype.setDateLine=function(h,u){h.length>0?(typeof u=="undefined"&&(u=h.length-1),this.setState({availTimeLine:h,start:h[u].st,end:h[u].et,current:h[u].st}),console.log("this.state",this.state),this.matchRecTimeDot(),this.primaryOffsetH()):(this.setState({availTimeLine:[]}),console.log("this.state",this.state),this.matchRecTimeDot())},Qt.prototype.matchTimeDot=function(){var h=this.state,u=h.start,n=h.end,i=h.timelag;h.availTimeLine,console.log("start",u,"end",n);var r=[],a=this.timeToMinute(n);a=Math.floor(a/i)*i;for(var s=a;s>=0;){var l=0,C=0,_=[];s==a&&(l=70),s==0&&(C=230);var y=this.minuteToTime(s);r.push({id:s,current:y,label:"a"+s,marginTop:l,marginBottom:C,recArr:_}),s=s-i}this.setState({timeArr:r}),this.renderDateLine()},Qt.prototype.matchRecTimeDot=function(){var h=this.state,u=h.start,n=h.end,i=h.timelag,r=h.availTimeLine,a=h.timeArr;console.log("start",u,"end",n);var s=[],l=r.length;if(l===0)for(var C=0;C<a.length;C++)a[C].recArr=[];else for(var _=0;_<l;_++){var y=r[_],v=this.timeToSecond(y.st),m=this.timeToSecond(y.et),w=void 0,R=void 0,E=0,b=0;w=Math.floor(v/(i*60))*i,E=(v-w*60)/i,R=Math.floor(m/(i*60))*i,b=(m-R*60)/i,s[_]={st:w,et:R,stAvailPercent:E,etAvailPercent:b};for(var C=0;C<a.length;C++)if(a[C].id==w&&a[C].id==R){var j=b-E,T=60-b;a[C].recArr.push({height:j,top:T})}else a[C].id==w?a[C].recArr.push({height:60-E,top:0}):a[C].id==R?a[C].recArr.push({height:b,top:60-b}):a[C].id>w&&a[C].id<R&&a[C].recArr.push({height:60,top:0})}console.log("availArr: ",s),this.setState({timeArr:a}),console.log("timeArr:",this.state),this.renderDateLine()},Qt.prototype.renderDateLine=function(){var h=this.state,u=h.id,n=h.timeArr;console.log("id,timeArr",u,n);var i=document.getElementById("time-line-item");i.innerHTML="",n.forEach(function(r,a){var s=document.createElement("div");s.setAttribute("class","time-item"),s.style="margin-top: ".concat(r.marginTop,"px; margin-bottom: ").concat(r.marginBottom,"px; border-right-color: ").concat(r.borderColor,";");var l=document.createElement("div");l.setAttribute("class","scale");var C='<div class="scale"></div><div class="scale"></div><div class="scale"></div><div class="scale"></div><div class="scale"></div><div class="scale" style="width:10px"></div>';r.recArr.forEach(function(_,y){C+='<div class="item-unavail" style="height: '.concat(_.height,"px;background-color:#A8B9ED; top: ").concat(_.top,'px"></div>')}),C+="<div id=".concat(r.label,' style="position: relative; top: 51px; left: 40%"> ').concat(r.current,"</div>"),s.innerHTML=C,i.appendChild(s)})},Qt.prototype.primaryOffsetH=function(){var h=this.state,u=h.start,n=h.timelag,i=h.timeArr,r=i[0].current,a=this.timeToSecond(r),s=this.timeToSecond(u),l=a-s,C=Math.ceil(l/n)+60;this.setState({scrollTop:C}),console.log("\u8D77\u59CB\u504F\u79FB\u91CF",C)},Qt.prototype.currentOffsetH=function(){var h=this.state,u=h.current,n=h.timelag,i=h.timeArr,r=i[0].current,a=this.timeToSecond(r),s=this.timeToSecond(u),l=a-s,C=Math.ceil(l/n)+60;this.setState({scrollTop:C})},Qt.prototype.rectTopTotime=function(h){var u=this.state.timelag,n=Math.floor(h/60),i=h-n*60,r,a;if(console.log("index\uFF1A",n,"offsetH:",i),i==0)r=this.state.timeArr[n-1].current,a=0;else{var s=this.state.timeArr[n].current,l=this.timeToMinute(s),C=60-i,_=C*u,y=Math.floor(_/60)+l,v=Math.floor(_/60)*60;a=Math.ceil(_-v),r=this.minuteToTime(y)}this.setState({current:r+":"+(a>9?a:"0"+a),scrollTop:h})},Qt.prototype.stepScrollTimeLine=function(h){this.setState({current:h}),this.currentOffsetH()},Qt.prototype.secondCountDown=function(h){var u=this.state.current,n=u.split(":"),i=Number(n[0]),r=Number(n[1]),a=Number(n[2]),s=i*60*60+r*60+a+1,l=Math.floor(s/3600),C=Math.floor((s-l*3600)/60),_=s-l*3600-C*60;this.setState({current:(l>9?l:"0"+l)+":"+(C>9?C:"0"+C)+":"+(_>9?_:"0"+_)})};var $s=Qt;Date.prototype.Format=function(h){var u={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(h)&&(h=h.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in u)new RegExp("("+n+")").test(h)&&(h=h.replace(RegExp.$1,RegExp.$1.length==1?u[n]:("00"+u[n]).substr((""+u[n]).length)));return h};function Kr(h){var u=new Date(h),n=u.getHours(),i=u.getMinutes(),r=u.getSeconds();return(n>9?n:"0"+n)+":"+(i>9?i:"0"+i)+":"+(r>9?r:"0"+r)}var Xs=function(){function h(u){var n=this;Tt(this,h),this.jSPlugin=u,this.timer=null,this.date=new Date().Format("yyyy-MM-dd"),this.begin=(new Date().Format("yyyy-MM-dd")+" 00:00:00").replace(/-/g,"/"),this.end=(new Date().Format("yyyy-MM-dd")+" 23:59:59").replace(/-/g,"/"),this.initBegin=null,this.initEnd=null,this.type=Ue(this.jSPlugin.url).type,this.operating=!1,this.seekTimer=null,this.disabled=!1,this.seekFrequency=2e3,this.jSPlugin.params&&this.jSPlugin.params.seekFrequency&&(this.seekFrequency=this.jSPlugin.params.seekFrequency);var i=document.createElement("style");if(i.innerHTML=`
  105. body{
  106. padding: 0;
  107. margin: 0;
  108. }
  109. .time-line-container {
  110. text-align: left;
  111. height: 300px;
  112. /* outline: 1px solid red; */
  113. /* background: gray; */
  114. position: relative;
  115. /* padding-top: 60px; */
  116. margin-top: 20px;
  117. }
  118. .time-line-container .time-line-item-container {
  119. display: inline-block;
  120. /* height: 400px; */
  121. width: 30%;
  122. /* background: indianred; */
  123. overflow-y: scroll;
  124. overflow-x: hidden;
  125. /* padding-top: 60px; */
  126. height: 300px;
  127. box-sizing: border-box;
  128. white-space: nowrap;
  129. position: relative;
  130. }
  131. .time-line-container .time-line-item-container::-webkit-scrollbar {
  132. width: 0px;
  133. /*\u6EDA\u52A8\u6761\u5BBD\u5EA6*/
  134. height: 0px;
  135. /*\u6EDA\u52A8\u6761\u9AD8\u5EA6*/
  136. }
  137. .time-line-item .time-item {
  138. position: relative;
  139. box-sizing: border-box;
  140. height: 60px;
  141. font-size: 12px;
  142. color: rgb(150, 150, 150);
  143. border-right: 6px solid;
  144. border-right-color: #ddd;
  145. }
  146. .time-line-item .time-item .scale {
  147. width: 6px;
  148. height: 9px;
  149. border-bottom: 1px solid #ccc;
  150. float: right;
  151. clear: both;
  152. }
  153. .time-line-item .time-item .item-unavail {
  154. width: 6px;
  155. position: absolute;
  156. left: 100%;
  157. background-color: #ddd;
  158. }
  159. .time-line-container .current-time {
  160. position: absolute;
  161. left: 0;
  162. top: 40px;
  163. height: 29px;
  164. /* line-height: 58px; */
  165. border-bottom: 1px solid #648FFC;
  166. width: 60%;
  167. margin-left: 26%;
  168. }
  169. .time-line-container .current-time .current-time-bg {
  170. position: relative;
  171. top: 15px;
  172. width: 100px;
  173. height: 29px;
  174. line-height: 29px;
  175. left: -70px;
  176. font-size: 12px;
  177. color: #2C2C2C;
  178. }
  179. .time-line-container .current-time .current-time-bg::before {
  180. content: '';
  181. display: inline-block;
  182. width: 6px;
  183. height: 6px;
  184. border-radius: 100%;
  185. background: #648FFC;
  186. top: 11px;
  187. position: absolute;
  188. right: 30px;
  189. }
  190. .date-switch-container {
  191. height: 40px;
  192. position: relative;
  193. text-align: center;
  194. margin: 20px 10px;
  195. }
  196. .date-switch-container .current-date {
  197. line-height: 40px;
  198. height: 22px;
  199. font-size: 16px;
  200. color: #2C2C2C;
  201. text-align: center;
  202. font-weight: bold;
  203. }
  204. .date-container {
  205. width: 40px;
  206. height: 40px;
  207. position: absolute;
  208. right: 0;
  209. top: 0;
  210. }
  211. .rec-type-container {
  212. display: flex;
  213. justify-content: space-between;
  214. }
  215. .rec-type-container .rec-type-text {
  216. padding: 0 15px;
  217. font-size: 12px;
  218. color: #2C2C2C;
  219. }
  220. .rec-type-container .rec-type-switch {
  221. padding: 0 20px;
  222. }
  223. .date-container input {
  224. position: absolute;
  225. opacity: 0;
  226. display: inline-block;
  227. width: 40px;
  228. height: 40px;
  229. z-index: 10;
  230. left: 0;
  231. }
  232. .date-container label {
  233. position: absolute;
  234. left: 0;
  235. top: 0;
  236. /* display: none; */
  237. z-index: 0;
  238. }
  239. .date-icon {
  240. display: inline-block;
  241. width: 40px;
  242. height: 40px;
  243. background: url('https://resource.eziot.com/group2/M00/00/6A/CtwQF2F6VieAQrU9AAABP-_Nsqo949.png') no-repeat 100% 100%;
  244. }
  245. .select-container {
  246. padding: 10px;
  247. display: flex;
  248. justify-content: space-between;
  249. }
  250. .advice {
  251. height: 24px;
  252. width: 70px;
  253. display: flex;
  254. justify-content: space-between;
  255. line-height: 24px;
  256. background: #F8F8F8;
  257. border-radius: 8px;
  258. }
  259. .advice span {
  260. width: 40px;
  261. display: inline-block;
  262. }
  263. input[type="checkbox"]:not(:checked)+.advice span:first-child {
  264. box-shadow: 0px 2px 5px 0px rgb(23 45 101 / 20%);
  265. border-radius: 8px;
  266. text-align: center;
  267. }
  268. input[type="checkbox"]:checked+.advice span:last-child {
  269. box-shadow: 0px 2px 5px 0px rgb(23 45 101 / 20%);
  270. border-radius: 8px;
  271. text-align: center;
  272. }
  273. input[type="checkbox"]:not(:checked)+.advice span:first-child svg {
  274. fill: #648FFC !important;
  275. }
  276. input[type="checkbox"]:checked+.advice span:last-child svg {
  277. fill: #648FFC !important;
  278. }`,document.getElementsByTagName("head")[0].appendChild(i),Ze("begin",this.jSPlugin.url)){var r=Ze("begin",this.jSPlugin.url);this.date=r.slice(0,4)+"/"+r.slice(4,6)+"/"+r.slice(6,8),this.begin=this.date+" ".concat(r.slice(8,10)||"00",":").concat(r.slice(10,12)||"00",":").concat(r.slice(12,14)||"00"),this.end=this.date+" 23:59:59",this.initBegin=this.begin}if(Ze("end",this.jSPlugin.url)){var a=Ze("end",this.jSPlugin.url);this.end=this.date+" ".concat(a.slice(8,10)||"23",":").concat(a.slice(10,12)||"59",":").concat(a.slice(12,14)||"59"),this.initEnd=this.end}var s=document.createElement("div");s.id="date-switch-container-wrap",s.className="date-switch-container-wrap",s.style="",s.innerHTML=`
  279. <div class="date-switch-container">
  280. <div class="current-date" id="current-date">\u4ECA\u65E5\u5F55\u50CF</div>
  281. <div class="date-container">
  282. <label for="date">
  283. <div class="date-icon"></div>
  284. </label>
  285. <input type="date" name="date" id="date" />
  286. </div>
  287. </div>
  288. `,Ln(s,document.getElementById("".concat(this.jSPlugin.id,"-wrap")));var l=document.createElement("div");l.id="rec-type-container-wrap",l.className="rec-type-container-wrap",l.style="",l.innerHTML=`
  289. <div class="rec-type-container">
  290. <div class="rec-type-text">\u5171\u4E2A<span id="recCount">0</span>\u5F55\u50CF</div>
  291. <div class="rec-type-switch">
  292. <label>
  293. <input type="checkbox" name="type" id="cloudType" value="1" hidden />
  294. <label for="cloudType" class="advice">
  295. <span>
  296. <svg fill="#CCCCCC" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 0 20 20">
  297. <path class="st0" d="M12.6,5c-2.3,0.1-4.3,1.4-5.3,3.3L7.2,8.6c-2.4,0.5-4.1,2.5-4.1,4.9c0,2.8,2.4,5,5.2,5h9.9
  298. c2.4,0,4.3-1.9,4.3-4.2l0-0.2c-0.1-2-1.6-3.5-3.5-3.9l-0.1,0l0-0.2c-0.4-2.8-3-5-6.1-5L12.6,5z"/>
  299. </svg>
  300. </span>
  301. <span>
  302. <svg fill="#CCCCCC" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 0 20 20">
  303. <path id="\u5F62\u72B6\u7ED3\u5408" class="st0" d="M14.3,4c0.6,0,1.2,0.2,1.7,0.7l0,0L18.3,7C18.7,7.4,19,8,19,8.6l0,0v9c0,1.3-1.1,2.3-2.4,2.3
  304. l0,0H8.4C7.1,20,6,19,6,17.7l0,0V6.3C6,5,7.1,4,8.4,4l0,0H14.3z M9.7,7.2C9.3,7.2,8.9,7.6,8.9,8l0,0v2.5l0,0.1
  305. c0,0.4,0.4,0.6,0.7,0.6c0.4,0,0.8-0.3,0.8-0.8l0,0V8l0-0.1C10.4,7.5,10,7.2,9.7,7.2z M12.2,7.2c-0.4,0-0.8,0.3-0.8,0.8l0,0v2.5
  306. l0,0.1c0,0.4,0.4,0.6,0.7,0.6c0.4,0,0.8-0.3,0.8-0.8l0,0V8l0-0.1C12.9,7.5,12.5,7.2,12.2,7.2z M14.7,7.2c-0.4,0-0.8,0.3-0.8,0.8l0,0
  307. v2.5l0,0.1c0,0.4,0.4,0.6,0.7,0.6c0.4,0,0.8-0.3,0.8-0.8l0,0V8l0-0.1C15.4,7.5,15,7.2,14.7,7.2z"/>
  308. </svg>
  309. </span>
  310. </label>
  311. </label>
  312. </div>
  313. </div>
  314. `,Ln(l,s);var C=document.createElement("div");C.id="mobile-rec-wrap",C.className="mobileRec-wrap",C.style="",C.innerHTML=`
  315. <div class="time-line-container">
  316. <div class="current-time">
  317. <div class="current-time-bg" id="time-line-current">2020-01-01 00:00:00</div>
  318. </div>
  319. <div class="time-line-item-container">
  320. <div class="time-line-item" id="time-line-item">
  321. </div>
  322. </div>
  323. </div>
  324. `,Ln(C,l);var _=function(R){console.log("\u5B50\u7EC4\u4EF6\u4F20\u503C\u5230\u7236\u7EC4\u4EF6",R,R.current);var E=R.current,b=new Date(n.date).Format("yyyyMMdd").substr(0,8)+(R.current?E.replace(/:/g,""):R.current.replace(/:/g,""));if(n.initBegin&&new Date("".concat(n.date," ").concat(R.current)).getTime()<new Date(n.initBegin).getTime()&&(console.log("\u8D85\u8FC7\u9650\u5236\u6700\u4F4E\u503C"),b=new Date(n.initBegin).Format("yyyyMMddhhmmss")),n.initEnd&&new Date("".concat(n.date," ").concat(R.current)).getTime()>new Date(n.initEnd).getTime()&&(console.log("\u8D85\u8FC7\u9650\u5236\u6700\u9AD8\u503C"),b=new Date(n.initBegin).Format("yyyyMMddhhmmss")),n.type==="cloud.rec"){var j=function(){n.jSPlugin.seek(b.substr(8,6),"235959"),setTimeout(function(){n.syncTimeLine()},6e3)};n.seekTimer?clearTimeout(n.seekTimer):j(),console.log("this.jsPlug",n.jSPlugin.params),n.seekTimer=setTimeout(function(){j(),clearTimeout(n.seekTimer),n.seekTimer=null},n.seekFrequency)}else{var T=function(){setTimeout(function(){n.disabled=!1},n.seekFrequency)},d=function(x){n.disabled=!0,n.jSPlugin.pause().then(function(){console.log("\u6682\u505C\u6210\u529F"),n.jSPlugin.resume(b).then(function(A){console.log("\u6062\u590D\u6210\u529F"),n.jSPlugin.Theme&&n.jSPlugin.Theme.setDecoderState({play:!0}),n.syncTimeLine(),x&&x()})}).catch(function(){console.log("\u6682\u505C\u5931\u8D25"),n.jSPlugin.resume(b).then(function(A){console.log("\u6062\u590D\u6210\u529F"),n.jSPlugin.Theme&&n.jSPlugin.Theme.setDecoderState({play:!0}),n.syncTimeLine(),x&&x()})})};n.disabled?(console.log("\u64CD\u4F5C\u9891\u7E41\uFF0C\u7B49\u5F852\u79D2\u540E\u6267\u884C"),n.seekTimer&&clearTimeout(n.seekTimer),n.seekTimer=setTimeout(function(){d(T)},n.seekFrequency)):d(T)}},y=function(){n.operating=!0,n.unSyncTimeLine()},v=function(){},m=function(){n.operating=!1,console.log("ontouchend")};this.TimeLineOBJ=new $s({id:"time-line-item",getPalyParam:_,ontouchstart:y,ontouchmove:v,ontouchend:m}),this.fetchDeviceRec(),document.getElementById("date").addEventListener("change",function(w){if(console.log("\u65E5\u671F\u53D8\u5316",w.target.value),n.initBegin||n.initEnd)return console.log("\u60A8\u5F00\u542F\u4E86\u65F6\u95F4\u9650\u5236\uFF0C\u65E0\u6CD5\u5207\u6362\u65E5\u671F"),!1;n.date=new Date(w.target.value).Format("yyyy/MM/dd"),n.begin=n.date+" 00:00:00",n.end=n.date+" 23:59:59",n.fetchDeviceRec(),n.jSPlugin.changePlayUrl({type:n.type,begin:"".concat(new Date(n.date).Format("yyyyMMdd"),"000000")})}),document.getElementById("cloudType").checked=this.type==="rec",document.getElementById("cloudType").addEventListener("change",function(w){var R=w.target.checked?2:1;n.type=w.target.checked?"rec":"cloud.rec",console.log("recType",R),n.fetchDeviceRec(),n.jSPlugin.changePlayUrl({type:n.type,begin:"".concat(new Date(n.date).Format("yyyyMMdd"),"000000")}).then(function(){console.log("\u5207\u6362\u7C7B\u578B\u6210\u529F"),n.syncTimeLine()},function(E){console.log("err",E)}).catch(function(E){console.log(E)})}),this.syncTimeLine()}return Pt(h,[{key:"fetchDeviceRec",value:function(){var n=this,i=function(s){var l=s.length;document.getElementById("recCount").innerHTML=l;for(var C=[],_=l-1;_>=0;_--){var y=s[_],v=Kr(y.endTime),m=Kr(y.startTime);C.push({st:m,et:v})}n.TimeLineOBJ.setDateLine(C)},r=new FormData;r.append("deviceSerial",Ue(this.jSPlugin.url).deviceSerial),r.append("channelNo",Ue(this.jSPlugin.url).channelNo),r.append("accessToken",this.jSPlugin.accessToken),r.append("recType",this.type==="cloud.rec"?1:2),r.append("startTime",new Date(this.begin).getTime()),r.append("endTime",new Date(this.end).getTime()),fetch(this.jSPlugin.env.domain+"/api/lapp/video/by/time",{method:"POST",body:r}).then(function(a){return a.json()}).then(function(a){if(a.code==200&&a.data){var s=[];s=a.data,i(s)}else i([])})}},{key:"syncTimeLine",value:function(){var n=this,i=function(a){var s=new Date(a),l=s.getHours(),C=s.getMinutes(),_=s.getSeconds();return(l>9?l:"0"+l)+":"+(C>9?C:"0"+C)+":"+(_>9?_:"0"+_)};this.timer&&clearInterval(this.timer),this.timer=setInterval(function(){if(n.operating)return console.log("\u64CD\u4F5C\u4E2D"),!1;n.jSPlugin.getOSDTime().then(function(r){r.data>0?n.TimeLineOBJ.stepScrollTimeLine(i(r.data*1e3)):console.log("\u672A\u627E\u5230\u5F53\u524D\u83B7\u53D6\u64AD\u653E\u65F6\u95F4\uFF0C\u7B49\u5F85\u4E2D...")}).catch(function(r){console.log("\u672A\u627E\u5230\u5F53\u524D\u83B7\u53D6\u64AD\u653E\u65F6\u95F4\uFF0C\u7B49\u5F85\u4E2D...")})},1e3)}},{key:"unSyncTimeLine",value:function(){this.timer&&clearInterval(this.timer)}}]),h}(),Qs=function(){function h(u){var n=this;if(Tt(this,h),this.jSPlugin=u,console.log("\u4E91\u53F0\u521D\u59CB\u5316"),document.getElementById(this.jSPlugin.id+"-ez-ptz-item"))return!1;var i=document.createElement("div");i.id=this.jSPlugin.id+"-ez-ptz-item",i.className="ez-ptz-wrap",i.style="display:none";var r=document.createElement("style");r.innerHTML=`
  325. .ez-ptz-container {
  326. position: relative;
  327. width: 80px;
  328. height: 80px;
  329. background: rgba(255, 255, 255, 0.80);
  330. box-shadow: 0px 0px 33px 4px rgb(0 0 0 / 15%);
  331. border: 1px solid rgba(255, 255, 255, 0.80);
  332. border-radius: 100%;
  333. cursor: pointer;
  334. overflow: hidden;
  335. user-select: none;
  336. }
  337. .ez-ptz-container .ez-ptz-icon.top {
  338. width: 0;
  339. height: 0;
  340. border-left: 3px solid transparent;
  341. border-right: 3px solid transparent;
  342. border-bottom: 6px solid #333333;
  343. position: absolute;
  344. display: inline-block;
  345. left: calc(50% - 3px);
  346. top: 2px;
  347. }
  348. .ez-ptz-container .ez-ptz-icon.top.active {
  349. border-bottom-color: #1890FF;
  350. }
  351. .ez-ptz-container .ez-ptz-icon.bottom {
  352. width: 0;
  353. height: 0;
  354. border-left: 3px solid transparent;
  355. border-right: 3px solid transparent;
  356. border-top: 6px solid #333333;
  357. position: absolute;
  358. display: inline-block;
  359. left: calc(50% - 3px);
  360. bottom: 2px;
  361. }
  362. .ez-ptz-container .ez-ptz-icon.bottom.active {
  363. border-top-color: #1890FF;
  364. }
  365. .ez-ptz-container .ez-ptz-icon.right {
  366. width: 0;
  367. height: 0;
  368. border-top: 3px solid transparent;
  369. border-bottom: 3px solid transparent;
  370. border-left: 6px solid #333333;
  371. position: absolute;
  372. display: inline-block;
  373. top: calc(50% - 3px);
  374. right: 2px;
  375. }
  376. .ez-ptz-container .ez-ptz-icon.right.active {
  377. border-left-color: #1890FF;
  378. }
  379. .ez-ptz-container .ez-ptz-icon.left {
  380. width: 0;
  381. height: 0;
  382. border-top: 3px solid transparent;
  383. border-bottom: 3px solid transparent;
  384. border-right: 6px solid #333333;
  385. position: absolute;
  386. display: inline-block;
  387. top: calc(50% - 3px);
  388. left: 2px;
  389. }
  390. .ez-ptz-container .ez-ptz-icon.left.active {
  391. border-right-color: #1890FF;
  392. }
  393. .ez-ptz-container .ez-ptz-main.center {
  394. width: 23px;
  395. height: 23px;
  396. background: #1890FF;
  397. border-radius: 100%;
  398. top: calc(50% - 12.3px);
  399. left: calc(50% - 12.3px);
  400. position: absolute;
  401. }
  402. .ez-ptz-wrap {
  403. position: absolute;
  404. right: 20px;
  405. top: calc(50% - 50px);
  406. width: 100px;
  407. height: 100px;
  408. z-index: 999;
  409. }
  410. .ez-ptz-close {
  411. position: absolute;
  412. color: #FFFFFF;
  413. top: 0;
  414. right: 0px;
  415. }`,document.getElementsByTagName("head")[0].appendChild(r),i.innerHTML=`
  416. <div class="ez-ptz-container" id="`.concat(this.jSPlugin.id,`-ez-ptz-container" style="position: relative;width: 80px;height: 80px;background: rgba(255, 255, 255, 0.80);box-shadow: 0px 0px 33px 4px rgba(0, 0, 0, 0.15);border: 1px solid rgba(255, 255, 255, 0.80);border-radius: 100%;cursor: pointer;overflow: hidden;user-select: none;">
  417. <div class="ez-ptz-main center"></div>
  418. <div class="ez-ptz-icon top active"></div>
  419. <div class="ez-ptz-icon left active"></div>
  420. <div class="ez-ptz-icon bottom active"></div>
  421. <div class="ez-ptz-icon right active"></div>
  422. `),document.getElementById("".concat(u.id,"-wrap")).appendChild(i),document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).onmousedown=function(a){a.preventDefault(),console.log("\u89E6\u6478\u5F00\u59CB"),n._handlePtzTouch(a,"start")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).onmouseup=function(a){a.preventDefault(),console.log("\u89E6\u6478\u7ED3\u675F"),n._handlePtzTouch(a,"stop")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).ontouchstart=function(a){a.preventDefault(),console.log("\u89E6\u6478\u5F00\u59CB"),n._handlePtzTouch(a,"start")},document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).ontouchend=function(a){a.preventDefault(),console.log("\u89E6\u6478\u7ED3\u675F",a),n._handlePtzTouch(a,"stop")}}return Pt(h,[{key:"show",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-item")).style="display: inline-block"}},{key:"hide",value:function(){document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-item")).style="display: none"}},{key:"_handlePtzTouch",value:function(n,i){var r=this,a=document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).getBoundingClientRect(),s=a.left+41,l=a.top+41,C=n.x||n.changedTouches[0].clientX,_=n.y||n.changedTouches[0].clientY,y=C-s,v=_-l,m=0,w=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start";if(Math.abs(y)>Math.abs(v)?y>0?m=3:m=2:v>0?m=1:m=0,/^rotate\(90/.test(document.getElementById("".concat(this.jSPlugin.id,"-wrap")).style.transform))switch(m){case 0:m=2;break;case 1:m=3;break;case 2:m=1;break;case 3:m=0;break}document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).style="background-image:linear-gradient(".concat(m===0?180:m===1?0:m===2?90:270,"deg, #1d8dd8 0%, rgba(100,143,252,0.00) 30%)"),i==="stop"&&(w=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",document.getElementById("".concat(this.jSPlugin.id,"-ez-ptz-container")).style="");var R=new FormData;R.append("deviceSerial",Ue(this.jSPlugin.url).deviceSerial),R.append("channelNo",Ue(this.jSPlugin.url).channelNo),R.append("speed",1),R.append("direction",m),R.append("accessToken",this.jSPlugin.accessToken),fetch(w,{method:"POST",body:R}).then(function(E){return E.json()}).then(function(E){E.code==200||(E.code==60005||E.code==60002||E.code==60003||E.code==60004)&&(document.getElementById("".concat(r.jSPlugin.id,"-ez-ptz-container")).style="background-image:linear-gradient(".concat(m===0?180:m===1?0:m===2?90:270,"deg, #f45656 0%, rgba(100,143,252,0.00) 30%)"))}).catch(function(E){console.log("\u4E91\u53F0\u8C03\u7528\u5F02\u5E38",E)})}}]),h}();(function(h){if(Se(Ds)==="object")Bn.exports=h();else{var u;typeof window!="undefined"?u=window:typeof wo!="undefined"?u=wo:typeof self!="undefined"?u=self:u=this,u.adapter=h()}})(function(){return function(){function h(u,n,i){function r(l,C){if(!n[l]){if(!u[l]){var _=typeof Io=="function"&&Io;if(!C&&_)return _(l,!0);if(a)return a(l,!0);var y=new Error("Cannot find module '"+l+"'");throw y.code="MODULE_NOT_FOUND",y}var v=n[l]={exports:{}};u[l][0].call(v.exports,function(m){var w=u[l][1][m];return r(w||m)},v,v.exports,h,u,n,i)}return n[l].exports}for(var a=typeof Io=="function"&&Io,s=0;s<i.length;s++)r(i[s]);return r}return h}()({1:[function(h,u,n){var i=h("./adapter_factory.js"),r=(0,i.adapterFactory)({window});window.adapter=r,u.exports=r},{"./adapter_factory.js":2}],2:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.adapterFactory=b;var i=h("./utils"),r=E(i),a=h("./chrome/chrome_shim"),s=E(a),l=h("./edge/edge_shim"),C=E(l),_=h("./firefox/firefox_shim"),y=E(_),v=h("./safari/safari_shim"),m=E(v),w=h("./common_shim"),R=E(w);function E(j){if(j&&j.__esModule)return j;var T={};if(j!=null)for(var d in j)Object.prototype.hasOwnProperty.call(j,d)&&(T[d]=j[d]);return T.default=j,T}function b(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=j.window,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0},f=r.log,x=r.detectBrowser(T),A={browserDetails:x,commonShim:R,extractVersion:r.extractVersion,disableLog:r.disableLog,disableWarnings:r.disableWarnings};switch(x.browser){case"chrome":if(!s||!s.shimPeerConnection||!d.shimChrome)return f("Chrome shim is not included in this adapter release."),A;f("adapter.js shimming chrome."),A.browserShim=s,s.shimGetUserMedia(T),s.shimMediaStream(T),s.shimPeerConnection(T),s.shimOnTrack(T),s.shimAddTrackRemoveTrack(T),s.shimGetSendersWithDtmf(T),s.shimGetStats(T),s.shimSenderReceiverGetStats(T),s.fixNegotiationNeeded(T),R.shimRTCIceCandidate(T),R.shimConnectionState(T),R.shimMaxMessageSize(T),R.shimSendThrowTypeError(T),R.removeAllowExtmapMixed(T);break;case"firefox":if(!y||!y.shimPeerConnection||!d.shimFirefox)return f("Firefox shim is not included in this adapter release."),A;f("adapter.js shimming firefox."),A.browserShim=y,y.shimGetUserMedia(T),y.shimPeerConnection(T),y.shimOnTrack(T),y.shimRemoveStream(T),y.shimSenderGetStats(T),y.shimReceiverGetStats(T),y.shimRTCDataChannel(T),y.shimAddTransceiver(T),y.shimCreateOffer(T),y.shimCreateAnswer(T),R.shimRTCIceCandidate(T),R.shimConnectionState(T),R.shimMaxMessageSize(T),R.shimSendThrowTypeError(T);break;case"edge":if(!C||!C.shimPeerConnection||!d.shimEdge)return f("MS edge shim is not included in this adapter release."),A;f("adapter.js shimming edge."),A.browserShim=C,C.shimGetUserMedia(T),C.shimGetDisplayMedia(T),C.shimPeerConnection(T),C.shimReplaceTrack(T),R.shimMaxMessageSize(T),R.shimSendThrowTypeError(T);break;case"safari":if(!m||!d.shimSafari)return f("Safari shim is not included in this adapter release."),A;f("adapter.js shimming safari."),A.browserShim=m,m.shimRTCIceServerUrls(T),m.shimCreateOfferLegacy(T),m.shimCallbacksAPI(T),m.shimLocalStreamsAPI(T),m.shimRemoteStreamsAPI(T),m.shimTrackEventTransceiver(T),m.shimGetUserMedia(T),R.shimRTCIceCandidate(T),R.shimMaxMessageSize(T),R.shimSendThrowTypeError(T),R.removeAllowExtmapMixed(T);break;default:f("Unsupported browser!");break}return A}},{"./chrome/chrome_shim":3,"./common_shim":6,"./edge/edge_shim":7,"./firefox/firefox_shim":11,"./safari/safari_shim":14,"./utils":15}],3:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=n.shimGetUserMedia=void 0;var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(d){return Se(d)}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":Se(d)},r=h("./getusermedia");Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return r.shimGetUserMedia}});var a=h("./getdisplaymedia");Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),n.shimMediaStream=y,n.shimOnTrack=v,n.shimGetSendersWithDtmf=m,n.shimGetStats=w,n.shimSenderReceiverGetStats=R,n.shimAddTrackRemoveTrackWithNative=E,n.shimAddTrackRemoveTrack=b,n.shimPeerConnection=j,n.fixNegotiationNeeded=T;var s=h("../utils.js"),l=C(s);function C(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var x in d)Object.prototype.hasOwnProperty.call(d,x)&&(f[x]=d[x]);return f.default=d,f}function _(d,f,x){return f in d?Object.defineProperty(d,f,{value:x,enumerable:!0,configurable:!0,writable:!0}):d[f]=x,d}function y(d){d.MediaStream=d.MediaStream||d.webkitMediaStream}function v(d){if((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection&&!("ontrack"in d.RTCPeerConnection.prototype)){Object.defineProperty(d.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(A){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=A)},enumerable:!0,configurable:!0});var f=d.RTCPeerConnection.prototype.setRemoteDescription;d.RTCPeerConnection.prototype.setRemoteDescription=function(){var A=this;return this._ontrackpoly||(this._ontrackpoly=function(B){B.stream.addEventListener("addtrack",function(U){var N=void 0;d.RTCPeerConnection.prototype.getReceivers?N=A.getReceivers().find(function(ee){return ee.track&&ee.track.id===U.track.id}):N={track:U.track};var K=new Event("track");K.track=U.track,K.receiver=N,K.transceiver={receiver:N},K.streams=[B.stream],A.dispatchEvent(K)}),B.stream.getTracks().forEach(function(U){var N=void 0;d.RTCPeerConnection.prototype.getReceivers?N=A.getReceivers().find(function(ee){return ee.track&&ee.track.id===U.id}):N={track:U};var K=new Event("track");K.track=U,K.receiver=N,K.transceiver={receiver:N},K.streams=[B.stream],A.dispatchEvent(K)})},this.addEventListener("addstream",this._ontrackpoly)),f.apply(this,arguments)}}else l.wrapPeerConnectionEvent(d,"track",function(x){return x.transceiver||Object.defineProperty(x,"transceiver",{value:{receiver:x.receiver}}),x})}function m(d){if((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection&&!("getSenders"in d.RTCPeerConnection.prototype)&&"createDTMFSender"in d.RTCPeerConnection.prototype){var f=function(ee,X){return{track:X,get dtmf(){return this._dtmf===void 0&&(X.kind==="audio"?this._dtmf=ee.createDTMFSender(X):this._dtmf=null),this._dtmf},_pc:ee}};if(!d.RTCPeerConnection.prototype.getSenders){d.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var x=d.RTCPeerConnection.prototype.addTrack;d.RTCPeerConnection.prototype.addTrack=function(ee,X){var Y=x.apply(this,arguments);return Y||(Y=f(this,ee),this._senders.push(Y)),Y};var A=d.RTCPeerConnection.prototype.removeTrack;d.RTCPeerConnection.prototype.removeTrack=function(ee){A.apply(this,arguments);var X=this._senders.indexOf(ee);X!==-1&&this._senders.splice(X,1)}}var B=d.RTCPeerConnection.prototype.addStream;d.RTCPeerConnection.prototype.addStream=function(ee){var X=this;this._senders=this._senders||[],B.apply(this,[ee]),ee.getTracks().forEach(function(Y){X._senders.push(f(X,Y))})};var U=d.RTCPeerConnection.prototype.removeStream;d.RTCPeerConnection.prototype.removeStream=function(ee){var X=this;this._senders=this._senders||[],U.apply(this,[ee]),ee.getTracks().forEach(function(Y){var de=X._senders.find(function(ce){return ce.track===Y});de&&X._senders.splice(X._senders.indexOf(de),1)})}}else if((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection&&"getSenders"in d.RTCPeerConnection.prototype&&"createDTMFSender"in d.RTCPeerConnection.prototype&&d.RTCRtpSender&&!("dtmf"in d.RTCRtpSender.prototype)){var N=d.RTCPeerConnection.prototype.getSenders;d.RTCPeerConnection.prototype.getSenders=function(){var ee=this,X=N.apply(this,[]);return X.forEach(function(Y){return Y._pc=ee}),X},Object.defineProperty(d.RTCRtpSender.prototype,"dtmf",{get:function(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function w(d){if(!!d.RTCPeerConnection){var f=d.RTCPeerConnection.prototype.getStats;d.RTCPeerConnection.prototype.getStats=function(){var A=this,B=Array.prototype.slice.call(arguments),U=B[0],N=B[1],K=B[2];if(arguments.length>0&&typeof U=="function")return f.apply(this,arguments);if(f.length===0&&(arguments.length===0||typeof U!="function"))return f.apply(this,[]);var ee=function(ce){var fe={},Ce=ce.result();return Ce.forEach(function(me){var xe={id:me.id,timestamp:me.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[me.type]||me.type};me.names().forEach(function(He){xe[He]=me.stat(He)}),fe[xe.id]=xe}),fe},X=function(ce){return new Map(Object.keys(ce).map(function(fe){return[fe,ce[fe]]}))};if(arguments.length>=2){var Y=function(ce){N(X(ee(ce)))};return f.apply(this,[Y,U])}return new Promise(function(de,ce){f.apply(A,[function(fe){de(X(ee(fe)))},ce])}).then(N,K)}}}function R(d){if(!!((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection&&d.RTCRtpSender&&d.RTCRtpReceiver)){if(!("getStats"in d.RTCRtpSender.prototype)){var f=d.RTCPeerConnection.prototype.getSenders;f&&(d.RTCPeerConnection.prototype.getSenders=function(){var N=this,K=f.apply(this,[]);return K.forEach(function(ee){return ee._pc=N}),K});var x=d.RTCPeerConnection.prototype.addTrack;x&&(d.RTCPeerConnection.prototype.addTrack=function(){var N=x.apply(this,arguments);return N._pc=this,N}),d.RTCRtpSender.prototype.getStats=function(){var N=this;return this._pc.getStats().then(function(K){return l.filterStats(K,N.track,!0)})}}if(!("getStats"in d.RTCRtpReceiver.prototype)){var A=d.RTCPeerConnection.prototype.getReceivers;A&&(d.RTCPeerConnection.prototype.getReceivers=function(){var N=this,K=A.apply(this,[]);return K.forEach(function(ee){return ee._pc=N}),K}),l.wrapPeerConnectionEvent(d,"track",function(U){return U.receiver._pc=U.srcElement,U}),d.RTCRtpReceiver.prototype.getStats=function(){var N=this;return this._pc.getStats().then(function(K){return l.filterStats(K,N.track,!1)})}}if("getStats"in d.RTCRtpSender.prototype&&"getStats"in d.RTCRtpReceiver.prototype){var B=d.RTCPeerConnection.prototype.getStats;d.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof d.MediaStreamTrack){var N=arguments[0],K=void 0,ee=void 0,X=void 0;return this.getSenders().forEach(function(Y){Y.track===N&&(K?X=!0:K=Y)}),this.getReceivers().forEach(function(Y){return Y.track===N&&(ee?X=!0:ee=Y),Y.track===N}),X||K&&ee?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):K?K.getStats():ee?ee.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return B.apply(this,arguments)}}}}function E(d){d.RTCPeerConnection.prototype.getLocalStreams=function(){var N=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(function(K){return N._shimmedLocalStreams[K][0]})};var f=d.RTCPeerConnection.prototype.addTrack;d.RTCPeerConnection.prototype.addTrack=function(N,K){if(!K)return f.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};var ee=f.apply(this,arguments);return this._shimmedLocalStreams[K.id]?this._shimmedLocalStreams[K.id].indexOf(ee)===-1&&this._shimmedLocalStreams[K.id].push(ee):this._shimmedLocalStreams[K.id]=[K,ee],ee};var x=d.RTCPeerConnection.prototype.addStream;d.RTCPeerConnection.prototype.addStream=function(N){var K=this;this._shimmedLocalStreams=this._shimmedLocalStreams||{},N.getTracks().forEach(function(Y){var de=K.getSenders().find(function(ce){return ce.track===Y});if(de)throw new DOMException("Track already exists.","InvalidAccessError")});var ee=this.getSenders();x.apply(this,arguments);var X=this.getSenders().filter(function(Y){return ee.indexOf(Y)===-1});this._shimmedLocalStreams[N.id]=[N].concat(X)};var A=d.RTCPeerConnection.prototype.removeStream;d.RTCPeerConnection.prototype.removeStream=function(N){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[N.id],A.apply(this,arguments)};var B=d.RTCPeerConnection.prototype.removeTrack;d.RTCPeerConnection.prototype.removeTrack=function(N){var K=this;return this._shimmedLocalStreams=this._shimmedLocalStreams||{},N&&Object.keys(this._shimmedLocalStreams).forEach(function(ee){var X=K._shimmedLocalStreams[ee].indexOf(N);X!==-1&&K._shimmedLocalStreams[ee].splice(X,1),K._shimmedLocalStreams[ee].length===1&&delete K._shimmedLocalStreams[ee]}),B.apply(this,arguments)}}function b(d){if(!d.RTCPeerConnection)return;var f=l.detectBrowser(d);if(d.RTCPeerConnection.prototype.addTrack&&f.version>=65)return E(d);var x=d.RTCPeerConnection.prototype.getLocalStreams;d.RTCPeerConnection.prototype.getLocalStreams=function(){var Y=this,de=x.apply(this);return this._reverseStreams=this._reverseStreams||{},de.map(function(ce){return Y._reverseStreams[ce.id]})};var A=d.RTCPeerConnection.prototype.addStream;d.RTCPeerConnection.prototype.addStream=function(Y){var de=this;if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},Y.getTracks().forEach(function(fe){var Ce=de.getSenders().find(function(me){return me.track===fe});if(Ce)throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[Y.id]){var ce=new d.MediaStream(Y.getTracks());this._streams[Y.id]=ce,this._reverseStreams[ce.id]=Y,Y=ce}A.apply(this,[Y])};var B=d.RTCPeerConnection.prototype.removeStream;d.RTCPeerConnection.prototype.removeStream=function(Y){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},B.apply(this,[this._streams[Y.id]||Y]),delete this._reverseStreams[this._streams[Y.id]?this._streams[Y.id].id:Y.id],delete this._streams[Y.id]},d.RTCPeerConnection.prototype.addTrack=function(Y,de){var ce=this;if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var fe=[].slice.call(arguments,1);if(fe.length!==1||!fe[0].getTracks().find(function(He){return He===Y}))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");var Ce=this.getSenders().find(function(He){return He.track===Y});if(Ce)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};var me=this._streams[de.id];if(me)me.addTrack(Y),Promise.resolve().then(function(){ce.dispatchEvent(new Event("negotiationneeded"))});else{var xe=new d.MediaStream([Y]);this._streams[de.id]=xe,this._reverseStreams[xe.id]=de,this.addStream(xe)}return this.getSenders().find(function(He){return He.track===Y})};function U(X,Y){var de=Y.sdp;return Object.keys(X._reverseStreams||[]).forEach(function(ce){var fe=X._reverseStreams[ce],Ce=X._streams[fe.id];de=de.replace(new RegExp(Ce.id,"g"),fe.id)}),new RTCSessionDescription({type:Y.type,sdp:de})}function N(X,Y){var de=Y.sdp;return Object.keys(X._reverseStreams||[]).forEach(function(ce){var fe=X._reverseStreams[ce],Ce=X._streams[fe.id];de=de.replace(new RegExp(fe.id,"g"),Ce.id)}),new RTCSessionDescription({type:Y.type,sdp:de})}["createOffer","createAnswer"].forEach(function(X){var Y=d.RTCPeerConnection.prototype[X],de=_({},X,function(){var ce=this,fe=arguments,Ce=arguments.length&&typeof arguments[0]=="function";return Ce?Y.apply(this,[function(me){var xe=U(ce,me);fe[0].apply(null,[xe])},function(me){fe[1]&&fe[1].apply(null,me)},arguments[2]]):Y.apply(this,arguments).then(function(me){return U(ce,me)})});d.RTCPeerConnection.prototype[X]=de[X]});var K=d.RTCPeerConnection.prototype.setLocalDescription;d.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?K.apply(this,arguments):(arguments[0]=N(this,arguments[0]),K.apply(this,arguments))};var ee=Object.getOwnPropertyDescriptor(d.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(d.RTCPeerConnection.prototype,"localDescription",{get:function(){var Y=ee.get.apply(this);return Y.type===""?Y:U(this,Y)}}),d.RTCPeerConnection.prototype.removeTrack=function(Y){var de=this;if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!Y._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");var ce=Y._pc===this;if(!ce)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};var fe=void 0;Object.keys(this._streams).forEach(function(Ce){var me=de._streams[Ce].getTracks().find(function(xe){return Y.track===xe});me&&(fe=de._streams[Ce])}),fe&&(fe.getTracks().length===1?this.removeStream(this._reverseStreams[fe.id]):fe.removeTrack(Y.track),this.dispatchEvent(new Event("negotiationneeded")))}}function j(d){var f=l.detectBrowser(d);if(!d.RTCPeerConnection&&d.webkitRTCPeerConnection&&(d.RTCPeerConnection=d.webkitRTCPeerConnection),!!d.RTCPeerConnection){f.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(A){var B=d.RTCPeerConnection.prototype[A],U=_({},A,function(){return arguments[0]=new(A==="addIceCandidate"?d.RTCIceCandidate:d.RTCSessionDescription)(arguments[0]),B.apply(this,arguments)});d.RTCPeerConnection.prototype[A]=U[A]});var x=d.RTCPeerConnection.prototype.addIceCandidate;d.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?f.version<78&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():x.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}}function T(d){l.wrapPeerConnectionEvent(d,"negotiationneeded",function(f){var x=f.target;if(x.signalingState==="stable")return f})}},{"../utils.js":15,"./getdisplaymedia":4,"./getusermedia":5}],4:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=i;function i(r,a){if(!(r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices)&&!!r.navigator.mediaDevices){if(typeof a!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}r.navigator.mediaDevices.getDisplayMedia=function(l){return a(l).then(function(C){var _=l.video&&l.video.width,y=l.video&&l.video.height,v=l.video&&l.video.frameRate;return l.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:C,maxFrameRate:v||3}},_&&(l.video.mandatory.maxWidth=_),y&&(l.video.mandatory.maxHeight=y),r.navigator.mediaDevices.getUserMedia(l)})}}}},{}],5:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(_){return Se(_)}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":Se(_)};n.shimGetUserMedia=C;var r=h("../utils.js"),a=s(r);function s(_){if(_&&_.__esModule)return _;var y={};if(_!=null)for(var v in _)Object.prototype.hasOwnProperty.call(_,v)&&(y[v]=_[v]);return y.default=_,y}var l=a.log;function C(_){var y=_&&_.navigator;if(!!y.mediaDevices){var v=a.detectBrowser(_),m=function(T){if((typeof T=="undefined"?"undefined":i(T))!=="object"||T.mandatory||T.optional)return T;var d={};return Object.keys(T).forEach(function(f){if(!(f==="require"||f==="advanced"||f==="mediaSource")){var x=i(T[f])==="object"?T[f]:{ideal:T[f]};x.exact!==void 0&&typeof x.exact=="number"&&(x.min=x.max=x.exact);var A=function(N,K){return N?N+K.charAt(0).toUpperCase()+K.slice(1):K==="deviceId"?"sourceId":K};if(x.ideal!==void 0){d.optional=d.optional||[];var B={};typeof x.ideal=="number"?(B[A("min",f)]=x.ideal,d.optional.push(B),B={},B[A("max",f)]=x.ideal,d.optional.push(B)):(B[A("",f)]=x.ideal,d.optional.push(B))}x.exact!==void 0&&typeof x.exact!="number"?(d.mandatory=d.mandatory||{},d.mandatory[A("",f)]=x.exact):["min","max"].forEach(function(U){x[U]!==void 0&&(d.mandatory=d.mandatory||{},d.mandatory[A(U,f)]=x[U])})}}),T.advanced&&(d.optional=(d.optional||[]).concat(T.advanced)),d},w=function(T,d){if(v.version>=61)return d(T);if(T=JSON.parse(JSON.stringify(T)),T&&i(T.audio)==="object"){var f=function(N,K,ee){K in N&&!(ee in N)&&(N[ee]=N[K],delete N[K])};T=JSON.parse(JSON.stringify(T)),f(T.audio,"autoGainControl","googAutoGainControl"),f(T.audio,"noiseSuppression","googNoiseSuppression"),T.audio=m(T.audio)}if(T&&i(T.video)==="object"){var x=T.video.facingMode;x=x&&((typeof x=="undefined"?"undefined":i(x))==="object"?x:{ideal:x});var A=v.version<66;if(x&&(x.exact==="user"||x.exact==="environment"||x.ideal==="user"||x.ideal==="environment")&&!(y.mediaDevices.getSupportedConstraints&&y.mediaDevices.getSupportedConstraints().facingMode&&!A)){delete T.video.facingMode;var B=void 0;if(x.exact==="environment"||x.ideal==="environment"?B=["back","rear"]:(x.exact==="user"||x.ideal==="user")&&(B=["front"]),B)return y.mediaDevices.enumerateDevices().then(function(U){U=U.filter(function(K){return K.kind==="videoinput"});var N=U.find(function(K){return B.some(function(ee){return K.label.toLowerCase().includes(ee)})});return!N&&U.length&&B.includes("back")&&(N=U[U.length-1]),N&&(T.video.deviceId=x.exact?{exact:N.deviceId}:{ideal:N.deviceId}),T.video=m(T.video),l("chrome: "+JSON.stringify(T)),d(T)})}T.video=m(T.video)}return l("chrome: "+JSON.stringify(T)),d(T)},R=function(T){return v.version>=64?T:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[T.name]||T.name,message:T.message,constraint:T.constraint||T.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},E=function(T,d,f){w(T,function(x){y.webkitGetUserMedia(x,d,function(A){f&&f(R(A))})})};if(y.getUserMedia=E.bind(y),y.mediaDevices.getUserMedia){var b=y.mediaDevices.getUserMedia.bind(y.mediaDevices);y.mediaDevices.getUserMedia=function(j){return w(j,function(T){return b(T).then(function(d){if(T.audio&&!d.getAudioTracks().length||T.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(function(f){f.stop()}),new DOMException("","NotFoundError");return d},function(d){return Promise.reject(R(d))})})}}}}},{"../utils.js":15}],6:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(E){return Se(E)}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":Se(E)};n.shimRTCIceCandidate=y,n.shimMaxMessageSize=v,n.shimSendThrowTypeError=m,n.shimConnectionState=w,n.removeAllowExtmapMixed=R;var r=h("sdp"),a=_(r),s=h("./utils"),l=C(s);function C(E){if(E&&E.__esModule)return E;var b={};if(E!=null)for(var j in E)Object.prototype.hasOwnProperty.call(E,j)&&(b[j]=E[j]);return b.default=E,b}function _(E){return E&&E.__esModule?E:{default:E}}function y(E){if(!(!E.RTCIceCandidate||E.RTCIceCandidate&&"foundation"in E.RTCIceCandidate.prototype)){var b=E.RTCIceCandidate;E.RTCIceCandidate=function(T){if((typeof T=="undefined"?"undefined":i(T))==="object"&&T.candidate&&T.candidate.indexOf("a=")===0&&(T=JSON.parse(JSON.stringify(T)),T.candidate=T.candidate.substr(2)),T.candidate&&T.candidate.length){var d=new b(T),f=a.default.parseCandidate(T.candidate),x=Object.assign(d,f);return x.toJSON=function(){return{candidate:x.candidate,sdpMid:x.sdpMid,sdpMLineIndex:x.sdpMLineIndex,usernameFragment:x.usernameFragment}},x}return new b(T)},E.RTCIceCandidate.prototype=b.prototype,l.wrapPeerConnectionEvent(E,"icecandidate",function(j){return j.candidate&&Object.defineProperty(j,"candidate",{value:new E.RTCIceCandidate(j.candidate),writable:"false"}),j})}}function v(E){if(!!E.RTCPeerConnection){var b=l.detectBrowser(E);"sctp"in E.RTCPeerConnection.prototype||Object.defineProperty(E.RTCPeerConnection.prototype,"sctp",{get:function(){return typeof this._sctp=="undefined"?null:this._sctp}});var j=function(B){if(!B||!B.sdp)return!1;var U=a.default.splitSections(B.sdp);return U.shift(),U.some(function(N){var K=a.default.parseMLine(N);return K&&K.kind==="application"&&K.protocol.indexOf("SCTP")!==-1})},T=function(B){var U=B.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(U===null||U.length<2)return-1;var N=parseInt(U[1],10);return N!==N?-1:N},d=function(B){var U=65536;return b.browser==="firefox"&&(b.version<57?B===-1?U=16384:U=2147483637:b.version<60?U=b.version===57?65535:65536:U=2147483637),U},f=function(B,U){var N=65536;b.browser==="firefox"&&b.version===57&&(N=65535);var K=a.default.matchPrefix(B.sdp,"a=max-message-size:");return K.length>0?N=parseInt(K[0].substr(19),10):b.browser==="firefox"&&U!==-1&&(N=2147483637),N},x=E.RTCPeerConnection.prototype.setRemoteDescription;E.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,b.browser==="chrome"&&b.version>=76){var B=this.getConfiguration(),U=B.sdpSemantics;U==="plan-b"&&Object.defineProperty(this,"sctp",{get:function(){return typeof this._sctp=="undefined"?null:this._sctp},enumerable:!0,configurable:!0})}if(j(arguments[0])){var N=T(arguments[0]),K=d(N),ee=f(arguments[0],N),X=void 0;K===0&&ee===0?X=Number.POSITIVE_INFINITY:K===0||ee===0?X=Math.max(K,ee):X=Math.min(K,ee);var Y={};Object.defineProperty(Y,"maxMessageSize",{get:function(){return X}}),this._sctp=Y}return x.apply(this,arguments)}}}function m(E){if(!(E.RTCPeerConnection&&"createDataChannel"in E.RTCPeerConnection.prototype))return;function b(T,d){var f=T.send;T.send=function(){var A=arguments[0],B=A.length||A.size||A.byteLength;if(T.readyState==="open"&&d.sctp&&B>d.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+d.sctp.maxMessageSize+" bytes)");return f.apply(T,arguments)}}var j=E.RTCPeerConnection.prototype.createDataChannel;E.RTCPeerConnection.prototype.createDataChannel=function(){var d=j.apply(this,arguments);return b(d,this),d},l.wrapPeerConnectionEvent(E,"datachannel",function(T){return b(T.channel,T.target),T})}function w(E){if(!(!E.RTCPeerConnection||"connectionState"in E.RTCPeerConnection.prototype)){var b=E.RTCPeerConnection.prototype;Object.defineProperty(b,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(b,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(T){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),T&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=T)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(function(j){var T=b[j];b[j]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(d){var f=d.target;if(f._lastConnectionState!==f.connectionState){f._lastConnectionState=f.connectionState;var x=new Event("connectionstatechange",d);f.dispatchEvent(x)}return d},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),T.apply(this,arguments)}})}}function R(E){if(!!E.RTCPeerConnection){var b=l.detectBrowser(E);if(!(b.browser==="chrome"&&b.version>=71)){var j=E.RTCPeerConnection.prototype.setRemoteDescription;E.RTCPeerConnection.prototype.setRemoteDescription=function(d){return d&&d.sdp&&d.sdp.indexOf(`
  423. a=extmap-allow-mixed`)!==-1&&(d.sdp=d.sdp.split(`
  424. `).filter(function(f){return f.trim()!=="a=extmap-allow-mixed"}).join(`
  425. `)),j.apply(this,arguments)}}}}},{"./utils":15,sdp:17}],7:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=n.shimGetUserMedia=void 0;var i=h("./getusermedia");Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return i.shimGetUserMedia}});var r=h("./getdisplaymedia");Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return r.shimGetDisplayMedia}}),n.shimPeerConnection=m,n.shimReplaceTrack=w;var a=h("../utils"),s=v(a),l=h("./filtericeservers"),C=h("rtcpeerconnection-shim"),_=y(C);function y(R){return R&&R.__esModule?R:{default:R}}function v(R){if(R&&R.__esModule)return R;var E={};if(R!=null)for(var b in R)Object.prototype.hasOwnProperty.call(R,b)&&(E[b]=R[b]);return E.default=R,E}function m(R){var E=s.detectBrowser(R);if(R.RTCIceGatherer&&(R.RTCIceCandidate||(R.RTCIceCandidate=function(d){return d}),R.RTCSessionDescription||(R.RTCSessionDescription=function(d){return d}),E.version<15025)){var b=Object.getOwnPropertyDescriptor(R.MediaStreamTrack.prototype,"enabled");Object.defineProperty(R.MediaStreamTrack.prototype,"enabled",{set:function(d){b.set.call(this,d);var f=new Event("enabled");f.enabled=d,this.dispatchEvent(f)}})}R.RTCRtpSender&&!("dtmf"in R.RTCRtpSender.prototype)&&Object.defineProperty(R.RTCRtpSender.prototype,"dtmf",{get:function(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=new R.RTCDtmfSender(this):this.track.kind==="video"&&(this._dtmf=null)),this._dtmf}}),R.RTCDtmfSender&&!R.RTCDTMFSender&&(R.RTCDTMFSender=R.RTCDtmfSender);var j=(0,_.default)(R,E.version);R.RTCPeerConnection=function(d){return d&&d.iceServers&&(d.iceServers=(0,l.filterIceServers)(d.iceServers,E.version),s.log("ICE servers after filtering:",d.iceServers)),new j(d)},R.RTCPeerConnection.prototype=j.prototype}function w(R){R.RTCRtpSender&&!("replaceTrack"in R.RTCRtpSender.prototype)&&(R.RTCRtpSender.prototype.replaceTrack=R.RTCRtpSender.prototype.setTrack)}},{"../utils":15,"./filtericeservers":8,"./getdisplaymedia":9,"./getusermedia":10,"rtcpeerconnection-shim":16}],8:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.filterIceServers=s;var i=h("../utils"),r=a(i);function a(l){if(l&&l.__esModule)return l;var C={};if(l!=null)for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(C[_]=l[_]);return C.default=l,C}function s(l,C){var _=!1;return l=JSON.parse(JSON.stringify(l)),l.filter(function(y){if(y&&(y.urls||y.url)){var v=y.urls||y.url;y.url&&!y.urls&&r.deprecated("RTCIceServer.url","RTCIceServer.urls");var m=typeof v=="string";return m&&(v=[v]),v=v.filter(function(w){if(w.indexOf("stun:")===0)return!1;var R=w.startsWith("turn")&&!w.startsWith("turn:[")&&w.includes("transport=udp");return R&&!_?(_=!0,!0):R&&!_}),delete y.url,y.urls=m?v[0]:v,!!v.length}})}},{"../utils":15}],9:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=i;function i(r){"getDisplayMedia"in r.navigator&&(!r.navigator.mediaDevices||r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices||(r.navigator.mediaDevices.getDisplayMedia=r.navigator.getDisplayMedia.bind(r.navigator)))}},{}],10:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetUserMedia=i;function i(r){var a=r&&r.navigator,s=function(_){return{name:{PermissionDeniedError:"NotAllowedError"}[_.name]||_.name,message:_.message,constraint:_.constraint,toString:function(){return this.name}}},l=a.mediaDevices.getUserMedia.bind(a.mediaDevices);a.mediaDevices.getUserMedia=function(C){return l(C).catch(function(_){return Promise.reject(s(_))})}}},{}],11:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=n.shimGetUserMedia=void 0;var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(d){return Se(d)}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":Se(d)},r=h("./getusermedia");Object.defineProperty(n,"shimGetUserMedia",{enumerable:!0,get:function(){return r.shimGetUserMedia}});var a=h("./getdisplaymedia");Object.defineProperty(n,"shimGetDisplayMedia",{enumerable:!0,get:function(){return a.shimGetDisplayMedia}}),n.shimOnTrack=y,n.shimPeerConnection=v,n.shimSenderGetStats=m,n.shimReceiverGetStats=w,n.shimRemoveStream=R,n.shimRTCDataChannel=E,n.shimAddTransceiver=b,n.shimCreateOffer=j,n.shimCreateAnswer=T;var s=h("../utils"),l=C(s);function C(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var x in d)Object.prototype.hasOwnProperty.call(d,x)&&(f[x]=d[x]);return f.default=d,f}function _(d,f,x){return f in d?Object.defineProperty(d,f,{value:x,enumerable:!0,configurable:!0,writable:!0}):d[f]=x,d}function y(d){(typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCTrackEvent&&"receiver"in d.RTCTrackEvent.prototype&&!("transceiver"in d.RTCTrackEvent.prototype)&&Object.defineProperty(d.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function v(d){var f=l.detectBrowser(d);if(!((typeof d=="undefined"?"undefined":i(d))!=="object"||!(d.RTCPeerConnection||d.mozRTCPeerConnection))){if(!d.RTCPeerConnection&&d.mozRTCPeerConnection&&(d.RTCPeerConnection=d.mozRTCPeerConnection),f.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(U){var N=d.RTCPeerConnection.prototype[U],K=_({},U,function(){return arguments[0]=new(U==="addIceCandidate"?d.RTCIceCandidate:d.RTCSessionDescription)(arguments[0]),N.apply(this,arguments)});d.RTCPeerConnection.prototype[U]=K[U]}),f.version<68){var x=d.RTCPeerConnection.prototype.addIceCandidate;d.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?arguments[0]&&arguments[0].candidate===""?Promise.resolve():x.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}var A={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},B=d.RTCPeerConnection.prototype.getStats;d.RTCPeerConnection.prototype.getStats=function(){var N=Array.prototype.slice.call(arguments),K=N[0],ee=N[1],X=N[2];return B.apply(this,[K||null]).then(function(Y){if(f.version<53&&!ee)try{Y.forEach(function(de){de.type=A[de.type]||de.type})}catch(de){if(de.name!=="TypeError")throw de;Y.forEach(function(ce,fe){Y.set(fe,Object.assign({},ce,{type:A[ce.type]||ce.type}))})}return Y}).then(ee,X)}}}function m(d){if(!!((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection&&d.RTCRtpSender)&&!(d.RTCRtpSender&&"getStats"in d.RTCRtpSender.prototype)){var f=d.RTCPeerConnection.prototype.getSenders;f&&(d.RTCPeerConnection.prototype.getSenders=function(){var B=this,U=f.apply(this,[]);return U.forEach(function(N){return N._pc=B}),U});var x=d.RTCPeerConnection.prototype.addTrack;x&&(d.RTCPeerConnection.prototype.addTrack=function(){var B=x.apply(this,arguments);return B._pc=this,B}),d.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}}function w(d){if(!!((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection&&d.RTCRtpSender)&&!(d.RTCRtpSender&&"getStats"in d.RTCRtpReceiver.prototype)){var f=d.RTCPeerConnection.prototype.getReceivers;f&&(d.RTCPeerConnection.prototype.getReceivers=function(){var A=this,B=f.apply(this,[]);return B.forEach(function(U){return U._pc=A}),B}),l.wrapPeerConnectionEvent(d,"track",function(x){return x.receiver._pc=x.srcElement,x}),d.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}}function R(d){!d.RTCPeerConnection||"removeStream"in d.RTCPeerConnection.prototype||(d.RTCPeerConnection.prototype.removeStream=function(x){var A=this;l.deprecated("removeStream","removeTrack"),this.getSenders().forEach(function(B){B.track&&x.getTracks().includes(B.track)&&A.removeTrack(B)})})}function E(d){d.DataChannel&&!d.RTCDataChannel&&(d.RTCDataChannel=d.DataChannel)}function b(d){if(!!((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection)){var f=d.RTCPeerConnection.prototype.addTransceiver;f&&(d.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];var A=arguments[1],B=A&&"sendEncodings"in A;B&&A.sendEncodings.forEach(function(ee){if("rid"in ee){var X=/^[a-z0-9]{0,16}$/i;if(!X.test(ee.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in ee&&!(parseFloat(ee.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in ee&&!(parseFloat(ee.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});var U=f.apply(this,arguments);if(B){var N=U.sender,K=N.getParameters();"encodings"in K||(K.encodings=A.sendEncodings,this.setParametersPromises.push(N.setParameters(K).catch(function(){})))}return U})}}function j(d){if(!!((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection)){var f=d.RTCPeerConnection.prototype.createOffer;d.RTCPeerConnection.prototype.createOffer=function(){var A=this,B=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return f.apply(A,B)}).finally(function(){A.setParametersPromises=[]}):f.apply(this,arguments)}}}function T(d){if(!!((typeof d=="undefined"?"undefined":i(d))==="object"&&d.RTCPeerConnection)){var f=d.RTCPeerConnection.prototype.createAnswer;d.RTCPeerConnection.prototype.createAnswer=function(){var A=this,B=arguments;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(function(){return f.apply(A,B)}).finally(function(){A.setParametersPromises=[]}):f.apply(this,arguments)}}}},{"../utils":15,"./getdisplaymedia":12,"./getusermedia":13}],12:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0}),n.shimGetDisplayMedia=i;function i(r,a){r.navigator.mediaDevices&&"getDisplayMedia"in r.navigator.mediaDevices||!r.navigator.mediaDevices||(r.navigator.mediaDevices.getDisplayMedia=function(l){if(!(l&&l.video)){var C=new DOMException("getDisplayMedia without video constraints is undefined");return C.name="NotFoundError",C.code=8,Promise.reject(C)}return l.video===!0?l.video={mediaSource:a}:l.video.mediaSource=a,r.navigator.mediaDevices.getUserMedia(l)})}},{}],13:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(C){return Se(C)}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":Se(C)};n.shimGetUserMedia=l;var r=h("../utils"),a=s(r);function s(C){if(C&&C.__esModule)return C;var _={};if(C!=null)for(var y in C)Object.prototype.hasOwnProperty.call(C,y)&&(_[y]=C[y]);return _.default=C,_}function l(C){var _=a.detectBrowser(C),y=C&&C.navigator,v=C&&C.MediaStreamTrack;if(y.getUserMedia=function(b,j,T){a.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),y.mediaDevices.getUserMedia(b).then(j,T)},!(_.version>55&&"autoGainControl"in y.mediaDevices.getSupportedConstraints())){var m=function(j,T,d){T in j&&!(d in j)&&(j[d]=j[T],delete j[T])},w=y.mediaDevices.getUserMedia.bind(y.mediaDevices);if(y.mediaDevices.getUserMedia=function(b){return(typeof b=="undefined"?"undefined":i(b))==="object"&&i(b.audio)==="object"&&(b=JSON.parse(JSON.stringify(b)),m(b.audio,"autoGainControl","mozAutoGainControl"),m(b.audio,"noiseSuppression","mozNoiseSuppression")),w(b)},v&&v.prototype.getSettings){var R=v.prototype.getSettings;v.prototype.getSettings=function(){var b=R.apply(this,arguments);return m(b,"mozAutoGainControl","autoGainControl"),m(b,"mozNoiseSuppression","noiseSuppression"),b}}if(v&&v.prototype.applyConstraints){var E=v.prototype.applyConstraints;v.prototype.applyConstraints=function(b){return this.kind==="audio"&&(typeof b=="undefined"?"undefined":i(b))==="object"&&(b=JSON.parse(JSON.stringify(b)),m(b,"autoGainControl","mozAutoGainControl"),m(b,"noiseSuppression","mozNoiseSuppression")),E.apply(this,[b])}}}}},{"../utils":15}],14:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(E){return Se(E)}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":Se(E)};n.shimLocalStreamsAPI=l,n.shimRemoteStreamsAPI=C,n.shimCallbacksAPI=_,n.shimGetUserMedia=y,n.shimConstraints=v,n.shimRTCIceServerUrls=m,n.shimTrackEventTransceiver=w,n.shimCreateOfferLegacy=R;var r=h("../utils"),a=s(r);function s(E){if(E&&E.__esModule)return E;var b={};if(E!=null)for(var j in E)Object.prototype.hasOwnProperty.call(E,j)&&(b[j]=E[j]);return b.default=E,b}function l(E){if(!((typeof E=="undefined"?"undefined":i(E))!=="object"||!E.RTCPeerConnection)){if("getLocalStreams"in E.RTCPeerConnection.prototype||(E.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in E.RTCPeerConnection.prototype)){var b=E.RTCPeerConnection.prototype.addTrack;E.RTCPeerConnection.prototype.addStream=function(T){var d=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(T)||this._localStreams.push(T),T.getAudioTracks().forEach(function(f){return b.call(d,f,T)}),T.getVideoTracks().forEach(function(f){return b.call(d,f,T)})},E.RTCPeerConnection.prototype.addTrack=function(T){var d=arguments[1];return d&&(this._localStreams?this._localStreams.includes(d)||this._localStreams.push(d):this._localStreams=[d]),b.apply(this,arguments)}}"removeStream"in E.RTCPeerConnection.prototype||(E.RTCPeerConnection.prototype.removeStream=function(T){var d=this;this._localStreams||(this._localStreams=[]);var f=this._localStreams.indexOf(T);if(f!==-1){this._localStreams.splice(f,1);var x=T.getTracks();this.getSenders().forEach(function(A){x.includes(A.track)&&d.removeTrack(A)})}})}}function C(E){if(!((typeof E=="undefined"?"undefined":i(E))!=="object"||!E.RTCPeerConnection)&&("getRemoteStreams"in E.RTCPeerConnection.prototype||(E.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in E.RTCPeerConnection.prototype))){Object.defineProperty(E.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(T){var d=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=T),this.addEventListener("track",this._onaddstreampoly=function(f){f.streams.forEach(function(x){if(d._remoteStreams||(d._remoteStreams=[]),!d._remoteStreams.includes(x)){d._remoteStreams.push(x);var A=new Event("addstream");A.stream=x,d.dispatchEvent(A)}})})}});var b=E.RTCPeerConnection.prototype.setRemoteDescription;E.RTCPeerConnection.prototype.setRemoteDescription=function(){var T=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(d){d.streams.forEach(function(f){if(T._remoteStreams||(T._remoteStreams=[]),!(T._remoteStreams.indexOf(f)>=0)){T._remoteStreams.push(f);var x=new Event("addstream");x.stream=f,T.dispatchEvent(x)}})}),b.apply(T,arguments)}}}function _(E){if(!((typeof E=="undefined"?"undefined":i(E))!=="object"||!E.RTCPeerConnection)){var b=E.RTCPeerConnection.prototype,j=b.createOffer,T=b.createAnswer,d=b.setLocalDescription,f=b.setRemoteDescription,x=b.addIceCandidate;b.createOffer=function(U,N){var K=arguments.length>=2?arguments[2]:arguments[0],ee=j.apply(this,[K]);return N?(ee.then(U,N),Promise.resolve()):ee},b.createAnswer=function(U,N){var K=arguments.length>=2?arguments[2]:arguments[0],ee=T.apply(this,[K]);return N?(ee.then(U,N),Promise.resolve()):ee};var A=function(U,N,K){var ee=d.apply(this,[U]);return K?(ee.then(N,K),Promise.resolve()):ee};b.setLocalDescription=A,A=function(U,N,K){var ee=f.apply(this,[U]);return K?(ee.then(N,K),Promise.resolve()):ee},b.setRemoteDescription=A,A=function(U,N,K){var ee=x.apply(this,[U]);return K?(ee.then(N,K),Promise.resolve()):ee},b.addIceCandidate=A}}function y(E){var b=E&&E.navigator;if(b.mediaDevices&&b.mediaDevices.getUserMedia){var j=b.mediaDevices,T=j.getUserMedia.bind(j);b.mediaDevices.getUserMedia=function(d){return T(v(d))}}!b.getUserMedia&&b.mediaDevices&&b.mediaDevices.getUserMedia&&(b.getUserMedia=function(f,x,A){b.mediaDevices.getUserMedia(f).then(x,A)}.bind(b))}function v(E){return E&&E.video!==void 0?Object.assign({},E,{video:a.compactObject(E.video)}):E}function m(E){var b=E.RTCPeerConnection;E.RTCPeerConnection=function(T,d){if(T&&T.iceServers){for(var f=[],x=0;x<T.iceServers.length;x++){var A=T.iceServers[x];!A.hasOwnProperty("urls")&&A.hasOwnProperty("url")?(a.deprecated("RTCIceServer.url","RTCIceServer.urls"),A=JSON.parse(JSON.stringify(A)),A.urls=A.url,delete A.url,f.push(A)):f.push(T.iceServers[x])}T.iceServers=f}return new b(T,d)},E.RTCPeerConnection.prototype=b.prototype,"generateCertificate"in E.RTCPeerConnection&&Object.defineProperty(E.RTCPeerConnection,"generateCertificate",{get:function(){return b.generateCertificate}})}function w(E){(typeof E=="undefined"?"undefined":i(E))==="object"&&E.RTCTrackEvent&&"receiver"in E.RTCTrackEvent.prototype&&!("transceiver"in E.RTCTrackEvent.prototype)&&Object.defineProperty(E.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})}function R(E){var b=E.RTCPeerConnection.prototype.createOffer;E.RTCPeerConnection.prototype.createOffer=function(T){if(T){typeof T.offerToReceiveAudio!="undefined"&&(T.offerToReceiveAudio=!!T.offerToReceiveAudio);var d=this.getTransceivers().find(function(x){return x.receiver.track.kind==="audio"});T.offerToReceiveAudio===!1&&d?d.direction==="sendrecv"?d.setDirection?d.setDirection("sendonly"):d.direction="sendonly":d.direction==="recvonly"&&(d.setDirection?d.setDirection("inactive"):d.direction="inactive"):T.offerToReceiveAudio===!0&&!d&&this.addTransceiver("audio"),typeof T.offerToReceiveVideo!="undefined"&&(T.offerToReceiveVideo=!!T.offerToReceiveVideo);var f=this.getTransceivers().find(function(x){return x.receiver.track.kind==="video"});T.offerToReceiveVideo===!1&&f?f.direction==="sendrecv"?f.setDirection?f.setDirection("sendonly"):f.direction="sendonly":f.direction==="recvonly"&&(f.setDirection?f.setDirection("inactive"):f.direction="inactive"):T.offerToReceiveVideo===!0&&!f&&this.addTransceiver("video")}return b.apply(this,arguments)}}},{"../utils":15}],15:[function(h,u,n){Object.defineProperty(n,"__esModule",{value:!0});var i=typeof Symbol=="function"&&Se(Symbol.iterator)==="symbol"?function(T){return Se(T)}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":Se(T)};n.extractVersion=l,n.wrapPeerConnectionEvent=C,n.disableLog=_,n.disableWarnings=y,n.log=v,n.deprecated=m,n.detectBrowser=w,n.compactObject=E,n.walkStats=b,n.filterStats=j;function r(T,d,f){return d in T?Object.defineProperty(T,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):T[d]=f,T}var a=!0,s=!0;function l(T,d,f){var x=T.match(d);return x&&x.length>=f&&parseInt(x[f],10)}function C(T,d,f){if(!!T.RTCPeerConnection){var x=T.RTCPeerConnection.prototype,A=x.addEventListener;x.addEventListener=function(U,N){if(U!==d)return A.apply(this,arguments);var K=function(X){var Y=f(X);Y&&N(Y)};return this._eventMap=this._eventMap||{},this._eventMap[N]=K,A.apply(this,[U,K])};var B=x.removeEventListener;x.removeEventListener=function(U,N){if(U!==d||!this._eventMap||!this._eventMap[N])return B.apply(this,arguments);var K=this._eventMap[N];return delete this._eventMap[N],B.apply(this,[U,K])},Object.defineProperty(x,"on"+d,{get:function(){return this["_on"+d]},set:function(N){this["_on"+d]&&(this.removeEventListener(d,this["_on"+d]),delete this["_on"+d]),N&&this.addEventListener(d,this["_on"+d]=N)},enumerable:!0,configurable:!0})}}function _(T){return typeof T!="boolean"?new Error("Argument type: "+(typeof T=="undefined"?"undefined":i(T))+". Please use a boolean."):(a=T,T?"adapter.js logging disabled":"adapter.js logging enabled")}function y(T){return typeof T!="boolean"?new Error("Argument type: "+(typeof T=="undefined"?"undefined":i(T))+". Please use a boolean."):(s=!T,"adapter.js deprecation warnings "+(T?"disabled":"enabled"))}function v(){if((typeof window=="undefined"?"undefined":i(window))==="object"){if(a)return;typeof console!="undefined"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function m(T,d){!s||console.warn(T+" is deprecated, please use "+d+" instead.")}function w(T){var d=T.navigator,f={browser:null,version:null};if(typeof T=="undefined"||!T.navigator)return f.browser="Not a browser.",f;if(d.mozGetUserMedia)f.browser="firefox",f.version=l(d.userAgent,/Firefox\/(\d+)\./,1);else if(d.webkitGetUserMedia||T.isSecureContext===!1&&T.webkitRTCPeerConnection&&!T.RTCIceGatherer)f.browser="chrome",f.version=l(d.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(d.mediaDevices&&d.userAgent.match(/Edge\/(\d+).(\d+)$/))f.browser="edge",f.version=l(d.userAgent,/Edge\/(\d+).(\d+)$/,2);else if(T.RTCPeerConnection&&d.userAgent.match(/AppleWebKit\/(\d+)\./))f.browser="safari",f.version=l(d.userAgent,/AppleWebKit\/(\d+)\./,1),f.supportsUnifiedPlan=T.RTCRtpTransceiver&&"currentDirection"in T.RTCRtpTransceiver.prototype;else return f.browser="Not a supported browser.",f;return f}function R(T){return Object.prototype.toString.call(T)==="[object Object]"}function E(T){return R(T)?Object.keys(T).reduce(function(d,f){var x=R(T[f]),A=x?E(T[f]):T[f],B=x&&!Object.keys(A).length;return A===void 0||B?d:Object.assign(d,r({},f,A))},{}):T}function b(T,d,f){!d||f.has(d.id)||(f.set(d.id,d),Object.keys(d).forEach(function(x){x.endsWith("Id")?b(T,T.get(d[x]),f):x.endsWith("Ids")&&d[x].forEach(function(A){b(T,T.get(A),f)})}))}function j(T,d,f){var x=f?"outbound-rtp":"inbound-rtp",A=new Map;if(d===null)return A;var B=[];return T.forEach(function(U){U.type==="track"&&U.trackIdentifier===d.id&&B.push(U)}),B.forEach(function(U){T.forEach(function(N){N.type===x&&N.trackId===U.id&&b(T,N,A)})}),A}},{}],16:[function(h,u,n){var i=h("sdp");function r(v){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[v.type]||v.type}function a(v,m,w,R,E){var b=i.writeRtpDescription(v.kind,m);if(b+=i.writeIceParameters(v.iceGatherer.getLocalParameters()),b+=i.writeDtlsParameters(v.dtlsTransport.getLocalParameters(),w==="offer"?"actpass":E||"active"),b+="a=mid:"+v.mid+`\r
  426. `,v.rtpSender&&v.rtpReceiver?b+=`a=sendrecv\r
  427. `:v.rtpSender?b+=`a=sendonly\r
  428. `:v.rtpReceiver?b+=`a=recvonly\r
  429. `:b+=`a=inactive\r
  430. `,v.rtpSender){var j=v.rtpSender._initialTrackId||v.rtpSender.track.id;v.rtpSender._initialTrackId=j;var T="msid:"+(R?R.id:"-")+" "+j+`\r
  431. `;b+="a="+T,b+="a=ssrc:"+v.sendEncodingParameters[0].ssrc+" "+T,v.sendEncodingParameters[0].rtx&&(b+="a=ssrc:"+v.sendEncodingParameters[0].rtx.ssrc+" "+T,b+="a=ssrc-group:FID "+v.sendEncodingParameters[0].ssrc+" "+v.sendEncodingParameters[0].rtx.ssrc+`\r
  432. `)}return b+="a=ssrc:"+v.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+`\r
  433. `,v.rtpSender&&v.sendEncodingParameters[0].rtx&&(b+="a=ssrc:"+v.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+`\r
  434. `),b}function s(v,m){var w=!1;return v=JSON.parse(JSON.stringify(v)),v.filter(function(R){if(R&&(R.urls||R.url)){var E=R.urls||R.url;R.url&&!R.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var b=typeof E=="string";return b&&(E=[E]),E=E.filter(function(j){var T=j.indexOf("turn:")===0&&j.indexOf("transport=udp")!==-1&&j.indexOf("turn:[")===-1&&!w;return T?(w=!0,!0):j.indexOf("stun:")===0&&m>=14393&&j.indexOf("?transport=udp")===-1}),delete R.url,R.urls=b?E[0]:E,!!E.length}})}function l(v,m){var w={codecs:[],headerExtensions:[],fecMechanisms:[]},R=function(j,T){j=parseInt(j,10);for(var d=0;d<T.length;d++)if(T[d].payloadType===j||T[d].preferredPayloadType===j)return T[d]},E=function(j,T,d,f){var x=R(j.parameters.apt,d),A=R(T.parameters.apt,f);return x&&A&&x.name.toLowerCase()===A.name.toLowerCase()};return v.codecs.forEach(function(b){for(var j=0;j<m.codecs.length;j++){var T=m.codecs[j];if(b.name.toLowerCase()===T.name.toLowerCase()&&b.clockRate===T.clockRate){if(b.name.toLowerCase()==="rtx"&&b.parameters&&T.parameters.apt&&!E(b,T,v.codecs,m.codecs))continue;T=JSON.parse(JSON.stringify(T)),T.numChannels=Math.min(b.numChannels,T.numChannels),w.codecs.push(T),T.rtcpFeedback=T.rtcpFeedback.filter(function(d){for(var f=0;f<b.rtcpFeedback.length;f++)if(b.rtcpFeedback[f].type===d.type&&b.rtcpFeedback[f].parameter===d.parameter)return!0;return!1});break}}}),v.headerExtensions.forEach(function(b){for(var j=0;j<m.headerExtensions.length;j++){var T=m.headerExtensions[j];if(b.uri===T.uri){w.headerExtensions.push(T);break}}}),w}function C(v,m,w){return{offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[m][v].indexOf(w)!==-1}function _(v,m){var w=v.getRemoteCandidates().find(function(R){return m.foundation===R.foundation&&m.ip===R.ip&&m.port===R.port&&m.priority===R.priority&&m.protocol===R.protocol&&m.type===R.type});return w||v.addRemoteCandidate(m),!w}function y(v,m){var w=new Error(m);return w.name=v,w.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[v],w}u.exports=function(v,m){function w(d,f){f.addTrack(d),f.dispatchEvent(new v.MediaStreamTrackEvent("addtrack",{track:d}))}function R(d,f){f.removeTrack(d),f.dispatchEvent(new v.MediaStreamTrackEvent("removetrack",{track:d}))}function E(d,f,x,A){var B=new Event("track");B.track=f,B.receiver=x,B.transceiver={receiver:x},B.streams=A,v.setTimeout(function(){d._dispatchEvent("track",B)})}var b=function(f){var x=this,A=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(U){x[U]=A[U].bind(A)}),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",f=JSON.parse(JSON.stringify(f||{})),this.usingBundle=f.bundlePolicy==="max-bundle",f.rtcpMuxPolicy==="negotiate")throw y("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(f.rtcpMuxPolicy||(f.rtcpMuxPolicy="require"),f.iceTransportPolicy){case"all":case"relay":break;default:f.iceTransportPolicy="all";break}switch(f.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:f.bundlePolicy="balanced";break}if(f.iceServers=s(f.iceServers||[],m),this._iceGatherers=[],f.iceCandidatePoolSize)for(var B=f.iceCandidatePoolSize;B>0;B--)this._iceGatherers.push(new v.RTCIceGatherer({iceServers:f.iceServers,gatherPolicy:f.iceTransportPolicy}));else f.iceCandidatePoolSize=0;this._config=f,this.transceivers=[],this._sdpSessionId=i.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(b.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(b.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),b.prototype.onicecandidate=null,b.prototype.onaddstream=null,b.prototype.ontrack=null,b.prototype.onremovestream=null,b.prototype.onsignalingstatechange=null,b.prototype.oniceconnectionstatechange=null,b.prototype.onconnectionstatechange=null,b.prototype.onicegatheringstatechange=null,b.prototype.onnegotiationneeded=null,b.prototype.ondatachannel=null,b.prototype._dispatchEvent=function(d,f){this._isClosed||(this.dispatchEvent(f),typeof this["on"+d]=="function"&&this["on"+d](f))},b.prototype._emitGatheringStateChange=function(){var d=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",d)},b.prototype.getConfiguration=function(){return this._config},b.prototype.getLocalStreams=function(){return this.localStreams},b.prototype.getRemoteStreams=function(){return this.remoteStreams},b.prototype._createTransceiver=function(d,f){var x=this.transceivers.length>0,A={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:d,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&x)A.iceTransport=this.transceivers[0].iceTransport,A.dtlsTransport=this.transceivers[0].dtlsTransport;else{var B=this._createIceAndDtlsTransports();A.iceTransport=B.iceTransport,A.dtlsTransport=B.dtlsTransport}return f||this.transceivers.push(A),A},b.prototype.addTrack=function(d,f){if(this._isClosed)throw y("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var x=this.transceivers.find(function(U){return U.track===d});if(x)throw y("InvalidAccessError","Track already exists.");for(var A,B=0;B<this.transceivers.length;B++)!this.transceivers[B].track&&this.transceivers[B].kind===d.kind&&(A=this.transceivers[B]);return A||(A=this._createTransceiver(d.kind)),this._maybeFireNegotiationNeeded(),this.localStreams.indexOf(f)===-1&&this.localStreams.push(f),A.track=d,A.stream=f,A.rtpSender=new v.RTCRtpSender(d,A.dtlsTransport),A.rtpSender},b.prototype.addStream=function(d){var f=this;if(m>=15025)d.getTracks().forEach(function(A){f.addTrack(A,d)});else{var x=d.clone();d.getTracks().forEach(function(A,B){var U=x.getTracks()[B];A.addEventListener("enabled",function(N){U.enabled=N.enabled})}),x.getTracks().forEach(function(A){f.addTrack(A,x)})}},b.prototype.removeTrack=function(d){if(this._isClosed)throw y("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(d instanceof v.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var f=this.transceivers.find(function(B){return B.rtpSender===d});if(!f)throw y("InvalidAccessError","Sender was not created by this connection.");var x=f.stream;f.rtpSender.stop(),f.rtpSender=null,f.track=null,f.stream=null;var A=this.transceivers.map(function(B){return B.stream});A.indexOf(x)===-1&&this.localStreams.indexOf(x)>-1&&this.localStreams.splice(this.localStreams.indexOf(x),1),this._maybeFireNegotiationNeeded()},b.prototype.removeStream=function(d){var f=this;d.getTracks().forEach(function(x){var A=f.getSenders().find(function(B){return B.track===x});A&&f.removeTrack(A)})},b.prototype.getSenders=function(){return this.transceivers.filter(function(d){return!!d.rtpSender}).map(function(d){return d.rtpSender})},b.prototype.getReceivers=function(){return this.transceivers.filter(function(d){return!!d.rtpReceiver}).map(function(d){return d.rtpReceiver})},b.prototype._createIceGatherer=function(d,f){var x=this;if(f&&d>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var A=new v.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(A,"state",{value:"new",writable:!0}),this.transceivers[d].bufferedCandidateEvents=[],this.transceivers[d].bufferCandidates=function(B){var U=!B.candidate||Object.keys(B.candidate).length===0;A.state=U?"completed":"gathering",x.transceivers[d].bufferedCandidateEvents!==null&&x.transceivers[d].bufferedCandidateEvents.push(B)},A.addEventListener("localcandidate",this.transceivers[d].bufferCandidates),A},b.prototype._gather=function(d,f){var x=this,A=this.transceivers[f].iceGatherer;if(!A.onlocalcandidate){var B=this.transceivers[f].bufferedCandidateEvents;this.transceivers[f].bufferedCandidateEvents=null,A.removeEventListener("localcandidate",this.transceivers[f].bufferCandidates),A.onlocalcandidate=function(U){if(!(x.usingBundle&&f>0)){var N=new Event("icecandidate");N.candidate={sdpMid:d,sdpMLineIndex:f};var K=U.candidate,ee=!K||Object.keys(K).length===0;if(ee)(A.state==="new"||A.state==="gathering")&&(A.state="completed");else{A.state==="new"&&(A.state="gathering"),K.component=1,K.ufrag=A.getLocalParameters().usernameFragment;var X=i.writeCandidate(K);N.candidate=Object.assign(N.candidate,i.parseCandidate(X)),N.candidate.candidate=X,N.candidate.toJSON=function(){return{candidate:N.candidate.candidate,sdpMid:N.candidate.sdpMid,sdpMLineIndex:N.candidate.sdpMLineIndex,usernameFragment:N.candidate.usernameFragment}}}var Y=i.getMediaSections(x._localDescription.sdp);ee?Y[N.candidate.sdpMLineIndex]+=`a=end-of-candidates\r
  435. `:Y[N.candidate.sdpMLineIndex]+="a="+N.candidate.candidate+`\r
  436. `,x._localDescription.sdp=i.getDescription(x._localDescription.sdp)+Y.join("");var de=x.transceivers.every(function(ce){return ce.iceGatherer&&ce.iceGatherer.state==="completed"});x.iceGatheringState!=="gathering"&&(x.iceGatheringState="gathering",x._emitGatheringStateChange()),ee||x._dispatchEvent("icecandidate",N),de&&(x._dispatchEvent("icecandidate",new Event("icecandidate")),x.iceGatheringState="complete",x._emitGatheringStateChange())}},v.setTimeout(function(){B.forEach(function(U){A.onlocalcandidate(U)})},0)}},b.prototype._createIceAndDtlsTransports=function(){var d=this,f=new v.RTCIceTransport(null);f.onicestatechange=function(){d._updateIceConnectionState(),d._updateConnectionState()};var x=new v.RTCDtlsTransport(f);return x.ondtlsstatechange=function(){d._updateConnectionState()},x.onerror=function(){Object.defineProperty(x,"state",{value:"failed",writable:!0}),d._updateConnectionState()},{iceTransport:f,dtlsTransport:x}},b.prototype._disposeIceAndDtlsTransports=function(d){var f=this.transceivers[d].iceGatherer;f&&(delete f.onlocalcandidate,delete this.transceivers[d].iceGatherer);var x=this.transceivers[d].iceTransport;x&&(delete x.onicestatechange,delete this.transceivers[d].iceTransport);var A=this.transceivers[d].dtlsTransport;A&&(delete A.ondtlsstatechange,delete A.onerror,delete this.transceivers[d].dtlsTransport)},b.prototype._transceive=function(d,f,x){var A=l(d.localCapabilities,d.remoteCapabilities);f&&d.rtpSender&&(A.encodings=d.sendEncodingParameters,A.rtcp={cname:i.localCName,compound:d.rtcpParameters.compound},d.recvEncodingParameters.length&&(A.rtcp.ssrc=d.recvEncodingParameters[0].ssrc),d.rtpSender.send(A)),x&&d.rtpReceiver&&A.codecs.length>0&&(d.kind==="video"&&d.recvEncodingParameters&&m<15019&&d.recvEncodingParameters.forEach(function(B){delete B.rtx}),d.recvEncodingParameters.length?A.encodings=d.recvEncodingParameters:A.encodings=[{}],A.rtcp={compound:d.rtcpParameters.compound},d.rtcpParameters.cname&&(A.rtcp.cname=d.rtcpParameters.cname),d.sendEncodingParameters.length&&(A.rtcp.ssrc=d.sendEncodingParameters[0].ssrc),d.rtpReceiver.receive(A))},b.prototype.setLocalDescription=function(d){var f=this;if(["offer","answer"].indexOf(d.type)===-1)return Promise.reject(y("TypeError",'Unsupported type "'+d.type+'"'));if(!C("setLocalDescription",d.type,f.signalingState)||f._isClosed)return Promise.reject(y("InvalidStateError","Can not set local "+d.type+" in state "+f.signalingState));var x,A;if(d.type==="offer")x=i.splitSections(d.sdp),A=x.shift(),x.forEach(function(U,N){var K=i.parseRtpParameters(U);f.transceivers[N].localCapabilities=K}),f.transceivers.forEach(function(U,N){f._gather(U.mid,N)});else if(d.type==="answer"){x=i.splitSections(f._remoteDescription.sdp),A=x.shift();var B=i.matchPrefix(A,"a=ice-lite").length>0;x.forEach(function(U,N){var K=f.transceivers[N],ee=K.iceGatherer,X=K.iceTransport,Y=K.dtlsTransport,de=K.localCapabilities,ce=K.remoteCapabilities,fe=i.isRejected(U)&&i.matchPrefix(U,"a=bundle-only").length===0;if(!fe&&!K.rejected){var Ce=i.getIceParameters(U,A),me=i.getDtlsParameters(U,A);B&&(me.role="server"),(!f.usingBundle||N===0)&&(f._gather(K.mid,N),X.state==="new"&&X.start(ee,Ce,B?"controlling":"controlled"),Y.state==="new"&&Y.start(me));var xe=l(de,ce);f._transceive(K,xe.codecs.length>0,!1)}})}return f._localDescription={type:d.type,sdp:d.sdp},d.type==="offer"?f._updateSignalingState("have-local-offer"):f._updateSignalingState("stable"),Promise.resolve()},b.prototype.setRemoteDescription=function(d){var f=this;if(["offer","answer"].indexOf(d.type)===-1)return Promise.reject(y("TypeError",'Unsupported type "'+d.type+'"'));if(!C("setRemoteDescription",d.type,f.signalingState)||f._isClosed)return Promise.reject(y("InvalidStateError","Can not set remote "+d.type+" in state "+f.signalingState));var x={};f.remoteStreams.forEach(function(X){x[X.id]=X});var A=[],B=i.splitSections(d.sdp),U=B.shift(),N=i.matchPrefix(U,"a=ice-lite").length>0,K=i.matchPrefix(U,"a=group:BUNDLE ").length>0;f.usingBundle=K;var ee=i.matchPrefix(U,"a=ice-options:")[0];return ee?f.canTrickleIceCandidates=ee.substr(14).split(" ").indexOf("trickle")>=0:f.canTrickleIceCandidates=!1,B.forEach(function(X,Y){var de=i.splitLines(X),ce=i.getKind(X),fe=i.isRejected(X)&&i.matchPrefix(X,"a=bundle-only").length===0,Ce=de[0].substr(2).split(" ")[2],me=i.getDirection(X,U),xe=i.parseMsid(X),He=i.getMid(X)||i.generateIdentifier();if(fe||ce==="application"&&(Ce==="DTLS/SCTP"||Ce==="UDP/DTLS/SCTP")){f.transceivers[Y]={mid:He,kind:ce,protocol:Ce,rejected:!0};return}!fe&&f.transceivers[Y]&&f.transceivers[Y].rejected&&(f.transceivers[Y]=f._createTransceiver(ce,!0));var se,mt,nt,Qe,Ne,$e,ke,Be,Le,ln=i.parseRtpParameters(X),Wt,vt;fe||(Wt=i.getIceParameters(X,U),vt=i.getDtlsParameters(X,U),vt.role="client"),ke=i.parseRtpEncodingParameters(X);var Ft=i.parseRtcpParameters(X),ze=i.matchPrefix(X,"a=end-of-candidates",U).length>0,ut=i.matchPrefix(X,"a=candidate:").map(function(le){return i.parseCandidate(le)}).filter(function(le){return le.component===1});if((d.type==="offer"||d.type==="answer")&&!fe&&K&&Y>0&&f.transceivers[Y]&&(f._disposeIceAndDtlsTransports(Y),f.transceivers[Y].iceGatherer=f.transceivers[0].iceGatherer,f.transceivers[Y].iceTransport=f.transceivers[0].iceTransport,f.transceivers[Y].dtlsTransport=f.transceivers[0].dtlsTransport,f.transceivers[Y].rtpSender&&f.transceivers[Y].rtpSender.setTransport(f.transceivers[0].dtlsTransport),f.transceivers[Y].rtpReceiver&&f.transceivers[Y].rtpReceiver.setTransport(f.transceivers[0].dtlsTransport)),d.type==="offer"&&!fe){se=f.transceivers[Y]||f._createTransceiver(ce),se.mid=He,se.iceGatherer||(se.iceGatherer=f._createIceGatherer(Y,K)),ut.length&&se.iceTransport.state==="new"&&(ze&&(!K||Y===0)?se.iceTransport.setRemoteCandidates(ut):ut.forEach(function(le){_(se.iceTransport,le)})),Be=v.RTCRtpReceiver.getCapabilities(ce),m<15019&&(Be.codecs=Be.codecs.filter(function(le){return le.name!=="rtx"})),$e=se.sendEncodingParameters||[{ssrc:(2*Y+2)*1001}];var bt=!1;if(me==="sendrecv"||me==="sendonly"){if(bt=!se.rtpReceiver,Ne=se.rtpReceiver||new v.RTCRtpReceiver(se.dtlsTransport,ce),bt){var Ae;Le=Ne.track,xe&&xe.stream==="-"||(xe?(x[xe.stream]||(x[xe.stream]=new v.MediaStream,Object.defineProperty(x[xe.stream],"id",{get:function(){return xe.stream}})),Object.defineProperty(Le,"id",{get:function(){return xe.track}}),Ae=x[xe.stream]):(x.default||(x.default=new v.MediaStream),Ae=x.default)),Ae&&(w(Le,Ae),se.associatedRemoteMediaStreams.push(Ae)),A.push([Le,Ne,Ae])}}else se.rtpReceiver&&se.rtpReceiver.track&&(se.associatedRemoteMediaStreams.forEach(function(le){var Pe=le.getTracks().find(function(We){return We.id===se.rtpReceiver.track.id});Pe&&R(Pe,le)}),se.associatedRemoteMediaStreams=[]);se.localCapabilities=Be,se.remoteCapabilities=ln,se.rtpReceiver=Ne,se.rtcpParameters=Ft,se.sendEncodingParameters=$e,se.recvEncodingParameters=ke,f._transceive(f.transceivers[Y],!1,bt)}else if(d.type==="answer"&&!fe){se=f.transceivers[Y],mt=se.iceGatherer,nt=se.iceTransport,Qe=se.dtlsTransport,Ne=se.rtpReceiver,$e=se.sendEncodingParameters,Be=se.localCapabilities,f.transceivers[Y].recvEncodingParameters=ke,f.transceivers[Y].remoteCapabilities=ln,f.transceivers[Y].rtcpParameters=Ft,ut.length&&nt.state==="new"&&((N||ze)&&(!K||Y===0)?nt.setRemoteCandidates(ut):ut.forEach(function(le){_(se.iceTransport,le)})),(!K||Y===0)&&(nt.state==="new"&&nt.start(mt,Wt,"controlling"),Qe.state==="new"&&Qe.start(vt));var qe=l(se.localCapabilities,se.remoteCapabilities),Te=qe.codecs.filter(function(le){return le.name.toLowerCase()==="rtx"}).length;!Te&&se.sendEncodingParameters[0].rtx&&delete se.sendEncodingParameters[0].rtx,f._transceive(se,me==="sendrecv"||me==="recvonly",me==="sendrecv"||me==="sendonly"),Ne&&(me==="sendrecv"||me==="sendonly")?(Le=Ne.track,xe?(x[xe.stream]||(x[xe.stream]=new v.MediaStream),w(Le,x[xe.stream]),A.push([Le,Ne,x[xe.stream]])):(x.default||(x.default=new v.MediaStream),w(Le,x.default),A.push([Le,Ne,x.default]))):delete se.rtpReceiver}}),f._dtlsRole===void 0&&(f._dtlsRole=d.type==="offer"?"active":"passive"),f._remoteDescription={type:d.type,sdp:d.sdp},d.type==="offer"?f._updateSignalingState("have-remote-offer"):f._updateSignalingState("stable"),Object.keys(x).forEach(function(X){var Y=x[X];if(Y.getTracks().length){if(f.remoteStreams.indexOf(Y)===-1){f.remoteStreams.push(Y);var de=new Event("addstream");de.stream=Y,v.setTimeout(function(){f._dispatchEvent("addstream",de)})}A.forEach(function(ce){var fe=ce[0],Ce=ce[1];Y.id===ce[2].id&&E(f,fe,Ce,[Y])})}}),A.forEach(function(X){X[2]||E(f,X[0],X[1],[])}),v.setTimeout(function(){!(f&&f.transceivers)||f.transceivers.forEach(function(X){X.iceTransport&&X.iceTransport.state==="new"&&X.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),X.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},b.prototype.close=function(){this.transceivers.forEach(function(d){d.iceTransport&&d.iceTransport.stop(),d.dtlsTransport&&d.dtlsTransport.stop(),d.rtpSender&&d.rtpSender.stop(),d.rtpReceiver&&d.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},b.prototype._updateSignalingState=function(d){this.signalingState=d;var f=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",f)},b.prototype._maybeFireNegotiationNeeded=function(){var d=this;this.signalingState!=="stable"||this.needNegotiation===!0||(this.needNegotiation=!0,v.setTimeout(function(){if(d.needNegotiation){d.needNegotiation=!1;var f=new Event("negotiationneeded");d._dispatchEvent("negotiationneeded",f)}},0))},b.prototype._updateIceConnectionState=function(){var d,f={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(A){A.iceTransport&&!A.rejected&&f[A.iceTransport.state]++}),d="new",f.failed>0?d="failed":f.checking>0?d="checking":f.disconnected>0?d="disconnected":f.new>0?d="new":f.connected>0?d="connected":f.completed>0&&(d="completed"),d!==this.iceConnectionState){this.iceConnectionState=d;var x=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",x)}},b.prototype._updateConnectionState=function(){var d,f={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(A){A.iceTransport&&A.dtlsTransport&&!A.rejected&&(f[A.iceTransport.state]++,f[A.dtlsTransport.state]++)}),f.connected+=f.completed,d="new",f.failed>0?d="failed":f.connecting>0?d="connecting":f.disconnected>0?d="disconnected":f.new>0?d="new":f.connected>0&&(d="connected"),d!==this.connectionState){this.connectionState=d;var x=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",x)}},b.prototype.createOffer=function(){var d=this;if(d._isClosed)return Promise.reject(y("InvalidStateError","Can not call createOffer after close"));var f=d.transceivers.filter(function(N){return N.kind==="audio"}).length,x=d.transceivers.filter(function(N){return N.kind==="video"}).length,A=arguments[0];if(A){if(A.mandatory||A.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");A.offerToReceiveAudio!==void 0&&(A.offerToReceiveAudio===!0?f=1:A.offerToReceiveAudio===!1?f=0:f=A.offerToReceiveAudio),A.offerToReceiveVideo!==void 0&&(A.offerToReceiveVideo===!0?x=1:A.offerToReceiveVideo===!1?x=0:x=A.offerToReceiveVideo)}for(d.transceivers.forEach(function(N){N.kind==="audio"?(f--,f<0&&(N.wantReceive=!1)):N.kind==="video"&&(x--,x<0&&(N.wantReceive=!1))});f>0||x>0;)f>0&&(d._createTransceiver("audio"),f--),x>0&&(d._createTransceiver("video"),x--);var B=i.writeSessionBoilerplate(d._sdpSessionId,d._sdpSessionVersion++);d.transceivers.forEach(function(N,K){var ee=N.track,X=N.kind,Y=N.mid||i.generateIdentifier();N.mid=Y,N.iceGatherer||(N.iceGatherer=d._createIceGatherer(K,d.usingBundle));var de=v.RTCRtpSender.getCapabilities(X);m<15019&&(de.codecs=de.codecs.filter(function(fe){return fe.name!=="rtx"})),de.codecs.forEach(function(fe){fe.name==="H264"&&fe.parameters["level-asymmetry-allowed"]===void 0&&(fe.parameters["level-asymmetry-allowed"]="1"),N.remoteCapabilities&&N.remoteCapabilities.codecs&&N.remoteCapabilities.codecs.forEach(function(Ce){fe.name.toLowerCase()===Ce.name.toLowerCase()&&fe.clockRate===Ce.clockRate&&(fe.preferredPayloadType=Ce.payloadType)})}),de.headerExtensions.forEach(function(fe){var Ce=N.remoteCapabilities&&N.remoteCapabilities.headerExtensions||[];Ce.forEach(function(me){fe.uri===me.uri&&(fe.id=me.id)})});var ce=N.sendEncodingParameters||[{ssrc:(2*K+1)*1001}];ee&&m>=15019&&X==="video"&&!ce[0].rtx&&(ce[0].rtx={ssrc:ce[0].ssrc+1}),N.wantReceive&&(N.rtpReceiver=new v.RTCRtpReceiver(N.dtlsTransport,X)),N.localCapabilities=de,N.sendEncodingParameters=ce}),d._config.bundlePolicy!=="max-compat"&&(B+="a=group:BUNDLE "+d.transceivers.map(function(N){return N.mid}).join(" ")+`\r
  437. `),B+=`a=ice-options:trickle\r
  438. `,d.transceivers.forEach(function(N,K){B+=a(N,N.localCapabilities,"offer",N.stream,d._dtlsRole),B+=`a=rtcp-rsize\r
  439. `,N.iceGatherer&&d.iceGatheringState!=="new"&&(K===0||!d.usingBundle)&&(N.iceGatherer.getLocalCandidates().forEach(function(ee){ee.component=1,B+="a="+i.writeCandidate(ee)+`\r
  440. `}),N.iceGatherer.state==="completed"&&(B+=`a=end-of-candidates\r
  441. `))});var U=new v.RTCSessionDescription({type:"offer",sdp:B});return Promise.resolve(U)},b.prototype.createAnswer=function(){var d=this;if(d._isClosed)return Promise.reject(y("InvalidStateError","Can not call createAnswer after close"));if(!(d.signalingState==="have-remote-offer"||d.signalingState==="have-local-pranswer"))return Promise.reject(y("InvalidStateError","Can not call createAnswer in signalingState "+d.signalingState));var f=i.writeSessionBoilerplate(d._sdpSessionId,d._sdpSessionVersion++);d.usingBundle&&(f+="a=group:BUNDLE "+d.transceivers.map(function(B){return B.mid}).join(" ")+`\r
  442. `),f+=`a=ice-options:trickle\r
  443. `;var x=i.getMediaSections(d._remoteDescription.sdp).length;d.transceivers.forEach(function(B,U){if(!(U+1>x)){if(B.rejected){B.kind==="application"?B.protocol==="DTLS/SCTP"?f+=`m=application 0 DTLS/SCTP 5000\r
  444. `:f+="m=application 0 "+B.protocol+` webrtc-datachannel\r
  445. `:B.kind==="audio"?f+=`m=audio 0 UDP/TLS/RTP/SAVPF 0\r
  446. a=rtpmap:0 PCMU/8000\r
  447. `:B.kind==="video"&&(f+=`m=video 0 UDP/TLS/RTP/SAVPF 120\r
  448. a=rtpmap:120 VP8/90000\r
  449. `),f+=`c=IN IP4 0.0.0.0\r
  450. a=inactive\r
  451. a=mid:`+B.mid+`\r
  452. `;return}if(B.stream){var N;B.kind==="audio"?N=B.stream.getAudioTracks()[0]:B.kind==="video"&&(N=B.stream.getVideoTracks()[0]),N&&m>=15019&&B.kind==="video"&&!B.sendEncodingParameters[0].rtx&&(B.sendEncodingParameters[0].rtx={ssrc:B.sendEncodingParameters[0].ssrc+1})}var K=l(B.localCapabilities,B.remoteCapabilities),ee=K.codecs.filter(function(X){return X.name.toLowerCase()==="rtx"}).length;!ee&&B.sendEncodingParameters[0].rtx&&delete B.sendEncodingParameters[0].rtx,f+=a(B,K,"answer",B.stream,d._dtlsRole),B.rtcpParameters&&B.rtcpParameters.reducedSize&&(f+=`a=rtcp-rsize\r
  453. `)}});var A=new v.RTCSessionDescription({type:"answer",sdp:f});return Promise.resolve(A)},b.prototype.addIceCandidate=function(d){var f=this,x;return d&&!(d.sdpMLineIndex!==void 0||d.sdpMid)?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(A,B){if(f._remoteDescription)if(!d||d.candidate==="")for(var U=0;U<f.transceivers.length&&!(!f.transceivers[U].rejected&&(f.transceivers[U].iceTransport.addRemoteCandidate({}),x=i.getMediaSections(f._remoteDescription.sdp),x[U]+=`a=end-of-candidates\r
  454. `,f._remoteDescription.sdp=i.getDescription(f._remoteDescription.sdp)+x.join(""),f.usingBundle));U++);else{var N=d.sdpMLineIndex;if(d.sdpMid){for(var K=0;K<f.transceivers.length;K++)if(f.transceivers[K].mid===d.sdpMid){N=K;break}}var ee=f.transceivers[N];if(ee){if(ee.rejected)return A();var X=Object.keys(d.candidate).length>0?i.parseCandidate(d.candidate):{};if(X.protocol==="tcp"&&(X.port===0||X.port===9)||X.component&&X.component!==1)return A();if((N===0||N>0&&ee.iceTransport!==f.transceivers[0].iceTransport)&&!_(ee.iceTransport,X))return B(y("OperationError","Can not add ICE candidate"));var Y=d.candidate.trim();Y.indexOf("a=")===0&&(Y=Y.substr(2)),x=i.getMediaSections(f._remoteDescription.sdp),x[N]+="a="+(X.type?Y:"end-of-candidates")+`\r
  455. `,f._remoteDescription.sdp=i.getDescription(f._remoteDescription.sdp)+x.join("")}else return B(y("OperationError","Can not add ICE candidate"))}else return B(y("InvalidStateError","Can not add ICE candidate without a remote description"));A()})},b.prototype.getStats=function(d){if(d&&d instanceof v.MediaStreamTrack){var f=null;if(this.transceivers.forEach(function(A){A.rtpSender&&A.rtpSender.track===d?f=A.rtpSender:A.rtpReceiver&&A.rtpReceiver.track===d&&(f=A.rtpReceiver)}),!f)throw y("InvalidAccessError","Invalid selector.");return f.getStats()}var x=[];return this.transceivers.forEach(function(A){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(B){A[B]&&x.push(A[B].getStats())})}),Promise.all(x).then(function(A){var B=new Map;return A.forEach(function(U){U.forEach(function(N){B.set(N.id,N)})}),B})};var j=["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"];j.forEach(function(d){var f=v[d];if(f&&f.prototype&&f.prototype.getStats){var x=f.prototype.getStats;f.prototype.getStats=function(){return x.apply(this).then(function(A){var B=new Map;return Object.keys(A).forEach(function(U){A[U].type=r(A[U]),B.set(U,A[U])}),B})}}});var T=["createOffer","createAnswer"];return T.forEach(function(d){var f=b.prototype[d];b.prototype[d]=function(){var x=arguments;return typeof x[0]=="function"||typeof x[1]=="function"?f.apply(this,[arguments[2]]).then(function(A){typeof x[0]=="function"&&x[0].apply(null,[A])},function(A){typeof x[1]=="function"&&x[1].apply(null,[A])}):f.apply(this,arguments)}}),T=["setLocalDescription","setRemoteDescription","addIceCandidate"],T.forEach(function(d){var f=b.prototype[d];b.prototype[d]=function(){var x=arguments;return typeof x[1]=="function"||typeof x[2]=="function"?f.apply(this,arguments).then(function(){typeof x[1]=="function"&&x[1].apply(null)},function(A){typeof x[2]=="function"&&x[2].apply(null,[A])}):f.apply(this,arguments)}}),["getStats"].forEach(function(d){var f=b.prototype[d];b.prototype[d]=function(){var x=arguments;return typeof x[1]=="function"?f.apply(this,arguments).then(function(){typeof x[1]=="function"&&x[1].apply(null)}):f.apply(this,arguments)}}),b}},{sdp:17}],17:[function(h,u,n){var i={};i.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},i.localCName=i.generateIdentifier(),i.splitLines=function(r){return r.trim().split(`
  456. `).map(function(a){return a.trim()})},i.splitSections=function(r){var a=r.split(`
  457. m=`);return a.map(function(s,l){return(l>0?"m="+s:s).trim()+`\r
  458. `})},i.getDescription=function(r){var a=i.splitSections(r);return a&&a[0]},i.getMediaSections=function(r){var a=i.splitSections(r);return a.shift(),a},i.matchPrefix=function(r,a){return i.splitLines(r).filter(function(s){return s.indexOf(a)===0})},i.parseCandidate=function(r){var a;r.indexOf("a=candidate:")===0?a=r.substring(12).split(" "):a=r.substring(10).split(" ");for(var s={foundation:a[0],component:parseInt(a[1],10),protocol:a[2].toLowerCase(),priority:parseInt(a[3],10),ip:a[4],address:a[4],port:parseInt(a[5],10),type:a[7]},l=8;l<a.length;l+=2)switch(a[l]){case"raddr":s.relatedAddress=a[l+1];break;case"rport":s.relatedPort=parseInt(a[l+1],10);break;case"tcptype":s.tcpType=a[l+1];break;case"ufrag":s.ufrag=a[l+1],s.usernameFragment=a[l+1];break;default:s[a[l]]=a[l+1];break}return s},i.writeCandidate=function(r){var a=[];a.push(r.foundation),a.push(r.component),a.push(r.protocol.toUpperCase()),a.push(r.priority),a.push(r.address||r.ip),a.push(r.port);var s=r.type;return a.push("typ"),a.push(s),s!=="host"&&r.relatedAddress&&r.relatedPort&&(a.push("raddr"),a.push(r.relatedAddress),a.push("rport"),a.push(r.relatedPort)),r.tcpType&&r.protocol.toLowerCase()==="tcp"&&(a.push("tcptype"),a.push(r.tcpType)),(r.usernameFragment||r.ufrag)&&(a.push("ufrag"),a.push(r.usernameFragment||r.ufrag)),"candidate:"+a.join(" ")},i.parseIceOptions=function(r){return r.substr(14).split(" ")},i.parseRtpMap=function(r){var a=r.substr(9).split(" "),s={payloadType:parseInt(a.shift(),10)};return a=a[0].split("/"),s.name=a[0],s.clockRate=parseInt(a[1],10),s.channels=a.length===3?parseInt(a[2],10):1,s.numChannels=s.channels,s},i.writeRtpMap=function(r){var a=r.payloadType;r.preferredPayloadType!==void 0&&(a=r.preferredPayloadType);var s=r.channels||r.numChannels||1;return"a=rtpmap:"+a+" "+r.name+"/"+r.clockRate+(s!==1?"/"+s:"")+`\r
  459. `},i.parseExtmap=function(r){var a=r.substr(9).split(" ");return{id:parseInt(a[0],10),direction:a[0].indexOf("/")>0?a[0].split("/")[1]:"sendrecv",uri:a[1]}},i.writeExtmap=function(r){return"a=extmap:"+(r.id||r.preferredId)+(r.direction&&r.direction!=="sendrecv"?"/"+r.direction:"")+" "+r.uri+`\r
  460. `},i.parseFmtp=function(r){for(var a={},s,l=r.substr(r.indexOf(" ")+1).split(";"),C=0;C<l.length;C++)s=l[C].trim().split("="),a[s[0].trim()]=s[1];return a},i.writeFmtp=function(r){var a="",s=r.payloadType;if(r.preferredPayloadType!==void 0&&(s=r.preferredPayloadType),r.parameters&&Object.keys(r.parameters).length){var l=[];Object.keys(r.parameters).forEach(function(C){r.parameters[C]?l.push(C+"="+r.parameters[C]):l.push(C)}),a+="a=fmtp:"+s+" "+l.join(";")+`\r
  461. `}return a},i.parseRtcpFb=function(r){var a=r.substr(r.indexOf(" ")+1).split(" ");return{type:a.shift(),parameter:a.join(" ")}},i.writeRtcpFb=function(r){var a="",s=r.payloadType;return r.preferredPayloadType!==void 0&&(s=r.preferredPayloadType),r.rtcpFeedback&&r.rtcpFeedback.length&&r.rtcpFeedback.forEach(function(l){a+="a=rtcp-fb:"+s+" "+l.type+(l.parameter&&l.parameter.length?" "+l.parameter:"")+`\r
  462. `}),a},i.parseSsrcMedia=function(r){var a=r.indexOf(" "),s={ssrc:parseInt(r.substr(7,a-7),10)},l=r.indexOf(":",a);return l>-1?(s.attribute=r.substr(a+1,l-a-1),s.value=r.substr(l+1)):s.attribute=r.substr(a+1),s},i.parseSsrcGroup=function(r){var a=r.substr(13).split(" ");return{semantics:a.shift(),ssrcs:a.map(function(s){return parseInt(s,10)})}},i.getMid=function(r){var a=i.matchPrefix(r,"a=mid:")[0];if(a)return a.substr(6)},i.parseFingerprint=function(r){var a=r.substr(14).split(" ");return{algorithm:a[0].toLowerCase(),value:a[1]}},i.getDtlsParameters=function(r,a){var s=i.matchPrefix(r+a,"a=fingerprint:");return{role:"auto",fingerprints:s.map(i.parseFingerprint)}},i.writeDtlsParameters=function(r,a){var s="a=setup:"+a+`\r
  463. `;return r.fingerprints.forEach(function(l){s+="a=fingerprint:"+l.algorithm+" "+l.value+`\r
  464. `}),s},i.getIceParameters=function(r,a){var s=i.splitLines(r);s=s.concat(i.splitLines(a));var l={usernameFragment:s.filter(function(C){return C.indexOf("a=ice-ufrag:")===0})[0].substr(12),password:s.filter(function(C){return C.indexOf("a=ice-pwd:")===0})[0].substr(10)};return l},i.writeIceParameters=function(r){return"a=ice-ufrag:"+r.usernameFragment+`\r
  465. a=ice-pwd:`+r.password+`\r
  466. `},i.parseRtpParameters=function(r){for(var a={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},s=i.splitLines(r),l=s[0].split(" "),C=3;C<l.length;C++){var _=l[C],y=i.matchPrefix(r,"a=rtpmap:"+_+" ")[0];if(y){var v=i.parseRtpMap(y),m=i.matchPrefix(r,"a=fmtp:"+_+" ");switch(v.parameters=m.length?i.parseFmtp(m[0]):{},v.rtcpFeedback=i.matchPrefix(r,"a=rtcp-fb:"+_+" ").map(i.parseRtcpFb),a.codecs.push(v),v.name.toUpperCase()){case"RED":case"ULPFEC":a.fecMechanisms.push(v.name.toUpperCase());break}}}return i.matchPrefix(r,"a=extmap:").forEach(function(w){a.headerExtensions.push(i.parseExtmap(w))}),a},i.writeRtpDescription=function(r,a){var s="";s+="m="+r+" ",s+=a.codecs.length>0?"9":"0",s+=" UDP/TLS/RTP/SAVPF ",s+=a.codecs.map(function(C){return C.preferredPayloadType!==void 0?C.preferredPayloadType:C.payloadType}).join(" ")+`\r
  467. `,s+=`c=IN IP4 0.0.0.0\r
  468. `,s+=`a=rtcp:9 IN IP4 0.0.0.0\r
  469. `,a.codecs.forEach(function(C){s+=i.writeRtpMap(C),s+=i.writeFmtp(C),s+=i.writeRtcpFb(C)});var l=0;return a.codecs.forEach(function(C){C.maxptime>l&&(l=C.maxptime)}),l>0&&(s+="a=maxptime:"+l+`\r
  470. `),s+=`a=rtcp-mux\r
  471. `,a.headerExtensions&&a.headerExtensions.forEach(function(C){s+=i.writeExtmap(C)}),s},i.parseRtpEncodingParameters=function(r){var a=[],s=i.parseRtpParameters(r),l=s.fecMechanisms.indexOf("RED")!==-1,C=s.fecMechanisms.indexOf("ULPFEC")!==-1,_=i.matchPrefix(r,"a=ssrc:").map(function(R){return i.parseSsrcMedia(R)}).filter(function(R){return R.attribute==="cname"}),y=_.length>0&&_[0].ssrc,v,m=i.matchPrefix(r,"a=ssrc-group:FID").map(function(R){var E=R.substr(17).split(" ");return E.map(function(b){return parseInt(b,10)})});m.length>0&&m[0].length>1&&m[0][0]===y&&(v=m[0][1]),s.codecs.forEach(function(R){if(R.name.toUpperCase()==="RTX"&&R.parameters.apt){var E={ssrc:y,codecPayloadType:parseInt(R.parameters.apt,10)};y&&v&&(E.rtx={ssrc:v}),a.push(E),l&&(E=JSON.parse(JSON.stringify(E)),E.fec={ssrc:y,mechanism:C?"red+ulpfec":"red"},a.push(E))}}),a.length===0&&y&&a.push({ssrc:y});var w=i.matchPrefix(r,"b=");return w.length&&(w[0].indexOf("b=TIAS:")===0?w=parseInt(w[0].substr(7),10):w[0].indexOf("b=AS:")===0?w=parseInt(w[0].substr(5),10)*1e3*.95-50*40*8:w=void 0,a.forEach(function(R){R.maxBitrate=w})),a},i.parseRtcpParameters=function(r){var a={},s=i.matchPrefix(r,"a=ssrc:").map(function(_){return i.parseSsrcMedia(_)}).filter(function(_){return _.attribute==="cname"})[0];s&&(a.cname=s.value,a.ssrc=s.ssrc);var l=i.matchPrefix(r,"a=rtcp-rsize");a.reducedSize=l.length>0,a.compound=l.length===0;var C=i.matchPrefix(r,"a=rtcp-mux");return a.mux=C.length>0,a},i.parseMsid=function(r){var a,s=i.matchPrefix(r,"a=msid:");if(s.length===1)return a=s[0].substr(7).split(" "),{stream:a[0],track:a[1]};var l=i.matchPrefix(r,"a=ssrc:").map(function(C){return i.parseSsrcMedia(C)}).filter(function(C){return C.attribute==="msid"});if(l.length>0)return a=l[0].value.split(" "),{stream:a[0],track:a[1]}},i.parseSctpDescription=function(r){var a=i.parseMLine(r),s=i.matchPrefix(r,"a=max-message-size:"),l;s.length>0&&(l=parseInt(s[0].substr(19),10)),isNaN(l)&&(l=65536);var C=i.matchPrefix(r,"a=sctp-port:");if(C.length>0)return{port:parseInt(C[0].substr(12),10),protocol:a.fmt,maxMessageSize:l};var _=i.matchPrefix(r,"a=sctpmap:");if(_.length>0){var y=i.matchPrefix(r,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(y[0],10),protocol:y[1],maxMessageSize:l}}},i.writeSctpDescription=function(r,a){var s=[];return r.protocol!=="DTLS/SCTP"?s=["m="+r.kind+" 9 "+r.protocol+" "+a.protocol+`\r
  472. `,`c=IN IP4 0.0.0.0\r
  473. `,"a=sctp-port:"+a.port+`\r
  474. `]:s=["m="+r.kind+" 9 "+r.protocol+" "+a.port+`\r
  475. `,`c=IN IP4 0.0.0.0\r
  476. `,"a=sctpmap:"+a.port+" "+a.protocol+` 65535\r
  477. `],a.maxMessageSize!==void 0&&s.push("a=max-message-size:"+a.maxMessageSize+`\r
  478. `),s.join("")},i.generateSessionId=function(){return Math.random().toString().substr(2,21)},i.writeSessionBoilerplate=function(r,a,s){var l,C=a!==void 0?a:2;r?l=r:l=i.generateSessionId();var _=s||"thisisadapterortc";return`v=0\r
  479. o=`+_+" "+l+" "+C+` IN IP4 127.0.0.1\r
  480. s=-\r
  481. t=0 0\r
  482. `},i.writeMediaSection=function(r,a,s,l){var C=i.writeRtpDescription(r.kind,a);if(C+=i.writeIceParameters(r.iceGatherer.getLocalParameters()),C+=i.writeDtlsParameters(r.dtlsTransport.getLocalParameters(),s==="offer"?"actpass":"active"),C+="a=mid:"+r.mid+`\r
  483. `,r.direction?C+="a="+r.direction+`\r
  484. `:r.rtpSender&&r.rtpReceiver?C+=`a=sendrecv\r
  485. `:r.rtpSender?C+=`a=sendonly\r
  486. `:r.rtpReceiver?C+=`a=recvonly\r
  487. `:C+=`a=inactive\r
  488. `,r.rtpSender){var _="msid:"+l.id+" "+r.rtpSender.track.id+`\r
  489. `;C+="a="+_,C+="a=ssrc:"+r.sendEncodingParameters[0].ssrc+" "+_,r.sendEncodingParameters[0].rtx&&(C+="a=ssrc:"+r.sendEncodingParameters[0].rtx.ssrc+" "+_,C+="a=ssrc-group:FID "+r.sendEncodingParameters[0].ssrc+" "+r.sendEncodingParameters[0].rtx.ssrc+`\r
  490. `)}return C+="a=ssrc:"+r.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+`\r
  491. `,r.rtpSender&&r.sendEncodingParameters[0].rtx&&(C+="a=ssrc:"+r.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+`\r
  492. `),C},i.getDirection=function(r,a){for(var s=i.splitLines(r),l=0;l<s.length;l++)switch(s[l]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return s[l].substr(2)}return a?i.getDirection(a):"sendrecv"},i.getKind=function(r){var a=i.splitLines(r),s=a[0].split(" ");return s[0].substr(2)},i.isRejected=function(r){return r.split(" ",2)[1]==="0"},i.parseMLine=function(r){var a=i.splitLines(r),s=a[0].substr(2).split(" ");return{kind:s[0],port:parseInt(s[1],10),protocol:s[2],fmt:s.slice(3).join(" ")}},i.parseOLine=function(r){var a=i.matchPrefix(r,"o=")[0],s=a.substr(2).split(" ");return{username:s[0],sessionId:s[1],sessionVersion:parseInt(s[2],10),netType:s[3],addressType:s[4],address:s[5]}},i.isValidSDP=function(r){if(typeof r!="string"||r.length===0)return!1;for(var a=i.splitLines(r),s=0;s<a.length;s++)if(a[s].length<2||a[s].charAt(1)!=="=")return!1;return!0},Se(u)==="object"&&(u.exports=i)},{}]},{},[1])(1)}),p.sessions={},p.isExtensionEnabled=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)return!0;if(window.navigator.userAgent.match("Chrome")){var h=parseInt(window.navigator.userAgent.match(/Chrome\/(.*) /)[1],10),u=33;return window.navigator.userAgent.match("Linux")&&(u=35),h>=26&&h<=u?!0:p.extension.isInstalled()}else return!0};var Zr={extensionId:"hapfgfdkleiggjjpfpenajgdnfckjpaj",isInstalled:function(){return document.querySelector("#janus-extension-installed")!==null},getScreen:function(u){var n=window.setTimeout(function(){var i=new Error("NavigatorUserMediaError");return i.name='The required Chrome extension is not installed: click <a href="#">here</a> to install it. (NOTE: this will need you to refresh the page)',u(i)},1e3);this.cache[n]=u,window.postMessage({type:"janusGetScreen",id:n},"*")},init:function(){var u={};this.cache=u,window.addEventListener("message",function(n){if(n.origin==window.location.origin)if(n.data.type=="janusGotScreen"&&u[n.data.id]){var i=u[n.data.id];if(delete u[n.data.id],n.data.sourceId===""){var r=new Error("NavigatorUserMediaError");r.name="You cancelled the request for permission, giving up...",i(r)}else i(null,n.data.sourceId)}else n.data.type=="janusGetScreenPending"&&(console.log("clearing ",n.data.id),window.clearTimeout(n.data.id))})}};p.useDefaultDependencies=function(h){var u=h&&h.fetch||fetch,n=h&&h.Promise||Promise,i=h&&h.WebSocket||WebSocket;return{newWebSocket:function(a,s){return new i(a,s)},extension:h&&h.extension||Zr,isArray:function(a){return Array.isArray(a)},webRTCAdapter:h&&h.adapter||window.adapter,httpAPICall:function(a,s){var l={method:s.verb,headers:{Accept:"application/json, text/plain, */*"},cache:"no-cache"};s.verb==="POST"&&(l.headers["Content-Type"]="application/json"),s.withCredentials!==void 0&&(l.credentials=s.withCredentials===!0?"include":s.withCredentials?s.withCredentials:"omit"),s.body!==void 0&&(l.body=JSON.stringify(s.body));var C=u(a,l).catch(function(y){return n.reject({message:"Probably a network error, is the server down?",error:y})});if(s.timeout!==void 0){var _=new n(function(y,v){var m=setTimeout(function(){return clearTimeout(m),v({message:"Request timed out",timeout:s.timeout})},s.timeout)});C=n.race([C,_])}return C.then(function(y){if(y.ok){if(Se(s.success)===Se(p.noop))return y.json().then(function(v){s.success(v)}).catch(function(v){return n.reject({message:"Failed to parse response body",error:v,response:y})})}else return n.reject({message:"API call failed",response:y})}).catch(function(y){Se(s.error)===Se(p.noop)&&s.error(y.message||"<< internal error >>",y)}),C}}},p.useOldDependencies=function(h){var u=h&&h.jQuery||jQuery,n=h&&h.WebSocket||WebSocket;return{newWebSocket:function(r,a){return new n(r,a)},isArray:function(r){return u.isArray(r)},extension:h&&h.extension||Zr,webRTCAdapter:h&&h.adapter||adapter,httpAPICall:function(r,a){var s=a.body!==void 0?{contentType:"application/json",data:JSON.stringify(a.body)}:{},l=a.withCredentials!==void 0?{xhrFields:{withCredentials:a.withCredentials}}:{};return u.ajax(u.extend(s,l,{url:r,type:a.verb,cache:!1,dataType:"json",async:a.async,timeout:a.timeout,success:function(_){Se(a.success)===Se(p.noop)&&a.success(_)},error:function(_,y,v){Se(a.error)===Se(p.noop)&&a.error(y,v)}}))}}},p.noop=function(){},p.dataChanDefaultLabel="JanusDataChannel",p.endOfCandidates=null,p.init=function(h){if(h=h||{},h.callback=typeof h.callback=="function"?h.callback:p.noop,p.initDone===!0)h.callback();else{if((typeof console=="undefined"||typeof console.log=="undefined")&&(console={log:function(){}}),p.trace=p.noop,p.debug=p.noop,p.vdebug=p.noop,p.log=p.noop,p.warn=p.noop,p.error=p.noop,h.debug===!0||h.debug==="all")p.trace=console.trace.bind(console),p.debug=console.debug.bind(console),p.vdebug=console.debug.bind(console),p.log=console.log.bind(console),p.warn=console.warn.bind(console),p.error=console.error.bind(console);else if(Array.isArray(h.debug))for(var u in h.debug){var n=h.debug[u];switch(n){case"trace":p.trace=console.trace.bind(console);break;case"debug":p.debug=console.debug.bind(console);break;case"vdebug":p.vdebug=console.debug.bind(console);break;case"log":p.log=console.log.bind(console);break;case"warn":p.warn=console.warn.bind(console);break;case"error":p.error=console.error.bind(console);break;default:console.error("Unknown debugging option '"+n+"' (supported: 'trace', 'debug', 'vdebug', 'log', warn', 'error')");break}}p.log("Initializing library");var i=h.dependencies||p.useDefaultDependencies();p.isArray=i.isArray,p.webRTCAdapter=i.webRTCAdapter,p.httpAPICall=i.httpAPICall,p.newWebSocket=i.newWebSocket,p.extension=i.extension,p.extension.init(),p.listDevices=function(y,v){y=typeof y=="function"?y:p.noop,v==null&&(v={audio:!0,video:!0}),p.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(v).then(function(m){navigator.mediaDevices.enumerateDevices().then(function(w){p.debug(w),y(w);try{var R=m.getTracks();for(var E in R){var b=R[E];b!=null&&b.stop()}}catch{}})}).catch(function(m){p.error(m),y([])}):(p.warn("navigator.mediaDevices unavailable"),y([]))},p.attachMediaStream=function(y,v){if(p.webRTCAdapter.browserDetails.browser==="chrome"){var m=p.webRTCAdapter.browserDetails.version;m>=52?y.srcObject=v:typeof y.src!="undefined"?y.src=URL.createObjectURL(v):p.error("Error attaching stream to element")}else y.srcObject=v},p.reattachMediaStream=function(y,v){if(p.webRTCAdapter.browserDetails.browser==="chrome"){var m=p.webRTCAdapter.browserDetails.version;m>=52?y.srcObject=v.srcObject:typeof y.src!="undefined"?y.src=v.src:p.error("Error reattaching stream to element")}else y.srcObject=v.srcObject};var r=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0,a=r?"pagehide":"beforeunload",s=window["on"+a];if(window.addEventListener(a,function(y){p.log("Closing window");for(var v in p.sessions)p.sessions[v]!==null&&p.sessions[v]!==void 0&&p.sessions[v].destroyOnUnload&&(p.log("Destroying session "+v),p.sessions[v].destroy({asyncRequest:!1,notifyDestroyed:!1}));s&&typeof s=="function"&&s()}),p.safariVp8=!1,p.webRTCAdapter.browserDetails.browser==="safari"&&p.webRTCAdapter.browserDetails.version>=605)if(RTCRtpSender&&RTCRtpSender.getCapabilities&&RTCRtpSender.getCapabilities("video")&&RTCRtpSender.getCapabilities("video").codecs&&RTCRtpSender.getCapabilities("video").codecs.length){for(var u in RTCRtpSender.getCapabilities("video").codecs){var l=RTCRtpSender.getCapabilities("video").codecs[u];if(l&&l.mimeType&&l.mimeType.toLowerCase()==="video/vp8"){p.safariVp8=!0;break}}p.safariVp8?p.log("This version of Safari supports VP8"):p.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu")}else{var C=new RTCPeerConnection({},{});C.createOffer({offerToReceiveVideo:!0}).then(function(y){p.safariVp8=y.sdp.indexOf("VP8")!==-1,p.safariVp8?p.log("This version of Safari supports VP8"):p.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"),C.close(),C=null})}if(p.unifiedPlan=!1,p.webRTCAdapter.browserDetails.browser==="firefox"&&p.webRTCAdapter.browserDetails.version>=59)p.unifiedPlan=!0;else if(p.webRTCAdapter.browserDetails.browser==="chrome"&&p.webRTCAdapter.browserDetails.version<72)p.unifiedPlan=!1;else if(typeof RTCRtpTransceiver!="undefined"&&!("currentDirection"in RTCRtpTransceiver.prototype))p.unifiedPlan=!1;else{var _=new RTCPeerConnection;try{_.addTransceiver("audio"),p.unifiedPlan=!0}catch{}_.close()}p.initDone=!0,h.callback()}},p.isWebrtcSupported=function(){return window.RTCPeerConnection!==void 0&&window.RTCPeerConnection!==null},p.isGetUserMediaAvailable=function(){return navigator.mediaDevices!==void 0&&navigator.mediaDevices!==null&&navigator.mediaDevices.getUserMedia!==void 0&&navigator.mediaDevices.getUserMedia!==null},p.randomString=function(h){for(var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<h;i++){var r=Math.floor(Math.random()*u.length);n+=u.substring(r,r+1)}return n};function p(h){if(p.initDone===void 0)return h.error("Library not initialized"),{};if(!p.isWebrtcSupported())return h.error("WebRTC not supported by this browser"),{};if(p.log("Library initialized: "+p.initDone),h=h||{},h.success=typeof h.success=="function"?h.success:p.noop,h.error=typeof h.error=="function"?h.error:p.noop,h.destroyed=typeof h.destroyed=="function"?h.destroyed:p.noop,h.server===null||h.server===void 0)return h.error("Invalid server url"),{};var u=!1,n=null,i={},r=null,a=null,s=0,l=h.server;p.isArray(l)?(p.log("Multiple servers provided ("+l.length+"), will use the first that works"),l=null,a=h.server,p.debug(a)):l.indexOf("ws")===0?(u=!0,p.log("Using WebSockets to contact Janus: "+l)):(u=!1,p.log("Using REST API to contact Janus: "+l));var C=h.iceServers;C==null&&(C=[{urls:"stun:stun.l.google.com:19302"}]);var _=h.iceTransportPolicy,y=h.bundlePolicy,v=h.ipv6;v==null&&(v=!1);var m=!1;h.withCredentials!==void 0&&h.withCredentials!==null&&(m=h.withCredentials===!0);var w=10;h.max_poll_events!==void 0&&h.max_poll_events!==null&&(w=h.max_poll_events),w<1&&(w=1);var R=null;h.token!==void 0&&h.token!==null&&(R=h.token);var E=null;h.apisecret!==void 0&&h.apisecret!==null&&(E=h.apisecret),this.destroyOnUnload=!0,h.destroyOnUnload!==void 0&&h.destroyOnUnload!==null&&(this.destroyOnUnload=h.destroyOnUnload===!0);var b=25e3;h.keepAlivePeriod!==void 0&&h.keepAlivePeriod!==null&&(b=h.keepAlivePeriod),isNaN(b)&&(b=25e3);var j=6e4;h.longPollTimeout!==void 0&&h.longPollTimeout!==null&&(j=h.longPollTimeout),isNaN(j)&&(j=6e4);function T(S){var D={high:9e5,medium:3e5,low:1e5};return S!=null&&(S.high&&(D.high=S.high),S.medium&&(D.medium=S.medium),S.low&&(D.low=S.low)),D}var d=!1,f=null,x={},A=this,B=0,U={};X(h),this.getServer=function(){return l},this.isConnected=function(){return d},this.reconnect=function(S){S=S||{},S.success=typeof S.success=="function"?S.success:p.noop,S.error=typeof S.error=="function"?S.error:p.noop,S.reconnect=!0,X(S)},this.getSessionId=function(){return f},this.destroy=function(S){Y(S)},this.attach=function(S){de(S)};function N(){if(f!=null){if(p.debug("Long poll..."),!d){p.warn("Is the server down? (connected=false)");return}var S=l+"/"+f+"?rid="+new Date().getTime();w!=null&&(S=S+"&maxev="+w),R!=null&&(S=S+"&token="+encodeURIComponent(R)),E!=null&&(S=S+"&apisecret="+encodeURIComponent(E)),p.httpAPICall(S,{verb:"GET",withCredentials:m,success:K,timeout:j,error:function(M,L){if(p.error(M+":",L),B++,B>3){d=!1,h.error("Lost connection to the server (is it down?)");return}N()}})}}function K(S,D){if(B=0,!u&&f!==void 0&&f!==null&&D!==!0&&N(),!u&&p.isArray(S)){for(var M=0;M<S.length;M++)K(S[M],!0);return}if(S.rtcgw==="keepalive"){p.vdebug("Got a keepalive on session "+f);return}else if(S.rtcgw==="ack"){p.debug("Got an ack on session "+f),p.debug(S);var L=S.transaction;if(L!=null){var P=U[L];P!=null&&P(S),delete U[L]}return}else if(S.rtcgw==="success"){p.debug("Got a success on session "+f),p.debug(S);var L=S.transaction;if(L!=null){var P=U[L];P!=null&&P(S),delete U[L]}return}else if(S.rtcgw==="trickle"){var H=S.sender;if(H==null){p.warn("Missing sender...");return}var z=x[H];if(z==null){p.debug("This handle is not attached to this session");return}var G=S.candidate;p.debug("Got a trickled candidate on session "+f),p.debug(G);var Z=z.webrtcStuff;Z.pc&&Z.remoteSdp?(p.debug("Adding remote candidate:",G),!G||G.completed===!0?Z.pc.addIceCandidate(p.endOfCandidates):Z.pc.addIceCandidate(G)):(p.debug("We didn't do setRemoteDescription (trickle got here before the offer?), caching candidate"),Z.candidates||(Z.candidates=[]),Z.candidates.push(G),p.debug(Z.candidates))}else if(S.rtcgw==="webrtcup"){p.debug("Got a webrtcup event on session "+f),p.debug(S);var H=S.sender;if(H==null){p.warn("Missing sender...");return}var z=x[H];if(z==null){p.debug("This handle is not attached to this session");return}z.webrtcState(!0);return}else if(S.rtcgw==="hangup"){p.debug("Got a hangup event on session "+f),p.debug(S);var H=S.sender;if(H==null){p.warn("Missing sender...");return}var z=x[H];if(z==null){p.debug("This handle is not attached to this session");return}z.webrtcState(!1,S.reason),z.hangup()}else if(S.rtcgw==="detached"){p.debug("Got a detached event on session "+f),p.debug(S);var H=S.sender;if(H==null){p.warn("Missing sender...");return}var z=x[H];if(z==null)return;z.detached=!0,z.ondetached(),z.detach()}else if(S.rtcgw==="media"){p.debug("Got a media event on session "+f),p.debug(S);var H=S.sender;if(H==null){p.warn("Missing sender...");return}var z=x[H];if(z==null){p.debug("This handle is not attached to this session");return}z.mediaState(S.type,S.receiving)}else if(S.rtcgw==="slowlink"){p.debug("Got a slowlink event on session "+f),p.debug(S);var H=S.sender;if(H==null){p.warn("Missing sender...");return}var z=x[H];if(z==null){p.debug("This handle is not attached to this session");return}z.slowLink(S.uplink,S.lost)}else if(S.rtcgw==="error"){p.error("Ooops: "+S.error.code+" "+S.error.reason),p.debug(S);var L=S.transaction;if(L!=null){var P=U[L];P!=null&&P(S),delete U[L]}return}else if(S.rtcgw==="event"){p.debug("Got a plugin event on session "+f),p.debug(S);var H=S.sender;if(H==null){p.warn("Missing sender...");return}var ie=S.plugindata;if(ie==null){p.warn("Missing plugindata...");return}p.debug(" -- Event is coming from "+H+" ("+ie.plugin+")");var q=ie.data;p.debug(q);var z=x[H];if(z==null){p.warn("This handle is not attached to this session");return}var re=S.jsep;re!=null&&(p.debug("Handling SDP as well..."),p.debug(re));var Ve=z.onmessage;Ve!=null?(p.debug("Notifying application..."),Ve(q,re)):p.debug("No provided notification callback")}else if(S.rtcgw==="timeout"){p.error("Timeout on session "+f),p.debug(S),u&&n.close(3504,"Gateway timeout");return}else p.warn("Unknown message/event '"+S.rtcgw+"' on session "+f),p.debug(S)}function ee(){if(!(l===null||!u||!d)){r=setTimeout(ee,b);var S={rtcgw:"keepalive",session_id:f,transaction:p.randomString(12)};R!=null&&(S.token=R),E!=null&&(S.apisecret=E),n.send(JSON.stringify(S))}}function X(S){var D=p.randomString(12),M={rtcgw:"create",transaction:D,token:window.EZUIKit.opt.stream,device:window.EZUIKit.opt.deviceSerial,channel:window.EZUIKit.opt.channelNo};if(S.reconnect&&(d=!1,M.rtcgw="claim",M.session_id=f,n&&(n.onopen=null,n.onerror=null,n.onclose=null,r&&(clearTimeout(r),r=null))),R!=null&&(M.token=R),E!=null&&(M.apisecret=E),l===null&&p.isArray(a)&&(l=a[s],l.indexOf("ws")===0?(u=!0,p.log("Server #"+(s+1)+": trying WebSockets to contact Janus ("+l+")")):(u=!1,p.log("Server #"+(s+1)+": trying REST API to contact Janus ("+l+")"))),u){n=p.newWebSocket(l,"rtcgw-protocol"),i={error:function(){if(p.error("Error connecting to the Janus WebSockets server... "+l),p.isArray(a)&&!S.reconnect){if(s++,s==a.length){S.error("Error connecting to any of the provided Janus servers: Is the server down?");return}l=null,setTimeout(function(){X(S)},200);return}S.error("Error connecting to the Janus WebSockets server: Is the server down?")},open:function(){U[D]=function(H){if(p.debug(H),H.rtcgw!=="success"){p.error("Ooops: "+H.error.code+" "+H.error.reason),S.error(H.error.reason);return}r=setTimeout(ee,b),d=!0,f=H.session_id?H.session_id:H.data.id,S.reconnect?p.log("Claimed session: "+f):p.log("Created session: "+f),p.sessions[f]=A,S.success()},n.send(JSON.stringify(M))},message:function(H){K(JSON.parse(H.data))},close:function(){l===null||!d||(d=!1,h.error("Lost connection to the server (is it down?)"))}};for(var L in i)n.addEventListener(L,i[L]);return}p.httpAPICall(l,{verb:"POST",withCredentials:m,body:M,success:function(H){if(p.debug(H),H.rtcgw!=="success"){p.error("Ooops: "+H.error.code+" "+H.error.reason),S.error(H.error.reason);return}d=!0,f=H.session_id?H.session_id:H.data.id,S.reconnect?p.log("Claimed session: "+f):p.log("Created session: "+f),p.sessions[f]=A,N(),S.success()},error:function(H,z){if(p.error(H+":",z),p.isArray(a)&&!S.reconnect){if(s++,s==a.length){S.error("Error connecting to any of the provided Janus servers: Is the server down?");return}l=null,setTimeout(function(){X(S)},200);return}z===""?S.error(H+": Is the server down?"):S.error(H+": "+z)}})}function Y(S){S=S||{},S.success=typeof S.success=="function"?S.success:p.noop;var D=!0;S.asyncRequest!==void 0&&S.asyncRequest!==null&&(D=S.asyncRequest===!0);var M=!0;S.notifyDestroyed!==void 0&&S.notifyDestroyed!==null&&(M=S.notifyDestroyed===!0);var L=!1;if(S.cleanupHandles!==void 0&&S.cleanupHandles!==null&&(L=S.cleanupHandles===!0),p.log("Destroying session "+f+" (async="+D+")"),!d){p.warn("Is the server down? (connected=false)"),S.success();return}if(f==null){p.warn("No session to destroy"),S.success(),M&&h.destroyed();return}if(L)for(var P in x)He(P,{noRequest:!0});var H={rtcgw:"destroy",transaction:p.randomString(12)};if(R!=null&&(H.token=R),E!=null&&(H.apisecret=E),u){H.session_id=f;var z=function(){for(var q in i)n.removeEventListener(q,i[q]);n.removeEventListener("message",G),n.removeEventListener("error",Z),r&&clearTimeout(r),n.close()},G=function(q){var re=JSON.parse(q.data);re.session_id==H.session_id&&re.transaction==H.transaction&&(z(),S.success(),M&&h.destroyed())},Z=function(q){z(),S.error("Failed to destroy the server: Is the server down?"),M&&h.destroyed()};n.addEventListener("message",G),n.addEventListener("error",Z),n.send(JSON.stringify(H));return}p.httpAPICall(l+"/"+f,{verb:"POST",async:D,withCredentials:m,body:H,success:function(q){p.log("Destroyed session:"),p.debug(q),f=null,d=!1,q.rtcgw!=="success"&&p.error("Ooops: "+q.error.code+" "+q.error.reason),S.success(),M&&h.destroyed()},error:function(q,re){p.error(q+":",re),f=null,d=!1,S.success(),M&&h.destroyed()}})}function de(S){if(S=S||{},S.success=typeof S.success=="function"?S.success:p.noop,S.error=typeof S.error=="function"?S.error:p.noop,S.consentDialog=typeof S.consentDialog=="function"?S.consentDialog:p.noop,S.iceState=typeof S.iceState=="function"?S.iceState:p.noop,S.mediaState=typeof S.mediaState=="function"?S.mediaState:p.noop,S.webrtcState=typeof S.webrtcState=="function"?S.webrtcState:p.noop,S.slowLink=typeof S.slowLink=="function"?S.slowLink:p.noop,S.onmessage=typeof S.onmessage=="function"?S.onmessage:p.noop,S.onlocalstream=typeof S.onlocalstream=="function"?S.onlocalstream:p.noop,S.onremotestream=typeof S.onremotestream=="function"?S.onremotestream:p.noop,S.ondata=typeof S.ondata=="function"?S.ondata:p.noop,S.ondataopen=typeof S.ondataopen=="function"?S.ondataopen:p.noop,S.oncleanup=typeof S.oncleanup=="function"?S.oncleanup:p.noop,S.ondetached=typeof S.ondetached=="function"?S.ondetached:p.noop,!d){p.warn("Is the server down? (connected=false)"),S.error("Is the server down? (connected=false)");return}var D=S.plugin;if(D==null){p.error("Invalid plugin"),S.error("Invalid plugin");return}var M=S.opaqueId,L=S.token?S.token:R,P=p.randomString(12),H={rtcgw:"attach",plugin:D,opaque_id:M,transaction:P};if(L!=null&&(H.token=L),E!=null&&(H.apisecret=E),u){U[P]=function(z){if(p.debug(z),z.rtcgw!=="success"){p.error("Ooops: "+z.error.code+" "+z.error.reason),S.error("Ooops: "+z.error.code+" "+z.error.reason);return}var G=z.data.id;p.log("Created handle: "+G);var Z={session:A,plugin:D,id:G,token:L,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return G},getPlugin:function(){return D},getVolume:function(){return ke(G,!0)},getRemoteVolume:function(){return ke(G,!0)},getLocalVolume:function(){return ke(G,!1)},isAudioMuted:function(){return Be(G,!1)},muteAudio:function(){return Le(G,!1,!0)},unmuteAudio:function(){return Le(G,!1,!1)},isVideoMuted:function(){return Be(G,!0)},muteVideo:function(){return Le(G,!0,!0)},unmuteVideo:function(){return Le(G,!0,!1)},getBitrate:function(){return ln(G)},send:function(q){ce(G,q)},data:function(q){me(G,q)},dtmf:function(q){xe(G,q)},consentDialog:S.consentDialog,iceState:S.iceState,mediaState:S.mediaState,webrtcState:S.webrtcState,slowLink:S.slowLink,onmessage:S.onmessage,createOffer:function(q){mt(G,!0,q)},createAnswer:function(q){mt(G,!1,q)},handleRemoteJsep:function(q){nt(G,q)},onlocalstream:S.onlocalstream,onremotestream:S.onremotestream,ondata:S.ondata,ondataopen:S.ondataopen,oncleanup:S.oncleanup,ondetached:S.ondetached,hangup:function(q){vt(G,q===!0)},detach:function(q){He(G,q)}};x[G]=Z,S.success(Z)},H.session_id=f,n.send(JSON.stringify(H));return}p.httpAPICall(l+"/"+f,{verb:"POST",withCredentials:m,body:H,success:function(G){if(p.debug(G),G.rtcgw!=="success"){p.error("Ooops: "+G.error.code+" "+G.error.reason),S.error("Ooops: "+G.error.code+" "+G.error.reason);return}var Z=G.data.id;p.log("Created handle: "+Z);var ie={session:A,plugin:D,id:Z,token:L,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return Z},getPlugin:function(){return D},getVolume:function(){return ke(Z,!0)},getRemoteVolume:function(){return ke(Z,!0)},getLocalVolume:function(){return ke(Z,!1)},isAudioMuted:function(){return Be(Z,!1)},muteAudio:function(){return Le(Z,!1,!0)},unmuteAudio:function(){return Le(Z,!1,!1)},isVideoMuted:function(){return Be(Z,!0)},muteVideo:function(){return Le(Z,!0,!0)},unmuteVideo:function(){return Le(Z,!0,!1)},getBitrate:function(){return ln(Z)},send:function(re){ce(Z,re)},data:function(re){me(Z,re)},dtmf:function(re){xe(Z,re)},consentDialog:S.consentDialog,iceState:S.iceState,mediaState:S.mediaState,webrtcState:S.webrtcState,slowLink:S.slowLink,onmessage:S.onmessage,createOffer:function(re){mt(Z,!0,re)},createAnswer:function(re){mt(Z,!1,re)},handleRemoteJsep:function(re){nt(Z,re)},onlocalstream:S.onlocalstream,onremotestream:S.onremotestream,ondata:S.ondata,ondataopen:S.ondataopen,oncleanup:S.oncleanup,ondetached:S.ondetached,hangup:function(re){vt(Z,re===!0)},detach:function(re){He(Z,re)}};x[Z]=ie,S.success(ie)},error:function(G,Z){p.error(G+":",Z)}})}function ce(S,D){if(D=D||{},D.success=typeof D.success=="function"?D.success:p.noop,D.error=typeof D.error=="function"?D.error:p.noop,!d){p.warn("Is the server down? (connected=false)"),D.error("Is the server down? (connected=false)");return}var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0){p.warn("Invalid handle"),D.error("Invalid handle");return}var L=D.message,P=D.jsep,H=p.randomString(12),z={rtcgw:"message",body:L,transaction:H};if(M.token!==null&&M.token!==void 0&&(z.token=M.token),E!=null&&(z.apisecret=E),P!=null&&(z.jsep=P),p.debug("Sending message to plugin (handle="+S+"):"),p.debug(z),u){z.session_id=f,z.handle_id=S,U[H]=function(G){if(p.debug("Message sent!"),p.debug(G),G.rtcgw==="success"){var Z=G.plugindata;if(Z==null){p.warn("Request succeeded, but missing plugindata..."),D.success();return}p.log("Synchronous transaction successful ("+Z.plugin+")");var ie=Z.data;p.debug(ie),D.success(ie);return}else if(G.rtcgw!=="ack"){G.error!==void 0&&G.error!==null?(p.error("Ooops: "+G.error.code+" "+G.error.reason),D.error(G.error.code+" "+G.error.reason)):(p.error("Unknown error"),D.error("Unknown error"));return}D.success()},n.send(JSON.stringify(z));return}p.httpAPICall(l+"/"+f+"/"+S,{verb:"POST",withCredentials:m,body:z,success:function(Z){if(p.debug("Message sent!"),p.debug(Z),Z.rtcgw==="success"){var ie=Z.plugindata;if(ie==null){p.warn("Request succeeded, but missing plugindata..."),D.success();return}p.log("Synchronous transaction successful ("+ie.plugin+")");var q=ie.data;p.debug(q),D.success(q);return}else if(Z.rtcgw!=="ack"){Z.error!==void 0&&Z.error!==null?(p.error("Ooops: "+Z.error.code+" "+Z.error.reason),D.error(Z.error.code+" "+Z.error.reason)):(p.error("Unknown error"),D.error("Unknown error"));return}D.success()},error:function(Z,ie){p.error(Z+":",ie),D.error(Z+": "+ie)}})}function fe(S,D){if(!d){p.warn("Is the server down? (connected=false)");return}var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0){p.warn("Invalid handle");return}var L={rtcgw:"trickle",candidate:D,transaction:p.randomString(12)};if(M.token!==null&&M.token!==void 0&&(L.token=M.token),E!=null&&(L.apisecret=E),p.vdebug("Sending trickle candidate (handle="+S+"):"),p.vdebug(L),u){L.session_id=f,L.handle_id=S,n.send(JSON.stringify(L));return}p.httpAPICall(l+"/"+f+"/"+S,{verb:"POST",withCredentials:m,body:L,success:function(H){if(p.vdebug("Candidate sent!"),p.vdebug(H),H.rtcgw!=="ack"){p.error("Ooops: "+H.error.code+" "+H.error.reason);return}},error:function(H,z){p.error(H+":",z)}})}function Ce(S,D,M,L){var P=x[S];if(P==null||P.webrtcStuff===null||P.webrtcStuff===void 0){p.warn("Invalid handle");return}var H=P.webrtcStuff,z=function(q){p.log("Received message on data channel:",q);var re=q.target.label;P.ondata(q.data,re)},G=function(q){p.log("Received state change on data channel:",q);var re=q.target.label,Ve=H.dataChannel[re]?H.dataChannel[re].readyState:"null";if(p.log("State change on <"+re+"> data channel: "+Ve),Ve==="open"){if(H.dataChannel[re].pending&&H.dataChannel[re].pending.length>0){p.log("Sending pending messages on <"+re+">:",H.dataChannel[re].pending.length);for(var it in H.dataChannel[re].pending){var ge=H.dataChannel[re].pending[it];p.log("Sending string on data channel <"+re+">: "+ge),H.dataChannel[re].send(ge)}H.dataChannel[re].pending=[]}P.ondataopen(re)}},Z=function(q){p.error("Got error on data channel:",q)};M?H.dataChannel[D]=M:H.dataChannel[D]=H.pc.createDataChannel(D,{ordered:!1}),H.dataChannel[D].onmessage=z,H.dataChannel[D].onopen=G,H.dataChannel[D].onclose=G,H.dataChannel[D].onerror=Z,H.dataChannel[D].pending=[],L&&H.dataChannel[D].pending.push(L)}function me(S,D){D=D||{},D.success=typeof D.success=="function"?D.success:p.noop,D.error=typeof D.error=="function"?D.error:p.noop;var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0){p.warn("Invalid handle"),D.error("Invalid handle");return}var L=M.webrtcStuff,P=D.text;if(P==null){p.warn("Invalid text"),D.error("Invalid text");return}var H=D.label?D.label:p.dataChanDefaultLabel;if(!L.dataChannel[H]){Ce(S,H,!1,P),D.success();return}if(L.dataChannel[H].readyState!=="open"){L.dataChannel[H].pending.push(P),D.success();return}p.log("Sending string on data channel <"+H+">: "+P),L.dataChannel[H].send(P),D.success()}function xe(S,D){D=D||{},D.success=typeof D.success=="function"?D.success:p.noop,D.error=typeof D.error=="function"?D.error:p.noop;var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0){p.warn("Invalid handle"),D.error("Invalid handle");return}var L=M.webrtcStuff;if(L.dtmfSender===null||L.dtmfSender===void 0){if(L.pc!==void 0&&L.pc!==null){var P=L.pc.getSenders(),H=P.find(function(q){return q.track&&q.track.kind==="audio"});if(!H){p.warn("Invalid DTMF configuration (no audio track)"),D.error("Invalid DTMF configuration (no audio track)");return}L.dtmfSender=H.dtmf,L.dtmfSender&&(p.log("Created DTMF Sender"),L.dtmfSender.ontonechange=function(q){p.debug("Sent DTMF tone: "+q.tone)})}if(L.dtmfSender===null||L.dtmfSender===void 0){p.warn("Invalid DTMF configuration"),D.error("Invalid DTMF configuration");return}}var z=D.dtmf;if(z==null){p.warn("Invalid DTMF parameters"),D.error("Invalid DTMF parameters");return}var G=z.tones;if(G==null){p.warn("Invalid DTMF string"),D.error("Invalid DTMF string");return}var Z=z.duration;Z==null&&(Z=500);var ie=z.gap;ie==null&&(ie=50),p.debug("Sending DTMF string "+G+" (duration "+Z+"ms, gap "+ie+"ms)"),L.dtmfSender.insertDTMF(G,Z,ie),D.success()}function He(S,D){D=D||{},D.success=typeof D.success=="function"?D.success:p.noop,D.error=typeof D.error=="function"?D.error:p.noop;var M=!0;D.asyncRequest!==void 0&&D.asyncRequest!==null&&(M=D.asyncRequest===!0);var L=!0;D.noRequest!==void 0&&D.noRequest!==null&&(L=D.noRequest===!0),p.log("Destroying handle "+S+" (async="+M+")"),vt(S);var P=x[S];if(P==null||P.detached){delete x[S],D.success();return}if(L){delete x[S],D.success();return}if(!d){p.warn("Is the server down? (connected=false)"),D.error("Is the server down? (connected=false)");return}var H={rtcgw:"detach",transaction:p.randomString(12)};if(P.token!==null&&P.token!==void 0&&(H.token=P.token),E!=null&&(H.apisecret=E),u){H.session_id=f,H.handle_id=S,n.send(JSON.stringify(H)),delete x[S],D.success();return}p.httpAPICall(l+"/"+f+"/"+S,{verb:"POST",async:M,withCredentials:m,body:H,success:function(G){p.log("Destroyed handle:"),p.debug(G),G.rtcgw!=="success"&&p.error("Ooops: "+G.error.code+" "+G.error.reason),delete x[S],D.success()},error:function(G,Z){p.error(G+":",Z),delete x[S],D.success()}})}function se(S,D,M,L,P){var H=x[S];if(H==null||H.webrtcStuff===null||H.webrtcStuff===void 0){p.warn("Invalid handle"),L.error("Invalid handle");return}var z=H.webrtcStuff;p.debug("streamsDone:",P),P&&(p.debug(" -- Audio tracks:",P.getAudioTracks()),p.debug(" -- Video tracks:",P.getVideoTracks()));var G=!1;if(!z.myStream||!M.update||z.streamExternal)z.myStream=P,G=!0;else{if((!M.update&&ze(M)||M.update&&(M.addAudio||M.replaceAudio))&&P.getAudioTracks()&&P.getAudioTracks().length)if(z.myStream.addTrack(P.getAudioTracks()[0]),p.unifiedPlan){p.log((M.replaceAudio?"Replacing":"Adding")+" audio track:",P.getAudioTracks()[0]);var Z=null,ie=z.pc.getTransceivers();if(ie&&ie.length>0)for(var q in ie){var re=ie[q];if(re.sender&&re.sender.track&&re.sender.track.kind==="audio"||re.receiver&&re.receiver.track&&re.receiver.track.kind==="audio"){Z=re;break}}Z&&Z.sender?Z.sender.replaceTrack(P.getAudioTracks()[0]):z.pc.addTrack(P.getAudioTracks()[0],P)}else p.log((M.replaceAudio?"Replacing":"Adding")+" audio track:",P.getAudioTracks()[0]),z.pc.addTrack(P.getAudioTracks()[0],P);if((!M.update&&Ae(M)||M.update&&(M.addVideo||M.replaceVideo))&&P.getVideoTracks()&&P.getVideoTracks().length)if(z.myStream.addTrack(P.getVideoTracks()[0]),p.unifiedPlan){p.log((M.replaceVideo?"Replacing":"Adding")+" video track:",P.getVideoTracks()[0]);var Ve=null,ie=z.pc.getTransceivers();if(ie&&ie.length>0)for(var q in ie){var re=ie[q];if(re.sender&&re.sender.track&&re.sender.track.kind==="video"||re.receiver&&re.receiver.track&&re.receiver.track.kind==="video"){Ve=re;break}}Ve&&Ve.sender?Ve.sender.replaceTrack(P.getVideoTracks()[0]):z.pc.addTrack(P.getVideoTracks()[0],P)}else p.log((M.replaceVideo?"Replacing":"Adding")+" video track:",P.getVideoTracks()[0]),z.pc.addTrack(P.getVideoTracks()[0],P)}if(!z.pc){var it={iceServers:C,iceTransportPolicy:_,bundlePolicy:y};p.webRTCAdapter.browserDetails.browser==="chrome"&&(it.sdpSemantics=p.webRTCAdapter.browserDetails.version<72?"plan-b":"unified-plan");var ge={optional:[{DtlsSrtpKeyAgreement:!0}]};if(v===!0&&ge.optional.push({googIPv6:!0}),L.rtcConstraints&&Se(L.rtcConstraints)==="object"){p.debug("Adding custom PeerConnection constraints:",L.rtcConstraints);for(var q in L.rtcConstraints)ge.optional.push(L.rtcConstraints[q])}p.webRTCAdapter.browserDetails.browser==="edge"&&(it.bundlePolicy="max-bundle"),p.log("Creating PeerConnection"),p.debug(ge),z.pc=new RTCPeerConnection(it,ge),p.debug(z.pc),z.pc.getStats&&(z.volume={},z.bitrate.value="0 kbits/sec"),p.log("Preparing local SDP and gathering candidates (trickle="+z.trickle+")"),z.pc.oniceconnectionstatechange=function(Ie){z.pc&&H.iceState(z.pc.iceConnectionState)},z.pc.onicecandidate=function(Ie){if(Ie.candidate==null||p.webRTCAdapter.browserDetails.browser==="edge"&&Ie.candidate.candidate.indexOf("endOfCandidates")>0)p.log("End of candidates."),z.iceDone=!0,z.trickle===!0?fe(S,{completed:!0}):$e(S,L);else{var Ge={candidate:Ie.candidate.candidate,sdpMid:Ie.candidate.sdpMid,sdpMLineIndex:Ie.candidate.sdpMLineIndex};z.trickle===!0&&fe(S,Ge)}},z.pc.ontrack=function(Ie){p.log("Handling Remote Track"),p.debug(Ie),!!Ie.streams&&(z.remoteStream=Ie.streams[0],H.onremotestream(z.remoteStream),!Ie.track.onended&&(p.log("Adding onended callback to track:",Ie.track),Ie.track.onended=function(Ge){p.log("Remote track muted/removed:",Ge),z.remoteStream&&(z.remoteStream.removeTrack(Ge.target),H.onremotestream(z.remoteStream))},Ie.track.onmute=Ie.track.onended,Ie.track.onunmute=function(Ge){p.log("Remote track flowing again:",Ge);try{z.remoteStream.addTrack(Ge.target),H.onremotestream(z.remoteStream)}catch(Vt){p.error(Vt)}}))}}if(G&&P!==null&&P!==void 0){p.log("Adding local stream");var at=L.simulcast2===!0;P.getTracks().forEach(function(Ie){if(p.log("Adding local track:",Ie),!at)z.pc.addTrack(Ie,P);else if(Ie.kind==="audio")z.pc.addTrack(Ie,P);else{p.log("Enabling rid-based simulcasting:",Ie);var Ge=T(L.simulcastMaxBitrates);z.pc.addTransceiver(Ie,{direction:"sendrecv",streams:[P],sendEncodings:[{rid:"h",active:!0,maxBitrate:Ge.high},{rid:"m",active:!0,maxBitrate:Ge.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:Ge.low,scaleResolutionDownBy:4}]})}})}Pe(M)&&!z.dataChannel[p.dataChanDefaultLabel]&&(p.log("Creating data channel"),Ce(S,p.dataChanDefaultLabel,!1),z.pc.ondatachannel=function(Ie){p.log("Data channel created by Janus:",Ie),Ce(S,Ie.channel.label,Ie.channel)}),z.myStream&&H.onlocalstream(z.myStream),D==null?Qe(S,M,L):z.pc.setRemoteDescription(D).then(function(){if(p.log("Remote description accepted!"),z.remoteSdp=D.sdp,z.candidates&&z.candidates.length>0){for(var Ie=0;Ie<z.candidates.length;Ie++){var Ge=z.candidates[Ie];p.debug("Adding remote candidate:",Ge),!Ge||Ge.completed===!0?z.pc.addIceCandidate(p.endOfCandidates):z.pc.addIceCandidate(Ge)}z.candidates=[]}Ne(S,M,L)},L.error)}function mt(S,D,M){M=M||{},M.success=typeof M.success=="function"?M.success:p.noop,M.error=typeof M.error=="function"?M.error:Wt;var L=M.jsep;if(D&&L){p.error("Provided a JSEP to a createOffer"),M.error("Provided a JSEP to a createOffer");return}else if(!D&&(!L||!L.type||!L.sdp)){p.error("A valid JSEP is required for createAnswer"),M.error("A valid JSEP is required for createAnswer");return}M.media=M.media||{audio:!0,video:!0};var P=M.media,H=x[S];if(H==null||H.webrtcStuff===null||H.webrtcStuff===void 0){p.warn("Invalid handle"),M.error("Invalid handle");return}var z=H.webrtcStuff;if(z.trickle=We(M.trickle),z.pc===void 0||z.pc===null)P.update=!1,P.keepAudio=!1,P.keepVideo=!1;else if(z.pc!==void 0&&z.pc!==null){if(p.log("Updating existing media session"),P.update=!0,M.stream!==null&&M.stream!==void 0)M.stream!==z.myStream&&p.log("Renegotiation involves a new external stream");else{if(P.addAudio){if(P.keepAudio=!1,P.replaceAudio=!1,P.removeAudio=!1,P.audioSend=!0,z.myStream&&z.myStream.getAudioTracks()&&z.myStream.getAudioTracks().length){p.error("Can't add audio stream, there already is one"),M.error("Can't add audio stream, there already is one");return}}else P.removeAudio?(P.keepAudio=!1,P.replaceAudio=!1,P.addAudio=!1,P.audioSend=!1):P.replaceAudio&&(P.keepAudio=!1,P.addAudio=!1,P.removeAudio=!1,P.audioSend=!0);if(z.myStream===null||z.myStream===void 0?(P.replaceAudio&&(P.keepAudio=!1,P.replaceAudio=!1,P.addAudio=!0,P.audioSend=!0),ze(P)&&(P.keepAudio=!1,P.addAudio=!0)):z.myStream.getAudioTracks()===null||z.myStream.getAudioTracks()===void 0||z.myStream.getAudioTracks().length===0?(P.replaceAudio&&(P.keepAudio=!1,P.replaceAudio=!1,P.addAudio=!0,P.audioSend=!0),ze(P)&&(P.keepVideo=!1,P.addAudio=!0)):ze(P)&&!P.removeAudio&&!P.replaceAudio&&(P.keepAudio=!0),P.addVideo){if(P.keepVideo=!1,P.replaceVideo=!1,P.removeVideo=!1,P.videoSend=!0,z.myStream&&z.myStream.getVideoTracks()&&z.myStream.getVideoTracks().length){p.error("Can't add video stream, there already is one"),M.error("Can't add video stream, there already is one");return}}else P.removeVideo?(P.keepVideo=!1,P.replaceVideo=!1,P.addVideo=!1,P.videoSend=!1):P.replaceVideo&&(P.keepVideo=!1,P.addVideo=!1,P.removeVideo=!1,P.videoSend=!0);z.myStream===null||z.myStream===void 0||z.myStream.getVideoTracks()===null||z.myStream.getVideoTracks()===void 0||z.myStream.getVideoTracks().length===0?(P.replaceVideo&&(P.keepVideo=!1,P.replaceVideo=!1,P.addVideo=!0,P.videoSend=!0),Ae(P)&&(P.keepVideo=!1,P.addVideo=!0)):Ae(P)&&!P.removeVideo&&!P.replaceVideo&&(P.keepVideo=!0),P.addData&&(P.data=!0)}if(ze(P)&&P.keepAudio&&Ae(P)&&P.keepVideo){H.consentDialog(!1),se(S,L,P,M,z.myStream);return}}if(P.update&&!z.streamExternal){if(P.removeAudio||P.replaceAudio){if(z.myStream&&z.myStream.getAudioTracks()&&z.myStream.getAudioTracks().length){var G=z.myStream.getAudioTracks()[0];p.log("Removing audio track:",G),z.myStream.removeTrack(G);try{G.stop()}catch{}}if(z.pc.getSenders()&&z.pc.getSenders().length){var Z=!0;if(P.replaceAudio&&p.unifiedPlan&&(Z=!1),Z)for(var ie in z.pc.getSenders()){var G=z.pc.getSenders()[ie];G&&G.track&&G.track.kind==="audio"&&(p.log("Removing audio sender:",G),z.pc.removeTrack(G))}}}if(P.removeVideo||P.replaceVideo){if(z.myStream&&z.myStream.getVideoTracks()&&z.myStream.getVideoTracks().length){var G=z.myStream.getVideoTracks()[0];p.log("Removing video track:",G),z.myStream.removeTrack(G);try{G.stop()}catch{}}if(z.pc.getSenders()&&z.pc.getSenders().length){var q=!0;if(P.replaceVideo&&p.unifiedPlan&&(q=!1),q)for(var ie in z.pc.getSenders()){var G=z.pc.getSenders()[ie];G&&G.track&&G.track.kind==="video"&&(p.log("Removing video sender:",G),z.pc.removeTrack(G))}}}}if(M.stream!==null&&M.stream!==void 0){var re=M.stream;if(p.log("MediaStream provided by the application"),p.debug(re),P.update&&z.myStream&&z.myStream!==M.stream&&!z.streamExternal){try{var Ve=z.myStream.getTracks();for(var it in Ve){var ge=Ve[it];p.log(ge),ge!=null&&ge.stop()}}catch{}z.myStream=null}z.streamExternal=!0,H.consentDialog(!1),se(S,L,P,M,re);return}if(ze(P)||Ae(P)){if(!p.isGetUserMediaAvailable()){M.error("getUserMedia not available");return}var at={mandatory:{},optional:[]};H.consentDialog(!0);var Ie=ze(P);Ie===!0&&P!=null&&P!=null&&Se(P.audio)==="object"&&(Ie=P.audio);var Ge=Ae(P);if(Ge===!0&&P!=null&&P!=null){var Vt=M.simulcast===!0,Bt=M.simulcast2===!0;if((Vt||Bt)&&!L&&(P.video===void 0||P.video===!1)&&(P.video="hires"),P.video&&P.video!="screen"&&P.video!="window")if(Se(P.video)==="object")Ge=P.video;else{var De=0,et=0;P.video==="lowres"?(et=240,De=320):P.video==="lowres-16:9"?(et=180,De=320):P.video==="hires"||P.video==="hires-16:9"||P.video==="hdres"?(et=720,De=1280):P.video==="fhdres"?(et=1080,De=1920):P.video==="4kres"?(et=2160,De=3840):P.video==="stdres"?(et=480,De=640):P.video==="stdres-16:9"?(et=360,De=640):(p.log("Default video setting is stdres 4:3"),et=480,De=640),p.log("Adding media constraint:",P.video),Ge={height:{ideal:et},width:{ideal:De}},p.log("Adding video constraint:",Ge)}else if(P.video==="screen"||P.video==="window"){var wn=function(ot,Lt){H.consentDialog(!1),ot?M.error(ot):se(S,L,P,M,Lt)},pi=function(ot,Lt,tn){p.log("Adding media constraint (screen capture)"),p.debug(ot),navigator.mediaDevices.getUserMedia(ot).then(function(cn){tn?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(qn){cn.addTrack(qn.getAudioTracks()[0]),Lt(null,cn)}):Lt(null,cn)}).catch(function(cn){H.consentDialog(!1),Lt(cn)})};if(P.screenshareFrameRate||(P.screenshareFrameRate=3),navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia){navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(lt){H.consentDialog(!1),ze(P)&&!P.keepAudio?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(ot){lt.addTrack(ot.getAudioTracks()[0]),se(S,L,P,M,lt)}):se(S,L,P,M,lt)},function(lt){H.consentDialog(!1),M.error(lt)});return}if(p.webRTCAdapter.browserDetails.browser==="chrome"){var mi=p.webRTCAdapter.browserDetails.version,Ai=33;window.navigator.userAgent.match("Linux")&&(Ai=35),mi>=26&&mi<=Ai?(at={video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:P.screenshareFrameRate,maxFrameRate:P.screenshareFrameRate,chromeMediaSource:"screen"}},audio:ze(P)&&!P.keepAudio},pi(at,wn)):p.extension.getScreen(function(lt,ot){if(lt)return H.consentDialog(!1),M.error(lt);at={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:P.screenshareFrameRate,maxFrameRate:P.screenshareFrameRate},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}},at.video.mandatory.chromeMediaSourceId=ot,pi(at,wn,ze(P)&&!P.keepAudio)})}else if(p.webRTCAdapter.browserDetails.browser==="firefox")if(p.webRTCAdapter.browserDetails.version>=33)at={video:{mozMediaSource:P.video,mediaSource:P.video},audio:ze(P)&&!P.keepAudio},pi(at,function(lt,ot){if(wn(lt,ot),!lt)var Lt=ot.currentTime,tn=window.setInterval(function(){ot||window.clearInterval(tn),ot.currentTime==Lt&&(window.clearInterval(tn),ot.onended&&ot.onended()),Lt=ot.currentTime},500)});else{var Di=new Error("NavigatorUserMediaError");Di.name="Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)",H.consentDialog(!1),M.error(Di);return}return}}(P==null||P.video!=="screen")&&navigator.mediaDevices.enumerateDevices().then(function(lt){var ot=lt.some(function(nn){return nn.kind==="audioinput"}),Lt=le(P)||lt.some(function(nn){return nn.kind==="videoinput"}),tn=ze(P),cn=Ae(P),qn=ut(P),Mi=qe(P);if(tn||cn||qn||Mi){var Fi=tn?ot:!1,Bi=cn?Lt:!1;if(!Fi&&!Bi)return H.consentDialog(!1),M.error("No capture device found"),!1;if(!Fi&&qn)return H.consentDialog(!1),M.error("Audio capture is required, but no capture device found"),!1;if(!Bi&&Mi)return H.consentDialog(!1),M.error("Video capture is required, but no capture device found"),!1}var Yn={audio:ot&&!P.keepAudio?Ie:!1,video:Lt&&!P.keepVideo?Ge:!1};p.debug("getUserMedia constraints",Yn),!Yn.audio&&!Yn.video?(H.consentDialog(!1),se(S,L,P,M,re)):navigator.mediaDevices.getUserMedia(Yn).then(function(nn){H.consentDialog(!1),se(S,L,P,M,nn)}).catch(function(nn){H.consentDialog(!1),M.error({code:nn.code,name:nn.name,message:nn.message})})}).catch(function(lt){H.consentDialog(!1),M.error("enumerateDevices error",lt)})}else se(S,L,P,M)}function nt(S,D){D=D||{},D.success=typeof D.success=="function"?D.success:p.noop,D.error=typeof D.error=="function"?D.error:Wt;var M=D.jsep,L=x[S];if(L==null||L.webrtcStuff===null||L.webrtcStuff===void 0){p.warn("Invalid handle"),D.error("Invalid handle");return}var P=L.webrtcStuff;if(M!=null){if(P.pc===null){p.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and not handleRemoteJsep"),D.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");return}P.pc.setRemoteDescription(M).then(function(){if(p.log("Remote description accepted!"),P.remoteSdp=M.sdp,P.candidates&&P.candidates.length>0){for(var H=0;H<P.candidates.length;H++){var z=P.candidates[H];p.debug("Adding remote candidate:",z),!z||z.completed===!0?P.pc.addIceCandidate(p.endOfCandidates):P.pc.addIceCandidate(z)}P.candidates=[]}D.success()},D.error)}else D.error("Invalid JSEP")}function Qe(S,D,M){M=M||{},M.success=typeof M.success=="function"?M.success:p.noop,M.error=typeof M.error=="function"?M.error:p.noop,M.customizeSdp=typeof M.customizeSdp=="function"?M.customizeSdp:p.noop;var L=x[S];if(L==null||L.webrtcStuff===null||L.webrtcStuff===void 0){p.warn("Invalid handle"),M.error("Invalid handle");return}var P=L.webrtcStuff,H=M.simulcast===!0;H?p.log("Creating offer (iceDone="+P.iceDone+", simulcast="+H+")"):p.log("Creating offer (iceDone="+P.iceDone+")");var z={};if(p.unifiedPlan){var G=null,Z=null,ie=P.pc.getTransceivers();if(ie&&ie.length>0)for(var q in ie){var re=ie[q];if(re.sender&&re.sender.track&&re.sender.track.kind==="audio"||re.receiver&&re.receiver.track&&re.receiver.track.kind==="audio"){G||(G=re);continue}if(re.sender&&re.sender.track&&re.sender.track.kind==="video"||re.receiver&&re.receiver.track&&re.receiver.track.kind==="video"){Z||(Z=re);continue}}var Ve=ze(D),it=bt(D);!Ve&&!it?D.removeAudio&&G&&(G.setDirection?G.setDirection("inactive"):G.direction="inactive",p.log("Setting audio transceiver to inactive:",G)):Ve&&it?G&&(G.setDirection?G.setDirection("sendrecv"):G.direction="sendrecv",p.log("Setting audio transceiver to sendrecv:",G)):Ve&&!it?G&&(G.setDirection?G.setDirection("sendonly"):G.direction="sendonly",p.log("Setting audio transceiver to sendonly:",G)):!Ve&&it&&(G?(G.setDirection?G.setDirection("recvonly"):G.direction="recvonly",p.log("Setting audio transceiver to recvonly:",G)):(G=P.pc.addTransceiver("audio",{direction:"recvonly"}),p.log("Adding recvonly audio transceiver:",G)));var ge=Ae(D),at=Te(D);!ge&&!at?D.removeVideo&&Z&&(Z.setDirection?Z.setDirection("inactive"):Z.direction="inactive",p.log("Setting video transceiver to inactive:",Z)):ge&&at?Z&&(Z.setDirection?Z.setDirection("sendrecv"):Z.direction="sendrecv",p.log("Setting video transceiver to sendrecv:",Z)):ge&&!at?Z&&(Z.setDirection?Z.setDirection("sendonly"):Z.direction="sendonly",p.log("Setting video transceiver to sendonly:",Z)):!ge&&at&&(Z?(Z.setDirection?Z.setDirection("recvonly"):Z.direction="recvonly",p.log("Setting video transceiver to recvonly:",Z)):(Z=P.pc.addTransceiver("video",{direction:"recvonly"}),p.log("Adding recvonly video transceiver:",Z)))}else z.offerToReceiveAudio=bt(D),z.offerToReceiveVideo=Te(D);var Ie=M.iceRestart===!0;Ie&&(z.iceRestart=!0),p.debug(z);var Ge=Ae(D);if(Ge&&H&&p.webRTCAdapter.browserDetails.browser==="firefox"){p.log("Enabling Simulcasting for Firefox (RID)");var Vt=P.pc.getSenders().find(function(et){return et.track.kind=="video"});if(Vt){var Bt=Vt.getParameters();Bt||(Bt={});var De=T(M.simulcastMaxBitrates);Bt.encodings=[{rid:"h",active:!0,maxBitrate:De.high},{rid:"m",active:!0,maxBitrate:De.medium,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:De.low,scaleResolutionDownBy:4}],Vt.setParameters(Bt)}}P.pc.createOffer(z).then(function(et){p.debug(et);var wn={type:et.type,sdp:et.sdp};if(M.customizeSdp(wn),et.sdp=wn.sdp,p.log("Setting local description"),Ge&&H&&(p.webRTCAdapter.browserDetails.browser==="chrome"||p.webRTCAdapter.browserDetails.browser==="safari"?(p.log("Enabling Simulcasting for Chrome (SDP munging)"),et.sdp=Ft(et.sdp)):p.webRTCAdapter.browserDetails.browser!=="firefox"&&p.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),P.mySdp=et.sdp,P.pc.setLocalDescription(et).catch(M.error),P.mediaConstraints=z,!P.iceDone&&!P.trickle){p.log("Waiting for all candidates...");return}p.log("Offer ready"),p.debug(M),M.success(et)},M.error)}function Ne(S,D,M){M=M||{},M.success=typeof M.success=="function"?M.success:p.noop,M.error=typeof M.error=="function"?M.error:p.noop,M.customizeSdp=typeof M.customizeSdp=="function"?M.customizeSdp:p.noop;var L=x[S];if(L==null||L.webrtcStuff===null||L.webrtcStuff===void 0){p.warn("Invalid handle"),M.error("Invalid handle");return}var P=L.webrtcStuff,H=M.simulcast===!0;H?p.log("Creating answer (iceDone="+P.iceDone+", simulcast="+H+")"):p.log("Creating answer (iceDone="+P.iceDone+")");var z=null;if(p.unifiedPlan){z={};var G=null,Z=null,ie=P.pc.getTransceivers();if(ie&&ie.length>0)for(var q in ie){var re=ie[q];if(re.sender&&re.sender.track&&re.sender.track.kind==="audio"||re.receiver&&re.receiver.track&&re.receiver.track.kind==="audio"){G||(G=re);continue}if(re.sender&&re.sender.track&&re.sender.track.kind==="video"||re.receiver&&re.receiver.track&&re.receiver.track.kind==="video"){Z||(Z=re);continue}}var Ve=ze(D),it=bt(D);if(!Ve&&!it){if(D.removeAudio&&G)try{G.setDirection?G.setDirection("inactive"):G.direction="inactive",p.log("Setting audio transceiver to inactive:",G)}catch(De){p.error(De)}}else if(Ve&&it){if(G)try{G.setDirection?G.setDirection("sendrecv"):G.direction="sendrecv",p.log("Setting audio transceiver to sendrecv:",G)}catch(De){p.error(De)}}else if(Ve&&!it)try{G&&(G.setDirection?G.setDirection("sendonly"):G.direction="sendonly",p.log("Setting audio transceiver to sendonly:",G))}catch(De){p.error(De)}else if(!Ve&&it)if(G)try{G.setDirection?G.setDirection("recvonly"):G.direction="recvonly",p.log("Setting audio transceiver to recvonly:",G)}catch(De){p.error(De)}else G=P.pc.addTransceiver("audio",{direction:"recvonly"}),p.log("Adding recvonly audio transceiver:",G);var ge=Ae(D),at=Te(D);if(!ge&&!at){if(D.removeVideo&&Z)try{Z.setDirection?Z.setDirection("inactive"):Z.direction="inactive",p.log("Setting video transceiver to inactive:",Z)}catch(De){p.error(De)}}else if(ge&&at){if(Z)try{Z.setDirection?Z.setDirection("sendrecv"):Z.direction="sendrecv",p.log("Setting video transceiver to sendrecv:",Z)}catch(De){p.error(De)}}else if(ge&&!at){if(Z)try{Z.setDirection?Z.setDirection("sendonly"):Z.direction="sendonly",p.log("Setting video transceiver to sendonly:",Z)}catch(De){p.error(De)}}else if(!ge&&at)if(Z)try{Z.setDirection?Z.setDirection("recvonly"):Z.direction="recvonly",p.log("Setting video transceiver to recvonly:",Z)}catch(De){p.error(De)}else Z=P.pc.addTransceiver("video",{direction:"recvonly"}),p.log("Adding recvonly video transceiver:",Z)}else p.webRTCAdapter.browserDetails.browser=="firefox"||p.webRTCAdapter.browserDetails.browser=="edge"?z={offerToReceiveAudio:bt(D),offerToReceiveVideo:Te(D)}:z={mandatory:{OfferToReceiveAudio:bt(D),OfferToReceiveVideo:Te(D)}};p.debug(z);var Ie=Ae(D);if(Ie&&H&&p.webRTCAdapter.browserDetails.browser==="firefox"){p.log("Enabling Simulcasting for Firefox (RID)");var Ge=P.pc.getSenders()[1];p.log(Ge);var Vt=Ge.getParameters();p.log(Vt);var Bt=T(M.simulcastMaxBitrates);Ge.setParameters({encodings:[{rid:"high",active:!0,priority:"high",maxBitrate:Bt.high},{rid:"medium",active:!0,priority:"medium",maxBitrate:Bt.medium},{rid:"low",active:!0,priority:"low",maxBitrate:Bt.low}]})}P.pc.createAnswer(z).then(function(De){p.debug(De);var et={type:De.type,sdp:De.sdp};if(M.customizeSdp(et),De.sdp=et.sdp,p.log("Setting local description"),Ie&&H&&(p.webRTCAdapter.browserDetails.browser==="chrome"?p.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it"):p.webRTCAdapter.browserDetails.browser!=="firefox"&&p.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),P.mySdp=De.sdp,P.pc.setLocalDescription(De).catch(M.error),P.mediaConstraints=z,!P.iceDone&&!P.trickle){p.log("Waiting for all candidates...");return}M.success(De)},M.error)}function $e(S,D){D=D||{},D.success=typeof D.success=="function"?D.success:p.noop,D.error=typeof D.error=="function"?D.error:p.noop;var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0){p.warn("Invalid handle, not sending anything");return}var L=M.webrtcStuff;if(p.log("Sending offer/answer SDP..."),L.mySdp===null||L.mySdp===void 0){p.warn("Local SDP instance is invalid, not sending anything...");return}L.mySdp={type:L.pc.localDescription.type,sdp:L.pc.localDescription.sdp},L.trickle===!1&&(L.mySdp.trickle=!1),p.debug(D),L.sdpSent=!0,D.success(L.mySdp)}function ke(S,D){var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0)return p.warn("Invalid handle"),0;var L=D?"remote":"local",P=M.webrtcStuff;return P.volume[L]||(P.volume[L]={value:0}),P.pc.getStats&&p.webRTCAdapter.browserDetails.browser==="chrome"?D&&(P.remoteStream===null||P.remoteStream===void 0)?(p.warn("Remote stream unavailable"),0):!D&&(P.myStream===null||P.myStream===void 0)?(p.warn("Local stream unavailable"),0):P.volume[L].timer===null||P.volume[L].timer===void 0?(p.log("Starting "+L+" volume monitor"),P.volume[L].timer=setInterval(function(){P.pc.getStats(function(H){for(var z=H.result(),G=0;G<z.length;G++){var Z=z[G];Z.type=="ssrc"&&(D&&Z.stat("audioOutputLevel")?P.volume[L].value=parseInt(Z.stat("audioOutputLevel")):!D&&Z.stat("audioInputLevel")&&(P.volume[L].value=parseInt(Z.stat("audioInputLevel"))))}})},200),0):P.volume[L].value:(p.warn("Getting the "+L+" volume unsupported by browser"),0)}function Be(S,D){var M=x[S];if(M==null||M.webrtcStuff===null||M.webrtcStuff===void 0)return p.warn("Invalid handle"),!0;var L=M.webrtcStuff;return L.pc===null||L.pc===void 0?(p.warn("Invalid PeerConnection"),!0):L.myStream===void 0||L.myStream===null?(p.warn("Invalid local MediaStream"),!0):D?L.myStream.getVideoTracks()===null||L.myStream.getVideoTracks()===void 0||L.myStream.getVideoTracks().length===0?(p.warn("No video track"),!0):!L.myStream.getVideoTracks()[0].enabled:L.myStream.getAudioTracks()===null||L.myStream.getAudioTracks()===void 0||L.myStream.getAudioTracks().length===0?(p.warn("No audio track"),!0):!L.myStream.getAudioTracks()[0].enabled}function Le(S,D,M){var L=x[S];if(L==null||L.webrtcStuff===null||L.webrtcStuff===void 0)return p.warn("Invalid handle"),!1;var P=L.webrtcStuff;return P.pc===null||P.pc===void 0?(p.warn("Invalid PeerConnection"),!1):P.myStream===void 0||P.myStream===null?(p.warn("Invalid local MediaStream"),!1):D?P.myStream.getVideoTracks()===null||P.myStream.getVideoTracks()===void 0||P.myStream.getVideoTracks().length===0?(p.warn("No video track"),!1):(P.myStream.getVideoTracks()[0].enabled=!M,!0):P.myStream.getAudioTracks()===null||P.myStream.getAudioTracks()===void 0||P.myStream.getAudioTracks().length===0?(p.warn("No audio track"),!1):(P.myStream.getAudioTracks()[0].enabled=!M,!0)}function ln(S){var D=x[S];if(D==null||D.webrtcStuff===null||D.webrtcStuff===void 0)return p.warn("Invalid handle"),"Invalid handle";var M=D.webrtcStuff;return M.pc===null||M.pc===void 0?"Invalid PeerConnection":M.pc.getStats?M.bitrate.timer===null||M.bitrate.timer===void 0?(p.log("Starting bitrate timer (via getStats)"),M.bitrate.timer=setInterval(function(){M.pc.getStats().then(function(L){L.forEach(function(P){if(!!P){var H=!1;if(((P.mediaType==="video"||P.id.toLowerCase().indexOf("video")>-1)&&P.type==="inbound-rtp"&&P.id.indexOf("rtcp")<0||P.type=="ssrc"&&P.bytesReceived&&(P.googCodecName==="VP8"||P.googCodecName===""))&&(H=!0),H)if(M.bitrate.bsnow=P.bytesReceived,M.bitrate.tsnow=P.timestamp,M.bitrate.bsbefore===null||M.bitrate.tsbefore===null)M.bitrate.bsbefore=M.bitrate.bsnow,M.bitrate.tsbefore=M.bitrate.tsnow;else{var z=M.bitrate.tsnow-M.bitrate.tsbefore;p.webRTCAdapter.browserDetails.browser=="safari"&&(z=z/1e3);var G=Math.round((M.bitrate.bsnow-M.bitrate.bsbefore)*8/z);p.webRTCAdapter.browserDetails.browser==="safari"&&(G=parseInt(G/1e3)),M.bitrate.value=G+" kbits/sec",M.bitrate.bsbefore=M.bitrate.bsnow,M.bitrate.tsbefore=M.bitrate.tsnow}}})})},1e3),"0 kbits/sec"):M.bitrate.value:(p.warn("Getting the video bitrate unsupported by browser"),"Feature unsupported by browser")}function Wt(S){p.error("WebRTC error:",S)}function vt(S,D){p.log("Cleaning WebRTC stuff");var M=x[S];if(M!=null){var L=M.webrtcStuff;if(L!=null){if(D===!0){var P={rtcgw:"hangup",transaction:p.randomString(12)};M.token!==null&&M.token!==void 0&&(P.token=M.token),E!=null&&(P.apisecret=E),p.debug("Sending hangup request (handle="+S+"):"),p.debug(P),u?(P.session_id=f,P.handle_id=S,n.send(JSON.stringify(P))):p.httpAPICall(l+"/"+f+"/"+S,{verb:"POST",withCredentials:m,body:P})}L.remoteStream=null,L.volume&&(L.volume.local&&L.volume.local.timer&&clearInterval(L.volume.local.timer),L.volume.remote&&L.volume.remote.timer&&clearInterval(L.volume.remote.timer)),L.volume={},L.bitrate.timer&&clearInterval(L.bitrate.timer),L.bitrate.timer=null,L.bitrate.bsnow=null,L.bitrate.bsbefore=null,L.bitrate.tsnow=null,L.bitrate.tsbefore=null,L.bitrate.value=null;try{if(!L.streamExternal&&L.myStream!==null&&L.myStream!==void 0){p.log("Stopping local stream tracks");var H=L.myStream.getTracks();for(var z in H){var G=H[z];p.log(G),G!=null&&G.stop()}}}catch{}L.streamExternal=!1,L.myStream=null;try{L.pc.close()}catch{}L.pc=null,L.candidates=null,L.mySdp=null,L.remoteSdp=null,L.iceDone=!1,L.dataChannel={},L.dtmfSender=null}M.oncleanup()}}function Ft(S){for(var D=S.split(`\r
  493. `),M=!1,L=[-1],P=[-1],H=null,z=null,G=null,Z=null,ie=-1,q=0;q<D.length;q++){var re=D[q].match(/m=(\w+) */);if(re){var Ve=re[1];if(Ve==="video")if(L[0]<0)M=!0;else{ie=q;break}else if(L[0]>-1){ie=q;break}continue}if(!!M){var it=D[q].match(/a=ssrc-group:FID (\d+) (\d+)/);if(it){L[0]=it[1],P[0]=it[2],D.splice(q,1),q--;continue}if(L[0]){var ge=D[q].match("a=ssrc:"+L[0]+" cname:(.+)");if(ge&&(H=ge[1]),ge=D[q].match("a=ssrc:"+L[0]+" msid:(.+)"),ge&&(z=ge[1]),ge=D[q].match("a=ssrc:"+L[0]+" mslabel:(.+)"),ge&&(G=ge[1]),ge=D[q].match("a=ssrc:"+L[0]+" label:(.+)"),ge&&(Z=ge[1]),D[q].indexOf("a=ssrc:"+P[0])===0){D.splice(q,1),q--;continue}if(D[q].indexOf("a=ssrc:"+L[0])===0){D.splice(q,1),q--;continue}}if(D[q].length==0){D.splice(q,1),q--;continue}}}if(L[0]<0){ie=-1,M=!1;for(var q=0;q<D.length;q++){var re=D[q].match(/m=(\w+) */);if(re){var Ve=re[1];if(Ve==="video")if(L[0]<0)M=!0;else{ie=q;break}else if(L[0]>-1){ie=q;break}continue}if(!!M){if(L[0]<0){var at=D[q].match(/a=ssrc:(\d+)/);if(at){L[0]=at[1],D.splice(q,1),q--;continue}}else{var ge=D[q].match("a=ssrc:"+L[0]+" cname:(.+)");if(ge&&(H=ge[1]),ge=D[q].match("a=ssrc:"+L[0]+" msid:(.+)"),ge&&(z=ge[1]),ge=D[q].match("a=ssrc:"+L[0]+" mslabel:(.+)"),ge&&(G=ge[1]),ge=D[q].match("a=ssrc:"+L[0]+" label:(.+)"),ge&&(Z=ge[1]),D[q].indexOf("a=ssrc:"+P[0])===0){D.splice(q,1),q--;continue}if(D[q].indexOf("a=ssrc:"+L[0])===0){D.splice(q,1),q--;continue}}if(D[q].length==0){D.splice(q,1),q--;continue}}}}if(L[0]<0)return p.warn("Couldn't find the video SSRC, simulcasting NOT enabled"),S;ie<0&&(ie=D.length),L[1]=Math.floor(Math.random()*4294967295),L[2]=Math.floor(Math.random()*4294967295),P[1]=Math.floor(Math.random()*4294967295),P[2]=Math.floor(Math.random()*4294967295);for(var q=0;q<L.length;q++)H&&(D.splice(ie,0,"a=ssrc:"+L[q]+" cname:"+H),ie++),z&&(D.splice(ie,0,"a=ssrc:"+L[q]+" msid:"+z),ie++),G&&(D.splice(ie,0,"a=ssrc:"+L[q]+" mslabel:"+G),ie++),Z&&(D.splice(ie,0,"a=ssrc:"+L[q]+" label:"+Z),ie++),H&&(D.splice(ie,0,"a=ssrc:"+P[q]+" cname:"+H),ie++),z&&(D.splice(ie,0,"a=ssrc:"+P[q]+" msid:"+z),ie++),G&&(D.splice(ie,0,"a=ssrc:"+P[q]+" mslabel:"+G),ie++),Z&&(D.splice(ie,0,"a=ssrc:"+P[q]+" label:"+Z),ie++);return D.splice(ie,0,"a=ssrc-group:FID "+L[2]+" "+P[2]),D.splice(ie,0,"a=ssrc-group:FID "+L[1]+" "+P[1]),D.splice(ie,0,"a=ssrc-group:FID "+L[0]+" "+P[0]),D.splice(ie,0,"a=ssrc-group:SIM "+L[0]+" "+L[1]+" "+L[2]),S=D.join(`\r
  494. `),S.endsWith(`\r
  495. `)||(S+=`\r
  496. `),S}function ze(S){return p.debug("isAudioSendEnabled:",S),S==null?!0:S.audio===!1?!1:S.audioSend===void 0||S.audioSend===null?!0:S.audioSend===!0}function ut(S){return p.debug("isAudioSendRequired:",S),S==null||S.audio===!1||S.audioSend===!1||S.failIfNoAudio===void 0||S.failIfNoAudio===null?!1:S.failIfNoAudio===!0}function bt(S){return p.debug("isAudioRecvEnabled:",S),S==null?!0:S.audio===!1?!1:S.audioRecv===void 0||S.audioRecv===null?!0:S.audioRecv===!0}function Ae(S){return p.debug("isVideoSendEnabled:",S),S==null?!0:S.video===!1?!1:S.videoSend===void 0||S.videoSend===null?!0:S.videoSend===!0}function qe(S){return p.debug("isVideoSendRequired:",S),S==null||S.video===!1||S.videoSend===!1||S.failIfNoVideo===void 0||S.failIfNoVideo===null?!1:S.failIfNoVideo===!0}function Te(S){return p.debug("isVideoRecvEnabled:",S),S==null?!0:S.video===!1?!1:S.videoRecv===void 0||S.videoRecv===null?!0:S.videoRecv===!0}function le(S){if(p.debug("isScreenSendEnabled:",S),S==null||Se(S.video)!=="object"||Se(S.video.mandatory)!=="object")return!1;var D=S.video.mandatory;return D.chromeMediaSource?D.chromeMediaSource==="desktop"||D.chromeMediaSource==="screen":D.mozMediaSource?D.mozMediaSource==="window"||D.mozMediaSource==="screen":D.mediaSource?D.mediaSource==="window"||D.mediaSource==="screen":!1}function Pe(S){return p.debug("isDataEnabled:",S),p.webRTCAdapter.browserDetails.browser=="edge"?(p.warn("Edge doesn't support data channels yet"),!1):S==null?!1:S.data===!0}function We(S){return p.debug("isTrickleEnabled:",S),S==null?!0:S===!0}}window.Janus=p;var ki=null,hn=null,el="tts-"+Janus.randomString(12),sn=null;Janus=window.Janus,Janus.init({debug:"all",callback:function(){window.stopTalk=function(){ki.destroy()},window.startTalk=function(){if(!Janus.isWebrtcSupported()){bootbox.alert("No WebRTC support... ");return}ki=new Janus({server:window.EZUIKit.opt.rtcUrl,success:function(){ki.attach({plugin:"rtcgw.plugin.tts",opaqueId:el,success:function(i){hn=i,Janus.log("Plugin attached! ("+hn.getPlugin()+", id="+hn.getId()+")");var r=window.EZUIKit.opt.talkLink;console.log("ttsUlr",r);var a={request:"start",url:r,codec:"opus",dir:"sendrecv",audio_debug:1};window.EZUIKit.opt.talkType==="gb28181"&&(a.devProto="gb28181"),Janus.debug("Trying a createOffer too (audio/video sendrecv)"),hn.createOffer({media:{audio:!0,video:!1,data:!1},simulcast:!1,simulcast2:!1,success:function(l){Janus.debug("Got SDP!"),Janus.debug(l),hn.send({message:a,jsep:l}),typeof window.EZUIKit.handleTalkSuccess!="undefined"&&window.EZUIKit.handleTalkSuccess()},error:function(l){Janus.error("WebRTC error:",l),typeof window.EZUIKit.handleTalkError!="undefined"&&window.EZUIKit.handleTalkError(l)}})},error:function(i){console.error(" -- Error attaching plugin...",i),bootbox.alert("Error attaching plugin... "+i),window.EZUIKit.handleTalkError!=="undefined"&&window.EZUIKit.handleTalkError(i)},consentDialog:function(i){Janus.debug("Consent dialog should be "+(i?"on":"off")+" now")},iceState:function(i){Janus.log("ICE state changed to "+i)},mediaState:function(i,r){Janus.log("Janus "+(r?"started":"stopped")+" receiving our "+i)},webrtcState:function(i){Janus.log("Janus says our WebRTC PeerConnection is "+(i?"up":"down")+" now")},slowLink:function(i,r){Janus.warn("Janus reports problems "+(i?"sending":"receiving")+" packets on this PeerConnection ("+r+" lost packets)")},onmessage:function(i,r){Janus.debug(" ::: Got a message :::"),Janus.debug(i),r!=null&&(Janus.debug("Handling SDP as well..."),Janus.debug(r),hn.handleRemoteJsep({jsep:r}));var a=i.result;if(a!=null){if(a==="done"){bootbox.alert("The TTS Test is over"),sn!=null&&sn.stop(),sn=null;return}a==="msg"&&typeof window.EZUIKit.handleTalkMessage!="undefined"&&window.EZUIKit.handleTalkMessage(i);var s=a.status;s==="slow_link"&&toastr.warning("Janus apparently missed many packets we sent, maybe we should reduce the bitrate","Packet loss?",{timeOut:2e3})}},onlocalstream:function(i){Janus.debug(" ::: Got a local stream :::"),Janus.debug(i),Janus.attachMediaStream(document.getElementById("myaudio"),i),hn.webrtcStuff.pc.iceConnectionState!=="completed"&&hn.webrtcStuff.pc.iceConnectionState!=="connected"&&(sn==null?document.getElementById("audioright"):sn.spin());var r=i.getAudioTracks();r==null||r.length===0},onremotestream:function(i){Janus.debug(" ::: Got a remote stream :::"),Janus.debug(i),Janus.attachMediaStream(document.getElementById("peeraudio"),i);var r=i.getAudioTracks();r==null||r.length===0||document.getElementById("peeraudio").play()},ondataopen:function(i){Janus.log("The DataChannel is available!")},ondata:function(i){Janus.debug("We got data from the DataChannel! "+i)},oncleanup:function(){Janus.log(" ::: Got a cleanup notification :::"),sn!=null&&sn.stop(),sn=null}})},error:function(n){Janus.error(n),window.EZUIKit.handleTalkError!=="undefined"&&window.EZUIKit.handleTalkError(n)},destroyed:function(){}})}}}),window.janus=ki,window.tts=hn;var Jr=function(){function h(u){var n=this;Tt(this,h),this.jSPlugin=u;var i=document.createElement("div");i.id="audioleft";var r=document.createElement("div");r.id="audioright",r.style="display:none;";var a=document.createElement("audio");a.id="myaudio",a.muted=!0,a.setAttribute("autoplay",!0),a.setAttribute("controls",!0),i.appendChild(a),i.style="display:none;";var s=document.createElement("audio");s.id="peeraudio",s.setAttribute("autoplay",!0),s.setAttribute("controls",!0),r.appendChild(s),window.EZUIKit.handleTalkError=function(l){console.log("talk err",l),typeof n.jSPlugin.handleTalkError!="undefined"&&n.jSPlugin.handleTalkError(l)},window.EZUIKit.handleTalkSuccess=function(l){console.log("talk success",l),typeof n.jSPlugin.handleTalkSuccess!="undefined"&&n.jSPlugin.handleTalkSuccess(l)},window.EZUIKit.opt={rtcUrl:"",talkLink:"",ttsUrl:"",stream:"",deviceSerial:Ue(this.jSPlugin.url).deviceSerial,channelNo:Ue(this.jSPlugin.url).channelNo},document.body.appendChild(i),document.body.appendChild(r)}return Pt(h,[{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"startTalk",value:function(){var n=this;if(this.jSPlugin.capacity&&this.jSPlugin.capacity.support_talk&&!(this.jSPlugin.capacity&&(this.jSPlugin.capacity.support_talk==="3"||this.jSPlugin.capacity.support_talk==="1")))return typeof this.jSPlugin.params.handleError=="function"&&this.jSPlugin.params.handleError({msg:"\u8BBE\u5907\u4E0D\u652F\u6301\u5BF9\u8BB2",retcode:-1e3,id:this.jSPlugin.params.id,type:"handleError"}),console.log("\u8BBE\u5907\u4E0D\u652F\u6301\u5BF9\u8BB2"),!1;var i=new FormData;i.append("accessToken",this.jSPlugin.accessToken),i.append("deviceSerial",Ue(this.jSPlugin.url).deviceSerial),i.append("channelNo",Ue(this.jSPlugin.url).channelNo),fetch(this.jSPlugin.env.domain+"/api/lapp/live/talk/url",{method:"POST",body:i}).then(function(r){return r.json()}).then(function(r){if(r.code==200){var a=r.data;if(a){var s=a.rtcUrl;s.indexOf("ws")===-1&&(s=s.replace("https","wss").replace("rtcgw","rtcgw-ws")),window.EZUIKit.opt.rtcUrl=s,window.EZUIKit.opt.ttsUrl="tts://"+a.ttsUrl,window.EZUIKit.opt.deviceSerial=Ue(n.jSPlugin.url).deviceSerial,window.EZUIKit.opt.channelNo=Ue(n.jSPlugin.url).channelNo;var l=window.EZUIKit.opt.ttsUrl.split("?");if(l.length===2){var C="talk?dev="+window.EZUIKit.opt.deviceSerial+"&chann="+window.EZUIKit.opt.channelNo+"&encodetype=2";window.EZUIKit.opt.talkLink=window.EZUIKit.opt.ttsUrl.split("?")[0]+"/"+C,window.EZUIKit.opt.talkType="gb28181"}else{var C="talk://"+window.EZUIKit.opt.deviceSerial+":0:"+window.EZUIKit.opt.channelNo+":cas.ys7.com:6500";window.EZUIKit.opt.talkLink=window.EZUIKit.opt.ttsUrl.split("?")[0]+"/"+C}window.EZUIKit.opt.stream=a.stream,window.startTalk()}}else typeof n.jSPlugin.params.handleError=="function"&&n.jSPlugin.params.handleError({msg:r.msg,retcode:r.code,id:n.jSPlugin.params.id,type:"handleError"})}).catch(function(r){console.log("err",r)})}},{key:"stopTalk",value:function(){window.stopTalk(),document.getElementById("myaudio")&&document.getElementById("myaudio").srcObject&&document.getElementById("myaudio").srcObject.getTracks()[0].stop()}}]),h}(),tl=function(){function h(u){var n=this;Tt(this,h),this.jSPlugin=u;var i=document.createElement("style");i.innerHTML=`
  497. body{
  498. padding: 0;
  499. margin: 0;
  500. }
  501. #mobile-ez-ptz-container {
  502. display: inline-block;
  503. width: 375px;
  504. text-align: center;
  505. }
  506. .live-ptz-title{
  507. height: 25px;
  508. font-size: 18px;
  509. color: #2c2c2c;
  510. text-align: center;
  511. font-weight: 700;
  512. margin: 24px 0 12px;
  513. }
  514. .live-ptz-intro {
  515. margin-bottom: 24px;
  516. color: #aaaaaa;
  517. }
  518. .mobile-ez-ptz-wrap {
  519. background-image: linear-gradient(180deg, #f6f8ff 0%, #ededed6b 50%)
  520. }
  521. #mobile-ez-ptz-container .mobile-ez-ptz-container {
  522. position: relative;
  523. width: 260px;
  524. height: 260px;
  525. background: rgba(255, 255, 255, 0.80);
  526. border: 1px solid rgba(255, 255, 255, 0.80);
  527. border-radius: 100%;
  528. cursor: pointer;
  529. overflow: hidden;
  530. margin: auto;
  531. }
  532. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.top {
  533. width: 0;
  534. height: 0;
  535. border-left: 6px solid transparent;
  536. border-right: 6px solid transparent;
  537. border-bottom: 6px solid #aaaaaa;
  538. position: absolute;
  539. display: inline-block;
  540. left: calc(50% - 6px);
  541. top: 10px;
  542. }
  543. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.top.active {
  544. border-bottom-color: #1890FF;
  545. }
  546. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.bottom {
  547. width: 0;
  548. height: 0;
  549. border-left: 6px solid transparent;
  550. border-right: 6px solid transparent;
  551. border-top: 6px solid #aaaaaa;
  552. position: absolute;
  553. display: inline-block;
  554. left: calc(50% - 6px);
  555. bottom: 10px;
  556. }
  557. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.bottom.active {
  558. border-top-color: #1890FF;
  559. }
  560. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.right {
  561. width: 0;
  562. height: 0;
  563. border-top: 6px solid transparent;
  564. border-bottom: 6px solid transparent;
  565. border-left: 6px solid #aaaaaa;
  566. position: absolute;
  567. display: inline-block;
  568. top: calc(50% - 6px);
  569. right: 10px;
  570. }
  571. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.right.active {
  572. border-left-color: #1890FF;
  573. }
  574. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.left {
  575. width: 0;
  576. height: 0;
  577. border-top: 6px solid transparent;
  578. border-bottom: 6px solid transparent;
  579. border-right: 6px solid #aaaaaa;
  580. position: absolute;
  581. display: inline-block;
  582. top: calc(50% - 6px);
  583. left: 10px;
  584. }
  585. #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.left.active {
  586. border-right-color: #1890FF;
  587. }
  588. #mobile-ez-ptz-container .mobile-ez-ptz-container .ez-ptz-main.center {
  589. width: 52px;
  590. height: 52px;
  591. background: #FFFFFF;
  592. border: 2px solid #eee;
  593. border-radius: 100%;
  594. top: calc(50% - 26px);
  595. left: calc(50% - 26px);
  596. position: absolute;
  597. /* box-shadow: 0px -39px 40px 6px #1890ff; */
  598. }
  599. #mobile-ez-ptz-container .mobile-ez-ptz-wrap {
  600. display: inline-block;
  601. padding: 24px 24px;
  602. border-radius: 100%;
  603. overflow: hidden;
  604. }
  605. #mobile-ez-ptz-container .ez-ptz-close {
  606. position: absolute;
  607. color: #FFFFFF;
  608. top: 0;
  609. right: 0px;
  610. }`,document.getElementsByTagName("head")[0].appendChild(i);var r=document.createElement("div");r.className="mobile-ez-ptz-container",r.id="mobile-ez-ptz-container",r.style="display:inline-block;width: ".concat(this.jSPlugin.width,"px;text-align:center;");var a=document.createElement("div");a.className="live-ptz-title",a.id="live-ptz-title",a.innerHTML="\u4E91\u53F0\u63A7\u5236",document.getElementById("live-ptz-title")||r.appendChild(a);var s=document.createElement("div");s.className="live-ptz-intro",s.id="live-ptz-intro",s.innerHTML="\u8BF7\u901A\u8FC7\u64CD\u63A7\u4E91\u53F0\u6765\u8C03\u6574\u6444\u50CF\u673A\u89C6\u89D2",document.getElementById("live-ptz-intro")||r.appendChild(s);var l=document.createElement("div");l.id="mobile-ez-ptz-item",l.className="mobile-ez-ptz-wrap",l.innerHTML=`
  611. <div class="mobile-ez-ptz-container" id="mobile-ez-ptz-container">
  612. <div class="ez-ptz-main center"></div>
  613. <div class="mobile-ez-ptz-icon top default"></div>
  614. <div class="mobile-ez-ptz-icon left default"></div>
  615. <div class="mobile-ez-ptz-icon bottom default"></div>
  616. <div class="mobile-ez-ptz-icon right default"></div>
  617. </div>
  618. `,document.getElementById("mobile-ez-ptz-item")||r.appendChild(l),Ln(r,document.getElementById("".concat(this.jSPlugin.id,"-wrap"))),document.getElementById("mobile-ez-ptz-item").ontouchstart=function(C){C.preventDefault(),console.log("\u89E6\u6478\u5F00\u59CB"),n._handlePtzTouch(C,"start")},document.getElementById("mobile-ez-ptz-item").ontouchend=function(C){C.preventDefault(),console.log("\u89E6\u6478\u7ED3\u675F",C),n._handlePtzTouch(C,"stop")},document.getElementById("mobile-ez-ptz-item").onmousedown=function(C){C.preventDefault(),console.log("\u89E6\u6478\u5F00\u59CB"),n._handlePtzTouch(C,"start")},document.getElementById("mobile-ez-ptz-item").onmouseup=function(C){C.preventDefault(),console.log("\u89E6\u6478\u7ED3\u675F",C),n._handlePtzTouch(C,"stop")}}return Pt(h,[{key:"show",value:function(){document.getElementById("mobile-ez-ptz-item").style="display: inline-block"}},{key:"hide",value:function(){document.getElementById("mobile-ez-ptz-item").style="display: none"}},{key:"_handlePtzTouch",value:function(n,i){var r=document.getElementById("mobile-ez-ptz-item").getBoundingClientRect(),a=r.left+130,s=r.top+130,l=n.x||n.changedTouches[0].clientX,C=n.y||n.changedTouches[0].clientY,_=l-a,y=C-s,v=0,m=this.jSPlugin.env.domain+"/api/lapp/device/ptz/start";Math.abs(_)>Math.abs(y)?_>0?(v=3,document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("default","active")):(v=2,document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("default","active")):y>0?(v=1,document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("default","active")):(v=0,document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("default","active")),document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient(".concat(v===0?180:v===1?0:v===2?90:270,"deg, #c0ddf1 0%, rgba(100,143,252,0.00) 50%)"),i==="stop"&&(m=this.jSPlugin.env.domain+"/api/lapp/device/ptz/stop",document.getElementById("mobile-ez-ptz-item").style="",document.getElementsByClassName("mobile-ez-ptz-icon")[3].className=document.getElementsByClassName("mobile-ez-ptz-icon")[3].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[1].className=document.getElementsByClassName("mobile-ez-ptz-icon")[1].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[2].className=document.getElementsByClassName("mobile-ez-ptz-icon")[2].className.replace("active","default"),document.getElementsByClassName("mobile-ez-ptz-icon")[0].className=document.getElementsByClassName("mobile-ez-ptz-icon")[0].className.replace("active","default"));var w=new FormData;w.append("deviceSerial",Ue(this.jSPlugin.url).deviceSerial),w.append("channelNo",Ue(this.jSPlugin.url).channelNo),w.append("speed",1),w.append("direction",v),w.append("accessToken",this.jSPlugin.accessToken),fetch(m,{method:"POST",body:w}).then(function(R){return R.json()}).then(function(R){R.code==200||(R.code==60005||R.code==60002||R.code==60003||R.code==60004)&&(document.getElementById("mobile-ez-ptz-item").style="background-image:linear-gradient(".concat(v===0?180:v===1?0:v===2?90:270,"deg, #f45656 0%, rgba(100,143,252,0.00) 50%)"))}).catch(function(R){console.log("\u4E91\u53F0\u8C03\u7528\u5F02\u5E38",R)})}}]),h}(),nl=0,il="\u6210\u529F",ol={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]},footer:{color:"#FFFFFF",backgroundColor:"rgb(0 0 0 / 0%)",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-0",iconId:"play",part:"left",defaultActive:1,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-1",iconId:"capturePicture",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-2",iconId:"sound",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-3",iconId:"pantile",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-4",iconId:"recordvideo",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-5",iconId:"talk",part:"left",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-6",iconId:"hd",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-7",iconId:"webExpend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-footer-8",iconId:"expend",part:"right",defaultActive:0,isrender:0,themeId:"f7896c8942c9476fb439370dd974f1c0"}]}},rl={retcode:nl,msg:il,data:ol},al={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},qr={data:al},dl={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},Yr={data:dl},sl={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},$r={data:sl},ll={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-0",iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-1",iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-2",iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{btnKey:"c1cbc1d4e86d49a0981f54beea95280a-f7896c8942c9476fb439370dd974f1c0-header-3",iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:1},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},Xr={data:ll},cl={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:0},{iconId:"deviceName",part:"left",defaultActive:0,isrender:0},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:0},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"sound",part:"left",defaultActive:1,isrender:0},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:0}]}},Qr={data:cl},ul={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:0},{iconId:"rec",part:"right",defaultActive:0,isrender:0}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:0},{iconId:"talk",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:0},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"zoom",part:"left",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:0},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},ea={data:ul},fl={header:{color:"#FFFFFF",backgroundColor:"#000000",activeColor:"#1890FF",btnList:[{iconId:"deviceID",part:"left",defaultActive:0,isrender:1},{iconId:"deviceName",part:"left",defaultActive:0,isrender:1},{iconId:"cloudRec",part:"right",defaultActive:0,isrender:1},{iconId:"rec",part:"right",defaultActive:0,isrender:1}]},footer:{color:"#FFFFFF",backgroundColor:"#00000080",activeColor:"#1890FF",btnList:[{iconId:"play",part:"left",defaultActive:1,isrender:1},{iconId:"capturePicture",part:"left",defaultActive:0,isrender:1},{iconId:"sound",part:"left",defaultActive:1,isrender:1},{iconId:"pantile",part:"left",defaultActive:0,isrender:0},{iconId:"recordvideo",part:"left",defaultActive:0,isrender:1},{iconId:"zoom",part:"left",defaultActive:0,isrender:1},{iconId:"speed",part:"right",defaultActive:0,isrender:1},{iconId:"hd",part:"right",defaultActive:0,isrender:0},{iconId:"webExpend",part:"right",defaultActive:0,isrender:1},{iconId:"expend",part:"right",defaultActive:0,isrender:1}]}},ta={data:fl},na=[{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcLive",themeIntro:"PC\u76F4\u64AD\u5168\u91CF\u7248",themeName:"PC\u76F4\u64AD\u5168\u91CF\u7248",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:$r.data.header,footer:$r.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"security",themeIntro:"PC\u76F4\u64AD\u5B89\u9632\u7248",themeName:"PC\u76F4\u64AD\u5B89\u9632\u7248",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:Xr.data.header,footer:Xr.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"voice",themeIntro:"PC\u76F4\u64AD\u8BED\u97F3\u7248",themeName:"PC\u76F4\u64AD\u8BED\u97F3\u7248",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:ea.data.header,footer:ea.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"simple",themeIntro:"PC\u76F4\u64AD\u6781\u7B80\u7248",themeName:"PC\u76F4\u64AD\u6781\u7B80\u7248",themeType:"webLive",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"",header:Qr.data.header,footer:Qr.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"pcRec",themeIntro:"PC\u56DE\u653E\u5168\u91CF\u7248",themeName:"PC\u56DE\u653E\u5168\u91CF\u7248",themeType:"webRec",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_DmANlElAAA-xyivSaw030.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:ta.data.header,footer:ta.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileLive",themeIntro:"Mobile\u76F4\u64AD\u5168\u91CF\u7248",themeName:"Mobile\u76F4\u64AD\u5168\u91CF\u7248",themeType:"mobileLive",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:qr.data.header,footer:qr.data.footer},{autoFocus:5,createTime:"2021-06-14T08:04:37.000Z",themeId:"mobileRec",themeIntro:"Mobile\u56DE\u653E\u5168\u91CF\u7248",themeName:"Mobile\u56DE\u653E\u5168\u91CF\u7248",themeType:"mobileRec",updateTime:"2021-06-14T08:04:37.000Z",label:"\u5B98\u65B9",labelPic:"https://resource.eziot.com/group1/M00/00/8A/CtwQEmLr_GmAL5IhAABZs1vUK0s564.png",poster:"https://resource.eziot.com/group1/M00/00/89/CtwQEmLl8r-AZU7wAAETKlvgerU237.png",header:Yr.data.header,footer:Yr.data.footer}],pl=function(){function h(u){var n=this;Tt(this,h),this.jSPlugin=u,this.enableZoom=!1,this.isMouseDown=!1,this.videoWidth=1920,this.videoHeight=1080,this.currentScale=1,this.currentPosition={x:0,y:0,xPercent:.1,yPercent:.1,xCurrentVideo:0,yCurrentVideo:0,left:0,top:0,right:1920,bottom:1080},this.DOM=document.getElementById(u.id),this.clientRect=document.getElementById(u.id).getBoundingClientRect();var i=document.createElement("div");i.id="".concat(u.id,"-zoom-container"),i.style=`position: absolute;
  619. display:none;
  620. left: 12px;
  621. bottom: 80px;`;var r=`
  622. <div
  623. style="display: inline-flex;flex-direction: column;width: 38px;height: 160px;background:rgba(0,0,0,0.60);border-radius: 8px;align-items: center;">
  624. <div id="`.concat(this.jSPlugin.id,`-scale-value" style="font-size: 12px;color:#FFFFFF;margin-top:10px;margin-bottom:4px;">2.0X</div>
  625. <div style="width: 24px;" id="`).concat(this.jSPlugin.id,`-addScale">
  626. <?xml version="1.0" encoding="utf-8"?>
  627. <svg version="1.1" fill="#FFFFFF" id="\u56FE\u5C42_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  628. viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
  629. <title>\u653E\u5927</title>
  630. <g id="\u77E9\u5F62">
  631. <rect class="st0" width="20" height="20" fill="none"/>
  632. </g>
  633. <g id="\u5F62\u72B6\u7ED3\u5408">
  634. <path class="st1" d="M10,3.8c3.5,0,6.2,2.8,6.2,6.2s-2.8,6.2-6.2,6.2S3.8,13.5,3.8,10S6.5,3.8,10,3.8z M10,5c-2.8,0-5,2.2-5,5
  635. s2.2,5,5,5s5-2.2,5-5S12.8,5,10,5z"/>
  636. </g>
  637. <g id="\u8DEF\u5F84-4">
  638. <path class="st2" d="M12.5,10.7h-5c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h5c0.3,0,0.6,0.3,0.6,0.6S12.8,10.7,12.5,10.7z"/>
  639. </g>
  640. <g id="\u8DEF\u5F84-4\u5907\u4EFD">
  641. <path class="st2" d="M10,13.2c-0.3,0-0.6-0.3-0.6-0.6v-5c0-0.3,0.3-0.6,0.6-0.6s0.6,0.3,0.6,0.6v5C10.6,12.9,10.3,13.2,10,13.2z"/>
  642. </g>
  643. </svg>
  644. </div>
  645. <div style="
  646. position: relative;
  647. width: 1px;
  648. height: 64px;
  649. border: 1px solid rgba(255,255,255,0.75);
  650. display: flex;
  651. flex-direction: column;
  652. align-items: center;
  653. justify-content: flex-end;">
  654. <div class="scale-body-line-dot" id="`).concat(this.jSPlugin.id,`-scale-body-line-dot" style="width: 8px;
  655. height: 8px;
  656. background: #FFFFFF;
  657. border-radius: 100%;
  658. position: absolute;
  659. border: 1.5px solid rgba(64,122,255,1);"></div>
  660. <div id="`).concat(this.jSPlugin.id,`-line-dot" style="width: 1px;
  661. height: 0%;
  662. background: #1890FF;
  663. bottom: 0;"></div>
  664. </div>
  665. <div style="width: 24px;margin-top: 6px;" id="`).concat(this.jSPlugin.id,`-subScale">
  666. <?xml version="1.0" encoding="utf-8"?>
  667. <svg fill="#FFFFFF" version="1.1" id="\u56FE\u5C42_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  668. viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
  669. <title>\u7F29\u5C0F</title>
  670. <g id="\u77E9\u5F62">
  671. <rect class="st0" width="20" height="20" fill="none"/>
  672. </g>
  673. <g id="\u5F62\u72B6\u7ED3\u5408">
  674. <path class="st1" d="M10,3.8c3.5,0,6.2,2.8,6.2,6.2s-2.8,6.2-6.2,6.2S3.8,13.5,3.8,10S6.5,3.8,10,3.8z M10,5c-2.8,0-5,2.2-5,5
  675. s2.2,5,5,5s5-2.2,5-5S12.8,5,10,5z"/>
  676. </g>
  677. <g id="\u8DEF\u5F84-4">
  678. <path class="st2" d="M12.5,10.7h-5c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h5c0.3,0,0.6,0.3,0.6,0.6S12.8,10.7,12.5,10.7z"/>
  679. </g>
  680. </svg>
  681. </div>
  682. </div>
  683. `);i.innerHTML=r,document.getElementById("".concat(u.id,"-audioControls-left")).parentNode.appendChild(i),document.getElementById("".concat(u.id,"-addScale")).onclick=function(){n.addScale()},document.getElementById("".concat(u.id,"-subScale")).onclick=function(){n.subScale()}}return Pt(h,[{key:"onMouseDown",value:function(n){this.currentPosition,this.currentScale,this.moveX=n.clientX,this.moveY=n.clientY,this.isMouseDown=!0}},{key:"onMouseUp",value:function(n){var i=this.currentPosition;this.enableZoom,this.isMouseDown=!1,i.left=i.left-(n.clientX-this.moveX),i.top=i.top-(n.clientY-this.moveY),this.doScale()}},{key:"onMouseOut",value:function(n){this.isMouseDown&&(console.log("\u9F20\u6807\u6309\u4E0A",n),this.isMouseDown=!1),this.isMouseDown=!1}},{key:"renderDot",value:function(){var n=this.currentScale;document.getElementById("".concat(this.jSPlugin.id,"-scale-value")).innerHTML="".concat(n,".0X"),document.getElementById("".concat(this.jSPlugin.id,"-line-dot")).style.height="".concat((n-1)/7*100,"%"),document.getElementById("".concat(this.jSPlugin.id,"-scale-body-line-dot")).style.bottom="calc(".concat((n-1)/7*100,"% - 6px)")}},{key:"startZoom",value:function(){var n=this,i=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=i.width,this.videoHeight=i.height,this.currentPosition.right=i.width,this.currentPosition.bottom=i.height,this.currentScale=1,document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="block",this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),this.renderDot(),this.enableZoom=!0,document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0"))?(document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mousedown",function(r){return n.onMouseDown(r)}),document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mouseup",function(r){return n.onMouseUp(r)}),document.getElementById("".concat(this.jSPlugin.id,"canvas_draw0")).addEventListener("mouseout",function(r){return n.onMouseOut(r)})):document.getElementById("".concat(this.jSPlugin.id,"-player"))&&(document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mousedown",function(r){return n.onMouseDown(r)}),document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mouseup",function(r){return n.onMouseUp(r)}),document.getElementById("".concat(this.jSPlugin.id,"-player")).addEventListener("mouseout",function(r){return n.onMouseOut(r)}))}},{key:"stopZoom",value:function(){var n=this;this.currentScale=1,this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="none",this.renderDot(),this.enableZoom=!1,document.getElementById(this.jSPlugin.id).removeEventListener("mousedown",function(i){return n.onMouseDown(i)}),document.getElementById(this.jSPlugin.id).removeEventListener("mouseup",function(i){return n.onMouseUp(i)}),document.getElementById(this.jSPlugin.id).removeEventListener("mouseout",function(i){return n.onMouseOut(i)})}},{key:"doScale",value:function(){console.log("\u6267\u884C\u653E\u5927");var n=this.currentPosition,i=this.currentScale;n.left=n.left+n.xPercent*(n.right-n.left)-1/2*(this.videoWidth/i),n.left<0?n.left=0:n.left>this.videoWidth-this.videoWidth/i&&(n.left=this.videoWidth-this.videoWidth/i),n.right=n.left+this.videoWidth/i,n.top=n.top+n.yPercent*(n.bottom-n.top)-1/2*(this.videoHeight/i),n.top<0?n.top=0:n.top>this.videoHeight-this.videoHeight/i&&(n.top=this.videoHeight-this.videoHeight/i),n.bottom=n.top+this.videoHeight/i,n.left=parseInt(n.left,10),n.right=parseInt(n.right,10),n.top=parseInt(n.top,10),n.bottom=parseInt(n.bottom,10),console.log("\u8BA1\u7B97\u540E\uFF0C",this.jSPlugin.jSPlugin,n.left,n.right,n.top,n.bottom,n.xPercent,n.yPercent),this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(n.left,n.right,n.top,n.bottom),this.renderDot()}},{key:"calCurrentPosition",value:function(n){var i=this.currentPosition,r=this.clientRect;i.x=n.clientX,i.y=n.clientY,i.xPercent=(n.clientX-r.x)/r.width,i.yPercent=(n.clientY-r.y)/r.height,this.doScale()}},{key:"addScale",value:function(){var n=this.currentScale,i=this.currentPosition;if(n>=8)return console.log("\u8FBE\u5230\u6700\u5927\u500D\u7387\u4E86"),this.jSPlugin.Message&&this.jSPlugin.Message.default("\u5DF2\u7ECF\u653E\u5927\u5230\u6700\u5927\u500D\u65708.0X"),!1;this.currentScale++,i.xPercent=.5,i.yPercent=.5,this.doScale()}},{key:"subScale",value:function(){var n=this.currentScale,i=this.currentPosition;if(n<=1)return console.log("\u8FBE\u5230\u6700\u5C0F\u500D\u7387\u4E86"),!1;this.currentScale--,i.xPercent=.5,i.yPercent=.5,this.doScale()}}]),h}();function ia(h,u){return Math.abs(u.clientX-h.clientX)*Math.abs(u.clientX-h.clientX)+Math.abs(u.clientY-h.clientY)*Math.abs(u.clientY-h.clientY)}var ml=function(){function h(u){var n=this;Tt(this,h),this.jSPlugin=u,this.enableZoom=!1,this.isDubboTouch=!1,this.videoWidth=0,this.videoHeight=0,this.currentScale=1,this.currentPosition={x:0,y:0,xPercent:.1,yPercent:.1,xCurrentVideo:0,yCurrentVideo:0,left:0,top:0,right:1920,bottom:1080},this.DOM=document.getElementById(u.id),this.clientRect=document.getElementById(u.id).getBoundingClientRect(),this.point1={clientX:0,clientY:0},this.point2={clientX:0,clientY:0},this.touchLineLength=0,this.inited=!1;var i=document.createElement("div");i.id="".concat(u.id,"-zoom-container"),i.style=`display:none;
  684. position: absolute;
  685. left: 10px;
  686. top: -30px;
  687. border: 1px solid rgba(0,0,0,0.6);
  688. color: #FFFFFF;
  689. background: rgba(0,0,0,0.6);
  690. border-radius: 10px;
  691. width: 36px;
  692. font-size: 12px;
  693. text-align: center;
  694. height: 22px;
  695. line-height: 22px;`;var r="1X";i.innerHTML=r,document.getElementById("".concat(u.id,"-audioControls-left")).parentNode.appendChild(i),document.getElementById(this.jSPlugin.id).addEventListener("touchstart",function(a){return n.onTouchstart(a)}),document.getElementById(this.jSPlugin.id).addEventListener("touchmove",function(a){return n.onTouchmove(a)})}return Pt(h,[{key:"onTouchstart",value:function(n){if(!this.inited){var i=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=i.width,this.videoHeight=i.height,this.currentPosition.right=i.width,this.currentPosition.bottom=i.height,this.inited=!0}var r=this.currentPosition;this.currentScale,console.log("\u53CC\u6307\u6309\u4E0B",r);var a=n.touches,s=a[0],l=a[1];s&&(this.point1.clientX=s.clientX,this.point1.clientY=s.clientY),l&&(this.point2.clientX=l.clientX,this.point2.clientY=l.clientY,this.touchLineLength=ia(this.point1,this.point2),this.isDubboTouch=!0,this.moveX=s.clientX,this.moveY=s.clientY),console.log("\u53CC\u6307\u6309\u4E0B2",r)}},{key:"onTouchmove",value:function(n){var i=this.isDubboTouch,r=this.currentPosition,a=this.clientRect;if(n.touches.length===1){var l=n.touches[0];return r.xPercent=r.xPercent+(this.point1.clientX-l.clientX)/a.width/this.currentScale,r.yPercent=r.yPercent+(this.point1.clientY-l.clientY)/a.height/this.currentScale,this.doScale(),this.point1.clientX=l.clientX,this.point1.clientY=l.clientY,!1}if(!i)return!1;var s=n.touches,l=s[0],C=s[1];if(l&&(this.point1.clientX=l.clientX,this.point1.clientY=l.clientY),C){this.point2.clientX=C.clientX,this.point2.clientY=C.clientY;var _=ia(this.point1,this.point2);_!==this.touchLineLength&&(_>this.touchLineLength?this.currentScale<8?(++this.currentScale,r.xPercent=(this.point1.clientX+this.point2.clientX)/2/a.width,r.yPercent=(this.point1.clientY+this.point2.clientY)/2/a.height,this.doScale()):console.log("\u5DF2\u7ECF\u662F\u6700\u59278\u500D\u7387\u4E86"):this.currentScale>1?(--this.currentScale,r.xPercent=(this.point1.clientX+this.point2.clientX)/2/a.width,r.yPercent=(this.point1.clientY+this.point2.clientY)/2/a.height,this.doScale()):console.log("\u5DF2\u7ECF\u662F\u6700\u5C0F1\u500D\u7387\u4E86"),this.isDubboTouch=!1)}}},{key:"startZoom",value:function(){var n=this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);this.videoWidth=n.width,this.videoHeight=n.height,this.currentPosition.right=n.width,this.currentPosition.bottom=n.height,this.currentScale=1,document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="block",this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),this.renderDot()}},{key:"stopZoom",value:function(){this.currentScale=1,this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(0,this.videoWidth,0,this.videoHeight),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display="none",this.renderDot()}},{key:"doScale",value:function(){var n=this.currentPosition,i=this.currentScale;n.left=n.left+n.xPercent*(n.right-n.left)-1/2*(this.videoWidth/i),n.left<0?n.left=0:n.left>this.videoWidth-this.videoWidth/i&&(n.left=this.videoWidth-this.videoWidth/i),n.right=n.left+this.videoWidth/i,n.top=n.top+n.yPercent*(n.bottom-n.top)-1/2*(this.videoHeight/i),n.top<0?n.top=0:n.top>this.videoHeight-this.videoHeight/i&&(n.top=this.videoHeight-this.videoHeight/i),n.bottom=n.top+this.videoHeight/i,n.left=parseInt(n.left,10),n.right=parseInt(n.right,10),n.top=parseInt(n.top,10),n.bottom=parseInt(n.bottom,10),console.log("\u89C6\u9891\u5BBD\u9AD8",this.videoWidth,this.videoHeight),console.log("\u8BA1\u7B97\u540E\uFF0C",n.left,n.right,n.top,n.bottom,n.xPercent,n.yPercent),n.left<n.right&&n.top<n.bottom&&n.bottom<=this.videoHeight&&n.right<=this.videoWidth&&this.jSPlugin.jSPlugin._JSPlayM4_SetDisplayRegion(n.left,n.right,n.top,n.bottom),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).innerHTML="".concat(i,".0X"),document.getElementById("".concat(this.jSPlugin.id,"-zoom-container")).style.display=i===1?"none":"inline-block"}},{key:"calCurrentPosition",value:function(n){var i=this.currentPosition,r=this.clientRect;i.x=n.clientX,i.y=n.clientY,i.xPercent=(n.clientX-r.x)/r.width,i.yPercent=(n.clientY-r.y)/r.height,this.doScale()}}]),h}(),oa=function(u){var n="";return Object.keys(u).map(function(i,r){n+="".concat(i,":").concat(u[i]).concat(r<Object.keys(u).length-1?";":"")}),n},Ee=500,hl=function(){function h(u){var n=this;if(Tt(this,h),this.jSPlugin=u,this.isNeedRenderHeader=!1,this.isNeedRenderFooter=!1,this.autoFocus=0,this.autoFocusTimer=null,this.recordTimer=null,this.nextRate=1,this.showHD=!1,this.decoderState={state:{isEditing:!1,play:!1,sound:!1,recordvideo:!1,recordCount:"00:00",talk:!1,zoom:!1,pantile:!1,hd:!1,speed:!1,expend:!1,webExpend:!1,cloudRec:Ue(u.url).type==="cloud.rec",rec:Ue(u.url).type==="rec",type:Ue(u.url).type}},console.log(" matchEzopenUrl(jSPlugin.url)",Ue(u.url),this.decoderState.state),this.inited=!1,this.isMobile=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i),typeof u.isMobile!="undefined"&&(this.isMobile=u.isMobile),this.themeData=rl.data,this.jSPlugin.themeId)switch(this.jSPlugin.themeId){case"pcLive":case"pcRec":case"mobileLive":case"mobileRec":case"security":case"voice":case"simple":var i=Mt.find(na,function(r){return r.themeId===n.jSPlugin.themeId});i&&(this.themeData=i),this.initThemeData(),this.renderThemeData();break;case"themeData":this.themeData=this.jSPlugin.params.themeData,this.initThemeData(),this.renderThemeData();break;default:this.fetchThemeData(this.jSPlugin.themeId);break}this.jSPlugin.Talk||(this.jSPlugin.Talk=new Jr(this.jSPlugin)),xo("".concat(this.jSPlugin.staticPath,"/speed/speed.css")),xo("".concat(this.jSPlugin.staticPath,"/css/theme.css"))}return Pt(h,[{key:"fetchThemeData",value:function(n){var i=this,r="".concat(this.jSPlugin.env.domain,"/console/jssdk/ezopen/template/getDetail?accessToken=").concat(this.jSPlugin.accessToken,"&id=").concat(n);(window.location.hostname==="test11open.ys7.com"||window.location.hostname==="127.0.0.1"||window.location.hostname==="jianboyu.top")&&(r=r.replace("test12open.ys7.com/console/jssdk","test11open.ys7.com/console/jssdk")),fetch(r,{method:"GET"}).then(function(a){return a.json()}).then(function(a){console.log("get theme data",a),a.meta.code===0&&a.data&&(i.themeData=a.data,a.data.header&&(i.themeData.header=a.data.header,i.themeData.header.btnList=i.themeData.header.btnList.sort(function(s,l){return s.btnKey.split("-")[3]-l.btnKey.split("-")[3]})),a.data.footer&&(i.themeData.footer=a.data.footer,i.themeData.footer.btnList=i.themeData.footer.btnList.sort(function(s,l){return s.btnKey.split("-")[3]-l.btnKey.split("-")[3]})),i.initThemeData(),i.renderThemeData())}).catch(function(a){i.renderThemeData()})}},{key:"changeTheme",value:function(n){var i=this;if(typeof n=="string")switch(this.jSPlugin.themeId=n,this.jSPlugin.themeId){case"pcLive":case"pcRec":case"mobileLive":case"mobileRec":case"security":case"voice":case"simple":var r=Mt.find(na,function(a){return a.themeId===i.jSPlugin.themeId});r&&(this.themeData=r),this.initThemeData(),this.renderThemeData();break;default:this.fetchThemeData(n);break}else Se(n)==="object"&&(this.themeData=n,this.initThemeData(),this.renderThemeData(),this.decoderState.state.isEditing&&this.editStart());this.jSPlugin&&this.jSPlugin.handleThemeChange&&this.jSPlugin.handleThemeChange(n)}},{key:"renderThemeData",value:function(){var n=this,i=this.themeData,r=i.header,a=i.footer;if(this.isNeedRenderHeader&&r&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.background=r.backgroundColor.replace("-diy",""),document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.color=r.color.replace("-diy",""),r.btnList.map(function(_,y){_.isrender&&n.setDecoderState(Zn({},_.iconId,n.decoderState.state[_.iconId]))})),this.isNeedRenderFooter&&a)document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.background=a.backgroundColor.replace("-diy",""),document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.color=a.color.replace("-diy",""),a.btnList.map(function(_,y){if(_.isrender&&n.setDecoderState(Zn({},_.iconId,n.decoderState.state[_.iconId])),_.iconId==="play"&&_.defaultActive)var v=setInterval(function(){window.EZUIKit[n.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(v),n.jSPlugin.play())},50)}),this.jSPlugin.url.indexOf("hd.live")!==-1&&this.setDecoderState({hd:!0}),this.themeData.autoFocus>0&&(this.autoFocus=parseInt(this.themeData.autoFocus),this.startAutoFocus(),document.getElementById("".concat(this.jSPlugin.id,"-wrap")).addEventListener("click",function(){n.stopAutoFocus()}));else var s=setInterval(function(){window.EZUIKit[n.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(s),n.jSPlugin.play())},50);var l=Mt.findIndex(this.themeData.footer.btnList,function(_){return _.iconId==="zoom"&&_.isrender>0})>=0;l&&(this.isMobile?this.jSPlugin.Zoom=new ml(this.jSPlugin):this.jSPlugin.Zoom=new pl(this.jSPlugin));var C=setInterval(function(){window.EZUIKit[n.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(C),n.jSPlugin.reSize(n.jSPlugin.params.width,n.jSPlugin.params.height))},50)}},{key:"setDecoderState",value:function(n){var i=this,r=this.themeData,a=r.header,s=r.footer;Object.keys(n).map(function(l,C){var _="#FFFFFF",y="#FFFFFF",v=a.btnList.findIndex(function(m){return m.iconId===l});switch(v===-1?(_=s.color.replace("-diy",""),y=s.activeColor.replace("-diy","")):(_=a.color.replace("-diy",""),y=s.activeColor.replace("-diy","")),l){case"play":n[l]?document.getElementById("".concat(i.jSPlugin.id,"-play"))&&(document.getElementById("".concat(i.jSPlugin.id,"-play-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-play-content")).children[0].children[1].style="display:none",document.getElementById("".concat(i.jSPlugin.id,"-play")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-play-content")).childNodes[0].children[0].style.fill=n[l]?y:_):document.getElementById("".concat(i.jSPlugin.id,"-play"))&&(document.getElementById("".concat(i.jSPlugin.id,"-play-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-play-content")).children[0].children[0].style="display:none",document.getElementById("".concat(i.jSPlugin.id,"-play")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-play-content")).childNodes[0].children[1].style.fill=n[l]?y:_);break;case"sound":document.getElementById("".concat(i.jSPlugin.id,"-sound"))&&(n[l]?(document.getElementById("".concat(i.jSPlugin.id,"-sound-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-sound-content")).children[0].children[0].style="display:none",document.getElementById("".concat(i.jSPlugin.id,"-sound")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-sound-content")).childNodes[0].children[1].style.fill=n[l]?y:_):(document.getElementById("".concat(i.jSPlugin.id,"-sound-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-sound-content")).children[0].children[1].style="display:none",document.getElementById("".concat(i.jSPlugin.id,"-sound")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-sound-content")).childNodes[0].children[0].style.fill=n[l]?y:_));break;case"recordvideo":document.getElementById("".concat(i.jSPlugin.id,"-recordvideo"))&&(document.getElementById("".concat(i.jSPlugin.id,"-recordvideo")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-recordvideo-content")).childNodes[0].style.fill=n[l]?y:_,n[l]?i.countTime("add",0):i.countTime("destroy",0));break;case"talk":document.getElementById("".concat(i.jSPlugin.id,"-talk"))&&(document.getElementById("".concat(i.jSPlugin.id,"-talk")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-talk-content")).childNodes[1].style.fill=n[l]?y:_);break;case"zoom":document.getElementById("".concat(i.jSPlugin.id,"-zoom"))&&(document.getElementById("".concat(i.jSPlugin.id,"-zoom")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-zoom-content")).childNodes[1].style.fill=n[l]?y:_);break;case"pantile":document.getElementById("".concat(i.jSPlugin.id,"-pantile"))&&(document.getElementById("".concat(i.jSPlugin.id,"-pantile")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-pantile-content")).childNodes[0].style.fill=n[l]?y:_);break;case"webExpend":n[l]?(document.getElementById("".concat(i.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-webExpend-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-webExpend-content")).children[0].children[0].style="display:none"),document.getElementById("".concat(i.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-expend")).className="disabled")):(document.getElementById("".concat(i.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-webExpend-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-webExpend-content")).children[0].children[1].style="display:none"),document.getElementById("".concat(i.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-expend")).className="")),document.getElementById("".concat(i.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-webExpend")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-webExpend-content")).childNodes[0].childNodes[0].style.fill=n[l]?y:_,document.getElementById("".concat(i.jSPlugin.id,"-webExpend-content")).childNodes[0].childNodes[1].style.fill=n[l]?y:_);break;case"capturePicture":document.getElementById("".concat(i.jSPlugin.id,"-capturePicture"))&&(document.getElementById("".concat(i.jSPlugin.id,"-capturePicture")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-capturePicture-content")).childNodes[0].style.fill=n[l]?y:_);break;case"expend":n[l]?(document.getElementById("".concat(i.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-expend-content")).children[0].children[1].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-expend-content")).children[0].children[0].style="display:none"),document.getElementById("".concat(i.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-webExpend")).className="disabled")):(document.getElementById("".concat(i.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-expend-content")).children[0].children[0].style="display:inline-block",document.getElementById("".concat(i.jSPlugin.id,"-expend-content")).children[0].children[1].style="display:none"),document.getElementById("".concat(i.jSPlugin.id,"-webExpend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-webExpend")).className="")),document.getElementById("".concat(i.jSPlugin.id,"-expend"))&&(document.getElementById("".concat(i.jSPlugin.id,"-expend")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-expend-content")).childNodes[0].childNodes[0].style.fill=n[l]?y:_,document.getElementById("".concat(i.jSPlugin.id,"-expend-content")).childNodes[0].childNodes[1].style.fill=n[l]?y:_);break;case"hd":n[l]?document.getElementById("".concat(i.jSPlugin.id,"-hd"))&&(document.getElementById("".concat(i.jSPlugin.id,"-hd-content")).children[1].children[0].style="display:block",document.getElementById("".concat(i.jSPlugin.id,"-hd-content")).children[1].children[1].style="display:none"):document.getElementById("".concat(i.jSPlugin.id,"-hd"))&&(document.getElementById("".concat(i.jSPlugin.id,"-hd-content")).children[1].children[1].style="display:block",document.getElementById("".concat(i.jSPlugin.id,"-hd-content")).children[1].children[0].style="display:none");break;case"speed":document.getElementById("".concat(i.jSPlugin.id,"-speed"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speed-content")).children[1].children[0].style.color=n[l]?y:_,document.getElementById("".concat(i.jSPlugin.id,"-speed-content")).children[1].children[0].style.borderColor=n[l]?y:_),i.isMobile&&n[l]?document.getElementById("".concat(i.jSPlugin.id,"-select-mask")).style.display="block":document.getElementById("".concat(i.jSPlugin.id,"-select-mask")).style.display="none";break;case"cloudRec":document.getElementById("".concat(i.jSPlugin.id,"-cloudRec"))&&(console.log("document.getElementById(`${this.jSPlugin.id}-cloudRec-content`)",document.getElementById("".concat(i.jSPlugin.id,"-cloudRec"))),document.getElementById("".concat(i.jSPlugin.id,"-cloudRec")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-cloudRec-content")).children[0].children[0].style.fill=n[l]?y:_),document.getElementById("".concat(i.jSPlugin.id,"-rec"))&&(document.getElementById("".concat(i.jSPlugin.id,"-rec")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-rec-content")).children[0].children[0].style.fill=n[l]?_:y);break;case"rec":document.getElementById("".concat(i.jSPlugin.id,"-cloudRec"))&&(document.getElementById("".concat(i.jSPlugin.id,"-cloudRec")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-cloudRec-content")).children[0].children[0].style.fill=n[l]?_:y),document.getElementById("".concat(i.jSPlugin.id,"-rec"))&&(document.getElementById("".concat(i.jSPlugin.id,"-rec")).className=n[l]?"active":"",document.getElementById("".concat(i.jSPlugin.id,"-rec-content")).children[0].children[0].style.fill=n[l]?y:_);break}i.decoderState.state=Object.assign(i.decoderState.state,n)})}},{key:"startAutoFocus",value:function(){var n=this;console.log("\u5F00\u59CB\u81EA\u52A8\u9690\u85CF",this.autoFocus);var i=this.autoFocus;this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.autoFocusTimer=setTimeout(function(){document.getElementById("".concat(n.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(n.jSPlugin.id,"-audioControls")).style.opacity=0)},i*1e3)}},{key:"stopAutoFocus",value:function(){console.log("\u7ED3\u675F\u81EA\u52A8\u9690\u85CF"),document.getElementById("".concat(this.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.opacity=1),this.autoFocusTimer&&clearTimeout(this.autoFocusTimer),this.startAutoFocus()}},{key:"toString",value:function(){return"".concat(this.coreX,"-").concat(this.coreY)}},{key:"renderFooter",value:function(n,i){var r=this,a=this.matchBtn(n);if(this.isMobile&&a.id==="zoom")return!1;var s=document.createElement("div");s.className="theme-icon-item",s.innerHTML="".concat('<span id="'.concat(this.jSPlugin.id,"-").concat(a.id,'" style="position:relative;">')+'<div id="'.concat(this.jSPlugin.id,"-").concat(a.id,'-content" title="').concat(a.title,'" style="height:').concat(this.jSPlugin.width>Ee?48:32,'px;display: flex;align-items: center;position:relative;">')).concat(a.domString,"</div>")+"</span>",s.onclick=function(y){if(r.decoderState.state.isEditing)return!1;a.onclick(y)},a.onmouseenter&&(s.onmouseenter=function(y){if(r.decoderState.state.isEditing)return!1;a.onmouseenter(y)}),a.onmouseleave&&(s.onmouseleave=function(y){if(r.decoderState.state.isEditing)return!1;a.onmouseleave(y)});var l=document.createElement("span");l.className="icon-move left",l.innerHTML='<span id="'.concat(this.jSPlugin.id,"-").concat(a.id,'-left" title="\u5DE6\u79FB" style="position: absolute;top: calc(50% - 10px);left: -4px;"><svg fill="#ffffff" version="1.1" xmlns="http://www.w3.org/2000/svg" width="12" height="24" viewBox="0 0 10 15" style="background:#00000080;"><path d="M7.4,10V5.3c0-0.3-0.3-0.6-0.6-0.6c-0.1,0-0.3,0.1-0.4,0.2L3.7,7.4c-0.2,0.2-0.3,0.6,0,0.8 c0,0,0,0,0.1,0.1l2.7,2.2c0.2,0.2,0.6,0.2,0.8-0.1C7.3,10.3,7.4,10.2,7.4,10z"></path></svg></span>'),l.onclick=function(){r.editIcon(a.id,"left","footer")},s.appendChild(l);var C=document.createElement("span");C.className="icon-move right",C.innerHTML='<span id="'.concat(this.jSPlugin.id,"-").concat(a.id,'-right" class="ezuikit-theme-icon" title="\u53F3\u79FB" style="position: absolute;top: calc(50% - 10px);left: calc(100% - 8px);"><svg fill="#ffffff" version="1.1" xmlns="http://www.w3.org/2000/svg" width="12" height="24" viewBox="0 0 10 15" style="background:#00000080"><path d="M3.4,5.2v4.7c0,0.3,0.3,0.6,0.6,0.6c0.1,0,0.3-0.1,0.4-0.2l2.7-2.5c0.2-0.2,0.3-0.6,0-0.8 c0,0,0,0-0.1-0.1L4.4,4.8C4.1,4.6,3.8,4.6,3.6,4.9C3.5,5,3.4,5.1,3.4,5.2z"></path></svg></span>'),C.onclick=function(){r.editIcon(a.id,"right","footer")},s.appendChild(C);var _=document.createElement("span");_.className="icon-move close",_.innerHTML='<span id="'.concat(a.id,'-remove" class="ezuikit-theme-icon" title="\u79FB\u9664" style="position: absolute;top: -10px;right: -10px;">')+'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 15 15"><circle style="fill-rule:evenodd;clip-rule:evenodd;fill-opacity:0.8011;" cx="7.5" cy="7.6" r="7" /><rect x="3.9" y="3.5" class="st1" style="fill:none;" width="8.1" height="8.1" /><line style="fill:none;stroke:#ffffff;stroke-width:0.5833;stroke-linecap:round;" x1="4.9" y1="5" x2="10" y2="10.1" /><line style="fill:none;stroke:#ffffff;stroke-width:0.5833;stroke-linecap:round;" x1="4.9" y1="10.1" x2="10" y2="5" /></svg></span>',_.onclick=function(){r.editIcon(a.id,"delete","footer")},s.appendChild(_),i==="left"?document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).childNodes[0].appendChild(s):document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).childNodes[1].appendChild(s)}},{key:"editIcon",value:function(n,i,r){console.log("\u7F16\u8F91\u7EC4\u4EF6",n,i,r);var a=this.themeData;console.log("themeData",this.themeData);var s=this.themeData[r].btnList,l=Mt.findIndex(s,function(w){return w.iconId===n}),C=s[l];switch(i){case"delete":if(n==="rec"){if(Mt.findIndex(s,function(w){return w.iconId==="cloudRec"&&w.isrender==1})===-1)return this.jSPlugin.Message&&this.jSPlugin.Message.default("\u5FC5\u987B\u9009\u4E2D\u4E00\u79CD\u5B58\u50A8\u4ECB\u8D28"),!1}else if(n==="cloudRec"&&Mt.findIndex(s,function(w){return w.iconId==="rec"&&w.isrender==1})===-1)return this.jSPlugin.Message&&this.jSPlugin.Message.default("\u5FC5\u987B\u9009\u4E2D\u4E00\u79CD\u5B58\u50A8\u4ECB\u8D28"),!1;s[l].isrender=0;break;case"right":for(var _=-1,y=l+1;y<s.length;y++)if(s[y].part===s[l].part&&s[y].isrender==1){_=y;break}_!==-1&&(s[l]=s[_],s[_]=C);break;case"left":for(var v=-1,m=l-1;m>=0;m--)if(s[m].part===s[l].part&&s[m].isrender==1){v=m;break}v!==-1&&(s[l]=s[v],s[v]=C);break}console.log("new btnList",s),a[r].btnList=s,this.changeTheme(a)}},{key:"renderHeader",value:function(n,i){var r=this,a=this.matchBtn(n),s=document.createElement("div");s.className="theme-icon-item",s.innerHTML="".concat('<span id="'.concat(this.jSPlugin.id,"-").concat(a.id,'" style="position:relative";>')+'<span id="'.concat(this.jSPlugin.id,"-").concat(a.id,'-content" title="').concat(a.title,'" style="display:inline-block;height:').concat(this.width>Ee?48:32,'px;">')).concat(a.domString,"</span>")+'<span id="'.concat(this.jSPlugin.id,"-").concat(a.id,'-remove" title="\u79FB\u9664" style="position: absolute;top: -6px;left: 38px;display: none;">')+'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 15 15"><circle style="fill-rule:evenodd;clip-rule:evenodd;fill-opacity:0.8011;" cx="7.5" cy="7.6" r="7" /><rect x="3.9" y="3.5" class="st1" style="fill:none;" width="8.1" height="8.1" /><line style="fill:none;stroke:#ffffff;stroke-width:0.5833;stroke-linecap:round;" x1="4.9" y1="5" x2="10" y2="10.1" /><line style="fill:none;stroke:#ffffff;stroke-width:0.5833;stroke-linecap:round;" x1="4.9" y1="10.1" x2="10" y2="5" /></svg></span></span>',s.onclick=function(C){if(r.decoderState.state.isEditing)return!1;a.onclick(C)};var l=document.createElement("span");l.className="icon-move close",l.innerHTML='<span id="'.concat(a.id,'-remove" class="ezuikit-theme-icon" title="\u79FB\u9664" style="position: absolute;top: -6px;right: -6px;">')+'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 15 15"><circle style="fill-rule:evenodd;clip-rule:evenodd;fill-opacity:0.8011;" cx="7.5" cy="7.6" r="7" /><rect x="3.9" y="3.5" class="st1" style="fill:none;" width="8.1" height="8.1" /><line style="fill:none;stroke:#ffffff;stroke-width:0.5833;stroke-linecap:round;" x1="4.9" y1="5" x2="10" y2="10.1" /><line style="fill:none;stroke:#ffffff;stroke-width:0.5833;stroke-linecap:round;" x1="4.9" y1="10.1" x2="10" y2="5" /></svg></span>',l.onclick=function(){r.editIcon(a.id,"delete","header")},s.appendChild(l),i==="left"?document.getElementById("".concat(this.jSPlugin.id,"-headControl")).childNodes[0].appendChild(s):document.getElementById("".concat(this.jSPlugin.id,"-headControl")).childNodes[1].appendChild(s)}},{key:"countTime",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=this;if(!document.getElementById(this.jSPlugin.id+"time-area")){var a=document.createElement("div");a.id=this.jSPlugin.id+"time-area",a.className="time-area",a.innerHTML='<span class="dot"></span><span class="value">00:00</span>',document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).appendChild(a)}if(this.countTimer&&clearInterval(this.countTimer),n==="add"){var s=i;document.getElementById(r.jSPlugin.id+"time-area").style.display="flex",this.countTimer=setInterval(function(){++s,document.getElementById(r.jSPlugin.id+"time-area").children[1].innerHTML=l(s)},1e3)}else n==="destroy"&&(this.countTimer&&clearInterval(this.countTimer),this.countTimer=void 0,document.getElementById(r.jSPlugin.id+"time-area")&&(document.getElementById(r.jSPlugin.id+"time-area").children[1].innerHTML="00:00",document.getElementById(r.jSPlugin.id+"time-area").style.display="none"));function l(C){var _=parseInt(C),y=0,v=0,m="00",w="00",R="00";return _>59&&(y=parseInt(_/60),_=parseInt(_%60),y>59&&(v=parseInt(y/60),y=parseInt(y%60))),m=parseInt(_)>9?parseInt(_):"0"+parseInt(_),w=parseInt(y)>9?parseInt(y):"0"+parseInt(y),R=parseInt(v)>9?parseInt(v):"0"+parseInt(v),v>0?R+":"+w+":"+m:y>0?w+":"+m:"00:"+m}}},{key:"matchBtn",value:function(n){var i=this,r=this.themeData,a=r.header,s=r.footer,l={title:"",id:"",domString:"",color:"#FFFFFF",activeColor:"#FFFFFF",onclick:function(){},onmoveleft:function(){},onmoveright:function(){},onremove:function(){}},C=a.btnList.findIndex(function(y){return y.iconId===n});switch(C===-1?(l.color=s.color,l.backgroundColor=s.backgroundColor,l.activeColor=s.activeColor):(l.color=a.color,l.backgroundColor=a.backgroundColor,l.activeColor=a.activeColor),n){case"play":return l.title="\u64AD\u653E/\u7ED3\u675F\u64AD\u653E",l.id=n,l.domString='<div style="height: 100%">'+'<svg style="display:none" width="'.concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" fill="').concat(l.color,`" viewBox="-6 -6 32 32">
  696. <path id="Stroke-1" class="st1" d="M10.5,1.7c-4.9,0-8.8,4-8.8,8.8s4,8.8,8.8,8.8s8.8-4,8.8-8.8S15.4,1.7,10.5,1.7z M10.5,2.7
  697. c4.3,0,7.8,3.5,7.8,7.8s-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8S6.2,2.7,10.5,2.7z"/>
  698. <path class="st2" d="M8.7,8C9,8,9.3,8.3,9.3,8.6v3.8C9.3,12.7,9,13,8.7,13C8.3,13,8,12.7,8,12.4V8.6C8,8.3,8.3,8,8.7,8z"/>
  699. <path id="Rectangle-Copy-10" class="st2" d="M12.8,8c0.3,0,0.6,0.3,0.6,0.6v3.8c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6V8.6
  700. C12.2,8.3,12.5,8,12.8,8z"/>
  701. </svg>`)+'<svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M13,9.8L10.1,8C9.9,7.9,9.7,7.9,9.5,7.9c-0.6,0-1,0.4-1,1v3.7c0,0.2,0.1,0.4,0.2,0.5c0.3,0.5,0.9,0.6,1.4,0.3 l2.9-1.8c0.1-0.1,0.2-0.2,0.3-0.3C13.6,10.7,13.4,10.1,13,9.8z" /><path d="M10.5,1.9c-4.9,0-8.8,4-8.8,8.8c0,4.9,4,8.8,8.8,8.8s8.8-4,8.8-8.8C19.4,5.8,15.4,1.9,10.5,1.9z M10.5,18.5 c-4.3,0-7.8-3.5-7.8-7.8s3.5-7.8,7.8-7.8c4.3,0,7.8,3.5,7.8,7.8S14.9,18.5,10.5,18.5z" /></svg></div>',l.onclick=function(){var y=i.decoderState.state,v=y.play,m=y.isEditing;if(m)return!1;v?i.jSPlugin.stop():i.jSPlugin.play(),i.setDecoderState({play:!v})},l;case"sound":return l.title="\u58F0\u97F3",l.id=n,l.domString='<span style="height: 100%">'+'<svg style="display:none" fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,`" viewBox="-6 -6 32 32">
  702. <path d="M8.5,4.2c0.8-0.7,2.1-0.2,2.2,0.9l0,0.1v10c0,1.1-1.2,1.7-2.1,1.1l-0.1-0.1l-3.3-2.8C5,13.2,5,12.9,5.1,12.7 c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.8c0.2,0.2,0.5,0.1,0.5-0.2l0-0.1v-10c0-0.3-0.3-0.4-0.5-0.3L9.2,5L5.9,7.8 C5.6,7.9,5.3,7.9,5.1,7.7C5,7.5,5,7.3,5.1,7.1L5.2,7L8.5,4.2z"/>
  703. <path d="M5.5,6.9C5.8,6.9,6,7.1,6,7.4c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2C3.4,7.9,3.3,8,3.2,8.2l0,0.1v4 c0,0.2,0.1,0.3,0.3,0.3l0.1,0h2C5.8,12.5,6,12.7,6,13c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.7,0-1.3-0.5-1.3-1.2l0-0.1v-4 c0-0.7,0.5-1.3,1.2-1.3l0.1,0H5.5z"/>
  704. <path d="M17.4,7.9c0.2-0.2,0.5-0.2,0.7,0c0.2,0.2,0.2,0.4,0.1,0.6l-0.1,0.1l-3.8,3.8c-0.2,0.2-0.5,0.2-0.7,0 c-0.2-0.2-0.2-0.4-0.1-0.6l0.1-0.1L17.4,7.9z"/>
  705. <path d="M13.7,7.9c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.8,3.8c0.2,0.2,0.2,0.5,0,0.7c-0.2,0.2-0.4,0.2-0.6,0.1l-0.1-0.1 l-3.7-3.8C13.5,8.4,13.5,8.1,13.7,7.9z"/>
  706. </svg>`)+'<svg style="display:inline-block" width="'.concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" fill="').concat(l.color,`" viewBox="-6 -6 32 32">
  707. <path d="M13.2,7.1c0.1-0.2,0.5-0.3,0.7-0.2c1.1,0.7,1.9,2.2,1.9,3.7c0,1.6-0.7,3-1.9,3.7
  708. c-0.2,0.1-0.5,0.1-0.7-0.2c-0.1-0.2-0.1-0.5,0.2-0.7c0.8-0.5,1.4-1.6,1.4-2.9c0-1.3-0.6-2.4-1.4-2.9C13.1,7.6,13,7.3,13.2,7.1z"/>
  709. <path d="M15.7,4.5c0.2-0.2,0.5-0.2,0.7-0.1C18,5.8,19,8.2,19,10.7c0,2.5-1,4.8-2.7,6.3
  710. c-0.2,0.2-0.5,0.2-0.7-0.1c-0.2-0.2-0.2-0.5,0.1-0.7c1.4-1.2,2.3-3.3,2.3-5.5c0-2.2-0.9-4.3-2.3-5.5C15.5,5,15.5,4.7,15.7,4.5z"/>
  711. <path id="Stroke-5" class="st1" d="M8.5,4.7c0.8-0.7,2.1-0.2,2.2,0.9l0,0.1v10c0,1.1-1.2,1.7-2.1,1.1l-0.1-0.1l-3.3-2.8
  712. C5,13.7,5,13.4,5.1,13.2c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.8c0.2,0.2,0.5,0.1,0.5-0.2l0-0.1v-10c0-0.3-0.3-0.4-0.5-0.3l-0.1,0
  713. L5.9,8.3C5.6,8.4,5.3,8.4,5.1,8.2C5,8,5,7.7,5.1,7.6l0.1-0.1L8.5,4.7z"/>
  714. <path d="M5.5,7.4C5.8,7.4,6,7.6,6,7.9c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.2,0-0.3,0.1-0.3,0.3l0,0.1v4
  715. c0,0.2,0.1,0.3,0.3,0.3l0.1,0h2C5.8,13,6,13.2,6,13.5c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.7,0-1.3-0.5-1.3-1.2l0-0.1v-4
  716. c0-0.7,0.5-1.3,1.2-1.3l0.1,0H5.5z"/>
  717. </svg>`)+"</span>",l.onclick=function(){var y=i.decoderState.state,v=y.play,m=y.sound;v&&(m?(i.jSPlugin.closeSound(),i.setDecoderState({sound:!1})):(i.jSPlugin.openSound(),i.setDecoderState({sound:!0})))},l;case"recordvideo":return l.title="\u5F55\u5C4F",l.id=n,l.domString='<svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M11.6,5.3H4.7c-1.4,0-2.5,1.1-2.5,2.5v5.9c0,1.4,1.1,2.5,2.5,2.5h6.9c1.4,0,2.5-1.1,2.5-2.5V7.7 C14.1,6.4,13,5.3,11.6,5.3z M4.7,6.3h6.9c0.8,0,1.5,0.7,1.5,1.5v5.9c0,0.8-0.7,1.5-1.5,1.5H4.7c-0.8,0-1.5-0.7-1.5-1.5V7.7 C3.3,6.9,3.9,6.3,4.7,6.3z" /><path d="M16.6,6.7c0.9-0.8,2.3-0.1,2.4,1l0,0.1v5.7c0,1.2-1.3,1.9-2.3,1.2l-0.1-0.1L13.3,12 c-0.2-0.2-0.2-0.5-0.1-0.7c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.7c0.3,0.2,0.7,0.1,0.8-0.3l0-0.1V7.8c0-0.4-0.4-0.6-0.7-0.4 l-0.1,0l-3.3,2.7c-0.2,0.2-0.5,0.1-0.7-0.1c-0.2-0.2-0.1-0.5,0-0.6l0.1-0.1L16.6,6.7z" /></svg>',l.onclick=function(){var y=i.decoderState.state,v=y.play,m=y.recordvideo;v&&(m?(i.jSPlugin.stopSave(),i.setDecoderState({recordvideo:!1})):(i.jSPlugin.startSave("".concat(new Date().getTime())),i.setDecoderState({recordvideo:!0})))},l;case"capturePicture":return l.title="\u622A\u56FE",l.id=n,l.domString='<svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M10.8,7.7c-2,0-3.7,1.6-3.7,3.7S8.7,15,10.8,15c2,0,3.7-1.6,3.7-3.7S12.8,7.7,10.8,7.7z M10.8,8.7c1.5,0,2.7,1.2,2.7,2.7S12.2,14,10.8,14c-1.5,0-2.7-1.2-2.7-2.7S9.3,8.7,10.8,8.7z" /><path d="M8.6,3.7l-0.1,0C8,3.7,7.7,4,7.5,4.3l-1,1.7l-1.3,0C4,6.1,3.1,7,3.1,8.2v7.1 c0,1.2,0.9,2.1,2.1,2.1h11.1c1.2,0,2.1-0.9,2.1-2.1V8.2l0-0.1c-0.1-1.1-1-1.9-2.1-1.9l-1.3,0l-1.1-1.8c-0.2-0.4-0.7-0.6-1.1-0.6H8.6 z M8.6,4.7h4.2c0.1,0,0.2,0.1,0.3,0.1l1.2,2c0.1,0.2,0.3,0.2,0.4,0.2h1.6c0.6,0,1.1,0.5,1.1,1.1v7.1c0,0.6-0.5,1.1-1.1,1.1H5.1 c-0.6,0-1.1-0.5-1.1-1.1V8.2c0-0.6,0.5-1.1,1.1-1.1h1.6c0.2,0,0.3-0.1,0.4-0.2l1.2-2C8.4,4.7,8.5,4.7,8.6,4.7z" /></svg>',l.onclick=function(){var y=i.decoderState.state.play;y?i.jSPlugin.capturePicture("".concat(new Date().getTime())):console.log("\u89C6\u9891\u672A\u64AD\u653E\uFF0C\u65E0\u6CD5\u622A\u56FE")},l;case"talk":return l.title="\u5BF9\u8BB2",l.id=n,l.domString="<div></div>"+'<svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M10.1,2.7C8.5,2.7,7.2,4,7.2,5.6v5.2c0,1.6,1.3,2.9,2.9,2.9l0.2,0c1.5-0.1,2.7-1.4,2.7-2.9V5.6 C13,4,11.7,2.7,10.1,2.7z M10.1,3.7c1.1,0,1.9,0.9,1.9,1.9v5.2c0,1-0.8,1.8-1.8,1.9l-0.1,0c-1,0-1.9-0.9-1.9-1.9V5.6 C8.2,4.5,9,3.7,10.1,3.7z" /><path d="M15.1,8.5c0.2,0,0.4,0.2,0.5,0.4l0,0.1v1.7c0,3-2.5,5.5-5.5,5.5c-3,0-5.4-2.3-5.5-5.3l0-0.2V9 c0-0.3,0.2-0.5,0.5-0.5c0.2,0,0.4,0.2,0.5,0.4l0,0.1v1.7c0,2.5,2,4.5,4.5,4.5c2.4,0,4.4-1.9,4.5-4.3l0-0.2V9 C14.6,8.7,14.8,8.5,15.1,8.5z" /><path d="M13.5,17.7c0.3,0,0.5,0.2,0.5,0.5c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-7c-0.3,0-0.5-0.2-0.5-0.5 c0-0.2,0.2-0.4,0.4-0.5l0.1,0H13.5z" /><path d="M10.1,15.2c0.2,0,0.4,0.2,0.5,0.4l0,0.1v2.5c0,0.3-0.2,0.5-0.5,0.5c-0.2,0-0.4-0.2-0.5-0.4l0-0.1 v-2.5C9.6,15.4,9.8,15.2,10.1,15.2z" /></svg>',l.onclick=function(){var y=i.decoderState.state,v=y.talk,m=y.sound;if(v){console.log("\u7ED3\u675F\u5BF9\u8BB2"),i.setDecoderState({talk:!1}),i.jSPlugin.Talk.stopTalk();var w=Mt.findIndex(i.themeData.footer.btnList,function(R){return R.iconId==="sound"&&R.isrender===1&&R.defaultActive===1})>-1;i.themeData&&w&&(i.jSPlugin.openSound(),i.setDecoderState({sound:!0}))}else console.log("\u5F00\u59CB\u5BF9\u8BB2"),i.setDecoderState({talk:!0}),m&&(i.jSPlugin.closeSound(),i.setDecoderState({sound:!1})),i.jSPlugin.Talk.startTalk()},l;case"zoom":return l.title="\u7535\u5B50\u653E\u5927",l.id=n,l.domString="<div></div>"+'<svg fill="'.concat(l.color,`" version="1.1" id="\u56FE\u5C42_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  718. width="`).concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,`" viewBox="5 -6 5 32" style="enable-background:new 0 0 20 20.1;" xml:space="preserve">
  719. <path class="st1" d="M8.8,2.6c3.5,0,6.2,2.8,6.2,6.2s-2.8,6.2-6.2,6.2s-6.2-2.8-6.2-6.2S5.3,2.6,8.8,2.6z M8.8,3.9
  720. c-2.8,0-5,2.2-5,5s2.2,5,5,5s5-2.2,5-5S11.5,3.9,8.8,3.9z M12.7,12.7l3.9,3.9"/>
  721. <path class="st2" d="M11.2,9.5h-5c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h5c0.3,0,0.6,0.3,0.6,0.6S11.6,9.5,11.2,9.5z"/>
  722. <path class="st2" d="M8.7,12c-0.3,0-0.6-0.3-0.6-0.6v-5c0-0.3,0.3-0.6,0.6-0.6s0.6,0.3,0.6,0.6v5C9.3,11.8,9.1,12,8.7,12z"/>
  723. <path class="st2" d="M16.9,17.6c-0.1,0-0.3-0.1-0.4-0.2l-3.9-3.9c-0.2-0.2-0.2-0.6,0-0.8s0.6-0.2,0.8,0l3.9,3.9
  724. c0.2,0.2,0.2,0.6,0,0.8C17.2,17.5,17,17.6,16.9,17.6z"/>
  725. </svg>`),l.onclick=function(){var y=i.decoderState.state.zoom;y?(console.log("\u7ED3\u675F\u7535\u5B50\u653E\u5927"),i.setDecoderState({zoom:!1}),i.jSPlugin.Zoom.stopZoom()):(console.log("\u5F00\u59CB\u7535\u5B50\u653E\u5927"),i.jSPlugin.Zoom.startZoom(),i.setDecoderState({zoom:!0}))},l;case"pantile":return l.title="\u4E91\u53F0\u63A7\u5236",l.id=n,l.domString='<svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M10.2,7.8c1.6,0,2.9,1.3,2.9,2.9s-1.3,2.9-2.9,2.9s-2.9-1.3-2.9-2.9S8.5,7.8,10.2,7.8z M10.2,8.8c-1.1,0-1.9,0.9-1.9,1.9s0.9,1.9,1.9,1.9s1.9-0.9,1.9-1.9S11.2,8.8,10.2,8.8z" /><path d="M8.8,3.5c0.7-0.6,1.8-0.6,2.5-0.1l0.1,0.1l1.4,1.1c0.2,0.2,0.3,0.5,0.1,0.7 c-0.2,0.2-0.4,0.2-0.6,0.1l-0.1,0l-1.4-1.1C10.5,3.9,10,3.9,9.6,4.2L9.4,4.3L8,5.4C7.8,5.5,7.5,5.5,7.3,5.3c-0.2-0.2-0.1-0.5,0-0.6 l0.1-0.1L8.8,3.5z" /><path d="M2.5,12.3c-0.6-0.7-0.6-1.8-0.1-2.5l0.1-0.1l1.1-1.4c0.2-0.2,0.5-0.3,0.7-0.1 c0.2,0.2,0.2,0.4,0.1,0.6l0,0.1l-1.1,1.4C3,10.6,3,11.1,3.2,11.5l0.1,0.1L4.4,13c0.2,0.2,0.1,0.5-0.1,0.7c-0.2,0.2-0.5,0.1-0.6,0 l-0.1-0.1L2.5,12.3z" /><path d="M17.7,12.3c0.6-0.7,0.6-1.8,0.1-2.5l-0.1-0.1l-1.1-1.4c-0.2-0.2-0.5-0.3-0.7-0.1 c-0.2,0.2-0.2,0.4-0.1,0.6l0,0.1l1.1,1.4c0.3,0.4,0.3,0.9,0.1,1.3l-0.1,0.1L15.8,13c-0.2,0.2-0.1,0.5,0.1,0.7c0.2,0.2,0.5,0.1,0.6,0 l0.1-0.1L17.7,12.3z" /><path d="M8.8,18.2c0.7,0.6,1.8,0.6,2.5,0.1l0.1-0.1l1.4-1.1c0.2-0.2,0.3-0.5,0.1-0.7 c-0.2-0.2-0.4-0.2-0.6-0.1l-0.1,0l-1.4,1.1c-0.4,0.3-0.9,0.3-1.3,0.1l-0.1-0.1L8,16.3c-0.2-0.2-0.5-0.1-0.7,0.1 c-0.2,0.2-0.1,0.5,0,0.6l0.1,0.1L8.8,18.2z" /></svg>',l.onclick=function(){var y=i.decoderState.state,v=y.pantile,m=y.expend;if(v)console.log("\u9690\u85CF\u4E91\u53F0"),i.Ptz.hide(),i.setDecoderState({pantile:!1});else{if(console.log("\u663E\u793A\u4E91\u53F0"),i.isMobile&&!m)return console.log("\u79FB\u52A8\u7AEF\uFF0C\u975E\u5168\u5C4F\u72B6\u6001\u4E0D\u5C55\u793A\u4E91\u53F0"),!1;i.Ptz.show(),i.setDecoderState({pantile:!0})}},l;case"expend":return l.title="\u5168\u5C40\u5168\u5C4F",l.id=n,l.domString='<span><svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M3.4,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-1.2,1-2.3,2.2-2.3h1.8c0.3,0,0.5,0.2,0.5,0.5S7.2,4.1,6.9,4.1H5.2 c-0.7,0-1.2,0.6-1.2,1.3v1.8C3.9,7.4,3.7,7.6,3.4,7.6z" /><path d="M6.9,18.1H5.2c-1.2,0-2.2-1-2.2-2.2v-1.8c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8c0,0.7,0.6,1.2,1.2,1.2 h1.8c0.3,0,0.5,0.2,0.5,0.5S7.2,18.1,6.9,18.1z" /><path d="M15.7,18.1h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8c0.7,0,1.2-0.6,1.2-1.2v-1.8 c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8C17.9,17.1,16.9,18.1,15.7,18.1z" /><path d="M17.4,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-0.7-0.6-1.3-1.2-1.3h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8 c1.2,0,2.2,1,2.2,2.3v1.8C17.9,7.4,17.7,7.6,17.4,7.6z" /></svg>'+'<svg style="display:none" width="'.concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" fill="').concat(l.color,`" viewBox="-6 -6 32 32">
  726. <path class="st1" d="M5.7,8.1H3.9c-0.3,0-0.6-0.2-0.6-0.6S3.6,7,3.9,7h1.9c0.7,0,1.3-0.6,1.3-1.3V3.8c0-0.3,0.2-0.6,0.6-0.6
  727. s0.6,0.2,0.6,0.6v1.9C8.2,7,7.1,8.1,5.7,8.1z"/>
  728. <path class="st1" d="M7.6,17.7c-0.3,0-0.6-0.2-0.6-0.6v-1.9c0-0.7-0.6-1.3-1.3-1.3H3.9c-0.3,0-0.6-0.2-0.6-0.6s0.2-0.6,0.6-0.6h1.9
  729. c1.3,0,2.4,1.1,2.4,2.4v1.9C8.2,17.5,7.9,17.7,7.6,17.7z"/>
  730. <path class="st1" d="M13.4,17.7c-0.3,0-0.6-0.2-0.6-0.6v-1.9c0-1.3,1.1-2.4,2.4-2.4h1.9c0.3,0,0.6,0.2,0.6,0.6S17.5,14,17.2,14
  731. h-1.9c-0.7,0-1.3,0.6-1.3,1.3v1.9C14,17.5,13.8,17.7,13.4,17.7z"/>
  732. <path class="st1" d="M17.2,8.1h-1.9c-1.3,0-2.4-1.1-2.4-2.4V3.8c0-0.3,0.2-0.6,0.6-0.6S14,3.5,14,3.8v1.9C14,6.4,14.6,7,15.3,7h1.9
  733. c0.3,0,0.6,0.2,0.6,0.6S17.5,8.1,17.2,8.1z"/>
  734. </svg>
  735. </span>`),l.onclick=function(){var y=i.decoderState.state,v=y.webExpend,m=y.expend,w=y.play,R=y.pantile;if(!w)return!1;if(v)return console.log("\u6B63\u5728\u7F51\u7AD9\u5168\u5C4F"),!1;if(m)if(i.isMobile){var E=parseInt(getComputedStyle(document.getElementById("".concat(i.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(i.jSPlugin.id)).height,10);document.getElementById("".concat(i.jSPlugin.id,"-ez-iframe-footer-container"))&&(document.getElementById("".concat(i.jSPlugin.id,"-ez-iframe-footer-container")).style.marginTop="-32px"),document.getElementById("".concat(i.jSPlugin.id,"-headControl"))&&(document.getElementById("".concat(i.jSPlugin.id,"-headControl")).style.position="relative"),Bs(document.getElementById("".concat(i.jSPlugin.id,"-wrap")),i.jSPlugin.width,i.jSPlugin.height+E),i.jSPlugin.jSPlugin.JS_Resize(i.jSPlugin.width,i.jSPlugin.height),R&&(i.Ptz.hide(),i.setDecoderState({pantile:!1}))}else{console.log("\u53D6\u6D88\u5168\u5C40\u5168\u5C4F");var j=_o();j.then(function(T){console.log("\u53D6\u6D88\u5168\u5C4F",T,i.jSPlugin),i.jSPlugin.jSPlugin.JS_Resize(i.jSPlugin.width,i.jSPlugin.height)})}else if(console.log("\u6267\u884C\u5168\u5C40\u5168\u5C4F"),i.isMobile){var E=parseInt(getComputedStyle(document.getElementById("".concat(i.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(i.jSPlugin.id)).height,10);Hr(document.getElementById("".concat(i.jSPlugin.id,"-wrap"))),setTimeout(function(){var T=document.documentElement.clientWidth,d=document.documentElement.clientHeight;document.getElementById("".concat(i.jSPlugin.id)).style["backface-visibility"]="hidden",i.jSPlugin.jSPlugin.JS_Resize(d,T-E)},100)}else{var b=ui(document.getElementById("".concat(i.jSPlugin.id)));b.then(function(T){i.jSPlugin.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight)}).catch(function(T){console.log(T)})}i.setDecoderState({expend:!m})},l;case"webExpend":return l.title="\u7F51\u9875\u5168\u5C4F",l.id=n,l.domString='<span><svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M3.1,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-1.2,1-2.3,2.2-2.3h1.8c0.3,0,0.5,0.2,0.5,0.5S6.8,4.1,6.6,4.1H4.8 c-0.7,0-1.2,0.6-1.2,1.3v1.8C3.6,7.4,3.3,7.6,3.1,7.6z" /><path d="M15.3,18.1h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8c0.7,0,1.2-0.6,1.2-1.2v-1.8 c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8C17.6,17.1,16.6,18.1,15.3,18.1z" /><circle class="st2" cx="10.2" cy="10.4" r="1.1"/></svg>'+'<svg fill="'.concat(l.color,'" style="display:none;" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,`" viewBox="-6 -6 32 32">
  736. <path class="st1" d="M5.4,8.1H3.5C3.2,8.1,3,7.9,3,7.6s0.2-0.5,0.5-0.5h1.9c0.8,0,1.4-0.6,1.4-1.4V3.8c0-0.3,0.2-0.5,0.5-0.5
  737. s0.5,0.2,0.5,0.5v1.9C7.7,7,6.7,8.1,5.4,8.1z"/>
  738. <path class="st1" d="M13.1,17.7c-0.3,0-0.5-0.2-0.5-0.5v-1.9c0-1.3,1.1-2.4,2.4-2.4h1.9c0.3,0,0.5,0.2,0.5,0.5s-0.2,0.5-0.5,0.5H15
  739. c-0.8,0-1.4,0.6-1.4,1.4v1.9C13.6,17.4,13.4,17.7,13.1,17.7z"/>
  740. <circle class="st2" cx="10.2" cy="10.4" r="1.1"/>
  741. `)+"</svg></span>",l.onclick=function(){var y=i.decoderState.state,v=y.webExpend,m=y.expend,w=y.play;if(!w)return!1;if(m)return console.log("\u6B63\u5728\u5168\u5C40\u5168\u5C4F"),!1;if(v){console.log("\u53D6\u6D88\u7F51\u9875\u5168\u5C4F");var j=_o();j.then(function(T){i.jSPlugin.jSPlugin.JS_Resize(i.jSPlugin.width,i.jSPlugin.height)})}else{console.log("\u6267\u884C\u7F51\u9875\u5168\u5C4F");var R=0,E=0,b=ui(document.getElementById("".concat(i.jSPlugin.id,"-wrap")));b.then(function(T){console.log("\u5168\u5C4Fpromise",window.screen.availWidth),document.getElementById("".concat(i.jSPlugin.id,"-canvas-container"))&&(R=parseInt(window.getComputedStyle(document.getElementById("".concat(i.jSPlugin.id,"-canvas-container"))).height,10)),document.getElementById("".concat(i.jSPlugin.id,"-headControl"))&&(E=parseInt(window.getComputedStyle(document.getElementById("".concat(i.jSPlugin.id,"-headControl"))).height,10)),console.log("this.jSPlugin.JS_Resiz",R,E,document.body.clientWidth),i.jSPlugin.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight-R-E)}).catch(function(T){console.log(T)})}i.setDecoderState({webExpend:!v})},l;case"hd":return l.title="\u753B\u9762\u6E05\u6670\u5EA6",l.id=n,l.domString='<ul id="'.concat(this.jSPlugin.id,'-hdSelect" class="hd speed-select ').concat(this.isMobile?"mobile":"",'" style="display:none;">')+'<li class="selectOption default" style="height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;" name="option" id="'.concat(this.jSPlugin.id,'-select-hd">\u9AD8\u6E05</li>')+'<li class="selectOption default" style="height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;" name="option" id="'.concat(this.jSPlugin.id,'-select-sd">\u6807\u6E05</li>')+'<li class="selectOption cancel" style="'.concat(this.isMobile?"":"display:none;",'" name="option" id="').concat(this.jSPlugin.id,'-select-speed">\u53D6\u6D88</li>')+"</ul>"+'<span><svg fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,'" viewBox="-6 -6 32 32">')+'<path d="M17.4,16.5H3.1c-0.8,0-1.4-0.6-1.4-1.4V5.4c0-0.9,0.7-1.6,1.6-1.6h14.1c0.8,0,1.4,0.6,1.4,1.4v9.8 C18.8,15.9,18.2,16.5,17.4,16.5z M3.3,5C3.1,5,2.9,5.2,2.9,5.4v9.7c0,0.2,0.1,0.3,0.3,0.3h14.3c0.2,0,0.3-0.1,0.3-0.3V5.3 c0-0.2-0.1-0.3-0.3-0.3H3.3z" /><path d="M13.3,13.6h-1.6c-0.4,0-0.7-0.3-0.7-0.7V7.4c0-0.4,0.3-0.7,0.7-0.7h1.6c1.2,0,2.2,1,2.2,2.2v2.4 C15.6,12.6,14.6,13.6,13.3,13.6z M12.2,12.5h1.1c0.6,0,1.1-0.5,1.1-1.1V9c0-0.6-0.5-1.1-1.1-1.1h-1.1V12.5z" /><path d="M5.5,13.6c-0.3,0-0.6-0.2-0.6-0.6V7.3C5,7,5.2,6.8,5.5,6.8S6.1,7,6.1,7.3v5.7C6.1,13.4,5.8,13.6,5.5,13.6z" /><path d="M9.2,13.6c-0.3,0-0.6-0.2-0.6-0.6V7.3c0-0.3,0.2-0.6,0.6-0.6S9.8,7,9.8,7.3v5.7C9.8,13.4,9.5,13.6,9.2,13.6z" /><rect x="5.6" y="9.6" width="3.6" height="1.1" /></svg>'+'<svg style="display:none" fill="'.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,`" viewBox="-6 -8 40 44">
  742. <path d="M24.1,23.8h-20c-1.1,0-1.9-0.9-1.9-1.9V8.4c0-1.2,1-2.2,2.1-2.2h19.7c1.1,0,1.9,0.9,1.9,1.9v13.8
  743. C26,23,25.1,23.8,24.1,23.8z M4.3,7.7C4,7.7,3.7,8,3.7,8.4v13.5c0,0.2,0.2,0.4,0.4,0.4h20c0.2,0,0.4-0.2,0.4-0.4V8.2
  744. c0-0.2-0.2-0.4-0.4-0.4H4.3z"/>
  745. <path d="M18.4,19.8h-2.2c-0.5,0-0.9-0.4-0.9-0.9v-7.8c0-0.5,0.4-0.9,0.9-0.9h2.2c1.7,0,3.1,1.4,3.1,3.1v3.3
  746. C21.5,18.4,20.1,19.8,18.4,19.8z M16.7,18.3h1.6c0.9,0,1.6-0.7,1.6-1.6v-3.3c0-0.9-0.7-1.6-1.6-1.6h-1.6V18.3z"/>
  747. <path d="M10.5,19.8c1.2,0,2.1-0.3,2.7-0.9c0.6-0.6,0.9-1.3,0.9-2.1c0-0.8-0.3-1.4-0.9-1.8c-0.4-0.2-1.1-0.5-2.2-0.8
  748. l0,0l-1-0.2c-0.4-0.1-0.8-0.2-1-0.4c-0.4-0.2-0.6-0.5-0.6-0.9c0-0.4,0.1-0.6,0.4-0.9s0.7-0.3,1.3-0.3c0.8,0,1.4,0.2,1.8,0.6
  749. c0.2,0.3,0.3,0.6,0.4,0.9l0,0h1.4c0-0.6-0.2-1.1-0.5-1.6c-0.6-0.8-1.6-1.2-2.9-1.2c-1,0-1.8,0.3-2.4,0.8c-0.6,0.5-0.9,1.2-0.9,2
  750. c0,0.7,0.3,1.3,1,1.7c0.4,0.2,0.9,0.4,1.7,0.6l0,0l1.2,0.3c0.6,0.2,1.1,0.3,1.3,0.4c0.3,0.2,0.5,0.5,0.5,0.9c0,0.5-0.2,0.9-0.6,1.1
  751. s-0.9,0.4-1.5,0.4c-0.9,0-1.6-0.2-2-0.7c-0.2-0.3-0.3-0.6-0.4-1.1l0,0H6.8c0,0.9,0.3,1.6,0.9,2.2C8.2,19.5,9.2,19.8,10.5,19.8z"/>
  752. <defs>
  753. <filter id="Adobe_OpacityMaskFilter" filterUnits="userSpaceOnUse" x="15.2" y="10.3" width="6.2" height="9.5">
  754. <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/>
  755. </filter>
  756. </defs>
  757. <mask maskUnits="userSpaceOnUse" x="15.2" y="10.3" width="6.2" height="9.5" id="mask-2_2_">
  758. <g class="st2">
  759. <path id="path-1_2_" class="st3" d="M24.1,23.1h-20c-0.6,0-1.2-0.5-1.2-1.2V8.2C2.9,7.5,3.5,7,4.1,7h19.7c0.8,0,1.4,0.6,1.4,1.4
  760. v13.5C25.2,22.6,24.7,23.1,24.1,23.1z"/>
  761. </g>
  762. </mask>
  763. <defs>
  764. <filter id="Adobe_OpacityMaskFilter_1_" filterUnits="userSpaceOnUse" x="6.8" y="10.3" width="7.3" height="9.5">
  765. <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/>
  766. </filter>
  767. </defs>
  768. <mask maskUnits="userSpaceOnUse" x="6.8" y="10.3" width="7.3" height="9.5" id="mask-2_3_">
  769. <g class="st5">
  770. <path id="path-1_3_" class="st3" d="M24.1,23.1h-20c-0.6,0-1.2-0.5-1.2-1.2V8.2C2.9,7.5,3.5,7,4.1,7h19.7c0.8,0,1.4,0.6,1.4,1.4
  771. v13.5C25.2,22.6,24.7,23.1,24.1,23.1z"/>
  772. </g>
  773. </mask>
  774. </svg>
  775. `)+`<span class='speed-select-mask' style="display:none" id="`.concat(this.jSPlugin.id,'-select-hd-mask"></span>')+"</span>",l.onclick=function(y){var v=i.decoderState.state,m=v.hd,w=v.expend;m&&y.target.id==="".concat(i.jSPlugin.id,"-select-sd")?(console.log("\u5207\u6362\u5230\u6807\u6E05"),i.jSPlugin.changeVideoLevel(0),i.setDecoderState({hd:!1})):!m&&y.target.id==="".concat(i.jSPlugin.id,"-select-hd")&&(i.jSPlugin.changeVideoLevel(1),i.setDecoderState({hd:!0})),i.showHD=!i.showHD,document.getElementById("".concat(i.jSPlugin.id,"-hdSelect"))&&(document.getElementById("".concat(i.jSPlugin.id,"-hdSelect")).style.display=document.getElementById("".concat(i.jSPlugin.id,"-hdSelect")).style.display==="none"?"block":"none",i.isMobile&&(document.getElementById("".concat(i.jSPlugin.id,"-select-hd-mask")).style.display=document.getElementById("".concat(i.jSPlugin.id,"-select-hd-mask")).style.display==="none"?"block":"none")),i.isMobile&&w&&i.showHD?document.getElementById("".concat(i.jSPlugin.id,"-hdSelect")).className="hd speed-select mobile expend":document.getElementById("".concat(i.jSPlugin.id,"-hdSelect")).className=i.isMobile?"hd speed-select mobile":"speed-select"},l;case"speed":l.title="\u56DE\u653E\u500D\u901F",l.id=n,l.domString='<ul id="'.concat(this.jSPlugin.id,'-speedSelect" class="speed speed-select ').concat(this.isMobile?"mobile":"",'" style="display:none;">')+'<li class="selectOption default" style="height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;" name="option" id="'.concat(this.jSPlugin.id,'-select-speed4">4\u500D</li>')+'<li class="selectOption default" style="height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;" name="option" id="'.concat(this.jSPlugin.id,'-select-speed2">2\u500D</li>')+'<li class="selectOption active" style="height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;" name="option" id="'.concat(this.jSPlugin.id,'-select-speed1">1\u500D\uFF08\u6B63\u5E38\u64AD\u653E\uFF09</li>')+'<li class="selectOption default" style="height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;" name="option" id="'.concat(this.jSPlugin.id,'-select-speed05">0.5\u500D</li>')+'<li class="selectOption cancel" style="'.concat(this.isMobile?"":"display:none;",'" name="option" id="').concat(this.jSPlugin.id,'-select-speed">\u53D6\u6D88</li>')+"</ul>"+`<span>
  776. <div style="font-size: 12px;
  777. vertical-align: bottom;
  778. display: inline-flex;
  779. padding: 0px 7px;
  780. width: 48px;
  781. line-height: 24px;
  782. justify-content: center;
  783. border: 1px solid `.concat(l.color,`;
  784. text-align: center;border-radius: 12.5px;"
  785. id="`).concat(this.jSPlugin.id,`-speed-text"
  786. >`).concat(this.nextRate===1?"\u500D\u901F":"".concat(this.nextRate,"\u500D").replace("3","0.5"),`</div>
  787. `)+`<span class='speed-select-mask' style="display:none" id="`.concat(this.jSPlugin.id,'-select-mask"></span>')+"</span>";var _=function(v){console.log("setLiActive",v),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[0].className=document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[0].className.replace("active","default"),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[1].className=document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[1].className.replace("active","default"),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[2].className=document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[2].className.replace("active","default"),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[3].className=document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[3].className.replace("active","default"),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[v].className=document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).childNodes[v].className.replace("default","active")};return this.isMobile||(l.onmouseenter=function(y){console.log("\u9F20\u6807\u79FB\u5165",y),i.setDecoderState({speed:!0}),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).style.display="block")},l.onmouseleave=function(y){console.log("\u9F20\u6807\u79FB\u51FA",y),i.setDecoderState({speed:!1}),document.getElementById("".concat(i.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).style.display="none")}),l.onclick=function(y){var v=i.decoderState.state,m=v.speed,w=v.expend;if(!m&&i.isMobile&&(document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).className=w?"speed speed-select mobile expend":"speed speed-select mobile"),i.nextRate=1,y.target.id)switch(y.target.id){case"".concat(i.jSPlugin.id,"-select-speed1"):console.log("\u500D\u901F1"),i.nextRate=1,i.jSPlugin.jSPlugin.JS_Speed(i.nextRate),document.getElementById("".concat(i.jSPlugin.id,"-speed-text"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speed-text")).innerHTML="\u500D\u901F",_(2)),i.setDecoderState({speed:!m});break;case"".concat(i.jSPlugin.id,"-select-speed2"):console.log("\u500D\u901F2"),i.nextRate=2,i.jSPlugin.jSPlugin.JS_Speed(i.nextRate),document.getElementById("".concat(i.jSPlugin.id,"-speed-text"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speed-text")).innerHTML="2\u500D",_(1)),i.setDecoderState({speed:!m});break;case"".concat(i.jSPlugin.id,"-select-speed4"):console.log("\u500D\u901F4"),i.nextRate=4,i.jSPlugin.jSPlugin.JS_Speed(i.nextRate),document.getElementById("".concat(i.jSPlugin.id,"-speed-text"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speed-text")).innerHTML="4\u500D",_(0)),i.setDecoderState({speed:!m});break;case"".concat(i.jSPlugin.id,"-select-speed05"):console.log("\u500D\u901F05"),i.nextRate=3,i.jSPlugin.jSPlugin.JS_Speed(i.nextRate),document.getElementById("".concat(i.jSPlugin.id,"-speed-text"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speed-text")).innerHTML="0.5\u500D",_(3)),i.setDecoderState({speed:!m});break;default:i.isMobile?i.setDecoderState({speed:!m}):i.setDecoderState({speed:!0});break}!i.isMobile&&y.target.id==="".concat(i.jSPlugin.id,"-speed-text")?document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).style.display="block":document.getElementById("".concat(i.jSPlugin.id,"-speedSelect"))&&(document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).style.display=document.getElementById("".concat(i.jSPlugin.id,"-speedSelect")).style.display==="none"?"block":"none")},l;case"deviceName":return l.title="\u8BBE\u5907\u540D\u79F0",l.id=n,l.domString="<span>\u8BBE\u5907\u540D\u79F0</span>",l.onclick=function(){},l;case"deviceID":return l.title="\u8BBE\u5907\u5E8F\u5217\u53F7",l.id=n,l.domString="<span>\u8BBE\u5907\u5E8F\u5217\u53F7</span>",l.onclick=function(){},l;case"cloudRec":return l.title="\u4E91\u5B58\u50A8\u56DE\u653E",l.id=n,l.domString=`
  788. <span>
  789. <svg fill="`.concat(l.color,'" version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,`" viewBox="-10 0 40 15">
  790. <path d="M9.5,13.1c-0.3,0-0.5-0.2-0.5-0.5V8.8c0-0.3,0.2-0.5,0.5-0.5S10,8.5,10,8.8v3.8C10,12.8,9.8,13.1,9.5,13.1z"/>
  791. <path d="M7.6,10.6c-0.1,0-0.3-0.1-0.4-0.2C7,10.2,7,9.9,7.3,9.7l1.9-1.7c0.2-0.2,0.5-0.2,0.7,0l1.8,1.7
  792. c0.2,0.2,0.2,0.5,0,0.7c-0.2,0.2-0.5,0.2-0.7,0L9.5,9.1l-1.6,1.4C7.8,10.6,7.7,10.6,7.6,10.6z"/>
  793. <path d="M13.2,15.7H5.6c-2.1-0.1-3.8-1.8-3.8-3.9c0-1.8,1.3-3.4,3-3.8c0.4-2.2,2.3-3.9,4.6-3.9c2.3,0,4.2,1.7,4.6,3.8
  794. c1.8,0.4,3.1,1.9,3.1,3.8C17.1,13.9,15.4,15.7,13.2,15.7z M5.6,14.7h7.6c1.6,0,2.9-1.3,2.9-2.9c0-1.5-1.1-2.7-2.6-2.9l-0.4,0l0-0.4
  795. c-0.2-1.9-1.7-3.3-3.6-3.3C7.5,5.1,6,6.6,5.8,8.5l0,0.4l-0.4,0c-1.4,0.2-2.5,1.4-2.5,2.9C2.8,13.3,4.1,14.6,5.6,14.7z"/>
  796. </svg>
  797. </span>
  798. `),l.onclick=function(){console.log("\u70B9\u51FB\u4E91\u56DE\u653E"),i.setDecoderState({type:"cloud.rec",cloudRec:!0,rec:!1}),i.jSPlugin.changePlayUrl({type:"cloud.rec"}),console.log(i.jSPlugin);var y=Ze("begin",i.jSPlugin.url)||new Date().Format("yyyyMMdd");i.Rec.renderRec("".concat(y.slice(0,4),"-").concat(y.slice(4,6),"-").concat(y.slice(6,8)))},l;case"rec":return l.title="\u672C\u5730\u5B58\u50A8",l.id=n,l.domString=`
  799. <span>
  800. <svg fill=`.concat(l.color,' version="1.1" xmlns="http://www.w3.org/2000/svg" width="').concat(this.jSPlugin.width>Ee?48:32,'" height="').concat(this.jSPlugin.width>Ee?48:32,`" viewBox="0 0 40 15">
  801. <path d="M13,16.3H5.5c-1.1,0-2-0.9-2-2V3.8c0-1.1,0.9-2,2-2h5.4c0.5,0,1,0.2,1.4,0.6l2.1,2.1C14.8,4.8,15,5.3,15,5.9
  802. v8.4C15,15.4,14.1,16.3,13,16.3z M5.5,2.8c-0.6,0-1,0.4-1,1v10.5c0,0.6,0.4,1,1,1H13c0.6,0,1-0.4,1-1V5.9c0-0.3-0.1-0.5-0.3-0.7
  803. L11.6,3c-0.2-0.2-0.4-0.3-0.7-0.3H5.5z"/>
  804. <path d="M6.3,7.3C6,7.3,5.8,7,5.8,6.8V4.5C5.8,4.2,6,4,6.3,4s0.5,0.2,0.5,0.5v2.2C6.8,7,6.6,7.3,6.3,7.3z"/>
  805. <path d="M8.5,7.3C8.3,7.3,8,7,8,6.8V4.5C8,4.2,8.3,4,8.5,4S9,4.2,9,4.5v2.2C9,7,8.8,7.3,8.5,7.3z"/>
  806. <path d="M10.8,7.3c-0.3,0-0.5-0.2-0.5-0.5V4.5c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v2.2C11.3,7,11.1,7.3,10.8,7.3z"
  807. />
  808. </svg>
  809. </span>
  810. `),l.onclick=function(){console.log("\u70B9\u51FB\u672C\u5730\u56DE\u653E"),i.setDecoderState({type:"rec",cloudRec:!1,rec:!0}),i.jSPlugin.changePlayUrl({type:"rec"}),console.log(i.jSPlugin);var y=Ze("begin",i.jSPlugin.url)||new Date().Format("yyyyMMdd");i.Rec.renderRec("".concat(y.slice(0,4),"-").concat(y.slice(4,6),"-").concat(y.slice(6,8)))},l;default:return l}}},{key:"initThemeData",value:function(){var n=this,i=this.themeData,r=i.header,a=i.footer,s=this.jSPlugin.id;if(this.header=Gr.header,this.footer=Gr.footer,this.isNeedRenderHeader=Mt.findIndex(r.btnList,function(b){return b.isrender>0})>=0,this.isMobile&&(this.isNeedRenderHeader=Mt.findIndex(r.btnList,function(b){return b.isrender>0&&b.iconId==="deviceID"||b.isrender>0&&b.iconId==="deviceName"})>=0),this.isNeedRenderFooter=Mt.findIndex(a.btnList,function(b){return b.isrender>0})>=0,this.isNeedRenderTimeLine=Mt.findIndex(r.btnList,function(b){return b.iconId==="cloudRec"&&b.isrender===1||b.iconId==="rec"&&b.isrender===1})>=0&&!this.jSPlugin.disabledTimeLine,["date-switch-container-wrap","rec-type-container-wrap","mobile-rec-wrap","mobile-ez-ptz-container"].forEach(function(b,j){document.getElementById(b)&&document.getElementById(b).parentElement.removeChild(document.getElementById(b))}),this.isNeedRenderHeader)if(document.getElementById("".concat(this.jSPlugin.id,"-headControl")))document.getElementById("".concat(this.jSPlugin.id,"-headControl")).innerHTML="<div id='".concat(this.jSPlugin.id,"-headControl-left' style='display:flex'></div><div id='").concat(this.jSPlugin.id,"-headControl-right' style='display:flex'></div>");else{var l=document.createElement("div");l.setAttribute("id","".concat(this.jSPlugin.id,"-headControl")),l.setAttribute("class","header-controls"),l.innerHTML="<div id='".concat(this.jSPlugin.id,`-headControl-left' class="header-controls-left" style='display:flex'></div><div id='`).concat(this.jSPlugin.id,`-headControl-right' class="header-controls-right" style='display:flex'></div>`);var C={height:this.jSPlugin.width>Ee?"48px":"32px","line-height":this.jSPlugin.width>Ee?"48px":"32px",display:"flex","justify-content":"space-between",top:0,"z-index":1,background:"#000000",color:"#FFFFFF",width:"100%"};l.style=oa(C),document.getElementById("".concat(s,"-wrap")).insertBefore(l,document.getElementById(s));var _=setInterval(function(){window.EZUIKit[n.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(_)},50)}else document.getElementById("".concat(this.jSPlugin.id,"-headControl"))&&document.getElementById("".concat(this.jSPlugin.id,"-headControl")).parentElement.removeChild(document.getElementById("".concat(this.jSPlugin.id,"-headControl")));if(this.isNeedRenderFooter)if(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")))document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).innerHTML='<div id="'.concat(this.jSPlugin.id,`-audioControls" class="footer-controls" style='display:flex;justify-content: space-between;height: `).concat(this.jSPlugin.width>Ee?48:32,"px;width:100%;'><div id='").concat(this.jSPlugin.id,`-audioControls-left' class="footer-controls-left" style='display:flex'></div><div id='`).concat(this.jSPlugin.id,`-audioControls-right' class="footer-controls-right" style='display:flex'></div></div>`));else{var y=document.createElement("div");y.setAttribute("id","".concat(this.jSPlugin.id,"-ez-iframe-footer-container")),y.setAttribute("class","ez-iframe-footer-container");var v={"min-height":this.jSPlugin.width>Ee?"48px":"32px","max-height":this.jSPlugin.width>Ee?"96px":"80px",position:"relative","margin-top":this.jSPlugin.width>Ee?"-48px":"-32px",display:"flex","flex-wrap":"wrap","justify-content":"space-between","z-index":999,top:0,color:"#FFFFFF",width:"100%"};y.style=oa(v),y.innerHTML='<div id="'.concat(this.jSPlugin.id,`-audioControls" class="footer-controls" style='display:flex;height:`).concat(this.jSPlugin.width>Ee?48:32,"px;justify-content: space-between;width:100%;z-index:999;position: relative;'><div id='").concat(this.jSPlugin.id,`-audioControls-left' class="footer-controls-left" style='display:flex;margin-lefacti'></div><div id='`).concat(this.jSPlugin.id,`-audioControls-right' class="footer-controls-right" style='display:flex'></div></div>`),Ln(y,document.getElementById(s))}else document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container"))&&document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")).parentElement.removeChild(document.getElementById("".concat(this.jSPlugin.id,"-ez-iframe-footer-container")));if(this.isNeedRenderHeader&&document.getElementById("".concat(this.jSPlugin.id,"-headControl"))&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.background=r.backgroundColor,document.getElementById("".concat(this.jSPlugin.id,"-headControl")).style.color=r.color,r.btnList.map(function(b,j){b.isrender&&n.renderHeader(b.iconId,b.part)})),this.isNeedRenderFooter&&document.getElementById("".concat(this.jSPlugin.id,"-audioControls"))&&(document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.background=a.backgroundColor,document.getElementById("".concat(this.jSPlugin.id,"-audioControls")).style.color=a.color,a.btnList.map(function(b,j){b.isrender&&n.renderFooter(b.iconId,b.part)})),this.isNeedRenderTimeLine)if(this.isMobile)document.getElementById("".concat(this.jSPlugin.id,"-headControl-right"))&&(document.getElementById("".concat(this.jSPlugin.id,"-headControl-right")).style.display="none"),this.Rec=new Xs(this.jSPlugin);else{this.Rec=new Ys(this.jSPlugin);var m=setInterval(function(){window.EZUIKit[n.jSPlugin.id].state.EZUIKitPlayer.init&&clearInterval(m)},50)}var w=Mt.findIndex(this.themeData.footer.btnList,function(b){return b.iconId==="pantile"&&b.isrender===1})>=0&&!this.jSPlugin.disabledPTZ;w&&(this.isMobile&&(this.MobilePtz=new tl(this.jSPlugin)),this.Ptz=new Qs(this.jSPlugin));var R=function(){var j=n.decoderState.state,T=j.expend,d=j.webExpend,f=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;f||(n.jSPlugin.reSize(n.jSPlugin.params.width,n.jSPlugin.params.height),T&&n.setDecoderState({expend:!1}),d&&n.setDecoderState({webExpend:!1}))};if(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(b){window.addEventListener(b,function(j){return R()})}),this.themeData.poster){this.jSPlugin.poster=this.themeData.poster;var E=setInterval(function(){window.EZUIKit[n.jSPlugin.id].state.EZUIKitPlayer.init&&(clearInterval(E),n.jSPlugin.setPoster(n.themeData.poster))},50)}this.inited=!0,this.getDeviceInfo()}},{key:"getDeviceInfo",value:function(){var n=this,i=function(a){a.code==200&&a.data&&(document.getElementById("".concat(n.jSPlugin.id,"-deviceName-content"))&&(document.getElementById("".concat(n.jSPlugin.id,"-deviceName-content")).style.maxWidth="160px",document.getElementById("".concat(n.jSPlugin.id,"-deviceName-content")).style.overflow="hidden",document.getElementById("".concat(n.jSPlugin.id,"-deviceName-content")).style.textOverflow="ellipsis",document.getElementById("".concat(n.jSPlugin.id,"-deviceName-content")).innerHTML=a.data.deviceName),document.getElementById("".concat(n.jSPlugin.id,"-deviceID-content"))&&(document.getElementById("".concat(n.jSPlugin.id,"-deviceID-content")).style.maxWidth="160px",document.getElementById("".concat(n.jSPlugin.id,"-deviceID-content")).style.overflow="hidden",document.getElementById("".concat(n.jSPlugin.id,"-deviceID-content")).style.textOverflow="ellipsis",document.getElementById("".concat(n.jSPlugin.id,"-deviceID-content")).innerHTML=Ue(n.jSPlugin.url).deviceSerial))};zn(this.jSPlugin.env.domain+"/api/lapp/device/info","POST",{accessToken:this.jSPlugin.accessToken,deviceSerial:Ue(this.jSPlugin.url).deviceSerial},"",i)}},{key:"editStart",value:function(n){var i=document.getElementById("".concat(this.jSPlugin.id,"-audioControls")),r=document.getElementById("".concat(this.jSPlugin.id,"-headControl"));r&&r.setAttribute("class","header-controls themeEditing"),i&&i.setAttribute("class","footer-controls themeEditing"),this.setDecoderState({isEditing:!0})}},{key:"editEnd",value:function(n){var i=document.getElementById("".concat(this.jSPlugin.id,"-audioControls")),r=document.getElementById("".concat(this.jSPlugin.id,"-headControl"));r&&r.setAttribute("class","header-controls"),i&&i.setAttribute("class","footer-controls"),this.setDecoderState({isEditing:!1})}},{key:"webExpend",value:function(){var n=this,i=this.decoderState.state;i.webExpend;var r=i.expend,a=i.play;if(!a)return!1;if(r)return console.log("\u6B63\u5728\u5168\u5C40\u5168\u5C4F"),!1;console.log("\u6267\u884C\u7F51\u9875\u5168\u5C4F");var s=0,l=0,C=ui(document.getElementById("".concat(this.jSPlugin.id,"-wrap")));C.then(function(_){console.log("\u5168\u5C4Fpromise",window.screen.availWidth),document.getElementById("".concat(n.jSPlugin.id,"-canvas-container"))&&(s=parseInt(window.getComputedStyle(document.getElementById("".concat(n.jSPlugin.id,"-canvas-container"))).height,10)),document.getElementById("".concat(n.jSPlugin.id,"-headControl"))&&(l=parseInt(window.getComputedStyle(document.getElementById("".concat(n.jSPlugin.id,"-headControl"))).height,10)),console.log("this.jSPlugin.JS_Resiz",s,l,document.body.clientWidth),n.jSPlugin.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight-s-l)}).catch(function(_){console.log(_)})}},{key:"expend",value:function(){var n=this,i=this.decoderState.state,r=i.webExpend;i.expend;var a=i.play;if(i.pantile,!a)return!1;if(r)return console.log("\u6B63\u5728\u7F51\u7AD9\u5168\u5C4F"),!1;if(console.log("\u6267\u884C\u5168\u5C40\u5168\u5C4F"),this.isMobile){var s=parseInt(getComputedStyle(document.getElementById("".concat(this.jSPlugin.id,"-wrap"))).height,10)-parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).height,10);Hr(document.getElementById("".concat(this.jSPlugin.id,"-wrap"))),setTimeout(function(){var C=document.documentElement.clientWidth,_=document.documentElement.clientHeight;document.getElementById("".concat(n.jSPlugin.id)).style["backface-visibility"]="hidden",n.jSPlugin.jSPlugin.JS_Resize(_,C-s)},100)}else{var l=ui(document.getElementById("".concat(this.jSPlugin.id)));l.then(function(C){n.jSPlugin.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight)}).catch(function(C){console.log(C)})}}}]),h}();Date.prototype.Format=function(h){var u={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(h)&&(h=h.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in u)new RegExp("("+n+")").test(h)&&(h=h.replace(RegExp.$1,RegExp.$1.length==1?u[n]:("00"+u[n]).substr((""+u[n]).length)));return h};var gl=function(){function h(u,n){if(Tt(this,h),this.params=u,this.state={},this.jsPlugin=n,this.url="https://log.ys7.com/statistics.do?",u.env)switch(u.env){case"test12":this.url="https://test12dclog.ys7.com/statistics.do?";break;case"online":break;default:this.url=u.env;break}}return Pt(h,[{key:"uuid",value:function(){for(var n=[],i="0123456789abcdef",r=0;r<36;r++)n[r]=i.substr(Math.floor(Math.random()*16),1);n[14]="4",n[19]=i.substr(n[19]&3|8,1),n[8]=n[13]=n[18]=n[23]="-";var a=n.join("");return a}},{key:"dclog",value:function(n){var i=this.url,r=Object.assign({},{systemName:"open_website_monitor"},{bn:"ezuikit-js"},n,{un:n.url},{st:new Date().getTime(),h:window.location.pathname});Object.keys(r).forEach(function(s,l){var C=r[s];typeof r[s]=="string"&&(C=r[s].replace("%","%25")),typeof r[s]!="undefined"&&(i+="".concat(l===0?"":"&").concat(s,"=").concat(encodeURIComponent(C)))});var a=new Image;a.src=i}},{key:"localInfoLog",value:function(n){var i=this.url,r=window.location.protocol+"//"+window.location.host,a={systemName:"open_netstream_localinfo",Ver:"v6.0.0",PlatAddr:r,ExterVer:"v6.0.0",OpId:this.uuid(),CltType:102,AppId:"",playurl:encodeURIComponent(this.jsPlugin.url),StartTime:new Date().Format("yyyy-MM-dd hh:mm:ss.S"),OS:navigator.platform};a=Object.assign(a,n),Object.keys(a).forEach(function(l,C){var _=a[l];typeof a[l]=="string"&&(_=a[l].replace("%","%25")),typeof a[l]!="undefined"&&(i+="".concat(C===0?"":"&").concat(l,"=").concat(encodeURIComponent(_)))});var s=new Image;s.src=i}},{key:"playLog",value:function(n){var i=this.url,r=i,a={systemName:"open_netstream_play_main",playurl:encodeURIComponent(this.jsPlugin.url),Time:new Date().Format("yyyy-MM-dd hh:mm:ss.S"),Via:2,OpId:this.uuid()};a=Object.assign(a,n),Object.keys(a).forEach(function(l,C){var _=a[l];typeof a[l]=="string"&&(_=a[l].replace("%","%25")),typeof a[l]!="undefined"&&(r+="".concat(C===0?"":"&").concat(l,"=").concat(encodeURIComponent(_)))});var s=new Image;s.src=r}}]),h}();(function(h,u){Se(Bn)==="object"&&Se(Bn.exports)==="object"?Bn.exports=h.document?u(h,!0):function(n){if(!n.document)throw new Error("EZUIPlayer requires a window with a document");return u(n)}:u(h)})(typeof window!="undefined"?window:void 0,function(h,u){var n;function i(v,m){for(var w=document.getElementsByTagName("head")[0].getElementsByTagName("script"),R=!1,E=0;E<w.length;E++)w[E].getAttribute("src")==v&&(R=!0,m());if(!R){var b=document.createElement("script");b.setAttribute("src",v),b.onload=m,document.getElementsByTagName("head")[0].appendChild(b)}}function r(v,m){for(var w=document.getElementsByTagName("head")[0].getElementsByTagName("link"),R=!1,E=0;E<w.length;E++)w[E].getAttribute("href")==v&&(R=!0,m());if(!R){var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.href=v,b.onload=m,document.getElementsByTagName("head")[0].appendChild(b)}}function a(v,m,w,R,E,b){var j=v,T=new XMLHttpRequest;T.onreadystatechange=function(){if(T.readyState==4&&T.status==200){var x=JSON.parse(T.responseText);E(x)}},T.open(m,j,!0);var d=new FormData;for(var f in w)d.append(f,w[f]);T.send(d)}var s={EZUIKitPlayer:void 0,EZUIKitTalk:void 0,opt:{apiDomain:"https://open.ys7.com/api/lapp/live/talk/url",filePath:"https://open.ys7.com/assets/ezuikit_v2.6.4",accessToken:"",url:"",deviceSerial:"",channelNo:"",id:"",talkLink:"",rtcUrl:"",ttsUrl:"",stream:"",isReliesReady:!1,template:"simple",plugin:[],audio:1,autoplay:1,videoLoading:!1},state:(n={countTimer:void 0,recodeTime:0,recodeTimer:void 0},Zn(n,"recodeTime",0),Zn(n,"fetchDefaultList",!1),Zn(n,"page",0),Zn(n,"pageSize",5),n),handleTalkSuccess:function(){},handleTalkError:function(){}},l="https://open.ys7.com",C=l,_=function(m){var w=this;this.opt={id:m.id,apiDomain:l+"/api/lapp/live/talk/url",filePath:C+"/assets/ezuikit_v2.6.4",decoderVersion:"",accessToken:"",url:"",deviceSerial:"",channelNo:"",talkLink:"",rtcUrl:"",ttsUrl:"",stream:"",isReliesReady:!1,template:"simple",plugin:[],audio:1,autoplay:1,fullScreenStatus:0,bSupporDoubleClickFull:!0,videoLoading:!1},this.params=m,m.id&&(this.opt.id=m.id),m.accessToken&&(this.opt.accessToken=m.accessToken),typeof m.audio!="undefined"&&(this.opt.audio=m.audio),typeof m.decoderVersion!="undefined"&&(this.opt.decoderVersion=m.decoderVersion),typeof m.env!="undefined"&&(typeof m.env.domain!="undefined"&&(l=m.env.domain,this.opt.apiDomain=l+"/api/lapp/live/talk/url"),typeof m.env.filePathDomain!="undefined"&&(C=m.env.filePathDomain,this.opt.filePathDomain=m.env.filePathDomain)),m.url&&(this.opt.url=m.url,this.opt.deviceSerial=m.url.split("/")[3],this.opt.channelNo=m.url.split("/")[4].split(".")[0]),typeof m.template!="undefined"&&(this.opt.template=m.template),m.plugin&&(this.opt.plugin=m.plugin),typeof m.autoplay!="undefined"&&(this.opt.autoplay=m.autoplay?1:0),typeof m.bSupporDoubleClickFull!="undefined"&&(this.opt.bSupporDoubleClickFull=m.bSupporDoubleClickFull),typeof m.handleTalkSuccess!="undefined"&&(h.EZUIKit.handleTalkSuccess=m.handleTalkSuccess),typeof m.handleTalkError!="undefined"&&(h.EZUIKit.handleTalkError=m.handleTalkError);var R=this.opt.id,E=document.getElementById(R);E.style.fontSize=0,E.style.overflowY="auto",E.style.position="relative";var b=document.createElement("iframe");function j(){switch(w.opt.template){case"simple":var B=l+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+w.opt.url.replace("?","&")+"&autoplay="+w.opt.autoplay+"&audio="+w.opt.audio+"&accessToken="+m.accessToken+"&templete=0&id="+R+"&decoderVersion="+w.opt.decoderVersion,U="";return typeof m.controls!="undefined"&&m.controls&&(console.log("typeof",Se(m.controls)),U="play,voice,hd,fullScreen",m.controls.length>0&&(U=m.controls.join(","),B+="&controls="+U)),m.websocketParams&&(B+="&websocketParams="+JSON.stringify(m.websocketParams)),B;case"standard":return l+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+w.opt.url.replace("?","&")+"&autoplay="+w.opt.autoplay+"&audio="+w.opt.audio+"&accessToken="+m.accessToken+"&templete=1&id="+R+"&decoderVersion="+w.opt.decoderVersion;case"security":return l+"/ezopen/h5/iframe_se?bSupporDoubleClickFull=0&url="+w.opt.url.replace("?","&")+"&autoplay="+w.opt.autoplay+"&audio="+w.opt.audio+"&accessToken="+m.accessToken+"&templete=0&id="+R+"&decoderVersion="+w.opt.decoderVersion;case"theme":return B=l+"/jssdk/theme.html?url=".concat(m.url,"&accessToken=").concat(m.accessToken,"&id=").concat(R,"&isMobile=").concat(m.isMobile),typeof m.isMobile!="undefined"&&(B+="&isMobile="+m.isMobile),typeof m.autoplay!="undefined"&&(B+="&autoplay="+m.autoplay),typeof m.domain!="undefined"&&m.domain=="https://test12open.ys7.com"&&(B+="&env=test12"),typeof m.env!="undefined"&&typeof m.env.domain!="undefined"&&m.env.domain=="https://test12open.ys7.com"&&(B+="&env=test12"),typeof m.header!="undefined"&&(B+="&header="+m.header),B;default:return l+"/ezopen/h5/iframe?bSupporDoubleClickFull=0&url="+w.opt.url.replace("?","&")+"&autoplay="+w.opt.autoplay+"&audio="+w.opt.audio+"&accessToken="+m.accessToken+"&templete=0&id="+R+"&decoderVersion="+w.opt.decoderVersion}}b.src=j();var T=document.getElementById(R).offsetHeight,d=document.getElementById(R).offsetWidth;m.height&&(T=parseInt(m.height),/\%$/.test(m.height)&&(d=document.getElementById(R).offsetWidth*(parseInt(m.height)/100))),m.width&&(d=parseInt(m.width),/\%$/.test(m.width)&&(d=document.getElementById(R).offsetWidth*(parseInt(m.width)/100))),b.width=d,b.height=T,b.id="EZUIKitPlayer-"+R,b.setAttribute("allowfullscreen",!0),b.setAttribute("allow","autoplay"),b.setAttribute("frameborder",0),E.appendChild(b);var f=w.opt.filePath+"/js/jquery.js",x="https://open.ys7.com/assets/layer/layer.js";i(f,function(){i(x,function(){if(ce().headerContainer){var B=document.createElement("div");B.setAttribute("class","panel-top");var U=document.createElement("div");if(U.setAttribute("class","contros"),B.appendChild(U),E.insertBefore(B,b),ce().capturePictureModule){var N=document.createElement("span");N.innerHTML='<span title="\u622A\u56FE"><svg id="capturePicture" title="\u622A\u56FE" t="1578882764585" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5958" width="24" height="24"> <path d="M887.296 315.904h-153.6c-51.2 0-68.096-102.4-119.296-102.4H392.704c-34.304 0-51.2 102.4-102.4 102.4h-153.6c-29.696 0-51.2 21.504-51.2 51.2v439.296c0 25.6 21.504 47.104 51.2 47.104h751.104c29.696 0 51.2-21.504 51.2-51.2v-435.2c-0.512-30.208-21.504-51.2-51.712-51.2zM512 768c-115.2 0-204.8-89.6-204.8-200.704s89.6-200.704 204.8-200.704 204.8 89.6 204.8 200.704-93.696 200.704-204.8 200.704z m247.296-354.304c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6 25.6 12.8 25.6 25.6c0 17.408-12.8 25.6-25.6 25.6zM256 264.704c0-8.704-8.704-16.896-16.896-16.896h-51.2c-8.704 0-16.896 8.704-16.896 16.896V281.6H256v-16.896z m256 148.992c-85.504 0-153.6 68.096-153.6 153.6s68.096 153.6 153.6 153.6 153.6-68.096 153.6-153.6-68.096-153.6-153.6-153.6z" fill="#ffffff" p-id="5959"></path></svg></span>',N.onclick=function(){w.capturePicture()},U.appendChild(N)}if(console.log("matchHeaderOpt().saveModule",ce().saveModule),ce().saveModule){var K=document.createElement("span");K.innerHTML='<span title="\u5F00\u59CB\u5F55\u50CF"> <svg id="startSave" t="1578882716693" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3782" width="24" height="24"> <path d="M915.2 729.6l-128-76.8c-25.6-12.8-44.8-32-44.8-51.2V435.2c0-25.6 19.2-38.4 44.8-51.2l128-76.8c25.6-12.8 44.8 0 44.8 19.2V704c0 32-19.2 38.4-44.8 25.6z m-332.8 89.6H96c-51.2 0-89.6-38.4-89.6-89.6V332.8c0-51.2 38.4-89.6 89.6-89.6h486.4c51.2 0 89.6 38.4 89.6 89.6v396.8c0 51.2-38.4 89.6-89.6 89.6zM192 364.8c-32 6.4-57.6 32-64 64-12.8 57.6 38.4 115.2 96 102.4 32-6.4 57.6-32 64-70.4 12.8-57.6-38.4-108.8-96-96z m0 0" p-id="3783" fill="#ffffff"></path> </svg></span>',K.onclick=function(){w.startSave(),document.getElementById("startSave").setAttribute("class","icon hide"),document.getElementById("stopSave").setAttribute("class","icon")},U.appendChild(K);var ee=document.createElement("span");ee.innerHTML='<span title="\u7ED3\u675F\u5F55\u50CF"> <svg id="stopSave" t="1578882716693" class="icon hide" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3782" width="24" height="24"> <path d="M915.2 729.6l-128-76.8c-25.6-12.8-44.8-32-44.8-51.2V435.2c0-25.6 19.2-38.4 44.8-51.2l128-76.8c25.6-12.8 44.8 0 44.8 19.2V704c0 32-19.2 38.4-44.8 25.6z m-332.8 89.6H96c-51.2 0-89.6-38.4-89.6-89.6V332.8c0-51.2 38.4-89.6 89.6-89.6h486.4c51.2 0 89.6 38.4 89.6 89.6v396.8c0 51.2-38.4 89.6-89.6 89.6zM192 364.8c-32 6.4-57.6 32-64 64-12.8 57.6 38.4 115.2 96 102.4 32-6.4 57.6-32 64-70.4 12.8-57.6-38.4-108.8-96-96z m0 0" p-id="3783" fill="red"></path> </svg> </span>',ee.onclick=function(){w.stopSave(),document.getElementById("stopSave").setAttribute("class","icon hide"),document.getElementById("startSave").setAttribute("class","icon")},U.appendChild(ee)}if(ce().zoomModule){var X=document.createElement("span");X.innerHTML='<span title="\u5F00\u542F\u7535\u5B50\u653E\u5927"> <svg id="enableZoom" t="1578882639834" class="icon" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2227" width="24" height="24"> <path d="M830.6119 441.1089c0-193.7756-157.0939-350.8641-350.8775-350.8641S128.8559 247.3333 128.8559 441.1089 285.9508 791.972 479.7344 791.972 830.6119 634.8845 830.6119 441.1089zM483.2821 710.4863c-146.7975 0-265.8187-118.9953-265.8187-265.8088S336.4847 178.8697 483.2821 178.8697s265.8197 118.9953 265.8197 265.8078S630.0796 710.4863 483.2821 710.4863zM770.6031 653.5739l-72.6417 75.9485 141.6917 160.1814 82.0737-90.0739L770.6031 653.5739zM527.5849 267.4727h-88.60655762279428v132.90489048425167H306.0690340253259v88.60292721534799h132.90933675248866v132.9038911617923h88.60655762279428V488.9794719180395h132.90933675248866v-88.60292721534799H527.5849284006089V267.4726535408993z" p-id="2228" fill="#ffffff"></path> </svg></span>',X.onclick=function(){w.enableZoom(),document.getElementById("enableZoom").setAttribute("class","icon hide"),document.getElementById("closeZoom").setAttribute("class","icon")},U.appendChild(X);var Y=document.createElement("span");Y.innerHTML='<span title="\u5173\u95ED\u7535\u5B50\u653E\u5927"> <svg id="closeZoom" t="1578882639834" class="icon hide" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2227" width="24" height="24"> <path d="M830.6119 441.1089c0-193.7756-157.0939-350.8641-350.8775-350.8641S128.8559 247.3333 128.8559 441.1089 285.9508 791.972 479.7344 791.972 830.6119 634.8845 830.6119 441.1089zM483.2821 710.4863c-146.7975 0-265.8187-118.9953-265.8187-265.8088S336.4847 178.8697 483.2821 178.8697s265.8197 118.9953 265.8197 265.8078S630.0796 710.4863 483.2821 710.4863zM770.6031 653.5739l-72.6417 75.9485 141.6917 160.1814 82.0737-90.0739L770.6031 653.5739zM527.5849 267.4727h-88.60655762279428v132.90489048425167H306.0690340253259v88.60292721534799h132.90933675248866v132.9038911617923h88.60655762279428V488.9794719180395h132.90933675248866v-88.60292721534799H527.5849284006089V267.4726535408993z" p-id="2228" fill="red"></path> </svg></span>',Y.onclick=function(){w.closeZoom(),document.getElementById("closeZoom").setAttribute("class","icon hide"),document.getElementById("enableZoom").setAttribute("class","icon")},U.appendChild(Y)}}function de(){var qe={footerContainer:!1,talkModule:!1,broadcastModule:!1,hdModule:!1,fullScreenModule:!1},Te=w.opt.template;switch(Te){case"simple":if(m.footer&&m.footer instanceof Array){var le=m.footer;qe={footerContainer:!0,talkModule:le.indexOf("talk")!==-1,broadcastModule:le.indexOf("broadcast")!==-1,hdModule:le.indexOf("hd")!==-1,fullScreenModule:le.indexOf("fullScreen")!==-1}}break;case"standard":if(m.footer&&m.footer instanceof Array){var le=m.footer;qe={footerContainer:!0,talkModule:le.indexOf("talk")!==-1,broadcastModule:le.indexOf("broadcast")!==-1,hdModule:le.indexOf("hd")!==-1,fullScreenModule:le.indexOf("fullScreen")!==-1}}break;case"security":break;case"voice":qe={footerContainer:!0,talkModule:!0,broadcastModule:!0,hdModule:!0,fullScreenModule:!0};break}return qe}function ce(){var qe={headerContainer:!1,capturePictureModule:!1,saveModule:!1,zoomModule:!1},Te=w.opt.template;switch(Te){case"simple":if(m.header&&m.header instanceof Array){var le=m.header;qe={headerContainer:!0,capturePictureModule:le.indexOf("capturePicture")!==-1,saveModule:le.indexOf("save")!==-1,zoomModule:le.indexOf("zoom")!==-1}}break;case"standard":break;case"security":break;case"voice":qe={headerContainer:!0,capturePictureModule:!0,saveModule:!0,zoomModule:!0};break}return qe}if(de().footerContainer||w.opt.plugin.indexOf("talk")!==-1){var fe=w.opt.filePath+"/npm/css/recoder.css",Ce=w.opt.filePath+"/npm/js/recoder.js",me=w.opt.filePath+"/recorder.js";if(r(fe,function(){}),i(Ce,function(){i(me,function(){})}),w.opt.plugin.indexOf("talk")!==-1||de().talkModule){var xe=function(Te){if(console.log("data",Te),Te.code==200){var le=Te.data;if(le){var Pe=le.rtcUrl;Pe.indexOf("ws")===-1&&(Pe=Pe.replace("https","wss").replace("rtcgw","rtcgw-ws")),w.opt.rtcUrl=Pe,w.opt.ttsUrl="tts://"+le.ttsUrl;var We="talk://"+w.opt.deviceSerial+":0:"+w.opt.channelNo+":cas.ys7.com:6500";if(w.opt.talkLink=w.opt.ttsUrl+"/"+We,w.opt.stream=le.stream,console.log("_this.opt",w.opt),!w.opt.isReliesReady){var S=w.opt.filePath+"/npm/js/adapeter.js",D=w.opt.filePath+"/npm/js/janus.js",M=w.opt.filePath+"/npm/js/tts.js";console.log("\u52A0\u8F7Djquery.js"),i(S,function(){console.log("\u52A0\u8F7Dadapeter.js"),i(D,function(){console.log("\u52A0\u8F7Djanus.js"),i(M,function(){console.log("\u52A0\u8F7Dtts.js"),w.opt.isReliesReady=!0})})},function(){return!!h.adapter})}if(!document.getElementById("audioleft")){var L=document.createElement("div");L.style.display="none",L.id="audioleft",document.body.appendChild(L)}if(!document.getElementById("audioright")){var P=document.createElement("div");P.style.display="none",P.id="audioright",document.body.appendChild(P)}}}s.opt=w.opt,h.EZUIKit&&(h.EZUIKit.opt=w.opt)};a(w.opt.apiDomain,"POST",{accessToken:w.opt.accessToken,deviceSerial:w.opt.deviceSerial,channelNo:w.opt.channelNo},"",xe)}if(de().footerContainer){var He=function(Te,le){if(clearInterval(s.state.countTimer),Te==="add"){var Pe=le;s.state.countTimer=setInterval(function(){++Pe,document.getElementById("time-area").innerHTML=We(Pe)},1e3)}else if(Te==="sub"){var Pe=le;s.state.countTimer=setInterval(function(){Pe>0?(Pe--,document.getElementById("time-area").innerHTML=We(Pe)):(clearInterval(s.state.countTimer),s.state.countTimer=void 0,console.log("\u5012\u8BA1\u65F6\u7ED3\u675F\uFF0C\u5F00\u542F\u58F0\u97F3"))},1e3)}else Te==="destory"&&(clearInterval(s.state.countTimer),s.state.countTimer=void 0,document.getElementById("time-area").innerHTML="00:00");function We(S){var D=parseInt(S),M=0,L=0,P="00",H="00",z="00";return D>59&&(M=parseInt(D/60),D=parseInt(D%60),M>59&&(L=parseInt(M/60),M=parseInt(M%60))),P=parseInt(D)>9?parseInt(D):"0"+parseInt(D),H=parseInt(M)>9?parseInt(M):"0"+parseInt(M),z=parseInt(L)>9?parseInt(L):"0"+parseInt(L),L>0?z+":"+H+":"+P:M>0?H+":"+P:"00:"+P}},se=document.createElement("div");if(se.setAttribute("class","audio-controls"),E.appendChild(se),de().hdModule||de().fullScreenModule){var mt=document.createElement("div");if(mt.setAttribute("class","contros"),se.appendChild(mt),de().hdModule){var nt=document.createElement("span");nt.setAttribute("id","video-hd"),nt.innerHTML=w.opt.url.indexOf(".hd")===-1?"\u6807\u6E05":"\u9AD8\u6E05",nt.onclick=function(){if(w.opt.videoLoading)return layer.msg("\u89C6\u9891\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),!1;var qe=w.stop();w.opt.videoLoading=!0,qe.then(function(Te){w.opt.videoLoading=!1,w.opt.url.indexOf(".hd")===-1?(w.opt.url=w.opt.url.replace(".live",".hd.live"),nt.innerHTML=w.opt.url.indexOf(".hd")===-1?"\u6807\u6E05":"\u9AD8\u6E05"):(w.opt.url=w.opt.url.replace(".hd.live",".live"),nt.innerHTML=w.opt.url.indexOf(".hd")===-1?"\u6807\u6E05":"\u9AD8\u6E05"),w.play(w.opt.url)}).catch(function(Te){console.log("error",Te)})},mt.appendChild(nt)}if(de().fullScreenModule){var Qe=document.createElement("span");Qe.setAttribute("class","hide"),Qe.setAttribute("id","ezuikit-open-sound"),Qe.setAttribute("title","\u6253\u5F00\u58F0\u97F3"),Qe.setAttribute("style","vertical-align: top;"),Qe.innerHTML='<svg t="1590476263239" class="icon" viewBox="0 0 1178 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2273" width="16" height="16"><path d="M665.6 51.2 665.6 51.2c-10.24-30.72-40.96-51.2-71.68-51.2-5.12 0-15.36 0-20.48 5.12l0 0L358.4 153.6 51.2 209.92l0 0C20.48 220.16 0 250.88 0 281.6 0 286.72 0 291.84 0 307.2l0 0 0 409.6 0 0c0 15.36 0 20.48 0 25.6 0 30.72 20.48 61.44 51.2 71.68l0 0L358.4 870.4l97.28 71.68 107.52 76.8 0 0c5.12 5.12 15.36 5.12 25.6 5.12 40.96 0 76.8-35.84 76.8-76.8 0-10.24 0-10.24 0-25.6l0 0L665.6 51.2zM563.2 870.4l-153.6-102.4-307.2-51.2L102.4 307.2l307.2-51.2 153.6-102.4L563.2 870.4z" p-id="2274" fill="#FF0000"></path><path d="M1049.6 537.6l112.64-112.64c20.48-20.48 20.48-56.32 0-76.8-20.48-20.48-56.32-20.48-76.8 0L972.8 460.8l-112.64-112.64c0 0 0 0 0 0-20.48-20.48-56.32-20.48-76.8 0 0 0 0 0 0 0-20.48 20.48-20.48 56.32 0 76.8l112.64 112.64-112.64 112.64c-20.48 20.48-20.48 56.32 0 76.8 20.48 20.48 56.32 20.48 76.8 0L972.8 614.4l112.64 112.64c20.48 20.48 56.32 20.48 76.8 0s20.48-56.32 0-76.8L1049.6 537.6z" p-id="2275" fill="#FF0000"></path></svg>',Qe.onclick=function(){w.openSound(0),Qe.setAttribute("class","hide"),Ne.setAttribute("class","")};var Ne=document.createElement("span");Qe.setAttribute("id","ezuikit-close-sound"),Ne.setAttribute("class","hide"),Ne.setAttribute("title","\u5173\u95ED\u58F0\u97F3"),Ne.setAttribute("style","vertical-align: top;"),Ne.innerHTML='<svg t="1590414410633" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20545" width="16" height="16"><path d="M840.533333 98.133333c-17.066667-17.066667-42.666667-17.066667-59.733333 0-17.066667 17.066667-17.066667 42.666667 0 59.733334C883.2 256 938.666667 392.533333 938.666667 533.333333c0 140.8-55.466667 277.333333-157.866667 375.466667-17.066667 17.066667-17.066667 42.666667 0 59.733333 8.533333 8.533333 21.333333 12.8 29.866667 12.8 8.533333 0 21.333333-4.266667 29.866666-12.8 115.2-110.933333 183.466667-268.8 183.466667-435.2 0-166.4-68.266667-324.266667-183.466667-435.2zM571.733333 12.8c-17.066667-8.533333-34.133333-4.266667-46.933333 8.533333L281.6 256H42.666667c-25.6 0-42.666667 17.066667-42.666667 42.666667v426.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h238.933333l243.2 234.666667c8.533333 8.533333 17.066667 12.8 29.866667 12.8 4.266667 0 12.8 0 17.066666-4.266667 17.066667-8.533333 25.6-21.333333 25.6-38.4V51.2c0-17.066667-8.533333-34.133333-25.6-38.4zM512 870.4l-183.466667-179.2c-8.533333-4.266667-17.066667-8.533333-29.866666-8.533333H85.333333V341.333333h213.333334c12.8 0 21.333333-4.266667 29.866666-12.8L512 153.6v716.8z" p-id="20546" fill="#ffffff"></path><path d="M759.466667 349.866667c-12.8-21.333333-38.4-25.6-59.733334-8.533334-21.333333 12.8-25.6 38.4-8.533333 59.733334 21.333333 29.866667 34.133333 76.8 34.133333 123.733333 0 46.933333-12.8 93.866667-34.133333 123.733333-12.8 21.333333-8.533333 46.933333 8.533333 59.733334 8.533333 4.266667 17.066667 8.533333 25.6 8.533333 12.8 0 25.6-4.266667 34.133334-17.066667 34.133333-46.933333 51.2-106.666667 51.2-174.933333 0-68.266667-17.066667-128-51.2-174.933333z" p-id="20547" fill="#ffffff"></path></svg>',Ne.onclick=function(){w.closeSound(0),Qe.setAttribute("class",""),Ne.setAttribute("class","hide")},mt.appendChild(Qe),mt.appendChild(Ne)}if(w.opt.audio==1?Ne.setAttribute("class",""):(Qe.setAttribute("class",""),w.closeSound(0)),de().fullScreenModule){var $e=document.createElement("span");$e.setAttribute("title","\u5168\u5C4F"),$e.setAttribute("style","vertical-align: top;"),$e.innerHTML='<svg id="fullScreen" t="1578020167938" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5035" width="16" height="16"> <path d="M348.373333 625.706667l-128 128-64 64v-128a33.28 33.28 0 0 0-35.413333-35.413334A33.493333 33.493333 0 0 0 85.333333 689.706667v213.333333A33.706667 33.706667 0 0 0 120.96 938.666667h213.333333a35.626667 35.626667 0 0 0 0-71.04h-128l64-64 128-128a35.2 35.2 0 0 0-49.92-49.92zM206.293333 156.373333h128a33.28 33.28 0 0 0 35.413334-35.413333A33.493333 33.493333 0 0 0 334.293333 85.333333H113.706667c-7.04 0-14.08 7.04-21.333334 14.293334a26.026667 26.026667 0 0 0-7.04 21.333333v213.333333a33.493333 33.493333 0 0 0 35.626667 35.413334 33.28 33.28 0 0 0 35.413333-35.413334v-128l192 192a35.2 35.2 0 0 0 49.92-49.92zM903.04 85.333333h-213.333333a33.493333 33.493333 0 0 0-35.413334 35.626667 33.28 33.28 0 0 0 35.413334 35.413333h128l-64 64-128 128a35.2 35.2 0 0 0 49.92 49.92l128-128 64-64v128a35.626667 35.626667 0 0 0 71.04 0v-213.333333A33.706667 33.706667 0 0 0 903.04 85.333333zM903.04 654.293333a33.28 33.28 0 0 0-35.413333 35.413334v128l-64-64-128-128a35.2 35.2 0 0 0-49.92 49.92l128 128 64 64h-128a35.626667 35.626667 0 0 0 0 71.04h213.333333A33.706667 33.706667 0 0 0 938.666667 903.04v-213.333333a33.493333 33.493333 0 0 0-35.626667-35.413334z" p-id="5036" fill="#ffffff"></path></svg>',$e.onclick=function(){w.fullScreen()},mt.appendChild($e)}}if(de().talkModule){var ke=document.createElement("div"),Be=document.createElement("div");ke.setAttribute("class","ptp-talk off"),ke.innerHTML='<span title="\u5BF9\u8BB2"><svg t="1581930496966" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1641" width="16" height="16"> <path d="M715.648 647.872c-30.208-22.336-61.568 39.36-100.992 77.44-39.36 38.08-34.112 31.488-123.392-17.088S311.488 540.224 280 491.648C248.448 443.072 265.472 424.704 265.472 424.704s78.72-62.976 97.152-81.344c18.368-18.368 13.12-30.208 13.12-30.208l-128.64-190.144c-23.616-5.184-64.32 5.12-128.576 57.6C54.208 233.088 30.592 353.856 151.296 575.68c120.768 221.824 347.84 330.752 485.568 374.08 137.856 43.328 228.416-61.696 249.408-103.68 21.056-41.984 13.12-85.312 13.12-85.312S745.856 670.208 715.648 647.872z" p-id="1642" fill="#ffffff"></path> <path d="M715.328 64C580.992 64 472.192 172.864 472.192 307.2s108.8 243.2 243.136 243.2 243.2-108.864 243.2-243.2S849.6 64 715.328 64zM715.328 461.056c-84.992 0-153.856-68.864-153.856-153.856s68.864-153.856 153.856-153.856 153.856 68.928 153.856 153.856S800.32 461.056 715.328 461.056z" p-id="1643" fill="#ffffff"></path> <path d="M777.472 277.376c-18.176 0-32.96-14.784-32.96-33.024 0-8.448 3.136-16.064 8.32-21.888-11.52-5.12-24.128-8-37.568-8-51.2 0-92.672 41.472-92.672 92.736s41.472 92.736 92.672 92.736S808.064 358.4 808.064 307.2c0-13.696-3.072-26.688-8.384-38.4C793.728 274.112 786.048 277.376 777.472 277.376zM715.328 340.928c-18.624 0-33.664-15.104-33.664-33.728 0-18.624 15.04-33.728 33.664-33.728 18.688 0 33.728 15.104 33.728 33.728C749.056 325.824 734.016 340.928 715.328 340.928z" p-id="1644" fill="#ffffff"></path> </svg> </span> <span>\u5F00\u542F\u5BF9\u8BB2</span>',ke.onclick=function(){if(console.log("EZUIKit.state.countTimer",s.state.countTimer),s.state.countTimer)return h.layer.msg("\u8BED\u97F3\u8BBE\u5907\u6B63\u5FD9\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),!1;He("add",0),console.log("\u5F00\u59CB\u5BF9\u8BB2\uFF0C\u5173\u95ED\u58F0\u97F3"),w.closeSound(0),console.log(w.opt),w.startTalk(),this.setAttribute("class","ptp-talk off hide"),Be.setAttribute("class","ptp-talk on")},Be.setAttribute("class","ptp-talk on hide"),Be.innerHTML='<span title="\u5BF9\u8BB2"> <svg t="1581930496966" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1641" width="16" height="16"> <path d="M715.648 647.872c-30.208-22.336-61.568 39.36-100.992 77.44-39.36 38.08-34.112 31.488-123.392-17.088S311.488 540.224 280 491.648C248.448 443.072 265.472 424.704 265.472 424.704s78.72-62.976 97.152-81.344c18.368-18.368 13.12-30.208 13.12-30.208l-128.64-190.144c-23.616-5.184-64.32 5.12-128.576 57.6C54.208 233.088 30.592 353.856 151.296 575.68c120.768 221.824 347.84 330.752 485.568 374.08 137.856 43.328 228.416-61.696 249.408-103.68 21.056-41.984 13.12-85.312 13.12-85.312S745.856 670.208 715.648 647.872z" p-id="1642" fill="#ff0000"></path> <path d="M715.328 64C580.992 64 472.192 172.864 472.192 307.2s108.8 243.2 243.136 243.2 243.2-108.864 243.2-243.2S849.6 64 715.328 64zM715.328 461.056c-84.992 0-153.856-68.864-153.856-153.856s68.864-153.856 153.856-153.856 153.856 68.928 153.856 153.856S800.32 461.056 715.328 461.056z" p-id="1643" fill="#ff0000"></path> <path d="M777.472 277.376c-18.176 0-32.96-14.784-32.96-33.024 0-8.448 3.136-16.064 8.32-21.888-11.52-5.12-24.128-8-37.568-8-51.2 0-92.672 41.472-92.672 92.736s41.472 92.736 92.672 92.736S808.064 358.4 808.064 307.2c0-13.696-3.072-26.688-8.384-38.4C793.728 274.112 786.048 277.376 777.472 277.376zM715.328 340.928c-18.624 0-33.664-15.104-33.664-33.728 0-18.624 15.04-33.728 33.664-33.728 18.688 0 33.728 15.104 33.728 33.728C749.056 325.824 734.016 340.928 715.328 340.928z" p-id="1644" fill="#ff0000"></path> </svg> </span><span>\u5173\u95ED\u5BF9\u8BB2</span>',Be.onclick=function(){console.log(w.opt),w.stopTalk(),He("destory",0),w.openSound(0),this.setAttribute("class","ptp-talk on hide"),ke.setAttribute("class","ptp-talk off")},se.appendChild(ke),se.appendChild(Be)}if(de().broadcastModule){var Le=function qe(Te){function le(Pe){console.log("data",Pe),Pe.code==200&&(ln(Pe.data,5),s.state.page=Pe.page.page,Te==0&&Pe.data.length==0&&!s.state.fetchDefaultList&&(s.state.fetchDefaultList=!0,qe(0)))}a(l+"/api/lapp/voice/query","POST",{accessToken:w.opt.accessToken,pageStart:Te,pageSize:s.state.pageSize,default:s.state.fetchDefaultList?"true":"false"},"",le)},ln=function(Te){if(console.log("renderVoliceList",Te),Te&&Te.length>0){for(var le=0;le<Te.length;le++){var Pe=document.createElement("li");Pe.innerHTML="<li class='voice-item' id='voice-item-"+le+"' data-time="+(Te[le].duration||20)+" data-url="+Te[le].fileUrl+">"+(Te[le].voiceName.length>10?Te[le].voiceName.substr(0,10)+"...":Te[le].voiceName)+"</li>",document.getElementsByClassName("voice-list-ul")[0].append(Pe),Pe.onclick=function(We){console.log("\u70B9\u51FB\u5143\u7D20",We.target,We.target.dataset.url);var S=We.target.dataset.url,D=We.target.dataset.time;Wt(S,D)}}Te.length===s.state.pageSize?document.getElementById("voice-list-end").innerHTML="\u5411\u4E0B\u6EDA\u52A8\u52A0\u8F7D\u66F4\u591A":document.getElementById("voice-list-end").innerHTML="\u6CA1\u6709\u66F4\u591A\u6570\u636E\u4E86"}},Wt=function(Te,le){console.log("\u64AD\u653E\u8BED\u97F3",Te,le);function Pe(We){console.log("data.data",We.data),We.code==200?He("sub",parseInt(le)):We.code=="10001"?h.layer.msg("\u672A\u627E\u5230\u5F53\u524D\u8BED\u97F3"):h.layer.msg(We.msg||"\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")}a(l+"/api/lapp/voice/send","POST",{accessToken:w.opt.accessToken,deviceSerial:w.opt.deviceSerial,channelNo:w.opt.channelNo,fileUrl:Te},"",Pe)},vt=document.createElement("div"),Ft=document.createElement("div");vt.setAttribute("class","broadcast off"),Ft.setAttribute("class","broadcast on hide"),vt.innerHTML=' <span title="\u8BED\u97F3\u64AD\u62A5"> <svg t="1583561695846" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1126" width="16" height="16"> <path d="M513.82044445 964.38044445c-8.192 0-15.47377778-2.73066667-21.84533334-8.192 0 0-46.42133333-41.87022222-99.21422222-86.47111112-89.20177778-73.728-117.41866667-88.29155555-123.79022222-90.112H35.04355555c-14.56355555 0-26.39644445-11.83288889-26.39644444-27.30666666V271.70133333c0-14.56355555 11.83288889-27.30666667 26.39644444-27.30666666H246.21511111c7.28177778-2.73066667 37.31911111-15.47377778 137.44355556-91.02222222 58.25422222-43.69066667 111.04711111-86.47111111 111.04711111-86.47111112 5.46133333-4.55111111 12.74311111-7.28177778 20.02488889-7.28177778 4.55111111 0 10.01244445 0.91022222 14.56355555 3.6408889 10.92266667 5.46133333 18.20444445 17.29422222 18.20444445 30.03733333v837.40444444c0 12.74311111-7.28177778 25.48622222-19.11466667 30.94755556-5.46133333 1.82044445-10.01244445 2.73066667-14.56355555 2.73066667zM270.79111111 724.992c19.11466667 0 48.24177778 8.192 167.48088889 106.496 16.384 13.65333333 33.67822222 28.21688889 51.88266667 43.69066667l5.46133333 4.55111111V139.71911111l-5.46133333 3.64088889c-22.75555555 17.29422222-44.60088889 34.58844445-65.536 50.06222222C293.54666667 291.72622222 264.41955555 299.008 245.30488889 299.008H82.37511111c-20.02488889 0-21.84533333 12.74311111-21.84533333 26.39644445V694.04444445c0 23.66577778 6.37155555 30.03733333 28.21688889 30.03733333h180.224l1.82044444 0.91022222z m520.64711111 162.01955555c-14.56355555 0-26.39644445-11.83288889-26.39644444-27.30666666 0-11.83288889 8.192-20.02488889 16.384-24.576 112.86755555-67.35644445 182.04444445-191.14666667 182.04444444-324.03911111 0-132.89244445-70.08711111-256.68266667-182.04444444-324.03911111-10.01244445-5.46133333-15.47377778-14.56355555-15.47377778-24.576 0-14.56355555 11.83288889-27.30666667 26.39644445-27.30666667 5.46133333 0 10.01244445 1.82044445 16.384 5.46133333 128.34133333 76.45866667 207.53066667 218.45333333 207.53066666 369.55022222 0 152.00711111-80.09955555 293.09155555-208.44088889 369.55022223-6.37155555 5.46133333-10.92266667 7.28177778-16.384 7.28177777z m-90.112-152.91733333c-14.56355555 0-26.39644445-11.83288889-26.39644444-27.30666667 0-10.01244445 4.55111111-18.20444445 12.74311111-23.66577777 61.89511111-34.58844445 100.12444445-100.12444445 100.12444444-171.12177778 0-70.08711111-37.31911111-134.71288889-96.48355555-170.21155555-8.192-4.55111111-12.74311111-13.65333333-12.74311111-23.66577778 0-14.56355555 11.83288889-27.30666667 26.39644444-27.30666667 4.55111111 0 11.83288889 2.73066667 15.47377778 4.55111111 74.63822222 44.60088889 121.96977778 127.43111111 121.96977778 215.72266667 0 90.112-48.24177778 173.85244445-125.61066667 218.45333333-1.82044445 0-9.10222222 4.55111111-15.47377778 4.55111111z" fill="#ffffff" p-id="1127"></path> </svg></span><span>\u8BED\u97F3\u64AD\u62A5</span>',vt.onclick=function(){this.setAttribute("class","broadcast off hide"),Ft.setAttribute("class","broadcast on")},Ft.innerHTML='<div class="pop-hover"> <div class="pop-hover-content"> <div class="vioce-list" id="voice-list"> <ul class="voice-list-ul"> </ul> <div id="voice-list-end"></div> </div> <div id="voice-custom" style="text-align: center;">\u81EA\u5B9A\u4E49\u8BED\u97F3</div> </div></div><span title="\u8BED\u97F3\u64AD\u62A5"> <svg t="1583561695846" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1126" width="16" height="16"> <path d="M513.82044445 964.38044445c-8.192 0-15.47377778-2.73066667-21.84533334-8.192 0 0-46.42133333-41.87022222-99.21422222-86.47111112-89.20177778-73.728-117.41866667-88.29155555-123.79022222-90.112H35.04355555c-14.56355555 0-26.39644445-11.83288889-26.39644444-27.30666666V271.70133333c0-14.56355555 11.83288889-27.30666667 26.39644444-27.30666666H246.21511111c7.28177778-2.73066667 37.31911111-15.47377778 137.44355556-91.02222222 58.25422222-43.69066667 111.04711111-86.47111111 111.04711111-86.47111112 5.46133333-4.55111111 12.74311111-7.28177778 20.02488889-7.28177778 4.55111111 0 10.01244445 0.91022222 14.56355555 3.6408889 10.92266667 5.46133333 18.20444445 17.29422222 18.20444445 30.03733333v837.40444444c0 12.74311111-7.28177778 25.48622222-19.11466667 30.94755556-5.46133333 1.82044445-10.01244445 2.73066667-14.56355555 2.73066667zM270.79111111 724.992c19.11466667 0 48.24177778 8.192 167.48088889 106.496 16.384 13.65333333 33.67822222 28.21688889 51.88266667 43.69066667l5.46133333 4.55111111V139.71911111l-5.46133333 3.64088889c-22.75555555 17.29422222-44.60088889 34.58844445-65.536 50.06222222C293.54666667 291.72622222 264.41955555 299.008 245.30488889 299.008H82.37511111c-20.02488889 0-21.84533333 12.74311111-21.84533333 26.39644445V694.04444445c0 23.66577778 6.37155555 30.03733333 28.21688889 30.03733333h180.224l1.82044444 0.91022222z m520.64711111 162.01955555c-14.56355555 0-26.39644445-11.83288889-26.39644444-27.30666666 0-11.83288889 8.192-20.02488889 16.384-24.576 112.86755555-67.35644445 182.04444445-191.14666667 182.04444444-324.03911111 0-132.89244445-70.08711111-256.68266667-182.04444444-324.03911111-10.01244445-5.46133333-15.47377778-14.56355555-15.47377778-24.576 0-14.56355555 11.83288889-27.30666667 26.39644445-27.30666667 5.46133333 0 10.01244445 1.82044445 16.384 5.46133333 128.34133333 76.45866667 207.53066667 218.45333333 207.53066666 369.55022222 0 152.00711111-80.09955555 293.09155555-208.44088889 369.55022223-6.37155555 5.46133333-10.92266667 7.28177778-16.384 7.28177777z m-90.112-152.91733333c-14.56355555 0-26.39644445-11.83288889-26.39644444-27.30666667 0-10.01244445 4.55111111-18.20444445 12.74311111-23.66577777 61.89511111-34.58844445 100.12444445-100.12444445 100.12444444-171.12177778 0-70.08711111-37.31911111-134.71288889-96.48355555-170.21155555-8.192-4.55111111-12.74311111-13.65333333-12.74311111-23.66577778 0-14.56355555 11.83288889-27.30666667 26.39644444-27.30666667 4.55111111 0 11.83288889 2.73066667 15.47377778 4.55111111 74.63822222 44.60088889 121.96977778 127.43111111 121.96977778 215.72266667 0 90.112-48.24177778 173.85244445-125.61066667 218.45333333-1.82044445 0-9.10222222 4.55111111-15.47377778 4.55111111z" fill="#ff0000" p-id="1127"></path> </svg></span><span>\u8BED\u97F3\u64AD\u62A5</span>',Ft.onclick=function(){this.setAttribute("class","broadcast on hide"),vt.setAttribute("class","broadcast off")},se.appendChild(vt),se.appendChild(Ft),document.getElementById("voice-custom").onclick=function(){console.log("\u663E\u793A\u81EA\u5B9A\u4E49\u8BED\u97F3"),ze.setAttribute("class","speak off")},Le(0);var ze=document.createElement("div"),ut=document.createElement("div");ze.setAttribute("class","speak off hide"),ut.setAttribute("class","speak on hide"),ze.setAttribute("id","startSpeak"),ut.setAttribute("id","stopSpeak"),ze.innerHTML='<span title="\u6309\u4F4F\u8BF4\u8BDD"> <svg t="1581994757678" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1639" width="16" height="16"> <path d="M757.059829 393.846154v-52.512821h262.564103v52.512821H757.059829z m-420.102564 481.367521v96.273504h175.042735a8.752137 8.752137 0 0 1 8.752137 8.752137v35.008547a8.752137 8.752137 0 0 1-8.752137 8.752137H109.401709a8.752137 8.752137 0 0 1-8.752136-8.752137v-35.008547a8.752137 8.752137 0 0 1 8.752136-8.752137h175.042735v-96.273504C129.767932 875.213675 4.376068 749.821812 4.376068 595.145299V463.863248a26.25641 26.25641 0 1 1 52.512821 0v113.777778c0 140.174222 113.637744 253.811966 253.811966 253.811965s253.811966-113.637744 253.811966-253.811965V463.863248a26.25641 26.25641 0 1 1 52.51282 0v131.282051c0 154.676513-125.391863 280.068376-280.068376 280.068376z m-26.25641-96.273504c-111.178393 0-201.299145-90.120752-201.299146-201.299145V201.299145C109.401709 90.120752 199.522462 0 310.700855 0s201.299145 90.120752 201.299145 201.299145v376.341881c0 111.178393-90.120752 201.299145-201.299145 201.299145z m691.418803-280.068376H757.059829v-52.512821h245.059829v52.512821z m-17.504273 105.025641H757.059829v-52.512821h227.555556v52.512821z m-17.504274 105.025641H757.059829v-52.512821h210.051282v52.512821z m-8.752137 105.025641H757.059829v-52.512821h201.299145v52.512821z m-17.504273 105.025641H757.059829v-52.512821h183.794872v52.512821z m-26.25641 105.025641H757.059829v-52.512821h157.538462v52.512821z" p-id="1640" fill="#ffffff"></path> </svg></span><span>\u6309\u4F4F\u8BF4\u8BDD</span>',ut.innerHTML='<span title="\u6309\u4F4F\u8BF4\u8BDD"><svg t="1581994757678" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1639" width="16" height="16"> <path d="M757.059829 393.846154v-52.512821h262.564103v52.512821H757.059829z m-420.102564 481.367521v96.273504h175.042735a8.752137 8.752137 0 0 1 8.752137 8.752137v35.008547a8.752137 8.752137 0 0 1-8.752137 8.752137H109.401709a8.752137 8.752137 0 0 1-8.752136-8.752137v-35.008547a8.752137 8.752137 0 0 1 8.752136-8.752137h175.042735v-96.273504C129.767932 875.213675 4.376068 749.821812 4.376068 595.145299V463.863248a26.25641 26.25641 0 1 1 52.512821 0v113.777778c0 140.174222 113.637744 253.811966 253.811966 253.811965s253.811966-113.637744 253.811966-253.811965V463.863248a26.25641 26.25641 0 1 1 52.51282 0v131.282051c0 154.676513-125.391863 280.068376-280.068376 280.068376z m-26.25641-96.273504c-111.178393 0-201.299145-90.120752-201.299146-201.299145V201.299145C109.401709 90.120752 199.522462 0 310.700855 0s201.299145 90.120752 201.299145 201.299145v376.341881c0 111.178393-90.120752 201.299145-201.299145 201.299145z m691.418803-280.068376H757.059829v-52.512821h245.059829v52.512821z m-17.504273 105.025641H757.059829v-52.512821h227.555556v52.512821z m-17.504274 105.025641H757.059829v-52.512821h210.051282v52.512821z m-8.752137 105.025641H757.059829v-52.512821h201.299145v52.512821z m-17.504273 105.025641H757.059829v-52.512821h183.794872v52.512821z m-26.25641 105.025641H757.059829v-52.512821h157.538462v52.512821z" p-id="1640" fill="#ff0000"></path></svg></span><span>\u677E\u5F00\u53D1\u9001</span>',se.appendChild(ze),se.appendChild(ut),document.getElementById("voice-list").onscroll=function(qe){var Te=this.scrollHeight;console.log("sum",Te,this.scrollTop,document.getElementById("voice-list").clientHeight),Te<=this.scrollTop+this.clientHeight&&(console.log("\u62D6\u52A8\u5230\u5E95\uFF0C\u6267\u884C\u52A0\u8F7D",s.state.page),Le(++s.state.page))};var bt=document.createElement("div");bt.setAttribute("class","time-area"),bt.setAttribute("id","time-area"),bt.innerHTML="00:00",se.appendChild(bt);var Ae;document.getElementById("startSpeak").onmousedown=function(){if(s.state.countTimer)return h.layer.msg("\u8BED\u97F3\u8BBE\u5907\u6B63\u5FD9\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),!1;console.log("\u6309\u4F4F\u8BF4\u8BDD"),ze.setAttribute("class","speak off hide"),ut.setAttribute("class","speak on"),Pe(),He("add",0),setTimeout(function(){s.state.recodeTime=0,le()},1e3),s.state.recodeTimer&&clearInterval(s.state.recodeTimer),s.state.recodeTimer=setInterval(function(){s.state.recodeTime>=59?(w.stopTalk(),He("destory",0),this.setAttribute("class","ptp-talk on hide"),ke.setAttribute("class","ptp-talk off"),h.layer.msg("\u4E0D\u8D85\u8FC71\u5206\u949F")):s.state.recodeTime=s.state.recodeTime+1},1e3);var qe;function Te(We){var S=qe.createMediaStreamSource(We);Ae=new h.Recorder(S)}function le(){Ae&&Ae.record()}function Pe(){console.log("run init");try{h.AudioContext=h.AudioContext||h.webkitAudioContext,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia,h.URL=h.URL||h.webkitURL,qe=new AudioContext,console.log("Audio context set up."),console.log("navigator.getUserMedia "+(navigator.getUserMedia?"available.":"not present!"))}catch(We){console.log("err",We),h.layer.msg("No web audio support in this browser!")}navigator.getUserMedia({audio:!0},Te,function(We){console.log("No live audio input: "+We)})}},document.getElementById("stopSpeak").onmouseup=function(){console.log("\u677E\u5F00\u53D1\u9001"),ut.setAttribute("class","speak on hide"),qe();function qe(){if(He("destory",0),s.state.recodeTime<1)return h.layer.msg("\u8BF4\u8BDD\u65F6\u95F4\u8FC7\u77ED"),clearInterval(s.state.recodeTimer),!1;clearInterval(s.state.recodeTimer),Te()}function Te(){try{Ae&&Ae.stop(),Ae&&Ae.exportWAV(function(le){if(console.log("wav_file",le),le.size<1e3)return h.layer.msg("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),s.state.recodeTime=0,!1;He("sub",s.state.recodeTime+2);var Pe=new FormData;Pe.append("voiceFile",le),Pe.append("accessToken",w.opt.accessToken),Pe.append("deviceSerial",w.opt.deviceSerial),Pe.append("channelNo",w.opt.channelNo);function We(D){console.log("data.data",D.data),D.code==200?He("sub",s.state.recodeTime+2):D.code=="10001"?h.layer.msg("\u672A\u627E\u5230\u5F53\u524D\u8BED\u97F3"):h.layer.msg(D.msg||"\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5")}function S(D){console.log("err",D)}a(l+"/api/lapp/voice/sendonce","POST",{voiceFile:le,accessToken:w.opt.accessToken,deviceSerial:w.opt.deviceSerial,channelNo:w.opt.channelNo},"",We,S)}),Ae&&Ae.clear()}catch(le){console.log(le)}}}}}}})});var w=this;h.addEventListener("message",function(B){B.origin;var U=w.opt.id;if(B.data.type)switch(B.data.type){case"openSound":U==B.data.id&&m.openSoundCallBack&&m.openSoundCallBack(B.data);break;case"closeSound":U==B.data.id&&m.closeSoundCallBack&&m.closeSoundCallBack(B.data);break;case"capturePicture":U==B.data.id&&m.capturePictureCallBack&&m.capturePictureCallBack(B.data);break;case"startSave":U==B.data.id&&m.startSaveCallBack&&m.startSaveCallBack(B.data);break;case"stopSave":U==B.data.id&&m.stopSaveCallBack&&m.stopSaveCallBack(B.data);break;case"fullScreen":U==B.data.id&&m.fullScreenCallBack&&m.fullScreenCallBack(B.data);break;case"getOSDTime":U==B.data.id&&m.getOSDTimeCallBack&&m.getOSDTimeCallBack(B.data);break;case"handleSuccess":U==B.data.id&&m.handleSuccess&&m.handleSuccess(B.data);break;case"handleError":U==B.data.id&&m.handleError&&m.handleError(B.data);break;case"dblclick":U==B.data.id&&w.opt.bSupporDoubleClickFull&&(w.opt.fullScreenStatus===0?w.fullScreen():w.cancelFullScreen());break;case"startTalk":w.startTalk(),w.closeSound();break;case"stopTalk":w.stopTalk(),w.openSound();break;case"clickEventHandle":console.log("event.data",B.data),m.clickEventHandle&&m.clickEventHandle(B.data);break;case"removeEventHandle":m.removeEventHandle&&m.removeEventHandle(B.data);break;case"esc":m.clickEventHandle&&m.clickEventHandle(B.data);break;case"iframeFullScreen":if(U==B.data.id){var N=function(ee){var X=ee.requestFullScreen||ee.webkitRequestFullScreen||ee.mozRequestFullScreen||ee.msRequestFullScreen;if(X)X.call(ee);else if(typeof h.ActiveXObject!="undefined"){var Y=new ActiveXObject("WScript.Shell");Y!==null&&Y.SendKeys("{F11}")}};N(document.getElementById("EZUIKitPlayer-"+B.data.id))}break}});function A(B){w.opt.fullScreenStatus=B?1:0,m.fullScreenChangeCallBack&&m.fullScreenChangeCallBack({data:B,id:w.opt.id})}typeof document.fullScreen!="undefined"?document.addEventListener("fullscreenchange",function(){var B=document.fullscreen||!1;A(B)}):typeof document.webkitIsFullScreen!="undefined"?document.addEventListener("webkitfullscreenchange",function(){var B=document.webkitIsFullScreen||!1;A(B)}):typeof document.mozFullScreen!="undefined"&&document.addEventListener("mozfullscreenchange",function(){var B=document.mozFullScreen||!1;A(B)})};_.prototype.play=function(v){var m="EZUIKitPlayer-"+this.opt.id,w=document.getElementById(m).contentWindow;Se(v)==="object"&&v.url&&(this.opt.url=v.url),Se(v)==="object"&&v.accessToken&&(this.opt.accessToken=v.accessToken),typeof v=="string"&&(this.opt.url=v),w.postMessage({action:"play",accessToken:this.opt.accessToken,url:this.opt.url},l+"/ezopen/h5/iframe");var R=this;this.opt.videoLoading=!0;var E=new Promise(function(b,j){h.addEventListener("message",function(T){var d=R.opt.id;d==T.data.id&&T.data.type==="handleSuccess"&&(setTimeout(function(){R.opt.videoLoading=!1},1e3),b(T.data))})});return E},_.prototype.stop=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("stop",l+"/ezopen/h5/iframe");var w=this,R=new Promise(function(E,b){h.addEventListener("message",function(j){var T=w.opt.id;T==j.data.id&&j.data.type==="stop"&&E(j.data)})});return R},_.prototype.openSound=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("openSound",l+"/ezopen/h5/iframe");var w=this,R=new Promise(function(E,b){h.addEventListener("message",function(j){var T=w.opt.id;T==j.data.id&&j.data.type==="openSound"&&E(j.data)})});return R},_.prototype.closeSound=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("closeSound",l+"/ezopen/h5/iframe");var w=this,R=new Promise(function(E,b){h.addEventListener("message",function(j){var T=w.opt.id;T==j.data.id&&j.data.type==="closeSound"&&E(j.data)})});return R},_.prototype.startSave=function(v){var m="EZUIKitPlayer-"+this.opt.id,w=document.getElementById(m).contentWindow;w.postMessage({action:"startSave",fileName:v||"default"},l+"/ezopen/h5/iframe");var R=this,E=new Promise(function(b,j){h.addEventListener("message",function(T){var d=R.opt.id;d==T.data.id&&T.data.type==="startSave"&&b(T.data)})});return E},_.prototype.stopSave=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("stopSave",l+"/ezopen/h5/iframe");var w=this,R=new Promise(function(E,b){h.addEventListener("message",function(j){var T=w.opt.id;T==j.data.id&&j.data.type==="stopSave"&&E(j.data)})});return R},_.prototype.fullScreen=function(){if(this.opt.fullScreenStatus===1)return!1;var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)){var w=document.documentElement.clientWidth,R=document.documentElement.clientHeight,E=document.body;E=document.getElementById(v);var b="";b+="width:"+R+"px;",b+="height:"+w+"px;",b+="-webkit-transform: rotate(90deg); transform: rotate(90deg);",b+="-webkit-transform-origin: "+w/2+"px "+w/2+"px;",b+="transform-origin: "+w/2+"px "+w/2+"px;",b+="position: fixed;top: 0;left: 0;z-index:10",E.style.cssText=b,setTimeout(function(){m.postMessage("autoResize",l+"/ezopen/h5/iframe")},500)}else{var j=function(d){var f=d.requestFullScreen||d.webkitRequestFullScreen||d.mozRequestFullScreen||d.msRequestFullScreen;if(f)f.call(d);else if(typeof h.ActiveXObject!="undefined"){var x=new ActiveXObject("WScript.Shell");x!==null&&x.SendKeys("{F11}")}};j(document.getElementById(v))}this.params.fullScreenCallBack&&this.params.fullScreenCallBack(this.opt.id),this.opt.fullScreenStatus=1},_.prototype.cancelFullScreen=function(){if(this.opt.fullScreenStatus===0)return!1;var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;if(navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)){var w=document.getElementById(v).width,R=document.getElementById(v).height,E=document.body;E=document.getElementById(v);var b="";b+="width:"+w+"px;",b+="height:"+R+"px;",b+="-webkit-transform: none; transform: none;",b+="-webkit-transform-origin: 0 0;",b+="transform-origin: 0 0;",E.style.cssText=b,setTimeout(function(){m.postMessage("autoResize",l+"/ezopen/h5/iframe")},500);var j=v+"cancel-full-screen",T=document.getElementById(j);T&&document.body.removeChild(T)}else document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen&&document.mozCancelFullScreen();this.params.cancelFullScreenCallBack&&this.params.cancelFullScreenCallBack(this.opt.id),this.opt.fullScreenStatus=0},_.prototype.capturePicture=function(v,m){var w="EZUIKitPlayer-"+this.opt.id,R=document.getElementById(w).contentWindow;R.postMessage({action:"capturePicture",fileName:v||"default",isUndownload:m},l+"/ezopen/h5/iframe");var E=this,b=new Promise(function(j,T){h.addEventListener("message",function(d){var f=E.opt.id;f==d.data.id&&d.data.type==="capturePicture"&&j(d.data)})});return b},_.prototype.enableZoom=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("enableZoom",l+"/ezopen/h5/iframe")},_.prototype.closeZoom=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("closeZoom",l+"/ezopen/h5/iframe")},_.prototype.getOSDTime=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("getOSDTime",l+"/ezopen/h5/iframe");var w=this,R=new Promise(function(E,b){h.addEventListener("message",function(j){var T=w.opt.id;T==j.data.id&&j.data.type==="getOSDTime"&&E(j.data)})});return R},_.prototype.autoResize=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("autoResize",l+"/ezopen/h5/iframe")},_.prototype.reSize=function(v,m){var w="EZUIKitPlayer-"+this.opt.id,R=document.getElementById(w).contentWindow,E=document.getElementById(this.opt.id);E.style.width=v+"px",E.style.height=m+"px",document.getElementById(this.opt.id).style.width=v+"px",document.getElementById(this.opt.id).style.height=m+"px";var b=document.getElementById(w);b.setAttribute("width",v),b.setAttribute("height",m),b.style.width=v+"px",b.style.height=m+"px",setTimeout(function(){R.postMessage({action:"autoResize"},l+"/ezopen/h5/iframe")},500)},_.prototype.startTalk=function(){console.log("\u6267\u884C\u5F00\u59CB\u5BF9\u8BB2"),console.log(this.opt);var v=this;s.opt=this.opt,h.EZUIKit&&(h.EZUIKit.opt=this.opt);var m=function(R){if(R.code==200){var E=R.data;if(E){var b=E.rtcUrl;b.indexOf("ws")===-1&&(b=b.replace("https","wss").replace("rtcgw","rtcgw-ws")),v.opt.rtcUrl=b,v.opt.ttsUrl="tts://"+E.ttsUrl;var j="talk://"+v.opt.deviceSerial+":0:"+v.opt.channelNo+":cas.ys7.com:6500";v.opt.talkLink=v.opt.ttsUrl+"/"+j,v.opt.stream=E.stream,h.startTalk()}}};a(v.opt.apiDomain,"POST",{accessToken:v.opt.accessToken,deviceSerial:v.opt.deviceSerial,channelNo:v.opt.channelNo},"",m)},_.prototype.stopTalk=function(){console.log("\u6267\u884C\u7ED3\u675F\u5BF9\u8BB2"),h.stopTalk()},_.prototype.edit=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage("edit",l+"/ezopen/h5/iframe")},_.prototype.btnReRender=function(v){var m="EZUIKitPlayer-"+this.opt.id,w=document.getElementById(m).contentWindow;w.postMessage({action:"btnReRender",data:v},l+"/ezopen/h5/iframe")},_.prototype.changePlayUrl=function(v){v.deviceSerial&&(this.opt.deviceSerial=v.deviceSerial),v.channelNo&&(this.opt.channelNo=v.channelNo),v.accessToken&&(this.opt.accessToken=v.accessToken);var m="EZUIKitPlayer-"+this.opt.id,w=document.getElementById(m).contentWindow;w.postMessage({action:"changePlayUrl",data:v},l+"/ezopen/h5/iframe")},_.prototype.fetchThemeData=function(){var v="EZUIKitPlayer-"+this.opt.id,m=document.getElementById(v).contentWindow;m.postMessage({action:"fetchThemeData"},l+"/ezopen/h5/iframe")},_.prototype.setThemeData=function(v,m,w){var R="EZUIKitPlayer-"+this.opt.id,E=document.getElementById(R).contentWindow;E.postMessage({action:"setThemeData",data:{accessToken:v,header:m,footer:w}},l+"/ezopen/h5/iframe")},s.EZUIKitPlayer=_,h.EZUIKitV3=s;var y=s;return y});var vl=EZUIKitV3,yl=function(){function h(u,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,n,i){return n&&h(u.prototype,n),i&&h(u,i),u}}();function Cl(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}var Ro=function(){var h=void 0;return function(u){return u&&(h=u),h}}();(function(){function h(){if(Cl(this,h),Ro())return Ro();if(h.unique!==void 0)return h.unique;h.unique=this,this.oAudioContext=null,this.currentVolume=80,this.bSetVolume=!1,this.gainNode=null,this.iWndNum=-1,this.mVolumes=new Map;var u=window.AudioContext||window.webkitAudioContext;this.oAudioContext=new u,this.writeString=function(n,i,r){for(var a=0;a<r.length;a++)n.setUint8(i+a,r.charCodeAt(a))},this.setBufferToDataview=function(n,i,r){for(var a=0;a<r.length;a++,i++)n.setUint8(i,r[a])},Ro(this)}return yl(h,[{key:"Play",value:function(n,i,r){var a=new ArrayBuffer(44+i),s=new DataView(a),l=r.samplesPerSec,C=r.channels,_=r.bitsPerSample;this.writeString(s,0,"RIFF"),s.setUint32(4,32+i*2,!0),this.writeString(s,8,"WAVE"),this.writeString(s,12,"fmt "),s.setUint32(16,16,!0),s.setUint16(20,1,!0),s.setUint16(22,C,!0),s.setUint32(24,l,!0),s.setUint32(28,l*2,!0),s.setUint16(32,C*_/8,!0),s.setUint16(34,_,!0),this.writeString(s,36,"data"),s.setUint32(40,i,!0),this.setBufferToDataview(s,44,n);var y=this;return this.oAudioContext.decodeAudioData(s.buffer,function(v){var m=y.oAudioContext.createBufferSource();if(m==null)return-1;m.buffer=v,m.start(0),(y.gainNode==null||y.bSetVolume)&&(y.gainNode=y.oAudioContext.createGain(),y.bSetVolume=!1),y.gainNode.gain.value=y.currentVolume/100,y.gainNode.connect(y.oAudioContext.destination),m.connect(y.gainNode)},function(v){return console.log("decode error"),-1}),0}},{key:"Stop",value:function(){return this.gainNode!=null&&(this.gainNode.disconnect(),this.gainNode=null),!0}},{key:"SetVolume",value:function(n){return this.bSetVolume=!0,this.currentVolume=n,this.mVolumes.set(this.iWndNum,this.currentVolume),!0}},{key:"SetWndNum",value:function(n){this.iWndNum=n;var i=this.mVolumes.get(n);return i==null&&(i=80),this.currentVolume=i,!0}},{key:"GetVolume",value:function(){var n=this.mVolumes.get(this.iWndNum);return n==null&&(n=80),n}}]),window.AudioRenderer=h,h})();var Sl=["attribute vec4 vertexPos;","attribute vec2 texturePos;","varying vec2 textureCoord;","void main()","{","gl_Position = vertexPos;","textureCoord = texturePos;","}"].join(`
  811. `),Tl=["precision highp float;","varying highp vec2 textureCoord;","uniform sampler2D ySampler;","uniform sampler2D uSampler;","uniform sampler2D vSampler;","const mat4 YUV2RGB = mat4","(","1.1643828125, 0, 1.59602734375, -.87078515625,","1.1643828125, -.39176171875, -.81296875, .52959375,","1.1643828125, 2.017234375, 0, -1.081390625,","0, 0, 0, 1",");","void main(void) {","highp float y = texture2D(ySampler, textureCoord).r;","highp float u = texture2D(uSampler, textureCoord).r;","highp float v = texture2D(vSampler, textureCoord).r;","gl_FragColor = vec4(y, u, v, 1) * YUV2RGB;","}"].join(`
  812. `);(function(h,u){window.SuperRender=u()})(void 0,function(){function h(u){this.canvasElement=document.getElementById(u),this.initContextGL(),this.contextGL&&(this.YUVProgram=this.initProgram(Sl,Tl),this.initBuffers(),this.initTextures())}return h.prototype.initContextGL=function(){var u=this.canvasElement,n=null;try{n=u.getContext("webgl")||u.getContext("experimental-webgl")}catch{n=null}(!n||typeof n.getParameter!="function")&&(n=null),this.contextGL=n,console.log("WebGL1.0")},h.prototype.initProgram=function(u,n){var i=this.contextGL,r=i.createShader(i.VERTEX_SHADER);i.shaderSource(r,u),i.compileShader(r),i.getShaderParameter(r,i.COMPILE_STATUS)||console.log("Vertex shader failed to compile: "+i.getShaderInfoLog(r));var a=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(a,n),i.compileShader(a),i.getShaderParameter(a,i.COMPILE_STATUS)||console.log("Fragment shader failed to compile: "+i.getShaderInfoLog(a));var s=i.createProgram();return i.attachShader(s,r),i.attachShader(s,a),i.linkProgram(s),i.getProgramParameter(s,i.LINK_STATUS)||console.log("Program failed to compile: "+i.getProgramInfoLog(s)),i.deleteShader(r),i.deleteShader(a),s},h.prototype.initBuffers=function(){var u=this.contextGL,n=u.createBuffer();u.bindBuffer(u.ARRAY_BUFFER,n),u.bufferData(u.ARRAY_BUFFER,new Float32Array([1,1,-1,1,1,-1,-1,-1]),u.STATIC_DRAW),u.bindBuffer(u.ARRAY_BUFFER,null);var i=u.createBuffer();u.bindBuffer(u.ARRAY_BUFFER,i),u.bufferData(u.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),u.DYNAMIC_DRAW),u.bindBuffer(u.ARRAY_BUFFER,null),this.vertexPosBuffer=n,this.texturePosBuffer=i},h.prototype.initTexture=function(){var u=this.contextGL,n=u.createTexture();return u.bindTexture(u.TEXTURE_2D,n),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,u.LINEAR),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,u.LINEAR),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.bindTexture(u.TEXTURE_2D,null),n},h.prototype.initTextures=function(){var u=this.contextGL,n=this.YUVProgram;u.useProgram(n);var i=this.initTexture(),r=u.getUniformLocation(n,"ySampler");u.uniform1i(r,0),this.yTextureRef=i;var a=this.initTexture(),s=u.getUniformLocation(n,"uSampler");u.uniform1i(s,1),this.uTextureRef=a;var l=this.initTexture(),C=u.getUniformLocation(n,"vSampler");u.uniform1i(C,2),this.vTextureRef=l,u.useProgram(null)},h.prototype.SR_DisplayFrameData=function(u,n,i,r,a){if(!(u<=0||n<=0)){var s=this.contextGL;if(i==null){s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT);return}var l=this.canvasElement;this.nWindowWidth=l.width,this.nWindowHeight=l.height;var C=this.nWindowWidth,_=this.nWindowHeight;s.clearColor(.8,.8,1,1),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT),s.viewport(0,0,C,_),this.updateFrameData(u,n,i,r,a);var y=this.YUVProgram;s.useProgram(y);var v=this.vertexPosBuffer;s.bindBuffer(s.ARRAY_BUFFER,v);var m=s.getAttribLocation(y,"vertexPos");s.enableVertexAttribArray(m),s.vertexAttribPointer(m,2,s.FLOAT,!1,0,0),s.bindBuffer(s.ARRAY_BUFFER,null);var w=this.texturePosBuffer;s.bindBuffer(s.ARRAY_BUFFER,w);var R=s.getAttribLocation(y,"texturePos");s.enableVertexAttribArray(R),s.vertexAttribPointer(R,2,s.FLOAT,!1,0,0),s.bindBuffer(s.ARRAY_BUFFER,null),s.drawArrays(s.TRIANGLE_STRIP,0,4),s.disableVertexAttribArray(m),s.disableVertexAttribArray(R),s.useProgram(null)}},h.prototype.updateFrameData=function(u,n,i,r,a){var s=this.contextGL,l=this.yTextureRef,C=this.uTextureRef,_=this.vTextureRef,y=i;if(u==r&&n==a){var v=u*n,m=y.subarray(0,v);s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l),s.texImage2D(s.TEXTURE_2D,0,s.LUMINANCE,u,n,0,s.LUMINANCE,s.UNSIGNED_BYTE,m);var w=u/2*n/2,R=y.subarray(u*n,u*n+w);s.activeTexture(s.TEXTURE2),s.bindTexture(s.TEXTURE_2D,_),s.texImage2D(s.TEXTURE_2D,0,s.LUMINANCE,u/2,n/2,0,s.LUMINANCE,s.UNSIGNED_BYTE,R);var E=w,b=y.subarray(u*n+u*n/4,u*n+u*n/4+E);s.activeTexture(s.TEXTURE1),s.bindTexture(s.TEXTURE_2D,C),s.texImage2D(s.TEXTURE_2D,0,s.LUMINANCE,u/2,n/2,0,s.LUMINANCE,s.UNSIGNED_BYTE,b)}else{for(var v=r*a,m=new Uint8Array(v),j=0;j<a;j++)for(var T=y.subarray(j*u,j*u+r),d=0;d<r;d++)m[j*r+d]=T[d];s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l),s.texImage2D(s.TEXTURE_2D,0,s.LUMINANCE,r,a,0,s.LUMINANCE,s.UNSIGNED_BYTE,m),m=null,T=null;for(var w=r/2*a/2,R=new Uint8Array(w),j=0;j<a/2;j++)for(var f=y.subarray(u*n+j*u/2,u*n+j*u/2+r/2),d=0;d<r/2;d++)R[j*r/2+d]=f[d];s.activeTexture(s.TEXTURE2),s.bindTexture(s.TEXTURE_2D,_),s.texImage2D(s.TEXTURE_2D,0,s.LUMINANCE,r/2,a/2,0,s.LUMINANCE,s.UNSIGNED_BYTE,R),R=null,f=null;for(var E=w,b=new Uint8Array(E),j=0;j<a/2;j++)for(var x=y.subarray(u*n*5/4+j*u/2,u*n*5/4+j*u/2+r/2),d=0;d<r/2;d++)b[j*r/2+d]=x[d];s.activeTexture(s.TEXTURE1),s.bindTexture(s.TEXTURE_2D,C),s.texImage2D(s.TEXTURE_2D,0,s.LUMINANCE,r/2,a/2,0,s.LUMINANCE,s.UNSIGNED_BYTE,b),b=null,x=null}},h.prototype.SR_SetDisplayRect=function(u){var n=this.contextGL,i=this.nWindowWidth,r=this.nWindowHeight,a=null;if(u&&i>0&&r>0){var s=u.left/i,l=u.top/r,C=u.right/i,_=u.bottom/r;a=new Float32Array([C,l,s,l,C,_,s,_])}else a=new Float32Array([1,0,0,0,1,1,0,1]);var y=this.texturePosBuffer;n.bindBuffer(n.ARRAY_BUFFER,y),n.bufferSubData(n.ARRAY_BUFFER,0,a),n.bindBuffer(n.ARRAY_BUFFER,null)},h.prototype.SR_Destroy=function(){var u=this.contextGL,n=this.YUVProgram;u.deleteProgram(n);var i=this.vertexPosBuffer,r=this.texturePosBuffer;u.deleteBuffer(i),u.deleteBuffer(r);var a=this.yTextureRef,s=this.uTextureRef,l=this.vTextureRef;u.deleteTexture(a),u.deleteTexture(s),u.deleteTexture(l)},h});var ra=function(u,n){var i=["theme","standard"],r=["pcLive","pcRec","mobileLive","mobileRec","noData","security","voice","simple"];if(typeof u=="undefined")return n.themeData?{templateType:"themeData",templateId:"themeData"}:{templateType:"local",templateId:""};if(typeof u=="string"){if(u.length===32)return{templateType:"remote",templateId:u};if(i.indexOf(u)!==-1)return u==="simple"&&typeof n.header=="undefined"&&typeof n.footer=="undefined"?{templateType:"local",templateId:""}:{templateType:"iframe",templateId:u};if(r.indexOf(u)!==-1)return{templateType:"local",templateId:u}}},en=function(){var u=window.navigator.userAgent.toLowerCase(),n={sa:/version.*safari/.test(u),ch:/chrome/.test(u),ff:/gecko/.test(u)&&!/webkit/.test(u)},i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(i)return!1;if(n.ch){var r=function(){for(var s=window.navigator.userAgent.split(" "),l="",C=0;C<s.length;C++)/chrome/i.test(s[C])&&(l=s[C]);return l?Number(l.split("/")[1].split(".")[0]):!1};return r()>91&&!!window.SharedArrayBuffer}return!1},Pl=function(){function h(u){var n=this;Tt(this,h);var i=u.autoplay,r=i===void 0?!0:i;if((u.template&&u.template!=="simple"||u.themeData)&&(r=!1),this.params=u,this.autoplay=r,window.EZUIKit[u.id]={state:{EZUIKitPlayer:{init:window.EZUIKit[u.id]&&window.EZUIKit[u.id].state&&window.EZUIKit[u.id].state.EZUIKitPlayer.init||!1,themeInit:window.EZUIKit[u.id]&&window.EZUIKit[u.id].state&&window.EZUIKit[u.id].state.EZUIKitPlayer.themeInit||!1,talkInit:window.EZUIKit[u.id]&&window.EZUIKit[u.id].state&&window.EZUIKit[u.id].state.EZUIKitPlayer.talkInit||!1}}},ra(this.params.template,u).templateType!=="iframe"){this.Monitor=new gl({env:typeof u.disableMonitor!="undefined"&&u.disableMonitor?"test12":"online"},this),this.id=u.id,this.width=u.width,this.height=u.height,this.url=u.url,this.accessToken=u.accessToken,this.themeId=ra(u.template,u).templateId,this.id=u.id,this.audio=!0,this.poster=u.poster,this.speed=1,this.disabledTimeLine=!1,this.disabledPTZ=!1,this.enableSharedArrayBufferGuide=!1,this.capacity={},this.env={domain:"https://open.ys7.com"};var a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);this.isMobile=a,document.getElementById("".concat(this.id,"-wrap"))&&(document.getElementById("".concat(this.id,"-wrap")).innerHTML="",document.getElementById("".concat(this.id,"-wrap")).id=this.id),this.staticPath=en()?"https://open.ys7.com/console/ezuikit_static/v6/v2":"https://open.ys7.com/console/ezuikit_static/v6/v1",typeof u.staticPath=="string"&&(u.staticPath.startsWith("http")?this.staticPath=u.staticPath:this.staticPath=window.location.protocol+"//"+window.location.host+u.staticPath,en()?this.staticPath+="/v2":this.staticPath+="/v1"),typeof u.audio!="undefined"&&(this.audio=u.audio),typeof u.env!="undefined"&&(this.env=Object.assign(this.env,u.env)),typeof u.isMobile!="undefined"&&(this.isMobile=u.isMobile),typeof u.disabledTimeLine!="undefined"&&(this.disabledTimeLine=u.disabledTimeLine),typeof u.disabledPTZ!="undefined"&&(this.disabledPTZ=u.disabledPTZ),typeof u.enableSharedArrayBufferGuide!="undefined"&&(this.enableSharedArrayBufferGuide=u.enableSharedArrayBufferGuide);var s="".concat(this.staticPath,"/js/jsPluginV1-1.0.0.min.js");if(en())console.log("\u542F\u7528\u591A\u7EBF\u7A0B\u89E3\u6790\u89C6\u9891"),s="".concat(this.staticPath,"/js/jsPluginV2-2.0.1.min.js");else{var l=function(){for(var w=navigator.userAgent.split(" "),R="",E=0;E<w.length;E++)/chrome/i.test(w[E])&&(R=w[E]);return R?Number(R.split("/")[1].split(".")[0]):!1};if(!a&&91<l<106&&this.enableSharedArrayBufferGuide){console.log("\u63D0\u793A\u7528\u6237\u5F00\u542F\u8C37\u6B4C\u5B9E\u9A8C\u5BA4\u7279\u6027");var C="".concat(this.id,"-wrap"),_=document.createElement("div"),y=document.createElement("span");y.innerHTML="\u60A8\u5F53\u524D\u6D4F\u89C8\u5668\u53EF\u4EE5\u5F00\u542F\u8C37\u6B4C\u5B9E\u9A8C\u5BA4\u591A\u7EBF\u7A0B\u7279\u6027\uFF0C\u83B7\u53D6\u66F4\u597D\u64AD\u653E\u4F53\u9A8C\uFF0C\u907F\u514D\u6D4F\u89C8\u5668\u5361\u987F\u53CA\u5D29\u6E83,\u8BE6\u89C1",_.appendChild(y);var v=document.createElement("a");v.href="https://open.ys7.com/help/384",v.setAttribute("target","_blank"),_.appendChild(v),v.innerHTML="\u5F00\u542F\u8BF4\u660E",_.id="".concat(this.id,"-guide"),_.style="font-size:12px;color:red;",setTimeout(function(){document.getElementById(C)&&document.getElementById(C).insertBefore(_,document.getElementById(n.id))},5e3)}}this.pluginStatus=new Hs(this,this.id),Jn(s,function(){if(n.autoplay){n.initTime=new Date().getTime(),n.Monitor.dclog({url:n.url,action:0,text:"startInit"}),n.Monitor.localInfoLog({Serial:Ue(n.url).deviceSerial,Channel:Ue(n.url).channelNo,Ver:en()?"v7.0.0":"v6.0.0",ExterVer:en()?"v7.0.0":"v6.0.0"});var m=n.initEZUIKitPlayer(u),w=n._getRealUrlPromise(u.accessToken,u.url);Promise.all([m,w]).then(function(R){R[1]?(n.playStartTime=new Date().getTime(),n._pluginPlay(R[1],function(){console.log("\u81EA\u52A8\u64AD\u653E\u6210\u529F"),n.Monitor.dclog({url:n.url,action:202,d:new Date().getTime()-n.initTime,text:"autoPlaySuccess"})},function(){console.log("\u81EA\u52A8\u64AD\u653E\u5931\u8D25"),n.Monitor.dclog({url:n.url,action:402,d:new Date().getTime()-n.initTime,text:"autoPlayError"})})):console.log("promise of one",R),window.EZUIKit[u.id].state.EZUIKitPlayer.init=!0,document.getElementById("".concat(u.id,"canvas_draw0"))&&(document.getElementById("".concat(u.id,"canvas_draw0")).style.border="none")}).catch(function(R){console.log("err",R),n.pluginStatus.loadingSetText({text:R&&R.msg||"\u83B7\u53D6\u64AD\u653E\u5730\u5740\u5931\u8D25",color:"red"})})}else{n.initTime=new Date().getTime(),n.Monitor.dclog({url:n.url,action:0,text:"startInit"}),n.Monitor.localInfoLog({Serial:Ue(n.url).deviceSerial,Channel:Ue(n.url).channelNo,Ver:en()?"v7.0.0":"v6.0.0"});var m=n.initEZUIKitPlayer(u);m.then(function(E){console.log("\u521D\u59CB\u5316\u6210\u529F",E),window.EZUIKit[u.id].state.EZUIKitPlayer.init=!0,document.getElementById("".concat(u.id,"canvas_draw0"))&&(document.getElementById("".concat(u.id,"canvas_draw0")).style.border="none"),n.Monitor.dclog({url:n.url,action:201,d:new Date().getTime()-n.initTime,text:"initSuccess"})})}},function(){return en()?!!window.JSPluginV2:!!window.JSPluginV1}),u.plugin&&u.plugin.indexOf("talk")!==-1&&(this.Talk=new Jr(this),window.EZUIKit[u.id].state.EZUIKitPlayer.talkInit=!0),this.getDeviceCapacity()}else return new vl.EZUIKitPlayer(u)}return Pt(h,[{key:"initEZUIKitPlayer",value:function(n){var i=this,r=n.id,a=n.width,s=a===void 0?600:a,l=n.height,C=l===void 0?400:l;if(!n.width||!n.height){var _=document.getElementById(r).getBoundingClientRect();!n.width&&_.width>0&&(s=_.width),!n.height&&_.height>0&&(C=_.height)}if(!document.getElementById("".concat(r,"-wrap"))){var y=document.createElement("div");y.id="".concat(r,"-wrap"),y.style="display:inline-block;width:".concat(s,"px;position:relative;vertical-align: bottom;"),document.getElementById(r).parentNode.insertBefore(y,document.getElementById(r)),document.getElementById(r).parentNode.removeChild(document.getElementById(r)),y.innerHTML="<div id=".concat(r,"></div>"),document.getElementById(r).style="display:inline-block;width:".concat(s,"px;height:").concat(C,"px;"),document.getElementById(r).style.verticalAlign="top"}this.themeId&&(this.Theme=new hl(this,n.id),window.EZUIKit[n.id].state.EZUIKitPlayer.themeInit=!0,this.Monitor.dclog({url:this.url,action:2,text:this.themeId}),typeof this.params.handleThemeChange=="function"&&(this.handleThemeChange=this.params.handleThemeChange));var v=new Ws(this,r);this.Message=v;var m=function(E,b){var j;if(en()){j=new window.JSPluginV2({szId:r,iType:2,iWidth:s,iHeight:C,iMaxSplit:1,iCurrentSplit:1,szBasePath:"",staticPath:i.staticPath,oStyle:{border:"none",background:"#000000"}}),i.pluginStatus.loadingStart(r),i.pluginStatus.loadingSetText({text:"\u521D\u59CB\u5316\u64AD\u653E\u5668\u5B8C\u6210"}),j.EventCallback={pluginErrorHandler:function(f,x,A){console.log(f,x,A),x===1003&&(console.log("\u65AD\u6D41"),i.pluginStatus.loadingSetText({text:"\u8FDE\u63A5\u65AD\u5F00\uFF0C\u8BF7\u91CD\u8BD5",color:"red"}),typeof i.params.handleError=="function"&&i.params.handleError({msg:"\u8FDE\u63A5\u65AD\u5F00\uFF0C\u8BF7\u91CD\u8BD5",retcode:1003,id:i.params.id,type:"handleError"}))}},i.env={domain:"https://open.ys7.com"},typeof n.env!="undefined"&&(i.env=Object.assign(i.env,n.env)),typeof n.handleTalkSuccess!="undefined"&&(i.handleTalkSuccess=n.handleTalkSuccess),typeof n.handleTalkError!="undefined"&&(i.handleTalkError=n.handleTalkError),i.errorHander=new Vr,i.jSPlugin=j;var T=setInterval(function(){i.jSPlugin.Module&&i.jSPlugin.Module._JSPlayM4_GetSDKVersion&&i.jSPlugin.Module._JSPlayM4_GetSDKVersion()&&(clearInterval(T),typeof i.params.handleInitSuccess=="function"&&i.params.handleInitSuccess({retcode:0,id:i.params.id,type:"handleInitSuccess"}),E({meta:{retcode:200,msg:"\u521D\u59CB\u5316\u6210\u529F"}}))},50)}else j=new window.JSPluginV1({szId:r,iType:2,iWidth:s,iHeight:C,iMaxSplit:1,iCurrentSplit:1,szBasePath:"",staticPath:i.staticPath,oStyle:{border:"none",background:"#000000"}}),i.pluginStatus.loadingStart(r),i.pluginStatus.loadingSetText({text:"\u521D\u59CB\u5316\u64AD\u653E\u5668\u5B8C\u6210"}),j.EventCallback={loadEventHandler:function(){},zoomEventResponse:function(){},windowEventSelect:function(f){},pluginErrorHandler:function(f,x,A){console.log(f,x,A),x===1003&&(console.log("\u65AD\u6D41"),i.pluginStatus.loadingSetText({text:"\u8FDE\u63A5\u65AD\u5F00\uFF0C\u8BF7\u91CD\u8BD5",color:"red"}),typeof i.params.handleError=="function"&&i.params.handleError({msg:"\u8FDE\u63A5\u65AD\u5F00\uFF0C\u8BF7\u91CD\u8BD5",retcode:1003,id:i.params.id,type:"handleError"}))},windowEventOver:function(f){},windowEventOut:function(f){},windowEventUp:function(f){},windowFullCcreenChange:function(f){},firstFrameDisplay:function(f,x,A){console.log(x,A),j.JS_SetCanFullScreen(!1),i.pluginStatus.loadingClear()},performanceLack:function(){},mouseEvent:function(f,x,A){}},i.env={domain:"https://open.ys7.com"},typeof n.env!="undefined"&&(i.env=Object.assign(i.env,n.env)),typeof n.handleTalkSuccess!="undefined"&&(i.handleTalkSuccess=n.handleTalkSuccess),typeof n.handleTalkError!="undefined"&&(i.handleTalkError=n.handleTalkError),i.errorHander=new Vr,i.jSPlugin=j,typeof i.params.handleInitSuccess=="function"&&i.params.handleInitSuccess({retcode:0,id:i.params.id,type:"handleInitSuccess"}),E({meta:{retcode:200,msg:"\u521D\u59CB\u5316\u6210\u529F"}})},w=new Promise(m);return w}},{key:"_getRealUrlPromise",value:function(n,i){var r=this,a=this.env.domain;this.env&&(a=this.env.domain);var s=function(y,v){var m="",w=a+"/api/lapp/live/url/ezopen",R=new FormData;R.append("ezopen",i),R.append("isFlv","false"),R.append("userAgent",window.navigator.userAgent),R.append("isHttp","false"),R.append("accessToken",n),fetch(w,{method:"POST",body:R}).then(function(E){return E.json()}).then(function(E){if(E.code==200||E.retcode==0){var b="",j="";E.ext&&E.ext.token?(m+=E.data,j=E.ext.token,b=E.data):E.data&&E.data.token&&(m+=E.data.url,j=E.data.token,b=E.data.url);var T=i.indexOf("live")!==-1?"live":"playback";T==="live"?m=m+"&ssn="+j+"&auth=1&biz=4&cln=100":m=m+"&ssn="+j+"&auth=1&cln=100",console.log(m);var d=Ze("checkCode",m);if(d&&(typeof r.jSPlugin.decoderVersion!="undefined"&&r.jSPlugin.decoderVersion==="2.0"?r.validateCode=d:(console.log("\u8BBE\u7F6E\u5BC6\u94A5",d),r.jSPlugin.JS_SetSecretKey(0,d))),m.indexOf("playback")!==-1){var f=Ze("begin",b)||Ze("begin",i),x=Ze("end",b)||Ze("end",i);if(f)m=m.replace("&begin="+Ze("begin",b),"&begin="+l(f,"000000")),Ze("begin",m)||(m+="&begin="+l(f,"000000"));else{var A=new Date;m=m+"&begin="+A.Format("yyyyMMdd")+"T000000Z"}if(x?(m=m.replace("&end="+Ze("end",b),"&end="+l(x,"235959")),Ze("end",m)||(m+="&end="+l(x,"235959"))):m=m+"&end="+l(Ze("begin",m).substr(0,8),"235959"),Ze("stream",b)||(m=m.replace("stream","&stream")),i.indexOf(".cloud")!==-1){var B=function(Ce){if(Ce.code==200){var me=[];if(Ce.data&&Ce.data.files&&Ce.data.files.length>0){var xe=Ce.data.files,He=new Date().getTime(),se=Ce.data.isAll;if(se){me=Qe(xe);var mt=JSON.stringify(me).replace("\\","");m+="&recSlice="+mt.replace("\\","")+"&r="+Math.random(),y(m)}else{var nt=function Ne(){function $e(ke){if(ke.data&&ke.data.files&&ke.data.files.length>0)if(ke.data.isAll==!1)ke.data.files&&(xe=xe.concat(ke.data.files)),He=ke.data.nextFileTime>0?ke.data.nextFileTime:new Date().getTime(),Ne();else{me=Qe(xe);var Be=JSON.stringify(me).replace("\\","");m+="&recSlice="+Be.replace("\\","")+"&r="+Math.random(),y(m)}else{me=Qe(xe);var Be=JSON.stringify(me).replace("\\","");m+="&recSlice="+Be.replace("\\","")+"&r="+Math.random(),y(m)}}Y.startTime=He,zn(X,"POST",Y,"",$e)};nt()}}else v({retcode:-1,msg:"\u672A\u627E\u5230\u5F55\u50CF\u7247\u6BB5"})}else v({retcode:-1,msg:"\u672A\u627E\u5230\u5F55\u50CF\u7247\u6BB5"});function Qe(Ne){var $e=[];return Ne.forEach(function(ke,Be){$e.length==0||ke.downloadPath!==$e[$e.length-1].downloadPath?$e.push({downloadPath:ke.downloadPath,ownerId:ke.ownerId,iStorageVersion:ke.iStorageVersion,videoType:ke.videoType,iPlaySpeed:0,startTime:ke.startTime,endTime:ke.endTime}):$e[$e.length-1].endTime=ke.endTime}),$e}},U=C(Ze("begin",m)),N=C(Ze("end",m)),K=Ze("serial",m),ee=Ze("chn",m),X=a+"/api/lapp/video/by/time",Y={accessToken:r.accessToken,recType:1,deviceSerial:K,channelNo:ee,startTime:U,endTime:N,version:"2.0"};zn(X,"POST",Y,"",B)}else if(i.indexOf("alarmId")!==-1){var de=function(nt){if(nt.code==200){var Qe=[];if(nt.data){Qe=$e([nt.data]);var Ne=JSON.stringify(Qe).replace("\\","");m+="&recSlice="+Ne.replace("\\",""),console.log("realUrl",m,nt.data.recType),nt.data.recType==1?m=m.replace("/playback","/cloudplayback"):m=m.replace("/cloudplayback","/playback"),y(m)}}function $e(ke){var Be=[];return ke.forEach(function(Le,ln){Be.length==0||Le.downloadPath!==Be[Be.length-1].downloadPath?Be.push({downloadPath:Le.downloadPath,ownerId:Le.ownerId,iStorageVersion:Le.iStorageVersion,videoType:Le.videoType,iPlaySpeed:0,startTime:Le.startTime,endTime:Le.endTime}):Be[Be.length-1].endTime=Le.endTime}),console.log("downloadPathArr",Be),Be}};console.log("\u8FDB\u5165alarmId\u56DE\u653E");var ce=Ze("alarmId",m),U=C(Ze("begin",m)),N=C(Ze("end",m)),K=Ze("serial",m),ee=Ze("chn",m),X=a+"/api/lapp/video/by/id",Y={accessToken:r.accessToken,deviceSerial:K,channelNo:ee,alarmId:ce};zn(X,"POST",Y,"",de)}else y(m)}else y(m)}else r.pluginStatus.loadingSetText({text:E.msg,color:"red"}),typeof r.params.handleError=="function"&&r.params.handleError({retcode:E.code,msg:E.msg,id:r.params.id,type:"handleError"}),v(E)})};return new Promise(function(_,y){return s(_,y)});function l(_,y){var v=/^[0-9]{8}T[0-9]{6}Z$/;if(v.test(_))return _;if(/[0-9]{8,14}/.test(_)){var m=6-(14-_.length),w=y.length,R=_+y.substring(m,w);return R.slice(0,8)+"T"+R.slice(8)+"Z"}throw new Error("\u56DE\u653E\u65F6\u95F4\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u786E\u8BA4")}function C(_){var y=_.slice(0,4),v=_.slice(4,6),m=_.slice(6,8),w=_.slice(9,11),R=_.slice(11,13),E=_.slice(13,15),b=y+"-"+v+"-"+m+" "+w+":"+R+":"+E;return new Date(b.replace(/-/g,"/")).getTime()}}},{key:"_pluginPlay",value:function(n,i,r){var a=this;if(console.log("get real url result ===",n),!n)return!1;function s(_){var y=_.split("?")[0].replace("/live","").replace("/playback",""),v=(_.indexOf("/live")===-1?_.indexOf("cloudplayback")!==-1?"/cloudplayback?":"/playback?":"/live?")+_.split("?")[1];return v.indexOf("/playback")!==-1&&(v=v.replace("stream=2","stream=1")),{websocketConnectUrl:y,websocketStreamingParam:v}}var l=s(n).websocketConnectUrl;this.env&&this.env.wsUrl&&(l=this.env.wsUrl);var C={playURL:s(n).websocketStreamingParam};this.jSPlugin.JS_Play(l,C,0).then(function(){if(console.log("\u64AD\u653E\u6210\u529F"),a.validateCode&&typeof a.jSPlugin.decoderVersion!="undefined"&&a.jSPlugin.decoderVersion==="2.0"&&a.jSPlugin.JS_SetSecretKey(0,a.validateCode),a.pluginStatus.loadingClear(),a.pluginStatus.setPlayStatus({play:!0,loading:!1}),a.Theme){a.Theme.setDecoderState({play:!0});var _=Mt.findIndex(a.Theme.themeData.footer.btnList,function(y){return y.iconId==="sound"&&y.isrender===1&&y.defaultActive===1})>-1;a.audio=_}a.audio&&setTimeout(function(){a.openSound()},500),typeof a.params.handleSuccess=="function"&&a.params.handleSuccess({retcode:0,id:a.params.id,type:"handleSuccess"}),i(),a.Monitor.dclog({url:a.url,action:211,d:new Date().getTime()-a.playStartTime,text:"startPlaySuccess"}),a.Monitor.playLog({Enc:a.url.indexOf("@")===-1?0:1,PlTp:a.url.indexOf("back")===-1?1:2,Via:2,ErrCd:0,Cost:new Date().getTime()-a.playStartTime,Serial:Ue(a.url).deviceSerial,Channel:Ue(a.url).channelNo,Ver:en()?"v7.0.0":"v6.0.0"})},function(_){console.log("err",_);var y="\u64AD\u653E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u8BBE\u5907\u53CA\u5BA2\u6237\u7AEF\u7F51\u7EDC",v=-1;if(_&&_.oError&&_.oError.errorCode){var m=a.errorHander.matchErrorInfo(_.oError.errorCode);y=m&&m.description?m.description:"\u64AD\u653E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u8BBE\u5907\u53CA\u5BA2\u6237\u7AEF\u7F51\u7EDC",v=_.oError.errorCode}a.pluginStatus.loadingSetText({text:y,color:"red"}),typeof a.params.handleError=="function"&&a.params.handleError({retcode:v,msg:y,id:a.params.id,type:"handleError"}),r(),a.Monitor.dclog({url:a.url,action:411,d:new Date().getTime()-a.playStartTime,text:"startPlayError"}),a.Monitor.playLog({Enc:a.url.indexOf("@")===-1?0:1,PlTp:a.url.indexOf("back")===-1?1:2,Via:2,ErrCd:v,Cost:-1,Serial:Ue(a.url).deviceSerial,Channel:Ue(a.url).channelNo,Ver:en()?"v7.0.0":"v6.0.0"})})}},{key:"play",value:function(n){var i=this;if(this.jSPlugin.bPlay)return!1;this.pluginStatus.setPlayStatus({play:!1,loading:!0}),this.playStartTime=new Date().getTime(),this.Monitor.dclog({url:this.url,action:1,d:new Date().getTime()-this.initTime,text:"startPlay"}),n&&(typeof n.url=="string"&&(this.url=n.url),typeof n.accessToken=="string"&&(this.accessToken=n.accessToken),this.Theme&&(typeof n.url=="string"||typeof n.accessToken=="string")&&this.Theme.getDeviceInfo());var r=new Promise(function(a,s){i._getRealUrlPromise(i.accessToken,i.url).then(function(l){i._pluginPlay(l,function(){return a(!0)},function(){return s(!1)})}).catch(function(l){var C=l.msg?l.msg:"\u64AD\u653E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u8BBE\u5907\u53CA\u5BA2\u6237\u7AEF\u7F51\u7EDC";i.pluginStatus.loadingSetText({text:C,color:"red"}),typeof i.params.handleError=="function"&&i.params.handleError({retcode:l.oError?l.oError.errorCode:-1,msg:C,id:i.params.id,type:"handleError"}),s(!1)})});return r}},{key:"stop",value:function(){var n=this;if(!this.jSPlugin.bPlay){console.log("\u5F53\u524D\u975E\u64AD\u653E\u72B6\u6001");var i=new Promise(function(r,a){a({retcode:-1,msg:"\u5F53\u524D\u975E\u64AD\u653E\u72B6\u6001"})});return i}return this.pluginStatus.setPlayStatus({loading:!0}),this.jSPlugin.JS_Stop(0).then(function(){console.log("\u505C\u6B62\u6210\u529F"),n.pluginStatus.setPlayStatus({play:!1,loading:!1}),n.Theme&&n.Theme.setDecoderState({play:!1})})}},{key:"changeVideoLevel",value:function(n){var i=this,r=this.url,a=n?r.replace(".live",".hd.live"):r.replace(".hd.live",".live");this.jSPlugin.playURL=n?this.jSPlugin.playURL.replace("stream=2","stream=1"):this.jSPlugin.playURL.replace("stream=1","stream=2"),console.log("changeVideoLevel",a,this.jSPlugin.playURL),this.url=a;var s=new Promise(function(l,C){i.pause().then(function(){console.log("\u6682\u505C\u6210\u529F"),i.resume().then(function(_){console.log("\u6062\u590D\u6210\u529F")})}).catch(function(){console.log("\u6682\u505C\u5931\u8D25"),i.resume().then(function(_){console.log("\u6062\u590D\u6210\u529F")})})});return s}},{key:"changePlayUrl",value:function(n){var i=this,r=this.url,a=l(r,n);console.log("changePlayUrl",a),this.url=a;var s=new Promise(function(C,_){i.stop().then(function(){if(console.log("changePlayUrl stop success"),i.Theme&&i.Theme.Ptz&&(i.Theme.setDecoderState({pantile:!1}),i.Theme.Ptz.hide()),i.Theme&&i.Theme.setDecoderState({recordvideo:!1}),i.Theme&&(i.Theme.setDecoderState({zoom:!1}),i.Zoom&&i.Zoom.stopZoom()),i.Theme&&i.Theme.decoderState.state.talk&&(i.stopTalk(),i.Theme.setDecoderState({talk:!1})),n.accessToken)return i.accessToken=n.accessToken,i.play({accessToken:n.accessToken,url:a}).then(function(){console.log("changePlayUrl replay success"),i.Theme&&i.Theme.decoderState.state.webExpend&&i.Theme.webExpend(),i.Theme&&i.Theme.decoderState.state.expend&&i.Theme.expend(),C(a)}).catch(function(y){_(a)});i.play(a).then(function(){console.log("changePlayUrl replay success"),i.Theme&&i.Theme.decoderState.state.webExpend&&i.Theme.webExpend(),i.Theme&&i.Theme.decoderState.state.expend&&i.Theme.expend(),C(a)}).catch(function(y){_(a)})}).catch(function(y){if(console.log("\u5207\u6362\u8FC7\u7A0B\u505C\u6B62\u5931\u8D25",y),n.accessToken)return i.accessToken=n.accessToken,i.play({accessToken:n.accessToken,url:a}).then(function(){C(a)}).catch(function(v){_(a)});i.play(a).then(function(){C(a)}).catch(function(v){_(a)})})});function l(C,_){if(_.url)return _.url;var y=C.split("/")[4].split(".")[C.split("/")[4].split(".").length-1].split("?")[0];y==="rec"&&C.indexOf(".cloud.rec")!==-1&&(y="cloud.rec"),_.type&&(y=_.type);var v=C.split("/")[3];_.deviceSerial&&(v=_.deviceSerial);var m=C.split("/")[4].split(".")[0];_.channelNo&&(m=_.channelNo);var w=C.split("/")[2].split("@").length===2?C.split("/")[2].split("@")[0]:"";typeof _.validCode!="undefined"&&(w=_.validCode);var R=typeof _.hd=="undefined"?C.indexOf(".hd")!==-1:_.hd,E="ezopen://".concat(w?"".concat(w,"@"):"","open.ys7.com/").concat(v,"/").concat(m).concat(R?".hd":"",".").concat(y);return y==="live"||(E="ezopen://".concat(w?"".concat(w,"@"):"","open.ys7.com/").concat(v,"/").concat(m,".").concat(y),_.begin&&_.end?E+="?begin=".concat(_.begin,"&end=").concat(_.end):_.begin?E+="?begin=".concat(_.begin):Ze("begin",C)&&(E+="?begin=".concat(Ze("begin",C)))),E}return s}},{key:"getOSDTime",value:function(){var n=this,i=new Promise(function(r,a){n.jSPlugin.JS_GetOSDTime(0).then(function(s){r({code:0,retcode:0,data:s}),typeof n.params.getOSDTimeCallBack=="function"&&n.params.getOSDTimeCallBack({id:n.id,type:"getOSDTime",code:0,data:s})}).catch(function(s){a({code:-1,retcode:-1,data:s}),typeof n.params.getOSDTimeCallBack=="function"&&n.params.getOSDTimeCallBack({id:n.id,type:"getOSDTime",code:-1,data:-1})})});return i}},{key:"capturePicture",value:function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.jSPlugin.JS_CapturePicture(0,n,"JPEG",r,!!r);return mn(a)?(typeof this.params.capturePictureCallBack=="function"&&a.then(function(){i.params.capturePictureCallBack({id:i.id,type:"capturePicture",code:0})}).catch(function(){i.params.capturePictureCallBack({id:i.id,type:"capturePicture",code:-1})}),a):new Promise(function(s){s(a)})}},{key:"startSave",value:function(n){var i=this,r=this.jSPlugin.JS_StartSave(0,n);return mn(r)?(typeof this.params.startSaveCallBack=="function"&&r.then(function(){i.params.startSaveCallBack({id:i.id,type:"startSave",code:0})}).catch(function(){i.params.startSaveCallBack({id:i.id,type:"startSave",code:-1})}),r):(this.Theme&&this.Theme.setDecoderState({recordvideo:!0}),new Promise(function(a){a(r)}))}},{key:"stopSave",value:function(){var n=this,i=this.jSPlugin.JS_StopSave(0);return mn(i)?(typeof this.params.startSaveCallBack=="function"&&i.then(function(){n.params.stopSaveCallBack({id:n.id,type:"stopSave",code:0})}).catch(function(){n.params.stopSaveCallBack({id:n.id,type:"stopSave",code:-1})}),i):(this.Theme&&this.Theme.setDecoderState({recordvideo:!1}),new Promise(function(r){r(i)}))}},{key:"openSound",value:function(){var n=this.jSPlugin.JS_OpenSound(0);return console.log("\u6253\u5F00\u58F0\u97F3",n),mn(n)?n:(this.Theme&&this.Theme.setDecoderState({sound:!0}),typeof this.params.openSoundCallBack=="function"&&this.params.openSoundCallBack({id:this.id,type:"openSound",code:n}),new Promise(function(i){i(n)}))}},{key:"closeSound",value:function(){var n=this.jSPlugin.JS_CloseSound(0);return mn(n)?n:(this.Theme&&this.Theme.setDecoderState({sound:!1}),typeof this.params.closeSoundCallBack=="function"&&this.params.closeSoundCallBack({id:this.id,type:"closeSound",code:n}),new Promise(function(i){i(n)}))}},{key:"enableZoom",value:function(){var n=this.jSPlugin.JS_EnableZoom(0);return mn(n)?n:new Promise(function(i){i(n)})}},{key:"closeZoom",value:function(){var n=this.jSPlugin.JS_DisableZoom(0);return mn(n)?n:new Promise(function(i){i(n)})}},{key:"setPoster",value:function(n){en()?document.getElementById("".concat(this.id))&&(document.getElementById("".concat(this.id)).style.backgroundImage="url(".concat(n,")"),document.getElementById("".concat(this.id)).style.backgroundSize="cover"):document.getElementById("".concat(this.id,"canvas0"))&&(document.getElementById("".concat(this.id,"canvas0")).style.backgroundImage="url(".concat(n,")"),document.getElementById("".concat(this.id,"canvas0")).style.backgroundSize="cover")}},{key:"reSize",value:function(n,i){var r=0,a=0;if(this.params.height=i,this.params.width=n,this.Theme&&this.Theme.isNeedRenderHeader&&document.getElementById("".concat(this.id,"-headControl"))&&(r=parseInt(document.getElementById("".concat(this.id,"-headControl")).style.height,10)),this.Theme&&this.Theme.isNeedRenderTimeLine&&!this.isMobile&&(a=48),i=i-r-a,this.width=n,this.height=i,document.getElementById("".concat(this.id,"-wrap")).style="width:".concat(n,"px;position:relative;display:inline-block;vertical-align: bottom;"),document.getElementById("".concat(this.id)).style.width=n+"px",document.getElementById("".concat(this.id)).style.height=i+"px",this.jSPlugin&&this.jSPlugin.bPlay)this.jSPlugin&&(this.jSPlugin.iHeight=i,this.jSPlugin.iWidth=n),this.jSPlugin.JS_Resize(n,i);else{document.getElementById("".concat(this.id,"-player"))&&(document.getElementById("".concat(this.id,"-player")).style.width=n,document.getElementById("".concat(this.id,"-player")).style.height=i);var s=1;if(document.getElementById("".concat(this.id,"canvas0"))){var l=navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);l&&(s=2),document.getElementById("".concat(this.id,"canvas0")).style.width=n*s,document.getElementById("".concat(this.id,"canvas0")).style.height=i*s,document.getElementById("".concat(this.id,"canvas0")).width=n*s,document.getElementById("".concat(this.id,"canvas0")).height=i*s,document.getElementById("".concat(this.id,"canvas0")).parentNode.style.width=n*s,document.getElementById("".concat(this.id,"canvas0")).parentNode.style.height=i*s,document.getElementById("".concat(this.id,"canvas_draw0")).height=i*s}this.jSPlugin&&(this.jSPlugin.iHeight=i*s,this.jSPlugin.iWidth=n*s)}}},{key:"fast",value:function(n){var i=this,r=this.speed;if(n)var a=this.jSPlugin.JS_Fast(0,n);else{if(r===1)r=2;else if(r===2)r=4;else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"\u64AD\u653E\u901F\u5EA6\u6700\u5927\u4E3A4\u500D\u901F\u5EA6",retcode:1003,id:this.id,type:"handleError"}),new Promise(function(l,C){i.speed=r,C({code:-1,data:{speed:r,result:"\u64AD\u653E\u901F\u5EA6\u6700\u5927\u4E3A4\u500D\u901F\u5EA6"}})});var a=this.jSPlugin.JS_Fast(0)}return new Promise(function(s){i.speed=r,s({code:0,data:{speed:r,result:a}})})}},{key:"slow",value:function(){var n=this,i=this.speed;if(i===4)i=2;else if(i===2)i=1;else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"\u64AD\u653E\u901F\u5EA6\u6700\u5C0F\u4E3A1\u500D\u901F\u5EA6",retcode:1003,id:this.id,type:"handleError"}),new Promise(function(a,s){n.speed=i,s({code:-1,data:{speed:i,result:"\u64AD\u653E\u901F\u5EA6\u6700\u5C0F\u4E3A1\u500D\u901F\u5EA6"}})});var r=this.jSPlugin.JS_Slow(0);return new Promise(function(a){n.speed=i,a({code:0,data:{speed:i,result:r}})})}},{key:"seek",value:function(n,i){var r=this.url,a=(Ze("begin",r)||new Date().Format("yyyyMMdd")).substr(0,8);if(i=s(a,"235959"),n.length===6)n=s(a,n);else if(n.length===16){if(n.substr(0,8)!==a)return typeof this.params.handleError=="function"&&this.params.handleError({msg:"seek\u65F6\u95F4\u4E0D\u80FD\u8DE8\u65E5\u671F",retcode:-1,id:this.id,type:"handleError"}),!1}else return typeof this.params.handleError=="function"&&this.params.handleError({msg:"seek\u65F6\u95F4\u683C\u5F0F\u9519\u8BEF",retcode:-1,id:this.id,type:"handleError"}),!1;function s(C,_){var y=/^[0-9]{8}T[0-9]{6}Z$/;if(y.test(C))return C;if(/[0-9]{8,14}/.test(C)){var v=6-(14-C.length),m=_.length,w=C+_.substring(v,m);return w.slice(0,8)+"T"+w.slice(8)+"Z"}throw new Error("\u56DE\u653E\u65F6\u95F4\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u786E\u8BA4")}var l=this.jSPlugin.JS_Seek(0,n,i);return console.log("seekRT",l),mn(l)?l:new Promise(function(C){C(l)})}},{key:"fullScreen",value:function(){var n=this,i=ui(document.getElementById("".concat(this.id)));i.then(function(a){console.log("\u5168\u5C4Fpromise",window.screen.availWidth),n.jSPlugin.JS_Resize(window.screen.availWidth,window.screen.availHeight),typeof n.params.fullScreenCallBack=="function"&&n.params.fullScreenCallBack({id:n.id,type:"fullScreen",code:0})});var r=function(){var s=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen;s||n.jSPlugin.JS_Resize(n.width,n.height),typeof n.params.fullScreenChangeCallBack=="function"&&n.params.fullScreenChangeCallBack({id:n.id,type:"fullScreen",code:s})};["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].forEach(function(a){window.addEventListener(a,function(s){return r()})})}},{key:"cancelFullScreen",value:function(){var n=this,i=_o();i.then(function(r){console.log("\u53D6\u6D88\u5168\u5C4F",r,n.jSPlugin),n.jSPlugin.JS_Resize(n.width,n.height)})}},{key:"startTalk",value:function(){this.Talk.startTalk()}},{key:"stopTalk",value:function(){this.Talk.stopTalk()}},{key:"destroy",value:function(){var n=this.jSPlugin.JS_DestroyWorker(0);return this.Theme&&(this.Theme=null,window.EZUIKit[this.params.id].state.EZUIKitPlayer.themeInit=!1),mn(n)?n:new Promise(function(i){i(n)})}},{key:"getDeviceCapacity",value:function(){var n=this,i=this.env.domain;this.env&&(i=this.env.domain);var r=i+"/api/lapp/device/capacity",a=function(C){C.code==200&&C.data&&(n.capacity=C.data)},s={accessToken:this.accessToken,deviceSerial:Ue(this.url).deviceSerial};zn(r,"POST",s,"",a)}},{key:"pause",value:function(){return this.jSPlugin.JS_Pause(0)}},{key:"resume",value:function(n){return this.jSPlugin.JS_Resume(n)}}]),h}();(function(h,u){Se(Bn)==="object"&&Se(Bn.exports)==="object"?Bn.exports=h.document?u(h,!0):function(n){if(!n.document)throw new Error("EZUIPlayer requires a window with a document");return u(n)}:u(h)})(typeof window!="undefined"?window:void 0,function(h,u){var n={Core:Ms,HLS:js,FLV:Os,EZUIKitPlayer:Pl};return h.EZUIKit=n,n})})(Nr,Nr.exports);var Um=Om(Nr.exports);export{Um as E};