akkoma/priv/static/sw.js

3 lines
65 KiB
JavaScript
Raw Normal View History

2018-06-02 14:11:38 +00:00
var __wpo = {"assets":{"main":["/packs/base_polyfills.js","/packs/extra_polyfills.js","/packs/features/compose.js","/packs/modals/onboarding_modal.js","/packs/emoji_picker.js","/packs/features/notifications.js","/packs/features/account_timeline.js","/packs/features/home_timeline.js","/packs/features/public_timeline.js","/packs/features/community_timeline.js","/packs/features/direct_timeline.js","/packs/features/pinned_statuses.js","/packs/features/domain_blocks.js","/packs/features/favourited_statuses.js","/packs/features/list_timeline.js","/packs/features/following.js","/packs/features/followers.js","/packs/features/hashtag_timeline.js","/packs/features/account_gallery.js","/packs/features/status.js","/packs/features/lists.js","/packs/modals/report_modal.js","/packs/features/follow_requests.js","/packs/features/mutes.js","/packs/features/blocks.js","/packs/features/reblogs.js","/packs/features/favourites.js","/packs/features/getting_started.js","/packs/features/keyboard_shortcuts.js","/packs/modals/mute_modal.js","/packs/features/generic_not_found.js","/packs/features/list_editor.js","/packs/modals/embed_modal.js","/packs/status/media_gallery.js","/packs/containers/media_container.js","/packs/share.js","/packs/application.js","/packs/about.js","/packs/mailer.js","/packs/mastodon-light.js","/packs/contrast.js","/packs/default.js","/packs/public.js","/packs/admin.js","/packs/common.js","/packs/common.css","/packs/mailer.css","/packs/default.css","/packs/contrast.css","/packs/mastodon-light.css","/packs/manifest.json"],"additional":["/emoji/1f602.svg","/emoji/sheet.png"],"optional":["/packs/locale_zh-TW.js","/packs/locale_zh-HK.js","/packs/locale_zh-CN.js","/packs/locale_uk.js","/packs/locale_tr.js","/packs/locale_th.js","/packs/locale_te.js","/packs/locale_sv.js","/packs/locale_sr.js","/packs/locale_sr-Latn.js","/packs/locale_sl.js","/packs/locale_sk.js","/packs/locale_ru.js","/packs/locale_pt.js","/packs/locale_pt-BR.js","/packs/locale_pl.js","/packs/locale_oc.js","/packs/locale_no.js","/packs/locale_nl.js","/packs/locale_ko.js","/packs/locale_ja.js","/packs/locale_it.js","/packs/locale_io.js","/packs/locale_id.js","/packs/locale_hy.js","/packs/locale_hu.js","/packs/locale_hr.js","/packs/locale_he.js","/packs/locale_gl.js","/packs/locale_fr.js","/packs/locale_fi.js","/packs/locale_fa.js","/packs/locale_eu.js","/packs/locale_es.js","/packs/locale_eo.js","/packs/locale_en.js","/packs/locale_el.js","/packs/locale_de.js","/packs/locale_co.js","/packs/locale_ca.js","/packs/locale_bg.js","/packs/locale_ar.js","/packs/roboto-italic-webfont-50efdad8c62f5f279e3f4f1f63a4f9bc.woff2","/packs/roboto-bold-webfont-f633cb5c651ba4d50791e1adf55d3c18.woff2","/packs/roboto-medium-webfont-69c55fc2fe77d38934ea98dc31642ce6.woff2","/packs/roboto-regular-webfont-3ec24f953ed5e859a6402cb3c030ea8b.woff2","/packs/fontawesome-webfont-af7ae505a9eed503f8b8e6982036873e.woff2","/packs/robotomono-regular-webfont-6c1ce30b90ee993b22618ec489585594.woff2","/packs/Montserrat-Regular-080422d4c1328f3407818d25c86cce51.woff2","/packs/void-65dfe5bd31335a5b308d36964d320574.png","/packs/reticle-7d7ce959271e5ff1193fb32cff90ea56.png","/packs/elephant-fren-d16fd77f9a9387e7d146b5f9d4dc1e7f.png","/packs/icon_cached-98a757f1d9e93652742be43c22f46287.png","/packs/icon_done-12b87c12f915597dccbd2ca4d7167ba4.png","/packs/icon_email-738c89662d6640f5e6539151023d049a.png","/packs/icon_file_download-e5c29678f3a639e1e62374911d85e1d0.png","/packs/icon_grade-3ec67253b37908d2ab783f7225f20682.png","/packs/icon_lock_open-0bfd71a52eb3f34934edd59088b559fb.png","/packs/icon_person_add-e2c6b660f6e1c95785d8d2bfa7a823af.png","/packs/icon_reply-4f6ada7a0b886b084706a484753a0ff0.png","/packs/logo_full-5c51cffe1fcb8225ae02400d6a7e7077.png","/packs/logo_transparent-6f79eeb2c38ec2d12ed4d978322457d6.png","/packs/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","/packs/elephant_ui_plane-e3f2d57c12c376e189c274cbe81af8dd.svg","/packs/elephant_ui_disappointed-8864342480c3612e3061702851d3a798.svg","/packs/elephant_ui_greeting-475430963d0b00fe82b07b17857ebf6c.svg","/packs/elephant_ui_working-2e653cc278c2ac87
2017-11-12 13:23:05 +00:00
2018-06-02 14:11:38 +00:00
!function(t){function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e={};n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="/packs/",n(n.s=2)}([function(t,n,e){var o=e(10),i=o.Symbol;t.exports=i},function(t,n,e){"use strict";function o(t){var n,e,o,a,r=Array.prototype.slice.call(arguments,1);for(n=0,e=r.length;n<e;n+=1)if(o=r[n])for(a in o)i.call(o,a)&&(t[a]=o[a]);return t}n.extend=o;var i=Object.prototype.hasOwnProperty;n.hop=i},function(t,n,e){"use strict";function o(t,n){return caches.match(t,{cacheName:n}).then(function(e){return r()?e:u(e).then(function(e){return caches.open(n).then(function(n){return n.put(t,e)}).then(function(){return e})})}).catch(function(){})}function i(t,n){return t+(-1!==t.indexOf("?")?"&":"?")+"__uncache="+encodeURIComponent(n)}function a(t){return"navigate"===t.mode||t.headers.get("Upgrade-Insecure-Requests")||-1!==(t.headers.get("Accept")||"").indexOf("text/html")}function r(t){return!t||!t.redirected||!t.ok||"opaqueredirect"===t.type}function u(t){return r(t)?Promise.resolve(t):("body"in t?Promise.resolve(t.body):t.blob()).then(function(n){return new Response(n,{headers:t.headers,status:t.status})})}function s(t){return Object.keys(t).reduce(function(n,e){return n[e]=t[e],n},{})}function c(t,n){n.forEach(function(t){})}if(function(){var t=ExtendableEvent.prototype.waitUntil,n=FetchEvent.prototype.respondWith,e=new WeakMap;ExtendableEvent.prototype.waitUntil=function(n){var o=this,i=e.get(o);return i?void i.push(Promise.resolve(n)):(i=[Promise.resolve(n)],e.set(o,i),t.call(o,Promise.resolve().then(function t(){var n=i.length;return Promise.all(i.map(function(t){return t.catch(function(){})})).then(function(){return i.length!=n?t():(e.delete(o),Promise.all(i))})})))},FetchEvent.prototype.respondWith=function(t){return this.waitUntil(t),n.call(this,t)}}(),void 0===f)var f=!1;!function(t,n){function e(){if(!k.additional.length)return Promise.resolve();var t=void 0;return t="changed"===j?f("additional"):r("additional"),t.catch(function(t){})}function r(n){var e=k[n];return caches.open(S).then(function(n){return g(n,e,{bust:t.version,request:t.prefetchRequest})}).then(function(){c("Cached assets: "+n,e)}).catch(function(t){throw t})}function f(n){return m().then(function(e){if(!e)return r(n);var o=e[0],i=e[1],a=e[2],u=a.hashmap,s=a.version;if(!a.hashmap||s===t.version)return r(n);var f=Object.keys(u).map(function(t){return u[t]}),l=i.map(function(t){var n=new URL(t.url);return n.search="",n.hash="",n.toString()}),m=k[n],p=[],d=m.filter(function(t){return-1===l.indexOf(t)||-1===f.indexOf(t)});Object.keys(O).forEach(function(t){var n=O[t];if(-1!==m.indexOf(n)&&-1===d.indexOf(n)&&-1===p.indexOf(n)){var e=u[t];e&&-1!==l.indexOf(e)?p.push([e,n]):d.push(n)}}),c("Changed assets: "+n,d),c("Moved assets: "+n,p);var h=Promise.all(p.map(function(t){return o.match(t[0]).then(function(n){return[t[1],n]})}));return caches.open(S).then(function(n){var e=h.then(function(t){return Promise.all(t.map(function(t){return n.put(t[0],t[1])}))});return Promise.all([e,g(n,d,{bust:t.version,request:t.prefetchRequest})])})})}function l(){return caches.keys().then(function(t){var n=t.map(function(t){if(0===t.indexOf(A)&&0!==t.indexOf(S))return caches.delete(t)});return Promise.all(n)})}function m(){return caches.keys().then(function(t){for(var n=t.length,e=void 0;n--&&(e=t[n],0!==e.indexOf(A)););if(e){var o=void 0;return caches.open(e).then(function(t){return o=t,t.match(new URL(R,location).toString())}).then(function(t){if(t)return Promise.all([o,o.keys(),t.json()])})}})}function p(){return caches.open(S).then(function(n){var e=new Response(JSON.stringify({version:t.version,hashmap:O}));return n.put(new URL(R,location).toString(),e)})}function d(t,n,e){return o(e,S).then(function(o){return o||fetch(t.r