Om Js Content
Om Js Content
(fu
ncti
on(omidGl
o ba
l){
'
use stri
ct'
;var k,
aa='f
unc
tion
'==
typeof
Obj
ect.
d e
fi
neProperti
es?Obj
ect.
defi
neProperty:
functi
on(a,
b,
c){
a !
=Ar
ray.
prototype
&&a!=O
bject.
pro
totype&&(
a[b
]=c.
v
al
ue)}
,m='undef
in
ed '
!
=typeof window& &window===this
?thi
s:
'u
n de
fi
ned'
!
=typeofg loba
l&&gl
obal?
globa
l:t
his
;
func
ti
on
ba(
){ba=f
uncti
on(){
};
m.Symbol|
|(
m.Symb ol=
ca)}varda=0;f
uncti
onca(a)
{re
turn'
js
comp _s
ymbol_'
+(
a||
''
)
+da++}
f
uncti
on n (
){ba(
);
var a =m.Symb ol.
i
terator;
a |
|
(a=m.S
ymb ol
.i
ter
ator=m.S
ymb ol
('
i
terator'
))
;'
fu
ncti
on'
!=
typeof
Arra
y .
prototype[
a ]
&&aa(Ar
ray.prototype,
a,{co
nfi
gu r
able
:!
0,writ
able
:!
0,va
lue:
fu
ncti
on()
{re
t u
rn
ea(
this
)}}
);
n=func
t i
on(
){}
}fu
nctio
n e
a (
a){v
ar b=0;
return f
a(f
uncti
on(
){
retu
rn
b<a.
length?
{done:!
1,
value
:a[
b++]}
:{d
o ne:
!
0}})}
functi
on f a(
a){n(
);
a={
next:
a};
a[m.Sy
mb ol
.i
terato
r]=f
uncti
on(
){
retu
rn
thi
s}
;re
t u
rna }f
uncti
onp (
a){
n();
ba()
;n()
;varb=a[Symb o
l.
ite
rator];
ret
urnb?b.c
all
(a)
:ea(
a)}
f
uncti
on q(
a,b)
{f
unctio
n c(){
}c.
prot
o typ
e=b.
proto
t y
pe;
a .
pa=b.
protot
ype;a
.pr
ototype
=new
c;
a.p
rototype.c
onstructor
=a;f
or(va
r d i
n b)i
f(
'
prototype
'!
=d)i
f(
Obj
ect.d
efi
neProp
erti
es
){v
ar
e=Ob
ject.
getOwnP roper
tyDescr
iptor(b,
d);
e&&Objec
t.def
ine
Property(
a,d
,e)
}el
se a [
d]=b[
d]}f
uncti
on r (a)
{i
f(
!(
a
i
nstanc
eofArray)){a
=p (
a);
f
or(varb,c=[]
;!
(b=a.
next()
).d
one;
)c.
push(
b.v
alu
e);
a=c}r
eturna}
f
uncti
on t(
a,b)
{if
(b)
{var c=m;a=a.s
p l
i
t('
.'
);f
or(
var d=0;
d<a.le
ngth-
1;d+
+){
var e=a[d
];
e i
n
c|
|(
c[
e]={}
);
c=c[e]
}a=a[a.
lengt
h -
1]
;d=
c[a];
b=b(d);
b!
=d&&null
!
=b&&aa(c,
a,{conf
i
gurable:
!0,
wr i
tabl
e:!
0,v
alue
:b}
)}
}t('
Obj
ect.
ass
ign'
,f
unct
ion(
a){
retur
n
a?a:
funct
ion(
a,c)
{for(
var b=1
;b<argume nts
.l
ength;
b++)
{var e=argu
me n
ts[b]
;i
f
(e)
for(
var f i
n
e)
Objec
t .
prototype.
hasOwnPropert
y .
call(
e,
f)
& &(
a[f]
= e
[f
])}
returna}}
);
t(
'Obj
ect.
values
',
functi
on(a
){r
eturn a?a:
func
tion(
a){
var b=[]
,d;
for
(d i
n
a)O
bject.
prototype.
hasOwnProperty.
c a
ll(
a,d)
& &b
.push
(a[d]
);
return b
}})
;t(
'Ob
ject.
i
s'
,f
uncti
on(
a){
retu
rn
a?a:
funct
ion(
a,c)
{return a===c?0!==a|
|1
/a===1/
c :
a!
==a&&c!
==c}
});
t(
'Ar
ray.pr
ototype.
i
nclude
s'
,f
uncti
on(
a){
retu
rn
a?a:
funct
ion(
a,c)
{var b=this
;
b i
nst
anceo
f Stri
ng&&(b
=Stri
ng(
b))
;v
ar
e=b.
l
ength;f
or(c=
c |
|
0;c<e;
c++)
if
(b[
c]==a||
Objec
t.i
s(b[
c],a
))re
turn!
0;re
turn!
1
}})
;f
uncti
on
ha(
a){r
e t
urn/\d+
\.\d+
\.\
d+(-
.*
)?/.
tes
t (
a )
}
f
uncti
on ia(
a){a=a.s
pli
t('
-'
)[0].
spli
t(
'.
')
;f
or(
v ar b=['
1
','
0',
'
3']
,c=
0;3>c;
c++
){v
ar
d=pars
eInt(
a[c],
10),
e=pars
eInt(
b[c]
,10);
if
(d>e)break
;el
se i
f(
d<e)re
turn!
1}
retur
n!0};
f
uncti
on j
a (
a,
b){
retu
rn
ha(
a)&&i
a(a)?
b ?b
:[]:
b&&'
stri
ng'
===typeof b?JSON.
pars
e(b
):
[]}
;v
ar
u={
ea:'
l
o a
d e
d',
ka:'
start'
,Y:
'f
ir
stQuarti
le'
,fa:
'
mid po
int'
,l
a:'
thi
rdQuarti
le
',
X:'
comple
te'
,ga:
'p
ause'
,i
a:
'res
ume',
W:'
buf
fe
rSt
art'
,
V :
'
b u
ff
erFini
sh'
,j
a:'
ski
pped'
,na:
'v
o l
ume Cha
n ge'
,
ha:'p
layer
StateChan
ge'
,S:
'
a d
UserI
nterac
ti
o n'
},
ka={
aa:'
gene
ri
c',
ma:'
vi
deo'
},
la={F:
'
n at
ive'
,ba:
'ht
ml'},
ma =
{F:'
na t
ive
',ca:
'
javasc
ript
',
NO NE
:'
none
'}
,na={
$:'
f
ull
',
da:'
l
imited
'}
,oa={
U:
'back
groun
de
d'
,Z:
'f
oregrounde
d '
},
qa={T:'
app'
,oa:
'web'};
f
unction v (a,
b,c
,d)
{thi
s.
b=a;
thi
s.
me t
hod=b;t
his
.v
ersi
on=c;
thi
s.
a=d}
func
ti
on
ra(
a){r
eturn!
!a&&voi
d 0!= =
a .
omid_mess
a ge
_gui
d&&voi
d 0!
==a.o
mid_mess
a g
e_method&
&voi
d
0!
==a.omi
d _
me ss
age_vers
ion
&&'s
tring'
===typeof a.
omid_mess
age_gui
d&&'
str
ing'
===
typeof
a.
omid_message_
me thod&&'
st
r i
ng'
===typ e
of a .o
mi d
_me s
sage_v
ers
ion
&&(voi
d 0= ==a.
omid_mes
sage_a
rgs|
|
voi
d
0!
==a.omi
d _
me ss
age_args)
}f
uncti
on s
a(a)
{re
turn new
v(
a.omid_
me s
sage_gui
d ,
a.
omid_mess
a ge_method,a.
omid_mes
sage_ve
rsi
on,
a.o
mid_messag
e_args)
}
f
uncti
on ta(a
){v
ar
b={
};
b=(b.
omid_me s
sage_gu
id=a.
b,b.
omid_message_method=a.
me t
hod,
b.o
mid_mess
age_ver
si
on=a.v
ersi
on,
b);
voi
d
0!
==a.a&&(
b.omid_mess
age_args
=a.a);
return b}
;fu
ncti
on ua(a)
{thi
s.
b=a}
;f
uncti
on va(a
){v
ar
b=a.
document.cr
eateEle
me nt
('i
f
rame '
);b
.i
d='omid_v1
_prese
nt'
;b.n
ame='o
mid_v1
_pres
ent'
;b.
st
y l
e.
dis
play=
'none
';
a.
docu
ment.
body.appendChi
ld(
b)}
funct
ion wa(){
var a
=x,b
=new
Mutati
onObserve
r (
funct
ion
(c)
{c.
forEach(f
uncti
on(c)
{'
B ODY'
===c.
addedNo
des[
0].no
deName&&(va(
a),
b.di
s
connec
t()
)}
)})
;
b.
obser
ve(a.
docume n
t.docu
me ntE
lemen t
,{ch
il
dList
:!
0})};
f
uncti
on
z(a
){thi
s.
b=a;
t hi
s
.handle
ExportedMess
a ge=z.
prototype.
c.
bin
d(thi
s)}
q(z,
ua)
;z.
protot
ype.s
endMess
age=f
uncti
on(
a,
b){
b=
voi
d0= ==b?
th i
s.
b:b;
i
f(
!b)
throwE rro
r (
'Messag
ed esti
nati
onmu stbedef
ine
da tcons
tructi
ontimeorwh ense
ndin
gthe
mess
a g
e.'
);
b.
ha ndl
eExporte
dMe s
sage(ta(
a )
,t
his)
};
z.prototy
pe.
c= f
unc
tio
n(a,
b){
ra(a)
&&thi
s.
a&&thi
s.
a(sa
(a)
,b)
};
func
ti
on
xa(
){re
t u
rn'xxxxxxxx-xxxx-4xxx-yx x
x -x
xx xxxxxxxxx'.
re
place(
/[x
y]/g,
fun
cti
on(a)
{var
b=1
6*Ma t
h.random()|
0;r
eturn'
y'===
a ?(b
& 3|
8)
.toStri
ng(1
6):
b.t
oStri
ng(1
6)}
)};
f
u n
cti
on A
(a)
{f
or(v
ar
b=[
],
c=0;c<argume n
ts.l
ength
;++c
)b[c-0]=arguments[c
];
ya(f
unctio
n()
{th
row new
(Fu
ncti
on.pro
t ot
y pe
.bi
nd.a
pply(E
rror,[nul
l]
.concat(
['C
ould n ot c omp l
ete t he t es
t s uc
cess
fu
ll
y -
'
],r
(b))
))
;}
,f
unctio
n (
){r
eturn consol
e.
error.
a pp
ly(c
onsol
e,[
].
conc
at(r(
b))
)})
}f
uncti
on z a
(a)
{f
or(v
ar
b=[
],
c=0;c<argume n
ts.l
ength
;++c
)b[c-0]=arguments[c
];
ya(f
unctio
n()
{}
,f
uncti
on(
){re
turn
cons
ole
.erro
r.apply(
consol
e,
[].
concat(r(
b))
)})
}
f
uncti
on ya (
a,b)
{'
un d
efi
ned'!
==typeof jas
mine&&j
asmin
e?a()
:'
undef
i
ned'
!==
typeof
cons
ole
& &
consol
e&&consol
e.
error&&b(
)};
var A
a=eval
('
thi
s'
),x
=func
tio
n (
){
if
('
undef
i
ned'
!==
typeof
omid
G l
obal&&omidGl
obal)
return omidGlob
a l
;
if
('
undef
ine
d'!
==t
yp e
of gl
obal&
&glob
al)
retu
rn
gl
ob al
;i
f(
'
u ndef
in
e d'
!==
typ eof window& &windo
w)return wi ndow;i
f(
'u
n de
fin
ed'!
==typeo
fA a &&Aa)
retur
nA a;
throw
Er
r or(
'Coul
d n ot d e
t e
rmine g l
obal o bje
ct c on
text.'
);
}(
);fu
ncti
on B (a,
b){
this
.
b=b=b?b:
x;
var
c=thi
s;a
.add E
ventLi
stener(
'message'
,f
unctio
n (
a){
if
('
obj
ect'===typeof a.dat
a){
var
b=a.d
a ta
;ra (
b)
&& a.
sourc
e& &c
.a&&c.
a(sa(
b),a.
sourc
e)}
})
}q(B,ua);
B.p
rototype.s
endMessag
e=f
unctio
n (
a,b
){b
=b?b:
this
.b
;i
f(
!
b)
th r
o w E r
ror('
Me s
saged esti
nati
on mu stb ed ef
in
eda tc ons
tructio
nt i
me o r wh ens endi
ngt he
message.
'
);b.po
stMessage(
ta(a),
'*'
)}
;f
uncti
o n Ba(a,b
){thi
s.
y=this
.
x =0;t
his
.
width=a;
this
.he
igh
t=b};
fun
cti
on
D(
a ,
b){th
is.
x =n
ull
!=a.x
?a .
x:a.
lef
t;thi
s.
y=null
!=a.
y?a.
y:a.
to p;
thi
s.wi
d t
h=a.wi
d th
;this
.h
eig
ht=a.
heig
h t
;thi
s.
end
X= th
is
.x+
t
hi
s.
wid t
h;this
.e
ndY =thi
s.
y+this
.hei
ght;
this.
adSes
si
onId=
a .
a dS
essi
onId|
|
voi
d
0;
t hi
s.
is
Friendl
yO bs
tructi
onFo r=a.
i
sFri
end l
yObstr
ucti
onF or
||
[];t
his
.cl
i
psToB o
und s
=voi
d
0!
== a.
cli
psToBounds?!
0= ==a.
cli
psToBounds:
!0;
this
.c
hil
dViews=a.ch
il
dViews|
|
[];
this.
is
Crea
tiv
e=a.i
sCre
a t
ive
||
!
1;
this
.a
=b}f
un
ct
ionC a(
a )
{varb ={
};r
eturnb .
width=a.width,
b.h
eig
ht=a.hei
ght ,
b}
f
unctionE (a)
{varb ={};
returnO bject.
ass
ign(
{}
,Ca(
a )
,(b
.x=a.x,
b.y=a.
y,b)
)}
functi
onF (
a){varb =
E(a)
,c={
};
retu
rn
Objec
t .
as
sign({
},
b,(c.
endX=a.endX,c.
en
d Y=a.en
dY,c)
)}
functi
on
Da(a,
b ,
c)
{a.x+=b;
a .
y+=c;
a.endX+=b;
a.e
n dY+=c}D.
pro
toty pe.
w= f
uncti
on(a)
{i
f(!
a)retur
n!1
;
a=E(a
);var
b=a.y,
c=a.width
,d=a.he
ight;r
eturn t
his
.x===a.
x &&thi
s.
y===b&&thi
s.wid
th===c
&&this
.hei
ght
===d};
fun
cti
on
Ea(
a )
{return a.width*
a .
hei
ght};
functi
on Fa(a,
b )
{a=E(a)
;f
or(v
a r c=
[],
d=[
],e=0;
e<b.l
ength;
e++
){
var
f
=E(b[e]
),
h =Math.ma x
(a.y,
f.
y),g=Math.
mi n(
a .
x+a.
widt
h ,
f.
x +
f.
wi dt
h),
l=Math.min(a.
y+a.
hei
ght
,f.
y+f.
hei
ght)
;G(c
,Math.
m
ax(a.
x ,
f
.x));
G(c,
g);G
(d,h)
;G(d,
l)
}c=c.
sort(
functi
on(a,
b)
{return a -
b});
d=d.s
ort(
func
ti
on(a,b)
{ret
urn a-
b}
);retu
rn {
P:c,
R:d}}
functi
on G(
a,b)
{-1===
a.i
ndex
O f
(b)&&a
.pus
h(
b )
};
fun
cti
on
Ga(){
this
.
a =thi
s.
b= t
h i
s
.l
=th i
s.
j=thi
s.
c=thi
s.i
=voi
d
0;
t hi
s.
m= 0;thi
s.
g=[];
thi
s.f
=[];
this
.h=[
]}Ga.proto
type.
w= f
u nc
tion(a
){re
turn
a?JSON.
stringi
fy
(H (
thi
s))
===JSON .
str
ingi
fy(H(a
)):
!
1};
f
unction H(
a){
var
b=[],
c={v
iewp o
rt:a.
i,
adView:{perc
entageInVie
w:a.
m,reasons
:a.h}}
;
if(
a.
b){c.
adVi
e w.ge
ometry=E(
a.b)
;c.
adVi
ew.onS
cree
n
Geome t
ry =E(
a.a)
;for(
var
d=0;d<a.
f.l
e n
gth;d++)
b.pus
h(E(a.
f[
d ]
))
;c.
ad Vi
ew.on
Scre
e nGeome t
ry.obs
tructi
ons=b;
a.j
&&a.
l&
&(c.a
d Vi
ew.c
ontai
nerGeo
m
et
r y=E(
a.j)
,c.
adView.onS
creenContain
erG eometry=
E(a.
l),
c.adVie
w.measuri
ngElement=!
0)}
returnc}
f
unction
Ha(a,
b){b
= Ca(b
);
a .
i={
};
a.i
.width=b.
width;a.
i.
hei
ght=b.
hei
gh t;
a.
c ={
};
a.c.
x=0;a.
c.y
= 0;a.
c.
wid
th=b.
wid t
h;a.
c.
hei
ght=b.
hei
gh
t;
a.c.
endX= b.
width;
a .
c.
endY=b .
hei
ght}f
unction Ia(
a,
b){
var
c={
};c.
x=Ma th.
ma x(a.
x,b.
x);c
.y=Ma t
h.ma x(
a .
y,
b.y)
;c
.endX=Ma th.
min(a.
endX,b.
endX);
c.
endY=Math.min
(a.
endY,b
.e
ndY);
c.
width=Ma th.
ma x(0,
c.endX-c.
x )
;c.
hei
ght=Ma th
.max(0,c.
endY -
c.y)
;re
turn c
}fu
ncti
on Ja(
a ,
b){
retu
rn
a.
widt h
<b .
width||
a.he
ight<b.hei
ght}
f
unctionK a(a
){varb = E
a (
a.b);
i
f(b)
{varc =Ea
(a.
a);
vard =a .
f,
e=0;
if
(0<d.le
ngt h)
{va
rf =Fa(a.
a,d)
,h=f
.P;
f
= f
.
R;f
or(
var
g=0;g<h.
length-1;
g++)f
or(var l=(h[
g]+(h[
g ]
+1)
)/2,
J=h[
g +1]
-h[
g],
y=0;
y <f.
le
n g
th-1
;y++)
{f
or(
var
L=
(f[y]+(
f[y]+1
))
/2 ,
pa=f
[y+1]-f
[y],
W= !
1,
M= 0;M<d.l
engt
h ;
M+ +
){var
w=E(d[M]);
if(
w.x<l&&w.x+w.width>l&
&w. y<L&&w.y
+w.height>L){
W= !
0;
b re
ak}}W&&(e+
=Math.
ro u
nd(J)
*Math.
round(
pa)
)}
}b
= Math.
r ound(
(c-e)
/b*1
00) ;
a.m=Ma t
h.ma x(b,
0)}
}
f
unction I (
a,b){
for(
var c =
!1,
d=0;d<a.h.
le
ngth;
d++ )
a.
h [
d ]
===b&&(c=
!0);
c|
|a.h
.pu
sh(
b)}
;f
unctio
n L a(
){}
fun
cti
on
Ma(a,b,
c,
d ){v
ar e =
new G a(
0);
b=new D (b,
!
1);
Ha(e,b
);Na(a,
b,
e,d);
i
f(
'backgroun
ded'
===c)I
(e,
'ba
ckgrounde
d')
;
els
e
i
f(
e.b)
{for(a=0;
a<e .
g.l
ength;a++)
{c=e
.g[a];
if
(0!
==c.
width&&0!==c.
heig
ht&&e.
a )
{d=F(e.
a)
;b=
d.y;
var
f
=d.endX,h=d.e
ndY ;
c=!
(c.
endX<= d.
x||
c.
x>= f|
|
c.en
dY<=b||
c.y>=h)}el
se
c=!
1;i
f
(c){
a:{c=e
.g[a];
fo
r(d=0;d<e.f
.l
ength;d++)
if
(e
.f
[d]
.w(c)){
c=!0;
break
a}
c =!
1}c
=!
c }c&&
(I
(e,'
obstructe
d '
),
e.f
.pu
sh(e.
g[a])
)}K
a(e)
}els
eI(e,'
notFound'
);
returne}
f
unction Na(a,
b,
c,d){var e=b.
i
sCreative
?!
0:b.
adSe
ssi
onId===d
;i
f(
e){
c.b
=b;
var
f
=F(c.b)
;a=Ia(
c.c
,f)
;Ja(
a,f
)&&I(
c,'
cli
pped'
);c.
a=new D(a,
!1)
}e
lse i
f
(f
=!0,
b.a&&
(f
=-
1!
==b.
isFr
iendlyObstru
ctionFor.
indexO
f(d)?!
1:
!1
===b.
cl
ipsToBoun ds
),
f)
for(
var
h=b.c
hil
dV i
ews,g
= 0;
g<h .
length;
g++)f
=!
!c.
b,Na(a,
new D(h[g]
,f)
,c,
d);
!
e&&c.
b&&(
b.a
?-
1!
==b.
isFr
iendlyObstru
ctionFor.
indexO
f(d)|
|c
.g.
push(
b)
:(
e =F(
b),d=F(
c.a)
,E(
c.a)
,a=c.
a,0!
==a.
width&&0!
==a.h
ei
gh t
&&b.
cli
ps
ToB o
unds&& (
b=I
a(d,e)
,Ja(
b,d)&&(
I(c,
'
cli
pped'),
c.
a=newD (b,
!1
))
)))}
;
functi
on
Oa(){
return{api
Versi
on:'
1.
0',acces
sMode:'
li
mited'
,e
nvi
ron ment:'
app',
omidJs
Inf
o:{omidI
mple
men te
r :
'
omsdk'
,s
e r
vic
eVers
i
on:
'1.
2.1
7-
iab 1
276'
}}}f
uncti
on
Pa(){
this
.
a dSes
si
on I
d=null
;thi
s.
c=Oa();
thi
s.l
='f
oregro
unded '
;
this.
b=thi
s.
a='none
';
th i
s.
f=
thi
s.
h=thi
s.
g= t
his
.C=
thi
s.B=t
his
.
m=
nul
l;t
h i
s.
o=!0}v
ar K;
f
uncti
o n N()
{K|
|(K=n
ew Pa);
retu
rn K};
fun
cti
on
Qa(a,
b )
{thi
s.b=
a;thi
s.c
=b}m.Object.
def
ineProperti
es
(Qa.prototype,
{a:
{conf
igur
a bl
e:!
0,
enumerabl
e:!
0,get
:f
uncti
on(
){r
et
ur
n thi
s.
b}},
origi
n:{
confi
gurab l
e:
!
0,enu
me rable:
!0,g
et:f
uncti
on()
{return thi
s.
c}}}
);
fun
cti
on
Ra()
{this
.b=[
];
thi
s.
c=[]
;t
h i
s
.g=[
];
thi
s.
h=[];
thi
s.
f={}
;th
is
.a=N(
)}f
uncti
on
Sa(a
) {
a.b=[
];
a.c
=[];
a.
g=[]
;a.
h=[
];
a.f
={}
;K.
a d
Sess
ionI
d=nul
l;
K.c
=O a(
);
K.v=
void 0;K.
A =
voi
d
0;
K .
i
= nul
l;
K.
u=nul
l;
K.
j=nu
ll;
K.
l='
f
oregr
ou nde
d';
K.
a ='
non
e';
K.b
='none'
;
K.m=null
;K.
B=nu
ll;
K.
C=nul
l;
K.g=nul
l;
K.
h= nu
ll
;K.
f=nul
l;
K.
o
=!
0}functi
on Ta (
a,
b){a.
a&&a.a.
adSes
si
onId&&!
1!
==Ua(b
)&&a.
g.
fi
lter(
functi
on(a)
{retur
n
a.
t y
p e===b
.a.
type}
).
for
Each(
func
ti
on(c){
returna.i
(c
.s
,b.
a)}
)}
f
un c
t i
onV a(
a,b,
c){
a.
a&&a.a
.adS
ess
io
nId&&a.b
.f
ilte
r(f
uncti
on(a)
{retur
na .a.
type===b&&
Ua(a)}
).
ma p(
functi
on(a)
{retur
n
a.
a }
).f
orEach(
c)}
fun
cti
on U a(
a){v
a r b=
a.a.
typ e
,c=
-
1!
==Ob j
ect.
val
ues(
u)
.i
ndexOf
(b)
&&'
vol
ume Change'
!=
=b;
return'
impres
sion'
===b?a.
ori
gin
===N()
.b:
c?a.o
rig
in===N(
).a:
!0}f
un
ct
ion Wa (
a,b
,c){
'
video'
===b?Xa(a,
c):
(a.
g.
push(
{type:
b,
s:c}
),
Va (
a,b,
c)
)}f
un c
tio
n
Xa(a,b)
{Obje
ct.
keys(
u)
.f
orEach
(fu
ncti
o n
(c)
{c=u[
c];
a.g.
push
({type:
c,
s:b}
);
Va (
a,c
,b)
})
}
f
un c
t i
on Ya(a,
b,c
){a.
h.pu
sh(
{O:c,
s:
b}
);
a .
c.
forEac
h(fun
ction(
d )
{va
r
e=
Z a(d);
's
ess
i
onStart
'==
= d
.a.
type
&&(e.d
a t
a.v
erif
ica
tion
P ar
a meters
=c&&a.f
[c]
);
a.i
(b,
e)}
)}
fun
ction $a(a)
{retur
n
a.
b .
s
o me(f
uncti
on(
a){r
eturn'
i
mpress
i
o n'
===a.
a.type}
)|
|
a.c.
some(f
uncti
on(a){
retur
n'i
mp r
ess
io
n '
===a.
a.type}
)}f
unctio
n
O(
a ,
b ,
c){
vard =
P(a,
's
ess
ion
Error
',
'n
ative'
,{
errorType:
b,mes
sa ge
:c}
);
a.c.
push(
d);
a.
h.f
orEach(
fun
ction(
b){a.
i(
b.
s,d.
a)})
}
f
un c
t i
on ab(
a,b)
{a.
f=Obj
ect
.ass
ign(
a.f
,b);
i
f(
b=a .
a.
c )
{va
r
c=P(a,'
ses
si
onSta
rt',
'
nati
ve'
,{
conte
xt:b})
;a.
c.
push(
c);
a.h
.fo
rEach(f
uncti
on(b){
var
d=b.
s,f=
Z a(
c)
;b=b.
O;
f.
data.
veri
fi
cat
io
n Parameters=
b&&a.f
[b]
;a.i
(
d,f
)},
a);
bb(a)}
}f
uncti
on cb
(a )
{va
r
b=a.
h ,
c=P(a,
's
ess
io
nFin
is
h',
'n
ati
ve'
);
a.c.
push(
c);
Sa(a)
;b
.f
orEach(f
uncti
on(b)
{retu
rn
a.
i(b
.s,c
.a)
})}
Ra.p
rototy
p e
.i
=f
uncti
on(
a ,
b){
for
(var c=[]
,d=1
;d
<a rg
u ments.
le
ngth;+
+d )
c[d
-
1]
=ar guments
[d]
;try
{a.
a p
ply(
nul
l,
[]
.concat(
r(c)
))}
catc
h (
e)
{z a(
e)}
};
f
un c
t i
on d b
(a,
b){
var c =a.
a.C
;var d =(d
=N()
.j
)?H(
d )
.vi
ewport:
void 0; var e =(e
=N (
).
j)
?H (
e)
.adVi
ew:voi
d
0;
b =P(a,
'i
mpress
io
n',
b,
{media
Ty p
e:c
,vie
wp or
t:d,a
dVie
w:e})
;a.
b.pus
h(b)
;Ta(a,
b)}
funct
ion
Q(
a ,
b ,
c,
d )
{'
star
t'!
==b&
&'vol
umeCha
nge '
!
==b|
|nu
ll!
=(d
&&d.de
viceVol
ume)|
|(
d.devi
ce
Volume=a.
a.m);
's
t a
rt'!
==b&&'
volumeCh
ange'!
==b|
|n
ull
==(d&
&d.v
ideo
Playe
rVolume)|
|
(a.
a .
B=d.
vi
deoPlayerVol
ume )
;b=P(
a,b
,c,
d);
a.b.
pus
h(b);
Ta(a,b)
}
f
un c
t i
on bb(a
){var b=a.
a.a,
c=a.
b.
fi
lter(
functi
on(a)
{retur
n
Obje
c t.
valu
es(
u).
i
nclu
des(
a.a.
type
)&&a.o
rigi
n===b}
).
ma p(
fun
c ti
on(
a){re
turn a .a})
,d=
a.a.
adSess
ion
Id|
|'
';
c=p(
c);
for(va
r
e=
c .
next();
!
e.
done;
e=c.
next(
))
{e=
e.
value;
e.ad
Sess
ionI
d|
|(
e.
a dS
essi
onI
d= d
);f
or(var
f
=p (
a .
g),
h=f
.next
();
!
h.
done;
h=f.
ne
xt()
)h=h.v
alue
,h.t
ype===e.
type&&h.s
(e)
}}f
uncti
on
eb
( a
,b){re
turn'
none'
!
==a.
a.b&
&a.a
.b!
==b?(A(
'I
mp re
ssi
oneventisownedb y'+(
a.a.
b+'
,not'+b
+'.
')
),
!1)
:!
0}
f
un c
t i
onfb(a,
b){
retu
rn'
n o
ne'
!=
=a.a
.a&&a.a.
a!
==b?(A(
'
Videoeventsa r
eo wn e
db y'+(
a .
a.
a+'
,not' +b+
'.
'))
,!
1)
:
!0}f
un c
tio
n
P(
a ,
b ,
c,d)
{re
turnn e
wQ a(
{adS
ess
io
nId:a.
a.
adSessi
onI
d|
|'
',
ti
me st
amp :
(newD a
te).
getTi
me (
),
type:b,
data:d}
,c
)}f
un c
tio
n
Za(a){a
= a.
a;
retur
n{adS
ess
ion
Id:
a.a
dSessi
onI
d,ti
me s
tamp:a.
timestamp,type:
a.
type,
data:a.
data}};
f
unction
R(
a ,
b,c)
{'co
ntai
ner'
===b&&v
oid
0!
= =
a .
a.v&&a
.a&&nu
ll
!=a
.a.
adSes
si
onI
d& &
(a.a
.i
=Ma (
a.b
,a.
a.v,
a.a.
l,
a.a.
adSess
ionI
d)
);
'cre
a t
iv
e'=
= =
b&& a.
a.
A& &
(a.
a.u=Ma(a.
b,
a.
a .
A,a.
a.l
,a.
a.a
dSes
si
onId)
);
i
f(
a.a.
i
)i
f(
a.a.u)
{b
=new G a(
0);va
r
d=a.
a .
i,
e=a.
a.u,
f=
d.i
,h
=d.
b ,
g=d.
a,
l=e
.b;
e=e.a
;f
&&h&&g&&l
&&e&&(Ha(
b,f
),b
.j
=new D(h
,!
1),
b.l=
new
D(
g ,
!1)
,b.
g=Obje
ct.
ass
ign
([]
,d.
g),
b.
f=O
b j
ect.
ass
ign([
],
d.f
),
b.h=
O bj
ect.
assi
gn([
],d.
h)
,d=b.
j.
x,f
=b.
j.
y,l
=new D(l,
!1
),
e =
new
D(
e ,
!
1 )
,Da(
l,
d,f
),
Da(e,
d,
f)
,b.
b=l
,b.
a=I
a(e,g)
,-
1===b.
h.i
ndexOf
('
backgrounded'
)&&
Ka(b))
}el
se b=a.
a .
i
;e
ls
e
b=null
;g=a.
a.
j;
if
(b&&
!b.
w(g)
||
c)
g=H(
b),
c& &
(g.
adView.
reaso
n s
=g.adVi
ew.reas
ons|
|[
c])
,
c=a.c,
g=P(
c,'
geome t
ry Ch
ange',
'nati
v
e'
,
{ v
iewp o
rt:
g .
vi
ewport
,adVi
ew:g
.adVie
w}),
c.
b.push
(g)
,Ta(c,
g),a
.a.
j=b}
;f
unctio
n
gb(a,
b ,
c){
thi
s.
g=a;
thi
s.
A=b;t
his
.
u=c;
thi
s.c=N(
);
this
.a=
null
;th
is
.b=thi
s.
h=voi
d0; t
his
.v=!
0;S
(thi
s
)}f
unctionS (a
){i
f(
!a.
a )
{va
r
b;
a :
{i
f((
b=a.
g.doc
ument)
& &
b.ge
tEl
emen t
sByCl
assName&&(b=
b .
getEl
ementsByCla
ssName('
omid-
el
eme nt')
))
{i
f(
1==b.
l
ength)
{b=b
[0];
breaka }1
<b .
le
ngth&&a.
v&&(O(
a.u,
'generi
c'
,
"Moret hano nee l
emen twith' omid
-
el
eme nt'cl
assname.
")
,a.
v=!
1)}
b=nu
ll
}b &
&(b.
tagName&&'vi
deo'
===b.
t a
g Name.
toLowerCas
e()
?a.c
.h=b:
a.c.
g=b,
hb (
a))}
}
f
un c
t i
on
hb(a){
a.c.
h?(
a.a=a.
c.
h,
a.m()
):
a.
c.g
&&(a.a=a.
c.
g,
'if
rame'
===a.a.
tagName .
toLowerCas
e()
?a.c
.f
&&a.m():
a.
m( )
)}f
uncti
on
i
b(a){a.
b&&a.
h&&(a.
a.
tagName&&'
i
frame'===a
.a.ta
gName .
toLowerCas
e()?a.
c.
f&&(
a.b.
i
sCrea
tive
=!1,
jb(
a),
k b
(a)
):(
a.c.
f?(
a.
b.
i
s C
r eati
ve=
!1,
j
b(a)
):
a.b
.i
sCre
ati
ve=!
0,kb(a)
))
}f
u nc
tio
nk b(
a){a.
c.
A=a.h;
R(a.
A,'
crea
tive'
)}
f
un c
t i
on j
b(
a){i
f
(a.
c.f
){
var b =
new D(a.
c.
f,!
1)
;
D a(b
,a.
b.x,
a.b.
y);
b.c
li
psToBound
s=!
0;b.i
sCr
ea t
ive
=!0;
for(va
r
c=0;
c <a.b
.ch
il
dVie
ws.l
ength
;c+
+)i
f
(a.
b.chi
ldVi
ews[c]
.i
sC
reati
v e
){a.
b.
chil
dViews[
c]=b;
retu
rn}a.
b.
child
Views.
push(
b)}};
fu
nc
ti
on lb(
a,
b,c)
{re
turn mb(a,'
se
tInter
val'
)(b
,c)
}fun
ction nb(
a ,
b){
mb (
a,
'cl
earInte
rv al
'
)(
b)}f
un c
tio
n
ob(a,
b )
{mb(a,
'c
lear
Timeout'
)(
b)
}fu
nctionmb(a,b)
{re
turna.a&&a.
a[b]?a.
a[b]:
pb(
a,b)
}
f
un c
t i
on qb(a
,b,
c,d){
if
(a
.a.
document&&a.
a .
doc
u ment.
body )
{va
r
e=
a .
a .
document.
crea
teEl
ement(
'i
mg');
e.
width=1;
e.
hei
ght=1;
e.s
tyle.
dis
play='
none'
;
e.s
rc=b;
c&&e.
addEventLi
ste
ner('
load'
,f
uncti
o n
(){
retur
nc (
)})
;
d &
&e.
addEve
nt Li
st
ener('
erro
r',
fun
ction(
){r
eturnd ()
})
;a.
a.doc
ument.
bo dy.
appendChi
ld(
e )
}e
ls
e
pb(a,
'se
n d
Url'
)(
b,c
,d)
}f
uncti
on pb(a,
b){i
f
(a.a&&a.
a.
omidNati
ve&&a.
a.omidNati
ve[b]
)retur
n
a.
a.o
midNati
ve[b]
.bi
nd(
a.a
.omidNative
);
t h
row E rror('
Nativ
ei nterf
ace me thod" '
+b+'
"n otf ou
nd.'
);
};
fu
ncti
on
rb(
a,
b,c,
d){
gb.c
all
(thi
s,
a,
b,d)
;thi
s.
f=voi
d 0;thi
s.
i
=c}q(
rb,
gb)
;rb.
prototyp
e.
o=fun
c t
io
n()
{voi
d
0!
==thi
s.
f&
&(nb(t
his
.i
,t
his
.f
),
thi
s.f
=void 0)};
rb.
prototy pe
.m=fun
cti
on()
{var a=thi
s;
thi
s.
a?voi
d
0===t
his
.f
&&(thi
s
.f
=lb(
thi
s.
i,
functi
on()
{retur
nsb(a)
},200),
sb(thi
s))
:thi
s.
f=voi
d0};
f
uncti
on s
b(a){
if
(voi
d 0!==
a.f){
va r b=ne
w D(
new
Ba(
a.g.
i
nnerWi
dth,a.
g.
inn
erHei
ght),
!1)
,c=a.
a.
getBoundi
ngCli
entRect();
i
f(
null
==c.
x|
|i
sNaN(
c.
x))
c.x=c.
le
ft;
i
f(
null
==c.
y||
i
sNaN
(c
.y)
)c.
y=c
.top;
c=new
D(
c,!
1)
;b
.w(a.
h)&&c
.w(a.
b)
||
(a.
b=c,a
.b.cl
i
psToBounds
=!0,a.
h=b,a.
h.chi
ldVi
ews.
push(
a.b
),
ib(
a))
}};
f
unctio
n
tb(
a,b
,c)
{gb.
call
(t
his
,a,
b,
c);
this
.l
=th i
s.
i
=this
.j
=thi
s.
f=
v oi
d
0}q(
tb,
gb);
tb.
prototy
pe.o
=functi
on(){
this
.f
&&thi
s.
f.
dis
connect(
);ub(th
is
)};
tb.
protot
ype.
m= f
uncti
on()
{t
his
.a&&(
thi
s.
f|
|
(th
i
s.
f=v
b(thi
s)
,
t hi
s.
f
.obs
erve
(thi
s.
a )
),
wb (t
his.
a)
&&xb(th
is)
)};
functi
on ub
(a)
{a.j
&&(a.
j.
di
sco
nnect(
),
a.j
=voi
d
0);
a.
i&&
(a.
i.
dis
conne
ct()
,a.
i
=voi
d 0);a
.l
&&((
0,a.g.
removeE v
e nt
Lis
tener)
('
res
i
ze'
,a.
l),
a.
l=voi
d 0)}
fu
ncti
on
wb(a)
{a=a
.getBo
undi
ngCli
ent
R ec
t();
return!
a.
width|
|
!a.he
ight}
f
uncti
on vb(
a){
return ne
w a .
g.
Intersect
ionOb
serve
r(f
unct
ion(
b){t
ry{i
f(
b.
length)
{f
or(
var
c=b
[0],
d=1;
d<b.l
ength
;d++
)b[
d ].
ti
me >c.
time&&(
c=b[d])
;b=c;
a.h
= ne
w D(
b .
root
Bounds,
!1
);
a.
b=new
D(
b.bo
undi
ngCli
entRe
ct,!
1
);
a.b.
cli
psToBounds=!
0;
a .
h.
chil
dViews.
push(a.
b);
ib(
a)}
}cat
ch(e
){
a.o(
),
O(a.u
,'
gene
ric'
,
'Probl
em
hand
li
ng In
tersecti
onObserver c
all
back
:
'
+e.
messa
ge)}}
,{
root:
nul
l,
rootMargin:
'0px',
thre
shol
d :
[0,
.1,
.2,
.3
,.4,
.5,.
6,.
7,
.8,
.
9,1
]})
}
f
uncti
onx b(a)
{a.
g.R
esi
zeObs
er v
er? a
.j
||
(a.
j=yb
(a,f
uncti
on(){
returnz b(
a)}
),
a .
j
.ob
serv
e(a.
a))
:(
a.l
||
(a.
l
=fun
cti
o n
()
{ret
urn
zb(
a)}
,(
0,a.
g.addE
ventLi
st
ener)(
'resi
ze'
,a.
l)
),
a.i
|
|(
a.i
=new Mutati
onObse
rver(
fun
cti
o n
()
{ret
urn
zb(
a)}
),
a.i
.
observe
(a.
a,{
chi
ldLi
st:
!1
,attri
butes
:!
0,s
ubtree:
!1
})))
}f
un c
t i
on
zb(
a){
a.a&&
!wb(a.
a)&&
(a.
f&&a.
a &
&(a.f
.un
o b
serve
(a.
a),a.
f.
observ
e(a.a))
,ub
(a))
}f
uncti
on yb(a,
b){
return new
a.
g.
Resi
zeObse
rver(
b)}
;f
uncti
on T( a
){ret
urn'
object'
===typeof a }f
uncti
on A b(a)
{retu
rn'
number'==
=typeo
f
a&&!
i
sNaN(
a)&&0<=a}f
unct
ion U(a
){ret
urn'
stri
ng'===typeof a}f
uncti
on V(
a,b){
retu
rn U
(a)
&&-
1!
==Ob
jec
t.v
a l
ues
(b).
i
ndexOf
(a)};
f
unc t
ionB b
(a)
{i
f(!
a.
b |
|
!a.
b.
d oc
ume nt)thr
owE rror(
'
OMIDS er
viceScri
ptisnotrunni
ng
wit
hin a wi ndow.'
);
var b=a .
a;a.
a=[];
f
or(va
r c=0;
c<b.
length;
c+
+){
var
d=a,
e=b[
c],
f=c
,h=e
,g=N(
).
o;h
=h.access
Mod e
;V(
h,n
a )
&&(g='
li
mited'==h);
var
l
=f,
J=e.
res
ourceU
rl;
f=d
.b.
document;h=f
.cre
ateEl
emen t(
'i
fr
a me'
);g&&(h.
sa
n d
box='
all
ow-sc
r i
pts
'
);h.
id
='o
mid-veri
f
ica
tio
n
-s
cri
pt-f
rame-'+
l;
h.s
tyle
.di
spl
ay='none'
;g=J
.re
place
(/"/g
,'
& qu
ot;')
;
h .
srcd
oc='
<h t
ml><head>\n<scr
ipt
type
="te
xt/java
scri
pt"sr
c="'
+ g
+'">\x3c/
scri
pt>\n
</ head><bo d
y ></body></ht
ml>';
f
.bod
y.app
endChi
ld(h
);
g=e.
vendorKey;
e=e.v
eri
fi
cati
onP arameters;
g= v
oid 0===g?'
':
g;
e=voi
d
0===e
?''
:
e;g
& &
'st
ring
'===
typeofg &
&''
!==g
&&e&&'
stri
n g
'===typeofe &&'
'!
==e&
&(d.
c.
f[
g]=e)
}}
;fu
ncti
on C b(a,
b,
c){
var
d=th
is
;th
is
.b=a;
thi
s.
a=b;
thi
s.
c=N (
);
th i
s
.g=c;
thi
s.
f=!
1;
this
.re
giste
rSessi
onObser
ver(
func
tio
n(a)
{ret
u r
n
Db(
d,a)
})
}Cb.
prototyp
e.r
egi
sterSes
sionObs
erver
=functi
on(a){
Ya(this.
b,
a)};
Cb.
prot
otype.
erro
r=funct
io
n(a,
b){O(
thi
s.
b,
a,
b)
};
func
ti
on
X(a
,b,
c){
'i
mp r
ess
io
n '
==b?
eb(
a .
b,'
javasc
ript'
)&&
(db(
a.b,'
javas
cri
p t'
),a.
a&&S(
a.a)
):
('
lo
aded'
==b?Q(a.
b,
b,'
ja
vascri
pt'
,c
):
'j
a
vas
cri
pt'
===a.c
.a&&Q(
a.
b,b,
'
javascri
pt',
c),
['
load
ed',
'
s t
a r
t'].
in
cludes(b
)&&a.
a&&S(
a.a
))}
f
uncti
on
Db(
a,b)
{i
f(
's
ess
ionS
tart'
===b.
type){a.
f=!
0;try{
Bb(a.
g)}ca
tch(c)
{A(c.mess
age)
}}'
se
ssi
onF
ini
sh'
===b.
type&&
(a.f
=!
1,
a.re
gis
te
rSe
ss
ion
Observer
(f
uncti
on(
b){ret
urn Db (a
,b)}
))}
Cb.p
rototyp
e.s
etCl
ie
ntInf
o=fu
ncti
on(a,
b,
c){
var
d=th
is
.c
.c|
|
{};
d.o
midJs
Inf
o=Object
.assi
gn(
{},
d.o
midJsI
nfo,
{ses
sio
nClie
n tVe
rsi
on:
a,par
tnerName:
b,part
nerVers
i
o n
:c}
);
thi
s.
c.
c=d
;re
turn t
his
.c
.c.
omidJs
Inf
o.serv
iceVe
rsi
on};
f
u nct
ion Eb(a,
b){b
=b?b:
omidGl
obal
;thi
s.
a=a;
thi
s.
f=b;
thi
s.
b=new
z;
thi
s.
f.
omid=thi
s.
f
.omid
||
{}
;thi
s.
f.
omi d
.v1
_ S
ess
io
nServi
ceCommu nicati
on=thi
s.
b;t
his
.
c=b&&b
.addEvent
Li
sten
er&&b.
post
Me
ss
age?n
ew
B(
b):
nul
l;
thi
s.b
.a=thi
s
.g.
bi
nd(thi
s)
;this
.c
&& (
thi
s.
c.
a=this
.h.
bind(
this)
)}Eb.
proto
type.
g=fu
ncti
on(a
,b){
Fb(t
his
,a,
b,th
is
.b)
};
Eb.
pro
totype.
h=fu
ncti
on(a,
b)
{Fb(thi
s,
a ,
b,t
h i
s
.c)
};
f
uncti
on F b(
a,b,
c,
d){
func
tion e (a)
{fo
r(var b =[],
e=0;e<arguments
.l
ength
;++
e)b[
e-0]=arg
uments[e
];
b=new
v(
f,
'r
espon
se'
,g,
ha(g)
&&i
a(g)
?b:JS
ON .
stri
ngif
y(b)
);
d.
sendMessage(
b ,
c)}v
ar
f
=b.b
,h=b
.method,
g=b.
vers
ion;
b=ja(
g ,
b.
a);t
ry{Gb(a
,h,e
,b)}
catch(l)
{d.s
endMes
sage(
newv(f
,'e
rror'
,g,
'\
n na
me:
'
+l.
name+'
\n message:'+l
.
me s
sage+'
\n f
il
ename:'+
l.
fi
le
name+'\
n li
neNumber
:
'
+l.
l
ine
Numbe r
+'\
n c
olumnNumber:' +l
.co
lumn Number+'
\n stac
k:'+l.
stac
k+'
\n
toS
tri
ng()
:'
+ l
.
toStri
ng(
)),
c)
}}
f
uncti
on Gb(a,
b,
c,d
){swi
tch (
b){
case 'Se
ssi
onServi
c e.
reg
ist
erAdEv
ents
':
eb(a
.a.
b,'
java
scri
pt'
);
break;
cas
e
'
Ses
si
onSer
vice
.re
gis
terVi
deoEvent
s':
fb(
a.a.
b,'
jav
a s
cri
pt')
;break;
case
'
Ses
si
onSer
vice
.re
gis
terSe
ssi
onObse
rv er
':
a.a.
regi
ste
rSessi
onObse
r ve
r (
c);
break;
cas
e
'
Ses
si
onSer
vice
.se
tSl
otEl
ement':
c=p(d).
next(
).
value
;a=a.a
;a.c.
g=c;
a.a&&hb(a
.a)
;br
eak;
case
'
Ses
si
onSe
rvic
e.s
etVi
deoEl
ement':
c=p(
d).
next(
).
value;
a=a .
a;
a .
c.
h=c;
a.
a&&hb(
a.a)
;bre
ak;c
ase
'
Ses
si
onSe
rvic
e.s
etE
lementBounds
':
c=p(
d).
next()
.val
ue;
a =a.
a;a.
c.
f=
c;
a.
a&&hb(
a.a)
;a
.a&&
ib(a
.a)
;break;
cas
e'Ses
sio
nServi
ce.
st a
rtSes
si
on'
:A(
'S
essi
onstartfro
mJ Sisnotsuppor
tedinmobi
le
app.
'
);
break;
cas
e'Sess
io
nServic
e.
fi
nis
hSes
si
on':
A('
Ses
si
onf ini
shfromJ Sisnots uppo
rtedinmo bi
lea pp.
'
);
break
;c
ase
'
Ses
si
onSe
rvic
e.i
mpres
sio
nOccurred'
:
X(a.
a,'
impres
sio
n');
break;
case
'
Ses
si
onSe
rvic
e.l
oade
d':
c=p(
d).nex
t().
val
ue;
b={s
k i
ppabl
e:c.
is
Skip
pable
,au
toPlay:
c.i
sAu
toPl
ay,pos
iti
on:
c.
posi
ti
on}
;c.
i
sSk
ipp
abl
e&&(
b.
ski
pOff
set
=c.
ski
pOff
set);
X(a.
a,'
l
oad e
d',
b);
break;ca
se'Se
ssi
onS
ervi
ce.
start'
:b
=
p(
d);
c=b.
next(
).
val
ue;
b=b.
next().
val
ue;
X(a.
a ,
'
start'
,{
du rat
ion:
c,
vid
eoPl
ay e
rVolu
me :
b})
;b
reak;c
ase
'
Ses
si
onSe
rvic
e.f
i
rstQu
a r
til
e'
:X(a.
a,'
fi
rs
tQuarti
le'
);
break ;
cas
e ' Ses
si
onServi
ce.
midpoi
nt'
:
X(a.a,
'
midpoi
nt'
);
break
;c
ase
'
Ses
si
onSe
rvic
e.t
hir
dQuarti
le
':X(a
.a,
'th
irdQuar
t i
l
e')
;break;
case' Se
ss
ion
S e
rvi
ce.
complet
e':
X(a.
a,'
comple
te'
);
break
;c
ase
'
Ses
si
onSe
rvic
e.p
ause
':
X(a.
a,'
pa u
se'
);
break;
case '
Se
ssi
onServi
ce
.re
sume'
:X(a.
a,
're
sume'
);
break
;c
ase
'
Ses
si
onSe
rvic
e.b
uff
erStar
t':
X(a.a
,'b
uff
erSt
a r
t')
;bre
ak ;
case'Se
ss
ion
Servi
ce.
buf
ferFi
ni
sh'
:
X(a.
a,
'
buf
ferF
ini
sh
')
;bre
ak;
case 'S
essi
onS
ervic
e.s
ki
pped'
:X(a
.a,
's
ki
pped'
);
break
;c
ase
'
Ses
si
onSe
rvic
e.v
olu
me Cha
nge':
c={vi
deo
PlayerVol
ume:p(d).
next(
).
val
ue};
X(a.
a,'
volu
meChange'
,c)
;
break;
cas
e
'
Ses
si
onSe
rvic
e.p
laye
rStateChange'
:
c={s
tate:
p(d).
next().
val
ue};
X(a
.a,
'p
layerS
t a
t e
Change
',
c)
;break
;cas
e
'
Ses
si
onSe
rvic
e.a
dUser
Inter
act i
on'
:c
={i
nteract
ionType:p(
d).n
ext(
).
valu
e};
X(a.
a ,
'
a d
User
Inte
ra c
ti
on'
,c)
;br
eak;
case
'
Ses
si
onSe
rvic
e.s
etCl
i
entIn
fo'
:vare=p(d
);
b=e.n
ext().
value;
d=e.
next(
).
val
ue;
e=e.
next()
.v
alue
;a=
a .
a.
setCl
i
entI
nfo(
b,
d,
e);
c(
a);
break
;ca
se
'
Ses
si
onSe
rvic
e.i
nj
ectVer
if
ic
ationScr
ip
tResour
ces'
:c=
p(d).ne
x t
()
.val
ue;
a=a.
a;b
=a.g;
b.a
.pu
sh.
apply(
b.a
,[]
.c
oncat(
r(c
))
);
if
(a.
f
)try{
Bb(
a.g)
}cat
ch(f
){A
(f.
message)
}br
eak;
case
'
Ses
si
onSe
rvic
e.s
es
si
onError
':
b= p
(d),
c=b.
next(
).
value
,b=b.ne
x t
().
val
ue,
a.
a.err
or(c,
b)}
};
fun
cti
on
Y(
a,b,
c,
d,e
,f
){th
is
.g=
a;thi
s.
a=b;t
his
.c=
c;t
his
.h=d;
this
.f
=f;
t h
is
.b=N(
)}
k=Y.
prototype;
k.
G=f
uncti
on(
a){i
f
(a&&T(a)
&&V(a.
impres
si
onOwn e
r,ma)&&(!
('
vide
oEve
ntsOwner'
in
a&&n
ull
!
=a.vi
deo
Events
Own e
r)||
V(
a .
vi
deoEv
entsOwner,ma)))
{var
b=a.
vi
deoE
vents
Owner;th
is
.b.
C=null
==b|
|
'none
'===b?'
di
sp l
ay':
'
vid
eo'
;a&&
null
!=a
.i
sola
teVer
if
ica
t i
onS
cri
pts&&
'boo
lea
n'==
=
type
of a.i
sol
ateVeri
f
icationS
cri
pts&
&(thi
s.
b.
o=a.i
sol
ateV
eri
fi
catio
nScri
pts
);
b=thi
s.
a;
var
c=a
.i
mpress
io
nOwner;
a =
a.vi
deoEven
tsOwner;
$a(b)
?A('
Imp res
si
oneventh a
so cc
c u
redbefor
et heeventownershave
bee
nregi
stere
d.'
)
:(
b.a.
b!
==c&&'no
ne'=
==b.a
.b&&
(b
.a.
b=c
),
b.a.
a!
==a&&'
none'
===b.a
.a&&(
b.
a .
a=a)
)}}
;
k.
J=f
unct
ion(
a,b
,c)
{var
d;
if
(d
=T(b))
{i
f(
d=V(
b.e
n v
iro
nme nt,
qa)&
&V (
b.a
dSessi
onTy pe
,la
))d
=b.
omidNati
veIn
fo,
d=T(d)
?U(d.
partne
rName)&&U
(d.
pa
rtn
erVer
si
on):
!1
;d
&&(d=b.
app,
d =
T(d)?U(
d.l
i
b r
aryVersi
on )
&&U(d.
appI
d)
:!
1)
}if
(d)
{d=thi
s.
g;
c=vo
id
0===c
?nul
l:
c;
null
==a&&(
a=xa())
;d
.c.
adSes
si
onId=a;
a=d.c;
var
e=a
.c|
|
{}
;b.
omidJ
sI
nfo=Obj
ect
.assi
gn(
{},
e.
omidJs
Inf
o||
{}
,b.omidJ
sI
nfo|
|
{}
);
e=b=Obj
ect.a
ssi
gn(
{},
e,
b);
a.o
||
(a.
h?(
e.
vid
eoEl
emen
t=a.
h,
e.
acces
sMode=
'f
ull
')
:a.
g&&(e.
sl
otEl
ement=a.g,
e.
ac ce
ssMode=
'f
ull
'
))
;a.
c=b;
a b
(d.
b,c
);
d.
a&&S(
d.
a)}}
;k.
H=f
uncti
on(
){
v ar
a=th
is
.g;
cb(
a.b
);
a.a.
o(
)};
k.
M=functi
on(a)
{T(a)
&&Ab(a.
x)&&Ab(a.
y)&
&Ab(a
.width
)&&Ab(
a.h
eigh
t)&&(
thi
s.b
.v=
a,R(
thi
s.
c,
'co
n
tai
ner
')
)}
;k.
N=fu
ncti
on(a)
{V(
a ,
oa)&&(
thi
s.
b.
l=a,
'backgrounded'
===a
?R(th
is.
c,
'c
ontain
er'
,'
backgrou
nded'
):
R(t
his
.c
,'
cont
ai
ner
')
)}
;k.
K=f
uncti
on(
a){'
i
mp r
essi
on'=
==a&&(
t h
is
.D()
,th
is.
f&&S(t
his
.f
))
};
k.
D=func
tion
(){
eb(t
his
.a
,'
n a
tiv
e')
&&db(
thi
s.
a,'
nati
ve
'
)}
;k.
err
or=fu
ncti
on(
a,b)
{V(a
,ka)&&O(
thi
s.a
,a,
b)};
k.
I=f
unc
tion
(a,
b){
fb(
this
.a
,'
nat i
ve
')&
&V(a,
u)&&(
void
0===b
||
T(b)
)&&Q(
thi
s.
a,a,
'n
ative'
,b)
};
k.
L=fu
n c
ti
o n
(a){
if
('none'
!
==thi
s.
a.
a.a
& &'
number'
===typ
eof
a&&!
i
sNaN(
a))
{thi
s.
b.
m= a;
a=this
.
h;var
b=a.
a.
B;n
ull
!=
b&&Q(a
.b,'
vol
ume C
hange'
,'
nati
ve'
,{vi
deoPlayerVol
ume:
b,d
evic
eVolume:
a.a
.m})
}};
Y.pr
ototype
.s
tartSe
ss
ion
=Y.
prot
otype.
J;
Y.pr
ototype.
error=Y.
protot
yp e
.err
or ;
Y.prot
otype.
f
ini
shS
ess
ion=Y.
prot
otype.
H;Y.
prot
otype.
publ
i
shAd
Eve
nt=Y.
protot
ype.
K;Y.
prototype.
pub
li
shI
mp res
sio
nEve n
t=Y.pr
ototype
.D;
Y.
proto
type.
publ
is
hVide
oEvent=Y.
prototype
.I
;Y.
protot y
pe.s
etNati
veV
iewHi
erarchy=Y
.pro
to t
ype.
M;Y.
protot
ype.
set
S
tate
=Y.
prototyp
e.N;
Y.p
rototype.
setDe
vic
eVolume=Y.prototyp
e.L
;Y.
proto
type.i
ni
t=Y.
prototype
.G;
fu
ncti
on
Hb(
a,b
,c)
{c=
c?c:
x;t
his
.g=a;
thi
s.a=
b;th
is
.h={
};t
his
.f
={};
this.
c=ne
w
z;
c.
omid=c.
omid
||
{}
;c
.omid.
v1
_ Ver
if
ic
atio
nServi
ceCommu nic
a t
ion
=thi
s.
c;
this
.b=
null
;c&
&c.
addEventL
is
tener
&&c.
post
Mess
a
ge&
&(th
is
.b=ne
w B(c)
);
th i
s.
c.
a=thi
s.
i.
bi
nd(
this
);
thi
s.b&
&(th
is
.b.
a=thi
s.
j.
bi
nd(th
is
))
}fu
ncti
on
I
b(a,
b,
c,d)
{qb(
a.
a,b,
c,
d )
}f
uncti
on
Jb
(a,
b,c
,d)
{pb(
a.a,
'
down l
oadJavaSc
ri
ptResou
rce')
(b,
c,d)}
Hb.pr
ototyp
e.j
=fun
ctio
n (
a,
b){
this
.
b& &
Kb(t
his
,a,
b,
thi
s.
b)}
;Hb.
pr
oto
type.
i=
func
tio
n(a,
b){K
b(thi
s,
a,b,
thi
s.
c)}
;
f
uncti
on K b(a,
b,
c,d)
{fu
nction e (a)
{for
(var b =
[],
e=0;
e<arguments.
l
ength;
++e)
b[e-
0]=argu
me n
ts[
e];
b=ne
w
v(
f,
'r
espo
nse'
,g,
ha(
g)&&i
a(g
)?b:J
SON.s
tri
ngi
fy(b)
);
d.s
end Mes
sage(
b,c
)}v
ar
f
=b.b
,h=
b.method
,g=b.
ver
si
on;b=j
a(g,
b.a
);t
ry{switc
h(h){c
ase '
V e
rif
ic
ati
onSer
v i
ce
.addE
ventLi
s
tener
':
var
l
=p (
b)
.ne
xt()
.val
ue;
Wa(a.g,
l,
e);
bre
ak;
case '
Veri
fi
ca
tio
nServ
ic
e.
addSe
ssi
onL
is
tener
':
var
J=
p (
b).
nex
t (
).
val
ue;
Y a
(a.g,
e,J
);
bre
ak;ca
se'Ve
rif
ic
ati
onServi
ce
.s
endUrl
':
vary=p(b
).
next
().
val
ue;
I
b(a,
y,
func
ti
on()
{re
turn
e(
!0)}
,f
unc
t i
on(
){
returne(!
1)
});
break
;ca
se '
Ver
if
ic
ati
onSe
rvi
ce.
se
tTimeou
t':
var
L=
p (
b),
pa=L.
next
().
val
u e
,W=L.
next(
).
valu
e;
a.h[
pa]=
mb (
a.a,
's
etTi
meout'
)(e
,W);
bre
ak;
case
'
Verif
i
cati
onSer
vice
.cl
earTimeou
t':
var M=p(b
).
next
().
val
ue;
ob(
a.
a,a
.h[
M]);
brea
k;c
ase
'
Verif
i
cati
onSer
vice
.s
etInte
rval'
:
var w=p(
b),
Sb=w.
next()
.v
alue
,Tb=w.n
ext(
).
val
ue;
a.f
[S
b]=l
b(
a.a
,e,
Tb);
brea
k;c
ase
'
Verif
i
cati
onSer
vice
.cl
earIn
terval
':
var Ub=p(
b).
nex
t()
.va
lue
;nb
(a.
a,
a.f
[Ub]
);
brea
k;c
ase
'
Verif
i
cati
onSer
vice
.i
nj
e c
tJavaSc
rip
tReso
urce'
:
varVb=p(b
).n
ext()
.
value
;J
b(a,
Vb,
f
uncti
on(a
){re
turn e (
!0,
a )
},
fu
ncti
on(
){r
eturn e (
!1)
})
;br
eak;
case ' Ve
rif
i
cati
onSe
rvi
ce.
get
Vers
io
n':
p(
b).
next(
);
var
Wb=N()
.c
.omid
JsI
nfo;
e(
Wb .
servi
ce
Vers
ion)
}}
catch
(C)
{d.
sendMes
sage
(newv (
f,
'e
rror'
,
g,'
\n name:
'
+C.na
me+'\n mess
age:'
+C.
me s
sage+'
\n f
il
ena
me:'+C.
fi
l
ename+'
\n
l
ineNu
mb e
r:'+C
.l
ine
N u
mb er+'
\n c
o l
umnNumber:'
+C.
colu
mnNumber+'
\n stac
k:
'
+C.s
tack+
'\n toSt
rin
g()
:'+C.
toStr
ing(
)+
'\
n ')
,c
)}
};
varZ=newR a,
Lb=ne
w
f
uncti
on()
{var a ;th
is.
a=a=voi
d 0= ==a?omi
dGlob
a l
:
a};n
ew H b(
Z,Lb)
;v
ar Mb =
new f unc
tio
n()
{var a =ne
w
La;
thi
s.
c=Z;
thi
s.
b=a;th
is.
a=N()
},
Nb;i
f
(x){
var
Ob=x;
Nb=Ob.
Int
ersect
ionObse
rver
&&(Ob.
Mutati
onOb
serve
r||
Ob.
Res
ize
O bs
erve
r)?
newt b
(x,
Mb,Z)
:n
ewr b
(x,
Mb ,
Lb,
Z)
}el
se
Nb=nul
l;
varP b
= N
b ,
Qb=new C b(
Z,Pb,
new f u
ncti
on()
{vara =a?a:
x;th
is
.c
=Z;t
his
.
b=a;
thi
s.
a=[]
})
;x.
omi
dBri
dge=ne
w
Y(
Q b,
Z,
Mb ,
newfuncti
on()
{vara=N(
);
thi
s.
b=Z;t
his
.a
=a},
0,Pb);
newEb(
Q b)
;
i
f(
x .
f
rames&&x.
document&&!
('
omid_
v1_pr
esen
t'i
nx .
frames)
){
varR b;i
f
(Rb=!
x.
docu
ment.
body)
Rb='
Mutati
onObs
erve
r'
in
x;
R b
?wa()
:x.
document.
body?va(
x):
x.do
cument.
writ
e('
<if
rame s
tyl
e="di
s
play:
non
e" i
d="
omid_
v1_p
rese
nt"
name="o
mid_v1
_prese
nt"></if
rame>')
};
})
.
c a
ll
(thi
s,th
is
);