⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expansion_embed.js

📁 这篇文章主要用来说明获取设备表述的情况,希望大家可以得到帮助
💻 JS
📖 第 1 页 / 共 3 页
字号:
I.prototype.toString=function(){if(this.i)return this.i;var a=[],b=0,c=this.e.D(),d=0;for(;d<c.length;d++){var e=c[d],f=Ca(e),g=this.e.get(e);if(r(g)){var h=0;for(;h<g.length;h++){b>0&&a.push("&");a.push(f,"=",Ca(g[h]));b++}}else{b>0&&a.push("&");a.push(f,"=",Ca(g));b++}}return this.i=a.join("")};I.prototype.ja=function(){delete this.i;this.yb&&delete this.yb.i};I.prototype.clone=function(){var a=new I;a.e=this.e.clone();return a};I.prototype.C=function(a){var b=String(a);if(this.m)b=b.toLowerCase();return b};I.prototype.H=function(a){var b=a&&!this.m;if(b){this.ja();ib(this.e,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.m=a};var J="SETUP_ACK",K={},ub=function(a,b){var c=b||tb,d=c.length,e="";for(;a-- >0;)e+=c.charAt(Math.floor(Math.random()*d));return e},tb="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var L=function(){};v(L,x);L.prototype.k=0;var M=function(a){this.a=a;this.la=[];this.Bc=t(this.Pb,this)};v(M,L);M.prototype.k=2;M.prototype.ya=i;M.prototype.sc=0;M.prototype.connect=function(){if(this.a.K()==0){this.w=this.a.L;this.w.XPC_toOuter=t(this.hb,this)}else this.Na()};M.prototype.Na=function(){var a=l;try{if(!this.w)this.w=window.frameElement;if(this.w&&this.w.XPC_toOuter){this.nb=this.w.XPC_toOuter;this.w.XPC_toOuter.XPC_toInner=t(this.hb,this);a=i;this.send("tp",J);this.a.z()}}catch(b){}if(a){if(!this.Bb)this.Bb=t(this.Na,this);window.setTimeout(this.Bb,100)}};M.prototype.Y=function(a){if(this.a.K()==0&&!this.a.j()&&a==J){this.nb=this.w.XPC_toOuter.XPC_toInner;this.a.z()}else n(Error("Got unexpected transport message."))};M.prototype.hb=function(a,b){if(!this.ya&&this.la.length==0)this.a.t(a,b);else{this.la.push({serviceName:a,payload:b});if(this.la.length==1)this.sc=window.setTimeout(this.Bc,1)}};M.prototype.Pb=function(){for(;this.la.length;){var a=this.la.shift();this.a.t(a.serviceName,a.payload)}};M.prototype.send=function(a,b){this.ya=l;this.nb(a,b);this.ya=i};M.prototype.b=function(){M.I.b.call(this);this.w=this.nb=j};var N=function(a){this.a=a;this.ma=this.a.g.ppu;this.Dc=this.a.g.lpu;this.za=[]},vb,wb;v(N,L);N.prototype.k=4;N.prototype.Aa=0;N.prototype.P=i;N.prototype.ia=i;var xb="googlexpc";N.prototype.da=function(){return xb+"_"+this.a.name+"_msg"};N.prototype.ca=function(){return xb+"_"+this.a.name+"_ack"};N.prototype.connect=function(){if(!this.ia){this.Jb();this.ia=l}this.Db()};N.prototype.Jb=function(){var a=this.da();this.V=this.qa(a);this.lb=window.frames[a];a=this.ca();this.Q=this.qa(a);this.Ka=window.frames[a]};N.prototype.qa=function(a){var b=document.createElement("iframe"),c=b.style;c.position="absolute";c.top="-10px";c.left="10px";c.width="1px";c.height="1px";b.id=b.name=a;b.src=this.ma+"#INITIAL";document.body.appendChild(b);return b};N.prototype.Zb=function(){this.a.name=ub(10);this.Ua();this.ia=i;this.Fc=this.qa(xb+"_reconnect_"+this.a.name)};N.prototype.ec=function(){var a=this.a.l.frames,b=a.length,c=0;for(;c<b;c++){var d;try{if(a[c]&&a[c].name)d=a[c].name}catch(e){}if(!!d){var f=d.split("_");if(f.length==3&&f[0]==xb&&f[1]=="reconnect"){this.a.name=f[2];this.Ua();this.ia=i;break}}}};N.prototype.Ua=function(){if(this.V){this.V.parentNode.removeChild(this.V);this.lb=this.V=j}if(this.Q){this.Q.parentNode.removeChild(this.Q);this.Ka=this.Q=j}};N.prototype.Db=function(){if(this.kb(this.da())&&this.kb(this.ca())){this.bc=new yb(this,this.a.l.frames[this.da()],t(this.hc,this));this.zb=new yb(this,this.a.l.frames[this.ca()],t(this.gc,this));this.Qa()}else{if(this.a.K()==1&&!this.Fc)this.Zb();else this.a.K()==0&&this.ec();window.setTimeout(t(this.connect,this),100)}};N.prototype.kb=function(a){try{var b=this.a.l.frames[a];if(!b||b.location.href.indexOf(this.Dc)!=0)return i}catch(c){return i}return l};N.prototype.Qa=function(){var a=this.a.l.frames;if(a[this.ca()]&&a[this.da()]){this.cc=new zb(this.ma,this.lb);this.oa=new zb(this.ma,this.Ka);window.setTimeout(t(function(){this.cc.send("SETUP");this.P=this.Ic=l},this),100)}else{if(!this.Eb)this.Eb=t(this.Qa,this);window.setTimeout(this.Eb,100)}};N.prototype.Pa=function(){if(this.nc&&this.Ec){this.a.z();if(this.ba){var a=0,b;for(;a<this.ba.length;a++){b=this.ba[a];this.a.t(b.service,b.payload)}delete this.ba}}};N.prototype.hc=function(a){if(a=="SETUP"){if(!!this.oa){this.oa.send(J);this.nc=l;this.Pa()}}else if(this.a.j()||this.nc){var b=a.indexOf("|"),c=a.substring(0,b),d=a.substring(b+1);b=c.indexOf(",");if(b==-1){var e=c;this.oa.send("ACK:"+e);this.Va(d)}else{var e=c.substring(0,b);this.oa.send("ACK:"+e);var f=c.substring(b+1).split("/");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10);if(f[0]==1)this.ob=[];this.ob.push(d);if(f[0]==f[1]){this.Va(this.ob.join(""));delete this.ob}}}};N.prototype.gc=function(a){if(a==J){this.P=i;this.Ec=l;this.Pa()}else if(this.a.j())if(!!this.P){var b=parseInt(a.split(":")[1],10);if(b==this.Aa){this.P=i;this.sb()}}};N.prototype.sb=function(){if(!(this.P||!this.za.length)){var a=this.za.shift();++this.Aa;this.cc.send(this.Aa+a);this.P=l}};N.prototype.Va=function(a){var b=a.indexOf(":"),c=a.substr(0,b),d=a.substring(b+1);this.a.j()?this.a.t(c,d):(this.ba||(this.ba=[])).push({service:c,payload:d})};N.prototype.$=3800;N.prototype.send=function(a,b){var c=a+":"+b;if(!C||b.length<=this.$)this.za.push("|"+c);else{var d=b.length,e=Math.ceil(d/this.$),f=0,g=1;for(;f<d;){this.za.push(","+g+"/"+e+"|"+c.substr(f,this.$));g++;f+=this.$}}this.sb()};N.prototype.b=function(){N.I.b.call(this);var a=Ab;ua(a,this.bc);ua(a,this.zb);this.bc=this.zb=j;bb(this.V);bb(this.Q);this.lb=this.Ka=this.V=this.Q=j};var Ab=[],Cb=function(){var a=i;try{var b=0,c=Ab.length;for(;b<c;b++)a=a||Ab[b].receive()}catch(d){Ab[b].d.a.dc();if(!Ab.length)return}var e=na();if(a)vb=e;var f=e-vb<1000?10:100;wb=window.setTimeout(Bb,f)},Bb=t(Cb,N),Db=function(){vb=na();wb&&window.clearTimeout(wb);wb=window.setTimeout(Bb,10)},zb=function(a,b){this.ma=a;this.mc=b;this.Ta=0};zb.prototype.send=function(a){this.Ta=++this.Ta%2;var b=this.ma+"#"+this.Ta+encodeURIComponent(a);try{if(D)this.mc.location.href=b;else this.mc.location.replace(b)}catch(c){}Db()};var yb=function(a,b,c){this.d=a;this.ic=b;this.xc=c;this.Nb=this.ic.location.href.split("#")[0]+"#INITIAL";Ab.push(this);Db()};yb.prototype.receive=function(){var a=this.ic.location.href;if(a!=this.Nb){this.Nb=a;var b=a.split("#")[1];if(b){b=b.substr(1);this.xc(decodeURIComponent(b))}return l}else return i};var O=function(a,b){x.call(this);this.ac=b;this.J=[];this.Lb(a)};v(O,x);O.prototype.ra=j;O.prototype.sa=j;O.prototype.X=function(a){this.ra=a};O.prototype.vb=function(a){this.sa=a};O.prototype.u=function(){if(this.J.length)return this.J.pop();return this.Sa()};O.prototype.O=function(a){this.J.length<this.ac?this.J.push(a):this.Wa(a)};O.prototype.Lb=function(a){if(a>this.ac)n(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));var b=0;for(;b<a;b++)this.J.push(this.Sa())};O.prototype.Sa=function(){return this.ra?this.ra():{}};O.prototype.Wa=function(a){if(this.sa)this.sa(a);else if(ha(a.dispose))a.dispose();else for(var b in a)delete a[b]};O.prototype.b=function(){O.I.b.call(this);var a=this.J;for(;a.length;)this.Wa(a.pop());delete this.J};var Eb=function(a,b){this.type=a;this.currentTarget=this.target=b};v(Eb,x);Eb.prototype.b=function(){delete this.type;delete this.target;delete this.currentTarget};Eb.prototype.xa=i;Eb.prototype.lc=l;var P=function(a,b){a&&this.init(a,b)};v(P,Eb);P.prototype.type=j;P.prototype.target=j;P.prototype.relatedTarget=j;P.prototype.offsetX=0;P.prototype.offsetY=0;P.prototype.clientX=0;P.prototype.clientY=0;P.prototype.screenX=0;P.prototype.screenY=0;P.prototype.button=0;P.prototype.keyCode=0;P.prototype.charCode=0;P.prototype.ctrlKey=i;P.prototype.altKey=i;P.prototype.shiftKey=i;P.prototype.metaKey=i;P.prototype.ta=j;P.prototype.init=function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type=="mouseover"?a.fromElement:this.type=="mouseout"?a.toElement:j;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.ta=a;delete this.lc;delete this.xa};P.prototype.b=function(){P.I.b.call(this);this.ta=j};var Q=function(){},Fb=0;Q.prototype.va=j;Q.prototype.listener=j;Q.prototype.proxy=j;Q.prototype.src=j;Q.prototype.type=j;Q.prototype.capture=j;Q.prototype.handler=j;Q.prototype.key=0;Q.prototype.removed=i;Q.prototype.Oa=i;Q.prototype.init=function(a,b,c,d,e,f){if(ha(a))this.va=l;else if(a&&a.handleEvent&&ha(a.handleEvent))this.va=i;else n(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.Oa=i;this.key=++Fb;this.removed=i};Q.prototype.handleEvent=function(a){if(this.va)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};var Gb={},R={},Hb={},Ib=new O(0,600);Ib.X(function(){return{c:0}});Ib.vb(function(a){a.c=0});var S=new O(0,600);S.X(function(){return[]});S.vb(function(a){a.length=0;delete a.ka;delete a.mb});var Jb=new O(0,600);Jb.X(function(){var a=function(b){return Kb.call(a.src,a.key,b)};return a});var Lb=function(){return new Q},Mb=new O(0,600);Mb.X(Lb);var Nb=function(){return new P},Ob=function(){var a=j;if(C){a=new O(0,600);a.X(Nb)}return a},Pb=Ob(),Qb="on",Rb={},Sb=function(a,b,c,d,e){if(b)if(r(b)){var f=0;for(;f<b.length;f++)Sb(a,b[f],c,d,e);return j}else{var g=!!d,h=R;b in h||(h[b]=Ib.u());h=h[b];if(!(g in h)){h[g]=Ib.u();h.c++}h=h[g];var m=la(a),k,p;if(h[m]){k=h[m];var f=0;for(;f<k.length;f++){p=k[f];if(p.listener==c&&p.handler==e){if(p.removed)break;return k[f].key}}}else{k=h[m]=S.u();h.c++}var q=Jb.u();q.src=a;p=Mb.u();p.init(c,q,a,b,g,e);var B=p.key;q.key=B;k.push(p);Gb[B]=p;Hb[m]||(Hb[m]=S.u());Hb[m].push(p);if(a.addEventListener){if(a==o||!a.Ac)a.addEventListener(b,q,g)}else a.attachEvent(Tb(b),q);return B}else n(Error("Invalid event type"))},Ub=function(a,b,c,d,e){if(r(b)){var f=0;for(;f<b.length;f++)Ub(a,b[f],c,d,e);return j}var g=!!d,h=Vb(a,b,g);if(!h)return i;var f=0;for(;f<h.length;f++)if(h[f].listener==c&&h[f].capture==g&&h[f].handler==e)return Wb(h[f].key);return i},Wb=function(a){if(!Gb[a])return i;var b=Gb[a];if(b.removed)return i;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==o||!c.Ac)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(Tb(d),e);var g=la(c),h=R[d][f][g];if(Hb[g]){var m=Hb[g];ua(m,b);m.length==0&&delete Hb[g]}b.removed=l;h.mb=l;Xb(d,f,g,h);delete Gb[a];return l},Xb=function(a,b,c,d){if(!d.ka)if(d.mb){var e=0,f=0;for(;e<d.length;e++)if(d[e].removed)Mb.O(d[e]);else{if(e!=f)d[f]=d[e];f++}d.length=f;d.mb=i;if(f==0){S.O(d);delete R[a][b][c];R[a][b].c--;if(R[a][b].c==0){Ib.O(R[a][b]);delete R[a][b];R[a].c--}if(R[a].c==0){Ib.O(R[a]);delete R[a]}}}},Vb=function(a,b,c){var d=R;if(b in d){d=d[b];if(c in d){d=d[c];var e=la(a);if(d[e])return d[e]}}return j},Tb=function(a){if(a in Rb)return Rb[a];return Rb[a]=Qb+a},Zb=function(a,b,c,d){var e=1,f=R;if(b in f){f=f[b];if(c in f){f=f[c];var g=la(a);if(f[g]){var h=f[g];if(h.ka)h.ka++;else h.ka=1;try{var m=h.length,k=0;for(;k<m;k++){var p=h[k];if(p&&!p.removed)e&=Yb(p,d)!==i}}finally{h.ka--;Xb(b,c,g,h)}}}}return Boolean(e)},Yb=function(a,b){var c=a.handleEvent(b);a.Oa&&Wb(a.key);return c},Kb=function(a,b){if(!Gb[a])return l;var c=Gb[a],d=c.type,e=R;if(!(d in e))return l;e=e[d];var f;if(C){var g=b||da("window.event"),h=l in e;if(h){if(g.keyCode<0||g.returnValue!=undefined)return l;$b(g)}la(c.src);var m=Pb.u();m.init(g,this);f=l;try{if(h){var k=S.u(),p=m.currentTarget;for(;p;p=p.parentNode)k.push(p);var q=k.length-1;for(;!m.xa&&q>=0;q--){m.currentTarget=k[q];f&=Zb(k[q],d,l,m)}var q=0;for(;!m.xa&&q<k.length;q++){m.currentTarget=k[q];f&=Zb(k[q],d,i,m)}}else f=Yb(c,m)}finally{if(k){k.length=0;S.O(k)}m.dispose();Pb.O(m)}return f}var B=new P(b,this);try{f=Yb(c,B)}finally{B.dispose()}return f},$b=function(a){var b=i;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=l}if(b||a.returnValue==undefined)a.returnValue=l};var T=function(a){this.a=a;this.Cc=this.a.g.pru;this.fc=this.a.g.ifrid;D&&ac()};v(T,L);if(D)var bc=[],cc=0,ac=function(){cc||(cc=window.setTimeout(function(){dc()},1000))},dc=function(a){var b=na(),c=a||3000;for(;bc.length&&b-bc[0].timestamp>=c;){var d=bc.shift().iframeElement;bb(d)}cc=window.setTimeout(ec,1000)},ec=function(){dc()};T.prototype.k=3;T.prototype.connect=function(){this.send("tp","SETUP")};T.prototype.Y=function(a){if(a=="SETUP"){this.send("tp",J);this.a.z()}else a==J&&this.a.z()};T.prototype.send=function(a,b){if(C){var c=document.createElement("div");c.innerHTML='<iframe onload="this.xpcOnload()"></iframe>';var d=c.childNodes[0];d.xpcOnload=fc}else{var d=document.createElement("iframe");D?bc.push({timestamp:na(),iframeElement:d}):Sb(d,"load",fc)}var e=d.style;e.visibility="hidden";e.width=d.style.height="0px";e.position="absolute";var f=this.Cc;f+="#"+this.a.name;if(this.fc)f+=","+this.fc;f+="|"+a+":"+encodeURIComponent(b);d.src=f;document.body.appendChild(d)};var fc=function(){bb(this);this.xpcOnload=j};window.xpcRelay=function(a,b){var c=b.indexOf(":"),d=b.substring(0,c),e=b.substring(c+1);K[a].t(d,decodeURIComponent(e))};T.prototype.b=function(){T.I.b.call(this);D&&dc(0)};var V=function(a,b){this.a=a;this.wa=b||"*"};v(V,L);V.prototype.k=1;var gc=i,ic=function(){if(!gc){Sb(window.postMessage?window:document,"message",hc,i,V);gc=l}},hc=function(a){var b=a.ta.data,c=b.indexOf("|"),d=b.indexOf(":");if(c==-1||d==-1)return i;var e=b.substring(0,c),f=b.substring(c+1,d),g=b.substring(d+1),h=K[e];if(h){h.t(f,g);return l}for(var m in K){var k=K[m];if(k.K()==1&&!k.j()&&f=="tp"&&g=="SETUP"){k.name=e;K[e]=k;K[m]=j;k.t(f,g);return l}}return i};V.prototype.Y=function(a){switch(a){case "SETUP":if(!this.Gc){this.Gc=l;this.send("tp",J)}break;case J:this.a.z();break}};V.prototype.connect=function(){ic();this.pa()};V.prototype.pa=function(){if(!this.a.j()){this.send("tp","SETUP");window.setTimeout(t(this.pa,this),100)}};V.prototype.send=function(a,b){var c=this.a.l;if(!!c){var d=c.postMessage?c:c.document;this.send=function(e,f){d.postMessage(this.a.name+"|"+e+":"+f,this.wa)};this.send(a,b)}};V.prototype.b=function(){V.I.b.call(this);Ub(window.postMessage?window:document,"message",hc,i,V)};var W=function(a){this.a=a;this.Cb=a.at||"";this.jc=a.rat||"";jc();this[kc]=this.F;this[lc]=this.Kb};v(W,L);var mc="GCXPC____NIXVBS_wrapper",nc="GCXPC____NIXVBS_get_wrapper",kc="GCXPC____NIXJS_handle_message",lc="GCXPC____NIXJS_create_channel",oc="GCXPC____NIXVBS_container",jc=function(){if(!window.nix_setup_complete){var a="Class "+mc+"\n Private m_Transport\nPrivate m_Auth\nPublic Sub SetTransport(transport)\nIf isEmpty(m_Transport) Then\nSet m_Transport = transport\nEnd If\nEnd Sub\nPublic Sub SetAuth(auth)\nIf isEmpty(m_Auth) Then\nm_Auth = auth\nEnd If\nEnd Sub\nPublic Function GetAuthToken()\n GetAuthToken = m_Auth\nEnd Function\nPublic Sub SendMessage(service, payload)\n Call m_Transport."+kc+

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -