pbw-explore/_app/immutable/components/pages/_layout.svelte-881d16bd.js

2 řádky
9.6 KiB
JavaScript
Surový Normální zobrazení Historie

import{S as M,i as A,s as L,k as w,l as b,m,h as u,n as c,b as k,C as P,B as C,D as S,a as y,q as I,E as z,c as E,r as B,F as h,e as J,g as X,t as $,d as Z,f as D,G as ee,H as te,I as N,J as U,K as T,L as Y,w as G,x as K,y as Q,z as R,M as le}from"../../chunks/index-bc2baea7.js";import{p as se}from"../../chunks/stores-16595c51.js";function oe(a){let e,t,l,s,o;return{c(){e=S("svg"),t=S("path"),l=y(),s=w("span"),o=I("Light mode"),this.h()},l(r){e=z(r,"svg",{id:!0,class:!0,fill:!0,viewBox:!0,xmlns:!0});var i=m(e);t=z(i,"path",{d:!0,"fill-rule":!0,"clip-rule":!0}),m(t).forEach(u),i.forEach(u),l=E(r),s=b(r,"SPAN",{class:!0});var n=m(s);o=B(n,"Light mode"),n.forEach(u),this.h()},h(){c(t,"d","M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"),c(t,"fill-rule","evenodd"),c(t,"clip-rule","evenodd"),c(e,"id","theme-toggle-light-icon"),c(e,"class","w-5 h-5"),c(e,"fill","currentColor"),c(e,"viewBox","0 0 20 20"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(s,"class","px-2")},m(r,i){k(r,e,i),h(e,t),k(r,l,i),k(r,s,i),h(s,o)},d(r){r&&u(e),r&&u(l),r&&u(s)}}}function re(a){let e,t,l,s,o;return{c(){e=S("svg"),t=S("path"),l=y(),s=w("span"),o=I("Dark mode"),this.h()},l(r){e=z(r,"svg",{id:!0,class:!0,fill:!0,viewBox:!0,xmlns:!0});var i=m(e);t=z(i,"path",{d:!0}),m(t).forEach(u),i.forEach(u),l=E(r),s=b(r,"SPAN",{class:!0});var n=m(s);o=B(n,"Dark mode"),n.forEach(u),this.h()},h(){c(t,"d","M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"),c(e,"id","theme-toggle-dark-icon"),c(e,"class","w-5 h-5"),c(e,"fill","currentColor"),c(e,"viewBox","0 0 20 20"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(s,"class","px-2")},m(r,i){k(r,e,i),h(e,t),k(r,l,i),k(r,s,i),h(s,o)},d(r){r&&u(e),r&&u(l),r&&u(s)}}}function ne(a){let e,t,l;function s(i,n){return i[0]?re:oe}let o=s(a),r=o(a);return{c(){e=w("button"),r.c(),this.h()},l(i){e=b(i,"BUTTON",{class:!0});var n=m(e);r.l(n),n.forEach(u),this.h()},h(){c(e,"class","flex items-center text-white py-1 px-2 rounded-full hover:bg-pbw-yellow/20 dark:hover:bg-pbw-white/10")},m(i,n){k(i,e,n),r.m(e,null),t||(l=P(e,"click",a[1]),t=!0)},p(i,[n]){o!==(o=s(i))&&(r.d(1),r=o(i),r&&(r.c(),r.m(e,null)))},i:C,o:C,d(i){i&&u(e),r.d(),t=!1,l()}}}function ie(a,e,t){let l=!1;function s(){t(0,l=!l),document.body.classList.toggle("dark",l)}return[l,s]}class ae extends M{constructor(e){super(),A(this,e,ie,ne,L,{})}}var O={},ce={get exports(){return O},set exports(a){O=a}};(function(a,e){var t=function(l){this.opt=l||{},this.favicon=this.opt.favicon||"/favicon.ico",this.timeout=this.opt.timeout||0,this.logError=this.opt.logError||!1};t.prototype.ping=function(l,s){var o,r,i;typeof Promise<"u"&&(o=new Promise(function(p,x){r=p,i=x}));var n=this;n.wasSuccess=!1,n.img=new Image,n.img.onload=_,n.img.onerror=g;var d,f=new Date;function _(p){n.wasSuccess=!0,v.call(n,p)}function g(p){n.wasSuccess=!1,v.call(n,p)}n.timeout&&(d=setTimeout(function(){v.call(n,void 0)},n.timeout));function v(){d&&clearTimeout(d);var p=new Date-f;if(s){if(typeof s=="function")return this.wasSuccess?(o&&r(p),s(null,p)):(n.logError&&console.error("error loading resource"),o&&i(p),s("error",p));throw new Error("Callback is not a function.")}else{if(o)return this.wasSuccess?r(p):i(p);throw new Error("Promise is not supported by your browser. Use callback instead.")}}return n.img.src=l+n.favicon+"?"+ +new Date,o},a.exports&&(a.exports=t)})(ce);var fe=O,ue=fe;const pe=a=>({}),q=a=>({}),de=a=>({}),W=a=>({});function _e(a){let e;const t=a[4].offline,l=N(t,a,a[3],q),s=l||me();return{c(){s&&s.c()},l(o){s&&s.l(o)},m(o,r){s&&s.m(o,r),e=!0},p(o,r){l&&l.p&&(!e||r&8)&&U(l,t,o,o[3],e?Y(t,o[3],r,pe):T(o[3]),q)},i(o){e||(D(s,o),e=!