diff --git a/service-worker.js b/service-worker.js index ea02b09..d90f944 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1,6 +1,6 @@ var GHPATH = "/OS-DPI"; var APP_PREFIX = "osdpi_"; -var VERSION = "2024-1-15-9-1-46"; +var VERSION = "2024-1-15-9-7-38"; var URLS = [ `${GHPATH}/`, `${GHPATH}/index.html`, @@ -15,7 +15,7 @@ var URLS = [ `${GHPATH}/tracky-mouse/facemesh.worker.js`, `${GHPATH}/tracky-mouse/lib/facemesh/facemesh.js`, `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/model.json`, - `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/group1-shard1of.bin`, + `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/group1-shard1of1.bin`, `${GHPATH}/tracky-mouse/lib/facemesh/blazeface/model.json`, `${GHPATH}/tracky-mouse/lib/facemesh/blazeface/group1-shard1of1.bin` ]; diff --git a/service-worker.js.map b/service-worker.js.map index c71891b..5e4295a 100644 --- a/service-worker.js.map +++ b/service-worker.js.map @@ -1 +1 @@ -{"version":3,"file":"service-worker.js","sources":["../service-worker.js"],"sourcesContent":["var GHPATH = \"/OS-DPI\";\nvar APP_PREFIX = \"osdpi_\";\nvar VERSION = APP_VERSION;\nvar URLS = [\n `${GHPATH}/`,\n `${GHPATH}/index.html`,\n `${GHPATH}/index.css`,\n `${GHPATH}/index.js`,\n `${GHPATH}/xlsx.js`,\n `${GHPATH}/favicon.ico`,\n `${GHPATH}/icon.png`,\n `${GHPATH}/tracky-mouse/lib/clmtrackr.js`,\n `${GHPATH}/tracky-mouse/lib/stats.js`,\n `${GHPATH}/tracky-mouse/lib/tf.js`,\n `${GHPATH}/tracky-mouse/facemesh.worker.js`,\n `${GHPATH}/tracky-mouse/lib/facemesh/facemesh.js`,\n `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/model.json`,\n `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/group1-shard1of.bin`,\n `${GHPATH}/tracky-mouse/lib/facemesh/blazeface/model.json`,\n `${GHPATH}/tracky-mouse/lib/facemesh/blazeface/group1-shard1of1.bin`,\n];\n\nvar CACHE_NAME = APP_PREFIX + VERSION;\nself.addEventListener(\"fetch\", function (/** @type {FetchEvent} */ e) {\n const url = new URL(e.request.url);\n if (URLS.includes(url.pathname)) {\n e.respondWith(\n caches.match(e.request).then(function (request) {\n if (request) {\n return request;\n } else {\n return fetch(e.request);\n }\n }),\n );\n }\n});\n\nself.addEventListener(\"install\", function (/** @type {ExtendableEvent} */ e) {\n e.waitUntil(\n caches.open(CACHE_NAME).then(function (cache) {\n return cache.addAll(URLS);\n }),\n );\n});\n\nself.addEventListener(\"activate\", function (/** @type {ExtendableEvent} */ e) {\n e.waitUntil(\n caches.keys().then(function (keyList) {\n var cacheWhitelist = keyList.filter(function (key) {\n return key.indexOf(APP_PREFIX);\n });\n cacheWhitelist.push(CACHE_NAME);\n return Promise.all(\n keyList.map(function (key, i) {\n if (cacheWhitelist.indexOf(key) === -1) {\n return caches.delete(keyList[i]);\n }\n }),\n );\n }),\n );\n});\nself.addEventListener(\"message\", (/** @type {MessageEvent} */ event) => {\n if (event.data === \"SKIP_WAITING\") {\n /** @type {ServiceWorkerGlobalScope} */ (\n /** @type {unknown} */ (self)\n ).skipWaiting();\n }\n});\n"],"names":[],"mappings":"AAAA,IAAI,MAAS,GAAA,SAAA,CAAA;AACb,IAAI,UAAa,GAAA,QAAA,CAAA;AACjB,IAAI,OAAU,GAAA,kBAAA,CAAA;AACd,IAAI,IAAO,GAAA;AAAA,EACT,GAAG,MAAM,CAAA,CAAA,CAAA;AAAA,EACT,GAAG,MAAM,CAAA,WAAA,CAAA;AAAA,EACT,GAAG,MAAM,CAAA,UAAA,CAAA;AAAA,EACT,GAAG,MAAM,CAAA,SAAA,CAAA;AAAA,EACT,GAAG,MAAM,CAAA,QAAA,CAAA;AAAA,EACT,GAAG,MAAM,CAAA,YAAA,CAAA;AAAA,EACT,GAAG,MAAM,CAAA,SAAA,CAAA;A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A;AAAA,GACH,CAAA;AACF,CAAC,CAAA,CAAA;AAED,IAAK,CAAA,gBAAA,CAAiB,UAAY,EAAA,SAAyC,CAAG,EAAA;AAC5E,EAAE,CAAA,CAAA,SAAA;AAAA,IACA,MAAO,CAAA,IAAA,EAAO,CAAA,IAAA,CAAK,SAAU,OAAS,EAAA;AACpC,MAAA,IAAI,cAAiB,GAAA,OAAA,CAAQ,MAAO,CAAA,SAAU,GAAK,EAAA;AACjD,QAAO,OAAA,GAAA,CAAI,QAAQ,UAAU,CAAA,CAAA;AAAA,OAC9B,CAAA,CAAA;AACD,MAAA,cAAA,CAAe,KAAK,UAAU,CAAA,CAAA;AAC9B,MAAA,OAAO,OAAQ,CAAA,GAAA;AAAA,QACb,OAAQ,CAAA,GAAA,CAAI,SAAU,GAAA,EAAK,CAAG,EAAA;AAC5B,UAAA,IAAI,cAAe,CAAA,OAAA,CAAQ,GAAG,CAAA,KAAM,CAAI,CAAA,EAAA;AACtC,YAAA,OAAO,MAAO,CAAA,MAAA,CAAO,OAAQ,CAAA,CAAC,CAAC,CAAA,CAAA;AAAA,WACjC;AAAA,SACD,CAAA;AAAA,OACH,CAAA;AAAA,KACD,CAAA;AAAA,GACH,CAAA;AACF,CAAC,CAAA,CAAA;AACD,IAAK,CAAA,gBAAA,CAAiB,SAAW,EAAA,CAA6B,KAAU,KAAA;AACtE,EAAI,IAAA,KAAA,CAAM,SAAS,cAAgB,EAAA;AACO;AAAA,IACd,KACxB,WAAY,EAAA,CAAA;AAAA,GAChB;AACF,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"service-worker.js","sources":["../service-worker.js"],"sourcesContent":["var GHPATH = \"/OS-DPI\";\nvar APP_PREFIX = \"osdpi_\";\nvar VERSION = APP_VERSION;\nvar URLS = [\n `${GHPATH}/`,\n `${GHPATH}/index.html`,\n `${GHPATH}/index.css`,\n `${GHPATH}/index.js`,\n `${GHPATH}/xlsx.js`,\n `${GHPATH}/favicon.ico`,\n `${GHPATH}/icon.png`,\n `${GHPATH}/tracky-mouse/lib/clmtrackr.js`,\n `${GHPATH}/tracky-mouse/lib/stats.js`,\n `${GHPATH}/tracky-mouse/lib/tf.js`,\n `${GHPATH}/tracky-mouse/facemesh.worker.js`,\n `${GHPATH}/tracky-mouse/lib/facemesh/facemesh.js`,\n `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/model.json`,\n `${GHPATH}/tracky-mouse/lib/facemesh/facemesh/group1-shard1of1.bin`,\n `${GHPATH}/tracky-mouse/lib/facemesh/blazeface/model.json`,\n `${GHPATH}/tracky-mouse/lib/facemesh/blazeface/group1-shard1of1.bin`,\n];\n\nvar CACHE_NAME = APP_PREFIX + VERSION;\nself.addEventListener(\"fetch\", function (/** @type {FetchEvent} */ e) {\n const url = new URL(e.request.url);\n if (URLS.includes(url.pathname)) {\n e.respondWith(\n caches.match(e.request).then(function (request) {\n if (request) {\n return request;\n } else {\n return fetch(e.request);\n }\n }),\n );\n }\n});\n\nself.addEventListener(\"install\", function (/** @type {ExtendableEvent} */ e) {\n e.waitUntil(\n caches.open(CACHE_NAME).then(function (cache) {\n return cache.addAll(URLS);\n }),\n );\n});\n\nself.addEventListener(\"activate\", function (/** @type {ExtendableEvent} */ e) {\n e.waitUntil(\n caches.keys().then(function (keyList) {\n var cacheWhitelist = keyList.filter(function (key) {\n return key.indexOf(APP_PREFIX);\n });\n cacheWhitelist.push(CACHE_NAME);\n return Promise.all(\n keyList.map(function (key, i) {\n if (cacheWhitelist.indexOf(key) === -1) {\n return caches.delete(keyList[i]);\n }\n }),\n );\n }),\n );\n});\nself.addEventListener(\"message\", (/** @type {MessageEvent} */ event) => {\n if (event.data === \"SKIP_WAITING\") {\n /** @type {ServiceWorkerGlobalScope} */ (\n /** @type {unknown} */ (self)\n ).skipWaiting();\n }\n});\n"],"names":[],"mappings":"AAAA,IAAI,MAAS,GAAA,SAAA,CAAA;AACb,IAAI,UAAa,GAAA,QAAA,CAAA;AACjB,IAAI,OAAU,GAAA,kBAAA,CA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