| 1 |
/* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */ (function () { |
| 2 |
function aa(a, b, c) { |
| 3 |
return a.call.apply(a.bind, arguments); |
| 4 |
} |
| 5 |
function ba(a, b, c) { |
| 6 |
if (!a) throw Error(); |
| 7 |
if (2 < arguments.length) { |
| 8 |
var d = Array.prototype.slice.call(arguments, 2); |
| 9 |
return function () { |
| 10 |
var c = Array.prototype.slice.call(arguments); |
| 11 |
Array.prototype.unshift.apply(c, d); |
| 12 |
return a.apply(b, c); |
| 13 |
}; |
| 14 |
} |
| 15 |
return function () { |
| 16 |
return a.apply(b, arguments); |
| 17 |
}; |
| 18 |
} |
| 19 |
function p(a, b, c) { |
| 20 |
p = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? aa : ba; |
| 21 |
return p.apply(null, arguments); |
| 22 |
} |
| 23 |
var q = |
| 24 |
Date.now || |
| 25 |
function () { |
| 26 |
return +new Date(); |
| 27 |
}; |
| 28 |
function ca(a, b) { |
| 29 |
this.a = a; |
| 30 |
this.o = b || a; |
| 31 |
this.c = this.o.document; |
| 32 |
} |
| 33 |
var da = !!window.FontFace; |
| 34 |
function t(a, b, c, d) { |
| 35 |
b = a.c.createElement(b); |
| 36 |
if (c) for (var e in c) c.hasOwnProperty(e) && ("style" == e ? (b.style.cssText = c[e]) : b.setAttribute(e, c[e])); |
| 37 |
d && b.appendChild(a.c.createTextNode(d)); |
| 38 |
return b; |
| 39 |
} |
| 40 |
function u(a, b, c) { |
| 41 |
a = a.c.getElementsByTagName(b)[0]; |
| 42 |
a || (a = document.documentElement); |
| 43 |
a.insertBefore(c, a.lastChild); |
| 44 |
} |
| 45 |
function v(a) { |
| 46 |
a.parentNode && a.parentNode.removeChild(a); |
| 47 |
} |
| 48 |
function w(a, b, c) { |
| 49 |
b = b || []; |
| 50 |
c = c || []; |
| 51 |
for (var d = a.className.split(/\s+/), e = 0; e < b.length; e += 1) { |
| 52 |
for (var f = !1, g = 0; g < d.length; g += 1) |
| 53 |
if (b[e] === d[g]) { |
| 54 |
f = !0; |
| 55 |
break; |
| 56 |
} |
| 57 |
f || d.push(b[e]); |
| 58 |
} |
| 59 |
b = []; |
| 60 |
for (e = 0; e < d.length; e += 1) { |
| 61 |
f = !1; |
| 62 |
for (g = 0; g < c.length; g += 1) |
| 63 |
if (d[e] === c[g]) { |
| 64 |
f = !0; |
| 65 |
break; |
| 66 |
} |
| 67 |
f || b.push(d[e]); |
| 68 |
} |
| 69 |
a.className = b |
| 70 |
.join(" ") |
| 71 |
.replace(/\s+/g, " ") |
| 72 |
.replace(/^\s+|\s+$/, ""); |
| 73 |
} |
| 74 |
function y(a, b) { |
| 75 |
for (var c = a.className.split(/\s+/), d = 0, e = c.length; d < e; d++) if (c[d] == b) return !0; |
| 76 |
return !1; |
| 77 |
} |
| 78 |
function ea(a) { |
| 79 |
return a.o.location.hostname || a.a.location.hostname; |
| 80 |
} |
| 81 |
function z(a, b, c) { |
| 82 |
function d() { |
| 83 |
m && e && f && (m(g), (m = null)); |
| 84 |
} |
| 85 |
b = t(a, "link", { rel: "stylesheet", href: b, media: "all" }); |
| 86 |
var e = !1, |
| 87 |
f = !0, |
| 88 |
g = null, |
| 89 |
m = c || null; |
| 90 |
da |
| 91 |
? ((b.onload = function () { |
| 92 |
e = !0; |
| 93 |
d(); |
| 94 |
}), |
| 95 |
(b.onerror = function () { |
| 96 |
e = !0; |
| 97 |
g = Error("Stylesheet failed to load"); |
| 98 |
d(); |
| 99 |
})) |
| 100 |
: setTimeout(function () { |
| 101 |
e = !0; |
| 102 |
d(); |
| 103 |
}, 0); |
| 104 |
u(a, "head", b); |
| 105 |
} |
| 106 |
function A(a, b, c, d) { |
| 107 |
var e = a.c.getElementsByTagName("head")[0]; |
| 108 |
if (e) { |
| 109 |
var f = t(a, "script", { src: b }), |
| 110 |
g = !1; |
| 111 |
f.onload = f.onreadystatechange = function () { |
| 112 |
g || (this.readyState && "loaded" != this.readyState && "complete" != this.readyState) || ((g = !0), c && c(null), (f.onload = f.onreadystatechange = null), "HEAD" == f.parentNode.tagName && e.removeChild(f)); |
| 113 |
}; |
| 114 |
e.appendChild(f); |
| 115 |
setTimeout(function () { |
| 116 |
g || ((g = !0), c && c(Error("Script load timeout"))); |
| 117 |
}, d || 5e3); |
| 118 |
return f; |
| 119 |
} |
| 120 |
return null; |
| 121 |
} |
| 122 |
function B() { |
| 123 |
this.a = 0; |
| 124 |
this.c = null; |
| 125 |
} |
| 126 |
function C(a) { |
| 127 |
a.a++; |
| 128 |
return function () { |
| 129 |
a.a--; |
| 130 |
D(a); |
| 131 |
}; |
| 132 |
} |
| 133 |
function E(a, b) { |
| 134 |
a.c = b; |
| 135 |
D(a); |
| 136 |
} |
| 137 |
function D(a) { |
| 138 |
0 == a.a && a.c && (a.c(), (a.c = null)); |
| 139 |
} |
| 140 |
function F(a) { |
| 141 |
this.a = a || "-"; |
| 142 |
} |
| 143 |
F.prototype.c = function (a) { |
| 144 |
for (var b = [], c = 0; c < arguments.length; c++) b.push(arguments[c].replace(/[\W_]+/g, "").toLowerCase()); |
| 145 |
return b.join(this.a); |
| 146 |
}; |
| 147 |
function G(a, b) { |
| 148 |
this.c = a; |
| 149 |
this.f = 4; |
| 150 |
this.a = "n"; |
| 151 |
var c = (b || "n4").match(/^([nio])([1-9])$/i); |
| 152 |
c && ((this.a = c[1]), (this.f = parseInt(c[2], 10))); |
| 153 |
} |
| 154 |
function fa(a) { |
| 155 |
return H(a) + " " + (a.f + "00") + " 300px " + I(a.c); |
| 156 |
} |
| 157 |
function I(a) { |
| 158 |
var b = []; |
| 159 |
a = a.split(/,\s*/); |
| 160 |
for (var c = 0; c < a.length; c++) { |
| 161 |
var d = a[c].replace(/['"]/g, ""); |
| 162 |
-1 != d.indexOf(" ") || /^\d/.test(d) ? b.push("'" + d + "'") : b.push(d); |
| 163 |
} |
| 164 |
return b.join(","); |
| 165 |
} |
| 166 |
function J(a) { |
| 167 |
return a.a + a.f; |
| 168 |
} |
| 169 |
function H(a) { |
| 170 |
var b = "normal"; |
| 171 |
"o" === a.a ? (b = "oblique") : "i" === a.a && (b = "italic"); |
| 172 |
return b; |
| 173 |
} |
| 174 |
function ga(a) { |
| 175 |
var b = 4, |
| 176 |
c = "n", |
| 177 |
d = null; |
| 178 |
a && |
| 179 |
((d = a.match(/(normal|oblique|italic)/i)) && d[1] && (c = d[1].substr(0, 1).toLowerCase()), |
| 180 |
(d = a.match(/([1-9]00|normal|bold)/i)) && d[1] && (/bold/i.test(d[1]) ? (b = 7) : /[1-9]00/.test(d[1]) && (b = parseInt(d[1].substr(0, 1), 10)))); |
| 181 |
return c + b; |
| 182 |
} |
| 183 |
function ha(a, b) { |
| 184 |
this.c = a; |
| 185 |
this.f = a.o.document.documentElement; |
| 186 |
this.h = b; |
| 187 |
this.a = new F("-"); |
| 188 |
this.j = !1 !== b.events; |
| 189 |
this.g = !1 !== b.classes; |
| 190 |
} |
| 191 |
function ia(a) { |
| 192 |
a.g && w(a.f, [a.a.c("wf", "loading")]); |
| 193 |
K(a, "loading"); |
| 194 |
} |
| 195 |
function L(a) { |
| 196 |
if (a.g) { |
| 197 |
var b = y(a.f, a.a.c("wf", "active")), |
| 198 |
c = [], |
| 199 |
d = [a.a.c("wf", "loading")]; |
| 200 |
b || c.push(a.a.c("wf", "inactive")); |
| 201 |
w(a.f, c, d); |
| 202 |
} |
| 203 |
K(a, "inactive"); |
| 204 |
} |
| 205 |
function K(a, b, c) { |
| 206 |
if (a.j && a.h[b]) |
| 207 |
if (c) a.h[b](c.c, J(c)); |
| 208 |
else a.h[b](); |
| 209 |
} |
| 210 |
function ja() { |
| 211 |
this.c = {}; |
| 212 |
} |
| 213 |
function ka(a, b, c) { |
| 214 |
var d = [], |
| 215 |
e; |
| 216 |
for (e in b) |
| 217 |
if (b.hasOwnProperty(e)) { |
| 218 |
var f = a.c[e]; |
| 219 |
f && d.push(f(b[e], c)); |
| 220 |
} |
| 221 |
return d; |
| 222 |
} |
| 223 |
function M(a, b) { |
| 224 |
this.c = a; |
| 225 |
this.f = b; |
| 226 |
this.a = t(this.c, "span", { "aria-hidden": "true" }, this.f); |
| 227 |
} |
| 228 |
function N(a) { |
| 229 |
u(a.c, "body", a.a); |
| 230 |
} |
| 231 |
function O(a) { |
| 232 |
return ( |
| 233 |
"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + |
| 234 |
I(a.c) + |
| 235 |
";" + |
| 236 |
("font-style:" + H(a) + ";font-weight:" + (a.f + "00") + ";") |
| 237 |
); |
| 238 |
} |
| 239 |
function P(a, b, c, d, e, f) { |
| 240 |
this.g = a; |
| 241 |
this.j = b; |
| 242 |
this.a = d; |
| 243 |
this.c = c; |
| 244 |
this.f = e || 3e3; |
| 245 |
this.h = f || void 0; |
| 246 |
} |
| 247 |
P.prototype.start = function () { |
| 248 |
var a = this.c.o.document, |
| 249 |
b = this, |
| 250 |
c = q(), |
| 251 |
d = new Promise(function (d, e) { |
| 252 |
function f() { |
| 253 |
q() - c >= b.f |
| 254 |
? e() |
| 255 |
: a.fonts.load(fa(b.a), b.h).then( |
| 256 |
function (a) { |
| 257 |
1 <= a.length ? d() : setTimeout(f, 25); |
| 258 |
}, |
| 259 |
function () { |
| 260 |
e(); |
| 261 |
} |
| 262 |
); |
| 263 |
} |
| 264 |
f(); |
| 265 |
}), |
| 266 |
e = null, |
| 267 |
f = new Promise(function (a, d) { |
| 268 |
e = setTimeout(d, b.f); |
| 269 |
}); |
| 270 |
Promise.race([f, d]).then( |
| 271 |
function () { |
| 272 |
e && (clearTimeout(e), (e = null)); |
| 273 |
b.g(b.a); |
| 274 |
}, |
| 275 |
function () { |
| 276 |
b.j(b.a); |
| 277 |
} |
| 278 |
); |
| 279 |
}; |
| 280 |
function Q(a, b, c, d, e, f, g) { |
| 281 |
this.v = a; |
| 282 |
this.B = b; |
| 283 |
this.c = c; |
| 284 |
this.a = d; |
| 285 |
this.s = g || "BESbswy"; |
| 286 |
this.f = {}; |
| 287 |
this.w = e || 3e3; |
| 288 |
this.u = f || null; |
| 289 |
this.m = this.j = this.h = this.g = null; |
| 290 |
this.g = new M(this.c, this.s); |
| 291 |
this.h = new M(this.c, this.s); |
| 292 |
this.j = new M(this.c, this.s); |
| 293 |
this.m = new M(this.c, this.s); |
| 294 |
a = new G(this.a.c + ",serif", J(this.a)); |
| 295 |
a = O(a); |
| 296 |
this.g.a.style.cssText = a; |
| 297 |
a = new G(this.a.c + ",sans-serif", J(this.a)); |
| 298 |
a = O(a); |
| 299 |
this.h.a.style.cssText = a; |
| 300 |
a = new G("serif", J(this.a)); |
| 301 |
a = O(a); |
| 302 |
this.j.a.style.cssText = a; |
| 303 |
a = new G("sans-serif", J(this.a)); |
| 304 |
a = O(a); |
| 305 |
this.m.a.style.cssText = a; |
| 306 |
N(this.g); |
| 307 |
N(this.h); |
| 308 |
N(this.j); |
| 309 |
N(this.m); |
| 310 |
} |
| 311 |
var R = { D: "serif", C: "sans-serif" }, |
| 312 |
S = null; |
| 313 |
function T() { |
| 314 |
if (null === S) { |
| 315 |
var a = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent); |
| 316 |
S = !!a && (536 > parseInt(a[1], 10) || (536 === parseInt(a[1], 10) && 11 >= parseInt(a[2], 10))); |
| 317 |
} |
| 318 |
return S; |
| 319 |
} |
| 320 |
Q.prototype.start = function () { |
| 321 |
this.f.serif = this.j.a.offsetWidth; |
| 322 |
this.f["sans-serif"] = this.m.a.offsetWidth; |
| 323 |
this.A = q(); |
| 324 |
U(this); |
| 325 |
}; |
| 326 |
function la(a, b, c) { |
| 327 |
for (var d in R) if (R.hasOwnProperty(d) && b === a.f[R[d]] && c === a.f[R[d]]) return !0; |
| 328 |
return !1; |
| 329 |
} |
| 330 |
function U(a) { |
| 331 |
var b = a.g.a.offsetWidth, |
| 332 |
c = a.h.a.offsetWidth, |
| 333 |
d; |
| 334 |
(d = b === a.f.serif && c === a.f["sans-serif"]) || (d = T() && la(a, b, c)); |
| 335 |
d ? (q() - a.A >= a.w ? (T() && la(a, b, c) && (null === a.u || a.u.hasOwnProperty(a.a.c)) ? V(a, a.v) : V(a, a.B)) : ma(a)) : V(a, a.v); |
| 336 |
} |
| 337 |
function ma(a) { |
| 338 |
setTimeout( |
| 339 |
p(function () { |
| 340 |
U(this); |
| 341 |
}, a), |
| 342 |
50 |
| 343 |
); |
| 344 |
} |
| 345 |
function V(a, b) { |
| 346 |
setTimeout( |
| 347 |
p(function () { |
| 348 |
v(this.g.a); |
| 349 |
v(this.h.a); |
| 350 |
v(this.j.a); |
| 351 |
v(this.m.a); |
| 352 |
b(this.a); |
| 353 |
}, a), |
| 354 |
0 |
| 355 |
); |
| 356 |
} |
| 357 |
function W(a, b, c) { |
| 358 |
this.c = a; |
| 359 |
this.a = b; |
| 360 |
this.f = 0; |
| 361 |
this.m = this.j = !1; |
| 362 |
this.s = c; |
| 363 |
} |
| 364 |
var X = null; |
| 365 |
W.prototype.g = function (a) { |
| 366 |
var b = this.a; |
| 367 |
b.g && w(b.f, [b.a.c("wf", a.c, J(a).toString(), "active")], [b.a.c("wf", a.c, J(a).toString(), "loading"), b.a.c("wf", a.c, J(a).toString(), "inactive")]); |
| 368 |
K(b, "fontactive", a); |
| 369 |
this.m = !0; |
| 370 |
na(this); |
| 371 |
}; |
| 372 |
W.prototype.h = function (a) { |
| 373 |
var b = this.a; |
| 374 |
if (b.g) { |
| 375 |
var c = y(b.f, b.a.c("wf", a.c, J(a).toString(), "active")), |
| 376 |
d = [], |
| 377 |
e = [b.a.c("wf", a.c, J(a).toString(), "loading")]; |
| 378 |
c || d.push(b.a.c("wf", a.c, J(a).toString(), "inactive")); |
| 379 |
w(b.f, d, e); |
| 380 |
} |
| 381 |
K(b, "fontinactive", a); |
| 382 |
na(this); |
| 383 |
}; |
| 384 |
function na(a) { |
| 385 |
0 == --a.f && a.j && (a.m ? ((a = a.a), a.g && w(a.f, [a.a.c("wf", "active")], [a.a.c("wf", "loading"), a.a.c("wf", "inactive")]), K(a, "active")) : L(a.a)); |
| 386 |
} |
| 387 |
function oa(a) { |
| 388 |
this.j = a; |
| 389 |
this.a = new ja(); |
| 390 |
this.h = 0; |
| 391 |
this.f = this.g = !0; |
| 392 |
} |
| 393 |
oa.prototype.load = function (a) { |
| 394 |
this.c = new ca(this.j, a.context || this.j); |
| 395 |
this.g = !1 !== a.events; |
| 396 |
this.f = !1 !== a.classes; |
| 397 |
pa(this, new ha(this.c, a), a); |
| 398 |
}; |
| 399 |
function qa(a, b, c, d, e) { |
| 400 |
var f = 0 == --a.h; |
| 401 |
(a.f || a.g) && |
| 402 |
setTimeout(function () { |
| 403 |
var a = e || null, |
| 404 |
m = d || null || {}; |
| 405 |
if (0 === c.length && f) L(b.a); |
| 406 |
else { |
| 407 |
b.f += c.length; |
| 408 |
f && (b.j = f); |
| 409 |
var h, |
| 410 |
l = []; |
| 411 |
for (h = 0; h < c.length; h++) { |
| 412 |
var k = c[h], |
| 413 |
n = m[k.c], |
| 414 |
r = b.a, |
| 415 |
x = k; |
| 416 |
r.g && w(r.f, [r.a.c("wf", x.c, J(x).toString(), "loading")]); |
| 417 |
K(r, "fontloading", x); |
| 418 |
r = null; |
| 419 |
if (null === X) |
| 420 |
if (window.FontFace) { |
| 421 |
var x = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), |
| 422 |
xa = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor); |
| 423 |
X = x ? 42 < parseInt(x[1], 10) : xa ? !1 : !0; |
| 424 |
} else X = !1; |
| 425 |
X ? (r = new P(p(b.g, b), p(b.h, b), b.c, k, b.s, n)) : (r = new Q(p(b.g, b), p(b.h, b), b.c, k, b.s, a, n)); |
| 426 |
l.push(r); |
| 427 |
} |
| 428 |
for (h = 0; h < l.length; h++) l[h].start(); |
| 429 |
} |
| 430 |
}, 0); |
| 431 |
} |
| 432 |
function pa(a, b, c) { |
| 433 |
var d = [], |
| 434 |
e = c.timeout; |
| 435 |
ia(b); |
| 436 |
var d = ka(a.a, c, a.c), |
| 437 |
f = new W(a.c, b, e); |
| 438 |
a.h = d.length; |
| 439 |
b = 0; |
| 440 |
for (c = d.length; b < c; b++) |
| 441 |
d[b].load(function (b, d, c) { |
| 442 |
qa(a, f, b, d, c); |
| 443 |
}); |
| 444 |
} |
| 445 |
function ra(a, b) { |
| 446 |
this.c = a; |
| 447 |
this.a = b; |
| 448 |
} |
| 449 |
ra.prototype.load = function (a) { |
| 450 |
function b() { |
| 451 |
if (f["__mti_fntLst" + d]) { |
| 452 |
var c = f["__mti_fntLst" + d](), |
| 453 |
e = [], |
| 454 |
h; |
| 455 |
if (c) |
| 456 |
for (var l = 0; l < c.length; l++) { |
| 457 |
var k = c[l].fontfamily; |
| 458 |
void 0 != c[l].fontStyle && void 0 != c[l].fontWeight ? ((h = c[l].fontStyle + c[l].fontWeight), e.push(new G(k, h))) : e.push(new G(k)); |
| 459 |
} |
| 460 |
a(e); |
| 461 |
} else |
| 462 |
setTimeout(function () { |
| 463 |
b(); |
| 464 |
}, 50); |
| 465 |
} |
| 466 |
var c = this, |
| 467 |
d = c.a.projectId, |
| 468 |
e = c.a.version; |
| 469 |
if (d) { |
| 470 |
var f = c.c.o; |
| 471 |
A(this.c, (c.a.api || "https://fast.fonts.net/jsapi") + "/" + d + ".js" + (e ? "?v=" + e : ""), function (e) { |
| 472 |
e |
| 473 |
? a([]) |
| 474 |
: ((f["__MonotypeConfiguration__" + d] = function () { |
| 475 |
return c.a; |
| 476 |
}), |
| 477 |
b()); |
| 478 |
}).id = "__MonotypeAPIScript__" + d; |
| 479 |
} else a([]); |
| 480 |
}; |
| 481 |
function sa(a, b) { |
| 482 |
this.c = a; |
| 483 |
this.a = b; |
| 484 |
} |
| 485 |
sa.prototype.load = function (a) { |
| 486 |
var b, |
| 487 |
c, |
| 488 |
d = this.a.urls || [], |
| 489 |
e = this.a.families || [], |
| 490 |
f = this.a.testStrings || {}, |
| 491 |
g = new B(); |
| 492 |
b = 0; |
| 493 |
for (c = d.length; b < c; b++) z(this.c, d[b], C(g)); |
| 494 |
var m = []; |
| 495 |
b = 0; |
| 496 |
for (c = e.length; b < c; b++) |
| 497 |
if (((d = e[b].split(":")), d[1])) for (var h = d[1].split(","), l = 0; l < h.length; l += 1) m.push(new G(d[0], h[l])); |
| 498 |
else m.push(new G(d[0])); |
| 499 |
E(g, function () { |
| 500 |
a(m, f); |
| 501 |
}); |
| 502 |
}; |
| 503 |
function ta(a, b) { |
| 504 |
a ? (this.c = a) : (this.c = ua); |
| 505 |
this.a = []; |
| 506 |
this.f = []; |
| 507 |
this.g = b || ""; |
| 508 |
} |
| 509 |
var ua = "https://fonts.googleapis.com/css"; |
| 510 |
function va(a, b) { |
| 511 |
for (var c = b.length, d = 0; d < c; d++) { |
| 512 |
var e = b[d].split(":"); |
| 513 |
3 == e.length && a.f.push(e.pop()); |
| 514 |
var f = ""; |
| 515 |
2 == e.length && "" != e[1] && (f = ":"); |
| 516 |
a.a.push(e.join(f)); |
| 517 |
} |
| 518 |
} |
| 519 |
function wa(a) { |
| 520 |
if (0 == a.a.length) throw Error("No fonts to load!"); |
| 521 |
if (-1 != a.c.indexOf("kit=")) return a.c; |
| 522 |
for (var b = a.a.length, c = [], d = 0; d < b; d++) c.push(a.a[d].replace(/ /g, "+")); |
| 523 |
b = a.c + "?family=" + c.join("%7C"); |
| 524 |
0 < a.f.length && (b += "&subset=" + a.f.join(",")); |
| 525 |
0 < a.g.length && (b += "&text=" + encodeURIComponent(a.g)); |
| 526 |
return b; |
| 527 |
} |
| 528 |
function ya(a) { |
| 529 |
this.f = a; |
| 530 |
this.a = []; |
| 531 |
this.c = {}; |
| 532 |
} |
| 533 |
var za = { latin: "BESbswy", "latin-ext": "\u00e7\u00f6\u00fc\u011f\u015f", cyrillic: "\u0439\u044f\u0416", greek: "\u03b1\u03b2\u03a3", khmer: "\u1780\u1781\u1782", Hanuman: "\u1780\u1781\u1782" }, |
| 534 |
Aa = { |
| 535 |
thin: "1", |
| 536 |
extralight: "2", |
| 537 |
"extra-light": "2", |
| 538 |
ultralight: "2", |
| 539 |
"ultra-light": "2", |
| 540 |
light: "3", |
| 541 |
regular: "4", |
| 542 |
book: "4", |
| 543 |
medium: "5", |
| 544 |
"semi-bold": "6", |
| 545 |
semibold: "6", |
| 546 |
"demi-bold": "6", |
| 547 |
demibold: "6", |
| 548 |
bold: "7", |
| 549 |
"extra-bold": "8", |
| 550 |
extrabold: "8", |
| 551 |
"ultra-bold": "8", |
| 552 |
ultrabold: "8", |
| 553 |
black: "9", |
| 554 |
heavy: "9", |
| 555 |
l: "3", |
| 556 |
r: "4", |
| 557 |
b: "7", |
| 558 |
}, |
| 559 |
Ba = { i: "i", italic: "i", n: "n", normal: "n" }, |
| 560 |
Ca = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/; |
| 561 |
function Da(a) { |
| 562 |
for (var b = a.f.length, c = 0; c < b; c++) { |
| 563 |
var d = a.f[c].split(":"), |
| 564 |
e = d[0].replace(/\+/g, " "), |
| 565 |
f = ["n4"]; |
| 566 |
if (2 <= d.length) { |
| 567 |
var g; |
| 568 |
var m = d[1]; |
| 569 |
g = []; |
| 570 |
if (m) |
| 571 |
for (var m = m.split(","), h = m.length, l = 0; l < h; l++) { |
| 572 |
var k; |
| 573 |
k = m[l]; |
| 574 |
if (k.match(/^[\w-]+$/)) { |
| 575 |
var n = Ca.exec(k.toLowerCase()); |
| 576 |
if (null == n) k = ""; |
| 577 |
else { |
| 578 |
k = n[2]; |
| 579 |
k = null == k || "" == k ? "n" : Ba[k]; |
| 580 |
n = n[1]; |
| 581 |
if (null == n || "" == n) n = "4"; |
| 582 |
else |
| 583 |
var r = Aa[n], |
| 584 |
n = r ? r : isNaN(n) ? "4" : n.substr(0, 1); |
| 585 |
k = [k, n].join(""); |
| 586 |
} |
| 587 |
} else k = ""; |
| 588 |
k && g.push(k); |
| 589 |
} |
| 590 |
0 < g.length && (f = g); |
| 591 |
3 == d.length && ((d = d[2]), (g = []), (d = d ? d.split(",") : g), 0 < d.length && (d = za[d[0]]) && (a.c[e] = d)); |
| 592 |
} |
| 593 |
a.c[e] || ((d = za[e]) && (a.c[e] = d)); |
| 594 |
for (d = 0; d < f.length; d += 1) a.a.push(new G(e, f[d])); |
| 595 |
} |
| 596 |
} |
| 597 |
function Ea(a, b) { |
| 598 |
this.c = a; |
| 599 |
this.a = b; |
| 600 |
} |
| 601 |
var Fa = { Arimo: !0, Cousine: !0, Tinos: !0 }; |
| 602 |
Ea.prototype.load = function (a) { |
| 603 |
var b = new B(), |
| 604 |
c = this.c, |
| 605 |
d = new ta(this.a.api, this.a.text), |
| 606 |
e = this.a.families; |
| 607 |
va(d, e); |
| 608 |
var f = new ya(e); |
| 609 |
Da(f); |
| 610 |
z(c, wa(d), C(b)); |
| 611 |
E(b, function () { |
| 612 |
a(f.a, f.c, Fa); |
| 613 |
}); |
| 614 |
}; |
| 615 |
function Ga(a, b) { |
| 616 |
this.c = a; |
| 617 |
this.a = b; |
| 618 |
} |
| 619 |
Ga.prototype.load = function (a) { |
| 620 |
var b = this.a.id, |
| 621 |
c = this.c.o; |
| 622 |
b |
| 623 |
? A( |
| 624 |
this.c, |
| 625 |
(this.a.api || "https://use.typekit.net") + "/" + b + ".js", |
| 626 |
function (b) { |
| 627 |
if (b) a([]); |
| 628 |
else if (c.Typekit && c.Typekit.config && c.Typekit.config.fn) { |
| 629 |
b = c.Typekit.config.fn; |
| 630 |
for (var e = [], f = 0; f < b.length; f += 2) for (var g = b[f], m = b[f + 1], h = 0; h < m.length; h++) e.push(new G(g, m[h])); |
| 631 |
try { |
| 632 |
c.Typekit.load({ events: !1, classes: !1, async: !0 }); |
| 633 |
} catch (l) {} |
| 634 |
a(e); |
| 635 |
} |
| 636 |
}, |
| 637 |
2e3 |
| 638 |
) |
| 639 |
: a([]); |
| 640 |
}; |
| 641 |
function Ha(a, b) { |
| 642 |
this.c = a; |
| 643 |
this.f = b; |
| 644 |
this.a = []; |
| 645 |
} |
| 646 |
Ha.prototype.load = function (a) { |
| 647 |
var b = this.f.id, |
| 648 |
c = this.c.o, |
| 649 |
d = this; |
| 650 |
b |
| 651 |
? (c.__webfontfontdeckmodule__ || (c.__webfontfontdeckmodule__ = {}), |
| 652 |
(c.__webfontfontdeckmodule__[b] = function (b, c) { |
| 653 |
for (var g = 0, m = c.fonts.length; g < m; ++g) { |
| 654 |
var h = c.fonts[g]; |
| 655 |
d.a.push(new G(h.name, ga("font-weight:" + h.weight + ";font-style:" + h.style))); |
| 656 |
} |
| 657 |
a(d.a); |
| 658 |
}), |
| 659 |
A(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ea(this.c) + "/" + b + ".js", function (b) { |
| 660 |
b && a([]); |
| 661 |
})) |
| 662 |
: a([]); |
| 663 |
}; |
| 664 |
var Y = new oa(window); |
| 665 |
Y.a.c.custom = function (a, b) { |
| 666 |
return new sa(b, a); |
| 667 |
}; |
| 668 |
Y.a.c.fontdeck = function (a, b) { |
| 669 |
return new Ha(b, a); |
| 670 |
}; |
| 671 |
Y.a.c.monotype = function (a, b) { |
| 672 |
return new ra(b, a); |
| 673 |
}; |
| 674 |
Y.a.c.typekit = function (a, b) { |
| 675 |
return new Ga(b, a); |
| 676 |
}; |
| 677 |
Y.a.c.google = function (a, b) { |
| 678 |
return new Ea(b, a); |
| 679 |
}; |
| 680 |
var Z = { load: p(Y.load, Y) }; |
| 681 |
"function" === typeof define && define.amd |
| 682 |
? define(function () { |
| 683 |
return Z; |
| 684 |
}) |
| 685 |
: "undefined" !== typeof module && module.exports |
| 686 |
? (module.exports = Z) |
| 687 |
: ((window.WebFont = Z), window.eshb_webFontConfig && Y.load(window.eshb_webFontConfig)); |
| 688 |
})(); |
| 689 |
|