Favicon
This commit is contained in:
1 parent
e20206d4a5
commit
5ce2215e44
66 files changed
+174
-20
No files matched your search
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
import{j as e,P as I,B as _,G as j,D as we,T as b,E as Mt,L as B,a as H,b as st,c as k,C as J,S as re,A as at,M as qe,d as z,e as it,f as ct,g as lt,u as pe,h as se,i as oe,k as W,l as ut,m as ge,n as xe,o as Ut,p as Xe,I as Z,q as Nt,r as ee,s as te,t as Ht,v as $t,w as dt,x as qt,y as ht,z as mt,F as Bt,H as zt,J as Wt,K as Gt,N as Qt,O as Kt,Q as Jt,R as Yt,U as Xt,V as Ae,W as Vt,X as Zt}from"./mui-BnAUJOoN.js";import{u as Be,a as ae,b as en,L as Q,c as tn,O as nn,d as ie,e as Y,f as ce,g as rn,h as on,q as ze,i as Pe,j as We,r as De,k as sn,R as an,Q as cn,l as ln}from"./tanstack-BqkrhB-y.js";import{d as un,r as w,g as Ge,b as he}from"./react-C9_qfvjK.js";import{c as dn}from"./zustand-DKxXQGKw.js";import{i as de,B as hn,a as mn,b as fn,u as F,t as A,T as pn}from"./i18n-Be01V9yD.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(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 s(r){if(r.ep)return;r.ep=!0;const a=o(r);fetch(r.href,a)}})();var Fe={},Ve=un;Fe.createRoot=Ve.createRoot,Fe.hydrateRoot=Ve.hydrateRoot;const _e=15,gn=3;var Te={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Me=new Map,je=n=>{const t=Me.get(n);return t?Object.fromEntries(Object.entries(t.stores).map(([o,s])=>[o,s.getState()])):{}},xn=(n,t,o)=>{if(n===void 0)return{type:"untracked",connection:t.connect(o)};const s=Me.get(o.name);if(s)return{type:"tracked",store:n,...s};const r={connection:t.connect(o),stores:{}};return Me.set(o.name,r),{type:"tracked",store:n,...r}},vn=(n,t={})=>(o,s,r)=>{const{enabled:a,anonymousActionType:l,store:c,...d}=t;let h;try{h=(a??(Te?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!h)return(Te?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),n(o,s,r);const{connection:u,...i}=xn(c,h,d);let m=!0;r.setState=(g,x,y)=>{const v=o(g,x);if(!m)return v;const P=y===void 0?{type:l||"anonymous"}:typeof y=="string"?{type:y}:y;return c===void 0?(u==null||u.send(P,s()),v):(u==null||u.send({...P,type:`${c}/${P.type}`},{...je(d.name),[c]:r.getState()}),v)};const f=(...g)=>{const x=m;m=!1,o(...g),m=x},p=n(r.setState,s,r);if(i.type==="untracked"?u==null||u.init(p):(i.stores[i.store]=r,u==null||u.init(Object.fromEntries(Object.entries(i.stores).map(([g,x])=>[g,g===i.store?p:x.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let g=!1;const x=r.dispatch;r.dispatch=(...y)=>{(Te?"production":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),x(...y)}}return u.subscribe(g=>{var x;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ke(g.payload,y=>{if(y.type==="__setState"){if(c===void 0){f(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 v=y.state[c];if(v==null)return;JSON.stringify(r.getState())!==JSON.stringify(v)&&f(v);return}r.dispatchFromDevtools&&typeof r.dispatch=="function"&&r.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return f(p),c===void 0?u==null?void 0:u.init(r.getState()):u==null?void 0:u.init(je(d.name));case"COMMIT":if(c===void 0){u==null||u.init(r.getState());return}return u==null?void 0:u.init(je(d.name));case"ROLLBACK":return ke(g.state,y=>{if(c===void 0){f(y),u==null||u.init(r.getState());return}f(y[c]),u==null||u.init(je(d.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ke(g.state,y=>{if(c===void 0){f(y);return}JSON.stringify(r.getState())!==JSON.stringify(y[c])&&f(y[c])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,v=(x=y.computedStates.slice(-1)[0])==null?void 0:x.state;if(!v)return;f(c===void 0?v:v[c]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return m=!m}return}}),p},yn=vn,ke=(n,t)=>{let o;try{o=JSON.parse(n)}catch(s){console.error("[zustand devtools middleware] Could not parse the received json",s)}o!==void 0&&t(o)};function jn(n,t){let o;try{o=n()}catch{return}return{getItem:r=>{var a;const l=d=>d===null?null:JSON.parse(d,void 0),c=(a=o.getItem(r))!=null?a:null;return c instanceof Promise?c.then(l):l(c)},setItem:(r,a)=>o.setItem(r,JSON.stringify(a,void 0)),removeItem:r=>o.removeItem(r)}}const me=n=>t=>{try{const o=n(t);return o instanceof Promise?o:{then(s){return me(s)(o)},catch(s){return this}}}catch(o){return{then(s){return this},catch(s){return me(s)(o)}}}},Tn=(n,t)=>(o,s,r)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:x=>x,version:0,merge:(x,y)=>({...y,...x}),...t},l=!1;const c=new Set,d=new Set;let h;try{h=a.getStorage()}catch{}if(!h)return n((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),o(...x)},s,r);const u=me(a.serialize),i=()=>{const x=a.partialize({...s()});let y;const v=u({state:x,version:a.version}).then(P=>h.setItem(a.name,P)).catch(P=>{y=P});if(y)throw y;return v},m=r.setState;r.setState=(x,y)=>{m(x,y),i()};const f=n((...x)=>{o(...x),i()},s,r);let p;const g=()=>{var x;if(!h)return;l=!1,c.forEach(v=>v(s()));const y=((x=a.onRehydrateStorage)==null?void 0:x.call(a,s()))||void 0;return me(h.getItem.bind(h))(a.name).then(v=>{if(v)return a.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var P;return p=a.merge(v,(P=s())!=null?P:f),o(p,!0),i()}).then(()=>{y==null||y(p,void 0),l=!0,d.forEach(v=>v(p))}).catch(v=>{y==null||y(void 0,v)})};return r.persist={setOptions:x=>{a={...a,...x},x.getStorage&&(h=x.getStorage())},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>l,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(d.add(x),()=>{d.delete(x)})},g(),p||f},Cn=(n,t)=>(o,s,r)=>{let a={storage:jn(()=>localStorage),partialize:g=>g,version:0,merge:(g,x)=>({...x,...g}),...t},l=!1;const c=new Set,d=new Set;let h=a.storage;if(!h)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),o(...g)},s,r);const u=()=>{const g=a.partialize({...s()});return h.setItem(a.name,{state:g,version:a.version})},i=r.setState;r.setState=(g,x)=>{i(g,x),u()};const m=n((...g)=>{o(...g),u()},s,r);r.getInitialState=()=>m;let f;const p=()=>{var g,x;if(!h)return;l=!1,c.forEach(v=>{var P;return v((P=s())!=null?P:m)});const y=((x=a.onRehydrateStorage)==null?void 0:x.call(a,(g=s())!=null?g:m))||void 0;return me(h.getItem.bind(h))(a.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var P;return f=a.merge(v,(P=s())!=null?P:m),o(f,!0),u()}).then(()=>{y==null||y(f,void 0),f=s(),l=!0,d.forEach(v=>v(f))}).catch(v=>{y==null||y(void 0,v)})};return r.persist={setOptions:g=>{a={...a,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>l,onHydrate:g=>(c.add(g),()=>{c.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},a.skipHydration||p(),f||m},Sn=(n,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Te?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Tn(n,t)):Cn(n,t),bn=Sn,Oe=dn()(yn(bn(n=>({theme:void 0,currentSession:[void 0,void 0],setTheme:t=>n(()=>({theme:t})),setCurrentSession:t=>n(()=>({currentSession:t}))}),{name:"guestbook-storage"}))),G="https://khofmann.user
Line truncated
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/var et=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable;function $n(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function qn(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var s=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(s.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(a){r[a]=a}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Bn=qn()?Object.assign:function(n,t){for(var o,s=$n(n),r,a=1;a<arguments.length;a++){o=Object(arguments[a]);for(var l in o)Nn.call(o,l)&&(s[l]=o[l]);if(et){r=et(o);for(var c=0;c<r.length;c++)Hn.call(o,r[c])&&(s[r[c]]=o[r[c]])}}return s};const zn=Ge(Bn);var K={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},C={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(C).map(function(n){return C[n]});var R={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Ee={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fe={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Wn=Object.keys(Ee).reduce(function(n,t){return n[Ee[t]]=t,n},{}),Gn=[C.NOSCRIPT,C.SCRIPT,C.STYLE],U="data-react-helmet",Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kn=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")},Jn=function(){function n(t,o){for(var s=0;s<o.length;s++){var r=o[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,o,s){return o&&n(t.prototype,o),s&&n(t,s),t}}(),L=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},Yn=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)},tt=function(n,t){var o={};for(var s in n)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s]);return o},Xn=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n},Ue=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Vn=function(t){var o=ne(t,C.TITLE),s=ne(t,fe.TITLE_TEMPLATE);if(s&&o)return s.replace(/%s/g,function(){return Array.isArray(o)?o.join(""):o});var r=ne(t,fe.DEFAULT_TITLE);return o||r||void 0},Zn=function(t){return ne(t,fe.ON_CHANGE_CLIENT_STATE)||function(){}},Le=function(t,o){return o.filter(function(s){return typeof s[t]<"u"}).map(function(s){return s[t]}).reduce(function(s,r){return L({},s,r)},{})},er=function(t,o){return o.filter(function(s){return typeof s[C.BASE]<"u"}).map(function(s){return s[C.BASE]}).reverse().reduce(function(s,r){if(!s.length)for(var a=Object.keys(r),l=0;l<a.length;l++){var c=a[l],d=c.toLowerCase();if(t.indexOf(d)!==-1&&r[d])return s.concat(r)}return s},[])},le=function(t,o,s){var r={};return s.filter(function(a){return Array.isArray(a[t])?!0:(typeof a[t]<"u"&&or("Helmet: "+t+' should be of type "Array". Instead found type "'+Qn(a[t])+'"'),!1)}).map(function(a){return a[t]}).reverse().reduce(function(a,l){var c={};l.filter(function(m){for(var f=void 0,p=Object.keys(m),g=0;g<p.length;g++){var x=p[g],y=x.toLowerCase();o.indexOf(y)!==-1&&!(f===R.REL&&m[f].toLowerCase()==="canonical")&&!(y===R.REL&&m[y].toLowerCase()==="stylesheet")&&(f=y),o.indexOf(x)!==-1&&(x===R.INNER_HTML||x===R.CSS_TEXT||x===R.ITEM_PROP)&&(f=x)}if(!f||!m[f])return!1;var v=m[f].toLowerCase();return r[f]||(r[f]={}),c[f]||(c[f]={}),r[f][v]?!1:(c[f][v]=!0,!0)}).reverse().forEach(function(m){return a.push(m)});for(var d=Object.keys(c),h=0;h<d.length;h++){var u=d[h],i=zn({},r[u],c[u]);r[u]=i}return a},[]).reverse()},ne=function(t,o){for(var s=t.length-1;s>=0;s--){Line truncated
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import{j as e,P as I,B as k,G as j,D as we,L as H,T as b,E as Mt,a as $,b as st,c as _,C as J,S as re,A as at,M as qe,d as z,e as it,f as ct,g as lt,u as pe,h as se,i as oe,k as W,l as ut,m as ge,n as xe,o as Ut,p as Xe,I as Z,q as Nt,r as ee,s as te,t as Ht,v as $t,w as dt,x as qt,y as ht,z as mt,F as Bt,H as zt,J as Wt,K as Gt,N as Qt,O as Kt,Q as Jt,R as Yt,U as Xt,V as Ae,W as Vt,X as Zt}from"./mui-BnAUJOoN.js";import{u as Be,a as ae,b as en,L as Q,c as tn,O as nn,d as ie,e as Y,f as ce,g as rn,h as on,q as ze,i as Pe,j as We,r as De,k as sn,R as an,Q as cn,l as ln}from"./tanstack-BqkrhB-y.js";import{d as un,r as w,g as Ge,b as he}from"./react-C9_qfvjK.js";import{c as dn}from"./zustand-DKxXQGKw.js";import{i as de,B as hn,a as mn,b as fn,u as D,t as A,T as pn}from"./i18n-Be01V9yD.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function o(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 s(r){if(r.ep)return;r.ep=!0;const a=o(r);fetch(r.href,a)}})();var Fe={},Ve=un;Fe.createRoot=Ve.createRoot,Fe.hydrateRoot=Ve.hydrateRoot;const ke=15,gn=3;var Te={BASE_URL:"/phpCourse/exam/dist",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Me=new Map,je=n=>{const t=Me.get(n);return t?Object.fromEntries(Object.entries(t.stores).map(([o,s])=>[o,s.getState()])):{}},xn=(n,t,o)=>{if(n===void 0)return{type:"untracked",connection:t.connect(o)};const s=Me.get(o.name);if(s)return{type:"tracked",store:n,...s};const r={connection:t.connect(o),stores:{}};return Me.set(o.name,r),{type:"tracked",store:n,...r}},vn=(n,t={})=>(o,s,r)=>{const{enabled:a,anonymousActionType:l,store:c,...d}=t;let h;try{h=(a??(Te?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!h)return(Te?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),n(o,s,r);const{connection:u,...i}=xn(c,h,d);let m=!0;r.setState=(g,x,y)=>{const v=o(g,x);if(!m)return v;const P=y===void 0?{type:l||"anonymous"}:typeof y=="string"?{type:y}:y;return c===void 0?(u==null||u.send(P,s()),v):(u==null||u.send({...P,type:`${c}/${P.type}`},{...je(d.name),[c]:r.getState()}),v)};const f=(...g)=>{const x=m;m=!1,o(...g),m=x},p=n(r.setState,s,r);if(i.type==="untracked"?u==null||u.init(p):(i.stores[i.store]=r,u==null||u.init(Object.fromEntries(Object.entries(i.stores).map(([g,x])=>[g,g===i.store?p:x.getState()])))),r.dispatchFromDevtools&&typeof r.dispatch=="function"){let g=!1;const x=r.dispatch;r.dispatch=(...y)=>{(Te?"production":void 0)!=="production"&&y[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),x(...y)}}return u.subscribe(g=>{var x;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return _e(g.payload,y=>{if(y.type==="__setState"){if(c===void 0){f(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 v=y.state[c];if(v==null)return;JSON.stringify(r.getState())!==JSON.stringify(v)&&f(v);return}r.dispatchFromDevtools&&typeof r.dispatch=="function"&&r.dispatch(y)});case"DISPATCH":switch(g.payload.type){case"RESET":return f(p),c===void 0?u==null?void 0:u.init(r.getState()):u==null?void 0:u.init(je(d.name));case"COMMIT":if(c===void 0){u==null||u.init(r.getState());return}return u==null?void 0:u.init(je(d.name));case"ROLLBACK":return _e(g.state,y=>{if(c===void 0){f(y),u==null||u.init(r.getState());return}f(y[c]),u==null||u.init(je(d.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return _e(g.state,y=>{if(c===void 0){f(y);return}JSON.stringify(r.getState())!==JSON.stringify(y[c])&&f(y[c])});case"IMPORT_STATE":{const{nextLiftedState:y}=g.payload,v=(x=y.computedStates.slice(-1)[0])==null?void 0:x.state;if(!v)return;f(c===void 0?v:v[c]),u==null||u.send(null,y);return}case"PAUSE_RECORDING":return m=!m}return}}),p},yn=vn,_e=(n,t)=>{let o;try{o=JSON.parse(n)}catch(s){console.error("[zustand devtools middleware] Could not parse the received json",s)}o!==void 0&&t(o)};function jn(n,t){let o;try{o=n()}catch{return}return{getItem:r=>{var a;const l=d=>d===null?null:JSON.parse(d,void 0),c=(a=o.getItem(r))!=null?a:null;return c instanceof Promise?c.then(l):l(c)},setItem:(r,a)=>o.setItem(r,JSON.stringify(a,void 0)),removeItem:r=>o.removeItem(r)}}const me=n=>t=>{try{const o=n(t);return o instanceof Promise?o:{then(s){return me(s)(o)},catch(s){return this}}}catch(o){return{then(s){return this},catch(s){return me(s)(o)}}}},Tn=(n,t)=>(o,s,r)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:x=>x,version:0,merge:(x,y)=>({...y,...x}),...t},l=!1;const c=new Set,d=new Set;let h;try{h=a.getStorage()}catch{}if(!h)return n((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),o(...x)},s,r);const u=me(a.serialize),i=()=>{const x=a.partialize({...s()});let y;const v=u({state:x,version:a.version}).then(P=>h.setItem(a.name,P)).catch(P=>{y=P});if(y)throw y;return v},m=r.setState;r.setState=(x,y)=>{m(x,y),i()};const f=n((...x)=>{o(...x),i()},s,r);let p;const g=()=>{var x;if(!h)return;l=!1,c.forEach(v=>v(s()));const y=((x=a.onRehydrateStorage)==null?void 0:x.call(a,s()))||void 0;return me(h.getItem.bind(h))(a.name).then(v=>{if(v)return a.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var P;return p=a.merge(v,(P=s())!=null?P:f),o(p,!0),i()}).then(()=>{y==null||y(p,void 0),l=!0,d.forEach(v=>v(p))}).catch(v=>{y==null||y(void 0,v)})};return r.persist={setOptions:x=>{a={...a,...x},x.getStorage&&(h=x.getStorage())},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>l,onHydrate:x=>(c.add(x),()=>{c.delete(x)}),onFinishHydration:x=>(d.add(x),()=>{d.delete(x)})},g(),p||f},Cn=(n,t)=>(o,s,r)=>{let a={storage:jn(()=>localStorage),partialize:g=>g,version:0,merge:(g,x)=>({...x,...g}),...t},l=!1;const c=new Set,d=new Set;let h=a.storage;if(!h)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),o(...g)},s,r);const u=()=>{const g=a.partialize({...s()});return h.setItem(a.name,{state:g,version:a.version})},i=r.setState;r.setState=(g,x)=>{i(g,x),u()};const m=n((...g)=>{o(...g),u()},s,r);r.getInitialState=()=>m;let f;const p=()=>{var g,x;if(!h)return;l=!1,c.forEach(v=>{var P;return v((P=s())!=null?P:m)});const y=((x=a.onRehydrateStorage)==null?void 0:x.call(a,(g=s())!=null?g:m))||void 0;return me(h.getItem.bind(h))(a.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==a.version){if(a.migrate)return a.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var P;return f=a.merge(v,(P=s())!=null?P:m),o(f,!0),u()}).then(()=>{y==null||y(f,void 0),f=s(),l=!0,d.forEach(v=>v(f))}).catch(v=>{y==null||y(void 0,v)})};return r.persist={setOptions:g=>{a={...a,...g},g.storage&&(h=g.storage)},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>l,onHydrate:g=>(c.add(g),()=>{c.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},a.skipHydration||p(),f||m},Sn=(n,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Te?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Tn(n,t)):Cn(n,t),bn=Sn,Oe=dn()(yn(bn(n=>({theme:void 0,currentSession:[void 0,void 0],setTheme:t=>n(()=>({theme:t})),setCurrentSession:t=>n(()=>({currentSession:t}))}),{name:"guestbook-storage"}))),G="https://khofmann.user
Line truncated
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/var et=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable;function $n(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function qn(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var s=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(s.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(a){r[a]=a}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Bn=qn()?Object.assign:function(n,t){for(var o,s=$n(n),r,a=1;a<arguments.length;a++){o=Object(arguments[a]);for(var l in o)Nn.call(o,l)&&(s[l]=o[l]);if(et){r=et(o);for(var c=0;c<r.length;c++)Hn.call(o,r[c])&&(s[r[c]]=o[r[c]])}}return s};const zn=Ge(Bn);var K={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},C={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(C).map(function(n){return C[n]});var R={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Ee={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},fe={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},Wn=Object.keys(Ee).reduce(function(n,t){return n[Ee[t]]=t,n},{}),Gn=[C.NOSCRIPT,C.SCRIPT,C.STYLE],U="data-react-helmet",Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kn=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")},Jn=function(){function n(t,o){for(var s=0;s<o.length;s++){var r=o[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,o,s){return o&&n(t.prototype,o),s&&n(t,s),t}}(),L=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},Yn=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)},tt=function(n,t){var o={};for(var s in n)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s]);return o},Xn=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n},Ue=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Vn=function(t){var o=ne(t,C.TITLE),s=ne(t,fe.TITLE_TEMPLATE);if(s&&o)return s.replace(/%s/g,function(){return Array.isArray(o)?o.join(""):o});var r=ne(t,fe.DEFAULT_TITLE);return o||r||void 0},Zn=function(t){return ne(t,fe.ON_CHANGE_CLIENT_STATE)||function(){}},Le=function(t,o){return o.filter(function(s){return typeof s[t]<"u"}).map(function(s){return s[t]}).reduce(function(s,r){return L({},s,r)},{})},er=function(t,o){return o.filter(function(s){return typeof s[C.BASE]<"u"}).map(function(s){return s[C.BASE]}).reverse().reduce(function(s,r){if(!s.length)for(var a=Object.keys(r),l=0;l<a.length;l++){var c=a[l],d=c.toLowerCase();if(t.indexOf(d)!==-1&&r[d])return s.concat(r)}return s},[])},le=function(t,o,s){var r={};return s.filter(function(a){return Array.isArray(a[t])?!0:(typeof a[t]<"u"&&or("Helmet: "+t+' should be of type "Array". Instead found type "'+Qn(a[t])+'"'),!1)}).map(function(a){return a[t]}).reverse().reduce(function(a,l){var c={};l.filter(function(m){for(var f=void 0,p=Object.keys(m),g=0;g<p.length;g++){var x=p[g],y=x.toLowerCase();o.indexOf(y)!==-1&&!(f===R.REL&&m[f].toLowerCase()==="canonical")&&!(y===R.REL&&m[y].toLowerCase()==="stylesheet")&&(f=y),o.indexOf(x)!==-1&&(x===R.INNER_HTML||x===R.CSS_TEXT||x===R.ITEM_PROP)&&(f=x)}if(!f||!m[f])return!1;var v=m[f].toLowerCase();return r[f]||(r[f]={}),c[f]||(c[f]={}),r[f][v]?!1:(c[f][v]=!0,!0)}).reverse().forEach(function(m){return a.push(m)});for(var d=Object.keys(c),h=0;h<d.length;h++){var u=d[h],i=zn({},r[u],c[u]);r[u]=i}return a},[]).reverse()},ne=function(t,o){for(var s=t.length-1;s>=0;s--){Line truncated
|
||||
Reference in new issue
Block a user