PageSourceSearch

https://soylent.com/cdn/shop/t/714/assets/vendor-head.js?v=90722642034164553641687817175

js soylent.com collected 2026-09-24 18:49:10 UTC 12,383 bytes, 12 lines download raw bytes

1/*================ lazysizes ================*/
2/*! lazysizes - v5.2.1 */
3!function(t){var e=function(a,f,n){"use strict";var p,y;if(function(){var t,e={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in y=a.lazySizesConfig||a.lazysizesConfig||{},e)t in y||(y[t]=e[t])}(),!f||!f.getElementsByClassName)return{init:function(){},cfg:y,noSupport:!0};function s(t,e){return ct[e]||(ct[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),ct[e].test(t[it]("class")||"")&&ct[e]}function c(t,e){s(t,e)||t.setAttribute("class",(t[it]("class")||"").trim()+" "+e)}function u(t,e){(e=s(t,e))&&t.setAttribute("class",(t[it]("class")||"").replace(e," "))}function d(t,e,i,a,r){var n=f.createEvent("Event");return(i=i||{}).instance=p,n.initEvent(e,!a,!r),n.detail=i,t.dispatchEvent(n),n}function m(t,e){var i;!tt&&(i=a.picturefill||y.pf)?(e&&e.src&&!t[it]("srcset")&&t.setAttribute("srcset",e.src),i({reevaluate:!0,elements:[t]})):e&&e.src&&(t.src=e.src)}function h(t,e){return(getComputedStyle(t,null)||{})[e]}function r(t,e,i){for(i=i||t.offsetWidth;i<y.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i}function t(i,t){return t?function(){ft(i)}:function(){var t=this,e=arguments;ft(function(){i.apply(t,e)})}}function e(t){function e(){i=null,t()}var i,a,r=function(){var t=n.now()-a;t<99?rt(r,99-t):(st||e)(e)};return function(){a=n.now(),i=i||rt(r,99)}}
3var i,o,l,z,g,v,b,A,w,C,E,_,N,M,x,P,S,L,T,W,R,B,O,F,$,H,k,U,j,D,I,q,X,G,J,V,K,Q,Y,Z=f.documentElement,tt=a.HTMLPictureElement,et="addEventListener",it="getAttribute",at=a[et].bind(a),rt=a.setTimeout,nt=a.requestAnimationFrame||rt,st=a.requestIdleCallback,ot=/^picture$/i,lt=["load","error","lazyincluded","_lazyloaded"],ct={},ut=Array.prototype.forEach,dt=function(e,i,t){var a=t?et:"removeEventListener";t&&dt(e,i),lt.forEach(function(t){e[a](t,i)})},ft=(Q=[],Y=K=[],_t._lsFlush=Et,_t),pt=(B=/^img$/i,O=/^iframe$/i,F="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),k=-1,P=vt,L=H=$=0,T=y.throttleDelay,W=y.ricTimeout,R=st&&49<W?function(){st(bt,{timeout:W}),W!==y.ricTimeout&&(W=y.ricTimeout)}:t(function(){rt(bt)},!0),j=t(At),D=function(t){j({target:t.target})},I=t(function(e,t,i,a,r){var n,s,o,l;(o=d(e,"lazybeforeunveil",t)).defaultPrevented||(a&&(i?c(e,y.autosizesClass):e.setAttribute("sizes",a)),i=e[it](y.srcsetAttr),a=e[it](y.srcAttr),r&&(s=(n=e.parentNode)&&ot.test(n.nodeName||"")),l=t.firesLoad||"src"in e&&(i||a||s),o={target:e},c(e,y.loadingClass),l&&(clearTimeout(v),v=rt(zt,2500),dt(e,D,!0)),s&&ut.call(n.getElementsByTagName("source"),wt),i?e.setAttribute("srcset",i):a&&!s&&(O.test(e.nodeName)?function(e,i){try{e.contentWindow.location.replace(i)}catch(t){e.src=i}}(e,a):e.src=a),r&&(i||s)&&m(e,{src:a})),e._lazyRace&&delete e._lazyRace,u(e,y.lazyClass),ft(function(){var t=e.complete&&1<e.naturalWidth;l&&!t||(t&&c(e,"ls-is-cached"),At(o),e._lazyCache=!0,rt(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&H--},!0)}
3),X=e(function(){y.loadMode=3,U()}),G=function(){g||(n.now()-A<999?rt(G,999):(g=!0,y.loadMode=3,U(),at("scroll",Ct,!0)))},{_:function(){A=n.now(),p.elements=f.getElementsByClassName(y.lazyClass),z=f.getElementsByClassName(y.lazyClass+" "+y.preloadClass),at("scroll",U,!0),at("resize",U,!0),at("pageshow",function(t){var e;!t.persisted||(e=f.querySelectorAll("."+y.loadingClass)).length&&e.forEach&&nt(function(){e.forEach(function(t){t.complete&&q(t)})})}),a.MutationObserver?new MutationObserver(U).observe(Z,{childList:!0,subtree:!0,attributes:!0}):(Z[et]("DOMNodeInserted",U,!0),Z[et]("DOMAttrModified",U,!0),setInterval(U,999)),at("hashchange",U,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(t){f[et](t,U,!0)}),/d$|^c/.test(f.readyState)?G():(at("load",G),f[et]("DOMContentLoaded",U),rt(G,2e4)),p.elements.length?(vt(),ft._lsFlush()):U()},checkElems:U=function(t){var e;(t=!0===t)&&(W=33),S||(S=!0,(e=T-(n.now()-L))<0&&(e=0),t||e<9?R():rt(R,e))},unveil:q=function(t){var e,i,a,r;t._lazyRace||(!(r="auto"==(a=(i=B.test(t.nodeName))&&(t[it](y.sizesAttr)||t[it]("sizes"))))&&g||!i||!t[it]("src")&&!t.srcset||t.complete||s(t,y.errorClass)||!s(t,y.lazyClass))&&(e=d(t,"lazyunveilread").detail,r&&yt.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,H++,I(t,e,r,a,i))},_aLSL:Ct}),yt=(o=t(function(t,e,i,a){var r,n,s;if(t._lazysizesWidth=a,a+="px",t.setAttribute("sizes",a),ot.test(e.nodeName||""))for(n=0,s=(r=e.getElementsByTagName("source")).length;n<s;n++)r[n].setAttribute("sizes",a);i.detail.dataAttr||m(t,i.detail)}),{_:function(){i=f.getElementsByClassName(y.autosizesClass),at("resize",l)},checkElems:l=e(function(){var t,e=i.length;if(e)for(t=0;t<e;t++)ht(i[t])}),updateElem:ht}),mt=function(){!mt.i&&f.getElementsByClassName&&(mt.i=!0,yt._(),pt._())};function ht(t,e,i){var a=t.parentNode;a&&(i=r(t,a,i),(e=d(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=e.detail.width)&&i!==t._lazysizesWidth&&o(t,a,e,i))}function zt(t){H--,t&&!(H<0)&&t.target||(H=0)}function gt(t){return(x=null==x?"hidden"==h(f.body,"visibility"):x)||!("hidden"==h(t.parentNode,"visibility")&&"hidden"==h(t,"visibility"))}function vt(){var t,e,i,a,r,n,s,o,l,c,u,d=p.elements;if((b=y.loadMode)&&H<8&&(t=d.length)){for(e=0,k++;e<t;e++)if(d[e]&&!d[e]._lazyRace)if(!F||p.prematureUnveil&&p.prematureUnveil(d[e]))q(d[e]);else if((s=d[e][it]("data-expand"))&&(r=+s)||(r=$),l||(l=!y.expand||y.expand<1?500<Z.clientHeight&&500<Z.clientWidth?500:370:y.expand,c=(p._defEx=l)*y.expFactor,u=y.hFac,x=null,$<c&&H<1&&2<k&&2<b&&!f.hidden?($=c,k=0):$=1<b&&1<k&&H<6?l:0),o!==r&&(w=innerWidth+r*u,C=innerHeight+r,n=-1*r,o=r),c=d[e].getBoundingClientRect(),(M=c.bottom)>=n&&(E=c.top)<=C&&(N=c.right)>=n*u&&(_=c.left)<=w&&(M||N||_||E)&&(y.loadHidden||gt(d[e]))&&(g&&H<3&&!s&&(b<3||k<4)||function(t,e){var i,a=t,r=gt(t);for(E-=e,M+=e,_-=e,N+=e;r&&(a=a.offsetParent)&&a!=f.body&&a!=Z;)(r=0<(h(a,"opacity")||1))&&"visible"!=h(a,"overflow")&&(i=a.getBoundingClientRect(),r=N>i.left&&_<i.right&&M>i.top-1&&E<i.bottom+1);return r}(d[e],r))){if(q(d[e]),a=!0,9<H)break}else!a&&g&&!i&&H<4&&k<4&&2<b&&(z[0]||y.preloadAfterLoad)&&(z[0]||!s&&(M||N||_||E||"auto"!=d[e][it](y.sizesAttr)))&&(i=z[0]||d[e]);i&&!a&&q(i)}}function bt(){S=!1,L=n.now(),P()}function At(t){var e=t.target;e._lazyCache?delete e._lazyCache:(zt(t),c(e,y.loadedClass),u(e,y.loadingClass),dt(e,D),d(e,"lazyloaded"))}function wt(t){var e,i=t[it](y.srcsetAttr);(e=y.customMedia[t[it]("data-media")||t[it]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)}function Ct(){3==y.loadMode&&(y.loadMode=2),X()}function Et(){var t=Y;for(Y=K.length?Q:K,V=!(J=!0);t.length;)t.shift()();J=!1}function _t(t,e){J&&!e?t.apply(this,arguments):(Y.push(t),V||(V=!0,(f.hidden?rt:nt)(Et)))}return rt(function(){y.init&&mt()}),p={cfg:y,autoSizer:yt,loader:pt,init:mt,uP:m,aC:c,rC:u,hC:s,fire:d,gW:r,rAF:ft}}(t,t.document,Date);t.lazySizes=e,"object"==typeof module&&module.exports&&(module.exports=e)}("undefined"!=typeof window?window:{}),function(t,e){var i=function(){e(t.lazySizes),t.removeEventListener("lazyunveilread",i,!0)};e=e.bind(null,t,t.document),"object"==typeof module&&module.exports?e(require("lazysizes")):"function"==typeof define&&define.amd?define(["lazysizes"],e):t.lazySizes?i():t.addEventListener("lazyunveilread",i,!0)}(window,function(p,c,y){"use strict";var m,h,a=y.cfg,u={string:1,number:1},z=/^\-*\+*\d+\.*\d*$/,g=/^picture$/i,v=/\s*\{\s*width\s*\}\s*/i,d=/\s*\{\s*height\s*\}\s*/i,b=/\s*\{\s*([a-z0-9]+)\s*\}\s*/gi,A=/^\[.*\]|\{.*\}$/,w=/^(?:auto|\d+(px)?)$/,f=c.createElement("a"),t=c.createElement("img"),C="srcset"in t&&!("sizes"in t),E=!!p.HTMLPictureElement&&!C;function _(t,e,i){var r,n,s,a=0,o=0,l=i;if(t){if("container"===e.ratio){for(a=l.scrollWidth,o=l.scrollHeight;!(a&&o||l===c);)a=(l=l.parentNode).scrollWidth,o=l.scrollHeight;a&&o&&(e.ratio=e.traditionalRatio?o/a:a/o)}r=t,n=e,(s=[]).srcset=[],n.absUrl&&(f.setAttribute("href",r),r=f.href),r=((n.prefix||"")+r+(n.postfix||"")).replace(b,function(t,e){return u[typeof n[e]]?n[e]:t}),n.widths.forEach(function(t){var e=n.widthmap[t]||t,i=n.aspectratio||n.ratio,a=!n.aspectratio&&h.traditionalRatio,i={u:r.replace(v,e).replace(d,i?a?Math.round(t*i):Math.round(t/i):""),w:t};s.push(i),s.srcset.push(i.c=i.u+" "+t+"w")}),(t=s).isPicture=e.isPicture,C&&"IMG"==i.nodeName.toUpperCase()?i.removeAttribute(m.srcsetAttr):i.setAttribute(m.srcsetAttr,t.srcset.join(", ")),Object.defineProperty(i,"_lazyrias",{value:t,writable:!0})}}function N(t){return t.getAttribute(t.getAttribute("data-srcattr")||h.srcAttr)||t.getAttribute(m.srcsetAttr)||t.getAttribute(m.srcAttr)||t.getAttribute("data-pfsrcset")||""}!function(){var t,e={prefix:"",postfix:"",srcAttr:"data-src",absUrl:!1,modifyOptions:function(){},widthmap:{},ratio:!1,traditionalRatio:!1,aspectratio:!1};for(t in(m=y&&y.cfg).supportsType||(m.supportsType=function(t){return!t}),m.rias||(m.rias={}),"widths"in(h=m.rias)||(h.widths=[],function(t){for(var e,i=0;!e||e<3e3;)30<(i+=5)&&(i+=1),e=36*i,t.push(e)}(h.widths)),e)t in h||(h[t]=e[t])}(),addEventListener("lazybeforesizes",function(t){if(t.detail.instance==y){var e,i,a,r,n,s,o,l,c,u=t.target;if(t.detail.dataAttr&&!t.defaultPrevented&&!h.disabled&&(o=u.getAttribute(m.sizesAttr)||u.getAttribute("sizes"))&&w.test(o)){var d,f=N(u),t=function(r,t){function i(t,e){var i,a=r.getAttribute("data-"+t);if(a||(i=n.getPropertyValue("--ls-"+t))&&(a=i.trim()),a){if("true"==a)a=!0;else if("false"==a)a=!1;else if(z.test(a))a=parseFloat(a);else if("function"==typeof h[t])a=h[t](r,a);else if(A.test(a))try{a=JSON.parse(a)}catch(t){}s[t]=a}else t in h&&"function"!=typeof h[t]?s[t]=h[t]:e&&"function"==typeof h[t]&&(s[t]=h[t](r,a))}var e,n=p.getComputedStyle(r),a=r.parentNode,s={isPicture:!(!a||!g.test(a.nodeName||""))};for(e in h)i(e);return t.replace(b,function(t,e){e in s||i(e,!0)}),s}(d=u,f);
vendor: 2,318 bytes, lines 3-12
3if(h.modifyOptions.call(d,{target:d,details:t,detail:t}),y.fire(d,"lazyriasmodifyoptions",t),e=t,l=v.test(e.prefix)||v.test(e.postfix),e.isPicture&&(i=u.parentNode))for(r=0,n=(a=i.getElementsByTagName("source")).length;r<n;r++)(l||v.test(s=N(a[r])))&&(_(s,e,a[r]),c=!0);l||v.test(f)?(_(f,e,u),c=!0):c&&((f=[]).srcset=[],f.isPicture=!0,Object.defineProperty(u,"_lazyrias",{value:f,writable:!0})),c&&(E?u.removeAttribute(m.srcAttr):"auto"!=o&&(o={width:parseInt(o,10)},M({target:u,detail:o})))}}},!0);var r,M=(r=function(t){var e,i;t.detail.instance==y&&(i=t.target,C||!(p.respimage||p.picturefill||a.pf)?("_lazyrias"in i||t.detail.dataAttr&&x(i,!0))&&(e=function(t,e){var i,a,r,n,s,o=t._lazyrias;if(o.isPicture&&p.matchMedia)for(a=0,r=(i=t.parentNode.getElementsByTagName("source")).length;a<r;a++)if(x(i[a])&&!i[a].getAttribute("type")&&(!(n=i[a].getAttribute("media"))||(matchMedia(n)||{}).matches)){o=i[a]._lazyrias;break}return(!o.w||o.w<e)&&(o.w=e,o.d=(t=t,s=p.devicePixelRatio||1,t=y.getX&&y.getX(t),Math.min(t||s,2.4,s)),s=function(t){for(var e,i,a=t.length,r=t[a-1],n=0;n<a;n++)if((r=t[n]).d=r.w/t.w,r.d>=t.d){!r.cached&&(e=t[n-1])&&e.d>t.d-.13*Math.pow(t.d,2.2)&&(i=Math.pow(e.d-.6,1.6),e.cached&&(e.d+=.15*i),e.d+(r.d-t.d)*i>t.d&&(r=e));break}return r}(o.sort(l))),s}(i,t.detail.width))&&e.u&&i._lazyrias.cur!=e.u&&(i._lazyrias.cur=e.u,e.cached=!0,y.rAF(function(){i.setAttribute(m.srcAttr,e.u),i.setAttribute("src",e.u)})):c.removeEventListener("lazybeforesizes",r))},E?r=function(){}:addEventListener("lazybeforesizes",r),r);function l(t,e){return t.w-e.w}function x(t,e){var i;return!t._lazyrias&&y.pWS&&(i=y.pWS(t.getAttribute(m.srcsetAttr||""))).length&&(Object.defineProperty(t,"_lazyrias",{value:i,writable:!0}),e&&t.parentNode&&(i.isPicture="PICTURE"==t.parentNode.nodeName.toUpperCase())),t._lazyrias}});
4// even if the comment does not have directives such as `@license` or `/*!`.
5//
6// Implemented via the [`uglify-save-license`](https://github.com/shinnn/uglify-save-license)
7// module, this option preserves a comment if one of the following is true:
8//
9// 1. The comment is in the *first* line of a file
10// 2. A regular expression matches the string of the comment.
11//    For example: `MIT`, `@license`, or `Copyright`.
12// 3. There is a comment at the *previous* line, and it matches 1, 2, or 3.

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.