/*! npm.im/object-fit-images 3.2.4 */ var objectfitimages=function(){"use strict";function t(t,e){return"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3e%3c/svg%3e"}function e(t){if(t.srcset&&!p&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillimg(t,{reselect:!0}),t[e.ns].cursrc||(t[e.ns].supported=!1,e.fillimg(t,{reselect:!0})),t.currentsrc=t[e.ns].cursrc||t.src}}function i(t){for(var e,i=getcomputedstyle(t).fontfamily,r={};null!==(e=u.exec(i));)r[e[1]]=e[2];return r}function r(e,i,r){var n=t(i||1,r||0);b.call(e,"src")!==n&&h.call(e,"src",n)}function n(t,e){t.naturalwidth?e(t):settimeout(n,100,t,e)}function c(t){var c=i(t),o=t[l];if(c["object-fit"]=c["object-fit"]||"fill",!o.img){if("fill"===c["object-fit"])return;if(!o.skiptest&&f&&!c["object-position"])return}if(!o.img){o.img=new image(t.width,t.height),o.img.srcset=b.call(t,"data-ofi-srcset")||t.srcset,o.img.src=b.call(t,"data-ofi-src")||t.src,h.call(t,"data-ofi-src",t.src),t.srcset&&h.call(t,"data-ofi-srcset",t.srcset),r(t,t.naturalwidth||t.width,t.naturalheight||t.height),t.srcset&&(t.srcset="");try{s(t)}catch(t){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}e(o.img),t.style.backgroundimage='url("'+(o.img.currentsrc||o.img.src).replace(/"/g,'\\"')+'")',t.style.backgroundposition=c["object-position"]||"center",t.style.backgroundrepeat="no-repeat",t.style.backgroundorigin="content-box",/scale-down/.test(c["object-fit"])?n(o.img,function(){o.img.naturalwidth>t.width||o.img.naturalheight>t.height?t.style.backgroundsize="contain":t.style.backgroundsize="auto"}):t.style.backgroundsize=c["object-fit"].replace("none","auto").replace("fill","100% 100%"),n(o.img,function(e){r(t,e.naturalwidth,e.naturalheight)})}function s(t){var e={get:function(e){return t[l].img[e?e:"src"]},set:function(e,i){return t[l].img[i?i:"src"]=e,h.call(t,"data-ofi-"+i,e),c(t),e}};object.defineproperty(t,"src",e),object.defineproperty(t,"currentsrc",{get:function(){return e.get("currentsrc")}}),object.defineproperty(t,"srcset",{get:function(){return e.get("srcset")},set:function(t){return e.set(t,"srcset")}})}function o(){function t(t,e){return t[l]&&t[l].img&&("src"===e||"srcset"===e)?t[l].img:t}d||(htmlimageelement.prototype.getattribute=function(e){return b.call(t(this,e),e)},htmlimageelement.prototype.setattribute=function(e,i){return h.call(t(this,e),e,string(i))})}function a(t,e){var i=!y&&!t;if(e=e||{},t=t||"img",d&&!e.skiptest||!m)return!1;"img"===t?t=document.getelementsbytagname("img"):"string"==typeof t?t=document.queryselectorall(t):"length"in t||(t=[t]);for(var r=0;r