bing-wallpaper-robot 1.5.11 → 1.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/docs/all.js +2 -1
  2. package/docs/chunks/2020-12.js +1 -0
  3. package/docs/chunks/2021-01.js +1 -0
  4. package/docs/chunks/2021-02.js +1 -0
  5. package/docs/chunks/2021-03.js +1 -0
  6. package/docs/chunks/2021-04.js +1 -0
  7. package/docs/chunks/2021-05.js +1 -0
  8. package/docs/chunks/2021-06.js +1 -0
  9. package/docs/chunks/2021-07.js +1 -0
  10. package/docs/chunks/2021-08.js +1 -0
  11. package/docs/chunks/2021-09.js +1 -0
  12. package/docs/chunks/2021-10.js +1 -0
  13. package/docs/chunks/2021-11.js +1 -0
  14. package/docs/chunks/2021-12.js +1 -0
  15. package/docs/chunks/2022-01.js +1 -0
  16. package/docs/chunks/2022-06.js +1 -0
  17. package/docs/chunks/2022-07.js +1 -0
  18. package/docs/chunks/2022-08.js +1 -0
  19. package/docs/chunks/2022-09.js +1 -0
  20. package/docs/chunks/2022-10.js +1 -0
  21. package/docs/chunks/2022-11.js +1 -0
  22. package/docs/chunks/2022-12.js +1 -0
  23. package/docs/chunks/2023-01.js +1 -0
  24. package/docs/chunks/2023-02.js +1 -0
  25. package/docs/chunks/2023-03.js +1 -0
  26. package/docs/chunks/2023-04.js +1 -0
  27. package/docs/chunks/2023-05.js +1 -0
  28. package/docs/chunks/2023-06.js +1 -0
  29. package/docs/chunks/2023-07.js +1 -0
  30. package/docs/chunks/2023-08.js +1 -0
  31. package/docs/chunks/2023-09.js +1 -0
  32. package/docs/chunks/2023-10.js +1 -0
  33. package/docs/chunks/2023-11.js +1 -0
  34. package/docs/chunks/2023-12.js +1 -0
  35. package/docs/chunks/2024-01.js +1 -0
  36. package/docs/chunks/2024-02.js +1 -0
  37. package/docs/chunks/2024-03.js +1 -0
  38. package/docs/chunks/2024-04.js +1 -0
  39. package/docs/chunks/2024-05.js +1 -0
  40. package/docs/chunks/2024-06.js +1 -0
  41. package/docs/chunks/2024-07.js +1 -0
  42. package/docs/chunks/2024-08.js +1 -0
  43. package/docs/chunks/2024-09.js +1 -0
  44. package/docs/chunks/2024-10.js +1 -0
  45. package/docs/chunks/2024-11.js +1 -0
  46. package/docs/chunks/2024-12.js +1 -0
  47. package/docs/chunks/2025-01.js +1 -0
  48. package/docs/chunks/2025-02.js +1 -0
  49. package/docs/chunks/2025-03.js +1 -0
  50. package/docs/chunks/2025-04.js +1 -0
  51. package/docs/chunks/2025-05.js +1 -0
  52. package/docs/chunks/2025-06.js +1 -0
  53. package/docs/chunks/2025-07.js +1 -0
  54. package/docs/chunks/2025-08.js +1 -0
  55. package/docs/chunks/2025-09.js +1 -0
  56. package/docs/chunks/2025-10.js +1 -0
  57. package/docs/chunks/2025-11.js +1 -0
  58. package/docs/chunks/2026-02.js +1 -0
  59. package/docs/chunks/2026-03.js +1 -0
  60. package/docs/chunks/2026-04.js +1 -0
  61. package/docs/chunks/2026-05.js +1 -0
  62. package/docs/chunks/2026-06.js +1 -0
  63. package/docs/chunks/2026-07.js +1 -0
  64. package/docs/chunks/2026-08.js +2 -1
  65. package/docs/index.js +3 -3
  66. package/docs/index.json +12 -12
  67. package/docs/sw-cleanup.js +34 -0
  68. package/docs/sw.js +1 -1
  69. package/docs/{workbox-ba52f122.js → workbox-8553a241.js} +1 -1
  70. package/package.json +17 -11
@@ -1 +1,2 @@
1
+ export const v = "md5:2bc84cec4efb13d2fe8f94924a81527b";
1
2
  export default [["OHR.DungeonPark_EN-US2499621341",20260701,"Canada, carved by the Atlantic","Dungeon Provincial Park, Newfoundland and Labrador, Canada (© Kaitlyn McLachlan/Getty Images)","313f1a"],["OHR.TempleEsna_EN-US1999215513",20260702,"Inside Esna's sacred universe","Ceiling of the Temple of Esna, Egypt (© Nick Brundle Photography/Getty Images)","9a7c6d"],["OHR.FirefliesJapan_EN-US2315956275",20260703,"The poetry of vanishing light","Fireflies glowing above a stream, Okayama Prefecture, Japan (© tdub303/Getty Images)","090e09"],["OHR.LibertyHall_EN-US2562041614",20260704,"The story continues","Liberty Bell and Independence Hall, Independence National Historical Park, Philadelphia, Pennsylvania (© f11photo/Shutterstock)","c4b38f"],["OHR.LavenderRows_EN-US2831933520",20260705,"Sea of purple","Lavender rows, Plateau de Valensole, Provence, France (© Robert Harding/Shutterstock)","8c717d"],["OHR.SyracuseItaly_EN-US3071727282",20260706,"A city written in centuries","Syracuse at sunset, Sicily, Italy (© Balate Dorin/Getty Images)","626362"],["OHR.MountainToucanOrchids_EN-US3433249651",20260707,"Color, craft, and canopy life","Plate-billed mountain toucan with orchids, Ecuador (© Murray Cooper/Minden Pictures)","798554"],["OHR.LakeAtitlan_EN-US3747076006",20260708,"Echoes of a volcanic past","Sunrise at Lake Atitlán, Guatemala (© shayes17/Getty Images)","1f5f9b"],["OHR.SapaVietnam_EN-US4008171614",20260709,"Tradition in every step","Rice fields at Sapa, Lào Cai, Vietnam (© Anujak Jaimook/Getty Images)","678288"],["OHR.VictoriaBeach_EN-US7607379912",20260710,"The land of moving shorelines","Aerial view of land and ocean, Victoria, Australia (© Nearmap/Getty Images)","2b5044"],["OHR.AurayBrittany_EN-US7890619884",20260711,"Where Brittany meets the tide","Port de Saint-Goustan, Auray, Brittany, France (© Rolf E. Staerk/Shutterstock)","aaaaa6"],["OHR.KatahdinWWNM_EN-US8982810797",20260712,"A wilder side of Maine","Katahdin Woods and Waters National Monument, Maine (© Cavan Images/Offset/Shutterstock)","070708"],["OHR.NavajoSandstone_EN-US9496264383",20260713,"Born to rock","Antelope Canyon on the Navajo Nation, east of Page, Arizona (© Mark Skalny/Getty Images)","5d0401"],["OHR.LemonShark_EN-US9828936448",20260714,"Fin-tastic truths","Lemon shark pup in mangrove forest, Eleuthera, Bahamas (© Shane Gross/Nature Picture Library)","116732"],["OHR.MarieLake_EN-US0365186943",20260715,"The reward after the climb","Marie Lake, John Muir Wilderness near Bishop, California (© Steve Dunleavy/Getty Images)","b3c9d8"],["OHR.NavyPier_EN-US1069960047",20260716,"A waterfront chameleon","Navy Pier, Chicago, Illinois (© Christopher.F Photography/Getty Images)","4672c2"],["OHR.VaiUmbrellas_EN-US8985051242",20260717,"A Greek escape","Sunbeds on the beach at Vai, Crete, Greece (© borchee/Getty Images)","c5a17f"],["OHR.DevilsBridge_EN-US3505962815",20260718,"Going full circle","Devil's Bridge in Rhododendron Park Kromlau, Saxony, Germany (© Mike Mareen/Getty Images)","313511"],["OHR.HirundoRustica_EN-US3193611104",20260719,"Wings at rest","Barn swallows of different subspecies resting together (© Oscar Dominguez/Tandem Stills + Motion)","4f5e6d"],["OHR.Artemis_EN-US0683925849",20260720,"The lunar perspective","Moon and Earth captured by the Artemis II crew (© NASA)","05080e"],["OHR.SantaCatalina_EN-US1116829215",20260721,"Hidden in plain arch","Santa Catalina Arch, Antigua, Guatemala (© Filippo Maria Bianchi/Getty Images)","725567"],["OHR.CoralAwareness_EN-US1824657819",20260722,"Small footprint, big impact","Coral reef and beach in Raja Ampat, Indonesia (© SergeUWPhoto/Shutterstock)","4f5840"],["OHR.PinkDahlia_EN-US1957205704",20260723,"A symphony of petals","Pink dahlia flower (© Harald Biebel/Getty Images)","7f0a5a"],["OHR.GalapagosFlamingos_EN-US0364264116",20260724,"Family, in full color","Flock of American flamingos, Isabela Island, Galápagos Islands, Ecuador (© Tui De Roy/Nature Picture Library)","899db5"],["OHR.GaliciaBeach_EN-US1635715019",20260725,"Into Galicia's hidden arches","Praia das Catedrais, Galicia, Spain (© Tui De Roy/Amazing Aerial Agency/Abobe Stock)","e4d7c1"],["OHR.RedMangroveSunrise_EN-US2034025633",20260726,"Between land and sea, life begins","Sunrise on a red mangrove in the Pig Keys, Honduras (© Mac Stone/Tandem Stills + Motion)","87615b"],["OHR.ChicagoTiffany_EN-US3297949501",20260727,"Chicago, look up!","Tiffany Dome, Chicago Cultural Center, Illinois (© Felix Lipov/Shutterstock)","6d5111"],["OHR.ChannelKelp_EN-US3809417919",20260728,"A balance in motion","A kelp forest off Anacapa Island, Channel Islands National Park, California (© Ian Shive/Tandem Stills + Motion)","0f1209"],["OHR.TigerFamily_EN-US4918106900",20260729,"A comeback with claws","A family of Bengal tigers at Ranthambore National Park, Rajasthan, India (© Archna Singh/Shutterstock)","9f8e6d"],["OHR.NavajoNation_EN-US6947714656",20260730,"A landscape of living heritage","Monument Valley, Navajo Nation, Arizona (© Westend61/Adobe Stock)","2d181a"],["OHR.VirginiaTrail_EN-US9403114082",20260731,"Trailing through time","Aerial view of the Virginia Creeper Trail, Damascus, Virginia (© Eifel Kreutz/Getty Images)","354110"]];
@@ -1 +1,2 @@
1
- export default [["OHR.HawaiiLava_EN-US4126737972",20260801,"The power of Kīlauea","A series of lava flows spill into the ocean, Big Island, Hawaii (© Ken McCurdy/Getty Images)","867d7f"],["OHR.HelsinkiBlue_EN-US4898215906",20260802,"Daughter of the Baltic","Helsinki's shoreline during blue hour, Uusimaa, Finland (© Miemo Penttinen/Getty Images)","1a3b56"],["OHR.BoatsMalta_EN-US5373607495",20260803,"Bright boats, timeless traditions","Colorful boats in Marsaxlokk Harbor, Malta (© Klubovy/Getty Images)","039a9c"],["OHR.AdorableOwlet_EN-US7873975586",20260804,"Hoot hoot hooray!","Florida burrowing owlet, Cape Coral, Florida, USA (© mlorenzphotography/Getty Images)","b3b09b"],["OHR.FezMorocco_EN-US8380353742",20260805,"Gates of a hidden kingdom","Decorated gate of the Royal Palace of Fez, Morocco (© cgst26/Shutterstock)","e48618"],["OHR.MaraCrossing_EN-US8682968377",20260806,"Where the river tests the brave","Migrating wildebeest crossing Mara River in Masai Mara, Kenya (© Manoj Shah/Getty Images)","cc9a78"],["OHR.LimeKiln_EN-US2748515593",20260807,"Guiding ships through history","Lime Kiln Lighthouse on San Juan Island, Washington State (© Edmund Lowe Photography/Shutterstock)","339ac9"],["OHR.StocktonInfinity_EN-US3006724421",20260808,"Crossing into infinity","Infinity Bridge in Stockton-on-Tees, England (© Bahadir Yeniceri/Shutterstock)","0f0b0e"],["OHR.JMTjibaou_EN-US3454380257",20260809,"Architecture of identity","Jean-Marie Tjibaou Cultural Centre, New Caledonia (© Fabien Astre/Alamy)","bfd0ce"],["OHR.SandPath_EN-US3759872156",20260810,"Where two deserts collide","Joshua Tree National Park, California (© JJ Landscapes/Getty Images)","e0d9ca"],["OHR.ColorfulCop_EN-US3993977654",20260811,"Copenhagen in full color","Colorful homes line Nyhavn Canal, Copenhagen, Denmark (© emicristea/Getty Images)","2c4140"],["OHR.ElephantDay_EN-US4280370948",20260812,"Giants worth protecting","A group of elephants, Amboseli National Park, Kenya (© Ibrahim Suha Derbent/Getty Images)","361805"]];
1
+ export const v = "md5:cf1b783e20644281c28889088ab0bd92";
2
+ export default [["OHR.HawaiiLava_EN-US4126737972",20260801,"The power of Kīlauea","A series of lava flows spill into the ocean, Big Island, Hawaii (© Ken McCurdy/Getty Images)","867d7f"],["OHR.HelsinkiBlue_EN-US4898215906",20260802,"Daughter of the Baltic","Helsinki's shoreline during blue hour, Uusimaa, Finland (© Miemo Penttinen/Getty Images)","1a3b56"],["OHR.BoatsMalta_EN-US5373607495",20260803,"Bright boats, timeless traditions","Colorful boats in Marsaxlokk Harbor, Malta (© Klubovy/Getty Images)","039a9c"],["OHR.AdorableOwlet_EN-US7873975586",20260804,"Hoot hoot hooray!","Florida burrowing owlet, Cape Coral, Florida, USA (© mlorenzphotography/Getty Images)","b3b09b"],["OHR.FezMorocco_EN-US8380353742",20260805,"Gates of a hidden kingdom","Decorated gate of the Royal Palace of Fez, Morocco (© cgst26/Shutterstock)","e48618"],["OHR.MaraCrossing_EN-US8682968377",20260806,"Where the river tests the brave","Migrating wildebeest crossing Mara River in Masai Mara, Kenya (© Manoj Shah/Getty Images)","cc9a78"],["OHR.LimeKiln_EN-US2748515593",20260807,"Guiding ships through history","Lime Kiln Lighthouse on San Juan Island, Washington State (© Edmund Lowe Photography/Shutterstock)","339ac9"],["OHR.StocktonInfinity_EN-US3006724421",20260808,"Crossing into infinity","Infinity Bridge in Stockton-on-Tees, England (© Bahadir Yeniceri/Shutterstock)","0f0b0e"],["OHR.JMTjibaou_EN-US3454380257",20260809,"Architecture of identity","Jean-Marie Tjibaou Cultural Centre, New Caledonia (© Fabien Astre/Alamy)","bfd0ce"],["OHR.SandPath_EN-US3759872156",20260810,"Where two deserts collide","Joshua Tree National Park, California (© JJ Landscapes/Getty Images)","e0d9ca"],["OHR.ColorfulCop_EN-US3993977654",20260811,"Copenhagen in full color","Colorful homes line Nyhavn Canal, Copenhagen, Denmark (© emicristea/Getty Images)","2c4140"],["OHR.ElephantDay_EN-US4280370948",20260812,"Giants worth protecting","A group of elephants, Amboseli National Park, Kenya (© Ibrahim Suha Derbent/Getty Images)","361805"],["OHR.PerseidasTenerife_EN-US4798593153",20260813,"Make a wish","Perseid meteors over Teide Observatory, Tenerife, Spain (© Westend61/Getty Images)","474a57"],["OHR.WildlifeCrossingPoland_EN-US5004733603",20260814,"Built for paws, not people","Aerial view of a wildlife crossing near Zakrzów, Poland (© bbsferrari/Getty Images)","47562f"],["OHR.ValleyDreams_EN-US5250331985",20260815,"The great balancing act","Hoodoos in Ah Shi Sle Pah Wilderness in San Juan County, New Mexico (© Westend61/Getty Images)","5b342b"],["OHR.RossErrillyRuins_EN-US5729358123",20260816,"Where swans started a legend","Ruins of Ross Errilly Friary, County Galway, Ireland (© Maria Janus/Shutterstock)","464733"],["OHR.CabilaoClowns_EN-US6302440247",20260817,"A prime 'reef' estate","Three false clownfish in a sea anemone, Cabilao Island, Bohol, Philippines (© Franco Banfi/Nature Picture Library)","774db3"]];
package/docs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export const version = "2.0";
2
- export const dataVersion = "md5:3075c024442d92d63a179083a5af0e65";
3
- export const generatedAt = "2026-08-12T18:58:05.826Z";
4
- export const totalWallpapers = 1968;
2
+ export const dataVersion = "md5:c3cac90df856868ffad9c6aa575a82fe";
3
+ export const generatedAt = "2026-08-17T18:34:18.810Z";
4
+ export const totalWallpapers = 1973;
5
5
  export const monthList = ["2026-08","2026-07","2026-06","2026-05","2026-04","2026-03","2026-02","2025-11","2025-10","2025-09","2025-08","2025-07","2025-06","2025-05","2025-04","2025-03","2025-02","2025-01","2024-12","2024-11","2024-10","2024-09","2024-08","2024-07","2024-06","2024-05","2024-04","2024-03","2024-02","2024-01","2023-12","2023-11","2023-10","2023-09","2023-08","2023-07","2023-06","2023-05","2023-04","2023-03","2023-02","2023-01","2022-12","2022-11","2022-10","2022-09","2022-08","2022-07","2022-06","2022-01","2021-12","2021-11","2021-10","2021-09","2021-08","2021-07","2021-06","2021-05","2021-04","2021-03","2021-02","2021-01","2020-12"];
6
6
  export const latestMonth = "2026-08";
package/docs/index.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "version": "2.0",
3
3
  "schemaVersion": 2,
4
- "dataVersion": "md5:3075c024442d92d63a179083a5af0e65",
5
- "generatedAt": "2026-08-12T18:58:05.822Z",
6
- "lastModified": "2026-08-12T18:58:05.822Z",
7
- "totalWallpapers": 1968,
4
+ "dataVersion": "md5:c3cac90df856868ffad9c6aa575a82fe",
5
+ "generatedAt": "2026-08-17T18:34:18.807Z",
6
+ "lastModified": "2026-08-17T18:34:18.807Z",
7
+ "totalWallpapers": 1973,
8
8
  "chunks": {
9
9
  "2020-12": {
10
10
  "version": "md5:d5691d9ef07e146bc9529c594f4d7845",
@@ -503,16 +503,16 @@
503
503
  "previousHash": "2bc84cec4efb13d2fe8f94924a81527b"
504
504
  },
505
505
  "2026-08": {
506
- "version": "md5:580bf7a0d092a1f6d75edc160936bece",
507
- "updatedAt": "2026-08-12T18:58:05.812Z",
506
+ "version": "md5:cf1b783e20644281c28889088ab0bd92",
507
+ "updatedAt": "2026-08-17T18:34:18.797Z",
508
508
  "isChanged": true,
509
- "recordCount": 12,
510
- "checksum": "md5:a6b4aa4dba558cc4c8ffc0cd92cdf52a",
511
- "previousHash": "3e9b3850cc7e585e250311119b777bd3"
509
+ "recordCount": 17,
510
+ "checksum": "md5:7a8ce15456e1944b3f052937c449ae76",
511
+ "previousHash": "ba54008f0860c7e0fff231cc8ece744a"
512
512
  }
513
513
  },
514
514
  "stats": {
515
- "total": 1968,
515
+ "total": 1973,
516
516
  "changedChunks": 1,
517
517
  "unchangedChunks": 62,
518
518
  "colors": [
@@ -560,7 +560,7 @@
560
560
  "byMonth": [
561
561
  {
562
562
  "month": "2026-08",
563
- "count": 12
563
+ "count": 17
564
564
  },
565
565
  {
566
566
  "month": "2026-07",
@@ -879,6 +879,6 @@
879
879
  ],
880
880
  "latestMonth": "2026-08",
881
881
  "oldestMonth": "2020-12",
882
- "allJsVersion": "md5:fe14e6e14fb7088027d91de6690dd198",
882
+ "allJsVersion": "md5:0ebc0a2c6ebfc9a65fa5222e91a2894d",
883
883
  "updateLog": []
884
884
  }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * 遗留 runtime cache 清理脚本(由 workbox generateSW 的 importScripts 注入)。
3
+ *
4
+ * 背景:generateSW 的 cleanupOutdatedCaches 只清理 precache,
5
+ * 历史版本遗留的 runtime cache(如已废弃的 bing-wallpapers-json)
6
+ * 永远不会被自动删除。此脚本在 SW activate 时按白名单清理
7
+ * bing-* 前缀的旧缓存,现役缓存由各自的 ExpirationPlugin 管理。
8
+ */
9
+ /* global self, caches */
10
+ (function () {
11
+ 'use strict';
12
+
13
+ var RUNTIME_CACHE_WHITELIST = [
14
+ 'bing-wallpapers-data',
15
+ 'bing-thumbs-cache',
16
+ 'bing-images-cache',
17
+ ];
18
+
19
+ self.addEventListener('activate', function (event) {
20
+ event.waitUntil(
21
+ caches.keys().then(function (keys) {
22
+ return Promise.all(
23
+ keys
24
+ .filter(function (key) {
25
+ return key.indexOf('bing-') === 0 && RUNTIME_CACHE_WHITELIST.indexOf(key) === -1;
26
+ })
27
+ .map(function (key) {
28
+ return caches.delete(key);
29
+ })
30
+ );
31
+ })
32
+ );
33
+ });
34
+ })();
package/docs/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,n={};const i=(i,s)=>(i=new URL(i+".js",s).href,n[i]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=n,document.head.appendChild(e)}else e=i,importScripts(i),n()}).then(()=>{let e=n[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(s,o)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(n[a])return;let r={};const c=e=>i(e,a),d={module:{uri:a},exports:r,require:c};n[a]=Promise.all(s.map(e=>d[e]||c(e))).then(e=>(o(...e),r))}}define(["./workbox-ba52f122"],function(e){"use strict";self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.precacheAndRoute([{url:"offline.html",revision:"809aa150d560c400127c751f8ed27564"},{url:"index.html",revision:"91104049366eb08683eefd122bc3aa92"},{url:"favicon.ico",revision:"7d6438c4595a97ec3977dc6edfd4f437"},{url:"favicon-32x32.png",revision:"e5712a1142a08a4688ea6338a118faa9"},{url:"favicon-16x16.png",revision:"d306b0cdce9b609a64e822ff2f4a37d2"},{url:"apple-touch-icon.png",revision:"69b94a81d2c502cf400269cb318dc49d"},{url:"android-chrome-512x512.png",revision:"1346054eab7f49949d2c112b1912c415"},{url:"android-chrome-192x192.png",revision:"e556bfbcfff439dc43d07d3a5e75a4a4"},{url:"assets/workbox-window.prod.es5-BqEJf4Xk.js",revision:null},{url:"assets/vendor-Cqan-lnt.js",revision:null},{url:"assets/mui-CODf_-Dy.js",revision:null},{url:"assets/motion-D7meI8QE.js",revision:null},{url:"assets/index-D24HC7ZW.js",revision:null},{url:"android-chrome-192x192.png",revision:"e556bfbcfff439dc43d07d3a5e75a4a4"},{url:"android-chrome-512x512.png",revision:"1346054eab7f49949d2c112b1912c415"},{url:"apple-touch-icon.png",revision:"69b94a81d2c502cf400269cb318dc49d"},{url:"favicon-16x16.png",revision:"d306b0cdce9b609a64e822ff2f4a37d2"},{url:"favicon-32x32.png",revision:"e5712a1142a08a4688ea6338a118faa9"},{url:"manifest.webmanifest",revision:"bfd618229ebb41aa8dcb2812d73f13d7"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{denylist:[/^\/chunks\//,/^\/index\.json/]})),e.registerRoute(/.*\/(index\.json|chunks\/.*\.(json|js))/,new e.NetworkFirst({cacheName:"bing-wallpapers-data",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/^https:\/\/cn\.bing\.com\/th\?.*/i,new e.CacheFirst({cacheName:"bing-images-cache",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:5184e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")});
1
+ if(!self.define){let e,n={};const i=(i,s)=>(i=new URL(i+".js",s).href,n[i]||new Promise(n=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=n,document.head.appendChild(e)}else e=i,importScripts(i),n()}).then(()=>{let e=n[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(s,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(n[r])return;let a={};const c=e=>i(e,r),d={module:{uri:r},exports:a,require:c};n[r]=Promise.all(s.map(e=>d[e]||c(e))).then(e=>(o(...e),a))}}define(["./workbox-8553a241"],function(e){"use strict";importScripts("sw-cleanup.js"),self.addEventListener("message",e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()}),e.precacheAndRoute([{url:"offline.html",revision:"809aa150d560c400127c751f8ed27564"},{url:"index.html",revision:"4c3000411b95d2d44ca530646c9878c9"},{url:"favicon.ico",revision:"7d6438c4595a97ec3977dc6edfd4f437"},{url:"favicon-32x32.png",revision:"e5712a1142a08a4688ea6338a118faa9"},{url:"favicon-16x16.png",revision:"d306b0cdce9b609a64e822ff2f4a37d2"},{url:"apple-touch-icon.png",revision:"69b94a81d2c502cf400269cb318dc49d"},{url:"android-chrome-512x512.png",revision:"1346054eab7f49949d2c112b1912c415"},{url:"android-chrome-192x192.png",revision:"e556bfbcfff439dc43d07d3a5e75a4a4"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/vendor-VRaQyiYk.js",revision:null},{url:"assets/rolldown-runtime-B0Z9INg1.js",revision:null},{url:"assets/mui-BvEy-IQi.js",revision:null},{url:"assets/motion-D-pYCg-m.js",revision:null},{url:"assets/index-DO170lkJ.js",revision:null},{url:"android-chrome-192x192.png",revision:"e556bfbcfff439dc43d07d3a5e75a4a4"},{url:"android-chrome-512x512.png",revision:"1346054eab7f49949d2c112b1912c415"},{url:"apple-touch-icon.png",revision:"69b94a81d2c502cf400269cb318dc49d"},{url:"favicon-16x16.png",revision:"d306b0cdce9b609a64e822ff2f4a37d2"},{url:"favicon-32x32.png",revision:"e5712a1142a08a4688ea6338a118faa9"},{url:"manifest.webmanifest",revision:"bfd618229ebb41aa8dcb2812d73f13d7"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{denylist:[/^\/chunks\//,/^\/index\.json/]})),e.registerRoute(/.*\/(index\.json|chunks\/.*\.(json|js))/,new e.NetworkFirst({cacheName:"bing-wallpapers-data",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/^https:\/\/cn\.bing\.com\/th\?.*[?&]w=300(&|$)/i,new e.CacheFirst({cacheName:"bing-thumbs-cache",plugins:[new e.ExpirationPlugin({maxEntries:200,maxAgeSeconds:2592e3}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET"),e.registerRoute(/^https:\/\/cn\.bing\.com\/th\?.*/i,new e.CacheFirst({cacheName:"bing-images-cache",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800}),new e.CacheableResponsePlugin({statuses:[0,200]})]}),"GET")});
@@ -1 +1 @@
1
- define(["exports"],function(t){"use strict";try{self["workbox:core:7.3.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:7.3.0"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super(({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)},e,s)}}class a{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)})}addCacheListener(){self.addEventListener("message",t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map(e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})}));t.waitUntil(s),t.ports&&t.ports[0]&&s.then(()=>t.ports[0].postMessage(!0))}})}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let a=r&&r.handler;const o=t.method;if(!a&&this.i.has(o)&&(a=this.i.get(o)),!a)return;let c;try{c=a.handle({url:s,request:t,event:e,params:i})}catch(t){c=Promise.reject(t)}const h=r&&r.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch(async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n})),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const a=r.match({url:t,sameOrigin:e,request:s,event:n});if(a)return i=a,(Array.isArray(i)&&0===i.length||a.constructor===Object&&0===Object.keys(a).length||"boolean"==typeof a)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let o;const c=()=>(o||(o=new a,o.addFetchListener(),o.addCacheListener()),o);function h(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new i(({url:t})=>t.href===s.href,e,n)}else if(t instanceof RegExp)a=new r(t,e,n);else if("function"==typeof t)a=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}return c().registerRoute(a),a}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter(t=>t&&t.length>0).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t){t.then(()=>{})}const p=new Set;function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)({}).hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},y.apply(null,arguments)}let m,g;const R=new WeakMap,v=new WeakMap,b=new WeakMap,q=new WeakMap,D=new WeakMap;let U={get(t,e,s){if(t instanceof IDBTransaction){if("done"===e)return v.get(t);if("objectStoreNames"===e)return t.objectStoreNames||b.get(t);if("store"===e)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return L(t[e])},set:(t,e,s)=>(t[e]=s,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function x(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(g||(g=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(E(this),e),L(R.get(this))}:function(...e){return L(t.apply(E(this),e))}:function(e,...s){const n=t.call(E(this),e,...s);return b.set(n,e.sort?e.sort():[e]),L(n)}}function I(t){return"function"==typeof t?x(t):(t instanceof IDBTransaction&&function(t){if(v.has(t))return;const e=new Promise((e,s)=>{const n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",r),t.removeEventListener("abort",r)},i=()=>{e(),n()},r=()=>{s(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",r),t.addEventListener("abort",r)});v.set(t,e)}(t),e=t,(m||(m=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(t,U):t);var e}function L(t){if(t instanceof IDBRequest)return function(t){const e=new Promise((e,s)=>{const n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",r)},i=()=>{e(L(t.result)),n()},r=()=>{s(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",r)});return e.then(e=>{e instanceof IDBCursor&&R.set(e,t)}).catch(()=>{}),D.set(e,t),e}(t);if(q.has(t))return q.get(t);const e=I(t);return e!==t&&(q.set(t,e),D.set(e,t)),e}const E=t=>D.get(t);const C=["get","getKey","getAll","getAllKeys","count"],N=["put","add","delete","clear"],O=new Map;function k(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(O.get(e))return O.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,i=N.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!C.includes(s))return;const r=async function(t,...e){const r=this.transaction(t,i?"readwrite":"readonly");let a=r.store;return n&&(a=a.index(e.shift())),(await Promise.all([a[s](...e),i&&r.done]))[0]};return O.set(e,r),r}U=(t=>y({},t,{get:(e,s,n)=>k(e,s)||t.get(e,s,n),has:(e,s)=>!!k(e,s)||t.has(e,s)}))(U);try{self["workbox:expiration:7.3.0"]&&_()}catch(t){}const B="cache-entries",T=t=>{const e=new URL(t,location.href);return e.hash="",e.href};class P{constructor(t){this.h=null,this.u=t}l(t){const e=t.createObjectStore(B,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}p(t){this.l(t),this.u&&function(t,{blocked:e}={}){const s=indexedDB.deleteDatabase(t);e&&s.addEventListener("blocked",t=>e(t.oldVersion,t)),L(s).then(()=>{})}(this.u)}async setTimestamp(t,e){const s={url:t=T(t),timestamp:e,cacheName:this.u,id:this.m(t)},n=(await this.getDb()).transaction(B,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(t){const e=await this.getDb(),s=await e.get(B,this.m(t));return null==s?void 0:s.timestamp}async expireEntries(t,e){const s=await this.getDb();let n=await s.transaction(B).store.index("timestamp").openCursor(null,"prev");const i=[];let r=0;for(;n;){const s=n.value;s.cacheName===this.u&&(t&&s.timestamp<t||e&&r>=e?i.push(n.value):r++),n=await n.continue()}const a=[];for(const t of i)await s.delete(B,t.id),a.push(t.url);return a}m(t){return this.u+"|"+T(t)}async getDb(){return this.h||(this.h=await function(t,e,{blocked:s,upgrade:n,blocking:i,terminated:r}={}){const a=indexedDB.open(t,e),o=L(a);return n&&a.addEventListener("upgradeneeded",t=>{n(L(a.result),t.oldVersion,t.newVersion,L(a.transaction),t)}),s&&a.addEventListener("blocked",t=>s(t.oldVersion,t.newVersion,t)),o.then(t=>{r&&t.addEventListener("close",()=>r()),i&&t.addEventListener("versionchange",t=>i(t.oldVersion,t.newVersion,t))}).catch(()=>{}),o}("workbox-expiration",1,{upgrade:this.p.bind(this)})),this.h}}class M{constructor(t,e={}){this.R=!1,this.v=!1,this.q=e.maxEntries,this.D=e.maxAgeSeconds,this.U=e.matchOptions,this.u=t,this._=new P(t)}async expireEntries(){if(this.R)return void(this.v=!0);this.R=!0;const t=this.D?Date.now()-1e3*this.D:0,e=await this._.expireEntries(t,this.q),s=await self.caches.open(this.u);for(const t of e)await s.delete(t,this.U);this.R=!1,this.v&&(this.v=!1,d(this.expireEntries()))}async updateTimestamp(t){await this._.setTimestamp(t,Date.now())}async isURLExpired(t){if(this.D){const e=await this._.getTimestamp(t),s=Date.now()-1e3*this.D;return void 0===e||e<s}return!1}async delete(){this.v=!1,await this._.expireEntries(1/0)}}try{self["workbox:cacheable-response:7.3.0"]&&_()}catch(t){}class j{constructor(t={}){this.I=t.statuses,this.L=t.headers}isResponseCacheable(t){let e=!0;return this.I&&(e=this.I.includes(t.status)),this.L&&e&&(e=Object.keys(this.L).some(e=>t.headers.get(e)===this.L[e])),e}}try{self["workbox:strategies:7.3.0"]&&_()}catch(t){}const W={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null};function S(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class K{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}function A(t){return"string"==typeof t?new Request(t):t}class F{constructor(t,e){this.C={},Object.assign(this,e),this.event=e.event,this.N=t,this.O=new K,this.k=[],this.B=[...t.plugins],this.T=new Map;for(const t of this.B)this.T.set(t,{});this.event.waitUntil(this.O.promise)}async fetch(t){const{event:e}=this;let n=A(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.N.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=A(t);let s;const{cacheName:n,matchOptions:i}=this.N,r=await this.getCacheKey(e,"read"),a=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,a);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=A(t);var i;await(i=0,new Promise(t=>setTimeout(t,i)));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(a=r.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const o=await this.P(e);if(!o)return!1;const{cacheName:c,matchOptions:h}=this.N,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=S(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await t.keys(e,r);for(const e of a)if(i===S(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?o.clone():o)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of p)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:o.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.C[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=A(await t({mode:e,request:n,event:this.event,params:this.params}));this.C[s]=n}return this.C[s]}hasCallback(t){for(const e of this.N.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.N.plugins)if("function"==typeof e[t]){const s=this.T.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.k.push(t),t}async doneWaiting(){for(;this.k.length;){const t=this.k.splice(0),e=(await Promise.allSettled(t)).find(t=>"rejected"===t.status);if(e)throw e.reason}}destroy(){this.O.resolve(null)}async P(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class H{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new F(this,{event:e,request:s,params:n}),r=this.M(i,s,e);return[r,this.j(r,i,s,e)]}async M(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.W(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async j(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}function $(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.3.0"]&&_()}catch(t){}function G(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class V{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class J{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.S.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.S=t}}let Q,z;async function X(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},a=e?e(r):r,o=function(){if(void 0===Q){const t=new Response("");if("body"in t)try{new Response(t.body),Q=!0}catch(t){Q=!1}Q=!1}return Q}()?i.body:await i.blob();return new Response(o,a)}class Y extends H{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this.K=!1!==t.fallbackToNetwork,this.plugins.push(Y.copyRedirectedCacheableResponsesPlugin)}async W(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.A(t,e):await this.F(t,e))}async F(t,e){let n;const i=e.params||{};if(!this.K)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,a=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&a&&"no-cors"!==t.mode&&(this.H(),await e.cachePut(t,n.clone()))}return n}async A(t,e){this.H();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}H(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==Y.copyRedirectedCacheableResponsesPlugin&&(n===Y.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(Y.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}Y.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},Y.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await X(t):t};class Z{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.$=new Map,this.G=new Map,this.V=new Map,this.N=new Y({cacheName:f(t),plugins:[...e,new J({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.N}precache(t){this.addToCacheList(t),this.J||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.J=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=G(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.$.has(i)&&this.$.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.$.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.V.has(t)&&this.V.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.V.set(t,n.integrity)}if(this.$.set(i,t),this.G.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return $(t,async()=>{const e=new V;this.strategy.plugins.push(e);for(const[e,s]of this.$){const n=this.V.get(s),i=this.G.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}})}activate(t){return $(t,async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.$.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}})}getURLsToCacheKeys(){return this.$}getCachedURLs(){return[...this.$.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.$.get(e.href)}getIntegrityForCacheKey(t){return this.V.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const tt=()=>(z||(z=new Z),z);class et extends i{constructor(t,e){super(({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const a=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some(t=>t.test(s))&&t.searchParams.delete(s);return t}(r,e);if(yield a.href,s&&a.pathname.endsWith("/")){const t=new URL(a.href);t.pathname+=s,yield t.href}if(n){const t=new URL(a.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}},t.strategy)}}t.CacheFirst=class extends H{async W(t,e){let n,i=await e.cacheMatch(t);if(!i)try{i=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!i)throw new s("no-response",{url:t.url,error:n});return i}},t.CacheableResponsePlugin=class{constructor(t){this.cacheWillUpdate=async({response:t})=>this.X.isResponseCacheable(t)?t:null,this.X=new j(t)}},t.ExpirationPlugin=class{constructor(t={}){this.cachedResponseWillBeUsed=async({event:t,request:e,cacheName:s,cachedResponse:n})=>{if(!n)return null;const i=this.Y(n),r=this.Z(s);d(r.expireEntries());const a=r.updateTimestamp(e.url);if(t)try{t.waitUntil(a)}catch(t){}return i?n:null},this.cacheDidUpdate=async({cacheName:t,request:e})=>{const s=this.Z(t);await s.updateTimestamp(e.url),await s.expireEntries()},this.tt=t,this.D=t.maxAgeSeconds,this.et=new Map,t.purgeOnQuotaError&&function(t){p.add(t)}(()=>this.deleteCacheAndMetadata())}Z(t){if(t===w())throw new s("expire-custom-caches-only");let e=this.et.get(t);return e||(e=new M(t,this.tt),this.et.set(t,e)),e}Y(t){if(!this.D)return!0;const e=this.st(t);if(null===e)return!0;return e>=Date.now()-1e3*this.D}st(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date"),s=new Date(e).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[t,e]of this.et)await self.caches.delete(t),await e.delete();this.et=new Map}},t.NavigationRoute=class extends i{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super(t=>this.nt(t),t),this.it=e,this.rt=s}nt({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.rt)if(t.test(s))return!1;return!!this.it.some(t=>t.test(s))}},t.NetworkFirst=class extends H{constructor(t={}){super(t),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(W),this.ot=t.networkTimeoutSeconds||0}async W(t,e){const n=[],i=[];let r;if(this.ot){const{id:s,promise:a}=this.ct({request:t,logs:n,handler:e});r=s,i.push(a)}const a=this.ht({timeoutId:r,request:t,logs:n,handler:e});i.push(a);const o=await e.waitUntil((async()=>await e.waitUntil(Promise.race(i))||await a)());if(!o)throw new s("no-response",{url:t.url});return o}ct({request:t,logs:e,handler:s}){let n;return{promise:new Promise(e=>{n=setTimeout(async()=>{e(await s.cacheMatch(t))},1e3*this.ot)}),id:n}}async ht({timeoutId:t,request:e,logs:s,handler:n}){let i,r;try{r=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(i=t)}return t&&clearTimeout(t),!i&&r||(r=await n.cacheMatch(e)),r}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",t=>{const e=f();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter(s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t);return await Promise.all(s.map(t=>self.caches.delete(t))),s})(e).then(t=>{}))})},t.createHandlerBoundToURL=function(t){return tt().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){tt().precache(t)}(t),function(t){const e=tt();h(new et(e,t))}(e)},t.registerRoute=h});
1
+ define(["exports"],function(t){"use strict";try{self["workbox:core:7.4.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:7.4.0"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super(({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)},e,s)}}class a{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)})}addCacheListener(){self.addEventListener("message",t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map(e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})}));t.waitUntil(s),t.ports&&t.ports[0]&&s.then(()=>t.ports[0].postMessage(!0))}})}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let a=r&&r.handler;const o=t.method;if(!a&&this.i.has(o)&&(a=this.i.get(o)),!a)return;let c;try{c=a.handle({url:s,request:t,event:e,params:i})}catch(t){c=Promise.reject(t)}const h=r&&r.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch(async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n})),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const a=r.match({url:t,sameOrigin:e,request:s,event:n});if(a)return i=a,(Array.isArray(i)&&0===i.length||a.constructor===Object&&0===Object.keys(a).length||"boolean"==typeof a)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let o;const c=()=>(o||(o=new a,o.addFetchListener(),o.addCacheListener()),o);function h(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new i(({url:t})=>t.href===s.href,e,n)}else if(t instanceof RegExp)a=new r(t,e,n);else if("function"==typeof t)a=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}return c().registerRoute(a),a}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter(t=>t&&t.length>0).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t){t.then(()=>{})}const p=new Set;function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)({}).hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},y.apply(null,arguments)}let m,g;const R=new WeakMap,v=new WeakMap,b=new WeakMap,q=new WeakMap,D=new WeakMap;let U={get(t,e,s){if(t instanceof IDBTransaction){if("done"===e)return v.get(t);if("objectStoreNames"===e)return t.objectStoreNames||b.get(t);if("store"===e)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return L(t[e])},set:(t,e,s)=>(t[e]=s,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function x(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(g||(g=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(E(this),e),L(R.get(this))}:function(...e){return L(t.apply(E(this),e))}:function(e,...s){const n=t.call(E(this),e,...s);return b.set(n,e.sort?e.sort():[e]),L(n)}}function I(t){return"function"==typeof t?x(t):(t instanceof IDBTransaction&&function(t){if(v.has(t))return;const e=new Promise((e,s)=>{const n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",r),t.removeEventListener("abort",r)},i=()=>{e(),n()},r=()=>{s(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",r),t.addEventListener("abort",r)});v.set(t,e)}(t),e=t,(m||(m=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(t,U):t);var e}function L(t){if(t instanceof IDBRequest)return function(t){const e=new Promise((e,s)=>{const n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",r)},i=()=>{e(L(t.result)),n()},r=()=>{s(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",r)});return e.then(e=>{e instanceof IDBCursor&&R.set(e,t)}).catch(()=>{}),D.set(e,t),e}(t);if(q.has(t))return q.get(t);const e=I(t);return e!==t&&(q.set(t,e),D.set(e,t)),e}const E=t=>D.get(t);const C=["get","getKey","getAll","getAllKeys","count"],N=["put","add","delete","clear"],O=new Map;function k(t,e){if(!(t instanceof IDBDatabase)||e in t||"string"!=typeof e)return;if(O.get(e))return O.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,i=N.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!C.includes(s))return;const r=async function(t,...e){const r=this.transaction(t,i?"readwrite":"readonly");let a=r.store;return n&&(a=a.index(e.shift())),(await Promise.all([a[s](...e),i&&r.done]))[0]};return O.set(e,r),r}U=(t=>y({},t,{get:(e,s,n)=>k(e,s)||t.get(e,s,n),has:(e,s)=>!!k(e,s)||t.has(e,s)}))(U);try{self["workbox:expiration:7.4.0"]&&_()}catch(t){}const B="cache-entries",T=t=>{const e=new URL(t,location.href);return e.hash="",e.href};class P{constructor(t){this.h=null,this.u=t}l(t){const e=t.createObjectStore(B,{keyPath:"id"});e.createIndex("cacheName","cacheName",{unique:!1}),e.createIndex("timestamp","timestamp",{unique:!1})}p(t){this.l(t),this.u&&function(t,{blocked:e}={}){const s=indexedDB.deleteDatabase(t);e&&s.addEventListener("blocked",t=>e(t.oldVersion,t)),L(s).then(()=>{})}(this.u)}async setTimestamp(t,e){const s={url:t=T(t),timestamp:e,cacheName:this.u,id:this.m(t)},n=(await this.getDb()).transaction(B,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(t){const e=await this.getDb(),s=await e.get(B,this.m(t));return null==s?void 0:s.timestamp}async expireEntries(t,e){const s=await this.getDb();let n=await s.transaction(B).store.index("timestamp").openCursor(null,"prev");const i=[];let r=0;for(;n;){const s=n.value;s.cacheName===this.u&&(t&&s.timestamp<t||e&&r>=e?i.push(n.value):r++),n=await n.continue()}const a=[];for(const t of i)await s.delete(B,t.id),a.push(t.url);return a}m(t){return this.u+"|"+T(t)}async getDb(){return this.h||(this.h=await function(t,e,{blocked:s,upgrade:n,blocking:i,terminated:r}={}){const a=indexedDB.open(t,e),o=L(a);return n&&a.addEventListener("upgradeneeded",t=>{n(L(a.result),t.oldVersion,t.newVersion,L(a.transaction),t)}),s&&a.addEventListener("blocked",t=>s(t.oldVersion,t.newVersion,t)),o.then(t=>{r&&t.addEventListener("close",()=>r()),i&&t.addEventListener("versionchange",t=>i(t.oldVersion,t.newVersion,t))}).catch(()=>{}),o}("workbox-expiration",1,{upgrade:this.p.bind(this)})),this.h}}class M{constructor(t,e={}){this.R=!1,this.v=!1,this.q=e.maxEntries,this.D=e.maxAgeSeconds,this.U=e.matchOptions,this.u=t,this._=new P(t)}async expireEntries(){if(this.R)return void(this.v=!0);this.R=!0;const t=this.D?Date.now()-1e3*this.D:0,e=await this._.expireEntries(t,this.q),s=await self.caches.open(this.u);for(const t of e)await s.delete(t,this.U);this.R=!1,this.v&&(this.v=!1,d(this.expireEntries()))}async updateTimestamp(t){await this._.setTimestamp(t,Date.now())}async isURLExpired(t){if(this.D){const e=await this._.getTimestamp(t),s=Date.now()-1e3*this.D;return void 0===e||e<s}return!1}async delete(){this.v=!1,await this._.expireEntries(1/0)}}try{self["workbox:cacheable-response:7.4.0"]&&_()}catch(t){}class j{constructor(t={}){this.I=t.statuses,this.L=t.headers}isResponseCacheable(t){let e=!0;return this.I&&(e=this.I.includes(t.status)),this.L&&e&&(e=Object.keys(this.L).some(e=>t.headers.get(e)===this.L[e])),e}}try{self["workbox:strategies:7.4.0"]&&_()}catch(t){}const W={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null};function S(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class K{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}}function A(t){return"string"==typeof t?new Request(t):t}class F{constructor(t,e){this.C={},Object.assign(this,e),this.event=e.event,this.N=t,this.O=new K,this.k=[],this.B=[...t.plugins],this.T=new Map;for(const t of this.B)this.T.set(t,{});this.event.waitUntil(this.O.promise)}async fetch(t){const{event:e}=this;let n=A(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.N.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=A(t);let s;const{cacheName:n,matchOptions:i}=this.N,r=await this.getCacheKey(e,"read"),a=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,a);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=A(t);var i;await(i=0,new Promise(t=>setTimeout(t,i)));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(a=r.url,new URL(String(a),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var a;const o=await this.P(e);if(!o)return!1;const{cacheName:c,matchOptions:h}=this.N,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=S(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),a=await t.keys(e,r);for(const e of a)if(i===S(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?o.clone():o)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of p)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:o.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.C[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=A(await t({mode:e,request:n,event:this.event,params:this.params}));this.C[s]=n}return this.C[s]}hasCallback(t){for(const e of this.N.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.N.plugins)if("function"==typeof e[t]){const s=this.T.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.k.push(t),t}async doneWaiting(){for(;this.k.length;){const t=this.k.splice(0),e=(await Promise.allSettled(t)).find(t=>"rejected"===t.status);if(e)throw e.reason}}destroy(){this.O.resolve(null)}async P(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class H{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new F(this,{event:e,request:s,params:n}),r=this.M(i,s,e);return[r,this.j(r,i,s,e)]}async M(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.W(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async j(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}function $(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.4.0"]&&_()}catch(t){}function G(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class V{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class J{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.S.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.S=t}}let Q,z;async function X(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},a=function(){if(void 0===Q){const t=new Response("");if("body"in t)try{new Response(t.body),Q=!0}catch(t){Q=!1}Q=!1}return Q}()?i.body:await i.blob();return new Response(a,r)}class Y extends H{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this.K=!1!==t.fallbackToNetwork,this.plugins.push(Y.copyRedirectedCacheableResponsesPlugin)}async W(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.A(t,e):await this.F(t,e))}async F(t,e){let n;const i=e.params||{};if(!this.K)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,a=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&a&&"no-cors"!==t.mode&&(this.H(),await e.cachePut(t,n.clone()))}return n}async A(t,e){this.H();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}H(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==Y.copyRedirectedCacheableResponsesPlugin&&(n===Y.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(Y.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}Y.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},Y.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await X(t):t};class Z{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.$=new Map,this.G=new Map,this.V=new Map,this.N=new Y({cacheName:f(t),plugins:[...e,new J({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.N}precache(t){this.addToCacheList(t),this.J||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.J=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=G(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.$.has(i)&&this.$.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.$.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.V.has(t)&&this.V.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.V.set(t,n.integrity)}if(this.$.set(i,t),this.G.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return $(t,async()=>{const e=new V;this.strategy.plugins.push(e);for(const[e,s]of this.$){const n=this.V.get(s),i=this.G.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}})}activate(t){return $(t,async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.$.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}})}getURLsToCacheKeys(){return this.$}getCachedURLs(){return[...this.$.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.$.get(e.href)}getIntegrityForCacheKey(t){return this.V.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const tt=()=>(z||(z=new Z),z);class et extends i{constructor(t,e){super(({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const a=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some(t=>t.test(s))&&t.searchParams.delete(s);return t}(r,e);if(yield a.href,s&&a.pathname.endsWith("/")){const t=new URL(a.href);t.pathname+=s,yield t.href}if(n){const t=new URL(a.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}},t.strategy)}}t.CacheFirst=class extends H{async W(t,e){let n,i=await e.cacheMatch(t);if(!i)try{i=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!i)throw new s("no-response",{url:t.url,error:n});return i}},t.CacheableResponsePlugin=class{constructor(t){this.cacheWillUpdate=async({response:t})=>this.X.isResponseCacheable(t)?t:null,this.X=new j(t)}},t.ExpirationPlugin=class{constructor(t={}){this.cachedResponseWillBeUsed=async({event:t,request:e,cacheName:s,cachedResponse:n})=>{if(!n)return null;const i=this.Y(n),r=this.Z(s);d(r.expireEntries());const a=r.updateTimestamp(e.url);if(t)try{t.waitUntil(a)}catch(t){}return i?n:null},this.cacheDidUpdate=async({cacheName:t,request:e})=>{const s=this.Z(t);await s.updateTimestamp(e.url),await s.expireEntries()},this.tt=t,this.D=t.maxAgeSeconds,this.et=new Map,t.purgeOnQuotaError&&function(t){p.add(t)}(()=>this.deleteCacheAndMetadata())}Z(t){if(t===w())throw new s("expire-custom-caches-only");let e=this.et.get(t);return e||(e=new M(t,this.tt),this.et.set(t,e)),e}Y(t){if(!this.D)return!0;const e=this.st(t);if(null===e)return!0;return e>=Date.now()-1e3*this.D}st(t){if(!t.headers.has("date"))return null;const e=t.headers.get("date"),s=new Date(e).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[t,e]of this.et)await self.caches.delete(t),await e.delete();this.et=new Map}},t.NavigationRoute=class extends i{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super(t=>this.nt(t),t),this.it=e,this.rt=s}nt({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.rt)if(t.test(s))return!1;return!!this.it.some(t=>t.test(s))}},t.NetworkFirst=class extends H{constructor(t={}){super(t),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(W),this.ot=t.networkTimeoutSeconds||0}async W(t,e){const n=[],i=[];let r;if(this.ot){const{id:s,promise:a}=this.ct({request:t,logs:n,handler:e});r=s,i.push(a)}const a=this.ht({timeoutId:r,request:t,logs:n,handler:e});i.push(a);const o=await e.waitUntil((async()=>await e.waitUntil(Promise.race(i))||await a)());if(!o)throw new s("no-response",{url:t.url});return o}ct({request:t,logs:e,handler:s}){let n;return{promise:new Promise(e=>{n=setTimeout(async()=>{e(await s.cacheMatch(t))},1e3*this.ot)}),id:n}}async ht({timeoutId:t,request:e,logs:s,handler:n}){let i,r;try{r=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(i=t)}return t&&clearTimeout(t),!i&&r||(r=await n.cacheMatch(e)),r}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",t=>{const e=f();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter(s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t);return await Promise.all(s.map(t=>self.caches.delete(t))),s})(e).then(t=>{}))})},t.createHandlerBoundToURL=function(t){return tt().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){tt().precache(t)}(t),function(t){const e=tt();h(new et(e,t))}(e)},t.registerRoute=h});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bing-wallpaper-robot",
3
- "version": "1.5.11",
3
+ "version": "1.5.13",
4
4
  "description": "Daily updated, compacted metadata chunks of Bing Wallpapers",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -30,8 +30,8 @@
30
30
  "build": "pnpm run build:frontend && pnpm run build:copy && pnpm run build:data",
31
31
  "dev": "cd website && pnpm run dev",
32
32
  "start": "pnpm run fetch-data && pnpm run build",
33
- "lint": "eslint crawler --ext .ts --quiet",
34
- "lint:fix": "eslint crawler --ext .ts --fix",
33
+ "lint": "eslint crawler --quiet",
34
+ "lint:fix": "eslint crawler --fix",
35
35
  "format": "prettier --write \"crawler/**/*.ts\" \"**/*.md\" \"**/*.json\" && cd crawler && uv run ruff format . && uv run ruff check . --fix",
36
36
  "format:check": "prettier --check \"crawler/**/*.ts\" \"**/*.md\" \"**/*.json\"",
37
37
  "format:lint": "pnpm run format && pnpm run lint"
@@ -41,25 +41,31 @@
41
41
  "license": "MIT",
42
42
  "devDependencies": {
43
43
  "@actions/core": "^1.11.1",
44
+ "@eslint/js": "^9.39.5",
44
45
  "@types/lodash": "^4.17.24",
45
46
  "@types/node": "^24.13.2",
46
- "@typescript-eslint/eslint-plugin": "^5.62.0",
47
- "@typescript-eslint/parser": "^5.62.0",
48
- "date-fns": "^2.30.0",
47
+ "date-fns": "^4.4.0",
49
48
  "dotenv": "^17.4.2",
50
- "eslint": "^8.57.1",
51
- "eslint-config-alloy": "^5.1.2",
49
+ "eslint": "^9.39.5",
52
50
  "file-type": "^18.7.0",
53
- "imagekit": "^4.1.4",
51
+ "globals": "^16.4.0",
52
+ "imagekit": "^6.0.0",
54
53
  "lodash": "^4.18.1",
54
+ "opentype.js": "^2.0.0",
55
55
  "prettier": "^3.8.4",
56
56
  "reflect-metadata": "^0.2.2",
57
57
  "sqlite3": "^5.1.7",
58
58
  "ts-node": "^10.9.2",
59
- "typeorm": "^0.3.30",
60
- "typescript": "^5.9.3"
59
+ "typeorm": "^0.3.31",
60
+ "typescript": "^5.9.3",
61
+ "typescript-eslint": "^8.67.0"
61
62
  },
62
63
  "dependencies": {
63
64
  "qiniu": "^7.15.2"
65
+ },
66
+ "pnpm": {
67
+ "onlyBuiltDependencies": [
68
+ "sqlite3"
69
+ ]
64
70
  }
65
71
  }