text: var objectFitImages=function(){"use strict";var t="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var e=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g;var r=new Image;var i="object-fit"in r.style;var s="object-position"in r.style;var n=typeof r.currentSrc==="string";var c=r.getAttribute;var o=r.setAttribute;var l=false;function a(t){var r=getComputedStyle(t).fontFamily;var i;var s={};while((i=e.exec(r))!==null){s[i[1]]=i[2]}return s}function u(e,r){if(e[t].parsingSrcset){return}var s=a(e);s["object-fit"]=s["object-fit"]||"fill";if(!e[t].s){if(s["object-fit"]==="fill"){return}if(!e[t].skipTest&&i&&!s["object-position"]){return}}var o=e.currentSrc||e.src;if(r){o=r}else if(e.srcset&&!n&&window.picturefill){var l=window.picturefill._.ns;e[t].parsingSrcset=true;if(!e[l]||!e[l].evaled){window.picturefill._.fillImg(e,{reselect:true})}if(!e[l].curSrc){e[l].supported=false;window.picturefill._.fillImg(e,{reselect:true})}delete e[t].parsingSrcset;o=e[l].curSrc||o}if(e[t].s){e[t].s=o;if(r){e[t].srcAttr=r}}else{e[t]={s:o,srcAttr:r||c.call(e,"src"),srcsetAttr:e.srcset};e.src=t;if(e.srcset){e.srcset="";Object.defineProperty(e,"srcset",{value:e[t].srcsetAttr})}f(e)}e.style.backgroundImage='url("'+o+'")';e.style.backgroundPosition=s["object-position"]||"center";e.style.backgroundRepeat="no-repeat";if(/scale-down/.test(s["object-fit"])){if(!e[t].i){e[t].i=new Image;e[t].i.src=o}(function u(){if(e[t].i.naturalWidth){if(e[t].i.naturalWidth>e.width||e[t].i.naturalHeight>e.height){e.style.backgroundSize="contain"}else{e.style.backgroundSize="auto"}return}setTimeout(u,100)})()}else{e.style.backgroundSize=s["object-fit"].replace("none","auto").replace("fill","100% 100%")}}function f(e){var r={get:function(){return e[t].s},set:function(r){delete e[t].i;u(e,r);return r}};Object.defineProperty(e,"src",r);Object.defineProperty(e,"currentSrc",{get:r.get})}function g(){if(!s){HTMLImageElement.prototype.getAttribute=function(e){if(this[t]&&(e==="src"||e==="srcset")){return this[t][e+"Attr"]}return c.call(this,e)};HTMLImageElement.prototype.setAttribute=function(e,r){if(this[t]&&(e==="src"||e==="srcset")){this[e==="src"?"src":e+"Attr"]=String(r)}else{o.call(this,e,r)}}}}function A(e,r){var i=!l&&!e;r=r||{};e=e||"img";if(s&&!r.skipTest){return false}if(typeof e==="string"){e=document.querySelectorAll("img")}else if(!e.length){e=[e]}for(var n=0;n<e.length;n++){e[n][t]=e[n][t]||r;u(e[n])}if(i){document.body.addEventListener("load",function(t){if(t.target.tagName==="IMG"){A(t.target,{skipTest:r.skipTest})}},true);l=true;e="img"}if(r.watchMQ){window.addEventListener("resize",A.bind(null,e,{skipTest:r.skipTest}))}}A.supportsObjectFit=i;A.supportsObjectPosition=s;g();return A}();
  