Enhance SvelteKit project by adding new API routes for dark mode toggling, updating existing route parameters, and improving type definitions. Refactor component imports and optimize asset handling for better performance and maintainability.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{a5 as T,aG as N,as as y,Y as M,g as v,q as R,aH as P,aI as U,aJ as Y,a6 as B,a4 as K,aK as j,aL as $,b as q,au as G,aM as z,aN as C,f as H,ad as J,aO as Q,aP as Z,aQ as E,aR as m,aS as d}from"./DScGFiBY.js";import{s as F,g as V}from"./BfWekp-4.js";let _=!1,S=Symbol();function ne(e,r,i){const n=i[r]??(i[r]={store:null,source:M(void 0),unsubscribe:y});if(n.store!==e&&!(S in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=y;else{var u=!0;n.unsubscribe=F(e,s=>{u?n.source.v=s:R(n.source,s)}),u=!1}return e&&S in i?V(e):v(n.source)}function ie(){const e={};function r(){T(()=>{for(var i in e)e[i].unsubscribe();N(e,S,{enumerable:!1,value:!0})})}return[e,r]}function W(e){var r=_;try{return _=!1,[e(),_]}finally{_=r}}const X={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function ue(e,r,i){return new Proxy({props:e,exclude:r},X)}const k={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let u=e.props[n];d(u)&&(u=u());const s=P(u,r);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(d(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const u=P(n,r);return u&&!u.configurable&&(u.configurable=!0),u}}},has(e,r){if(r===E||r===m)return!1;for(let i of e.props)if(d(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props)if(d(i)&&(i=i()),!!i){for(const n in i)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(i))r.includes(n)||r.push(n)}return r}};function te(...e){return new Proxy({props:e},k)}function se(e,r,i,n){var w;var u=!G||(i&z)!==0,s=(i&$)!==0,x=(i&Q)!==0,a=n,b=!0,O=()=>(b&&(b=!1,a=x?q(n):n),a),l;if(s){var D=E in e||m in e;l=((w=P(e,r))==null?void 0:w.set)??(D&&r in e?t=>e[r]=t:void 0)}var o,h=!1;s?[o,h]=W(()=>e[r]):o=e[r],o===void 0&&n!==void 0&&(o=O(),l&&(u&&U(),l(o)));var f;if(u?f=()=>{var t=e[r];return t===void 0?O():(b=!0,t)}:f=()=>{var t=e[r];return t!==void 0&&(a=void 0),t===void 0?a:t},u&&(i&Y)===0)return f;if(l){var A=e.$$legacy;return(function(t,p){return arguments.length>0?((!u||!p||A||h)&&l(p?f():t),t):f()})}var g=!1,c=((i&C)!==0?H:J)(()=>(g=!1,f()));s&&v(c);var L=K;return(function(t,p){if(arguments.length>0){const I=p?v(c):u&&s?B(t):t;return R(c,I),g=!0,a!==void 0&&(a=I),t}return Z&&g||(L.f&j)!==0?c.v:v(c)})}export{ne as a,te as b,se as p,ue as r,ie as s};
|
||||
Reference in New Issue
Block a user