PageSourceSearch

https://www.9gbra.com/assets-retry.umd.js

js 9gbra.com collected 2026-10-09 22:19:33 UTC 7,127 bytes, 1 lines download raw bytes

1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).assetsRetry=e()}(this,function(){"use strict";function u(t){return t}function p(){}function t(t){for(var e=Object.getPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__},r=Object.keys(t);e(t);)r=r.concat(Object.keys(e(t))),t=e(t);return r.filter(function(t){return"constructor"!==t})}function n(t,e){try{return"function"==typeof t[e]}catch(t){return!1}}function f(t){return Array.isArray(t)?t.reduce(function(t,e,r,n){return t[e]=n[(r+1)%n.length],t},{}):t}function g(e,t){return Object.keys(t).filter(function(t){return-1<e.indexOf(t)}).sort(function(t,e){return e.length-t.length})[0]}var e,r,o,m="retryTimes",l="succeeded",b="failed",E="maxRetryCount",O="onRetry",d="onSuccess",j="onFail",w="domain",s="styleImageNoImportant",i="_assetsRetryProxy",h="_assetsRetryOnerror",y="script",a="link",A="data-assets-retry-hooked",k="data-assets-retry-ignore",R="data-retry-id",v=window,S=window.document,c=v.HTMLElement,L=v.HTMLScriptElement,T=v.HTMLStyleElement,x=v.HTMLLinkElement,I=v.HTMLImageElement,N=Object.prototype.hasOwnProperty,_=function(t,e,r){var n=t.indexOf(e);return-1===n?t:t.substring(0,n)+r+t.substring(n+e.length)},M=function(t){return[].slice.call(t)},H=function(e,t,r,n){void 0===r&&(r=p),void 0===n&&(n=!1);var o,i,a,c,u,f=n||e.defer||e.async;"loading"!==S.readyState||/Edge|MSIE|rv:/i.test(navigator.userAgent)||f?(o=S.createElement(y),Object.keys(L.prototype).forEach(function(t){if("src"!==t&&e[t]&&"object"!=typeof e[t])try{o[t]=e[t]}catch(t){}}),o.src=t,o.onload=e.onload,o.onerror=e.onerror,o.setAttribute(R,q()),(i=e.getAttribute("nonce"))&&o.setAttribute("nonce",i),S.getElementsByTagName("head")[0].appendChild(o)):(a=q(),c=e.outerHTML.replace(/data-retry-id="[^"]+"/,"").replace(/src=(?:"[^"]+"|.+)([ >])/,R+"="+a+' src="'+t+'"$1'),S.write(c),(u=S.querySelector("script["+R+'="'+a+'"]'))&&(u.onload=r))},P=function(e){try{return e.rules}catch(t){try{return e.cssRules}catch(t){return null}}},C=function(e,t,r){var n=S.createElement(a);Object.keys(x.prototype).forEach(function(t){if("href"!==t&&e[t]&&"object"!=typeof e[t])try{n[t]=e[t]}catch(t){}}),n.href=t,n.onload=r||e.onload,n.onerror=e.onerror,n.setAttribute(R,q()),S.getElementsByTagName("head")[0].appendChild(n)},B=function(t){return t?t instanceof c?[t.nodeName,t.src,t.href,t.getAttribute(R)].join(";"):"not_supported":"null"},q=function(){return Math.random().toString(36).slice(2)},z=function(t){return t instanceof L||t instanceof I?t.src:t instanceof x?t.href:""},F={},Z=function(t,e){var r,n=$(t,e),o=n[0],i=n[1];return o?(F[o]=F[o]||((r={})[m]=0,r[b]=[],r[l]=[],r),[i,F[o]]):[]},$=function(t,e){var r,n,o=g(t,e);return o?[(n=o,(r=t).substr(r.indexOf(n)+n.length,r.length)),o]:["",""]};try{r=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}(t(L.prototype),t(x.prototype)),o={},r.forEach(function(t){o[t]=!0}),e=Object.keys(o)}catch(t){}function D(s,t){var l=t[E],d=f(t[w]),y=t[O];return e.reduce(function(t,r){var e=n(L.prototype,r);return t[r]=e?{value:function(){return s[i][r].apply(s[i],arguments)}}:{set:function(e){var f=s[i];return"onerror"===r?(s[h]=e,void(f.onerror=function(n){if("string"!=typeof n){n.stopPropagation&&n.stopPropagation();var t=function(){return t=s[h],e=f,r=n,"function"!=typeof t?null:t.call(e,r);var t,e,r},e=z(f),r=Z(e,d),o=r[0],i=r[1],a=f.hasAttribute(k);if(!o||!i||a)return t();var c=_(e,o,d[o]),u=y(c,e,i);if(null===u)return t();if("string"!=typeof u)throw new Error("a string should be returned in `onRetry` function");i[m]<=l?f instanceof L?H(f,u,p,!0):f instanceof x&&C(f,u):t()}})):"onload"===r?(s._assetsRetryOnload=e,void(s[i].onload=function(t){e&&!e._called&&(e._called=!0,e.call(s[i],t))})):void(f[r]=e)},get:function(){return s[i][r]}},t},{})}var G=function(r){var n=S.createElement;S.createElement=function(t,e){return t===y||t===a?function(t,e){var r;t.setAttribute(A,"true");var n=((r={})[i]=t,r[h]=p,r),o=D(n,e);return Object.defineProperties(n,o),n.onload=p,n.onerror=p,n}(n.call(S,t),r):n.call(S,t,e)}},J=function(r){Object.keys(r).filter(function(t){return n(r,t)}
1).forEach(function(t){var e=r[t];r[t]=function(){var t=[].slice.call(arguments).map(function(t){return t&&N.call(t,i)?t[i]:t});return e.apply(this,t)}})};var K={};function Q(y){function f(t){if(t){var e=t.target||t.srcElement,r=z(e);if(r){var n=Z(r,v),o=n[0],i=n[1],a=e instanceof HTMLElement&&e.hasAttribute(k);if(i&&o&&!a){i[m]++,i[b].push(r);var c,u=i[m]>y[E];if(u&&(c=$(r,v)[0],h(c)),v[o]&&!u){var f=v[o],s=_(r,o,f),l=p(s,r,i);if(null!==l){if("string"!=typeof l)throw new Error("a string should be returned in `onRetry` function");if(e instanceof I&&e.src)return e.setAttribute(R,q()),void(e.src=l);var d=B(e);K[d]||(K[d]=!0,e instanceof L&&!e.getAttribute(A)&&e.src?H(e,l):e instanceof x&&!e.getAttribute(A)&&e.href&&C(e,l))}}}}}}var p=y[O],s=y[d],h=y[j],v=y[w];S.addEventListener("error",f,!0),S.addEventListener("load",function(t){var e,r,n,o,i,a,c,u;t&&(e=t.target||t.srcElement,(r=z(e))&&((n=Z(r,v))[0],o=n[1],i=$(r,v)[0],a=function(){o&&o[l].push(r),s(i)},e instanceof x?S.styleSheets&&(c=M(S.styleSheets).filter(function(t){return t.href===e.href})[0],null!==(u=P(c))&&(0!==u.length?a():f(t))):a()))},!0)}function U(t,e,r,n,o){var i,a=o[w],c=o[O],u=e.style&&e.style[t];if(u&&!/^url\(["']?data:/.test(u)){var f=u.match(/^url\(["']?(.+?)["']?\)/)||[],s=f[1];if(s){var l=g(s,a);if(l){for(var d=l,y=((i={})[d]=!0,i);d&&a[d];){var p=a[d];if(y[p])break;y[p]=!0,d=p}var h=Object.keys(y).map(function(t){var e=_(s,l,t),r=c(e,s,null);return r?'url("'+r+'")':null}).filter(Boolean).join(","),v=e.selectorText+("{ "+t.replace(/([a-z])([A-Z])/g,function(t,e,r){return e+"-"+r.toLowerCase()})+": "+h+" "+(o.styleImageNoImportant?"":"!important"))+"; }";try{r.insertRule(v,n.length)}catch(t){r.insertRule(v,0)}}}}}var V={},W=[],X=function(t,o){var i=["backgroundImage","borderImage","listStyleImage"];t.forEach(function(r){var n,t=P(r);null!==t&&((n=M(t)).forEach(function(e){i.forEach(function(t){U(t,e,r,n,o)})}),r.href&&(V[r.href]=!0),r.ownerNode instanceof T&&W.push(r.ownerNode))})},Y=function(t,r){return M(t).filter(function(t){if(!P(t))return!1;if(t.href)return!V[t.href]&&!!g(t.href,r);var e=t.ownerNode;return!(e instanceof T&&-1<W.indexOf(e))})};return function(t){var e,r,n,o;void 0===t&&(t={});try{if("object"!=typeof t[w])throw new Error("opts.domain cannot be non-object.");var i=[E,O,d,j,w,s],a=Object.keys(t).filter(function(t){return-1===i.indexOf(t)});if(0<a.length)throw new Error("option name: "+a.join(", ")+" is not valid.");var c=((e={})[E]=t[E]||3,e[O]=t[O]||u,e[d]=t[d]||p,e[j]=t[j]||p,e[w]=f(t[w]),e[s]=t[s]||!1,e);return G(c),"undefined"!=typeof Node&&J(Node.prototype),"undefined"!=typeof Element&&J(Element.prototype),Q(c),r=c,n=S.styleSheets,o=r[w],n&&setInterval(function(){var t=Y(S.styleSheets,o);0<t.length&&X(t,r)},250),F}catch(t){v.console&&console.error("[assetsRetry] error captured",t)}}});

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.