spc-pleroma/priv/static/sw.js

3 lines
52 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var __wpo = {"assets":{"main":[],"additional":[],"optional":[]},"externals":[],"hashesMap":{},"strategy":"changed","responseStrategy":"cache-first","version":"3/7/2019, 10:51:00 AM","name":"webpack-offline:mastodon","pluginVersion":"5.0.6","relativePaths":false};
!function(e){var n={};function i(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=n,i.d=function(t,o,e){i.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(o,t){if(1&t&&(o=i(o)),8&t)return o;if(4&t&&"object"==typeof o&&o&&o.__esModule)return o;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:o}),2&t&&"string"!=typeof o)for(var n in o)i.d(e,n,function(t){return o[t]}.bind(null,n));return e},i.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(o,"a",o),o},i.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},i.p="/packs/",i(i.s=5)}([function(t,o,e){var n=e(8).Symbol;t.exports=n},function(t,o,e){"use strict";o.extend=function(t){var o,e,n,i,a=Array.prototype.slice.call(arguments,1);for(o=0,e=a.length;o<e;o+=1)if(n=a[o])for(i in n)r.call(n,i)&&(t[i]=n[i]);return t};var r=Object.prototype.hasOwnProperty;o.hop=r},function(t,o,e){var n=e(6),i=e(18),a=/&(?:amp|lt|gt|quot|#39);/g,r=RegExp(a.source);t.exports=function(t){return(t=n(t))&&r.test(t)?t.replace(a,i):t}},function(t,o,e){"use strict";var n=e(20).default;e(27),(o=t.exports=n).default=o},function(t,o){t.exports={ar:{"notification.favourite":"أُعجِب {name} بمنشورك","notification.follow":"{name} يتابعك","notification.mention":"{name} ذكرك","notification.reblog":"{name} قام بترقية تبويقك","status.show_more":"أظهر المزيد","status.reblog":"رَقِّي","status.favourite":"أضف إلى المفضلة","notifications.group":"{count} إشعارات"},ast:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} siguióte","notification.mention":"{name} mentóte","notification.reblog":"{name} compartió'l to estáu","status.show_more":"Amosar más","status.reblog":"Compartir","status.favourite":"Favourite","notifications.group":"{count} avisos"},bg:{"notification.favourite":"{name} хареса твоята публикация","notification.follow":"{name} те последва","notification.mention":"{name} те спомена","notification.reblog":"{name} сподели твоята публикация","status.show_more":"Show more","status.reblog":"Споделяне","status.favourite":"Предпочитани","notifications.group":"{count} notifications"},ca:{"notification.favourite":"{name} ha afavorit el teu estat","notification.follow":"{name} et segueix","notification.mention":"{name} t'ha esmentat","notification.reblog":"{name} ha retootejat el teu estat","status.show_more":"Mostra més","status.reblog":"Impuls","status.favourite":"Favorit","notifications.group":"{count} notificacions"},co:{"notification.favourite":"{name} hà aghjuntu u vostru statutu à i so favuriti","notification.follow":"{name} v'hà seguitatu","notification.mention":"{name} v'hà mintuvatu","notification.reblog":"{name} hà spartutu u vostru statutu","status.show_more":"Slibrà","status.reblog":"Sparte","status.favourite":"Aghjunghje à i favuriti","notifications.group":"{count} nutificazione"},cs:{"notification.favourite":"{name} si oblíbil/a váš příspěvek","notification.follow":"{name} vás začal/a sledovat","notification.mention":"{name} vás zmínil/a","notification.reblog":"{name} boostnul/a váš příspěvek","status.show_more":"Zobrazit více","status.reblog":"Boostnout","status.favourite":"Oblíbit","notifications.group":"{count} oznámení"},cy:{"notification.favourite":"hoffodd {name} eich tŵt","notification.follow":"dilynodd {name} chi","notification.mention":"Soniodd {name} amdanoch chi","notification.reblog":"Hysbysebodd {name} eich tŵt","status.show_more":"Dangos mwy","status.reblog":"Hybu","status.favourite":"Hoffi","notifications.group":"{count} o hysbysiadau"},da:{"notification.favourite":"{name} favoriserede din status","notification.follow":"{name} fulgte dig","notification.mention":"{name} nævnte dig","notification.reblog":"{name} fremhævede din status","status.show_more":"Vis mere","status.reblog":"Fremhæv","status.favourite":"Favorit","notifications.group":"{count} notifikationer"},de:{"notification.favourite":"{name} hat deinen Beitrag favorisiert","notification.follow":"{name} folgt dir","notification.mention":"{name} hat dich erwähnt","notification.reblog":"{name} hat deinen Beitrag geteilt","status.show_more":"Mehr anzeigen","status.reblog":"Teilen","status.favourite":"Favorisieren","notifications.group":"{count} Benachrichtigungen"},el:{"notification.favourite":"Ο/Η {name} σημείωσε ως αγαπημένη την κατάστασή σου","notification.follow":"Ο/Η {name} σε ακολούθησε","notification.mention":"Ο/Η {name} σε ανέφερε","notification.reblog":"Ο/Η {name} προώθησε την κατάστασή σου","status.show_more":"Δείξε περισσότερα","status.reblog":"Προώθησε","status.favourite":"Σημείωσε ως αγαπημένο","notifications.group":"{count} ειδοποιήσεις"},en:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Show more","status.reblog":"Boost","status.favourite":"Favourite","notifications.group":"{count} notifications"},eo:{"notification.favourite":"{name} stelumis vian mesaĝon","notification.follow":"{name} eksekvis vin","notification.mention":"{name} menciis vin","notification.reblog":"{name} diskonigis vian mesaĝon","status.show_more":"Grandigi","status.reblog":"Diskonigi","status.favourite":"Stelumi","notifications.group":"{count} sciigoj"},es:{"notification.favourite":"{name} marcó tu estado como favorito","notification.follow":"{name} te empezó a seguir","notification.mention":"{name} te ha mencionado","notification.reblog":"{name} ha retooteado tu estado","status.show_more":"Mostrar más","status.reblog":"Retootear","status.favourite":"Favorito","notifications.group":"{count} notificaciones"},eu:{"notification.favourite":"{name}(e)k zure mezua gogoko du","notification.follow":"{name}(e)k jarraitzen zaitu","notification.mention":"{name}(e)k aipatu zaitu","notification.reblog":"{name}(e)k bultzada eman dio zure mezuari","status.show_more":"Erakutsi gehiago","status.reblog":"Bultzada","status.favourite":"Gogokoa","notifications.group":"{count} jakinarazpen"},fa:{"notification.favourite":"{name} نوشتهٔ شما را پسندید","notification.follow":"{name} پیگیر شما شد","notification.mention":"{name} از شما نام برد","notification.reblog":"{name} نوشتهٔ شما را بازبوقید","status.show_more":"نمایش","status.reblog":"بازبوقیدن","status.favourite":"پسندیدن","notifications.group":"{count} اعلان"},fi:{"notification.favourite":"{name} tykkäsi tilastasi","notification.follow":"{name} seurasi sinua","notification.mention":"{name} mainitsi sinut","notification.reblog":"{name} buustasi tilaasi","status.show_more":"Näytä lisää","status.reblog":"Buustaa","status.favourite":"Tykkää","notifications.group":"{count} notifications"},fr:{"notification.favourite":"{name} a ajouté à ses favoris:","notification.follow":"{name} vous suit","notification.mention":"{name} vous a mentionné:","notification.reblog":"{name} a partagé votre statut:","status.show_more":"Déplier","status.reblog":"Partager","status.favourite":"Ajouter aux favoris","notifications.group":"{count} notifications"},gl:{"notification.favourite":"{name} marcou como favorito o seu estado","notification.follow":"{name} está a seguila","notification.mention":"{name} mencionoute","notification.reblog":"{name} promoveu o seu estado","status.show_more":"Mostrar máis","status.reblog":"Promover","status.favourite":"Favorita","notifications.group":"{count} notificacións"},he:{"notification.favourite":"חצרוצך חובב על ידי {name}","notification.follow":"{name} במעקב אחרייך","notification.mention":"אוזכרת על ידי {name}","notification.reblog":"חצרוצך הודהד על ידי {name}","status.show_more":"הראה יותר","status.reblog":"הדהוד","status.favourite":"חיבוב","notifications.group":"{count} notifications"},hr:{"notification.favourite":"{name} je lajkao tvoj status","notification.follow":"{name} te sada slijedi","notification.mention":"{name} te je spomenuo","notification.reblog":"{name} je podigao tvoj status","status.show_more":"Pokaži više","status.reblog":"Podigni","status.favourite":"Označi omiljenim","notifications.group":"{count} notifications"},hu:{"notification.favourite":"{name} kedvencnek jelölte az állapotod","notification.follow":"{name} követ téged","notification.mention":"{name} megemlített","notification.reblog":"{name} rebloggolta az állapotod","status.show_more":"Többet","status.reblog":"Reblog","status.favourite":"Kedvenc","notifications.group":"{count} notifications"},hy:{"notification.favourite":"{name} հավանեց թութդ","notification.follow":"{name} սկսեց հետեւել քեզ","notification.mention":"{name} նշեց քեզ","notification.reblog":"{name} տարածեց թութդ","status.show_more":"Ավելին","status.reblog":"Տարածել","status.favourite":"Հավանել","notifications.group":"{count} notifications"},id:{"notification.favourite":"{name} menyukai status anda","notification.follow":"{name} mengikuti anda","notification.mention":"{name} mentioned you","notification.reblog":"{name} mem-boost status anda","status.show_more":"Tampilkan semua","status.reblog":"Boost","status.favourite":"Difavoritkan","notifications.group":"{count} notifications"},io:{"notification.favourite":"{name} favorizis tua mesajo","notification.follow":"{name} sequeskis tu","notification.mention":"{name} mencionis tu","notification.reblog":"{name} repetis tua mesajo","status.show_more":"Montrar plue","status.reblog":"Repetar","status.favourite":"Favorizar","notifications.group":"{count} notifications"},it:{"notification.favourite":"{name} ha apprezzato il tuo post","notification.follow":"{name} ha iniziato a seguirti","notification.mention":"{name} ti ha menzionato","notification.reblog":"{name} ha condiviso il tuo post","status.show_more":"Mostra di più","status.reblog":"Condividi","status.favourite":"Apprezzato","notifications.group":"{count} notifiche"},ja:{"notification.favourite":"{name}さんがあなたのトゥートをお気に入りに登録しました","notification.follow":"{name}さんにフォローされました","notification.mention":"{name}さんがあなたに返信しました","notification.reblog":"{name}さんがあなたのトゥートをブーストしました","status.show_more":"もっと見る","status.reblog":"ブースト","status.favourite":"お気に入り","notifications.group":"{count} 件の通知"},ka:{"notification.favourite":"{name}-მა თქვენი სტატუსი აქცია ფავორიტად","notification.follow":"{name} გამოგყვათ","notification.mention":"{name}-მა გასახელათ","notification.reblog":"{name}-მა დაბუსტა თქვენი სტატუსი","status.show_more":"აჩვენე მეტი","status.reblog":"ბუსტი","status.favourite":"ფავორიტი","notifications.group":"{count} შეტყობინება"},kk:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Show more","status.reblog":"Boost","status.favourite":"Favourite","notifications.group":"{count} notifications"},ko:{"notification.favourite":"{name}님이 즐겨찾기 했습니다","notification.follow":"{name}님이 나를 팔로우 했습니다","notification.mention":"{name}님이 답글을 보냈습니다","notification.reblog":"{name}님이 부스트 했습니다","status.show_more":"더 보기","status.reblog":"부스트","status.favourite":"즐겨찾기","notifications.group":"{count} 개의 알림"},lv:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Show more","status.reblog":"Boost","status.favourite":"Favourite","notifications.group":"{count} notifications"},ms:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Show more","status.reblog":"Boost","status.favourite":"Favourite","notifications.group":"{count} notifications"},nl:{"notification.favourite":"{name} voegde jouw toot als favoriet toe","notification.follow":"{name} volgt jou nu","notification.mention":"{name} vermeldde jou","notification.reblog":"{name} boostte jouw toot","status.show_more":"Meer tonen","status.reblog":"Boost","status.favourite":"Favoriet","notifications.group":"{count} meldingen"},no:{"notification.favourite":"{name} likte din status","notification.follow":"{name} fulgte deg","notification.mention":"{name} nevnte deg","notification.reblog":"{name} fremhevde din status","status.show_more":"Vis mer","status.reblog":"Fremhev","status.favourite":"Lik","notifications.group":"{count} notifications"},oc:{"notification.favourite":"{name} a ajustat a sos favorits","notification.follow":"{name} vos sèc","notification.mention":"{name} vos a mencionat","notification.reblog":"{name} a partejat vòstre estatut","status.show_more":"Desplegar","status.reblog":"Partejar","status.favourite":"Apondre als favorits","notifications.group":"{count} notificacions"},pl:{"notification.favourite":"{name} dodał(a) Twój wpis do ulubionych","notification.follow":"{name} zaczął(-ęła) Cię śledzić","notification.mention":"{name} wspomniał(a) o tobie","notification.reblog":"{name} podbił(a) Twój wpis","status.show_more":"Rozwiń","status.reblog":"Podbij","status.favourite":"Dodaj do ulubionych","notifications.group":"{count, number} {count, plural, one {powiadomienie} few {powiadomienia} many {powiadomień} more {powiadomień}}"},"pt-BR":{"notification.favourite":"{name} adicionou a sua postagem aos favoritos","notification.follow":"{name} te seguiu","notification.mention":"{name} te mencionou","notification.reblog":"{name} compartilhou a sua postagem","status.show_more":"Mostrar mais","status.reblog":"Compartilhar","status.favourite":"Adicionar aos favoritos","notifications.group":"{count} notificações"},pt:{"notification.favourite":"{name} adicionou o teu post aos favoritos","notification.follow":"{name} seguiu-te","notification.mention":"{name} mencionou-te","notification.reblog":"{name} partilhou o teu post","status.show_more":"Mostrar mais","status.reblog":"Partilhar","status.favourite":"Adicionar aos favoritos","notifications.group":"{count} notifications"},ro:{"notification.favourite":"{name} a adăugat statusul tău la favorite","notification.follow":"{name} te urmărește","notification.mention":"{name} te-a menționat","notification.reblog":"{name} a redistribuit postarea ta","status.show_more":"Arată mai mult","status.reblog":"Redistribuie","status.favourite":"Favorite","notifications.group":"{count} notificări"},ru:{"notification.favourite":"{name} понравился Ваш статус","notification.follow":"{name} подписался(-лась) на Вас","notification.mention":"{name} упомянул(а) Вас","notification.reblog":"{name} продвинул(а) Ваш статус","status.show_more":"Развернуть","status.reblog":"Продвинуть","status.favourite":"Нравится","notifications.group":"{count} уведомл."},sk:{"notification.favourite":"{name} sa páči tvoj status","notification.follow":"{name} ťa začal/a následovať","notification.mention":"{name} ťa spomenul/a","notification.reblog":"{name} zdieľal/a tvoj status","status.show_more":"Ukáž viac","status.reblog":"Povýšiť","status.favourite":"Páči sa mi","notifications.group":"{count} oboznámení"},sl:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Prikaži več","status.reblog":"Suni","status.favourite":"Favourite","notifications.group":"{count} notifications"},sq:{"notification.favourite":"{name} parapëlqeu gjendjen tuaj","notification.follow":"{name} zuri tju ndjekë","notification.mention":"{name} ju ka përmendur","notification.reblog":"përforcoi gjendjen tuaj","status.show_more":"Shfaq më tepër","status.reblog":"Përforcojeni","status.favourite":"I parapëlqyer","notifications.group":"%(count)s njoftime"},"sr-Latn":{"notification.favourite":"{name} je stavio Vaš status kao omiljeni","notification.follow":"{name} Vas je zapratio","notification.mention":"{name} Vas je pomenuo","notification.reblog":"{name} je podržao(la) Vaš status","status.show_more":"Prikaži više","status.reblog":"Podrži","status.favourite":"Omiljeno","notifications.group":"{count} notifications"},sr:{"notification.favourite":"{name} је ставио/ла Ваш статус као омиљени","notification.follow":"{name} Вас је запратио/ла","notification.mention":"{name} Вас је поменуо/ла","notification.reblog":"{name} је подржао/ла Ваш статус","status.show_more":"Прикажи више","status.reblog":"Подржи","status.favourite":"Омиљено","notifications.group":"{count} обавештења"},sv:{"notification.favourite":"{name} favoriserade din status","notification.follow":"{name} följer dig","notification.mention":"{name} nämnde dig","notification.reblog":"{name} knuffade din status","status.show_more":"Visa mer","status.reblog":"Knuff","status.favourite":"Favorit","notifications.group":"{count} aviseringar"},ta:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Show more","status.reblog":"Boost","status.favourite":"Favourite","notifications.group":"{count} notifications"},te:{"notification.favourite":"{name} మీ స్టేటస్ ను ఇష్టపడ్డారు","notification.follow":"{name} మిమ్మల్ని అనుసరిస్తున్నారు","notification.mention":"{name} మిమ్మల్ని ప్రస్తావించారు","notification.reblog":"{name} మీ స్టేటస్ ను బూస్ట్ చేసారు","status.show_more":"ఇంకా చూపించు","status.reblog":"బూస్ట్","status.favourite":"ఇష్టపడు","notifications.group":"{count} ప్రకటనలు"},th:{"notification.favourite":"{name} favourited your status","notification.follow":"{name} followed you","notification.mention":"{name} mentioned you","notification.reblog":"{name} boosted your status","status.show_more":"Show more","status.reblog":"Boost","status.favourite":"Favourite","notifications.group":"{count} notifications"},tr:{"notification.favourite":"{name} senin durumunu favorilere ekledi","notification.follow":"{name} seni takip ediyor","notification.mention":"{name} mentioned you","notification.reblog":"{name} senin durumunu boost etti","status.show_more":"Daha fazlası","status.reblog":"Boost'la","status.favourite":"Favorilere ekle","notifications.group":"{count} notifications"},uk:{"notification.favourite":"{name} вподобав(-ла) ваш допис","notification.follow":"{name} підписався(-лась) на Вас","notification.mention":"{name} згадав(-ла) Вас","notification.reblog":"{name} передмухнув(-ла) Ваш допис","status.show_more":"Розгорнути","status.reblog":"Передмухнути","status.favourite":"Подобається","notifications.group":"{count} сповіщень"},"zh-CN":{"notification.favourite":"{name} 收藏了你的嘟文","notification.follow":"{name} 开始关注你","notification.mention":"{name} 提及你","notification.reblog":"{name} 转嘟了你的嘟文","status.show_more":"显示内容","status.reblog":"转嘟","status.favourite":"收藏","notifications.group":"{count} 条通知"},"zh-HK":{"notification.favourite":"{name} 收藏了你的文章","notification.follow":"{name} 開始關注你","notification.mention":"{name} 提及你","notification.reblog":"{name} 轉推你的文章","status.show_more":"顯示更多","status.reblog":"轉推","status.favourite":"收藏","notifications.group":"{count} 條通知"},"zh-TW":{"notification.favourite":"{name}把你的嘟文加入了最愛","notification.follow":"{name}關注了你","notification.mention":"{name}提到了你","notification.reblog":"{name}轉嘟了你的嘟文","status.show_more":"顯示更多","status.reblog":"轉嘟","status.favourite":"最愛","notifications.group":"{count} 條通知"}}},function(t,o,e){"use strict";var i,n,a;if(i=ExtendableEvent.prototype.waitUntil,n=FetchEvent.prototype.respondWith,a=new WeakMap,ExtendableEvent.prototype.waitUntil=function(t){var e=this,n=a.get(e);if(!n)return n=[Promise.resolve(t)],a.set(e,n),i.call(e,Promise.resolve().then(function t(){var o=n.length;return Promise.all(n.map(function(t){return t.catch(function(){})})).then(function(){return n.length!=o?t():(a.delete(e),Promise.all(n))})}));n.push(Promise.resolve(t))},FetchEvent.prototype.respondWith=function(t){return this.waitUntil(t),n.call(this,t)},void 0===r)var r=!1;function O(e,n){return caches.match(e,{cacheName:n}).then(function(t){return s(t)?t:u(t).then(function(o){return caches.open(n).then(function(t){return t.put(e,o)}).then(function(){return o})})}).catch(function(){})}function s(t){return!t||!t.redirected||!t.ok||"opaqueredirect"===t.type}function u(o){return s(o)?Promise.resolve(o):("body"in o?Promise.resolve(o.body):o.blob()).then(function(t){return new Response(t,{headers:o.headers,status:o.status})})}function A(t,o){o.forEach(function(t){})}!function(p,t){var m=t.cacheMaps,d=t.navigationPreload,e=p.strategy,h=p.responseStrategy,v=p.assets,g=p.hashesMap,b=p.externals,w=p.prefetchRequest||{credentials:"same-origin",mode:"cors"},i=p.name,o=p.version,y=i+":"+o,_=i+"$preload",a="__offline_webpack__data";Object.keys(v).forEach(function(t){v[t]=v[t].map(function(t){var o=new URL(t,location);return o.hash="",-1===b.indexOf(t)&&(o.search=""),o.toString()})}),g=Object.keys(g).reduce(function(t,o){var e=new URL(g[o],location);return e.search="",e.hash="",t[o]=e.toString(),t},{}),b=b.map(function(t){var o=new URL(t,location);return o.hash="",o.toString()});var j=[].concat(v.main,v.additional,v.optional);function k(o){var e=v[o];return caches.open(y).then(function(t){return F(t,e,{bust:p.version,request:w,failAll:"main"===o})}).then(function(){A(0,e)}).catch(function(t){throw t})}function n(m){return caches.keys().then(function(t){for(var o=t.length,e=void 0;o--&&0!==(e=t[o]).indexOf(i););if(e){var n=void 0;return caches.open(e).then(function(t){return(n=t).match(new URL(a,location).toString())}).then(function(t){if(t)return Promise.all([n,n.keys(),t.json()])})}}).then(function(t){if(!t)return k(m);var e=t[0],o=t[1],n=t[2],i=n.hashmap,a=n.version;if(!n.hashmap||a===p.version)return k(m);var r=Object.keys(i).map(function(t){return i[t]}),s=o.map(function(t){var o=new URL(t.url);return o.search="",o.hash="",o.toString()}),u=v[m],c=[],f=u.filter(function(t){return-1===s.indexOf(t)||-1===r.indexOf(t)});Object.keys(g).forEach(function(t){var o=g[t];if(-1!==u.indexOf(o)&&-1===f.indexOf(o)&&-1===c.indexOf(o)){var e=i[t];e&&-1!==s.indexOf(e)?c.push([e,o]):f.push(o)}}),A(0,f),A(0,c);var l=Promise.all(c.map(function(o){return e.match(o[0]).then(function(t){return[o[1],t]})}));return caches.open(y).then(function(o){var t=l.then(function(t){return Promise.all(t.map(function(t){return o.put(t[0],t[1])}))});return Promise.all([t,F(o,f,{bust:p.version,request:w,failAll:"main"===m,deleteFirst:"main"!==m})])})})}function r(){return caches.keys().then(function(t){var o=t.map(function(t){if(0===t.indexOf(i)&&0!==t.indexOf(y))return caches.delete(t)});return Promise.all(o)})}function s(){return caches.open(y).then(function(t){var o=new Response(JSON.stringify({version:p.version,hashmap:g}));return t.put(new URL(a,location).toString(),o)})}self.addEventListener("install",function(t){var o=void 0;o="changed"===e?n("main"):k("main"),t.waitUntil(o)}),self.addEventListener("activate",function(t){var o=function(){if(!v.additional.length)return Promise.resolve();return("changed"===e?n("additional"):k("additional")).catch(function(t){})}();o=(o=(o=o.then(s)).then(r)).then(function(){if(self.clients&&self.clients.claim)return self.clients.claim()}),d&&self.registration.navigationPreload&&(o=Promise.all([o,self.registration.navigationPreload.enable()])),t.waitUntil(o)}),self.addEventListener("fetch",function(t){if("GET"===t.request.method&&("only-if-cached"!==t.request.cache||"same-origin"===t.request.mode)){var o=new URL(t.request.url);o.hash="";var e=o.toString();-1===b.indexOf(e)&&(o.search="",e=o.toString());var n=-1!==j.indexOf(e),i=e;if(!n){var a=function(t){var o,e=t.url,n=new URL(e),i=void 0;i="navigate"===(o=t).mode||o.headers.get("Upgrade-Insecure-Requests")||-1!==(o.headers.get("Accept")||"").indexOf("text/html")?"navigate":n.origin===location.origin?"same-origin":"cross-origin";for(var a=0;a<m.length;a++){var r=m[a];if(r&&(!r.requestTypes||-1!==r.requestTypes.indexOf(i))){var s=void 0;if((s="function"==typeof r.match?r.match(n,t):e.replace(r.match,r.to))&&s!==e)return s}}}(t.request);a&&(i=a,n=!0)}if(n){var r,s,u,c,f=void 0;f="network-first"===h?(c=i,P(t).then(function(t){if(t.ok)return t;throw t}).catch(function(o){return O(c,y).then(function(t){if(t)return t;if(o instanceof Response)return o;throw o})})):(s=e,u=i,function(t){if(d&&"function"==typeof d.map&&t.preloadResponse&&"navigate"===t.request.mode){var o=d.map(new URL(t.request.url),t.request);o&&function(t,o){var e=new URL(t,location),n=o.preloadResponse;x.set(n,{url:e,response:n});var i=function(){return x.has(n)},a=n.then(function(t){if(t&&i()){var o=t.clone();return caches.open(_).then(function(t){if(i())return t.put(e,o).then(function(){if(!i())return caches.open(_).then(function(t){return t.delete(e)})})})}});o.waitUntil(a)}(o,t)}}(r=t),O(u,y).then(function(t){return t||fetch(r.request).then(function(t){return t.ok&&u===s&&(o=t.clone(),e=caches.open(y).then(function(t){return t.put(s,o)}).then(function(){}),r.waitUntil(e)),t;var o,e})})),t.respondWith(f)}else{if("navigate"===t.request.mode&&!0===d)return void t.respondWith(P(t));if(d){var l=function(o){var t=new URL(o.request.url);if(self.registration.navigationPreload&&d&&d.test&&d.test(t,o.request)){var e=function(e){if(x){var n=void 0,i=void 0;return x.forEach(function(t,o){t.url.href===e.href&&(n=t.response,i=o)}),n?(x.delete(i),n):void 0}}(t),n=o.request;return e?(o.waitUntil(caches.open(_).then(function(t){return t.delete(n)})),e):O(n,_).then(function(t){return t&&o.waitUntil(caches.open(_).then(function(t){return t.delete(n)})),t||fetch(o.request)})}}(t);if(l)return void t.respondWith(l)}}}}),self.addEventListener("message",function(t){var o=t.data;if(o)switch(o.action){case"skipWaiting":self.skipWaiting&&self.skipWaiting()}});var x=new Map;function F(n,i,t){var a=t.bust,e=!1!==t.failAll,o=!0===t.deleteFirst,r=t.request||{credentials:"omit",mode:"cors"},s=Promise.resolve();return o&&(s=Promise.all(i.map(function(t){return n.delete(t).catch(function(){})}))),Promise.all(i.map(function(t){var o,e,n;return a&&(e=a,n=-1!==(o=t).indexOf("?"),t=o+(n?"&":"?")+"__uncache="+encodeURIComponent(e)),fetch(t,r).then(u).then(function(t){return t.ok?{response:t}:{error:!0}},function(){return{error:!0}})})).then(function(o){return e&&o.some(function(t){return t.error})?Promise.reject(new Error("Wrong response status")):(e||(o=o.filter(function(t){return!t.error})),s.then(function(){var t=o.map(function(t,o){var e=t.response;return n.put(i[o],e)});return Promise.all(t)}))})}function P(o){return o.preloadResponse&&!0===d?o.preloadResponse.then(function(t){return t||fetch(o.request)}):fetch(o.request)}}(__wpo,{loaders:{},cacheMaps:[],navigationPreload:!1}),t.exports=e(28)},function(t,o,e){var n=e(7);t.exports=function(t){return null==t?"":n(t)}},function(t,o,e){var n=e(0),i=e(11),a=e(12),r=e(13),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(o){if("string"==typeof o)return o;if(a(o))return i(o,t)+"";if(r(o))return c?c.call(o):"";var e=o+"";return"0"==e&&1/o==-s?"-0":e}},function(t,o,e){var n=e(9),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();t.exports=a},function(e,t,o){(function(t){var o="object"==typeof t&&t&&t.Object===Object&&t;e.exports=o}).call(this,o(10))},function(t,o){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,o){t.exports=function(t,o){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=o(t[e],e,t);return i}},function(t,o){var e=Array.isArray;t.exports=e},function(t,o,e){var n=e(14),i=e(17);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},function(t,o,e){var n=e(0),i=e(15),a=e(16),r=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?i(t):a(t)}},function(t,o,e){var n=e(0),i=Object.prototype,a=i.hasOwnProperty,r=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var o=a.call(t,s),e=t[s];try{var n=!(t[s]=void 0)}catch(t){}var i=r.call(t);return n&&(o?t[s]=e:delete t[s]),i}},function(t,o){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,o){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,o,e){var n=e(19)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});t.exports=n},function(t,o){t.exports=function(o){return function(t){return null==o?void 0:o[t]}}},function(t,o,e){"use strict";var n=e(21),i=e(26);n.default.__addLocaleData(i.default),n.default.defaultLocale="en",o.default=n.default},function(t,o,e){"use strict";var c=e(1),s=e(22),i=e(23),n=e(24);function u(o,t,e){var n="string"==typeof o?u.__parse(o):o;if(!n||"messageFormatPattern"!==n.type)throw new TypeError("A message must be provided as a String or AST.");e=this._mergeFormats(u.formats,e),s.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var i=this._findPluralRuleFunction(this._locale),a=this._compilePattern(n,t,e,i),r=this;this.format=function(t){try{return r._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+o+"'"):t}}}o.default=u,s.defineProperty(u,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),s.defineProperty(u,"__localeData__",{value:s.objCreate(null)}),s.defineProperty(u,"__addLocaleData",{value:function(t){if(!t||!t.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");u.__localeData__[t.locale.toLowerCase()]=t}}),s.defineProperty(u,"__parse",{value:n.default.parse}),s.defineProperty(u,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),u.prototype.resolvedOptions=function(){return{locale:this._locale}},u.prototype._compilePattern=function(t,o,e,n){return new i.default(o,e,n).compile(t)},u.prototype._findPluralRuleFunction=function(t){for(var o=u.__localeData__,e=o[t.toLowerCase()];e;){if(e.pluralRuleFunction)return e.pluralRuleFunction;e=e.parentLocale&&o[e.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+t)},u.prototype._format=function(t,o){var e,n,i,a,r,s,u="";for(e=0,n=t.length;e<n;e+=1)if("string"!=typeof(i=t[e])){if(a=i.id,!o||!c.hop.call(o,a))throw(s=new Error("A value must be provided for: "+a)).variableId=a,s;r=o[a],i.options?u+=this._format(i.getOption(r),o):u+=i.format(r)}else u+=i;return u},u.prototype._mergeFormats=function(t,o){var e,n,i={};for(e in t)c.hop.call(t,e)&&(i[e]=n=s.objCreate(t[e]),o&&c.hop.call(o,e)&&c.extend(n,o[e]));return i},u.prototype._resolveLocale=function(t){"string"==typeof t&&(t=[t]),t=(t||[]).concat(u.defaultLocale);var o,e,n,i,a=u.__localeData__;for(o=0,e=t.length;o<e;o+=1)for(n=t[o].toLowerCase().split("-");n.length;){if(i=a[n.join("-")])return i.locale;n.pop()}var r=t.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+t.join(", ")+", or the default locale: "+r)}},function(t,o,e){"use strict";var a=e(1),n=function(){try{return!!Object.defineProperty({},"a",{})}catch(t){return!1}}(),r=(!n&&Object.prototype.__defineGetter__,n?Object.defineProperty:function(t,o,e){"get"in e&&t.__defineGetter__?t.__defineGetter__(o,e.get):(!a.hop.call(t,o)||"value"in e)&&(t[o]=e.value)}),i=Object.create||function(t,o){var e,n;function i(){}for(n in i.prototype=t,e=new i,o)a.hop.call(o,n)&&r(e,n,o[n]);return e};o.defineProperty=r,o.objCreate=i},function(t,o,e){"use strict";function n(t,o,e){this.locales=t,this.formats=o,this.pluralFn=e}function r(t){this.id=t}function s(t,o,e,n,i){this.id=t,this.useOrdinal=o,this.offset=e,this.options=n,this.pluralFn=i}function i(t,o,e,n){this.id=t,this.offset=o,this.numberFormat=e,this.string=n}function u(t,o){this.id=t,this.options=o}(o.default=n).prototype.compile=function(t){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(t)},n.prototype.compileMessage=function(t){if(!t||"messageFormatPattern"!==t.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var o,e,n,i=t.elements,a=[];for(o=0,e=i.length;o<e;o+=1)switch((n=i[o]).type){case"messageTextElement":a.push(this.compileMessageText(n));break;case"argumentElement":a.push(this.compileArgument(n));break;default:throw new Error("Message element does not have a valid type")}return a},n.prototype.compileMessageText=function(t){return this.currentPlural&&/(^|[^\\])#/g.test(t.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new i(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,t.value)):t.value.replace(/\\#/g,"#")},n.prototype.compileArgument=function(t){var o=t.format;if(!o)return new r(t.id);var e,n=this.formats,i=this.locales,a=this.pluralFn;switch(o.type){case"numberFormat":return e=n.number[o.style],{id:t.id,format:new Intl.NumberFormat(i,e).format};case"dateFormat":return e=n.date[o.style],{id:t.id,format:new Intl.DateTimeFormat(i,e).format};case"timeFormat":return e=n.time[o.style],{id:t.id,format:new Intl.DateTimeFormat(i,e).format};case"pluralFormat":return e=this.compileOptions(t),new s(t.id,o.ordinal,o.offset,e,a);case"selectFormat":return e=this.compileOptions(t),new u(t.id,e);default:throw new Error("Message element does not have a valid format type")}},n.prototype.compileOptions=function(t){var o,e,n,i=t.format,a=i.options,r={};for(this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===i.type?t:null,o=0,e=a.length;o<e;o+=1)r[(n=a[o]).selector]=this.compileMessage(n.value);return this.currentPlural=this.pluralStack.pop(),r},r.prototype.format=function(t){return t||"number"==typeof t?"string"==typeof t?t:String(t):""},s.prototype.getOption=function(t){var o=this.options;return o["="+t]||o[this.pluralFn(t-this.offset,this.useOrdinal)]||o.other},i.prototype.format=function(t){var o=this.numberFormat.format(t-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+o).replace(/\\#/g,"#")},u.prototype.getOption=function(t){var o=this.options;return o[t]||o.other}},function(t,o,e){"use strict";(o=t.exports=e(25).default).default=o},function(t,o,e){"use strict";o.default=function(){function Dt(t,o,e,n){this.message=t,this.expected=o,this.found=e,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Dt)}return function(t,o){function e(){this.constructor=t}e.prototype=o.prototype,t.prototype=new e}(Dt,Error),{SyntaxError:Dt,parse:function(F){var t,o=1<arguments.length?arguments[1]:{},P={},e={start:St},n=St,i=function(t){return{type:"messageFormatPattern",elements:t,location:xt()}},O=function(t){var o,e,n,i,a,r="";for(o=0,n=t.length;o<n;o+=1)for(e=0,a=(i=t[o]).length;e<a;e+=1)r+=i[e];return r},A=function(t){return{type:"messageTextElement",value:t,location:xt()}},S=/^[^ \t\n\r,.+={}#]/,E={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},R="{",z={type:"literal",value:"{",description:'"{"'},L=",",C={type:"literal",value:",",description:'","'},q="}",U={type:"literal",value:"}",description:'"}"'},M=function(t,o){return{type:"argumentElement",id:t,format:o&&o[2],location:xt()}},T="number",B={type:"literal",value:"number",description:'"number"'},N="date",D={type:"literal",value:"date",description:'"date"'},I="time",W={type:"literal",value:"time",description:'"time"'},V=function(t,o){return{type:t+"Format",style:o&&o[2],location:xt()}},G="plural",H={type:"literal",value:"plural",description:'"plural"'},K=function(t){return{type:t.type,ordinal:!1,offset:t.offset||0,options:t.options,location:xt()}},Z="selectordinal",$={type:"literal",value:"selectordinal",description:'"selectordinal"'},J=function(t){return{type:t.type,ordinal:!0,offset:t.offset||0,options:t.options,location:xt()}},Q="select",X={type:"literal",value:"select",description:'"select"'},Y=function(t){return{type:"selectFormat",options:t,location:xt()}},c="=",f={type:"literal",value:"=",description:'"="'},l=function(t,o){return{type:"optionalFormatPattern",selector:t,value:o,location:xt()}},s="offset:",u={type:"literal",value:"offset:",description:'"offset:"'},m=function(t){return t},p=function(t,o){return{type:"pluralFormat",offset:t,options:o,location:xt()}},a={type:"other",description:"whitespace"},r=/^[ \t\n\r]/,d={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},h={type:"other",description:"optionalWhitespace"},v=/^[0-9]/,g={type:"class",value:"[0-9]",description:"[0-9]"},b=/^[0-9a-f]/i,w={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},y="0",_={type:"literal",value:"0",description:'"0"'},j=/^[1-9]/,k={type:"class",value:"[1-9]",description:"[1-9]"},x=function(t){return parseInt(t,10)},tt=/^[^{}\\\0-\x1F \t\n\r]/,ot={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},et="\\\\",nt={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},it=function(){return"\\"},at="\\#",rt={type:"literal",value:"\\#",description:'"\\\\#"'},st=function(){return"\\#"},ut="\\{",ct={type:"literal",value:"\\{",description:'"\\\\{"'},ft=function(){return"{"},lt="\\}",mt={type:"literal",value:"\\}",description:'"\\\\}"'},pt=function(){return"}"},dt="\\u",ht={type:"literal",value:"\\u",description:'"\\\\u"'},vt=function(t){return String.fromCharCode(parseInt(t,16))},gt=function(t){return t.join("")},bt=0,wt=0,yt=[{line:1,column:1,seenCR:!1}],_t=0,jt=[],kt=0;if("startRule"in o){if(!(o.startRule in e))throw new Error("Can't start parsing from rule \""+o.startRule+'".');n=e[o.startRule]}function xt(){return Pt(wt,bt)}function Ft(t){var o,e,n=yt[t];if(n)return n;for(o=t-1;!yt[o];)o--;for(n={line:(n=yt[o]).line,column:n.column,seenCR:n.seenCR};o<t;)e=F.charAt(o),n.seenCR="\n"===e?(n.seenCR||n.line++,!(n.column=1)):"\r"===e||"\u2028"===e||"\u2029"===e?(n.line++,n.column=1,!0):(n.column++,!1),o++;return yt[t]=n}function Pt(t,o){var e=Ft(t),n=Ft(o);return{start:{offset:t,line:e.line,column:e.column},end:{offset:o,line:n.line,column:n.column}}}function Ot(t){bt<_t||(_t<bt&&(_t=bt,jt=[]),jt.push(t))}function At(t,o,e,n){return null!==o&&function(t){var o=1;for(t.sort(function(t,o){return t.description<o.description?-1:t.description>o.description?1:0});o<t.length;)t[o-1]===t[o]?t.splice(o,1):o++}(o),new Dt(null!==t?t:function(t,o){var e,n=new Array(t.length);for(e=0;e<t.length;e++)n[e]=t[e].description;return"Expected "+(1<t.length?n.slice(0,-1).join(", ")+" or "+n[t.length-1]:n[0])+" but "+(o?'"'+function(t){function o(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(t){return"\\x0"+o(t)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(t){return"\\x"+o(t)}).replace(/[\u0100-\u0FFF]/g,function(t){return"\\u0"+o(t)}).replace(/[\u1000-\uFFFF]/g,function(t){return"\\u"+o(t)})}(o)+'"':"end of input")+" found."}(o,e),o,e,n)}function St(){return Et()}function Et(){var t,o,e;for(t=bt,o=[],e=Rt();e!==P;)o.push(e),e=Rt();return o!==P&&(wt=t,o=i(o)),t=o}function Rt(){var t,o,e,n,i,a,r,s,u,c,f,l,m,p,d,h,v,g,b,w,y,_,j,k,x;return k=bt,(x=function(){var t,o,e,n,i,a;if(o=[],e=t=bt,(e=(n=qt())!==P&&(i=Nt())!==P&&(a=qt())!==P?n=[n,i,a]:(bt=e,P))!==P)for(;e!==P;)o.push(e),e=bt,n=qt(),e=n!==P&&(i=Nt())!==P&&(a=qt())!==P?n=[n,i,a]:(bt=e,P);else o=P;return o!==P&&(wt=t,o=O(o)),(t=o)===P&&(t=bt,o=Ct(),t=o!==P?F.substring(t,bt):o),t}())!==P&&(wt=k,x=A(x)),(t=k=x)===P&&(o=bt,123===F.charCodeAt(bt)?(e=R,bt++):(e=P,0===kt&&Ot(z)),t=o=e!==P&&qt()!==P&&(n=function(){var t,o,e;if((t=Tt())===P){if(t=bt,o=[],S.test(F.charAt(bt))?(e=F.charAt(bt),bt++):(e=P,0===kt&&Ot(E)),e!==P)for(;e!==P;)o.push(e),S.test(F.charAt(bt))?(e=F.charAt(bt),bt++):(e=P,0===kt&&Ot(E));else o=P;t=o!==P?F.substring(t,bt):o}return t}())!==P&&qt()!==P?(i=bt,44===F.charCodeAt(bt)?(a=L,bt++):(a=P,0===kt&&Ot(C)),(i=a!==P&&(r=qt())!==P?(g=bt,F.substr(bt,6)===T?(b=T,bt+=6):(b=P,0===kt&&Ot(B)),b===P&&(F.substr(bt,4)===N?(b=N,bt+=4):(b=P,0===kt&&Ot(D)),b===P&&(F.substr(bt,4)===I?(b=I,bt+=4):(b=P,0===kt&&Ot(W)))),(u=g=b!==P&&qt()!==P?(w=bt,44===F.charCodeAt(bt)?(y=L,bt++):(y=P,0===kt&&Ot(C)),(w=y!==P&&(_=qt())!==P&&(j=Nt())!==P?y=[y,_,j]:(bt=w,P))===P&&(w=null),w!==P?(wt=g,b=V(b,w)):(bt=g,P)):(bt=g,P))===P&&(p=bt,F.substr(bt,6)===G?(d=G,bt+=6):(d=P,0===kt&&Ot(H)),(u=p=d!==P&&qt()!==P?(44===F.charCodeAt(bt)?(h=L,bt++):(h=P,0===kt&&Ot(C)),h!==P&&qt()!==P&&(v=Lt())!==P?(wt=p,d=K(v)):(bt=p,P)):(bt=p,P))===P)&&(c=bt,F.substr(bt,13)===Z?(f=Z,bt+=13):(f=P,0===kt&&Ot($)),(u=c=f!==P&&qt()!==P?(44===F.charCodeAt(bt)?(l=L,bt++):(l=P,0===kt&&Ot(C)),l!==P&&qt()!==P&&(m=Lt())!==P?(wt=c,f=J(m)):(bt=c,P)):(bt=c,P))===P)&&(u=function(){var t,o,e,n,i;if(t=bt,F.substr(bt,6)===Q?(o=Q,bt+=6):(o=P,0===kt&&Ot(X)),o!==P)if(qt()!==P)if(44===F.charCodeAt(bt)?(e=L,bt++):(e=P,0===kt&&Ot(C)),e!==P)if(qt()!==P){if(n=[],(i=zt())!==P)for(;i!==P;)n.push(i),i=zt();else n=P;t=n!==P?(wt=t,o=Y(n)):(bt=t,P)}else bt=t,t=P;else bt=t,t=P;else bt=t,t=P;else bt=t,t=P;return t}()),(s=u)!==P?a=[a,r,s]:(bt=i,P)):(bt=i,P))===P&&(i=null),i!==P&&(a=qt())!==P?(125===F.charCodeAt(bt)?(r=q,bt++):(r=P,0===kt&&Ot(U)),r!==P?(wt=o,e=M(n,i)):(bt=o,P)):(bt=o,P)):(bt=o,P)),t}function zt(){var t,o,e,n,i,a,r,s,u;return t=bt,t=qt()!==P?(r=a=bt,61===F.charCodeAt(bt)?(s=c,bt++):(s=P,0===kt&&Ot(f)),(a=(r=s!==P&&(u=Tt())!==P?s=[s,u]:(bt=r,P))!==P?F.substring(a,bt):r)===P&&(a=Nt()),(o=a)!==P&&qt()!==P?(123===F.charCodeAt(bt)?(e=R,bt++):(e=P,0===kt&&Ot(z)),e!==P&&qt()!==P&&(n=Et())!==P&&qt()!==P?(125===F.charCodeAt(bt)?(i=q,bt++):(i=P,0===kt&&Ot(U)),i!==P?(wt=t,l(o,n)):(bt=t,P)):(bt=t,P)):(bt=t,P)):(bt=t,P)}function Lt(){var t,o,e,n,i,a,r;if(i=t=bt,F.substr(bt,7)===s?(a=s,bt+=7):(a=P,0===kt&&Ot(u)),(o=i=a!==P&&qt()!==P&&(r=Tt())!==P?(wt=i,a=m(r)):(bt=i,P))===P&&(o=null),o!==P)if(qt()!==P){if(e=[],(n=zt())!==P)for(;n!==P;)e.push(n),n=zt();else e=P;t=e!==P?(wt=t,o=p(o,e)):(bt=t,P)}else bt=t,t=P;else bt=t,t=P;return t}function Ct(){var t,o;if(kt++,t=[],r.test(F.charAt(bt))?(o=F.charAt(bt),bt++):(o=P,0===kt&&Ot(d)),o!==P)for(;o!==P;)t.push(o),r.test(F.charAt(bt))?(o=F.charAt(bt),bt++):(o=P,0===kt&&Ot(d));else t=P;return kt--,t===P&&(o=P,0===kt&&Ot(a)),t}function qt(){var t,o,e;for(kt++,t=bt,o=[],e=Ct();e!==P;)o.push(e),e=Ct();return t=o!==P?F.substring(t,bt):o,kt--,t===P&&(o=P,0===kt&&Ot(h)),t}function Ut(){var t;return v.test(F.charAt(bt))?(t=F.charAt(bt),bt++):(t=P,0===kt&&Ot(g)),t}function Mt(){var t;return b.test(F.charAt(bt))?(t=F.charAt(bt),bt++):(t=P,0===kt&&Ot(w)),t}function Tt(){var t,o,e,n,i,a;if(t=bt,48===F.charCodeAt(bt)?(o=y,bt++):(o=P,0===kt&&Ot(_)),o===P){if(e=o=bt,j.test(F.charAt(bt))?(n=F.charAt(bt),bt++):(n=P,0===kt&&Ot(k)),n!==P){for(i=[],a=Ut();a!==P;)i.push(a),a=Ut();e=i!==P?n=[n,i]:(bt=e,P)}else bt=e,e=P;o=e!==P?F.substring(o,bt):e}return o!==P&&(wt=t,o=x(o)),t=o}function Bt(){var t,o,e,n,i,a,r,s;return tt.test(F.charAt(bt))?(t=F.charAt(bt),bt++):(t=P,0===kt&&Ot(ot)),t===P&&(t=bt,F.substr(bt,2)===et?(o=et,bt+=2):(o=P,0===kt&&Ot(nt)),o!==P&&(wt=t,o=it()),(t=o)===P&&(t=bt,F.substr(bt,2)===at?(o=at,bt+=2):(o=P,0===kt&&Ot(rt)),o!==P&&(wt=t,o=st()),(t=o)===P&&(t=bt,F.substr(bt,2)===ut?(o=ut,bt+=2):(o=P,0===kt&&Ot(ct)),o!==P&&(wt=t,o=ft()),(t=o)===P&&(t=bt,F.substr(bt,2)===lt?(o=lt,bt+=2):(o=P,0===kt&&Ot(mt)),o!==P&&(wt=t,o=pt()),(t=o)===P&&(t=bt,F.substr(bt,2)===dt?(o=dt,bt+=2):(o=P,0===kt&&Ot(ht)),t=o!==P?(n=e=bt,(e=(n=(i=Mt())!==P&&(a=Mt())!==P&&(r=Mt())!==P&&(s=Mt())!==P?i=[i,a,r,s]:(bt=n,P))!==P?F.substring(e,bt):n)!==P?(wt=t,o=vt(e)):(bt=t,P)):(bt=t,P)))))),t}function Nt(){var t,o,e;if(t=bt,o=[],(e=Bt())!==P)for(;e!==P;)o.push(e),e=Bt();else o=P;return o!==P&&(wt=t,o=gt(o)),t=o}if((t=n())!==P&&bt===F.length)return t;throw t!==P&&bt<F.length&&Ot({type:"end",description:"end of input"}),At(null,jt,_t<F.length?F.charAt(_t):null,_t<F.length?Pt(_t,_t+1):Pt(_t,_t))}}}()},function(t,o,e){"use strict";o.default={locale:"en",pluralRuleFunction:function(t,o){var e=String(t).split("."),n=!e[1],i=Number(e[0])==t,a=i&&e[0].slice(-1),r=i&&e[0].slice(-2);return o?1==a&&11!=r?"one":2==a&&12!=r?"two":3==a&&13!=r?"few":"other":1==t&&n?"one":"other"}}},function(t,o){},function(t,o,e){"use strict";e.r(o);var n=e(2),i=e.n(n),a=e(3),r=e.n(a),s=e(4),u=e.n(s),c=function(n){return self.registration.getNotifications().then(function(t){if(5<=t.length){var o={title:m("notifications.group",n.data.preferred_locale,{count:t.length+1}),body:t.sort(function(t,o){return t.timestamp<o.timestamp}).map(function(t){return t.title}).join("\n"),badge:"/badge.png",icon:"/android-chrome-192x192.png",tag:"tag",data:{url:new URL("/web/notifications",self.location).href,count:t.length+1,preferred_locale:n.data.preferred_locale}};return t.forEach(function(t){return t.close()}),self.registration.showNotification(o.title,o)}if(1!==t.length||"tag"!==t[0].tag)return self.registration.showNotification(n.title,n);var e=l(t[0]);return e.title=m("notifications.group",n.data.preferred_locale,{count:e.data.count+1}),e.body=n.title+"\n"+e.body,e.data=function(i){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},o=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(a).filter(function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),o.forEach(function(t){var o,e,n;o=i,n=a[e=t],e in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n})}return i}({},e.data,{count:e.data.count+1}),self.registration.showNotification(e.title,e)})},f=function(t,o,e){var n=new URL(t,self.location).href;return fetch(n,{headers:{Authorization:"Bearer "+e,"Content-Type":"application/json"},method:o,credentials:"include"}).then(function(t){if(t.ok)return t;throw new Error(t.status)}).then(function(t){return t.json()})},l=function(t){var o,e={};for(o in t)e[o]=t[o];return e},m=function(t,o,e){return void 0===e&&(e={}),new r.a(u.a[o][t],o).format(e)},p=function(t){return i()(t.replace(/<br\s*\/?>/g,"\n").replace(/<\/p><p>/g,"\n\n").replace(/<[^>]*>/g,""))},d=function(t){return{action:"expand",icon:"/web-push-icon_expand.png",title:m("status.show_more",t)}},h=function(t){return{action:"reblog",icon:"/web-push-icon_reblog.png",title:m("status.reblog",t)}},v=function(t){return{action:"favourite",icon:"/web-push-icon_favourite.png",title:m("status.favourite",t)}},g=function(t){var o=t.find(function(t){return t.focused}),e=t.find(function(t){return"visible"===t.visibilityState});return o||e||t[0]},b=function(t,o){var e=l(t);return e.actions=e.actions.filter(function(t){return t.action!==o}),self.registration.showNotification(e.title,e)};self.addEventListener("push",function(t){var o=t.data.json(),e=o.access_token,n=o.notification_id,i=o.preferred_locale,a=o.title,r=o.body,s=o.icon;t.waitUntil(f("/api/v1/notifications/"+n,"get",e).then(function(t){var o={};return o.title=m("notification."+t.type,i,{name:0<t.account.display_name.length?t.account.display_name:t.account.username}),o.body=t.status&&p(t.status.content),o.icon=t.account.avatar_static,o.timestamp=t.created_at&&new Date(t.created_at),o.tag=t.id,o.badge="/badge.png",o.image=t.status&&0<t.status.media_attachments.length&&t.status.media_attachments[0].preview_url||void 0,o.data={access_token:e,preferred_locale:i,id:t.status?t.status.id:t.account.id,url:t.status?"/web/statuses/"+t.status.id:"/web/accounts/"+t.account.id},t.status&&t.status.spoiler_text||t.status.sensitive?(o.data.hiddenBody=p(t.status.content),o.data.hiddenImage=0<t.status.media_attachments.length&&t.status.media_attachments[0].preview_url,t.status.spoiler_text&&(o.body=t.status.spoiler_text),o.image=void 0,o.actions=[d(i)]):"mention"===t.type&&(o.actions=[h(i),v(i)]),c(o)}).catch(function(){return c({title:a,body:r,icon:s,tag:n,timestamp:new Date,badge:"/badge.png",data:{access_token:e,preferred_locale:i,url:"/web/notifications"}})}))}),self.addEventListener("notificationclick",function(s){var t=new Promise(function(t,o){if(s.action)if("expand"===s.action)t((a=s.notification,(r=l(a)).body=r.data.hiddenBody,r.image=r.data.hiddenImage,r.actions=[h(a.data.preferred_locale),v(a.data.preferred_locale)],self.registration.showNotification(r.title,r)));else if("reblog"===s.action){var e=s.notification.data;t(f("/api/v1/statuses/"+e.id+"/reblog","post",e.access_token).then(function(){return b(s.notification,"reblog")}))}else if("favourite"===s.action){var n=s.notification.data;t(f("/api/v1/statuses/"+n.id+"/favourite","post",n.access_token).then(function(){return b(s.notification,"favourite")}))}else o("Unknown action: "+s.action);else s.notification.close(),t((i=s.notification.data.url,self.clients.matchAll({type:"window"}).then(function(t){if(0!==t.length){var o=t.filter(function(t){return/\/web\//.test(t.url)});if(0!==o.length){var e=g(o),n=new URL(i,self.location).pathname;if(n.startsWith("/web/"))return e.focus().then(function(t){return t.postMessage({type:"navigate",path:n.slice("/web/".length-1)})})}else if("navigate"in t[0])return g(t).navigate(i).then(function(t){return t.focus()})}return self.clients.openWindow(i)})));var i,a,r});s.waitUntil(t)});function w(){return caches.open("mastodon-web")}function y(){return fetch("/web",{credentials:"include",redirect:"manual"})}self.addEventListener("install",function(t){t.waitUntil(Promise.all([w(),y()]).then(function(t){var o=t[0],e=t[1];return o.put("/web",e)}))}),self.addEventListener("activate",function(t){t.waitUntil(self.clients.claim())}),self.addEventListener("fetch",function(t){var o=new URL(t.request.url);if(o.pathname.startsWith("/web")){if(o.pathname.startsWith("/web/login"))return;var e=y(),n=w();t.respondWith(e.then(function(t){var o=t.clone();return n.then(function(t){return t.put("/web",o)}).catch(),t},function(){return n.then(function(t){return t.match("/web")})}))}else if("/auth/sign_out"===o.pathname){var i=fetch(t.request),a=w();t.respondWith(i.then(function(t){return t.ok||"opaqueredirect"===t.type?Promise.all([a.then(function(t){return t.delete("/web")}),indexedDB.deleteDatabase("mastodon")]).then(function(){return t}):t}))}})}]);