PageSourceSearch

https://npac-weiwuying.org/assets/turnjs4/extras/modernizr.2.5.3.min.js

js npac-weiwuying.org collected 2026-10-02 04:00:21 UTC 15,075 bytes, 516 lines download raw bytes

1/* Modernizr 2.5.3 (Custom Build) | MIT & BSD
2 * Build: http://www.modernizr.com/download/#-csstransforms-csstransforms3d-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load
3 */
4(window.Modernizr = (function(a, b, c) {
5  function z(a) {
6    j.cssText = a;
7  }
8  function A(a, b) {
9    return z(m.join(a + ";") + (b || ""));
10  }
11  function B(a, b) {
12    return typeof a === b;
13  }
14  function C(a, b) {
15    return !!~("" + a).indexOf(b);
16  }
17  function D(a, b) {
18    for (var d in a) if (j[a[d]] !== c) return b == "pfx" ? a[d] : !0;
19    return !1;
20  }
21  function E(a, b, d) {
22    for (var e in a) {
23      var f = b[a[e]];
24      if (f !== c)
25        return d === !1 ? a[e] : B(f, "function") ? f.bind(d || b) : f;
26    }
27    return !1;
28  }
29  function F(a, b, c) {
30    var d = a.charAt(0).toUpperCase() + a.substr(1),
31      e = (a + " " + o.join(d + " ") + d).split(" ");
32    return B(b, "string") || B(b, "undefined")
33      ? D(e, b)
34      : ((e = (a + " " + p.join(d + " ") + d).split(" ")), E(e, b, c));
35  }
36  var d = "2.5.3",
37    e = {},
38    f = !0,
39    g = b.documentElement,
40    h = "modernizr",
41    i = b.createElement(h),
42    j = i.style,
43    k,
44    l = {}.toString,
45    m = " -webkit- -moz- -o- -ms- ".split(" "),
46    n = "Webkit Moz O ms",
47    o = n.split(" "),
48    p = n.toLowerCase().split(" "),
49    q = {},
50    r = {},
51    s = {},
52    t = [],
53    u = t.slice,
54    v,
55    w = function(a, c, d, e) {
56      var f,
57        i,
58        j,
59        k = b.createElement("div"),
60        l = b.body,
61        m = l ? l : b.createElement("body");
62      if (parseInt(d, 10))
63        while (d--)
64          (j = b.createElement("div")),
65            (j.id = e ? e[d] : h + (d + 1)),
66            k.appendChild(j);
67      return (
68        (f = ["&#173;", "<style>", a, "</style>"].join("")),
69        (k.id = h),
70        ((l ? k : m).innerHTML += f),
71        m.appendChild(k),
72        l || ((m.style.background = ""), g.appendChild(m)),
73        (i = c(k, a)),
74        l ? k.parentNode.removeChild(k) : m.parentNode.removeChild(m),
75        !!i
76      );
77    },
78    x = {}.hasOwnProperty,
79    y;
80  !B(x, "undefined") && !B(x.call, "undefined")
81    ? (y = function(a, b) {
82        return x.call(a, b);
83      })
84    : (y = function(a, b) {
85        return b in a && B(a.constructor.prototype[b], "undefined");
86      }),
87    Function.prototype.bind ||
88      (Function.prototype.bind = function(b) {
89        var c = this;
90        if (typeof c != "function") throw new TypeError();
91        var d = u.call(arguments, 1),
92          e = function() {
93            if (this instanceof e) {
94              var a = function() {};
95              a.prototype = c.prototype;
96              var f = new a(),
97                g = c.apply(f, d.concat(u.call(arguments)));
98              return Object(g) === g ? g : f;
99            }
100            return c.apply(b, d.concat(u.call(arguments)));
101          };
102        return e;
103      });
104  var G = (function(a, c) {
105    var d = a.join(""),
106      f = c.length;
107    w(
108      d,
109      function(a, c) {
110        var d = b.styleSheets[b.styleSheets.length - 1],
111          g = d
112            ? d.cssRules && d.cssRules[0]
113              ? d.cssRules[0].cssText
114              : d.cssText || ""
115            : "",
116          h = a.childNodes,
117          i = {};
118        while (f--) i[h[f].id] = h[f];
119        e.csstransforms3d =
120          (i.csstransforms3d && i.csstransforms3d.offsetLeft) === 9 &&
121          i.csstransforms3d.offsetHeight === 3;
122      },
123      f,
124      c
125    );
126  })(
127    [
128      ,
129      [
130        "@media (",
131        m.join("transform-3d),("),
132        h,
133        ")",
134        "{#csstransforms3d{left:9px;position:absolute;height:3px;}}",
135      ].join(""),
136    ],
137    [, "csstransforms3d"]
138  );
139  (q.csstransforms = function() {
140    return !!F("transform");
141  }),
142    (q.csstransforms3d = function() {
143      var a = !!F("perspective");
144      return a && "webkitPerspective" in g.style && (a = e.csstransforms3d), a;
145    });
146  for (var H in q)
147    y(q, H) &&
148      ((v = H.toLowerCase()), (e[v] = q[H]()), t.push((e[v] ? "" : "no-") + v));
149  return (
150    z(""),
151    (i = k = null),
152    (function(a, b) {
153      function g(a, b) {
154        var c = a.createElement("p"),
155          d = a.getElementsByTagName("head")[0] || a.documentElement;
156        return (
157          (c.innerHTML = "x<style>" + b + "</style>"),
158          d.insertBefore(c.lastChild, d.firstChild)
159        );
160      }
161      function h() {
162        var a = k.elements;
163        return typeof a == "string" ? a.split(" ") : a;
164      }
165      function i(a) {
166        var b = {},
167          c = a.createElement,
168          e = a.createDocumentFragment,
169          f = e();
170        (a.createElement = function(a) {
171          var e = (b[a] || (b[a] = c(a))).cloneNode();
172          return k.shivMethods && e.canHaveChildren && !d.test(a)
173            ? f.appendChild(e)
174            : e;
175        }),
176          (a.createDocumentFragment = Function(
177            "h,f",
178            "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" +
179              h()
180                .join()
181                .replace(/\w+/g, function(a) {
182                  return (b[a] = c(a)), f.createElement(a), 'c("' + a + '")';
183                }) +
184              ");return n}"
185          )(k, f));
186      }
187      function j(a) {
188        var b;
189        return a.documentShived
190          ? a
191          : (k.shivCSS &&
192              !e &&
193              (b = !!g(
194                a,
195                "article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}"
196              )),
197            f || (b = !i(a)),
198            b && (a.documentShived = b),
199            a);
200      }
201      var c = a.html5 || {},
202        d = /^<|^(?:button|form|map|select|textarea)$/i,
203        e,
204        f;
205      (function() {
206        var a = b.createElement("a");
207        (a.innerHTML = "<xyz></xyz>"),
208          (e = "hidden" in a),
209          (f =
210            a.childNodes.length == 1 ||
211            (function() {
212              try {
213                b.createElement("a");
214              } catch (a) {
215                return !0;
216              }
217              var c = b.createDocumentFragment();
218              return (
219                typeof c.cloneNode == "undefined" ||
220                typeof c.createDocumentFragment == "undefined" ||
221                typeof c.createElement == "undefined"
222              );
223            })());
224      })();
225      var k = {
226        elements:
227          c.elements ||
228          "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",
229        shivCSS: c.shivCSS !== !1,
230        shivMethods: c.shivMethods !== !1,
231        type: "default",
232        shivDocument: j,
233      };
234      (a.html5 = k), j(b);
235    })(this, b),
236    (e._version = d),
237    (e._prefixes = m),
238    (e._domPrefixes = p),
239    (e._cssomPrefixes = o),
240    (e.testProp = function(a) {
241      return D([a]);
242    }),
243    (e.testAllProps = F),
244    (e.testStyles = w),
245    (g.className =
246      g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") +
247      (f ? " js " + t.join(" ") : "")),
248    e
249  );
250})(this, this.document)),
251  (function(a, b, c) {
252    function d(a) {
253      return o.call(a) == "[object Function]";
254    }
255    function e(a) {
256      return typeof a == "string";
257    }
258    function f() {}
259    function g(a) {
260      return !a || a == "loaded" || a == "complete" || a == "uninitialized";
261    }
262    function h() {
263      var a = p.shift();
264      (q = 1),
265        a
266          ? a.t
267            ? m(function() {
268                (a.t == "c"
269                  ? B.injectCss
270                  : B.injectJs)(a.s, 0, a.a, a.x, a.e, 1);
271              }, 0)
272            : (a(), h())
273          : (q = 0);
274    }
275    function i(a, c, d, e, f, i, j) {
276      function k(b) {
277        if (
278          !o &&
279          g(l.readyState) &&
280          ((u.r = o = 1),
281          !q && h(),
282          (l.onload = l.onreadystatechange = null),
283          b)
284        ) {
285          a != "img" &&
286            m(function() {
287              t.removeChild(l);
288            }, 50);
289          for (var d in y[c]) y[c].hasOwnProperty(d) && y[c][d].onload();
290        }
291      }
292      var j = j || B.errorTimeout,
293        l = {},
294        o = 0,
295        r = 0,
296        u = { t: d, s: c, e: f, a: i, x: j };
297      y[c] === 1 && ((r = 1), (y[c] = []), (l = b.createElement(a))),
298        a == "object" ? (l.data = c) : ((l.src = c), (l.type = a)),
299        (l.width = l.height = "0"),
300        (l.onerror = l.onload = l.onreadystatechange = function() {
301          k.call(this, r);
302        }),
303        p.splice(e, 0, u),
304        a != "img" &&
305          (r || y[c] === 2
306            ? (t.insertBefore(l, s ? null : n), m(k, j))
307            : y[c].push(l));
308    }
309    function j(a, b, c, d, f) {
310      return (
311        (q = 0),
312        (b = b || "j"),
313        e(a)
314          ? i(b == "c" ? v : u, a, b, this.i++, c, d, f)
315          : (p.splice(this.i++, 0, a), p.length == 1 && h()),
316        this
317      );
318    }
319    function k() {
320      var a = B;
321      return (a.loader = { load: j, i: 0 }), a;
322    }
323    var l = b.documentElement,
324      m = a.setTimeout,
325      n = b.getElementsByTagName("script")[0],
326      o = {}.toString,
327      p = [],
328      q = 0,
329      r = "MozAppearance" in l.style,
330      s = r && !!b.createRange().compareNode,
331      t = s ? l : n.parentNode,
332      l = a.opera && o.call(a.opera) == "[object Opera]",
333      l = !!b.attachEvent && !l,
334      u = r ? "object" : l ? "script" : "img",
335      v = l ? "script" : u,
336      w =
337        Array.isArray ||
338        function(a) {
339          return o.call(a) == "[object Array]";
340        },
341      x = [],
342      y = {},
343      z = {
344        timeout: function(a, b) {
345          return b.length && (a.timeout = b[0]), a;
346        },
347      },
348      A,
349      B;
350    (B = function(a) {
351      function b(a) {
352        var a = a.split("!"),
353          b = x.length,
354          c = a.pop(),
355          d = a.length,
356          c = { url: c, origUrl: c, prefixes: a },
357          e,
358          f,
359          g;
360        for (f = 0; f < d; f++)
361          (g = a[f].split("=")), (e = z[g.shift()]) && (c = e(c, g));
362        for (f = 0; f < b; f++) c = x[f](c);
363        return c;
364      }
365      function g(a, e, f, g, i) {
366        var j = b(a),
367          l = j.autoCallback;
368        j.url
369          .split(".")
370          .pop()
371          .split("?")
372          .shift(),
373          j.bypass ||
374            (e &&
375              (e = d(e)
376                ? e
377                : e[a] ||
378                  e[g] ||
379                  e[
380                    a
381                      .split("/")
382                      .pop()
383                      .split("?")[0]
384                  ] ||
385                  h),
386            j.instead
387              ? j.instead(a, e, f, g, i)
388              : (y[j.url] ? (j.noexec = !0) : (y[j.url] = 1),
389                f.load(
390                  j.url,
391                  j.forceCSS ||
392                  (!j.forceJS &&
393                    "css" ==
394                      j.url
395                        .split(".")
396                        .pop()
397                        .split("?")
398                        .shift())
399                    ? "c"
400                    : c,
401                  j.noexec,
402                  j.attrs,
403                  j.timeout
404                ),
405                (d(e) || d(l)) &&
406                  f.load(function() {
407                    k(),
408                      e && e(j.origUrl, i, g),
409                      l && l(j.origUrl, i, g),
410                      (y[j.url] = 2);
411                  })));
412      }
413      function i(a, b) {
414        function c(a, c) {
415          if (a) {
416            if (e(a))
417              c ||
418                (j = function() {
419                  var a = [].slice.call(arguments);
420                  k.apply(this, a), l();
421                }),
422                g(a, j, b, 0, h);
423            else if (Object(a) === a)
424              for (n in ((m = (function() {
425                var b = 0,
426                  c;
427                for (c in a) a.hasOwnProperty(c) && b++;
428                return b;
429              })()),
430              a))
431                a.hasOwnProperty(n) &&
432                  (!c &&
433                    !--m &&
434                    (d(j)
435                      ? (j = function() {
436                          var a = [].slice.call(arguments);
437                          k.apply(this, a), l();
438                        })
439                      : (j[n] = (function(a) {
440                          return function() {
441                            var b = [].slice.call(arguments);
442                            a && a.apply(this, b), l();
443                          };
444                        })(k[n]))),
445                  g(a[n], j, b, n, h));
446          } else !c && l();
447        }
448        var h = !!a.test,
449          i = a.load || a.both,
450          j = a.callback || f,
451          k = j,
452          l = a.complete || f,
453          m,
454          n;
455        c(h ? a.yep : a.nope, !!i), i && c(i);
456      }
457      var j,
458        l,
459        m = this.yepnope.loader;
460      if (e(a)) g(a, 0, m, 0);
461      else if (w(a))
462        for (j = 0; j < a.length; j++)
463          (l = a[j]),
464            e(l) ? g(l, 0, m, 0) : w(l) ? B(l) : Object(l) === l && i(l, m);
465      else Object(a) === a && i(a, m);
466    }),
467      (B.addPrefix = function(a, b) {
468        z[a] = b;
469      }),
470      (B.addFilter = function(a) {
471        x.push(a);
472      }),
473      (B.errorTimeout = 1e4),
474      b.readyState == null &&
475        b.addEventListener &&
476        ((b.readyState = "loading"),
477        b.addEventListener(
478          "DOMContentLoaded",
479          (A = function() {
480            b.removeEventListener("DOMContentLoaded", A, 0),
481              (b.readyState = "complete");
482          }),
483          0
484        )),
485      (a.yepnope = k()),
486      (a.yepnope.executeStack = h),
487      (a.yepnope.injectJs = function(a, c, d, e, i, j) {
488        var k = b.createElement("script"),
489          l,
490          o,
491          e = e || B.errorTimeout;
492        k.src = a;
493        for (o in d) k.setAttribute(o, d[o]);
494        (c = j ? h : c || f),
495          (k.onreadystatechange = k.onload = function() {
496            !l &&
497              g(k.readyState) &&
498              ((l = 1), c(), (k.onload = k.onreadystatechange = null));
499          }),
500          m(function() {
501            l || ((l = 1), c(1));
502          }, e),
503          i ? k.onload() : n.parentNode.insertBefore(k, n);
504      }),
505      (a.yepnope.injectCss = function(a, c, d, e, g, i) {
506        var e = b.createElement("link"),
507          j,
508          c = i ? h : c || f;
509        (e.href = a), (e.rel = "stylesheet"), (e.type = "text/css");
510        for (j in d) e.setAttribute(j, d[j]);
511        g || (n.parentNode.insertBefore(e, n), m(c, 0));
512      });
513  })(this, document),
514  (Modernizr.load = function() {
515    yepnope.apply(window, [].slice.call(arguments, 0));
516  });

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.