Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a2680e8b
Commit
a2680e8b
authored
9 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
Run `grunt`.
[ci skip`
parent
b29c15df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/js/customize.min.js
+10
-11
docs/assets/js/customize.min.js
docs/assets/js/docs.min.js
+2
-2
docs/assets/js/docs.min.js
with
12 additions
and
13 deletions
+12
-13
docs/assets/js/customize.min.js
+
10
-
11
View file @
a2680e8b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
docs/assets/js/docs.min.js
+
2
-
2
View file @
a2680e8b
/*!
Holder - client side image placeholders
Version 2.
5.2+2mg3u
Version 2.
6.0+51ebp
© 2015 Ivan Malopinsky - http://imsky.co
Site: http://holderjs.com
...
...
@@ -14,7 +14,7 @@ License: http://opensource.org/licenses/MIT
* https://github.com/bryanbraun/anchorjs
* Copyright (c) 2014 Bryan Braun; Licensed MIT
*/
function
addAnchors
(
a
){
"
use strict
"
;
if
(
a
){
if
(
"
string
"
!=
typeof
a
)
throw
new
Error
(
"
AnchorJS accepts only strings; you used a
"
+
typeof
a
)}
else
a
=
"
h1, h2, h3, h4, h5, h6
"
;
for
(
var
b
=
document
.
querySelectorAll
(
a
),
c
=
0
;
c
<
b
.
length
;
c
++
){
var
d
;
if
(
b
[
c
].
hasAttribute
(
"
id
"
))
d
=
b
[
c
].
getAttribute
(
"
id
"
);
else
{
var
e
=
document
.
body
.
textContent
?
"
textContent
"
:
"
innerText
"
,
f
=
b
[
c
][
e
],
g
=
f
.
replace
(
/
\s
+/g
,
"
-
"
).
toLowerCase
();
b
[
c
].
setAttribute
(
"
id
"
,
g
),
d
=
g
}
var
h
=
'
<a class="anchorjs-link" href="#
'
+
d
+
'
"><span class="anchorjs-icon"></span></a>
'
;
b
[
c
].
innerHTML
+=
h
}}
!
function
(
a
,
b
,
c
){
b
[
a
]
=
c
}(
"
onDomReady
"
,
this
,
function
(
a
){
"
use strict
"
;
function
b
(
a
){
if
(
!
v
){
if
(
!
g
.
body
)
return
e
(
b
);
for
(
v
=!
0
;
a
=
w
.
shift
();)
e
(
a
)}}
function
c
(
a
){(
t
||
a
.
type
===
i
||
g
[
m
]
===
l
)
&&
(
d
(),
b
())}
function
d
(){
t
?(
g
[
s
](
q
,
c
,
j
),
a
[
s
](
i
,
c
,
j
)):(
g
[
o
](
r
,
c
),
a
[
o
](
k
,
c
))}
function
e
(
a
,
b
){
setTimeout
(
a
,
+
b
>=
0
?
b
:
1
)}
function
f
(
a
){
v
?
e
(
a
):
w
.
push
(
a
)}
null
==
document
.
readyState
&&
document
.
addEventListener
&&
(
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
y
(){
document
.
removeEventListener
(
"
DOMContentLoaded
"
,
y
,
!
1
),
document
.
readyState
=
"
complete
"
},
!
1
),
document
.
readyState
=
"
loading
"
);
var
g
=
a
.
document
,
h
=
g
.
documentElement
,
i
=
"
load
"
,
j
=!
1
,
k
=
"
on
"
+
i
,
l
=
"
complete
"
,
m
=
"
readyState
"
,
n
=
"
attachEvent
"
,
o
=
"
detachEvent
"
,
p
=
"
addEventListener
"
,
q
=
"
DOMContentLoaded
"
,
r
=
"
onreadystatechange
"
,
s
=
"
removeEventListener
"
,
t
=
p
in
g
,
u
=
j
,
v
=
j
,
w
=
[];
if
(
g
[
m
]
===
l
)
e
(
b
);
else
if
(
t
)
g
[
p
](
q
,
c
,
j
),
a
[
p
](
i
,
c
,
j
);
else
{
g
[
n
](
r
,
c
),
a
[
n
](
k
,
c
);
try
{
u
=
null
==
a
.
frameElement
&&
h
}
catch
(
x
){}
u
&&
u
.
doScroll
&&!
function
z
(){
if
(
!
v
){
try
{
u
.
doScroll
(
"
left
"
)}
catch
(
a
){
return
e
(
z
,
50
)}
d
(),
b
()}}()}
return
f
.
version
=
"
1.4.0
"
,
f
.
isReady
=
function
(){
return
v
},
f
}(
this
)),
document
.
querySelectorAll
||
(
document
.
querySelectorAll
=
function
(
a
){
var
b
,
c
=
document
.
createElement
(
"
style
"
),
d
=
[];
for
(
document
.
documentElement
.
firstChild
.
appendChild
(
c
),
document
.
_qsa
=
[],
c
.
styleSheet
.
cssText
=
a
+
"
{x-qsa:expression(document._qsa && document._qsa.push(this))}
"
,
window
.
scrollBy
(
0
,
0
),
c
.
parentNode
.
removeChild
(
c
);
document
.
_qsa
.
length
;)
b
=
document
.
_qsa
.
shift
(),
b
.
style
.
removeAttribute
(
"
x-qsa
"
),
d
.
push
(
b
);
return
document
.
_qsa
=
null
,
d
}),
document
.
querySelector
||
(
document
.
querySelector
=
function
(
a
){
var
b
=
document
.
querySelectorAll
(
a
);
return
b
.
length
?
b
[
0
]:
null
}),
document
.
getElementsByClassName
||
(
document
.
getElementsByClassName
=
function
(
a
){
return
a
=
String
(
a
).
replace
(
/^|
\s
+/g
,
"
.
"
),
document
.
querySelectorAll
(
a
)}),
Object
.
keys
||
(
Object
.
keys
=
function
(
a
){
if
(
a
!==
Object
(
a
))
throw
TypeError
(
"
Object.keys called on non-object
"
);
var
b
,
c
=
[];
for
(
b
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
b
)
&&
c
.
push
(
b
);
return
c
}),
function
(
a
){
var
b
=
"
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
"
;
a
.
atob
=
a
.
atob
||
function
(
a
){
a
=
String
(
a
);
var
c
,
d
=
0
,
e
=
[],
f
=
0
,
g
=
0
;
if
(
a
=
a
.
replace
(
/
\s
/g
,
""
),
a
.
length
%
4
===
0
&&
(
a
=
a
.
replace
(
/=+$/
,
""
)),
a
.
length
%
4
===
1
)
throw
Error
(
"
InvalidCharacterError
"
);
if
(
/
[^
+
/
0-9A-Za-z
]
/
.
test
(
a
))
throw
Error
(
"
InvalidCharacterError
"
);
for
(;
d
<
a
.
length
;)
c
=
b
.
indexOf
(
a
.
charAt
(
d
)),
f
=
f
<<
6
|
c
,
g
+=
6
,
24
===
g
&&
(
e
.
push
(
String
.
fromCharCode
(
f
>>
16
&
255
)),
e
.
push
(
String
.
fromCharCode
(
f
>>
8
&
255
)),
e
.
push
(
String
.
fromCharCode
(
255
&
f
)),
g
=
0
,
f
=
0
),
d
+=
1
;
return
12
===
g
?(
f
>>=
4
,
e
.
push
(
String
.
fromCharCode
(
255
&
f
))):
18
===
g
&&
(
f
>>=
2
,
e
.
push
(
String
.
fromCharCode
(
f
>>
8
&
255
)),
e
.
push
(
String
.
fromCharCode
(
255
&
f
))),
e
.
join
(
""
)},
a
.
btoa
=
a
.
btoa
||
function
(
a
){
a
=
String
(
a
);
var
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
=
0
,
k
=
[];
if
(
/
[^\x
00-
\x
FF
]
/
.
test
(
a
))
throw
Error
(
"
InvalidCharacterError
"
);
for
(;
j
<
a
.
length
;)
c
=
a
.
charCodeAt
(
j
++
),
d
=
a
.
charCodeAt
(
j
++
),
e
=
a
.
charCodeAt
(
j
++
),
f
=
c
>>
2
,
g
=
(
3
&
c
)
<<
4
|
d
>>
4
,
h
=
(
15
&
d
)
<<
2
|
e
>>
6
,
i
=
63
&
e
,
j
===
a
.
length
+
2
?(
h
=
64
,
i
=
64
):
j
===
a
.
length
+
1
&&
(
i
=
64
),
k
.
push
(
b
.
charAt
(
f
),
b
.
charAt
(
g
),
b
.
charAt
(
h
),
b
.
charAt
(
i
));
return
k
.
join
(
""
)}}(
this
),
Object
.
prototype
.
hasOwnProperty
||
(
Object
.
prototype
.
hasOwnProperty
=
function
(
a
){
var
b
=
this
.
__proto__
||
this
.
constructor
.
prototype
;
return
a
in
this
&&
(
!
(
a
in
b
)
||
b
[
a
]
!==
this
[
a
])}),
window
.
requestAnimationFrame
||
(
window
.
webkitRequestAnimationFrame
?
!
function
(
a
){
a
.
requestAnimationFrame
=
function
(
b
){
return
webkitRequestAnimationFrame
(
function
(){
b
(
a
.
performance
.
now
())})},
a
.
cancelAnimationFrame
=
webkitCancelAnimationFrame
}(
this
):
window
.
mozRequestAnimationFrame
?
!
function
(
a
){
a
.
requestAnimationFrame
=
function
(
b
){
return
mozRequestAnimationFrame
(
function
(){
b
(
a
.
performance
.
now
())})},
a
.
cancelAnimationFrame
=
mozCancelAnimationFrame
}(
this
):
!
function
(
a
){
a
.
requestAnimationFrame
=
function
(
b
){
return
a
.
setTimeout
(
b
,
1
e3
/
60
)},
a
.
cancelAnimationFrame
=
a
.
clearTimeout
}(
this
)),
function
(
a
,
b
){
a
.
augment
=
b
()}(
this
,
function
(){
var
a
=
function
(){},
b
=
Array
.
prototype
.
slice
,
c
=
function
(
c
,
d
){
var
e
=
a
.
prototype
=
"
function
"
==
typeof
c
?
c
.
prototype
:
c
,
f
=
new
a
,
g
=
d
.
apply
(
f
,
b
.
call
(
arguments
,
2
).
concat
(
e
));
if
(
"
object
"
==
typeof
g
)
for
(
var
h
in
g
)
f
[
h
]
=
g
[
h
];
if
(
!
f
.
hasOwnProperty
(
"
constructor
"
))
return
f
;
var
i
=
f
.
constructor
;
return
i
.
prototype
=
f
,
i
};
return
c
.
defclass
=
function
(
a
){
var
b
=
a
.
constructor
;
return
b
.
prototype
=
a
,
b
},
c
.
extend
=
function
(
a
,
b
){
return
c
(
a
,
function
(
a
){
return
this
.
uber
=
a
,
b
})},
c
}),
function
(
a
,
b
){
function
c
(
a
,
b
,
c
,
f
){
var
g
=
d
(
c
.
substr
(
c
.
lastIndexOf
(
a
.
domain
)),
a
);
g
&&
e
({
mode
:
null
,
el
:
f
,
flags
:
g
,
engineSettings
:
b
})}
function
d
(
a
,
b
){
for
(
var
c
=
{
theme
:
s
(
G
.
settings
.
themes
.
gray
,
null
),
stylesheets
:
b
.
stylesheets
,
holderURL
:[]},
d
=!
1
,
e
=
String
.
fromCharCode
(
11
),
f
=
a
.
replace
(
/
([^\\])\/
/g
,
"
$1
"
+
e
).
split
(
e
),
g
=
/%
[
0-9a-f
]{2}
/gi
,
h
=
f
.
length
,
i
=
0
;
h
>
i
;
i
++
){
var
j
=
f
[
i
];
if
(
j
.
match
(
g
))
try
{
j
=
decodeURIComponent
(
j
)}
catch
(
k
){
j
=
f
[
i
]}
var
l
=!
1
;
if
(
G
.
flags
.
dimensions
.
match
(
j
))
d
=!
0
,
c
.
dimensions
=
G
.
flags
.
dimensions
.
output
(
j
),
l
=!
0
;
else
if
(
G
.
flags
.
fluid
.
match
(
j
))
d
=!
0
,
c
.
dimensions
=
G
.
flags
.
fluid
.
output
(
j
),
c
.
fluid
=!
0
,
l
=!
0
;
else
if
(
G
.
flags
.
textmode
.
match
(
j
))
c
.
textmode
=
G
.
flags
.
textmode
.
output
(
j
),
l
=!
0
;
else
if
(
G
.
flags
.
colors
.
match
(
j
)){
var
m
=
G
.
flags
.
colors
.
output
(
j
);
c
.
theme
=
s
(
c
.
theme
,
m
),
l
=!
0
}
else
if
(
b
.
themes
[
j
])
b
.
themes
.
hasOwnProperty
(
j
)
&&
(
c
.
theme
=
s
(
b
.
themes
[
j
],
null
)),
l
=!
0
;
else
if
(
G
.
flags
.
font
.
match
(
j
))
c
.
font
=
G
.
flags
.
font
.
output
(
j
),
l
=!
0
;
else
if
(
G
.
flags
.
auto
.
match
(
j
))
c
.
auto
=!
0
,
l
=!
0
;
else
if
(
G
.
flags
.
text
.
match
(
j
))
c
.
text
=
G
.
flags
.
text
.
output
(
j
),
l
=!
0
;
else
if
(
G
.
flags
.
size
.
match
(
j
))
c
.
size
=
G
.
flags
.
size
.
output
(
j
),
l
=!
0
;
else
if
(
G
.
flags
.
random
.
match
(
j
)){
null
==
G
.
vars
.
cache
.
themeKeys
&&
(
G
.
vars
.
cache
.
themeKeys
=
Object
.
keys
(
b
.
themes
));
var
n
=
G
.
vars
.
cache
.
themeKeys
[
0
|
Math
.
random
()
*
G
.
vars
.
cache
.
themeKeys
.
length
];
c
.
theme
=
s
(
b
.
themes
[
n
],
null
),
l
=!
0
}
l
&&
c
.
holderURL
.
push
(
j
)}
return
c
.
holderURL
.
unshift
(
b
.
domain
),
c
.
holderURL
=
c
.
holderURL
.
join
(
"
/
"
),
d
?
c
:
!
1
}
function
e
(
a
){
var
b
=
a
.
mode
,
c
=
a
.
el
,
d
=
a
.
flags
,
e
=
a
.
engineSettings
,
g
=
d
.
dimensions
,
h
=
d
.
theme
,
k
=
g
.
width
+
"
x
"
+
g
.
height
;
if
(
b
=
null
==
b
?
d
.
fluid
?
"
fluid
"
:
"
image
"
:
b
,
null
!=
d
.
text
&&
(
h
.
text
=
d
.
text
,
"
object
"
===
c
.
nodeName
.
toLowerCase
())){
for
(
var
l
=
h
.
text
.
split
(
"
\\
n
"
),
m
=
0
;
m
<
l
.
length
;
m
++
)
l
[
m
]
=
y
(
l
[
m
]);
h
.
text
=
l
.
join
(
"
\\
n
"
)}
var
n
=
d
.
holderURL
,
o
=
s
(
e
,
null
);
d
.
font
&&
(
h
.
font
=
d
.
font
,
!
o
.
noFontFallback
&&
"
img
"
===
c
.
nodeName
.
toLowerCase
()
&&
G
.
setup
.
supportsCanvas
&&
"
svg
"
===
o
.
renderer
&&
(
o
=
s
(
o
,{
renderer
:
"
canvas
"
}))),
d
.
font
&&
"
canvas
"
==
o
.
renderer
&&
(
o
.
reRender
=!
0
),
"
background
"
==
b
?
null
==
c
.
getAttribute
(
"
data-background-src
"
)
&&
p
(
c
,{
"
data-background-src
"
:
n
}):
p
(
c
,{
"
data-src
"
:
n
}),
d
.
theme
=
h
,
c
.
holderData
=
{
flags
:
d
,
engineSettings
:
o
},(
"
image
"
==
b
||
"
fluid
"
==
b
)
&&
p
(
c
,{
alt
:
h
.
text
?
h
.
text
+
"
[
"
+
k
+
"
]
"
:
k
});
var
q
=
{
mode
:
b
,
el
:
c
,
holderSettings
:{
dimensions
:
g
,
theme
:
h
,
flags
:
d
},
engineSettings
:
o
};
"
image
"
==
b
?(
"
html
"
!=
o
.
renderer
&&
d
.
auto
||
(
c
.
style
.
width
=
g
.
width
+
"
px
"
,
c
.
style
.
height
=
g
.
height
+
"
px
"
),
"
html
"
==
o
.
renderer
?
c
.
style
.
backgroundColor
=
h
.
background
:(
f
(
q
),
"
exact
"
==
d
.
textmode
&&
(
c
.
holderData
.
resizeUpdate
=!
0
,
G
.
vars
.
resizableImages
.
push
(
c
),
i
(
c
)))):
"
background
"
==
b
&&
"
html
"
!=
o
.
renderer
?
f
(
q
):
"
fluid
"
==
b
&&
(
c
.
holderData
.
resizeUpdate
=!
0
,
"
%
"
==
g
.
height
.
slice
(
-
1
)?
c
.
style
.
height
=
g
.
height
:
null
!=
d
.
auto
&&
d
.
auto
||
(
c
.
style
.
height
=
g
.
height
+
"
px
"
),
"
%
"
==
g
.
width
.
slice
(
-
1
)?
c
.
style
.
width
=
g
.
width
:
null
!=
d
.
auto
&&
d
.
auto
||
(
c
.
style
.
width
=
g
.
width
+
"
px
"
),(
"
inline
"
==
c
.
style
.
display
||
""
===
c
.
style
.
display
||
"
none
"
==
c
.
style
.
display
)
&&
(
c
.
style
.
display
=
"
block
"
),
j
(
c
),
"
html
"
==
o
.
renderer
?
c
.
style
.
backgroundColor
=
h
.
background
:(
G
.
vars
.
resizableImages
.
push
(
c
),
i
(
c
)))}
function
f
(
a
){
function
c
(){
var
b
=
null
;
switch
(
i
.
renderer
){
case
"
canvas
"
:
b
=
I
(
k
,
a
);
break
;
case
"
svg
"
:
b
=
J
(
k
,
a
);
break
;
default
:
throw
"
Holder: invalid renderer:
"
+
i
.
renderer
}
return
b
}
var
d
=
null
,
e
=
a
.
mode
,
f
=
a
.
holderSettings
,
h
=
a
.
el
,
i
=
a
.
engineSettings
;
switch
(
i
.
renderer
){
case
"
svg
"
:
if
(
!
G
.
setup
.
supportsSVG
)
return
;
break
;
case
"
canvas
"
:
if
(
!
G
.
setup
.
supportsCanvas
)
return
;
break
;
default
:
return
}
var
j
=
{
width
:
f
.
dimensions
.
width
,
height
:
f
.
dimensions
.
height
,
theme
:
f
.
theme
,
flags
:
f
.
flags
},
k
=
g
(
j
);
if
(
d
=
c
(),
null
==
d
)
throw
"
Holder: couldn't render placeholder
"
;
"
background
"
==
e
?(
h
.
style
.
backgroundImage
=
"
url(
"
+
d
+
"
)
"
,
h
.
style
.
backgroundSize
=
j
.
width
+
"
px
"
+
j
.
height
+
"
px
"
):(
"
img
"
===
h
.
nodeName
.
toLowerCase
()?
p
(
h
,{
src
:
d
}):
"
object
"
===
h
.
nodeName
.
toLowerCase
()
&&
(
p
(
h
,{
data
:
d
}),
p
(
h
,{
type
:
"
image/svg+xml
"
})),
i
.
reRender
&&
b
.
setTimeout
(
function
(){
var
a
=
c
();
if
(
null
==
a
)
throw
"
Holder: couldn't render placeholder
"
;
"
img
"
===
h
.
nodeName
.
toLowerCase
()?
p
(
h
,{
src
:
a
}):
"
object
"
===
h
.
nodeName
.
toLowerCase
()
&&
(
p
(
h
,{
data
:
a
}),
p
(
h
,{
type
:
"
image/svg+xml
"
}))},
100
)),
p
(
h
,{
"
data-holder-rendered
"
:
!
0
})}
function
g
(
a
){
function
b
(
a
,
b
,
c
,
d
){
b
.
width
=
c
,
b
.
height
=
d
,
a
.
width
=
Math
.
max
(
a
.
width
,
b
.
width
),
a
.
height
+=
b
.
height
,
a
.
add
(
b
)}
var
c
=
G
.
defaults
.
size
;
switch
(
parseFloat
(
a
.
theme
.
size
)?
c
=
a
.
theme
.
size
:
parseFloat
(
a
.
flags
.
size
)
&&
(
c
=
a
.
flags
.
size
),
a
.
font
=
{
family
:
a
.
theme
.
font
?
a
.
theme
.
font
:
"
Arial, Helvetica, Open Sans, sans-serif
"
,
size
:
h
(
a
.
width
,
a
.
height
,
c
),
units
:
a
.
theme
.
units
?
a
.
theme
.
units
:
G
.
defaults
.
units
,
weight
:
a
.
theme
.
fontweight
?
a
.
theme
.
fontweight
:
"
bold
"
},
a
.
text
=
a
.
theme
.
text
?
a
.
theme
.
text
:
Math
.
floor
(
a
.
width
)
+
"
x
"
+
Math
.
floor
(
a
.
height
),
a
.
flags
.
textmode
){
case
"
literal
"
:
a
.
text
=
a
.
flags
.
dimensions
.
width
+
"
x
"
+
a
.
flags
.
dimensions
.
height
;
break
;
case
"
exact
"
:
if
(
!
a
.
flags
.
exactDimensions
)
break
;
a
.
text
=
Math
.
floor
(
a
.
flags
.
exactDimensions
.
width
)
+
"
x
"
+
Math
.
floor
(
a
.
flags
.
exactDimensions
.
height
)}
var
d
=
new
K
({
width
:
a
.
width
,
height
:
a
.
height
}),
e
=
d
.
Shape
,
f
=
new
e
.
Rect
(
"
holderBg
"
,{
fill
:
a
.
theme
.
background
});
f
.
resize
(
a
.
width
,
a
.
height
),
d
.
root
.
add
(
f
);
var
g
=
new
e
.
Group
(
"
holderTextGroup
"
,{
text
:
a
.
text
,
align
:
"
center
"
,
font
:
a
.
font
,
fill
:
a
.
theme
.
foreground
});
g
.
moveTo
(
null
,
null
,
1
),
d
.
root
.
add
(
g
);
var
i
=
g
.
textPositionData
=
H
(
d
);
if
(
!
i
)
throw
"
Holder: staging fallback not supported yet.
"
;
g
.
properties
.
leading
=
i
.
boundingBox
.
height
;
var
j
=
null
,
k
=
null
;
if
(
i
.
lineCount
>
1
){
var
l
=
0
,
m
=
0
,
n
=
a
.
width
*
G
.
setup
.
lineWrapRatio
,
o
=
0
;
k
=
new
e
.
Group
(
"
line
"
+
o
);
for
(
var
p
=
0
;
p
<
i
.
words
.
length
;
p
++
){
var
q
=
i
.
words
[
p
];
j
=
new
e
.
Text
(
q
.
text
);
var
r
=
"
\\
n
"
==
q
.
text
;(
l
+
q
.
width
>=
n
||
r
===!
0
)
&&
(
b
(
g
,
k
,
l
,
g
.
properties
.
leading
),
l
=
0
,
m
+=
g
.
properties
.
leading
,
o
+=
1
,
k
=
new
e
.
Group
(
"
line
"
+
o
),
k
.
y
=
m
),
r
!==!
0
&&
(
j
.
moveTo
(
l
,
0
),
l
+=
i
.
spaceWidth
+
q
.
width
,
k
.
add
(
j
))}
b
(
g
,
k
,
l
,
g
.
properties
.
leading
);
for
(
var
s
in
g
.
children
)
k
=
g
.
children
[
s
],
k
.
moveTo
((
g
.
width
-
k
.
width
)
/
2
,
null
,
null
);
g
.
moveTo
((
a
.
width
-
g
.
width
)
/
2
,(
a
.
height
-
g
.
height
)
/
2
,
null
),(
a
.
height
-
g
.
height
)
/
2
<
0
&&
g
.
moveTo
(
null
,
0
,
null
)}
else
j
=
new
e
.
Text
(
a
.
text
),
k
=
new
e
.
Group
(
"
line0
"
),
k
.
add
(
j
),
g
.
add
(
k
),
g
.
moveTo
((
a
.
width
-
i
.
boundingBox
.
width
)
/
2
,(
a
.
height
-
i
.
boundingBox
.
height
)
/
2
,
null
);
return
d
}
function
h
(
a
,
b
,
c
){
var
d
=
parseInt
(
a
,
10
),
e
=
parseInt
(
b
,
10
),
f
=
Math
.
max
(
d
,
e
),
g
=
Math
.
min
(
d
,
e
),
h
=
.
8
*
Math
.
min
(
g
,
f
*
G
.
defaults
.
scale
);
return
Math
.
round
(
Math
.
max
(
c
,
h
))}
function
i
(
a
){
var
b
;
b
=
null
==
a
||
null
==
a
.
nodeType
?
G
.
vars
.
resizableImages
:[
a
];
for
(
var
c
=
0
,
d
=
b
.
length
;
d
>
c
;
c
++
){
var
e
=
b
[
c
];
if
(
e
.
holderData
){
var
g
=
e
.
holderData
.
flags
,
h
=
k
(
e
);
if
(
h
){
if
(
!
e
.
holderData
.
resizeUpdate
)
continue
;
if
(
g
.
fluid
&&
g
.
auto
){
var
i
=
e
.
holderData
.
fluidConfig
;
switch
(
i
.
mode
){
case
"
width
"
:
h
.
height
=
h
.
width
/
i
.
ratio
;
break
;
case
"
height
"
:
h
.
width
=
h
.
height
*
i
.
ratio
}}
var
j
=
{
mode
:
"
image
"
,
holderSettings
:{
dimensions
:
h
,
theme
:
g
.
theme
,
flags
:
g
},
el
:
e
,
engineSettings
:
e
.
holderData
.
engineSettings
};
"
exact
"
==
g
.
textmode
&&
(
g
.
exactDimensions
=
h
,
j
.
holderSettings
.
dimensions
=
g
.
dimensions
),
f
(
j
)}
else
n
(
e
)}}}
function
j
(
a
){
if
(
a
.
holderData
){
var
b
=
k
(
a
);
if
(
b
){
var
c
=
a
.
holderData
.
flags
,
d
=
{
fluidHeight
:
"
%
"
==
c
.
dimensions
.
height
.
slice
(
-
1
),
fluidWidth
:
"
%
"
==
c
.
dimensions
.
width
.
slice
(
-
1
),
mode
:
null
,
initialDimensions
:
b
};
d
.
fluidWidth
&&!
d
.
fluidHeight
?(
d
.
mode
=
"
width
"
,
d
.
ratio
=
d
.
initialDimensions
.
width
/
parseFloat
(
c
.
dimensions
.
height
)):
!
d
.
fluidWidth
&&
d
.
fluidHeight
&&
(
d
.
mode
=
"
height
"
,
d
.
ratio
=
parseFloat
(
c
.
dimensions
.
width
)
/
d
.
initialDimensions
.
height
),
a
.
holderData
.
fluidConfig
=
d
}
else
n
(
a
)}}
function
k
(
a
){
var
b
=
{
height
:
a
.
clientHeight
,
width
:
a
.
clientWidth
};
return
b
.
height
&&
b
.
width
?
b
:
!
1
}
function
l
(){
for
(
var
a
,
c
=
[],
d
=
Object
.
keys
(
G
.
vars
.
invisibleImages
),
e
=
0
,
f
=
d
.
length
;
f
>
e
;
e
++
)
a
=
G
.
vars
.
invisibleImages
[
d
[
e
]],
k
(
a
)
&&
"
img
"
==
a
.
nodeName
.
toLowerCase
()
&&
(
c
.
push
(
a
),
delete
G
.
vars
.
invisibleImages
[
d
[
e
]]);
c
.
length
&&
F
.
run
({
images
:
c
}),
b
.
requestAnimationFrame
(
l
)}
function
m
(){
G
.
vars
.
visibilityCheckStarted
||
(
b
.
requestAnimationFrame
(
l
),
G
.
vars
.
visibilityCheckStarted
=!
0
)}
function
n
(
a
){
a
.
holderData
.
invisibleId
||
(
G
.
vars
.
invisibleId
+=
1
,
G
.
vars
.
invisibleImages
[
"
i
"
+
G
.
vars
.
invisibleId
]
=
a
,
a
.
holderData
.
invisibleId
=
G
.
vars
.
invisibleId
)}
function
o
(
a
,
b
){
return
null
==
b
?
C
.
createElement
(
a
):
C
.
createElementNS
(
b
,
a
)}
function
p
(
a
,
b
){
for
(
var
c
in
b
)
a
.
setAttribute
(
c
,
b
[
c
])}
function
q
(
a
,
b
,
c
){
if
(
null
==
a
){
a
=
o
(
"
svg
"
,
A
);
var
d
=
o
(
"
defs
"
,
A
);
a
.
appendChild
(
d
)}
a
.
webkitMatchesSelector
&&
a
.
setAttribute
(
"
xmlns
"
,
A
);
for
(
var
e
=
0
;
e
<
a
.
childNodes
.
length
;
e
++
)
a
.
childNodes
[
e
].
nodeType
===
B
&&
a
.
removeChild
(
a
.
childNodes
[
e
]);
return
p
(
a
,{
width
:
b
,
height
:
c
,
viewBox
:
"
0 0
"
+
b
+
"
"
+
c
,
preserveAspectRatio
:
"
none
"
}),
a
}
function
r
(
a
,
c
){
if
(
b
.
XMLSerializer
){
var
d
=
new
XMLSerializer
,
e
=
""
,
f
=
c
.
stylesheets
;
if
(
a
.
querySelector
(
"
defs
"
),
c
.
svgXMLStylesheet
){
for
(
var
g
=
(
new
DOMParser
).
parseFromString
(
"
<xml />
"
,
"
application/xml
"
),
h
=
f
.
length
-
1
;
h
>=
0
;
h
--
){
var
i
=
g
.
createProcessingInstruction
(
"
xml-stylesheet
"
,
'
href="
'
+
f
[
h
]
+
'
" rel="stylesheet"
'
);
g
.
insertBefore
(
i
,
g
.
firstChild
)}
var
j
=
g
.
createProcessingInstruction
(
"
xml
"
,
'
version="1.0" encoding="UTF-8" standalone="yes"
'
);
g
.
insertBefore
(
j
,
g
.
firstChild
),
g
.
removeChild
(
g
.
documentElement
),
e
=
d
.
serializeToString
(
g
)}
var
k
=
d
.
serializeToString
(
a
);
return
k
=
k
.
replace
(
/
\&
amp;
(\#[
0-9
]{2,}\;)
/g
,
"
&$1
"
),
e
+
k
}}
function
s
(
a
,
b
){
var
c
=
{};
for
(
var
d
in
a
)
a
.
hasOwnProperty
(
d
)
&&
(
c
[
d
]
=
a
[
d
]);
if
(
null
!=
b
)
for
(
var
e
in
b
)
b
.
hasOwnProperty
(
e
)
&&
(
c
[
e
]
=
b
[
e
]);
return
c
}
function
t
(
a
){
var
b
=
[];
for
(
var
c
in
a
)
a
.
hasOwnProperty
(
c
)
&&
b
.
push
(
c
+
"
:
"
+
a
[
c
]);
return
b
.
join
(
"
;
"
)}
function
u
(
a
){
G
.
vars
.
debounceTimer
||
a
.
call
(
this
),
G
.
vars
.
debounceTimer
&&
b
.
clearTimeout
(
G
.
vars
.
debounceTimer
),
G
.
vars
.
debounceTimer
=
b
.
setTimeout
(
function
(){
G
.
vars
.
debounceTimer
=
null
,
a
.
call
(
this
)},
G
.
setup
.
debounce
)}
function
v
(){
u
(
function
(){
i
(
null
)})}
function
w
(
a
){
var
c
=
null
;
return
"
string
"
==
typeof
a
?
c
=
C
.
querySelectorAll
(
a
):
b
.
NodeList
&&
a
instanceof
b
.
NodeList
?
c
=
a
:
b
.
Node
&&
a
instanceof
b
.
Node
?
c
=
[
a
]:
b
.
HTMLCollection
&&
a
instanceof
b
.
HTMLCollection
?
c
=
a
:
a
instanceof
Array
?
c
=
a
:
null
===
a
&&
(
c
=
[]),
c
}
function
x
(
a
,
b
){
var
c
=
new
Image
;
c
.
onerror
=
function
(){
b
.
call
(
this
,
!
1
)},
c
.
onload
=
function
(){
b
.
call
(
this
,
!
0
)},
c
.
src
=
a
}
function
y
(
a
){
for
(
var
b
=
[],
c
=
0
,
d
=
a
.
length
-
1
;
d
>=
0
;
d
--
)
c
=
a
.
charCodeAt
(
d
),
b
.
unshift
(
c
>
128
?[
"
&#
"
,
c
,
"
;
"
].
join
(
""
):
a
[
d
]);
return
b
.
join
(
""
)}
function
z
(
a
){
return
a
.
replace
(
/&#
(\d
+
)
;/g
,
function
(
a
,
b
){
return
String
.
fromCharCode
(
b
)})}
var
A
=
"
http://www.w3.org/2000/svg
"
,
B
=
8
,
C
=
b
.
document
,
D
=
"
2.5.2
"
,
E
=
"
\n
Created with Holder.js
"
+
D
+
"
.
\n
Learn more at http://holderjs.com
\n
(c) 2012-2015 Ivan Malopinsky - http://imsky.co
\n
"
,
F
=
{
version
:
D
,
addTheme
:
function
(
a
,
b
){
return
null
!=
a
&&
null
!=
b
&&
(
G
.
settings
.
themes
[
a
]
=
b
),
delete
G
.
vars
.
cache
.
themeKeys
,
this
},
addImage
:
function
(
a
,
b
){
var
c
=
C
.
querySelectorAll
(
b
);
if
(
c
.
length
)
for
(
var
d
=
0
,
e
=
c
.
length
;
e
>
d
;
d
++
){
var
f
=
o
(
"
img
"
);
p
(
f
,{
"
data-src
"
:
a
}),
c
[
d
].
appendChild
(
f
)}
return
this
},
setResizeUpdate
:
function
(
a
,
b
){
a
.
holderData
&&
(
a
.
holderData
.
resizeUpdate
=!!
b
,
a
.
holderData
.
resizeUpdate
&&
i
(
a
))},
run
:
function
(
a
){
a
=
a
||
{};
var
f
=
{};
G
.
vars
.
preempted
=!
0
;
var
g
=
s
(
G
.
settings
,
a
);
f
.
renderer
=
g
.
renderer
?
g
.
renderer
:
G
.
setup
.
renderer
,
-
1
===
G
.
setup
.
renderers
.
join
(
"
,
"
).
indexOf
(
f
.
renderer
)
&&
(
f
.
renderer
=
G
.
setup
.
supportsSVG
?
"
svg
"
:
G
.
setup
.
supportsCanvas
?
"
canvas
"
:
"
html
"
);
var
h
=
w
(
g
.
images
),
i
=
w
(
g
.
bgnodes
),
j
=
w
(
g
.
stylenodes
),
k
=
w
(
g
.
objects
);
f
.
stylesheets
=
[],
f
.
svgXMLStylesheet
=!
0
,
f
.
noFontFallback
=
g
.
noFontFallback
?
g
.
noFontFallback
:
!
1
;
for
(
var
l
=
0
;
l
<
j
.
length
;
l
++
){
var
m
=
j
[
l
];
if
(
m
.
attributes
.
rel
&&
m
.
attributes
.
href
&&
"
stylesheet
"
==
m
.
attributes
.
rel
.
value
){
var
n
=
m
.
attributes
.
href
.
value
,
p
=
o
(
"
a
"
);
p
.
href
=
n
;
var
q
=
p
.
protocol
+
"
//
"
+
p
.
host
+
p
.
pathname
+
p
.
search
;
f
.
stylesheets
.
push
(
q
)}}
for
(
l
=
0
;
l
<
i
.
length
;
l
++
)
if
(
b
.
getComputedStyle
){
var
r
=
b
.
getComputedStyle
(
i
[
l
],
null
).
getPropertyValue
(
"
background-image
"
),
t
=
i
[
l
].
getAttribute
(
"
data-background-src
"
),
u
=
null
;
u
=
null
==
t
?
r
:
t
;
var
v
=
null
,
y
=
"
?
"
+
g
.
domain
+
"
/
"
;
if
(
0
===
u
.
indexOf
(
y
))
v
=
u
.
slice
(
1
);
else
if
(
-
1
!=
u
.
indexOf
(
y
)){
var
z
=
u
.
substr
(
u
.
indexOf
(
y
)).
slice
(
1
),
A
=
z
.
match
(
/
([^\"]
*
)
"
?\)
/
);
null
!=
A
&&
(
v
=
A
[
1
])}
if
(
null
!=
v
){
var
B
=
d
(
v
,
g
);
B
&&
e
({
mode
:
"
background
"
,
el
:
i
[
l
],
flags
:
B
,
engineSettings
:
f
})}}
for
(
l
=
0
;
l
<
k
.
length
;
l
++
){
var
C
=
k
[
l
],
D
=
{};
try
{
D
.
data
=
C
.
getAttribute
(
"
data
"
),
D
.
dataSrc
=
C
.
getAttribute
(
"
data-src
"
)}
catch
(
E
){}
var
F
=
null
!=
D
.
data
&&
0
===
D
.
data
.
indexOf
(
g
.
domain
),
H
=
null
!=
D
.
dataSrc
&&
0
===
D
.
dataSrc
.
indexOf
(
g
.
domain
);
F
?
c
(
g
,
f
,
D
.
data
,
C
):
H
&&
c
(
g
,
f
,
D
.
dataSrc
,
C
)}
for
(
l
=
0
;
l
<
h
.
length
;
l
++
){
var
I
=
h
[
l
],
J
=
{};
try
{
J
.
src
=
I
.
getAttribute
(
"
src
"
),
J
.
dataSrc
=
I
.
getAttribute
(
"
data-src
"
),
J
.
rendered
=
I
.
getAttribute
(
"
data-holder-rendered
"
)}
catch
(
E
){}
var
K
=
null
!=
J
.
src
,
L
=
null
!=
J
.
dataSrc
&&
0
===
J
.
dataSrc
.
indexOf
(
g
.
domain
),
M
=
null
!=
J
.
rendered
&&
"
true
"
==
J
.
rendered
;
K
?
0
===
J
.
src
.
indexOf
(
g
.
domain
)?
c
(
g
,
f
,
J
.
src
,
I
):
L
&&
(
M
?
c
(
g
,
f
,
J
.
dataSrc
,
I
):
!
function
(
a
,
b
,
d
,
e
,
f
){
x
(
a
,
function
(
a
){
a
||
c
(
b
,
d
,
e
,
f
)})}(
J
.
src
,
g
,
f
,
J
.
dataSrc
,
I
)):
L
&&
c
(
g
,
f
,
J
.
dataSrc
,
I
)}
return
this
}},
G
=
{
settings
:{
domain
:
"
holder.js
"
,
images
:
"
img
"
,
objects
:
"
object
"
,
bgnodes
:
"
body .holderjs
"
,
stylenodes
:
"
head link.holderjs
"
,
stylesheets
:[],
themes
:{
gray
:{
background
:
"
#EEEEEE
"
,
foreground
:
"
#AAAAAA
"
},
social
:{
background
:
"
#3a5a97
"
,
foreground
:
"
#FFFFFF
"
},
industrial
:{
background
:
"
#434A52
"
,
foreground
:
"
#C2F200
"
},
sky
:{
background
:
"
#0D8FDB
"
,
foreground
:
"
#FFFFFF
"
},
vine
:{
background
:
"
#39DBAC
"
,
foreground
:
"
#1E292C
"
},
lava
:{
background
:
"
#F8591A
"
,
foreground
:
"
#1C2846
"
}}},
defaults
:{
size
:
10
,
units
:
"
pt
"
,
scale
:
1
/
16
},
flags
:{
dimensions
:{
regex
:
/^
(\d
+
)
x
(\d
+
)
$/
,
output
:
function
(
a
){
var
b
=
this
.
regex
.
exec
(
a
);
return
{
width
:
+
b
[
1
],
height
:
+
b
[
2
]}}},
fluid
:{
regex
:
/^
([
0-9
]
+%
?)
x
([
0-9
]
+%
?)
$/
,
output
:
function
(
a
){
var
b
=
this
.
regex
.
exec
(
a
);
return
{
width
:
b
[
1
],
height
:
b
[
2
]}}},
colors
:{
regex
:
/
(?:
#|
\^)([
0-9a-f
]{3,})\:(?:
#|
\^)([
0-9a-f
]{3,})
/i
,
output
:
function
(
a
){
var
b
=
this
.
regex
.
exec
(
a
);
return
{
foreground
:
"
#
"
+
b
[
2
],
background
:
"
#
"
+
b
[
1
]}}},
text
:{
regex
:
/text
\:(
.*
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
].
replace
(
"
\\
/
"
,
"
/
"
)}},
font
:{
regex
:
/font
\:(
.*
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
]}},
auto
:{
regex
:
/^auto$/
},
textmode
:{
regex
:
/textmode
\:(
.*
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
]}},
random
:{
regex
:
/^random$/
},
size
:{
regex
:
/size
\:(\d
+
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
]}}}},
H
=
function
(){
var
a
=
null
,
b
=
null
,
c
=
null
;
return
function
(
d
){
var
e
=
d
.
root
;
if
(
G
.
setup
.
supportsSVG
){
var
f
=!
1
,
g
=
function
(
a
){
return
C
.
createTextNode
(
a
)};(
null
==
a
||
a
.
parentNode
!==
C
.
body
)
&&
(
f
=!
0
),
a
=
q
(
a
,
e
.
properties
.
width
,
e
.
properties
.
height
),
a
.
style
.
display
=
"
block
"
,
f
&&
(
b
=
o
(
"
text
"
,
A
),
c
=
g
(
null
),
p
(
b
,{
x
:
0
}),
b
.
appendChild
(
c
),
a
.
appendChild
(
b
),
C
.
body
.
appendChild
(
a
),
a
.
style
.
visibility
=
"
hidden
"
,
a
.
style
.
position
=
"
absolute
"
,
a
.
style
.
top
=
"
-100%
"
,
a
.
style
.
left
=
"
-100%
"
);
var
h
=
e
.
children
.
holderTextGroup
,
i
=
h
.
properties
;
p
(
b
,{
y
:
i
.
font
.
size
,
style
:
t
({
"
font-weight
"
:
i
.
font
.
weight
,
"
font-size
"
:
i
.
font
.
size
+
i
.
font
.
units
,
"
font-family
"
:
i
.
font
.
family
})}),
c
.
nodeValue
=
i
.
text
;
var
j
=
b
.
getBBox
(),
k
=
Math
.
ceil
(
j
.
width
/
(
e
.
properties
.
width
*
G
.
setup
.
lineWrapRatio
)),
l
=
i
.
text
.
split
(
"
"
),
m
=
i
.
text
.
match
(
/
\\
n/g
);
k
+=
null
==
m
?
0
:
m
.
length
,
c
.
nodeValue
=
i
.
text
.
replace
(
/
[
]
+/g
,
""
);
var
n
=
b
.
getComputedTextLength
(),
r
=
j
.
width
-
n
,
s
=
Math
.
round
(
r
/
Math
.
max
(
1
,
l
.
length
-
1
)),
u
=
[];
if
(
k
>
1
){
c
.
nodeValue
=
""
;
for
(
var
v
=
0
;
v
<
l
.
length
;
v
++
)
if
(
0
!==
l
[
v
].
length
){
c
.
nodeValue
=
z
(
l
[
v
]);
var
w
=
b
.
getBBox
();
u
.
push
({
text
:
l
[
v
],
width
:
w
.
width
})}}
return
a
.
style
.
display
=
"
none
"
,{
spaceWidth
:
s
,
lineCount
:
k
,
boundingBox
:
j
,
words
:
u
}}
return
!
1
}}(),
I
=
function
(){
var
a
=
o
(
"
canvas
"
),
b
=
null
;
return
function
(
c
){
null
==
b
&&
(
b
=
a
.
getContext
(
"
2d
"
));
var
d
=
c
.
root
;
a
.
width
=
G
.
dpr
(
d
.
properties
.
width
),
a
.
height
=
G
.
dpr
(
d
.
properties
.
height
),
b
.
textBaseline
=
"
middle
"
,
b
.
fillStyle
=
d
.
children
.
holderBg
.
properties
.
fill
,
b
.
fillRect
(
0
,
0
,
G
.
dpr
(
d
.
children
.
holderBg
.
width
),
G
.
dpr
(
d
.
children
.
holderBg
.
height
));
var
e
=
d
.
children
.
holderTextGroup
;
e
.
properties
,
b
.
font
=
e
.
properties
.
font
.
weight
+
"
"
+
G
.
dpr
(
e
.
properties
.
font
.
size
)
+
e
.
properties
.
font
.
units
+
"
"
+
e
.
properties
.
font
.
family
+
"
, monospace
"
,
b
.
fillStyle
=
e
.
properties
.
fill
;
for
(
var
f
in
e
.
children
){
var
g
=
e
.
children
[
f
];
for
(
var
h
in
g
.
children
){
var
i
=
g
.
children
[
h
],
j
=
G
.
dpr
(
e
.
x
+
g
.
x
+
i
.
x
),
k
=
G
.
dpr
(
e
.
y
+
g
.
y
+
i
.
y
+
e
.
properties
.
leading
/
2
);
b
.
fillText
(
i
.
properties
.
text
,
j
,
k
)}}
return
a
.
toDataURL
(
"
image/png
"
)}}(),
J
=
function
(){
if
(
b
.
XMLSerializer
){
var
a
=
q
(
null
,
0
,
0
),
c
=
o
(
"
rect
"
,
A
);
return
a
.
appendChild
(
c
),
function
(
b
,
d
){
var
e
=
b
.
root
,
f
=
d
.
holderSettings
.
flags
.
holderURL
,
g
=
C
.
createComment
(
"
\n
Source URL:
"
+
f
+
E
);
q
(
a
,
e
.
properties
.
width
,
e
.
properties
.
height
),
a
.
insertBefore
(
g
,
a
.
firstChild
);
for
(
var
h
=
a
.
querySelectorAll
(
"
g
"
),
i
=
0
;
i
<
h
.
length
;
i
++
)
h
[
i
].
parentNode
.
removeChild
(
h
[
i
]);
p
(
c
,{
width
:
e
.
children
.
holderBg
.
width
,
height
:
e
.
children
.
holderBg
.
height
,
fill
:
e
.
children
.
holderBg
.
properties
.
fill
});
var
j
=
e
.
children
.
holderTextGroup
,
k
=
j
.
properties
,
l
=
o
(
"
g
"
,
A
),
m
=
j
.
textPositionData
;
a
.
appendChild
(
l
),
j
.
y
+=
.
8
*
m
.
boundingBox
.
height
;
for
(
var
n
in
j
.
children
){
var
s
=
j
.
children
[
n
];
for
(
var
u
in
s
.
children
){
var
v
=
s
.
children
[
u
],
w
=
j
.
x
+
s
.
x
+
v
.
x
,
x
=
j
.
y
+
s
.
y
+
v
.
y
,
y
=
o
(
"
text
"
,
A
),
z
=
C
.
createTextNode
(
null
);
p
(
y
,{
x
:
w
,
y
:
x
,
style
:
t
({
fill
:
k
.
fill
,
"
font-weight
"
:
k
.
font
.
weight
,
"
font-family
"
:
k
.
font
.
family
+
"
, monospace
"
,
"
font-size
"
:
k
.
font
.
size
+
k
.
font
.
units
})}),
z
.
nodeValue
=
v
.
properties
.
text
,
y
.
appendChild
(
z
),
l
.
appendChild
(
y
)}}
var
B
=
"
data:image/svg+xml;base64,
"
+
btoa
(
unescape
(
encodeURIComponent
(
r
(
a
,
d
.
engineSettings
))));
return
B
}}}(),
K
=
function
(
a
){
function
b
(
a
,
b
){
for
(
var
c
in
b
)
a
[
c
]
=
b
[
c
];
return
a
}
var
c
=
1
,
d
=
augment
.
defclass
({
constructor
:
function
(
a
){
c
++
,
this
.
parent
=
null
,
this
.
children
=
{},
this
.
id
=
c
,
this
.
name
=
"
n
"
+
c
,
null
!=
a
&&
(
this
.
name
=
a
),
this
.
x
=
0
,
this
.
y
=
0
,
this
.
z
=
0
,
this
.
width
=
0
,
this
.
height
=
0
},
resize
:
function
(
a
,
b
){
null
!=
a
&&
(
this
.
width
=
a
),
null
!=
b
&&
(
this
.
height
=
b
)},
moveTo
:
function
(
a
,
b
,
c
){
this
.
x
=
null
!=
a
?
a
:
this
.
x
,
this
.
y
=
null
!=
b
?
b
:
this
.
y
,
this
.
z
=
null
!=
c
?
c
:
this
.
z
},
add
:
function
(
a
){
var
b
=
a
.
name
;
if
(
null
!=
this
.
children
[
b
])
throw
"
SceneGraph: child with that name already exists:
"
+
b
;
this
.
children
[
b
]
=
a
,
a
.
parent
=
this
}}),
e
=
augment
(
d
,
function
(
b
){
this
.
constructor
=
function
(){
b
.
constructor
.
call
(
this
,
"
root
"
),
this
.
properties
=
a
}}),
f
=
augment
(
d
,
function
(
a
){
function
c
(
c
,
d
){
if
(
a
.
constructor
.
call
(
this
,
c
),
this
.
properties
=
{
fill
:
"
#000
"
},
null
!=
d
)
b
(
this
.
properties
,
d
);
else
if
(
null
!=
c
&&
"
string
"
!=
typeof
c
)
throw
"
SceneGraph: invalid node name
"
}
this
.
Group
=
augment
.
extend
(
this
,{
constructor
:
c
,
type
:
"
group
"
}),
this
.
Rect
=
augment
.
extend
(
this
,{
constructor
:
c
,
type
:
"
rect
"
}),
this
.
Text
=
augment
.
extend
(
this
,{
constructor
:
function
(
a
){
c
.
call
(
this
),
this
.
properties
.
text
=
a
},
type
:
"
text
"
})}),
g
=
new
e
;
return
this
.
Shape
=
f
,
this
.
root
=
g
,
this
};
for
(
var
L
in
G
.
flags
)
G
.
flags
.
hasOwnProperty
(
L
)
&&
(
G
.
flags
[
L
].
match
=
function
(
a
){
return
a
.
match
(
this
.
regex
)});
G
.
setup
=
{
renderer
:
"
html
"
,
debounce
:
100
,
ratio
:
1
,
supportsCanvas
:
!
1
,
supportsSVG
:
!
1
,
lineWrapRatio
:.
9
,
renderers
:[
"
html
"
,
"
canvas
"
,
"
svg
"
]},
G
.
dpr
=
function
(
a
){
return
a
*
G
.
setup
.
ratio
},
G
.
vars
=
{
preempted
:
!
1
,
resizableImages
:[],
invisibleImages
:{},
invisibleId
:
0
,
visibilityCheckStarted
:
!
1
,
debounceTimer
:
null
,
cache
:{}},
function
(){
var
a
=
1
,
c
=
1
,
d
=
o
(
"
canvas
"
),
e
=
null
;
d
.
getContext
&&-
1
!=
d
.
toDataURL
(
"
image/png
"
).
indexOf
(
"
data:image/png
"
)
&&
(
G
.
setup
.
renderer
=
"
canvas
"
,
e
=
d
.
getContext
(
"
2d
"
),
G
.
setup
.
supportsCanvas
=!
0
),
G
.
setup
.
supportsCanvas
&&
(
a
=
b
.
devicePixelRatio
||
1
,
c
=
e
.
webkitBackingStorePixelRatio
||
e
.
mozBackingStorePixelRatio
||
e
.
msBackingStorePixelRatio
||
e
.
oBackingStorePixelRatio
||
e
.
backingStorePixelRatio
||
1
),
G
.
setup
.
ratio
=
a
/
c
,
C
.
createElementNS
&&
C
.
createElementNS
(
A
,
"
svg
"
).
createSVGRect
&&
(
G
.
setup
.
renderer
=
"
svg
"
,
G
.
setup
.
supportsSVG
=!
0
)}(),
m
(),
a
(
F
,
"
Holder
"
,
b
),
b
.
onDomReady
&&
b
.
onDomReady
(
function
(){
G
.
vars
.
preempted
||
F
.
run
(),
b
.
addEventListener
?(
b
.
addEventListener
(
"
resize
"
,
v
,
!
1
),
b
.
addEventListener
(
"
orientationchange
"
,
v
,
!
1
)):
b
.
attachEvent
(
"
onresize
"
,
v
),
"
object
"
==
typeof
b
.
Turbolinks
&&
b
.
document
.
addEventListener
(
"
page:change
"
,
function
(){
F
.
run
()})})}(
function
(
a
,
b
,
c
){
var
d
=
"
function
"
==
typeof
define
&&
define
.
amd
;
"
object
"
==
typeof
exports
,
d
?
define
(
a
):
c
[
b
]
=
a
},
this
),
/*!
function
addAnchors
(
a
){
"
use strict
"
;
if
(
a
){
if
(
"
string
"
!=
typeof
a
)
throw
new
Error
(
"
AnchorJS accepts only strings; you used a
"
+
typeof
a
)}
else
a
=
"
h1, h2, h3, h4, h5, h6
"
;
for
(
var
b
=
document
.
querySelectorAll
(
a
),
c
=
0
;
c
<
b
.
length
;
c
++
){
var
d
;
if
(
b
[
c
].
hasAttribute
(
"
id
"
))
d
=
b
[
c
].
getAttribute
(
"
id
"
);
else
{
var
e
=
document
.
body
.
textContent
?
"
textContent
"
:
"
innerText
"
,
f
=
b
[
c
][
e
],
g
=
f
.
replace
(
/
\s
+/g
,
"
-
"
).
toLowerCase
();
b
[
c
].
setAttribute
(
"
id
"
,
g
),
d
=
g
}
var
h
=
'
<a class="anchorjs-link" href="#
'
+
d
+
'
"><span class="anchorjs-icon"></span></a>
'
;
b
[
c
].
innerHTML
+=
h
}}
!
function
(
a
,
b
){
"
object
"
==
typeof
exports
&&
"
object
"
==
typeof
module
?
module
.
exports
=
b
():
"
function
"
==
typeof
define
&&
define
.
amd
?
define
(
b
):
"
object
"
==
typeof
exports
?
exports
.
Holder
=
b
():
a
.
Holder
=
b
()}(
this
,
function
(){
return
function
(
a
){
function
b
(
d
){
if
(
c
[
d
])
return
c
[
d
].
exports
;
var
e
=
c
[
d
]
=
{
exports
:{},
id
:
d
,
loaded
:
!
1
};
return
a
[
d
].
call
(
e
.
exports
,
e
,
e
.
exports
,
b
),
e
.
loaded
=!
0
,
e
.
exports
}
var
c
=
{};
return
b
.
m
=
a
,
b
.
c
=
c
,
b
.
p
=
""
,
b
(
0
)}([
function
(
a
,
b
,
c
){(
function
(
b
){
function
d
(
a
,
b
,
c
,
d
){
var
g
=
e
(
c
.
substr
(
c
.
lastIndexOf
(
a
.
domain
)),
a
);
g
&&
f
({
mode
:
null
,
el
:
d
,
flags
:
g
,
engineSettings
:
b
})}
function
e
(
a
,
b
){
for
(
var
c
=
{
theme
:
y
(
K
.
settings
.
themes
.
gray
,
null
),
stylesheets
:
b
.
stylesheets
,
holderURL
:[]},
d
=!
1
,
e
=
String
.
fromCharCode
(
11
),
f
=
a
.
replace
(
/
([^\\])\/
/g
,
"
$1
"
+
e
).
split
(
e
),
g
=
/%
[
0-9a-f
]{2}
/gi
,
h
=
f
.
length
,
i
=
0
;
h
>
i
;
i
++
){
var
j
=
f
[
i
];
if
(
j
.
match
(
g
))
try
{
j
=
decodeURIComponent
(
j
)}
catch
(
k
){
j
=
f
[
i
]}
var
l
=!
1
;
if
(
K
.
flags
.
dimensions
.
match
(
j
))
d
=!
0
,
c
.
dimensions
=
K
.
flags
.
dimensions
.
output
(
j
),
l
=!
0
;
else
if
(
K
.
flags
.
fluid
.
match
(
j
))
d
=!
0
,
c
.
dimensions
=
K
.
flags
.
fluid
.
output
(
j
),
c
.
fluid
=!
0
,
l
=!
0
;
else
if
(
K
.
flags
.
textmode
.
match
(
j
))
c
.
textmode
=
K
.
flags
.
textmode
.
output
(
j
),
l
=!
0
;
else
if
(
K
.
flags
.
colors
.
match
(
j
)){
var
m
=
K
.
flags
.
colors
.
output
(
j
);
c
.
theme
=
y
(
c
.
theme
,
m
),
l
=!
0
}
else
if
(
b
.
themes
[
j
])
b
.
themes
.
hasOwnProperty
(
j
)
&&
(
c
.
theme
=
y
(
b
.
themes
[
j
],
null
)),
l
=!
0
;
else
if
(
K
.
flags
.
font
.
match
(
j
))
c
.
font
=
K
.
flags
.
font
.
output
(
j
),
l
=!
0
;
else
if
(
K
.
flags
.
auto
.
match
(
j
))
c
.
auto
=!
0
,
l
=!
0
;
else
if
(
K
.
flags
.
text
.
match
(
j
))
c
.
text
=
K
.
flags
.
text
.
output
(
j
),
l
=!
0
;
else
if
(
K
.
flags
.
size
.
match
(
j
))
c
.
size
=
K
.
flags
.
size
.
output
(
j
),
l
=!
0
;
else
if
(
K
.
flags
.
random
.
match
(
j
)){
null
==
K
.
vars
.
cache
.
themeKeys
&&
(
K
.
vars
.
cache
.
themeKeys
=
Object
.
keys
(
b
.
themes
));
var
n
=
K
.
vars
.
cache
.
themeKeys
[
0
|
Math
.
random
()
*
K
.
vars
.
cache
.
themeKeys
.
length
];
c
.
theme
=
y
(
b
.
themes
[
n
],
null
),
l
=!
0
}
l
&&
c
.
holderURL
.
push
(
j
)}
return
c
.
holderURL
.
unshift
(
b
.
domain
),
c
.
holderURL
=
c
.
holderURL
.
join
(
"
/
"
),
d
?
c
:
!
1
}
function
f
(
a
){
var
b
=
a
.
mode
,
c
=
a
.
el
,
d
=
a
.
flags
,
e
=
a
.
engineSettings
,
f
=
d
.
dimensions
,
h
=
d
.
theme
,
i
=
f
.
width
+
"
x
"
+
f
.
height
;
if
(
b
=
null
==
b
?
d
.
fluid
?
"
fluid
"
:
"
image
"
:
b
,
null
!=
d
.
text
&&
(
h
.
text
=
d
.
text
,
"
object
"
===
c
.
nodeName
.
toLowerCase
())){
for
(
var
l
=
h
.
text
.
split
(
"
\\
n
"
),
m
=
0
;
m
<
l
.
length
;
m
++
)
l
[
m
]
=
A
(
l
[
m
]);
h
.
text
=
l
.
join
(
"
\\
n
"
)}
var
n
=
d
.
holderURL
,
o
=
y
(
e
,
null
);
if
(
d
.
font
&&
(
h
.
font
=
d
.
font
,
!
o
.
noFontFallback
&&
"
img
"
===
c
.
nodeName
.
toLowerCase
()
&&
K
.
setup
.
supportsCanvas
&&
"
svg
"
===
o
.
renderer
&&
(
o
=
y
(
o
,{
renderer
:
"
canvas
"
}))),
d
.
font
&&
"
canvas
"
==
o
.
renderer
&&
(
o
.
reRender
=!
0
),
"
background
"
==
b
)
null
==
c
.
getAttribute
(
"
data-background-src
"
)
&&
p
(
c
,{
"
data-background-src
"
:
n
});
else
{
var
q
=
{};
q
[
K
.
vars
.
dataAttr
]
=
n
,
p
(
c
,
q
)}
d
.
theme
=
h
,
c
.
holderData
=
{
flags
:
d
,
engineSettings
:
o
},(
"
image
"
==
b
||
"
fluid
"
==
b
)
&&
p
(
c
,{
alt
:
h
.
text
?
h
.
text
+
"
[
"
+
i
+
"
]
"
:
i
});
var
r
=
{
mode
:
b
,
el
:
c
,
holderSettings
:{
dimensions
:
f
,
theme
:
h
,
flags
:
d
},
engineSettings
:
o
};
"
image
"
==
b
?(
"
html
"
!=
o
.
renderer
&&
d
.
auto
||
(
c
.
style
.
width
=
f
.
width
+
"
px
"
,
c
.
style
.
height
=
f
.
height
+
"
px
"
),
"
html
"
==
o
.
renderer
?
c
.
style
.
backgroundColor
=
h
.
background
:(
g
(
r
),
"
exact
"
==
d
.
textmode
&&
(
c
.
holderData
.
resizeUpdate
=!
0
,
K
.
vars
.
resizableImages
.
push
(
c
),
j
(
c
)))):
"
background
"
==
b
&&
"
html
"
!=
o
.
renderer
?
g
(
r
):
"
fluid
"
==
b
&&
(
c
.
holderData
.
resizeUpdate
=!
0
,
"
%
"
==
f
.
height
.
slice
(
-
1
)?
c
.
style
.
height
=
f
.
height
:
null
!=
d
.
auto
&&
d
.
auto
||
(
c
.
style
.
height
=
f
.
height
+
"
px
"
),
"
%
"
==
f
.
width
.
slice
(
-
1
)?
c
.
style
.
width
=
f
.
width
:
null
!=
d
.
auto
&&
d
.
auto
||
(
c
.
style
.
width
=
f
.
width
+
"
px
"
),(
"
inline
"
==
c
.
style
.
display
||
""
===
c
.
style
.
display
||
"
none
"
==
c
.
style
.
display
)
&&
(
c
.
style
.
display
=
"
block
"
),
k
(
c
),
"
html
"
==
o
.
renderer
?
c
.
style
.
backgroundColor
=
h
.
background
:(
K
.
vars
.
resizableImages
.
push
(
c
),
j
(
c
)))}
function
g
(
a
){
function
c
(){
var
b
=
null
;
switch
(
i
.
renderer
){
case
"
canvas
"
:
b
=
M
(
k
,
a
);
break
;
case
"
svg
"
:
b
=
N
(
k
,
a
);
break
;
default
:
throw
"
Holder: invalid renderer:
"
+
i
.
renderer
}
return
b
}
var
d
=
null
,
e
=
a
.
mode
,
f
=
a
.
holderSettings
,
g
=
a
.
el
,
i
=
a
.
engineSettings
;
switch
(
i
.
renderer
){
case
"
svg
"
:
if
(
!
K
.
setup
.
supportsSVG
)
return
;
break
;
case
"
canvas
"
:
if
(
!
K
.
setup
.
supportsCanvas
)
return
;
break
;
default
:
return
}
var
j
=
{
width
:
f
.
dimensions
.
width
,
height
:
f
.
dimensions
.
height
,
theme
:
f
.
theme
,
flags
:
f
.
flags
},
k
=
h
(
j
);
if
(
d
=
c
(),
null
==
d
)
throw
"
Holder: couldn't render placeholder
"
;
"
background
"
==
e
?(
g
.
style
.
backgroundImage
=
"
url(
"
+
d
+
"
)
"
,
g
.
style
.
backgroundSize
=
j
.
width
+
"
px
"
+
j
.
height
+
"
px
"
):(
"
img
"
===
g
.
nodeName
.
toLowerCase
()?
p
(
g
,{
src
:
d
}):
"
object
"
===
g
.
nodeName
.
toLowerCase
()
&&
(
p
(
g
,{
data
:
d
}),
p
(
g
,{
type
:
"
image/svg+xml
"
})),
i
.
reRender
&&
b
.
setTimeout
(
function
(){
var
a
=
c
();
if
(
null
==
a
)
throw
"
Holder: couldn't render placeholder
"
;
"
img
"
===
g
.
nodeName
.
toLowerCase
()?
p
(
g
,{
src
:
a
}):
"
object
"
===
g
.
nodeName
.
toLowerCase
()
&&
(
p
(
g
,{
data
:
a
}),
p
(
g
,{
type
:
"
image/svg+xml
"
}))},
100
)),
p
(
g
,{
"
data-holder-rendered
"
:
!
0
})}
function
h
(
a
){
function
b
(
a
,
b
,
c
,
d
){
b
.
width
=
c
,
b
.
height
=
d
,
a
.
width
=
Math
.
max
(
a
.
width
,
b
.
width
),
a
.
height
+=
b
.
height
,
a
.
add
(
b
)}
var
c
=
K
.
defaults
.
size
;
switch
(
parseFloat
(
a
.
theme
.
size
)?
c
=
a
.
theme
.
size
:
parseFloat
(
a
.
flags
.
size
)
&&
(
c
=
a
.
flags
.
size
),
a
.
font
=
{
family
:
a
.
theme
.
font
?
a
.
theme
.
font
:
"
Arial, Helvetica, Open Sans, sans-serif
"
,
size
:
i
(
a
.
width
,
a
.
height
,
c
),
units
:
a
.
theme
.
units
?
a
.
theme
.
units
:
K
.
defaults
.
units
,
weight
:
a
.
theme
.
fontweight
?
a
.
theme
.
fontweight
:
"
bold
"
},
a
.
text
=
a
.
theme
.
text
?
a
.
theme
.
text
:
Math
.
floor
(
a
.
width
)
+
"
x
"
+
Math
.
floor
(
a
.
height
),
a
.
flags
.
textmode
){
case
"
literal
"
:
a
.
text
=
a
.
flags
.
dimensions
.
width
+
"
x
"
+
a
.
flags
.
dimensions
.
height
;
break
;
case
"
exact
"
:
if
(
!
a
.
flags
.
exactDimensions
)
break
;
a
.
text
=
Math
.
floor
(
a
.
flags
.
exactDimensions
.
width
)
+
"
x
"
+
Math
.
floor
(
a
.
flags
.
exactDimensions
.
height
)}
var
d
=
new
w
({
width
:
a
.
width
,
height
:
a
.
height
}),
e
=
d
.
Shape
,
f
=
new
e
.
Rect
(
"
holderBg
"
,{
fill
:
a
.
theme
.
background
});
f
.
resize
(
a
.
width
,
a
.
height
),
d
.
root
.
add
(
f
);
var
g
=
new
e
.
Group
(
"
holderTextGroup
"
,{
text
:
a
.
text
,
align
:
"
center
"
,
font
:
a
.
font
,
fill
:
a
.
theme
.
foreground
});
g
.
moveTo
(
null
,
null
,
1
),
d
.
root
.
add
(
g
);
var
h
=
g
.
textPositionData
=
L
(
d
);
if
(
!
h
)
throw
"
Holder: staging fallback not supported yet.
"
;
g
.
properties
.
leading
=
h
.
boundingBox
.
height
;
var
j
=
null
,
k
=
null
;
if
(
h
.
lineCount
>
1
){
var
l
=
0
,
m
=
0
,
n
=
a
.
width
*
K
.
setup
.
lineWrapRatio
,
o
=
0
;
k
=
new
e
.
Group
(
"
line
"
+
o
);
for
(
var
p
=
0
;
p
<
h
.
words
.
length
;
p
++
){
var
q
=
h
.
words
[
p
];
j
=
new
e
.
Text
(
q
.
text
);
var
r
=
"
\\
n
"
==
q
.
text
;(
l
+
q
.
width
>=
n
||
r
===!
0
)
&&
(
b
(
g
,
k
,
l
,
g
.
properties
.
leading
),
l
=
0
,
m
+=
g
.
properties
.
leading
,
o
+=
1
,
k
=
new
e
.
Group
(
"
line
"
+
o
),
k
.
y
=
m
),
r
!==!
0
&&
(
j
.
moveTo
(
l
,
0
),
l
+=
h
.
spaceWidth
+
q
.
width
,
k
.
add
(
j
))}
b
(
g
,
k
,
l
,
g
.
properties
.
leading
);
for
(
var
s
in
g
.
children
)
k
=
g
.
children
[
s
],
k
.
moveTo
((
g
.
width
-
k
.
width
)
/
2
,
null
,
null
);
g
.
moveTo
((
a
.
width
-
g
.
width
)
/
2
,(
a
.
height
-
g
.
height
)
/
2
,
null
),(
a
.
height
-
g
.
height
)
/
2
<
0
&&
g
.
moveTo
(
null
,
0
,
null
)}
else
j
=
new
e
.
Text
(
a
.
text
),
k
=
new
e
.
Group
(
"
line0
"
),
k
.
add
(
j
),
g
.
add
(
k
),
g
.
moveTo
((
a
.
width
-
h
.
boundingBox
.
width
)
/
2
,(
a
.
height
-
h
.
boundingBox
.
height
)
/
2
,
null
);
return
d
}
function
i
(
a
,
b
,
c
){
var
d
=
parseInt
(
a
,
10
),
e
=
parseInt
(
b
,
10
),
f
=
Math
.
max
(
d
,
e
),
g
=
Math
.
min
(
d
,
e
),
h
=
.
8
*
Math
.
min
(
g
,
f
*
K
.
defaults
.
scale
);
return
Math
.
round
(
Math
.
max
(
c
,
h
))}
function
j
(
a
){
var
b
;
b
=
null
==
a
||
null
==
a
.
nodeType
?
K
.
vars
.
resizableImages
:[
a
];
for
(
var
c
=
0
,
d
=
b
.
length
;
d
>
c
;
c
++
){
var
e
=
b
[
c
];
if
(
e
.
holderData
){
var
f
=
e
.
holderData
.
flags
,
h
=
E
(
e
);
if
(
h
){
if
(
!
e
.
holderData
.
resizeUpdate
)
continue
;
if
(
f
.
fluid
&&
f
.
auto
){
var
i
=
e
.
holderData
.
fluidConfig
;
switch
(
i
.
mode
){
case
"
width
"
:
h
.
height
=
h
.
width
/
i
.
ratio
;
break
;
case
"
height
"
:
h
.
width
=
h
.
height
*
i
.
ratio
}}
var
j
=
{
mode
:
"
image
"
,
holderSettings
:{
dimensions
:
h
,
theme
:
f
.
theme
,
flags
:
f
},
el
:
e
,
engineSettings
:
e
.
holderData
.
engineSettings
};
"
exact
"
==
f
.
textmode
&&
(
f
.
exactDimensions
=
h
,
j
.
holderSettings
.
dimensions
=
f
.
dimensions
),
g
(
j
)}
else
n
(
e
)}}}
function
k
(
a
){
if
(
a
.
holderData
){
var
b
=
E
(
a
);
if
(
b
){
var
c
=
a
.
holderData
.
flags
,
d
=
{
fluidHeight
:
"
%
"
==
c
.
dimensions
.
height
.
slice
(
-
1
),
fluidWidth
:
"
%
"
==
c
.
dimensions
.
width
.
slice
(
-
1
),
mode
:
null
,
initialDimensions
:
b
};
d
.
fluidWidth
&&!
d
.
fluidHeight
?(
d
.
mode
=
"
width
"
,
d
.
ratio
=
d
.
initialDimensions
.
width
/
parseFloat
(
c
.
dimensions
.
height
)):
!
d
.
fluidWidth
&&
d
.
fluidHeight
&&
(
d
.
mode
=
"
height
"
,
d
.
ratio
=
parseFloat
(
c
.
dimensions
.
width
)
/
d
.
initialDimensions
.
height
),
a
.
holderData
.
fluidConfig
=
d
}
else
n
(
a
)}}
function
l
(){
for
(
var
a
,
c
=
[],
d
=
Object
.
keys
(
K
.
vars
.
invisibleImages
),
e
=
0
,
f
=
d
.
length
;
f
>
e
;
e
++
)
a
=
K
.
vars
.
invisibleImages
[
d
[
e
]],
E
(
a
)
&&
"
img
"
==
a
.
nodeName
.
toLowerCase
()
&&
(
c
.
push
(
a
),
delete
K
.
vars
.
invisibleImages
[
d
[
e
]]);
c
.
length
&&
J
.
run
({
images
:
c
}),
b
.
requestAnimationFrame
(
l
)}
function
m
(){
K
.
vars
.
visibilityCheckStarted
||
(
b
.
requestAnimationFrame
(
l
),
K
.
vars
.
visibilityCheckStarted
=!
0
)}
function
n
(
a
){
a
.
holderData
.
invisibleId
||
(
K
.
vars
.
invisibleId
+=
1
,
K
.
vars
.
invisibleImages
[
"
i
"
+
K
.
vars
.
invisibleId
]
=
a
,
a
.
holderData
.
invisibleId
=
K
.
vars
.
invisibleId
)}
function
o
(
a
,
b
){
return
null
==
b
?
document
.
createElement
(
a
):
document
.
createElementNS
(
b
,
a
)}
function
p
(
a
,
b
){
for
(
var
c
in
b
)
a
.
setAttribute
(
c
,
b
[
c
])}
function
q
(
a
,
b
,
c
){
var
d
,
e
;
null
==
a
?(
a
=
o
(
"
svg
"
,
F
),
d
=
o
(
"
defs
"
,
F
),
e
=
o
(
"
style
"
,
F
),
p
(
e
,{
type
:
"
text/css
"
}),
d
.
appendChild
(
e
),
a
.
appendChild
(
d
)):
e
=
a
.
querySelector
(
"
style
"
),
a
.
webkitMatchesSelector
&&
a
.
setAttribute
(
"
xmlns
"
,
F
);
for
(
var
f
=
0
;
f
<
a
.
childNodes
.
length
;
f
++
)
a
.
childNodes
[
f
].
nodeType
===
G
&&
a
.
removeChild
(
a
.
childNodes
[
f
]);
for
(;
e
.
childNodes
.
length
;)
e
.
removeChild
(
e
.
childNodes
[
0
]);
return
p
(
a
,{
width
:
b
,
height
:
c
,
viewBox
:
"
0 0
"
+
b
+
"
"
+
c
,
preserveAspectRatio
:
"
none
"
}),
a
}
function
r
(
a
,
c
){
if
(
b
.
XMLSerializer
){
var
d
=
new
XMLSerializer
,
e
=
""
,
f
=
c
.
stylesheets
;
if
(
c
.
svgXMLStylesheet
){
for
(
var
g
=
s
(),
h
=
f
.
length
-
1
;
h
>=
0
;
h
--
){
var
i
=
g
.
createProcessingInstruction
(
"
xml-stylesheet
"
,
'
href="
'
+
f
[
h
]
+
'
" rel="stylesheet"
'
);
g
.
insertBefore
(
i
,
g
.
firstChild
)}
var
j
=
g
.
createProcessingInstruction
(
"
xml
"
,
'
version="1.0" encoding="UTF-8" standalone="yes"
'
);
g
.
insertBefore
(
j
,
g
.
firstChild
),
g
.
removeChild
(
g
.
documentElement
),
e
=
d
.
serializeToString
(
g
)}
var
k
=
d
.
serializeToString
(
a
);
return
k
=
k
.
replace
(
/
\&
amp;
(\#[
0-9
]{2,}\;)
/g
,
"
&$1
"
),
e
+
k
}}
function
s
(){
return
b
.
DOMParser
?(
new
DOMParser
).
parseFromString
(
"
<xml />
"
,
"
application/xml
"
):
void
0
}
function
t
(
a
){
K
.
vars
.
debounceTimer
||
a
.
call
(
this
),
K
.
vars
.
debounceTimer
&&
b
.
clearTimeout
(
K
.
vars
.
debounceTimer
),
K
.
vars
.
debounceTimer
=
b
.
setTimeout
(
function
(){
K
.
vars
.
debounceTimer
=
null
,
a
.
call
(
this
)},
K
.
setup
.
debounce
)}
function
u
(){
t
(
function
(){
j
(
null
)})}
var
v
=
c
(
1
),
w
=
c
(
2
),
x
=
c
(
3
),
y
=
x
.
extend
,
z
=
x
.
cssProps
,
A
=
x
.
encodeHtmlEntity
,
B
=
x
.
decodeHtmlEntity
,
C
=
x
.
imageExists
,
D
=
x
.
getNodeArray
,
E
=
x
.
dimensionCheck
,
F
=
"
http://www.w3.org/2000/svg
"
,
G
=
8
,
H
=
"
2.6.0
"
,
I
=
"
\n
Created with Holder.js
"
+
H
+
"
.
\n
Learn more at http://holderjs.com
\n
(c) 2012-2015 Ivan Malopinsky - http://imsky.co
\n
"
,
J
=
{
version
:
H
,
addTheme
:
function
(
a
,
b
){
return
null
!=
a
&&
null
!=
b
&&
(
K
.
settings
.
themes
[
a
]
=
b
),
delete
K
.
vars
.
cache
.
themeKeys
,
this
},
addImage
:
function
(
a
,
b
){
var
c
=
document
.
querySelectorAll
(
b
);
if
(
c
.
length
)
for
(
var
d
=
0
,
e
=
c
.
length
;
e
>
d
;
d
++
){
var
f
=
o
(
"
img
"
),
g
=
{};
g
[
K
.
vars
.
dataAttr
]
=
a
,
p
(
f
,
g
),
c
[
d
].
appendChild
(
f
)}
return
this
},
setResizeUpdate
:
function
(
a
,
b
){
a
.
holderData
&&
(
a
.
holderData
.
resizeUpdate
=!!
b
,
a
.
holderData
.
resizeUpdate
&&
j
(
a
))},
run
:
function
(
a
){
a
=
a
||
{};
var
c
=
{},
g
=
y
(
K
.
settings
,
a
);
K
.
vars
.
preempted
=!
0
,
K
.
vars
.
dataAttr
=
g
.
dataAttr
||
K
.
vars
.
dataAttr
,
c
.
renderer
=
g
.
renderer
?
g
.
renderer
:
K
.
setup
.
renderer
,
-
1
===
K
.
setup
.
renderers
.
join
(
"
,
"
).
indexOf
(
c
.
renderer
)
&&
(
c
.
renderer
=
K
.
setup
.
supportsSVG
?
"
svg
"
:
K
.
setup
.
supportsCanvas
?
"
canvas
"
:
"
html
"
);
var
h
=
D
(
g
.
images
),
i
=
D
(
g
.
bgnodes
),
j
=
D
(
g
.
stylenodes
),
k
=
D
(
g
.
objects
);
c
.
stylesheets
=
[],
c
.
svgXMLStylesheet
=!
0
,
c
.
noFontFallback
=
g
.
noFontFallback
?
g
.
noFontFallback
:
!
1
;
for
(
var
l
=
0
;
l
<
j
.
length
;
l
++
){
var
m
=
j
[
l
];
if
(
m
.
attributes
.
rel
&&
m
.
attributes
.
href
&&
"
stylesheet
"
==
m
.
attributes
.
rel
.
value
){
var
n
=
m
.
attributes
.
href
.
value
,
p
=
o
(
"
a
"
);
p
.
href
=
n
;
var
q
=
p
.
protocol
+
"
//
"
+
p
.
host
+
p
.
pathname
+
p
.
search
;
c
.
stylesheets
.
push
(
q
)}}
for
(
l
=
0
;
l
<
i
.
length
;
l
++
)
if
(
b
.
getComputedStyle
){
var
r
=
b
.
getComputedStyle
(
i
[
l
],
null
).
getPropertyValue
(
"
background-image
"
),
s
=
i
[
l
].
getAttribute
(
"
data-background-src
"
),
t
=
null
;
t
=
null
==
s
?
r
:
s
;
var
u
=
null
,
v
=
"
?
"
+
g
.
domain
+
"
/
"
;
if
(
0
===
t
.
indexOf
(
v
))
u
=
t
.
slice
(
1
);
else
if
(
-
1
!=
t
.
indexOf
(
v
)){
var
w
=
t
.
substr
(
t
.
indexOf
(
v
)).
slice
(
1
),
x
=
w
.
match
(
/
([^\"]
*
)
"
?\)
/
);
null
!=
x
&&
(
u
=
x
[
1
])}
if
(
null
!=
u
){
var
z
=
e
(
u
,
g
);
z
&&
f
({
mode
:
"
background
"
,
el
:
i
[
l
],
flags
:
z
,
engineSettings
:
c
})}}
for
(
l
=
0
;
l
<
k
.
length
;
l
++
){
var
A
=
k
[
l
],
B
=
{};
try
{
B
.
data
=
A
.
getAttribute
(
"
data
"
),
B
.
dataSrc
=
A
.
getAttribute
(
K
.
vars
.
dataAttr
)}
catch
(
E
){}
var
F
=
null
!=
B
.
data
&&
0
===
B
.
data
.
indexOf
(
g
.
domain
),
G
=
null
!=
B
.
dataSrc
&&
0
===
B
.
dataSrc
.
indexOf
(
g
.
domain
);
F
?
d
(
g
,
c
,
B
.
data
,
A
):
G
&&
d
(
g
,
c
,
B
.
dataSrc
,
A
)}
for
(
l
=
0
;
l
<
h
.
length
;
l
++
){
var
H
=
h
[
l
],
I
=
{};
try
{
I
.
src
=
H
.
getAttribute
(
"
src
"
),
I
.
dataSrc
=
H
.
getAttribute
(
K
.
vars
.
dataAttr
),
I
.
rendered
=
H
.
getAttribute
(
"
data-holder-rendered
"
)}
catch
(
E
){}
var
J
=
null
!=
I
.
src
,
L
=
null
!=
I
.
dataSrc
&&
0
===
I
.
dataSrc
.
indexOf
(
g
.
domain
),
M
=
null
!=
I
.
rendered
&&
"
true
"
==
I
.
rendered
;
J
?
0
===
I
.
src
.
indexOf
(
g
.
domain
)?
d
(
g
,
c
,
I
.
src
,
H
):
L
&&
(
M
?
d
(
g
,
c
,
I
.
dataSrc
,
H
):
!
function
(
a
,
b
,
c
,
e
,
f
){
C
(
a
,
function
(
a
){
a
||
d
(
b
,
c
,
e
,
f
)})}(
I
.
src
,
g
,
c
,
I
.
dataSrc
,
H
)):
L
&&
d
(
g
,
c
,
I
.
dataSrc
,
H
)}
return
this
}},
K
=
{
settings
:{
domain
:
"
holder.js
"
,
images
:
"
img
"
,
objects
:
"
object
"
,
bgnodes
:
"
body .holderjs
"
,
stylenodes
:
"
head link.holderjs
"
,
stylesheets
:[],
themes
:{
gray
:{
background
:
"
#EEEEEE
"
,
foreground
:
"
#AAAAAA
"
},
social
:{
background
:
"
#3a5a97
"
,
foreground
:
"
#FFFFFF
"
},
industrial
:{
background
:
"
#434A52
"
,
foreground
:
"
#C2F200
"
},
sky
:{
background
:
"
#0D8FDB
"
,
foreground
:
"
#FFFFFF
"
},
vine
:{
background
:
"
#39DBAC
"
,
foreground
:
"
#1E292C
"
},
lava
:{
background
:
"
#F8591A
"
,
foreground
:
"
#1C2846
"
}}},
defaults
:{
size
:
10
,
units
:
"
pt
"
,
scale
:
1
/
16
},
flags
:{
dimensions
:{
regex
:
/^
(\d
+
)
x
(\d
+
)
$/
,
output
:
function
(
a
){
var
b
=
this
.
regex
.
exec
(
a
);
return
{
width
:
+
b
[
1
],
height
:
+
b
[
2
]}}},
fluid
:{
regex
:
/^
([
0-9
]
+%
?)
x
([
0-9
]
+%
?)
$/
,
output
:
function
(
a
){
var
b
=
this
.
regex
.
exec
(
a
);
return
{
width
:
b
[
1
],
height
:
b
[
2
]}}},
colors
:{
regex
:
/
(?:
#|
\^)([
0-9a-f
]{3,})\:(?:
#|
\^)([
0-9a-f
]{3,})
/i
,
output
:
function
(
a
){
var
b
=
this
.
regex
.
exec
(
a
);
return
{
foreground
:
"
#
"
+
b
[
2
],
background
:
"
#
"
+
b
[
1
]}}},
text
:{
regex
:
/text
\:(
.*
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
].
replace
(
"
\\
/
"
,
"
/
"
)}},
font
:{
regex
:
/font
\:(
.*
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
]}},
auto
:{
regex
:
/^auto$/
},
textmode
:{
regex
:
/textmode
\:(
.*
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
]}},
random
:{
regex
:
/^random$/
},
size
:{
regex
:
/size
\:(\d
+
)
/
,
output
:
function
(
a
){
return
this
.
regex
.
exec
(
a
)[
1
]}}}},
L
=
function
(){
var
a
=
null
,
b
=
null
,
c
=
null
;
return
function
(
d
){
var
e
=
d
.
root
;
if
(
K
.
setup
.
supportsSVG
){
var
f
=!
1
,
g
=
function
(
a
){
return
document
.
createTextNode
(
a
)};(
null
==
a
||
a
.
parentNode
!==
document
.
body
)
&&
(
f
=!
0
),
a
=
q
(
a
,
e
.
properties
.
width
,
e
.
properties
.
height
),
a
.
style
.
display
=
"
block
"
,
f
&&
(
b
=
o
(
"
text
"
,
F
),
c
=
g
(
null
),
p
(
b
,{
x
:
0
}),
b
.
appendChild
(
c
),
a
.
appendChild
(
b
),
document
.
body
.
appendChild
(
a
),
a
.
style
.
visibility
=
"
hidden
"
,
a
.
style
.
position
=
"
absolute
"
,
a
.
style
.
top
=
"
-100%
"
,
a
.
style
.
left
=
"
-100%
"
);
var
h
=
e
.
children
.
holderTextGroup
,
i
=
h
.
properties
;
p
(
b
,{
y
:
i
.
font
.
size
,
style
:
z
({
"
font-weight
"
:
i
.
font
.
weight
,
"
font-size
"
:
i
.
font
.
size
+
i
.
font
.
units
,
"
font-family
"
:
i
.
font
.
family
})}),
c
.
nodeValue
=
i
.
text
;
var
j
=
b
.
getBBox
(),
k
=
Math
.
ceil
(
j
.
width
/
(
e
.
properties
.
width
*
K
.
setup
.
lineWrapRatio
)),
l
=
i
.
text
.
split
(
"
"
),
m
=
i
.
text
.
match
(
/
\\
n/g
);
k
+=
null
==
m
?
0
:
m
.
length
,
c
.
nodeValue
=
i
.
text
.
replace
(
/
[
]
+/g
,
""
);
var
n
=
b
.
getComputedTextLength
(),
r
=
j
.
width
-
n
,
s
=
Math
.
round
(
r
/
Math
.
max
(
1
,
l
.
length
-
1
)),
t
=
[];
if
(
k
>
1
){
c
.
nodeValue
=
""
;
for
(
var
u
=
0
;
u
<
l
.
length
;
u
++
)
if
(
0
!==
l
[
u
].
length
){
c
.
nodeValue
=
B
(
l
[
u
]);
var
v
=
b
.
getBBox
();
t
.
push
({
text
:
l
[
u
],
width
:
v
.
width
})}}
return
a
.
style
.
display
=
"
none
"
,{
spaceWidth
:
s
,
lineCount
:
k
,
boundingBox
:
j
,
words
:
t
}}
return
!
1
}}(),
M
=
function
(){
var
a
=
o
(
"
canvas
"
),
b
=
null
;
return
function
(
c
){
null
==
b
&&
(
b
=
a
.
getContext
(
"
2d
"
));
var
d
=
c
.
root
;
a
.
width
=
K
.
dpr
(
d
.
properties
.
width
),
a
.
height
=
K
.
dpr
(
d
.
properties
.
height
),
b
.
textBaseline
=
"
middle
"
,
b
.
fillStyle
=
d
.
children
.
holderBg
.
properties
.
fill
,
b
.
fillRect
(
0
,
0
,
K
.
dpr
(
d
.
children
.
holderBg
.
width
),
K
.
dpr
(
d
.
children
.
holderBg
.
height
));
var
e
=
d
.
children
.
holderTextGroup
;
e
.
properties
,
b
.
font
=
e
.
properties
.
font
.
weight
+
"
"
+
K
.
dpr
(
e
.
properties
.
font
.
size
)
+
e
.
properties
.
font
.
units
+
"
"
+
e
.
properties
.
font
.
family
+
"
, monospace
"
,
b
.
fillStyle
=
e
.
properties
.
fill
;
for
(
var
f
in
e
.
children
){
var
g
=
e
.
children
[
f
];
for
(
var
h
in
g
.
children
){
var
i
=
g
.
children
[
h
],
j
=
K
.
dpr
(
e
.
x
+
g
.
x
+
i
.
x
),
k
=
K
.
dpr
(
e
.
y
+
g
.
y
+
i
.
y
+
e
.
properties
.
leading
/
2
);
b
.
fillText
(
i
.
properties
.
text
,
j
,
k
)}}
return
a
.
toDataURL
(
"
image/png
"
)}}(),
N
=
function
(){
if
(
b
.
XMLSerializer
){
var
a
=
s
(),
c
=
q
(
null
,
0
,
0
),
d
=
o
(
"
rect
"
,
F
);
return
c
.
appendChild
(
d
),
function
(
b
,
e
){
var
f
=
b
.
root
;
q
(
c
,
f
.
properties
.
width
,
f
.
properties
.
height
);
for
(
var
g
=
c
.
querySelectorAll
(
"
g
"
),
h
=
0
;
h
<
g
.
length
;
h
++
)
g
[
h
].
parentNode
.
removeChild
(
g
[
h
]);
var
i
=
e
.
holderSettings
.
flags
.
holderURL
,
j
=
"
holder_
"
+
(
Number
(
new
Date
)
+
32768
+
(
0
|
32768
*
Math
.
random
())).
toString
(
16
),
k
=
o
(
"
g
"
,
F
),
l
=
f
.
children
.
holderTextGroup
,
m
=
l
.
properties
,
n
=
o
(
"
g
"
,
F
),
s
=
l
.
textPositionData
,
t
=
"
#
"
+
j
+
"
text {
"
+
z
({
fill
:
m
.
fill
,
"
font-weight
"
:
m
.
font
.
weight
,
"
font-family
"
:
m
.
font
.
family
+
"
, monospace
"
,
"
font-size
"
:
m
.
font
.
size
+
m
.
font
.
units
})
+
"
}
"
,
u
=
a
.
createComment
(
"
\n
Source URL:
"
+
i
+
I
),
v
=
a
.
createCDATASection
(
t
),
w
=
c
.
querySelector
(
"
style
"
);
p
(
k
,{
id
:
j
}),
c
.
insertBefore
(
u
,
c
.
firstChild
),
w
.
appendChild
(
v
),
k
.
appendChild
(
d
),
k
.
appendChild
(
n
),
c
.
appendChild
(
k
),
p
(
d
,{
width
:
f
.
children
.
holderBg
.
width
,
height
:
f
.
children
.
holderBg
.
height
,
fill
:
f
.
children
.
holderBg
.
properties
.
fill
}),
l
.
y
+=
.
8
*
s
.
boundingBox
.
height
;
for
(
var
x
in
l
.
children
){
var
y
=
l
.
children
[
x
];
for
(
var
A
in
y
.
children
){
var
B
=
y
.
children
[
A
],
C
=
l
.
x
+
y
.
x
+
B
.
x
,
D
=
l
.
y
+
y
.
y
+
B
.
y
,
E
=
o
(
"
text
"
,
F
),
G
=
document
.
createTextNode
(
null
);
p
(
E
,{
x
:
C
,
y
:
D
}),
G
.
nodeValue
=
B
.
properties
.
text
,
E
.
appendChild
(
G
),
n
.
appendChild
(
E
)}}
var
H
=
"
data:image/svg+xml;base64,
"
+
btoa
(
unescape
(
encodeURIComponent
(
r
(
c
,
e
.
engineSettings
))));
return
H
}}}();
for
(
var
O
in
K
.
flags
)
K
.
flags
.
hasOwnProperty
(
O
)
&&
(
K
.
flags
[
O
].
match
=
function
(
a
){
return
a
.
match
(
this
.
regex
)});
K
.
setup
=
{
renderer
:
"
html
"
,
debounce
:
100
,
ratio
:
1
,
supportsCanvas
:
!
1
,
supportsSVG
:
!
1
,
lineWrapRatio
:.
9
,
renderers
:[
"
html
"
,
"
canvas
"
,
"
svg
"
]},
K
.
dpr
=
function
(
a
){
return
a
*
K
.
setup
.
ratio
},
K
.
vars
=
{
preempted
:
!
1
,
resizableImages
:[],
invisibleImages
:{},
invisibleId
:
0
,
visibilityCheckStarted
:
!
1
,
debounceTimer
:
null
,
cache
:{},
dataAttr
:
"
data-src
"
},
function
(){
var
a
=
1
,
c
=
1
,
d
=
o
(
"
canvas
"
),
e
=
null
;
d
.
getContext
&&-
1
!=
d
.
toDataURL
(
"
image/png
"
).
indexOf
(
"
data:image/png
"
)
&&
(
K
.
setup
.
renderer
=
"
canvas
"
,
e
=
d
.
getContext
(
"
2d
"
),
K
.
setup
.
supportsCanvas
=!
0
),
K
.
setup
.
supportsCanvas
&&
(
a
=
b
.
devicePixelRatio
||
1
,
c
=
e
.
webkitBackingStorePixelRatio
||
e
.
mozBackingStorePixelRatio
||
e
.
msBackingStorePixelRatio
||
e
.
oBackingStorePixelRatio
||
e
.
backingStorePixelRatio
||
1
),
K
.
setup
.
ratio
=
a
/
c
,
document
.
createElementNS
&&
document
.
createElementNS
(
F
,
"
svg
"
).
createSVGRect
&&
(
K
.
setup
.
renderer
=
"
svg
"
,
K
.
setup
.
supportsSVG
=!
0
)}(),
m
(),
v
&&
v
(
function
(){
K
.
vars
.
preempted
||
J
.
run
(),
b
.
addEventListener
?(
b
.
addEventListener
(
"
resize
"
,
u
,
!
1
),
b
.
addEventListener
(
"
orientationchange
"
,
u
,
!
1
)):
b
.
attachEvent
(
"
onresize
"
,
u
),
"
object
"
==
typeof
b
.
Turbolinks
&&
b
.
document
.
addEventListener
(
"
page:change
"
,
function
(){
J
.
run
()})}),
a
.
exports
=
J
}).
call
(
b
,
function
(){
return
this
}())},
function
(
a
){
function
b
(
a
){
function
b
(
a
){
if
(
!
v
){
if
(
!
g
.
body
)
return
e
(
b
);
for
(
v
=!
0
;
a
=
w
.
shift
();)
e
(
a
)}}
function
c
(
a
){(
t
||
a
.
type
===
i
||
g
[
m
]
===
l
)
&&
(
d
(),
b
())}
function
d
(){
t
?(
g
[
s
](
q
,
c
,
j
),
a
[
s
](
i
,
c
,
j
)):(
g
[
o
](
r
,
c
),
a
[
o
](
k
,
c
))}
function
e
(
a
,
b
){
setTimeout
(
a
,
+
b
>=
0
?
b
:
1
)}
function
f
(
a
){
v
?
e
(
a
):
w
.
push
(
a
)}
null
==
document
.
readyState
&&
document
.
addEventListener
&&
(
document
.
addEventListener
(
"
DOMContentLoaded
"
,
function
y
(){
document
.
removeEventListener
(
"
DOMContentLoaded
"
,
y
,
!
1
),
document
.
readyState
=
"
complete
"
},
!
1
),
document
.
readyState
=
"
loading
"
);
var
g
=
a
.
document
,
h
=
g
.
documentElement
,
i
=
"
load
"
,
j
=!
1
,
k
=
"
on
"
+
i
,
l
=
"
complete
"
,
m
=
"
readyState
"
,
n
=
"
attachEvent
"
,
o
=
"
detachEvent
"
,
p
=
"
addEventListener
"
,
q
=
"
DOMContentLoaded
"
,
r
=
"
onreadystatechange
"
,
s
=
"
removeEventListener
"
,
t
=
p
in
g
,
u
=
j
,
v
=
j
,
w
=
[];
if
(
g
[
m
]
===
l
)
e
(
b
);
else
if
(
t
)
g
[
p
](
q
,
c
,
j
),
a
[
p
](
i
,
c
,
j
);
else
{
g
[
n
](
r
,
c
),
a
[
n
](
k
,
c
);
try
{
u
=
null
==
a
.
frameElement
&&
h
}
catch
(
x
){}
u
&&
u
.
doScroll
&&!
function
z
(){
if
(
!
v
){
try
{
u
.
doScroll
(
"
left
"
)}
catch
(
a
){
return
e
(
z
,
50
)}
d
(),
b
()}}()}
return
f
.
version
=
"
1.4.0
"
,
f
.
isReady
=
function
(){
return
v
},
f
}
a
.
exports
=
"
undefined
"
!=
typeof
window
&&
b
(
window
)},
function
(
a
,
b
,
c
){
var
d
=
c
(
4
),
e
=
function
(
a
){
function
b
(
a
,
b
){
for
(
var
c
in
b
)
a
[
c
]
=
b
[
c
];
return
a
}
var
c
=
1
,
e
=
d
.
defclass
({
constructor
:
function
(
a
){
c
++
,
this
.
parent
=
null
,
this
.
children
=
{},
this
.
id
=
c
,
this
.
name
=
"
n
"
+
c
,
null
!=
a
&&
(
this
.
name
=
a
),
this
.
x
=
0
,
this
.
y
=
0
,
this
.
z
=
0
,
this
.
width
=
0
,
this
.
height
=
0
},
resize
:
function
(
a
,
b
){
null
!=
a
&&
(
this
.
width
=
a
),
null
!=
b
&&
(
this
.
height
=
b
)},
moveTo
:
function
(
a
,
b
,
c
){
this
.
x
=
null
!=
a
?
a
:
this
.
x
,
this
.
y
=
null
!=
b
?
b
:
this
.
y
,
this
.
z
=
null
!=
c
?
c
:
this
.
z
},
add
:
function
(
a
){
var
b
=
a
.
name
;
if
(
null
!=
this
.
children
[
b
])
throw
"
SceneGraph: child with that name already exists:
"
+
b
;
this
.
children
[
b
]
=
a
,
a
.
parent
=
this
}}),
f
=
d
(
e
,
function
(
b
){
this
.
constructor
=
function
(){
b
.
constructor
.
call
(
this
,
"
root
"
),
this
.
properties
=
a
}}),
g
=
d
(
e
,
function
(
a
){
function
c
(
c
,
d
){
if
(
a
.
constructor
.
call
(
this
,
c
),
this
.
properties
=
{
fill
:
"
#000
"
},
null
!=
d
)
b
(
this
.
properties
,
d
);
else
if
(
null
!=
c
&&
"
string
"
!=
typeof
c
)
throw
"
SceneGraph: invalid node name
"
}
this
.
Group
=
d
.
extend
(
this
,{
constructor
:
c
,
type
:
"
group
"
}),
this
.
Rect
=
d
.
extend
(
this
,{
constructor
:
c
,
type
:
"
rect
"
}),
this
.
Text
=
d
.
extend
(
this
,{
constructor
:
function
(
a
){
c
.
call
(
this
),
this
.
properties
.
text
=
a
},
type
:
"
text
"
})}),
h
=
new
f
;
return
this
.
Shape
=
g
,
this
.
root
=
h
,
this
};
a
.
exports
=
e
},
function
(
a
,
b
){(
function
(
a
){
b
.
extend
=
function
(
a
,
b
){
var
c
=
{};
for
(
var
d
in
a
)
a
.
hasOwnProperty
(
d
)
&&
(
c
[
d
]
=
a
[
d
]);
if
(
null
!=
b
)
for
(
var
e
in
b
)
b
.
hasOwnProperty
(
e
)
&&
(
c
[
e
]
=
b
[
e
]);
return
c
},
b
.
cssProps
=
function
(
a
){
var
b
=
[];
for
(
var
c
in
a
)
a
.
hasOwnProperty
(
c
)
&&
b
.
push
(
c
+
"
:
"
+
a
[
c
]);
return
b
.
join
(
"
;
"
)},
b
.
encodeHtmlEntity
=
function
(
a
){
for
(
var
b
=
[],
c
=
0
,
d
=
a
.
length
-
1
;
d
>=
0
;
d
--
)
c
=
a
.
charCodeAt
(
d
),
b
.
unshift
(
c
>
128
?[
"
&#
"
,
c
,
"
;
"
].
join
(
""
):
a
[
d
]);
return
b
.
join
(
""
)},
b
.
getNodeArray
=
function
(
b
){
var
c
=
null
;
return
"
string
"
==
typeof
b
?
c
=
document
.
querySelectorAll
(
b
):
a
.
NodeList
&&
b
instanceof
a
.
NodeList
?
c
=
b
:
a
.
Node
&&
b
instanceof
a
.
Node
?
c
=
[
b
]:
a
.
HTMLCollection
&&
b
instanceof
a
.
HTMLCollection
?
c
=
b
:
b
instanceof
Array
?
c
=
b
:
null
===
b
&&
(
c
=
[]),
c
},
b
.
imageExists
=
function
(
a
,
b
){
var
c
=
new
Image
;
c
.
onerror
=
function
(){
b
.
call
(
this
,
!
1
)},
c
.
onload
=
function
(){
b
.
call
(
this
,
!
0
)},
c
.
src
=
a
},
b
.
decodeHtmlEntity
=
function
(
a
){
return
a
.
replace
(
/&#
(\d
+
)
;/g
,
function
(
a
,
b
){
return
String
.
fromCharCode
(
b
)})},
b
.
dimensionCheck
=
function
(
a
){
var
b
=
{
height
:
a
.
clientHeight
,
width
:
a
.
clientWidth
};
return
b
.
height
&&
b
.
width
?
b
:
!
1
}}).
call
(
b
,
function
(){
return
this
}())},
function
(
a
){
var
b
=
function
(){},
c
=
Array
.
prototype
.
slice
,
d
=
function
(
a
,
d
){
var
e
=
b
.
prototype
=
"
function
"
==
typeof
a
?
a
.
prototype
:
a
,
f
=
new
b
,
g
=
d
.
apply
(
f
,
c
.
call
(
arguments
,
2
).
concat
(
e
));
if
(
"
object
"
==
typeof
g
)
for
(
var
h
in
g
)
f
[
h
]
=
g
[
h
];
if
(
!
f
.
hasOwnProperty
(
"
constructor
"
))
return
f
;
var
i
=
f
.
constructor
;
return
i
.
prototype
=
f
,
i
};
d
.
defclass
=
function
(
a
){
var
b
=
a
.
constructor
;
return
b
.
prototype
=
a
,
b
},
d
.
extend
=
function
(
a
,
b
){
return
d
(
a
,
function
(
a
){
return
this
.
uber
=
a
,
b
})},
a
.
exports
=
d
}])}
),
/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2009-2014 Jon Rohan, James M. Greene
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment