From d18f923c184ad4b70c97e32e6407ed5f57ad3799 Mon Sep 17 00:00:00 2001 From: SupertigerDev Date: Sat, 2 Aug 2025 07:41:04 +0000 Subject: [PATCH] deploy: c3c9d999676a63a7b052e653eec73bfe4b11f184 --- assets/{battery-CUXKicJ3.js => battery-W9umwEeW.js} | 4 ++-- assets/{index-ClAuSJqG.js => index-ZUm80Bg8.js} | 4 ++-- assets/{waybar-BPbYznD4.js => waybar-D5nMdX4U.js} | 4 ++-- index.html | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename assets/{battery-CUXKicJ3.js => battery-W9umwEeW.js} (96%) rename assets/{index-ClAuSJqG.js => index-ZUm80Bg8.js} (94%) rename assets/{waybar-BPbYznD4.js => waybar-D5nMdX4U.js} (98%) diff --git a/assets/battery-CUXKicJ3.js b/assets/battery-W9umwEeW.js similarity index 96% rename from assets/battery-CUXKicJ3.js rename to assets/battery-W9umwEeW.js index c661119..2da2f1d 100644 --- a/assets/battery-CUXKicJ3.js +++ b/assets/battery-W9umwEeW.js @@ -1,2 +1,2 @@ -function _(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function O(e,u,s,o){Object.defineProperty(e,u,{get:s,set:o,enumerable:!0,configurable:!0})}var R={};_(R);O(R,"default",()=>U);class U extends Error{constructor(u,s,o,d,c){super(u+":"+o+":"+d+": "+s),this.reason=s,this.filename=u,this.line=o,this.column=d,this.source=c}}var z={};_(z);O(z,"default",()=>H);class H{constructor(u,s,o){this.start=u,this.end=s,this.source=o}}var oe={};O(oe,"CssTypes",()=>g);var g=function(e){return e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports",e}({});const Q=1e4,F=(e,u,s)=>{let o=s,d=Q;do{const c=u.map(x=>e.indexOf(x,o));c.push(e.indexOf("\\",o));const f=c.filter(x=>x!==-1);if(f.length===0)return-1;const r=Math.min(...f);if(e[r]==="\\")o=r+2,d--;else return r}while(d>0);throw new Error("Too many escaping")},A=(e,u,s)=>{let o=s,d=Q;do{const c=u.map(a=>e.indexOf(a,o));c.push(e.indexOf("(",o)),c.push(e.indexOf('"',o)),c.push(e.indexOf("'",o)),c.push(e.indexOf("\\",o));const f=c.filter(a=>a!==-1);if(f.length===0)return-1;const r=Math.min(...f);switch(e[r]){case"\\":o=r+2;break;case"(":{const a=A(e,[")"],r+1);if(a===-1)return-1;o=a+1}break;case'"':{const a=F(e,['"'],r+1);if(a===-1)return-1;o=a+1}break;case"'":{const a=F(e,["'"],r+1);if(a===-1)return-1;o=a+1}break;default:return r}d--}while(d>0);throw new Error("Too many escaping")},ce=(e,u)=>{const s=[];let o=0;for(;o{u=u||{};let s=1,o=1;function d(n){const t=n.match(/\n/g);t&&(s+=t.length);const i=n.lastIndexOf(` -`);o=~i?n.length-i:o+n.length}function c(){const n={line:s,column:o};return function(t){return t.position=new H(n,{line:s,column:o},u?.source||""),E(),t}}const f=[];function r(n){const t=new U(u?.source||"",n,s,o,e);if(u?.silent)f.push(t);else throw t}function x(){const n=y();return{type:g.stylesheet,stylesheet:{source:u?.source,rules:n,parsingErrors:f}}}function a(){const n=/^{\s*/.exec(e);return n?(l(n),!0):!1}function p(){const n=/^}/.exec(e);return n?(l(n),!0):!1}function y(){let n;const t=[];for(E(),$(t);e.length&&e.charAt(0)!=="}"&&(n=ne()||re());)n&&(t.push(n),$(t));return t}function l(n){const t=n[0];return d(t),e=e.slice(t.length),n}function E(){const n=/^\s*/.exec(e);n&&l(n)}function $(n){let t;for(n=n||[];t=V();)t&&n.push(t);return n}function V(){const n=c();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;const t=/^\/\*[^]*?\*\//.exec(e);return t?(l(t),n({type:g.comment,comment:t[0].slice(2,-2)})):r("End of comment missing")}function S(){const n=/^([^{]+)/.exec(e);if(!n)return;l(n);const t=w(n[0]).replace(P,"");return ce(t,[","]).map(i=>w(i))}function M(){const n=c(),t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);if(!t)return;l(t);const i=w(t[0]),m=/^:\s*/.exec(e);if(!m)return r("property missing ':'");l(m);let h="";const b=A(e,[";","}"]);b!==-1&&(h=e.substring(0,b),l([h]),h=w(h).replace(P,""));const v=n({type:g.declaration,property:i.replace(P,""),value:h}),N=/^[;\s]*/.exec(e);return N&&l(N),v}function I(){const n=[];if(!a())return r("missing '{'");$(n);let t;for(;t=M();)t&&(n.push(t),$(n));return p()?n:r("missing '}'")}function j(){let n;const t=[],i=c();for(;n=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);){const m=l(n);t.push(m[1]);const h=/^,\s*/.exec(e);h&&l(h)}if(t.length)return i({type:g.keyframe,values:t,declarations:I()||[]})}function B(){const n=c(),t=/^@([-\w]+)?keyframes\s*/.exec(e);if(!t)return;const i=l(t)[1],m=/^([-\w]+)\s*/.exec(e);if(!m)return r("@keyframes missing name");const h=l(m)[1];if(!a())return r("@keyframes missing '{'");let b,v=$();for(;b=j();)v.push(b),v=v.concat($());return p()?n({type:g.keyframes,name:h,vendor:i,keyframes:v}):r("@keyframes missing '}'")}function D(){const n=c(),t=/^@supports *([^{]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a())return r("@supports missing '{'");const m=$().concat(y());return p()?n({type:g.supports,supports:i,rules:m}):r("@supports missing '}'")}function W(){const n=c(),t=/^@host\s*/.exec(e);if(!t)return;if(l(t),!a())return r("@host missing '{'");const i=$().concat(y());return p()?n({type:g.host,rules:i}):r("@host missing '}'")}function q(){const n=c(),t=/^@container *([^{]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a())return r("@container missing '{'");const m=$().concat(y());return p()?n({type:g.container,container:i,rules:m}):r("@container missing '}'")}function G(){const n=c(),t=/^@layer *([^{;@]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a()){const h=/^[;\s]*/.exec(e);return h&&l(h),n({type:g.layer,layer:i})}const m=$().concat(y());return p()?n({type:g.layer,layer:i,rules:m}):r("@layer missing '}'")}function J(){const n=c(),t=/^@media *([^{]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a())return r("@media missing '{'");const m=$().concat(y());return p()?n({type:g.media,media:i,rules:m}):r("@media missing '}'")}function K(){const n=c(),t=/^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);if(!t)return;const i=l(t);return n({type:g.customMedia,name:w(i[1]),media:w(i[2])})}function X(){const n=c(),t=/^@page */.exec(e);if(!t)return;l(t);const i=S()||[];if(!a())return r("@page missing '{'");let m=$(),h;for(;h=M();)m.push(h),m=m.concat($());return p()?n({type:g.page,selectors:i,declarations:m}):r("@page missing '}'")}function Y(){const n=c(),t=/^@([-\w]+)?document *([^{]+)/.exec(e);if(!t)return;const i=l(t),m=w(i[1]),h=w(i[2]);if(!a())return r("@document missing '{'");const b=$().concat(y());return p()?n({type:g.document,document:h,vendor:m,rules:b}):r("@document missing '}'")}function Z(){const n=c(),t=/^@font-face\s*/.exec(e);if(!t)return;if(l(t),!a())return r("@font-face missing '{'");let i=$(),m;for(;m=M();)i.push(m),i=i.concat($());return p()?n({type:g.fontFace,declarations:i}):r("@font-face missing '}'")}function C(){const n=c(),t=/^@starting-style\s*/.exec(e);if(!t)return;if(l(t),!a())return r("@starting-style missing '{'");const i=$().concat(y());return p()?n({type:g.startingStyle,rules:i}):r("@starting-style missing '}'")}const T=k("import"),ee=k("charset"),te=k("namespace");function k(n){const t=new RegExp("^@"+n+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){const i=c(),m=t.exec(e);if(!m)return;const h=l(m),b={type:n};return b[n]=h[1].trim(),i(b)}}function ne(){if(e[0]==="@")return B()||J()||K()||D()||T()||ee()||te()||Y()||X()||W()||Z()||q()||C()||G()}function re(){const n=c(),t=S();return t?($(),n({type:g.rule,selectors:t,declarations:I()||[]})):r("selector missing")}return L(x())};function w(e){return e?e.trim():""}function L(e,u){const s=e&&typeof e.type=="string",o=s?e:u;for(const d in e){const c=e[d];Array.isArray(c)?c.forEach(f=>{L(f,o)}):c&&typeof c=="object"&&L(c,o)}return s&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:u||null}),e}var ie=se;const ae=ie,ue=(e,u,s)=>Math.min(Math.max(e,u),s),le=async()=>await fetch("/waybar-online/fontawesome/css/fontawesome.min.css").then(u=>u.text()),fe=await le();function me(){const e=new Map;return ae(fe).stylesheet.rules.forEach(s=>{if(s.type===g.rule){const o=s.declarations[0];if(o.type===g.declaration){if(o.property!=="--fa")return;s.selectors[0];const d=o.value.slice(1,-1);try{const c=String.fromCodePoint(parseInt(d.slice(1),16));if(!Number.isNaN(parseInt(c)))return;e.set(c,d)}catch{}}}}),e}const de=[...me().keys()],pe=new RegExp(de.map(e=>`\\${e}`).join("|"),"g"),he=e=>e.replace(pe,s=>`${s}`),ge=e=>{const u=()=>{if(e.config)return e.config?.format||void 0},s=document.createElement("span");return e.update&&setInterval(e.update,e.interval),{element:s,set:f=>{const r=u();if(!r)return console.error("No format found"),"N/A";const x=r.replace(/\{(\w+)\}/g,(a,p)=>f[p]!==void 0?f[p]:a);s.innerHTML=he(x)},getIcon:(f,r,x=0)=>{const a=e.config?.["format-icons"],p=a?.length||0,y=ue(f/((x==0?100:x)/p),0,p-1),l=a?.[Math.round(y)];return l||""},getState:(f,r)=>{const x=e.config?.states;if(typeof x!="object")return"";const a=Object.entries(x);a.sort((y,l)=>r?y[1]-l[1]:l[1]-y[1]);let p="";return a.forEach(y=>{(r?f<=y[1]:f>=y[1])&&!p?(e.module.element.classList.add(y[0]),p=y[0]):e.module.element.classList.remove(y[0])}),p}}},xe=(e,u)=>{const s=ge({interval:1e3,update:()=>c(),config:u,module:e});e.element.appendChild(s.element);const o=f=>{let r="Unknown";return f.charging&&f.level<1&&(r="Charging"),!f.charging&&f.level===1&&(r="Full"),f.charging&&f.level===1&&(r="Plugged"),!f.charging&&f.level<1&&(r="Discharging"),r};let d="Unknown";const c=async()=>{const f={level:Math.random(),charging:Math.random()>.5},r=Math.round(f.level*100),x=o(f);e.element.classList.remove(d.toLowerCase()),e.element.classList.add(x.toLowerCase()),d=x,e.element.title=x;const a=s.getState(r,!0);console.log(a),s.set({capacity:r,icon:s.getIcon(r)})};c()};export{xe as createBatteryModule}; +function _(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function O(e,u,s,o){Object.defineProperty(e,u,{get:s,set:o,enumerable:!0,configurable:!0})}var R={};_(R);O(R,"default",()=>U);class U extends Error{constructor(u,s,o,d,c){super(u+":"+o+":"+d+": "+s),this.reason=s,this.filename=u,this.line=o,this.column=d,this.source=c}}var z={};_(z);O(z,"default",()=>H);class H{constructor(u,s,o){this.start=u,this.end=s,this.source=o}}var oe={};O(oe,"CssTypes",()=>g);var g=function(e){return e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports",e}({});const Q=1e4,N=(e,u,s)=>{let o=s,d=Q;do{const c=u.map(x=>e.indexOf(x,o));c.push(e.indexOf("\\",o));const f=c.filter(x=>x!==-1);if(f.length===0)return-1;const r=Math.min(...f);if(e[r]==="\\")o=r+2,d--;else return r}while(d>0);throw new Error("Too many escaping")},A=(e,u,s)=>{let o=s,d=Q;do{const c=u.map(a=>e.indexOf(a,o));c.push(e.indexOf("(",o)),c.push(e.indexOf('"',o)),c.push(e.indexOf("'",o)),c.push(e.indexOf("\\",o));const f=c.filter(a=>a!==-1);if(f.length===0)return-1;const r=Math.min(...f);switch(e[r]){case"\\":o=r+2;break;case"(":{const a=A(e,[")"],r+1);if(a===-1)return-1;o=a+1}break;case'"':{const a=N(e,['"'],r+1);if(a===-1)return-1;o=a+1}break;case"'":{const a=N(e,["'"],r+1);if(a===-1)return-1;o=a+1}break;default:return r}d--}while(d>0);throw new Error("Too many escaping")},ce=(e,u)=>{const s=[];let o=0;for(;o{u=u||{};let s=1,o=1;function d(n){const t=n.match(/\n/g);t&&(s+=t.length);const i=n.lastIndexOf(` +`);o=~i?n.length-i:o+n.length}function c(){const n={line:s,column:o};return function(t){return t.position=new H(n,{line:s,column:o},u?.source||""),E(),t}}const f=[];function r(n){const t=new U(u?.source||"",n,s,o,e);if(u?.silent)f.push(t);else throw t}function x(){const n=y();return{type:g.stylesheet,stylesheet:{source:u?.source,rules:n,parsingErrors:f}}}function a(){const n=/^{\s*/.exec(e);return n?(l(n),!0):!1}function p(){const n=/^}/.exec(e);return n?(l(n),!0):!1}function y(){let n;const t=[];for(E(),$(t);e.length&&e.charAt(0)!=="}"&&(n=ne()||re());)n&&(t.push(n),$(t));return t}function l(n){const t=n[0];return d(t),e=e.slice(t.length),n}function E(){const n=/^\s*/.exec(e);n&&l(n)}function $(n){let t;for(n=n||[];t=V();)t&&n.push(t);return n}function V(){const n=c();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;const t=/^\/\*[^]*?\*\//.exec(e);return t?(l(t),n({type:g.comment,comment:t[0].slice(2,-2)})):r("End of comment missing")}function S(){const n=/^([^{]+)/.exec(e);if(!n)return;l(n);const t=w(n[0]).replace(P,"");return ce(t,[","]).map(i=>w(i))}function M(){const n=c(),t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);if(!t)return;l(t);const i=w(t[0]),m=/^:\s*/.exec(e);if(!m)return r("property missing ':'");l(m);let h="";const b=A(e,[";","}"]);b!==-1&&(h=e.substring(0,b),l([h]),h=w(h).replace(P,""));const v=n({type:g.declaration,property:i.replace(P,""),value:h}),F=/^[;\s]*/.exec(e);return F&&l(F),v}function I(){const n=[];if(!a())return r("missing '{'");$(n);let t;for(;t=M();)t&&(n.push(t),$(n));return p()?n:r("missing '}'")}function j(){let n;const t=[],i=c();for(;n=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);){const m=l(n);t.push(m[1]);const h=/^,\s*/.exec(e);h&&l(h)}if(t.length)return i({type:g.keyframe,values:t,declarations:I()||[]})}function B(){const n=c(),t=/^@([-\w]+)?keyframes\s*/.exec(e);if(!t)return;const i=l(t)[1],m=/^([-\w]+)\s*/.exec(e);if(!m)return r("@keyframes missing name");const h=l(m)[1];if(!a())return r("@keyframes missing '{'");let b,v=$();for(;b=j();)v.push(b),v=v.concat($());return p()?n({type:g.keyframes,name:h,vendor:i,keyframes:v}):r("@keyframes missing '}'")}function D(){const n=c(),t=/^@supports *([^{]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a())return r("@supports missing '{'");const m=$().concat(y());return p()?n({type:g.supports,supports:i,rules:m}):r("@supports missing '}'")}function W(){const n=c(),t=/^@host\s*/.exec(e);if(!t)return;if(l(t),!a())return r("@host missing '{'");const i=$().concat(y());return p()?n({type:g.host,rules:i}):r("@host missing '}'")}function q(){const n=c(),t=/^@container *([^{]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a())return r("@container missing '{'");const m=$().concat(y());return p()?n({type:g.container,container:i,rules:m}):r("@container missing '}'")}function G(){const n=c(),t=/^@layer *([^{;@]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a()){const h=/^[;\s]*/.exec(e);return h&&l(h),n({type:g.layer,layer:i})}const m=$().concat(y());return p()?n({type:g.layer,layer:i,rules:m}):r("@layer missing '}'")}function J(){const n=c(),t=/^@media *([^{]+)/.exec(e);if(!t)return;const i=w(l(t)[1]);if(!a())return r("@media missing '{'");const m=$().concat(y());return p()?n({type:g.media,media:i,rules:m}):r("@media missing '}'")}function K(){const n=c(),t=/^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);if(!t)return;const i=l(t);return n({type:g.customMedia,name:w(i[1]),media:w(i[2])})}function X(){const n=c(),t=/^@page */.exec(e);if(!t)return;l(t);const i=S()||[];if(!a())return r("@page missing '{'");let m=$(),h;for(;h=M();)m.push(h),m=m.concat($());return p()?n({type:g.page,selectors:i,declarations:m}):r("@page missing '}'")}function Y(){const n=c(),t=/^@([-\w]+)?document *([^{]+)/.exec(e);if(!t)return;const i=l(t),m=w(i[1]),h=w(i[2]);if(!a())return r("@document missing '{'");const b=$().concat(y());return p()?n({type:g.document,document:h,vendor:m,rules:b}):r("@document missing '}'")}function Z(){const n=c(),t=/^@font-face\s*/.exec(e);if(!t)return;if(l(t),!a())return r("@font-face missing '{'");let i=$(),m;for(;m=M();)i.push(m),i=i.concat($());return p()?n({type:g.fontFace,declarations:i}):r("@font-face missing '}'")}function C(){const n=c(),t=/^@starting-style\s*/.exec(e);if(!t)return;if(l(t),!a())return r("@starting-style missing '{'");const i=$().concat(y());return p()?n({type:g.startingStyle,rules:i}):r("@starting-style missing '}'")}const T=k("import"),ee=k("charset"),te=k("namespace");function k(n){const t=new RegExp("^@"+n+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){const i=c(),m=t.exec(e);if(!m)return;const h=l(m),b={type:n};return b[n]=h[1].trim(),i(b)}}function ne(){if(e[0]==="@")return B()||J()||K()||D()||T()||ee()||te()||Y()||X()||W()||Z()||q()||C()||G()}function re(){const n=c(),t=S();return t?($(),n({type:g.rule,selectors:t,declarations:I()||[]})):r("selector missing")}return L(x())};function w(e){return e?e.trim():""}function L(e,u){const s=e&&typeof e.type=="string",o=s?e:u;for(const d in e){const c=e[d];Array.isArray(c)?c.forEach(f=>{L(f,o)}):c&&typeof c=="object"&&L(c,o)}return s&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:u||null}),e}var ie=se;const ae=ie,ue=(e,u,s)=>Math.min(Math.max(e,u),s),le=async()=>await fetch("/waybar-online/fontawesome/css/fontawesome.min.css").then(u=>u.text()),fe=await le();function me(){const e=new Map;return ae(fe).stylesheet.rules.forEach(s=>{if(s.type===g.rule){const o=s.declarations[0];if(o.type===g.declaration){if(o.property!=="--fa")return;s.selectors[0];const d=o.value.slice(1,-1);try{const c=String.fromCodePoint(parseInt(d.slice(1),16));if(!Number.isNaN(parseInt(c)))return;e.set(c,d)}catch{}}}}),e}const de=[...me().keys()],pe=new RegExp(de.map(e=>`\\${e}`).join("|"),"g"),he=e=>e.replace(pe,s=>`${s}`),ge=e=>{const u=()=>{if(e.config)return e.config?.format||void 0},s=document.createElement("span");return e.update&&setInterval(e.update,e.interval),{element:s,set:f=>{const r=u();if(!r)return console.error("No format found"),"N/A";const x=r.replace(/\{(\w+)\}/g,(a,p)=>f[p]!==void 0?f[p]:a);s.innerHTML=he(x)},getIcon:(f,r,x=0)=>{const a=e.config?.["format-icons"],p=a?.length||0,y=ue(f/((x==0?100:x)/p),0,p-1),l=a?.[Math.round(y)];return l||""},getState:(f,r)=>{const x=e.config?.states;if(typeof x!="object")return"";const a=Object.entries(x);a.sort((y,l)=>r?y[1]-l[1]:l[1]-y[1]);let p="";return a.forEach(y=>{(r?f<=y[1]:f>=y[1])&&!p?(e.module.element.classList.add(y[0]),p=y[0]):e.module.element.classList.remove(y[0])}),p}}},xe=(e,u)=>{const s=ge({interval:1e3,update:()=>c(),config:u,module:e});e.element.appendChild(s.element);const o=f=>{let r="Unknown";return f.charging&&f.level<1&&(r="Charging"),!f.charging&&f.level===1&&(r="Full"),f.charging&&f.level===1&&(r="Plugged"),!f.charging&&f.level<1&&(r="Discharging"),r};let d="Unknown";const c=async()=>{const f={level:Math.random(),charging:Math.random()>.5},r=Math.round(f.level*100),x=o(f);e.element.classList.remove(d.toLowerCase()),e.element.classList.add(x.toLowerCase()),d=x,e.element.title=x;const a=s.getState(r,!0);console.log(a),s.set({capacity:r,icon:s.getIcon(r)})};c()};export{xe as createBatteryModule}; diff --git a/assets/index-ClAuSJqG.js b/assets/index-ZUm80Bg8.js similarity index 94% rename from assets/index-ClAuSJqG.js rename to assets/index-ZUm80Bg8.js index 731940e..7437e31 100644 --- a/assets/index-ClAuSJqG.js +++ b/assets/index-ZUm80Bg8.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/waybar-BPbYznD4.js","assets/waybar-BiCziTIV.css","assets/root-QOTJvkXH.js","assets/root-C-wuBary.css"])))=>i.map(i=>d[i]); -(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))d(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&d(n)}).observe(document,{childList:!0,subtree:!0});function l(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function d(e){if(e.ep)return;e.ep=!0;const t=l(e);fetch(e.href,t)}})();const P="modulepreload",v=function(r){return"/waybar-online/"+r},f={},m=function(a,l,d){let e=Promise.resolve();if(l&&l.length>0){let h=function(o){return Promise.all(o.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),s=n?.nonce||n?.getAttribute("nonce");e=h(l.map(o=>{if(o=v(o),o in f)return;f[o]=!0;const c=o.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${u}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":P,c||(i.as="script"),i.crossOrigin="",i.href=o,s&&i.setAttribute("nonce",s),document.head.appendChild(i),c)return new Promise((y,g)=>{i.addEventListener("load",y),i.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=n,window.dispatchEvent(s),!s.defaultPrevented)throw n}return e.then(n=>{for(const s of n||[])s.status==="rejected"&&t(s.reason);return a().catch(t)})},p=location.pathname.endsWith("/")?location.pathname.slice(0,-1):location.pathname;p==="/waybar-online/waybar"&&m(async()=>{const{createWaybarPage:r}=await import("./waybar-BPbYznD4.js");return{createWaybarPage:r}},__vite__mapDeps([0,1])).then(({createWaybarPage:r})=>r());p==="/waybar-online"&&m(async()=>{const{createRootPage:r}=await import("./root-QOTJvkXH.js");return{createRootPage:r}},__vite__mapDeps([2,3])).then(({createRootPage:r})=>r());export{m as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/waybar-D5nMdX4U.js","assets/waybar-BiCziTIV.css","assets/root-QOTJvkXH.js","assets/root-C-wuBary.css"])))=>i.map(i=>d[i]); +(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))d(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&d(n)}).observe(document,{childList:!0,subtree:!0});function l(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function d(e){if(e.ep)return;e.ep=!0;const t=l(e);fetch(e.href,t)}})();const P="modulepreload",v=function(r){return"/waybar-online/"+r},f={},m=function(a,l,d){let e=Promise.resolve();if(l&&l.length>0){let h=function(o){return Promise.all(o.map(c=>Promise.resolve(c).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),s=n?.nonce||n?.getAttribute("nonce");e=h(l.map(o=>{if(o=v(o),o in f)return;f[o]=!0;const c=o.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${u}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":P,c||(i.as="script"),i.crossOrigin="",i.href=o,s&&i.setAttribute("nonce",s),document.head.appendChild(i),c)return new Promise((y,g)=>{i.addEventListener("load",y),i.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${o}`)))})}))}function t(n){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=n,window.dispatchEvent(s),!s.defaultPrevented)throw n}return e.then(n=>{for(const s of n||[])s.status==="rejected"&&t(s.reason);return a().catch(t)})},p=location.pathname.endsWith("/")?location.pathname.slice(0,-1):location.pathname;p==="/waybar-online/waybar"&&m(async()=>{const{createWaybarPage:r}=await import("./waybar-D5nMdX4U.js");return{createWaybarPage:r}},__vite__mapDeps([0,1])).then(({createWaybarPage:r})=>r());p==="/waybar-online"&&m(async()=>{const{createRootPage:r}=await import("./root-QOTJvkXH.js");return{createRootPage:r}},__vite__mapDeps([2,3])).then(({createRootPage:r})=>r());export{m as _}; diff --git a/assets/waybar-BPbYznD4.js b/assets/waybar-D5nMdX4U.js similarity index 98% rename from assets/waybar-BPbYznD4.js rename to assets/waybar-D5nMdX4U.js index 19dd034..784ab57 100644 --- a/assets/waybar-BPbYznD4.js +++ b/assets/waybar-D5nMdX4U.js @@ -1,10 +1,10 @@ -import{_ as D}from"./index-ClAuSJqG.js";function Z(e,l=!1){const p=e.length;let n=0,u="",o=0,c=16,w=0,g=0,a=0,r=0,k=0;function A(t,b){let T=0,s=0;for(;T=48&&i<=57)s=s*16+i-48;else if(i>=65&&i<=70)s=s*16+i-65+10;else if(i>=97&&i<=102)s=s*16+i-97+10;else break;n++,T++}return T=p){t+=e.substring(b,n),k=2;break}const T=e.charCodeAt(n);if(T===34){t+=e.substring(b,n),n++;break}if(T===92){if(t+=e.substring(b,n),n++,n>=p){k=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+=` +import{_ as D}from"./index-ZUm80Bg8.js";function Z(e,l=!1){const p=e.length;let n=0,u="",o=0,c=16,w=0,g=0,a=0,r=0,k=0;function A(t,b){let T=0,s=0;for(;T=48&&i<=57)s=s*16+i-48;else if(i>=65&&i<=70)s=s*16+i-65+10;else if(i>=97&&i<=102)s=s*16+i-97+10;else break;n++,T++}return T=p){t+=e.substring(b,n),k=2;break}const T=e.charCodeAt(n);if(T===34){t+=e.substring(b,n),n++;break}if(T===92){if(t+=e.substring(b,n),n++,n>=p){k=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+=` `;break;case 114:t+="\r";break;case 116:t+=" ";break;case 117:const i=A(4);i>=0?t+=String.fromCharCode(i):k=4;break;default:k=5}b=n;continue}if(T>=0&&T<=31)if(y(T)){t+=e.substring(b,n),k=2;break}else k=6;n++}return t}function O(){if(u="",k=0,o=n,g=w,r=a,n>=p)return o=p,c=17;let t=e.charCodeAt(n);if(F(t)){do n++,u+=String.fromCharCode(t),t=e.charCodeAt(n);while(F(t));return c=15}if(y(t))return n++,u+=String.fromCharCode(t),t===13&&e.charCodeAt(n)===10&&(n++,u+=` `),w++,a=n,c=14;switch(t){case 123:return n++,c=1;case 125:return n++,c=2;case 91:return n++,c=3;case 93:return n++,c=4;case 58:return n++,c=6;case 44:return n++,c=5;case 34:return n++,u=U(),c=10;case 47:const b=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n=12&&t<=15);return t}return{setPosition:v,getPosition:()=>n,scan:l?V:O,getToken:()=>c,getTokenValue:()=>u,getTokenOffset:()=>o,getTokenLength:()=>n-o,getTokenStartLine:()=>g,getTokenStartCharacter:()=>o-r,getTokenError:()=>k}}function F(e){return e===32||e===9}function y(e){return e===10||e===13}function _(e){return e>=48&&e<=57}var W;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(W||(W={}));new Array(20).fill(0).map((e,l)=>" ".repeat(l));const B=200;new Array(B).fill(0).map((e,l)=>` `+" ".repeat(l)),new Array(B).fill(0).map((e,l)=>"\r"+" ".repeat(l)),new Array(B).fill(0).map((e,l)=>`\r `+" ".repeat(l)),new Array(B).fill(0).map((e,l)=>` `+" ".repeat(l)),new Array(B).fill(0).map((e,l)=>"\r"+" ".repeat(l)),new Array(B).fill(0).map((e,l)=>`\r -`+" ".repeat(l));var I;(function(e){e.DEFAULT={allowTrailingComma:!1}})(I||(I={}));function S(e,l=[],p=I.DEFAULT){let n=null,u=[];const o=[];function c(g){Array.isArray(u)?u.push(g):n!==null&&(u[n]=g)}return P(e,{onObjectBegin:()=>{const g={};c(g),o.push(u),u=g,n=null},onObjectProperty:g=>{n=g},onObjectEnd:()=>{u=o.pop()},onArrayBegin:()=>{const g=[];c(g),o.push(u),u=g,n=null},onArrayEnd:()=>{u=o.pop()},onLiteralValue:c,onError:(g,a,r)=>{l.push({error:g,offset:a,length:r})}},p),u[0]}function P(e,l,p=I.DEFAULT){const n=Z(e,!1),u=[];let o=0;function c(f){return f?()=>o===0&&f(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function w(f){return f?m=>o===0&&f(m,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function g(f){return f?m=>o===0&&f(m,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>u.slice()):()=>!0}function a(f){return f?()=>{o>0?o++:f(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>u.slice())===!1&&(o=1)}:()=>!0}function r(f){return f?()=>{o>0&&o--,o===0&&f(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}const k=a(l.onObjectBegin),A=g(l.onObjectProperty),v=r(l.onObjectEnd),N=a(l.onArrayBegin),U=r(l.onArrayEnd),O=g(l.onLiteralValue),L=w(l.onSeparator),V=c(l.onComment),t=w(l.onError),b=p&&p.disallowComments,T=p&&p.allowTrailingComma;function s(){for(;;){const f=n.scan();switch(n.getTokenError()){case 4:i(14);break;case 5:i(15);break;case 3:i(13);break;case 1:b||i(11);break;case 2:i(12);break;case 6:i(16);break}switch(f){case 12:case 13:b?i(10):V();break;case 16:i(1);break;case 15:case 14:break;default:return f}}}function i(f,m=[],R=[]){if(t(f),m.length+R.length>0){let E=n.getToken();for(;E!==17;){if(m.indexOf(E)!==-1){s();break}else if(R.indexOf(E)!==-1)break;E=s()}}}function M(f){const m=n.getTokenValue();return f?O(m):(A(m),u.push(m)),s(),!0}function G(){switch(n.getToken()){case 11:const f=n.getTokenValue();let m=Number(f);isNaN(m)&&(i(2),m=0),O(m);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return s(),!0}function J(){return n.getToken()!==10?(i(3,[],[2,5]),!1):(M(!1),n.getToken()===6?(L(":"),s(),j()||i(4,[],[2,5])):i(5,[],[2,5]),u.pop(),!0)}function X(){k(),s();let f=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(f||i(4,[],[]),L(","),s(),n.getToken()===2&&T)break}else f&&i(6,[],[]);J()||i(4,[],[2,5]),f=!0}return v(),n.getToken()!==2?i(7,[2],[]):s(),!0}function Y(){N(),s();let f=!0,m=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(m||i(4,[],[]),L(","),s(),n.getToken()===4&&T)break}else m&&i(6,[],[]);f?(u.push(0),f=!1):u[u.length-1]++,j()||i(4,[],[4,5]),m=!0}return U(),f||u.pop(),n.getToken()!==4?i(8,[4],[]):s(),!0}function j(){switch(n.getToken()){case 3:return Y();case 1:return X();case 10:return M(!0);default:return G()}}return s(),n.getToken()===17?p.allowEmptyContent?!0:(i(4,[],[]),!1):j()?(n.getToken()!==17&&i(9,[],[]),!0):(i(4,[],[]),!1)}var $;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})($||($={}));var H;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(H||(H={}));const d=S;var Q;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Q||(Q={}));const K=async()=>{const l=await(await fetch("/waybar-online/resources/config.jsonc")).text();return d(l)},q=e=>{const l=document.createElement("div");return l.id=e,l.className="module",{element:l}},z={clock:()=>D(async()=>{const{createClockModule:e}=await import("./clock-BmfHr4Vo.js");return{createClockModule:e}},[]).then(({createClockModule:e})=>e),battery:()=>D(async()=>{const{createBatteryModule:e}=await import("./battery-CUXKicJ3.js");return{createBatteryModule:e}},[]).then(({createBatteryModule:e})=>e)},h=document.getElementById("app"),C=async()=>{const e=document.createElement("link");e.rel="stylesheet",e.href="/waybar-online/resources/style.css",document.head.appendChild(e);const l=await K();h.innerHTML=` +`+" ".repeat(l));var I;(function(e){e.DEFAULT={allowTrailingComma:!1}})(I||(I={}));function S(e,l=[],p=I.DEFAULT){let n=null,u=[];const o=[];function c(g){Array.isArray(u)?u.push(g):n!==null&&(u[n]=g)}return P(e,{onObjectBegin:()=>{const g={};c(g),o.push(u),u=g,n=null},onObjectProperty:g=>{n=g},onObjectEnd:()=>{u=o.pop()},onArrayBegin:()=>{const g=[];c(g),o.push(u),u=g,n=null},onArrayEnd:()=>{u=o.pop()},onLiteralValue:c,onError:(g,a,r)=>{l.push({error:g,offset:a,length:r})}},p),u[0]}function P(e,l,p=I.DEFAULT){const n=Z(e,!1),u=[];let o=0;function c(f){return f?()=>o===0&&f(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function w(f){return f?m=>o===0&&f(m,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function g(f){return f?m=>o===0&&f(m,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>u.slice()):()=>!0}function a(f){return f?()=>{o>0?o++:f(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>u.slice())===!1&&(o=1)}:()=>!0}function r(f){return f?()=>{o>0&&o--,o===0&&f(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}const k=a(l.onObjectBegin),A=g(l.onObjectProperty),v=r(l.onObjectEnd),N=a(l.onArrayBegin),U=r(l.onArrayEnd),O=g(l.onLiteralValue),L=w(l.onSeparator),V=c(l.onComment),t=w(l.onError),b=p&&p.disallowComments,T=p&&p.allowTrailingComma;function s(){for(;;){const f=n.scan();switch(n.getTokenError()){case 4:i(14);break;case 5:i(15);break;case 3:i(13);break;case 1:b||i(11);break;case 2:i(12);break;case 6:i(16);break}switch(f){case 12:case 13:b?i(10):V();break;case 16:i(1);break;case 15:case 14:break;default:return f}}}function i(f,m=[],R=[]){if(t(f),m.length+R.length>0){let E=n.getToken();for(;E!==17;){if(m.indexOf(E)!==-1){s();break}else if(R.indexOf(E)!==-1)break;E=s()}}}function M(f){const m=n.getTokenValue();return f?O(m):(A(m),u.push(m)),s(),!0}function G(){switch(n.getToken()){case 11:const f=n.getTokenValue();let m=Number(f);isNaN(m)&&(i(2),m=0),O(m);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return s(),!0}function J(){return n.getToken()!==10?(i(3,[],[2,5]),!1):(M(!1),n.getToken()===6?(L(":"),s(),j()||i(4,[],[2,5])):i(5,[],[2,5]),u.pop(),!0)}function X(){k(),s();let f=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(f||i(4,[],[]),L(","),s(),n.getToken()===2&&T)break}else f&&i(6,[],[]);J()||i(4,[],[2,5]),f=!0}return v(),n.getToken()!==2?i(7,[2],[]):s(),!0}function Y(){N(),s();let f=!0,m=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(m||i(4,[],[]),L(","),s(),n.getToken()===4&&T)break}else m&&i(6,[],[]);f?(u.push(0),f=!1):u[u.length-1]++,j()||i(4,[],[4,5]),m=!0}return U(),f||u.pop(),n.getToken()!==4?i(8,[4],[]):s(),!0}function j(){switch(n.getToken()){case 3:return Y();case 1:return X();case 10:return M(!0);default:return G()}}return s(),n.getToken()===17?p.allowEmptyContent?!0:(i(4,[],[]),!1):j()?(n.getToken()!==17&&i(9,[],[]),!0):(i(4,[],[]),!1)}var $;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})($||($={}));var H;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(H||(H={}));const d=S;var Q;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Q||(Q={}));const K=async()=>{const l=await(await fetch("/waybar-online/resources/config.jsonc")).text();return d(l)},q=e=>{const l=document.createElement("div");return l.id=e,l.className="module",{element:l}},z={clock:()=>D(async()=>{const{createClockModule:e}=await import("./clock-BmfHr4Vo.js");return{createClockModule:e}},[]).then(({createClockModule:e})=>e),battery:()=>D(async()=>{const{createBatteryModule:e}=await import("./battery-W9umwEeW.js");return{createBatteryModule:e}},[]).then(({createBatteryModule:e})=>e)},h=document.getElementById("app"),C=async()=>{const e=document.createElement("link");e.rel="stylesheet",e.href="/waybar-online/resources/style.css",document.head.appendChild(e);const l=await K();h.innerHTML=`
diff --git a/index.html b/index.html index 27beff1..923b3f9 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ Vite + TS - +