PageSourceSearch

https://shop.museumnoe.at/webshop/assets/scripts/vendor/modernizr.js

js museumnoe.at collected 2026-10-01 12:21:26 UTC 12,283 bytes, 101 lines download raw bytes

1/*!
2 * modernizr v3.13.1
3 * Build https://modernizr.com/download?-input-proxy-supports-target-touchevents-addtest-printshiv-setclasses-testprop-dontmin
4 *
5 * Copyright (c)
6 *  Faruk Ates
7 *  Paul Irish
8 *  Alex Sexton
9 *  Ryan Seddon
10 *  Patrick Kettner
11 *  Stu Cox
12 *  Richard Herrera
13 *  Veeck
14
15 * MIT License
16 */
17!function(e,t,n,r){var o=[],i={_version:"3.13.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){o.push({name:e,fn:t,options:n})},addAsyncTest:function(e){o.push({name:null,fn:e})}},a=function(){};a.prototype=i,a=new a;var s=[];function l(e,t){return typeof e===t}var u,c,f=n.documentElement,d="svg"===f.nodeName.toLowerCase();function p(e){var t=f.className,n=a._config.classPrefix||"";if(d&&(t=t.baseVal),a._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}a._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),d?f.className.baseVal=t:f.className=t)}function m(e,t){if("object"==typeof e)for(var n in e)u(e,n)&&m(n,e[n]);else{var r=(e=e.toLowerCase()).split("."),o=a[r[0]];if(2===r.length&&(o=o[r[1]]),void 0!==o)return a;t="function"==typeof t?t():t,1===r.length?a[r[0]]=t:(!a[r[0]]||a[r[0]]instanceof Boolean||(a[r[0]]=new Boolean(a[r[0]])),a[r[0]][r[1]]=t),p([(t&&!1!==t?"":"no-")+r.join("-")]),a._trigger(e,t)}return a}function h(e,t){return!!~(""+e).indexOf(t)}function v(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):d?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}u=l(c={}.hasOwnProperty,"undefined")||l(c.call,"undefined")?function(e,t){return t in e&&l(e.constructor.prototype[t],"undefined")}:function(e,t){return c.call(e,t)},i._l={},i.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),a.hasOwnProperty(e)&&setTimeout(function(){a._trigger(e,a[e])},0)},i._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},a._q.push(function(){i.addTest=m}),d||function(e,t){var n,r,o=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,a=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,s="_html5shiv",l=0,u={};function c(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function f(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=u[e[s]];return t||(t={},l++,e[s]=l,u[l]=t),t}function p(e,n,o){return n||(n=t),r?n.createElement(e):(o||(o=d(n)),!(s=o.cache[e]?o.cache[e].cloneNode():a.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||i.test(e)||s.tagUrn?s:o.frag.appendChild(s));var s}function m(e){e||(e=t);var o=d(e);return!h.shivCSS||n||o.hasCSS||(o.hasCSS=!!c(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?p(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+f().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(h,t.frag)}(e,o),e}!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",n="hidden"in e,r=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,r=!0}}();var h={elements:o.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==o.shivCSS,supportsUnknownElements:r,shivMethods:!1!==o.shivMethods,t
17ype:"default",shivDocument:m,createElement:p,createDocumentFragment:function(e,n){if(e||(e=t),r)return e.createDocumentFragment();for(var o=(n=n||d(e)).frag.cloneNode(),i=0,a=f(),s=a.length;i<s;i++)o.createElement(a[i]);return o},addElements:function(e,t){var n=h.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),h.elements=n+" "+e,m(t)}};e.html5=h,m(t);var v,g=/^$|\b(?:all|print)\b/,y="html5shiv",S=!(r||(v=t.documentElement,void 0===t.namespaces||void 0===t.parentWindow||void 0===v.applyElement||void 0===v.removeNode||void 0===e.attachEvent));function E(e){for(var t,n=e.attributes,r=n.length,o=e.ownerDocument.createElement(y+":"+e.nodeName);r--;)(t=n[r]).specified&&o.setAttribute(t.nodeName,t.nodeValue);return o.style.cssText=e.style.cssText,o}function C(e){var t,n,r=d(e),o=e.namespaces,i=e.parentWindow;if(!S||e.printShived)return e;function a(){clearTimeout(r._removeSheetTimer),t&&t.removeNode(!0),t=null}return void 0===o[y]&&o.add(y),i.attachEvent("onbeforeprint",function(){a();for(var r,o,i,s=e.styleSheets,l=[],u=s.length,d=Array(u);u--;)d[u]=s[u];for(;i=d.pop();)if(!i.disabled&&g.test(i.media)){try{o=(r=i.imports).length}catch(e){o=0}for(u=0;u<o;u++)d.push(r[u]);try{l.push(i.cssText)}catch(e){}}l=function(e){for(var t,n=e.split("{"),r=n.length,o=RegExp("(^|[\\s,>+~])("+f().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),i="$1"+y+"\\:$2";r--;)(t=n[r]=n[r].split("}"))[t.length-1]=t[t.length-1].replace(o,i),n[r]=t.join("}");return n.join("{")}(l.reverse().join("")),n=function(e){for(var t,n=e.getElementsByTagName("*"),r=n.length,o=RegExp("^(?:"+f().join("|")+")$","i"),i=[];r--;)t=n[r],o.test(t.nodeName)&&i.push(t.applyElement(E(t)));return i}(e),t=c(e,l)}),i.attachEvent("onafterprint",function(){!function(e){for(var t=e.length;t--;)e[t].removeNode()}(n),clearTimeout(r._removeSheetTimer),r._removeSheetTimer=setTimeout(a,500)}),e.printShived=!0,e}h.type+=" print",h.shivPrint=C,C(t),"object"==typeof module&&module.exports&&(module.exports=h)}(void 0!==t?t:this,n);var g={elem:v("modernizr")};a._q.push(function(){delete g.elem});var y={style:g.elem.style};function S(e,t,r,o){var i,a,s,l,u="modernizr",c=v("div"),p=function(){var e=n.body;return e||((e=v(d?"svg":"body")).fake=!0),e}();if(parseInt(r,10))for(;r--;)(s=v("div")).id=o?o[r]:u+(r+1),c.appendChild(s);return(i=v("style")).type="text/css",i.id="s"+u,(p.fake?p:c).appendChild(i),p.appendChild(c),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(n.createTextNode(e)),c.id=u,p.fake&&(p.style.background="",p.style.overflow="hidden",l=f.style.overflow,f.style.overflow="hidden",f.appendChild(p)),a=t(c,e),p.fake&&p.parentNode?(p.parentNode.removeChild(p),f.style.overflow=l,f.offsetHeight):c.parentNode.removeChild(c),!!a}function E(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function C(e,n,r){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var i=t.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i)i[i.error?"error":"log"].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else o=!n&&e.currentStyle&&e.currentStyle[r];return o}function b(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function T(e,n,o,i){if(i=!l(i,"undefined")&&i,!l(o,"undefined")){var a=function(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(E(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var i=[];o--;)i.push("("+E(e[o])+":"+n+")");return S("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"===C(e,null,"position")})}return r}(e,o);if(!l(a,"undefined"))return a}for(var s,u,c,f,d,p=["modernizr","tspan","samp"];!y.style&&p.length;)s=!0,y.modElem=v(p.shift()),y.style=y.modElem.style;function m(){s&&(delete y.style,delete y.modElem)}for(c=e.length,u=0;u<c;u++)if(f=e[u],d=y.style[f],h(f,"-")&&(f=b(f)),y.style[f]!==r){if(i||l(o,"undefined"))return m(),"pfx"!==n||f;try{y.style[f]=o}catch(e){}if(y.style[f]!==d)return m(),"pfx"!==n||f}return m(),!1}a._q.unshift(function(){delete y.style});i.testProp=function(e,t,n){return T([e],r,t,n)};
18/*!
19{
20  "name": "Proxy Object",
21  "property": "proxy",
22  "caniuse": "proxy",
23  "authors": ["Brock Beaudry"],
24  "notes": [{
25    "name": "MDN Docs",
26    "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy"
27  }],
28  "polyfills": [
29    "harmony-reflect"
30  ]
31}
32!*/a.addTest("proxy","Proxy"in t);var w=i._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];i._prefixes=w;var _,x=(_=t.matchMedia||t.msMatchMedia)?function(e){var t=_(e);return t&&t.matches||!1}:function(e){var t=!1;return S("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"===C(e,null,"position")}),t};i.mq=x,
33/*!
34{
35  "name": "Touch Events",
36  "property": "touchevents",
37  "caniuse": "touch",
38  "tags": ["media", "attribute"],
39  "notes": [{
40    "name": "Touch Events spec",
41    "href": "https://www.w3.org/TR/2013/WD-touch-events-20130124/"
42  }],
43  "warnings": [
44    "** DEPRECATED see https://github.com/Modernizr/Modernizr/pull/2432 **",
45    "Indicates if the browser supports the Touch Events spec, and does not necessarily reflect a touchscreen device"
46  ],
47  "knownBugs": [
48    "False-positive on some configurations of Nokia N900",
49    "False-positive on some BlackBerry 6.0 builds – https://github.com/Modernizr/Modernizr/issues/372#issuecomment-3112695"
50  ]
51}
52!*/
53a.addTest("touchevents",function(){if("ontouchstart"in t||t.TouchEvent||t.DocumentTouch&&n instanceof DocumentTouch)return!0;var e=["(",w.join("touch-enabled),("),"heartz",")"].join("");return x(e)}),
54/*!
55{
56  "name": "CSS :target pseudo-class",
57  "caniuse": "css-sel3",
58  "property": "target",
59  "tags": ["css"],
60  "notes": [{
61    "name": "MDN Docs",
62    "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/:target"
63  }],
64  "authors": ["@zachleat"],
65  "warnings": ["Opera Mini supports :target but doesn't update the hash for anchor links."]
66}
67!*/
68a.addTest("target",function(){var e=t.document;if(!("querySelectorAll"in e))return!1;try{return e.querySelectorAll(":target"),!0}catch(e){return!1}});var N=v("input"),j="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),z={};
69/*!
70{
71  "name": "Input attributes",
72  "property": "input",
73  "tags": ["forms"],
74  "authors": ["Mike Taylor"],
75  "notes": [{
76    "name": "WHATWG Spec",
77    "href": "https://html.spec.whatwg.org/multipage/input.html#input-type-attr-summary"
78  }],
79  "knownBugs": ["Some blackberry devices report false positive for input.multiple"]
80}
81!*/a.input=function(e){for(var n=0,r=e.length;n<r;n++)z[e[n]]=!!(e[n]in N);return z.list&&(z.list=!(!v("datalist")||!t.HTMLDataListElement)),z}(j);
82/*!
83{
84  "name": "CSS Supports",
85  "property": "supports",
86  "caniuse": "css-featurequeries",
87  "tags": ["css"],
88  "builderAliases": ["css_supports"],
89  "notes": [{
90    "name": "W3C Spec (The @supports rule)",
91    "href": "https://dev.w3.org/csswg/css3-conditional/#at-supports"
92  }, {
93    "name": "Related Github Issue",
94    "href": "https://github.com/Modernizr/Modernizr/issues/648"
95  }, {
96    "name": "W3C Spec (The CSSSupportsRule interface)",
97    "href": "https://dev.w3.org/csswg/css3-conditional/#the-csssupportsrule-interface"
98  }]
99}
100!*/
101var k="CSS"in t&&"supports"in t.CSS,q="supportsCSS"in t;a.addTest("supports",k||q),function(){var e,t,n,r,i,u;for(var c in o)if(o.hasOwnProperty(c)){if(e=[],(t=o[c]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=l(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)1===(u=e[i].split(".")).length?a[u[0]]=r:(a[u[0]]&&(!a[u[0]]||a[u[0]]instanceof Boolean)||(a[u[0]]=new Boolean(a[u[0]])),a[u[0]][u[1]]=r),s.push((r?"":"no-")+u.join("-"))}}(),p(s),delete i.addTest,delete i.addAsyncTest;for(var D=0;D<a._q.length;D++)a._q[D]();e.Modernizr=a}(window,window,document);

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.