Rebuild docs/

This commit is contained in:
Arhey 2022-11-22 09:32:16 +03:00
parent 10d9ac7870
commit 5c0a363607
33 changed files with 24 additions and 24 deletions

View file

@ -0,0 +1 @@
var b=Object.defineProperty;var g=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var p=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,h=(t,e)=>{for(var s in e||(e={}))_.call(e,s)&&p(t,s,e[s]);if(g)for(var s of g(e))w.call(e,s)&&p(t,s,e[s]);return t};import{D as l,X as f,_ as i,Y as m}from"./vendor-be4ac25a.js";const A=l(""),d=l(!1),c=l([]),v=l({}),u=l([]);function I(t){const e=t.toLowerCase().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)||[],s=[];for(let n of e){let o="_key";if(n.includes(":")&&([o,n]=n.split(":")),n=n.replace(/\"/g,""),o&&n){let r=["streams","guides"].includes(o);s.push({field:o,numerical:r,value:n})}}if(!s.length){d.set(!1),u.set(f(c));return}const a=f(c).filter(n=>{let o=[];for(let r of s){if(!r.value)return!1;if(r.numerical)r.value.startsWith("<")?o.push(n._searchable[r.field]<parseInt(r.value.replace("<",""))):r.value.startsWith(">")?o.push(n._searchable[r.field]>parseInt(r.value.replace(">",""))):o.push(n._searchable[r.field]===parseInt(r.value));else{const y=new RegExp(r.value.replaceAll(",","|"),"i");o.push(y.test(n._searchable[r.field]))}}return o.every(Boolean)});u.set(a),d.set(!0),console.log(".")}async function L(){const t=await $();v.set(t.countries);let e=t.channels.map(s=>(s._raw=k(s),s._streams=t.streams[s.id]||[],s._guides=t.guides[s.id]||[],s._country=t.countries[s.country],s._subdivision=t.subdivisions[s.subdivision],s._languages=s.languages.map(a=>t.languages[a]).filter(a=>a),s._categories=s.categories.map(a=>t.categories[a]).filter(a=>a),s._broadcast_area=s.broadcast_area.map(a=>{const[n,o]=a.split("/");switch(n){case"c":return h({type:n},t.countries[o]);case"r":return h({type:n},t.regions[o]);case"s":return h({type:n},t.subdivisions[o])}}),s._searchable=j(s),s));c.set(e),u.set(e)}function j(t){const e={};for(let s in t)s.startsWith("_")||(Array.isArray(t[s])?e[s]=t[s].map(a=>a.toString().toLowerCase()).join(","):e[s]=t[s]?t[s].toString().toLowerCase():"");return e.streams=t._streams.length,e.guides=t._guides.length,e.is=t.closed||t.replaced_by?"closed":"active",e._key=B(t),e}function B(t){const e=Object.values(i.pick(t,["id","name","alt_names","network","country","subdivision","city","broadcast_area","languages","categories","launched","closed","replaced_by"])),s=t.alt_names?m(t.alt_names):null;return[...e,s].map(a=>a||"").filter(a=>a).join("|").toLowerCase()}function k(t){return JSON.parse(JSON.stringify(t))}function q(t,e){if(window.history.pushState){let s=t&&e?`?${t}=${e}`:"";s=s.replace(/\+/g,"%2B");const a=`${window.location.protocol}//${window.location.host}${window.location.pathname}${s}`,n={};n[t]=e,window.history.pushState(n,"",a),S(e)}}function S(t){const e=t?`${t} \xB7 iptv-org`:"iptv-org";document.title=e}async function $(){const t={};return t.countries=await fetch("https://iptv-org.github.io/api/countries.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>e.map(s=>(s.expanded=!1,s))).then(e=>i.keyBy(e,"code")).catch(console.error),t.regions=await fetch("https://iptv-org.github.io/api/regions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.subdivisions=await fetch("https://iptv-org.github.io/api/subdivisions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.languages=await fetch("https://iptv-org.github.io/api/languages.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.categories=await fetch("https://iptv-org.github.io/api/categories.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"id")).catch(console.error),t.streams=await fetch("https://iptv-org.github.io/api/streams.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.groupBy(e,"channel")).catch(console.error),t.guides=await fetch("https://iptv-org.github.io/api/guides.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.groupBy(e,"channel")).catch(console.error),t.channels=await fetch("https://iptv-org.github.io/api/channels.json").then(e=>e.json()).catch(e=>(console.error(e),[])),t}export{I as a,S as b,c,L as d,v as e,u as f,d as h,A as q,q as s};

Binary file not shown.

Binary file not shown.

View file

@ -1 +0,0 @@
var b=Object.defineProperty;var g=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var p=(t,e,s)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,h=(t,e)=>{for(var s in e||(e={}))_.call(e,s)&&p(t,s,e[s]);if(g)for(var s of g(e))w.call(e,s)&&p(t,s,e[s]);return t};import{D as l,X as f,_ as i,Y as m}from"./vendor-be4ac25a.js";const A=l(""),d=l(!1),c=l([]),v=l({}),u=l([]);function I(t){const e=t.toLowerCase().match(/(".*?"|[^"\s]+)+(?=\s*|\s*$)/g)||[],s=[];for(let n of e){let r="_key";if(n.includes(":")&&([r,n]=n.split(":")),n=n.replace(/\"/g,""),r&&n){let o=["streams","guides"].includes(r);s.push({field:r,numerical:o,value:n})}}if(!s.length){d.set(!1),u.set(f(c));return}const a=f(c).filter(n=>{let r=[];for(let o of s){if(!o.value)return!1;if(o.numerical)o.value.startsWith("<")?r.push(n._searchable[o.field]<parseInt(o.value.replace("<",""))):o.value.startsWith(">")?r.push(n._searchable[o.field]>parseInt(o.value.replace(">",""))):r.push(n._searchable[o.field]===parseInt(o.value));else{const y=new RegExp(o.value.replaceAll(",","|"),"i");r.push(n._searchable[o.field]&&y.test(n._searchable[o.field]))}}return r.every(Boolean)});u.set(a),d.set(!0),console.log(".")}async function L(){const t=await $();v.set(t.countries);let e=t.channels.map(s=>(s._raw=k(s),s._streams=t.streams[s.id]||[],s._guides=t.guides[s.id]||[],s._country=t.countries[s.country],s._subdivision=t.subdivisions[s.subdivision],s._languages=s.languages.map(a=>t.languages[a]).filter(a=>a),s._categories=s.categories.map(a=>t.categories[a]).filter(a=>a),s._broadcast_area=s.broadcast_area.map(a=>{const[n,r]=a.split("/");switch(n){case"c":return h({type:n},t.countries[r]);case"r":return h({type:n},t.regions[r]);case"s":return h({type:n},t.subdivisions[r])}}),s._searchable=j(s),s));c.set(e),u.set(e)}function j(t){const e={};for(let s in t)s.startsWith("_")||t[s]===null||t[s]===void 0||(Array.isArray(t[s])?e[s]=t[s].map(a=>a.toString().toLowerCase()).join(","):e[s]=t[s].toString().toLowerCase());return e.streams=t._streams.length,e.guides=t._guides.length,e.is=t.closed||t.replaced_by?"closed":"active",e._key=B(t),e}function B(t){const e=Object.values(i.pick(t,["id","name","alt_names","network","country","subdivision","city","broadcast_area","languages","categories","launched","closed","replaced_by"])),s=t.alt_names?m(t.alt_names):null;return[...e,s].map(a=>a||"").filter(a=>a).join("|").toLowerCase()}function k(t){return JSON.parse(JSON.stringify(t))}function q(t,e){if(window.history.pushState){let s=t&&e?`?${t}=${e}`:"";s=s.replace(/\+/g,"%2B");const a=`${window.location.protocol}//${window.location.host}${window.location.pathname}${s}`,n={};n[t]=e,window.history.pushState(n,"",a),S(e)}}function S(t){const e=t?`${t} \xB7 iptv-org`:"iptv-org";document.title=e}async function $(){const t={};return t.countries=await fetch("https://iptv-org.github.io/api/countries.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>e.map(s=>(s.expanded=!1,s))).then(e=>i.keyBy(e,"code")).catch(console.error),t.regions=await fetch("https://iptv-org.github.io/api/regions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.subdivisions=await fetch("https://iptv-org.github.io/api/subdivisions.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.languages=await fetch("https://iptv-org.github.io/api/languages.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"code")).catch(console.error),t.categories=await fetch("https://iptv-org.github.io/api/categories.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.keyBy(e,"id")).catch(console.error),t.streams=await fetch("https://iptv-org.github.io/api/streams.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.groupBy(e,"channel")).catch(console.error),t.guides=await fetch("https://iptv-org.github.io/api/guides.json").then(e=>e.json()).then(e=>e.length?e:[]).then(e=>i.groupBy(e,"channel")).catch(console.error),t.channels=await fetch("https://iptv-org.github.io/api/channels.json").then(e=>e.json()).catch(e=>(console.error(e),[])),t}export{I as a,S as b,c,L as d,v as e,u as f,d as h,A as q,q as s};

View file

@ -1,6 +1,6 @@
{ {
".svelte-kit/runtime/client/start.js": { ".svelte-kit/runtime/client/start.js": {
"file": "start-b517e802.js", "file": "start-f7455fa6.js",
"src": ".svelte-kit/runtime/client/start.js", "src": ".svelte-kit/runtime/client/start.js",
"isEntry": true, "isEntry": true,
"imports": [ "imports": [
@ -13,13 +13,13 @@
] ]
}, },
"src/routes/__layout.svelte": { "src/routes/__layout.svelte": {
"file": "pages/__layout.svelte-339ab694.js", "file": "pages/__layout.svelte-bbbb0830.js",
"src": "src/routes/__layout.svelte", "src": "src/routes/__layout.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-be4ac25a.js", "_vendor-be4ac25a.js",
"_store-9cda06e2.js" "_store-92203636.js"
], ],
"css": [ "css": [
"assets/pages/__layout.svelte-c7d2bc0e.css" "assets/pages/__layout.svelte-c7d2bc0e.css"
@ -35,13 +35,13 @@
] ]
}, },
"src/routes/index.svelte": { "src/routes/index.svelte": {
"file": "pages/index.svelte-e43592a6.js", "file": "pages/index.svelte-95decc91.js",
"src": "src/routes/index.svelte", "src": "src/routes/index.svelte",
"isEntry": true, "isEntry": true,
"isDynamicEntry": true, "isDynamicEntry": true,
"imports": [ "imports": [
"_vendor-be4ac25a.js", "_vendor-be4ac25a.js",
"_store-9cda06e2.js" "_store-92203636.js"
], ],
"css": [ "css": [
"assets/pages/index.svelte-fade4f59.css" "assets/pages/index.svelte-fade4f59.css"
@ -53,8 +53,8 @@
"assets/vendor-eecf3eda.css" "assets/vendor-eecf3eda.css"
] ]
}, },
"_store-9cda06e2.js": { "_store-92203636.js": {
"file": "chunks/store-9cda06e2.js", "file": "chunks/store-92203636.js",
"imports": [ "imports": [
"_vendor-be4ac25a.js" "_vendor-be4ac25a.js"
] ]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
{"version":"1668387778347"} {"version":"1669098697119"}

Binary file not shown.

Binary file not shown.

View file

@ -19,11 +19,11 @@
<link rel="stylesheet" href="/_app/assets/vendor-eecf3eda.css"> <link rel="stylesheet" href="/_app/assets/vendor-eecf3eda.css">
<link rel="stylesheet" href="/_app/assets/pages/__layout.svelte-c7d2bc0e.css"> <link rel="stylesheet" href="/_app/assets/pages/__layout.svelte-c7d2bc0e.css">
<link rel="stylesheet" href="/_app/assets/pages/index.svelte-fade4f59.css"> <link rel="stylesheet" href="/_app/assets/pages/index.svelte-fade4f59.css">
<link rel="modulepreload" href="/_app/start-b517e802.js"> <link rel="modulepreload" href="/_app/start-f7455fa6.js">
<link rel="modulepreload" href="/_app/chunks/vendor-be4ac25a.js"> <link rel="modulepreload" href="/_app/chunks/vendor-be4ac25a.js">
<link rel="modulepreload" href="/_app/pages/__layout.svelte-339ab694.js"> <link rel="modulepreload" href="/_app/pages/__layout.svelte-bbbb0830.js">
<link rel="modulepreload" href="/_app/chunks/store-9cda06e2.js"> <link rel="modulepreload" href="/_app/chunks/store-92203636.js">
<link rel="modulepreload" href="/_app/pages/index.svelte-e43592a6.js"> <link rel="modulepreload" href="/_app/pages/index.svelte-95decc91.js">
<script> <script>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js'); navigator.serviceWorker.register('/service-worker.js');
@ -66,7 +66,7 @@
<script type="module" data-hydrate="14pt4el"> <script type="module" data-hydrate="14pt4el">
import { start } from "/_app/start-b517e802.js"; import { start } from "/_app/start-f7455fa6.js";
start({ start({
target: document.querySelector('[data-hydrate="14pt4el"]').parentNode, target: document.querySelector('[data-hydrate="14pt4el"]').parentNode,
paths: {"base":"","assets":""}, paths: {"base":"","assets":""},
@ -78,8 +78,8 @@
status: 200, status: 200,
error: null, error: null,
nodes: [ nodes: [
import("/_app/pages/__layout.svelte-339ab694.js"), import("/_app/pages/__layout.svelte-bbbb0830.js"),
import("/_app/pages/index.svelte-e43592a6.js") import("/_app/pages/index.svelte-95decc91.js")
], ],
params: {}, params: {},
routeId: "" routeId: ""

Binary file not shown.

Binary file not shown.

View file

@ -1,13 +1,13 @@
const build = [ const build = [
"/_app/start-b517e802.js", "/_app/start-f7455fa6.js",
"/_app/pages/__layout.svelte-339ab694.js", "/_app/pages/__layout.svelte-bbbb0830.js",
"/_app/assets/pages/__layout.svelte-c7d2bc0e.css", "/_app/assets/pages/__layout.svelte-c7d2bc0e.css",
"/_app/error.svelte-9550f281.js", "/_app/error.svelte-9550f281.js",
"/_app/pages/index.svelte-e43592a6.js", "/_app/pages/index.svelte-95decc91.js",
"/_app/assets/pages/index.svelte-fade4f59.css", "/_app/assets/pages/index.svelte-fade4f59.css",
"/_app/chunks/vendor-be4ac25a.js", "/_app/chunks/vendor-be4ac25a.js",
"/_app/assets/vendor-eecf3eda.css", "/_app/assets/vendor-eecf3eda.css",
"/_app/chunks/store-9cda06e2.js" "/_app/chunks/store-92203636.js"
]; ];
const files = [ const files = [
"/.nojekyll", "/.nojekyll",
@ -15,7 +15,7 @@ const files = [
"/logo_512.png", "/logo_512.png",
"/manifest.json" "/manifest.json"
]; ];
const version = "1668387778347"; const version = "1669098697119";
const ASSETS = `cache_${version}`; const ASSETS = `cache_${version}`;
const to_cache = build.concat(files); const to_cache = build.concat(files);
const staticAssets = new Set(to_cache); const staticAssets = new Set(to_cache);

Binary file not shown.

Binary file not shown.