PageSourceSearch

https://readlang.com/serviceWorker.js?cacheBust=

js readlang.com collected 2026-10-01 12:32:02 UTC 4,922 bytes, 4 lines download raw bytes

1!function(){"use strict";function t(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function n(t,n,e,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?n(u):Promise.resolve(u).then(r,o)}function e(n,e){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=function(n,e){if(n){if("string"==typeof n)return t(n,e);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,e):void 0}}(n))||e){r&&(n=r);var o=0,i=function(){};return{s:i,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){r=r.call(n)},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw a}}}}function r(){
2/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3var t,n,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",a=e.toStringTag||"@@toStringTag";function c(e,r,i,a){var c=r&&r.prototype instanceof f?r:f,l=Object.create(c.prototype);return o(l,"_invoke",function(e,r,o){var i,a,c,f=0,l=o||[],s=!1,v={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,e){return i=n,a=0,c=t,v.n=e,u}};function d(e,r){for(a=e,c=r,n=0;!s&&f&&!o&&n<l.length;n++){var o,i=l[n],d=v.p,p=i[2];e>3?(o=p===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=e<2&&d<i[1])?(a=0,v.v=r,v.n=i[1]):d<p&&(o=e<3||i[0]>r||r>p)&&(i[4]=e,i[5]=r,v.n=p,a=0))}if(o||e>1)return u;throw s=!0,r}return function(o,l,p){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&d(l,p),a=l,c=p;(n=a<2?t:c)||!s;){i||(a?a<3?(a>1&&(v.n=-1),d(a,c)):v.n=c:v.v=c);try{if(f=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(s=v.n<0)?c:e.call(r,v))!==u)break}catch(n){i=t,a=1,c=n}finally{f=1}}return{value:n,done:s}}}(e,i,a),!0),l}var u={};function f(){}function l(){}function s(){}n=Object.getPrototypeOf;var v=[][i]?n(n([][i]())):(o(n={},i,function(){return this}),n),d=s.prototype=f.prototype=Object.create(v);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,o(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=s,o(d,"constructor",s),o(s,"constructor",l),l.displayName="GeneratorFunction",o(s,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,i,function(){return this}),o(d,"toString",function(){return"[object Generator]"}),(r=function(){return{w:c,m:p}})()}function o(t,n,e,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}o=function(t,n,e,r){function a(n,e){o(t,n,function(t){return this._invoke(n,e,t)})}n?i?i(t,n,{value:e,enumerable:!r,configurable:!r,writable:!r}):t[n]=e:(a("next",0),a("throw",1),a("return",2))},o(t,n,e,r)}self.addEventListener("install",function(){self.skipWaiting()}),self.addEventListener("activate",function(t){t.waitUntil(self.clients.claim())}),self.addEventListener("push",function(){var t,e=(t=r().m(function t(n){var e;return r().w(function(t){for(;;)switch(t.n){case 0:e=n.data.json(),self.registration.showNotification(e.title,{body:e.body,data:{path:e.path||"/"}}),navigator.setAppBadge&&e.badgeCount&&navigator.setAppBadge(e.badgeCount),i();case 1:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)})});return function(t){return e.apply(this,arguments)}}()),self.addEventListener("notificationclick",function(t){var n,r=t.notification,o=(null==(n=r.data)?void 0:n.path)||"/";r.close(),t.waitUntil(self.clients.matchAll({type:"window",includeUncontrolled:!0}).then(function(t){var n,r=e(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.url.includes(self.location.origin)&&"focus"in i)return"navigate"in i?(i.navigate(self.location.origin+o),i.focus()):(i.postMessage({type:"NOTIFICATION_CLICKED",path:o}),i.focus())}}catch(t){r.e(t)}finally{r.f()}if(self.clients.openWindow)return self.clients.openWindow(o)}))});var i=function(){var t;null==(t=null==self?void 0:self.clients)||t.matchAll({type:"window",includeUncontrolled:!0}).then(function(t){var n,r=e(t);try{for(r.s();!(n=r.n()).done;){n.value.postMessage({type:"PUSH_NOTIFICATION_RECEIVED"})}}catch(t){r.e(t)}finally{r.f()}})}}();
4//# sourceMappingURL=serviceWorker.js.map

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.