Light theme
This commit is contained in:
1 parent
9deff439d7
commit
e6fcd54e22
11 files changed
+138
-29
No files matched your search
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import{j as e,B as k,G as C,D as ie,T,M as ve,a as R,b as De,L as Ae,S as Ie,u as ne,c as J,d as Q,e as M,f as Ze,g as re,h as A,i as se,k as F,C as G,l as N,A as Xe,m as Pe,I as z,n as Ve,o as H,P as W,p as Ye,q as et,r as ke,s as K,t as Ue,v as Fe,w as tt,x as Oe,y as Re,z as nt,E as rt,F as st,H as ot,J as at,K as it,N as ct,O as lt,Q as _e,R as ut,U as dt}from"./mui-aBip8mmu.js";import{u as Z,a as X,b as Ce,c as ce,d as ht,e as mt,L as B,f as pt,O as xt,g as gt,h as V,q as le,i as Se,j as ee,r as fe,k as ft,R as jt,Q as yt,l as vt}from"./tanstack-DojtBDN6.js";import{c as Ct,r as P}from"./react-C_FdcE2X.js";import{c as St}from"./zustand-DAXCIHlT.js";import{i as Y,B as wt,a as bt,b as Pt,u as $,t as b,T as Tt}from"./i18n-W-kxdzA-.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function s(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(n){if(n.ep)return;n.ep=!0;const o=s(n);fetch(n.href,o)}})();var je={},Te=Ct;je.createRoot=Te.createRoot,je.hydrateRoot=Te.hydrateRoot;const xe=15,Et=3;var ae={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ye=new Map,oe=t=>{const r=ye.get(t);return r?Object.fromEntries(Object.entries(r.stores).map(([s,i])=>[s,i.getState()])):{}},Dt=(t,r,s)=>{if(t===void 0)return{type:"untracked",connection:r.connect(s)};const i=ye.get(s.name);if(i)return{type:"tracked",store:t,...i};const n={connection:r.connect(s),stores:{}};return ye.set(s.name,n),{type:"tracked",store:t,...n}},At=(t,r={})=>(s,i,n)=>{const{enabled:o,anonymousActionType:c,store:d,...h}=r;let p;try{p=(o??(ae?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!p)return(ae?"production":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(s,i,n);const{connection:l,...a}=Dt(d,p,h);let u=!0;n.setState=(x,j,y)=>{const f=s(x,j);if(!u)return f;const E=y===void 0?{type:c||"anonymous"}:typeof y=="string"?{type:y}:y;return d===void 0?(l==null||l.send(E,i()),f):(l==null||l.send({...E,type:`${d}/${E.type}`},{...oe(h.name),[d]:n.getState()}),f)};const m=(...x)=>{const j=u;u=!1,s(...x),u=j},g=t(n.setState,i,n);if(a.type==="untracked"?l==null||l.init(g):(a.stores[a.store]=n,l==null||l.init(Object.fromEntries(Object.entries(a.stores).map(([x,j])=>[x,x===a.store?g:j.getState()])))),n.dispatchFromDevtools&&typeof n.dispatch=="function"){let x=!1;const j=n.dispatch;n.dispatch=(...y)=>{(ae?"production":void 0)!=="production"&&y[0].type==="__setState"&&!x&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),x=!0),j(...y)}}return l.subscribe(x=>{var j;switch(x.type){case"ACTION":if(typeof x.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ge(x.payload,y=>{if(y.type==="__setState"){if(d===void 0){m(y.state);return}Object.keys(y.state).length!==1&&console.error(`
|
||||
[zustand devtools middleware] Unsupported __setState action format.
|
||||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||||
`);const f=y.state[d];if(f==null)return;JSON.stringify(n.getState())!==JSON.stringify(f)&&m(f);return}n.dispatchFromDevtools&&typeof n.dispatch=="function"&&n.dispatch(y)});case"DISPATCH":switch(x.payload.type){case"RESET":return m(g),d===void 0?l==null?void 0:l.init(n.getState()):l==null?void 0:l.init(oe(h.name));case"COMMIT":if(d===void 0){l==null||l.init(n.getState());return}return l==null?void 0:l.init(oe(h.name));case"ROLLBACK":return ge(x.state,y=>{if(d===void 0){m(y),l==null||l.init(n.getState());return}m(y[d]),l==null||l.init(oe(h.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ge(x.state,y=>{if(d===void 0){m(y);return}JSON.stringify(n.getState())!==JSON.stringify(y[d])&&m(y[d])});case"IMPORT_STATE":{const{nextLiftedState:y}=x.payload,f=(j=y.computedStates.slice(-1)[0])==null?void 0:j.state;if(!f)return;m(d===void 0?f:f[d]),l==null||l.send(null,y);return}case"PAUSE_RECORDING":return u=!u}return}}),g},It=At,ge=(t,r)=>{let s;try{s=JSON.parse(t)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}s!==void 0&&r(s)};function kt(t,r){let s;try{s=t()}catch{return}return{getItem:n=>{var o;const c=h=>h===null?null:JSON.parse(h,void 0),d=(o=s.getItem(n))!=null?o:null;return d instanceof Promise?d.then(c):c(d)},setItem:(n,o)=>s.setItem(n,JSON.stringify(o,void 0)),removeItem:n=>s.removeItem(n)}}const te=t=>r=>{try{const s=t(r);return s instanceof Promise?s:{then(i){return te(i)(s)},catch(i){return this}}}catch(s){return{then(i){return this},catch(i){return te(i)(s)}}}},Ut=(t,r)=>(s,i,n)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:j=>j,version:0,merge:(j,y)=>({...y,...j}),...r},c=!1;const d=new Set,h=new Set;let p;try{p=o.getStorage()}catch{}if(!p)return t((...j)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),s(...j)},i,n);const l=te(o.serialize),a=()=>{const j=o.partialize({...i()});let y;const f=l({state:j,version:o.version}).then(E=>p.setItem(o.name,E)).catch(E=>{y=E});if(y)throw y;return f},u=n.setState;n.setState=(j,y)=>{u(j,y),a()};const m=t((...j)=>{s(...j),a()},i,n);let g;const x=()=>{var j;if(!p)return;c=!1,d.forEach(f=>f(i()));const y=((j=o.onRehydrateStorage)==null?void 0:j.call(o,i()))||void 0;return te(p.getItem.bind(p))(o.name).then(f=>{if(f)return o.deserialize(f)}).then(f=>{if(f)if(typeof f.version=="number"&&f.version!==o.version){if(o.migrate)return o.migrate(f.state,f.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return f.state}).then(f=>{var E;return g=o.merge(f,(E=i())!=null?E:m),s(g,!0),a()}).then(()=>{y==null||y(g,void 0),c=!0,h.forEach(f=>f(g))}).catch(f=>{y==null||y(void 0,f)})};return n.persist={setOptions:j=>{o={...o,...j},j.getStorage&&(p=j.getStorage())},clearStorage:()=>{p==null||p.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>x(),hasHydrated:()=>c,onHydrate:j=>(d.add(j),()=>{d.delete(j)}),onFinishHydration:j=>(h.add(j),()=>{h.delete(j)})},x(),g||m},Ft=(t,r)=>(s,i,n)=>{let o={storage:kt(()=>localStorage),partialize:x=>x,version:0,merge:(x,j)=>({...j,...x}),...r},c=!1;const d=new Set,h=new Set;let p=o.storage;if(!p)return t((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),s(...x)},i,n);const l=()=>{const x=o.partialize({...i()});return p.setItem(o.name,{state:x,version:o.version})},a=n.setState;n.setState=(x,j)=>{a(x,j),l()};const u=t((...x)=>{s(...x),l()},i,n);n.getInitialState=()=>u;let m;const g=()=>{var x,j;if(!p)return;c=!1,d.forEach(f=>{var E;return f((E=i())!=null?E:u)});const y=((j=o.onRehydrateStorage)==null?void 0:j.call(o,(x=i())!=null?x:u))||void 0;return te(p.getItem.bind(p))(o.name).then(f=>{if(f)if(typeof f.version=="number"&&f.version!==o.version){if(o.migrate)return o.migrate(f.state,f.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return f.state}).then(f=>{var E;return m=o.merge(f,(E=i())!=null?E:u),s(m,!0),l()}).then(()=>{y==null||y(m,void 0),m=i(),c=!0,h.forEach(f=>f(m))}).catch(f=>{y==null||y(void 0,f)})};return n.persist={setOptions:x=>{o={...o,...x},x.storage&&(p=x.storage)},clearStorage:()=>{p==null||p.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>g(),hasHydrated:()=>c,onHydrate:x=>(d.add(x),()=>{d.delete(x)}),onFinishHydration:x=>(h.add(x),()=>{h.delete(x)})},o.skipHydration||g(),m||u},Ot=(t,r)=>"getStorage"in r||"serialize"in r||"deserialize"in r?((ae?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Ut(t,r)):Ft(t,r),Rt=Ot,ue=St()(It(Rt(t=>({theme:void 0,currentSession:[void 0,void 0],setTheme:r=>t(()=>({theme:r})),setCurrentSession:r=>t(()=>({currentSession:r}))}),{name:"guestbook-storage"}))),L="https://khofmann.user
Line truncated
|
||||
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
import{j as e,B as A,G as C,D as ie,T,M as ve,a as _,b as Fe,L as De,S as Ae,u as ne,c as J,d as Q,e as M,f as Ge,g as re,h as D,i as se,k,C as G,l as N,A as Xe,m as Pe,I as z,n as Ve,o as H,P as W,p as Ze,q as Ye,r as Ie,s as K,t as ke,v as Ue,w as et,x as Oe,y as _e,z as tt,E as nt,F as rt,H as st,J as ot,K as at,N as it,O as ct,Q as lt,R as ut,U as dt}from"./mui-aBip8mmu.js";import{u as X,a as V,b as Ce,c as ce,d as ht,e as mt,L as B,f as xt,O as pt,g as gt,h as Z,q as le,i as Se,j as ee,r as je,k as jt,R as ft,Q as yt,l as vt}from"./tanstack-DojtBDN6.js";import{c as Ct,r as P}from"./react-C_FdcE2X.js";import{c as St}from"./zustand-DAXCIHlT.js";import{i as Y,B as wt,a as bt,b as Pt,u as $,t as b,T as Tt}from"./i18n-W-kxdzA-.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function s(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=s(r);fetch(r.href,a)}})();var fe={},Te=Ct;fe.createRoot=Te.createRoot,fe.hydrateRoot=Te.hydrateRoot;const pe=15,Et=3;var ae={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ye=new Map,oe=t=>{const n=ye.get(t);return n?Object.fromEntries(Object.entries(n.stores).map(([s,i])=>[s,i.getState()])):{}},Ft=(t,n,s)=>{if(t===void 0)return{type:"untracked",connection:n.connect(s)};const i=ye.get(s.name);if(i)return{type:"tracked",store:t,...i};const r={connection:n.connect(s),stores:{}};return ye.set(s.name,r),{type:"tracked",store:t,...r}},Dt=(t,n={})=>(s,i,r)=>{const{enabled:a,anonymousActionType:c,store:d,...p}=n;let g;try{g=(a??(ae?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!g)return(ae?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),t(s,i,r);const{connection:l,...o}=Ft(d,g,p);let u=!0;r.setState=(m,f,y)=>{const j=s(m,f);if(!u)return j;const E=y===void 0?{type:c||"anonymous"}:typeof y=="string"?{type:y}:y;return d===void 0?(l==null||l.send(E,i()),j):(l==null||l.send({...E,type:`${d}/${E.type}`},{...oe(p.name),[d]:r.getState()}),j)};const h=(...m)=>{const f=u;u=!1,s(...m),u=f},x=t(r.setState,i,r);if(o.type==="untracked"?l==null||l.init(x):(o.stores[o.store]=r,l==null||l.init(Object.fromEntries(Object.entries(o.stores).map(([m,f])=>[m,m===o.store?x:f.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let m=!1;const f=r.dispatch;r.dispatch=(...y)=>{(ae?"production":void 0)!=="production"&&y[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),f(...y)}}return l.subscribe(m=>{var f;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ge(m.payload,y=>{if(y.type==="__setState"){if(d===void 0){h(y.state);return}Object.keys(y.state).length!==1&&console.error(`
|
||||
[zustand devtools middleware] Unsupported __setState action format.
|
||||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||||
`);const j=y.state[d];if(j==null)return;JSON.stringify(r.getState())!==JSON.stringify(j)&&h(j);return}r.dispatchFromDevtools&&typeof r.dispatch=="function"&&r.dispatch(y)});case"DISPATCH":switch(m.payload.type){case"RESET":return h(x),d===void 0?l==null?void 0:l.init(r.getState()):l==null?void 0:l.init(oe(p.name));case"COMMIT":if(d===void 0){l==null||l.init(r.getState());return}return l==null?void 0:l.init(oe(p.name));case"ROLLBACK":return ge(m.state,y=>{if(d===void 0){h(y),l==null||l.init(r.getState());return}h(y[d]),l==null||l.init(oe(p.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ge(m.state,y=>{if(d===void 0){h(y);return}JSON.stringify(r.getState())!==JSON.stringify(y[d])&&h(y[d])});case"IMPORT_STATE":{const{nextLiftedState:y}=m.payload,j=(f=y.computedStates.slice(-1)[0])==null?void 0:f.state;if(!j)return;h(d===void 0?j:j[d]),l==null||l.send(null,y);return}case"PAUSE_RECORDING":return u=!u}return}}),x},At=Dt,ge=(t,n)=>{let s;try{s=JSON.parse(t)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}s!==void 0&&n(s)};function It(t,n){let s;try{s=t()}catch{return}return{getItem:r=>{var a;const c=p=>p===null?null:JSON.parse(p,void 0),d=(a=s.getItem(r))!=null?a:null;return d instanceof Promise?d.then(c):c(d)},setItem:(r,a)=>s.setItem(r,JSON.stringify(a,void 0)),removeItem:r=>s.removeItem(r)}}const te=t=>n=>{try{const s=t(n);return s instanceof Promise?s:{then(i){return te(i)(s)},catch(i){return this}}}catch(s){return{then(i){return this},catch(i){return te(i)(s)}}}},kt=(t,n)=>(s,i,r)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:f=>f,version:0,merge:(f,y)=>({...y,...f}),...n},c=!1;const d=new Set,p=new Set;let g;try{g=a.getStorage()}catch{}if(!g)return t((...f)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),s(...f)},i,r);const l=te(a.serialize),o=()=>{const f=a.partialize({...i()});let y;const j=l({state:f,version:a.version}).then(E=>g.setItem(a.name,E)).catch(E=>{y=E});if(y)throw y;return j},u=r.setState;r.setState=(f,y)=>{u(f,y),o()};const h=t((...f)=>{s(...f),o()},i,r);let x;const m=()=>{var f;if(!g)return;c=!1,d.forEach(j=>j(i()));const y=((f=a.onRehydrateStorage)==null?void 0:f.call(a,i()))||void 0;return te(g.getItem.bind(g))(a.name).then(j=>{if(j)return a.deserialize(j)}).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==a.version){if(a.migrate)return a.migrate(j.state,j.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return j.state}).then(j=>{var E;return x=a.merge(j,(E=i())!=null?E:h),s(x,!0),o()}).then(()=>{y==null||y(x,void 0),c=!0,p.forEach(j=>j(x))}).catch(j=>{y==null||y(void 0,j)})};return r.persist={setOptions:f=>{a={...a,...f},f.getStorage&&(g=f.getStorage())},clearStorage:()=>{g==null||g.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:f=>(d.add(f),()=>{d.delete(f)}),onFinishHydration:f=>(p.add(f),()=>{p.delete(f)})},m(),x||h},Ut=(t,n)=>(s,i,r)=>{let a={storage:It(()=>localStorage),partialize:m=>m,version:0,merge:(m,f)=>({...f,...m}),...n},c=!1;const d=new Set,p=new Set;let g=a.storage;if(!g)return t((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),s(...m)},i,r);const l=()=>{const m=a.partialize({...i()});return g.setItem(a.name,{state:m,version:a.version})},o=r.setState;r.setState=(m,f)=>{o(m,f),l()};const u=t((...m)=>{s(...m),l()},i,r);r.getInitialState=()=>u;let h;const x=()=>{var m,f;if(!g)return;c=!1,d.forEach(j=>{var E;return j((E=i())!=null?E:u)});const y=((f=a.onRehydrateStorage)==null?void 0:f.call(a,(m=i())!=null?m:u))||void 0;return te(g.getItem.bind(g))(a.name).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==a.version){if(a.migrate)return a.migrate(j.state,j.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return j.state}).then(j=>{var E;return h=a.merge(j,(E=i())!=null?E:u),s(h,!0),l()}).then(()=>{y==null||y(h,void 0),h=i(),c=!0,p.forEach(j=>j(h))}).catch(j=>{y==null||y(void 0,j)})};return r.persist={setOptions:m=>{a={...a,...m},m.storage&&(g=m.storage)},clearStorage:()=>{g==null||g.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>x(),hasHydrated:()=>c,onHydrate:m=>(d.add(m),()=>{d.delete(m)}),onFinishHydration:m=>(p.add(m),()=>{p.delete(m)})},a.skipHydration||x(),h||u},Ot=(t,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?((ae?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),kt(t,n)):Ut(t,n),_t=Ot,ue=St()(At(_t(t=>({theme:void 0,currentSession:[void 0,void 0],setTheme:n=>t(()=>({theme:n})),setCurrentSession:n=>t(()=>({currentSession:n}))}),{name:"guestbook-storage"}))),L="https://khofmann.user
Line truncated
|
||||
Reference in new issue
Block a user