From 3971438db93e638a6593e5f9299712775157dc9b Mon Sep 17 00:00:00 2001 From: Russell Samora Date: Tue, 28 May 2024 08:45:58 -0400 Subject: [PATCH] update github pages --- .../{entry.CZFJZrZM.js => entry.fPoJWDfN.js} | 2 +- docs/_app/immutable/chunks/paths.DqO9xUBo.js | 1 + docs/_app/immutable/chunks/paths.o50uAdmR.js | 1 - .../entry/{app.DPMskBam.js => app.CM_Zg40W.js} | 4 ++-- docs/_app/immutable/entry/start.1u4Iy3G6.js | 1 - docs/_app/immutable/entry/start.BJ8kvQNB.js | 1 + .../nodes/{1.Dh29djuI.js => 1.BALe8-jf.js} | 2 +- docs/_app/immutable/nodes/2.DPMYfibv.js | 1 - docs/_app/immutable/nodes/2.R62kWUKr.js | 1 + .../nodes/{4.DVi2n1kX.js => 4.BrBkd9jk.js} | 2 +- docs/_app/version.json | 2 +- docs/demo/elements/index.html | 14 +++++++------- docs/demo/fonts/index.html | 16 ++++++++-------- docs/demo/ig-story/index.html | 14 +++++++------- docs/index.html | 18 +++++++++--------- 15 files changed, 40 insertions(+), 40 deletions(-) rename docs/_app/immutable/chunks/{entry.CZFJZrZM.js => entry.fPoJWDfN.js} (99%) create mode 100644 docs/_app/immutable/chunks/paths.DqO9xUBo.js delete mode 100644 docs/_app/immutable/chunks/paths.o50uAdmR.js rename docs/_app/immutable/entry/{app.DPMskBam.js => app.CM_Zg40W.js} (93%) delete mode 100644 docs/_app/immutable/entry/start.1u4Iy3G6.js create mode 100644 docs/_app/immutable/entry/start.BJ8kvQNB.js rename docs/_app/immutable/nodes/{1.Dh29djuI.js => 1.BALe8-jf.js} (92%) delete mode 100644 docs/_app/immutable/nodes/2.DPMYfibv.js create mode 100644 docs/_app/immutable/nodes/2.R62kWUKr.js rename docs/_app/immutable/nodes/{4.DVi2n1kX.js => 4.BrBkd9jk.js} (99%) diff --git a/docs/_app/immutable/chunks/entry.CZFJZrZM.js b/docs/_app/immutable/chunks/entry.fPoJWDfN.js similarity index 99% rename from docs/_app/immutable/chunks/entry.CZFJZrZM.js rename to docs/_app/immutable/chunks/entry.fPoJWDfN.js index bb0a0e1..83974a3 100644 --- a/docs/_app/immutable/chunks/entry.CZFJZrZM.js +++ b/docs/_app/immutable/chunks/entry.fPoJWDfN.js @@ -1,3 +1,3 @@ -import{x as oe}from"./scheduler.CnY5WKvn.js";import{w as pt}from"./index.DAinFavA.js";import{a as se,b as P}from"./paths.o50uAdmR.js";new URL("sveltekit-internal://");function ie(t,n){return t==="/"||n==="ignore"?t:n==="never"?t.endsWith("/")?t.slice(0,-1):t:n==="always"&&!t.endsWith("/")?t+"/":t}function ce(t){return t.split("%25").map(decodeURI).join("%25")}function le(t){for(const n in t)t[n]=decodeURIComponent(t[n]);return t}function ct({href:t}){return t.split("#")[0]}const fe=["href","pathname","search","toString","toJSON"];function ue(t,n,e){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(e(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of fe)Object.defineProperty(a,r,{get(){return n(),t[r]},enumerable:!0,configurable:!0});return a}const de="/__data.json",he=".html__data.json";function pe(t){return t.endsWith(".html")?t.replace(/\.html$/,he):t.replace(/\/$/,"")+de}function ge(...t){let n=5381;for(const e of t)if(typeof e=="string"){let a=e.length;for(;a;)n=n*33^e.charCodeAt(--a)}else if(ArrayBuffer.isView(e)){const a=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function me(t){const n=atob(t),e=new Uint8Array(n.length);for(let a=0;a((t instanceof Request?t.method:(n==null?void 0:n.method)||"GET")!=="GET"&&G.delete(gt(t)),jt(t,n));const G=new Map;function _e(t,n){const e=gt(t,n),a=document.querySelector(e);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&G.set(e,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=me(r)),Promise.resolve(new Response(r,o))}return window.fetch(t,n)}function ye(t,n,e){if(G.size>0){const a=gt(t,e),r=G.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return lt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return lt(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=we.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return lt(c)}).join("")}).join("")}/?$`),params:n}}function be(t){return!/^\([^)]+\)$/.test(t)}function Ee(t){return t.slice(1).split("/").filter(be)}function ke(t,n,e){const a={},r=t.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||e[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function lt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Se({nodes:t,server_loads:n,dictionary:e,matchers:a}){const r=new Set(n);return Object.entries(e).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=ve(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return ke(l,g,a)},errors:[1,...u||[]].map(_=>t[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,t[s]]}function i(s){return s===void 0?s:[r.has(s),t[s]]}}function Dt(t,n=JSON.parse){try{return n(sessionStorage[t])}catch{}}function It(t,n,e=JSON.stringify){const a=e(n);try{sessionStorage[t]=a}catch{}}const Ae="1716899742059",$t="sveltekit:snapshot",Ct="sveltekit:scroll",Vt="sveltekit:states",Re="sveltekit:pageurl",D="sveltekit:history",q="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Ft(t){if(t instanceof URL)return t;let n=document.baseURI;if(!n){const e=document.getElementsByTagName("base");n=e.length?e[0].href:document.URL}return new URL(t,n)}function mt(){return{x:pageXOffset,y:pageYOffset}}function O(t,n){return t.getAttribute(`data-sveltekit-${n}`)}const Lt={...J,"":J.hover};function Gt(t){let n=t.assignedSlot??t.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Mt(t,n){for(;t&&t!==n;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Gt(t)}}function ut(t,n){let e;try{e=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,r=!e||!!a||nt(e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(e==null?void 0:e.origin)===K&&t.hasAttribute("download");return{url:e,external:r,target:a,download:o}}function W(t){let n=null,e=null,a=null,r=null,o=null,i=null,s=t;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),e===null&&(e=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Gt(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Lt[a??"off"],preload_data:Lt[r??"off"],keepfocus:c(n),noscroll:c(e),reload:c(o),replace_state:c(i)}}function Pt(t){const n=pt(t);let e=!0;function a(){e=!0,n.update(i=>i)}function r(i){e=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||e&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function Ie(){const{set:t,subscribe:n}=pt(!1);let e;async function a(){clearTimeout(e);try{const r=await fetch(`${se}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==Ae;return i&&(t(!0),clearTimeout(e)),i}catch{return!1}}return{subscribe:n,check:a}}function nt(t,n){return t.origin!==K||!t.pathname.startsWith(n)}const Le=-1,Pe=-2,xe=-3,Ue=-4,Te=-5,Ne=-6;function Oe(t,n){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const e=t,a=Array(e.length);function r(o,i=!1){if(o===Le)return;if(o===xe)return NaN;if(o===Ue)return 1/0;if(o===Te)return-1/0;if(o===Ne)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=e[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class at{constructor(n,e){this.status=n,typeof e=="string"?this.body={message:e}:e?this.body=e:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Ht{constructor(n,e){this.status=n,this.location=e}}class _t extends Error{constructor(n,e,a){super(a),this.status=n,this.text=e}}const $e="x-sveltekit-invalidated",Ce="x-sveltekit-trailing-slash";function z(t){return t instanceof at||t instanceof _t?t.status:500}function Ve(t){return t instanceof _t?t.text:"Internal Error"}const N=Dt(Ct)??{},H=Dt($t)??{},U={url:Pt({}),page:Pt({}),navigating:pt(null),updated:Ie()};function yt(t){N[t]=mt()}function Fe(t,n){let e=t+1;for(;N[e];)delete N[e],e+=1;for(e=n+1;H[e];)delete H[e],e+=1}function C(t){return location.href=t.href,new Promise(()=>{})}function xt(){}let rt,dt,X,x,ht,V;const Bt=[],Z=[];let R=null;const Kt=[],Ge=[];let j=[],y={branch:[],error:null,url:null},wt=!1,Q=!1,Ut=!0,B=!1,F=!1,Yt=!1,vt=!1,bt,S,L,I,tt;const M=new Set;async function tn(t,n,e){var r,o;document.URL!==location.href&&(location.href=location.href),V=t,rt=Se(t),x=document.documentElement,ht=n,dt=t.nodes[0],X=t.nodes[1],dt(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[q],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[q]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),e?await We(ht,e):Ye(location.href,{replaceState:!0}),Je()}function Me(){Bt.length=0,vt=!1}function Jt(t){Z.some(n=>n==null?void 0:n.snapshot)&&(H[t]=Z.map(n=>{var e;return(e=n==null?void 0:n.snapshot)==null?void 0:e.capture()}))}function Wt(t){var n;(n=H[t])==null||n.forEach((e,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(e)})}function Tt(){yt(S),It(Ct,N),Jt(L),It($t,H)}async function zt(t,n,e,a){return Y({type:"goto",url:Ft(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:e,nav_token:a,accept:()=>{n.invalidateAll&&(vt=!0)}})}async function qe(t){if(t.id!==(R==null?void 0:R.id)){const n={};M.add(n),R={id:t.id,token:n,promise:Zt({...t,preload:n}).then(e=>(M.delete(n),e.type==="loaded"&&e.state.error&&(R=null),e))}}return R.promise}async function ft(t){const n=rt.find(e=>e.exec(Qt(t)));n&&await Promise.all([...n.layouts,n.leaf].map(e=>e==null?void 0:e[1]()))}function Xt(t,n,e){var o;y=t.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=t.props.page,bt=new V.root({target:n,props:{...t.props,stores:U,components:Z},hydrate:e}),Wt(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Q=!0}async function et({url:t,params:n,branch:e,status:a,error:r,route:o,form:i}){let s="never";if(P&&(t.pathname===P||t.pathname===P+"/"))s="always";else for(const d of e)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);t.pathname=ie(t.pathname,s),t.search=t.search;const c={type:"loaded",state:{url:t,params:n,branch:e,error:r,route:o},props:{constructors:De(e).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ue(e,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,e);return s&&d(A.href),A.origin===e.origin&&(b=A.href.slice(e.origin.length)),Q?ye(b,A.href,m):_e(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:t,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Nt(t,n,e,a,r,o){if(vt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&n||r.url&&e)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Bt.some(s=>s(new URL(i))))return!0;return!1}function kt(t,n){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?n??null:null}function He(t,n){if(!t)return new Set(n.searchParams.keys());const e=new Set([...t.searchParams.keys(),...n.searchParams.keys()]);for(const a of e){const r=t.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&e.delete(a)}return e}function Ot({error:t,url:n,route:e,params:a}){return{type:"loaded",state:{error:t,url:n,route:e,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Zt({id:t,invalidating:n,url:e,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===t)return M.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?t!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=He(y.url,e);let _=!1;const l=f.map((p,v)=>{var T;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Nt(_,g,h,d,(T=E.server)==null?void 0:T.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await ne(e,l)}catch(p){const v=await $(p,{url:e,params:a,route:{id:t}});return M.has(o)?Ot({error:v,url:e,params:a,route:r}):ot({status:z(p),error:v,url:e,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var st;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Nt(b,g,h,d,(st=E.universal)==null?void 0:st.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Et({loader:p[1],url:e,params:a,route:r,parent:async()=>{var Rt;const At={};for(let it=0;it{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:kt(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await et({url:e,params:r,branch:[s,c],status:t,error:n,route:null})}function St(t,n){if(!t||nt(t,P))return;let e;try{e=V.hooks.reroute({url:new URL(t)})??t.pathname}catch{return}const a=Qt(e);for(const r of rt){const o=r.exec(a);if(o)return{id:t.pathname+t.search,invalidating:n,route:r,params:le(o),url:t}}}function Qt(t){return ce(t.slice(P.length)||"/")}function te({url:t,type:n,intent:e,delta:a}){let r=!1;const o=re(y,e,t,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Kt.forEach(s=>s(i)),r?null:o}async function Y({type:t,url:n,popped:e,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=xt,block:u=xt}){const h=St(n,!1),g=te({url:n,type:t,delta:e==null?void 0:e.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),tt=c;let l=h&&await Zt(h);if(!l){if(nt(n,P))return await C(n);l=await ee(n,{id:null},await $(new _t(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,tt!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await ot({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return zt(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Me(),yt(d),Jt(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=e?e.state:i,!e){const w=o?0:1,p={[D]:S+=w,[q]:L+=w,[Vt]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Fe(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Ge.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}bt.$set(l.props),Yt=!0}else Xt(l,ht,!1);const{activeElement:m}=document;await oe();const b=e?e.scroll:r?mt():null;if(Ut){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&ze(),Ut=!0,l.props.page&&(I=l.props.page),B=!1,t==="popstate"&&Wt(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function ee(t,n,e,a){return t.origin===K&&t.pathname===location.pathname&&!wt?await ot({status:a,error:e,url:t,route:n}):await C(t)}function Ke(){let t;x.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(t),t=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}x.addEventListener("mousedown",n),x.addEventListener("touchstart",n,{passive:!0});const e=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ft(i.target.href),e.unobserve(i.target))},{threshold:0});function a(o,i){const s=Mt(o,x);if(!s)return;const{url:c,external:f,download:u}=ut(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=St(c,!1);g&&qe(g)}else i<=h.preload_code&&ft(c.pathname)}function r(){e.disconnect();for(const o of x.querySelectorAll("a")){const{url:i,external:s,download:c}=ut(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&e.observe(o),f.preload_code===J.eager&&ft(i.pathname))}}j.push(r),r()}function $(t,n){if(t instanceof at)return t.body;const e=z(t),a=Ve(t);return V.hooks.handleError({error:t,event:n,status:e,message:a})??{message:a}}function Ye(t,n={}){return t=Ft(t),t.origin!==K?Promise.reject(new Error("goto: invalid URL")):zt(t,n,0)}function Je(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let a=!1;if(Tt(),!B){const r=re(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Kt.forEach(i=>i(o))}a?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Tt()}),(n=navigator.connection)!=null&&n.saveData||Ke(),x.addEventListener("click",e=>{var g;if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const a=Mt(e.composedPath()[0],x);if(!a)return;const{url:r,external:o,target:i,download:s}=ut(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){te({url:r,type:"link"})?B=!0:e.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ct(location)){const[,d]=y.url.href.split("#");if(d===h){e.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,yt(S),t(r),!c.replace_state)return;F=!1}e.preventDefault(),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),x.addEventListener("submit",e=>{if(e.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(e.target),r=e.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(nt(i,P))return;const s=e.target,c=W(s);if(c.reload)return;e.preventDefault(),e.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async e=>{var a;if((a=e.state)!=null&&a[D]){const r=e.state[D];if(tt={},r===S)return;const o=N[r],i=e.state[Vt]??{},s=new URL(e.state[Re]??location.href),c=e.state[q],f=ct(location)===ct(y.url);if(c===L&&(Yt||f)){t(s),N[S]=mt(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},bt.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:tt})}else if(!F){const r=new URL(location.href);t(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[q]:L},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&U.navigating.set(null)});function t(e){y.url=e,U.page.set({...I,url:e}),U.page.notify()}}async function We(t,{status:n=200,error:e,node_ids:a,params:r,route:o,data:i,form:s}){wt=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=St(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=ae(l.uses)),Et({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:kt(l)})}),h=await Promise.all(u),g=rt.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await jt(e.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new at(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Oe(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{x as oe}from"./scheduler.CnY5WKvn.js";import{w as pt}from"./index.DAinFavA.js";import{a as se,b as P}from"./paths.DqO9xUBo.js";new URL("sveltekit-internal://");function ie(t,n){return t==="/"||n==="ignore"?t:n==="never"?t.endsWith("/")?t.slice(0,-1):t:n==="always"&&!t.endsWith("/")?t+"/":t}function ce(t){return t.split("%25").map(decodeURI).join("%25")}function le(t){for(const n in t)t[n]=decodeURIComponent(t[n]);return t}function ct({href:t}){return t.split("#")[0]}const fe=["href","pathname","search","toString","toJSON"];function ue(t,n,e){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(e(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of fe)Object.defineProperty(a,r,{get(){return n(),t[r]},enumerable:!0,configurable:!0});return a}const de="/__data.json",he=".html__data.json";function pe(t){return t.endsWith(".html")?t.replace(/\.html$/,he):t.replace(/\/$/,"")+de}function ge(...t){let n=5381;for(const e of t)if(typeof e=="string"){let a=e.length;for(;a;)n=n*33^e.charCodeAt(--a)}else if(ArrayBuffer.isView(e)){const a=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function me(t){const n=atob(t),e=new Uint8Array(n.length);for(let a=0;a((t instanceof Request?t.method:(n==null?void 0:n.method)||"GET")!=="GET"&&G.delete(gt(t)),jt(t,n));const G=new Map;function _e(t,n){const e=gt(t,n),a=document.querySelector(e);if(a!=null&&a.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&G.set(e,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=me(r)),Promise.resolve(new Response(r,o))}return window.fetch(t,n)}function ye(t,n,e){if(G.size>0){const a=gt(t,e),r=G.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return n.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return lt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return lt(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const u=we.exec(c),[,h,g,d,_]=u;return n.push({name:d,matcher:_,optional:!!h,rest:!!g,chained:g?f===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return lt(c)}).join("")}).join("")}/?$`),params:n}}function be(t){return!/^\([^)]+\)$/.test(t)}function Ee(t){return t.slice(1).split("/").filter(be)}function ke(t,n,e){const a={},r=t.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),f===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||e[c.matcher](f)){a[c.name]=f;const u=n[s+1],h=r[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function lt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Se({nodes:t,server_loads:n,dictionary:e,matchers:a}){const r=new Set(n);return Object.entries(e).map(([s,[c,f,u]])=>{const{pattern:h,params:g}=ve(s),d={id:s,exec:_=>{const l=h.exec(_);if(l)return ke(l,g,a)},errors:[1,...u||[]].map(_=>t[_]),layouts:[0,...f||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,t[s]]}function i(s){return s===void 0?s:[r.has(s),t[s]]}}function Dt(t,n=JSON.parse){try{return n(sessionStorage[t])}catch{}}function It(t,n,e=JSON.stringify){const a=e(n);try{sessionStorage[t]=a}catch{}}const Ae="1716900353872",$t="sveltekit:snapshot",Ct="sveltekit:scroll",Vt="sveltekit:states",Re="sveltekit:pageurl",D="sveltekit:history",q="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function Ft(t){if(t instanceof URL)return t;let n=document.baseURI;if(!n){const e=document.getElementsByTagName("base");n=e.length?e[0].href:document.URL}return new URL(t,n)}function mt(){return{x:pageXOffset,y:pageYOffset}}function O(t,n){return t.getAttribute(`data-sveltekit-${n}`)}const Lt={...J,"":J.hover};function Gt(t){let n=t.assignedSlot??t.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function Mt(t,n){for(;t&&t!==n;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=Gt(t)}}function ut(t,n){let e;try{e=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,r=!e||!!a||nt(e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(e==null?void 0:e.origin)===K&&t.hasAttribute("download");return{url:e,external:r,target:a,download:o}}function W(t){let n=null,e=null,a=null,r=null,o=null,i=null,s=t;for(;s&&s!==document.documentElement;)a===null&&(a=O(s,"preload-code")),r===null&&(r=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),e===null&&(e=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Gt(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Lt[a??"off"],preload_data:Lt[r??"off"],keepfocus:c(n),noscroll:c(e),reload:c(o),replace_state:c(i)}}function Pt(t){const n=pt(t);let e=!0;function a(){e=!0,n.update(i=>i)}function r(i){e=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||e&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function Ie(){const{set:t,subscribe:n}=pt(!1);let e;async function a(){clearTimeout(e);try{const r=await fetch(`${se}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==Ae;return i&&(t(!0),clearTimeout(e)),i}catch{return!1}}return{subscribe:n,check:a}}function nt(t,n){return t.origin!==K||!t.pathname.startsWith(n)}const Le=-1,Pe=-2,xe=-3,Ue=-4,Te=-5,Ne=-6;function Oe(t,n){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const e=t,a=Array(e.length);function r(o,i=!1){if(o===Le)return;if(o===xe)return NaN;if(o===Ue)return 1/0;if(o===Te)return-1/0;if(o===Ne)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=e[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return a[o]=f(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const u=new Set;a[o]=u;for(let d=1;dn!=null)}class at{constructor(n,e){this.status=n,typeof e=="string"?this.body={message:e}:e?this.body=e:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Ht{constructor(n,e){this.status=n,this.location=e}}class _t extends Error{constructor(n,e,a){super(a),this.status=n,this.text=e}}const $e="x-sveltekit-invalidated",Ce="x-sveltekit-trailing-slash";function z(t){return t instanceof at||t instanceof _t?t.status:500}function Ve(t){return t instanceof _t?t.text:"Internal Error"}const N=Dt(Ct)??{},H=Dt($t)??{},U={url:Pt({}),page:Pt({}),navigating:pt(null),updated:Ie()};function yt(t){N[t]=mt()}function Fe(t,n){let e=t+1;for(;N[e];)delete N[e],e+=1;for(e=n+1;H[e];)delete H[e],e+=1}function C(t){return location.href=t.href,new Promise(()=>{})}function xt(){}let rt,dt,X,x,ht,V;const Bt=[],Z=[];let R=null;const Kt=[],Ge=[];let j=[],y={branch:[],error:null,url:null},wt=!1,Q=!1,Ut=!0,B=!1,F=!1,Yt=!1,vt=!1,bt,S,L,I,tt;const M=new Set;async function tn(t,n,e){var r,o;document.URL!==location.href&&(location.href=location.href),V=t,rt=Se(t),x=document.documentElement,ht=n,dt=t.nodes[0],X=t.nodes[1],dt(),X(),S=(r=history.state)==null?void 0:r[D],L=(o=history.state)==null?void 0:o[q],S||(S=L=Date.now(),history.replaceState({...history.state,[D]:S,[q]:L},""));const a=N[S];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),e?await We(ht,e):Ye(location.href,{replaceState:!0}),Je()}function Me(){Bt.length=0,vt=!1}function Jt(t){Z.some(n=>n==null?void 0:n.snapshot)&&(H[t]=Z.map(n=>{var e;return(e=n==null?void 0:n.snapshot)==null?void 0:e.capture()}))}function Wt(t){var n;(n=H[t])==null||n.forEach((e,a)=>{var r,o;(o=(r=Z[a])==null?void 0:r.snapshot)==null||o.restore(e)})}function Tt(){yt(S),It(Ct,N),Jt(L),It($t,H)}async function zt(t,n,e,a){return Y({type:"goto",url:Ft(t),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:e,nav_token:a,accept:()=>{n.invalidateAll&&(vt=!0)}})}async function qe(t){if(t.id!==(R==null?void 0:R.id)){const n={};M.add(n),R={id:t.id,token:n,promise:Zt({...t,preload:n}).then(e=>(M.delete(n),e.type==="loaded"&&e.state.error&&(R=null),e))}}return R.promise}async function ft(t){const n=rt.find(e=>e.exec(Qt(t)));n&&await Promise.all([...n.layouts,n.leaf].map(e=>e==null?void 0:e[1]()))}function Xt(t,n,e){var o;y=t.state;const a=document.querySelector("style[data-sveltekit]");a&&a.remove(),I=t.props.page,bt=new V.root({target:n,props:{...t.props,stores:U,components:Z},hydrate:e}),Wt(L);const r={from:null,to:{params:y.params,route:{id:((o=y.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};j.forEach(i=>i(r)),Q=!0}async function et({url:t,params:n,branch:e,status:a,error:r,route:o,form:i}){let s="never";if(P&&(t.pathname===P||t.pathname===P+"/"))s="always";else for(const d of e)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);t.pathname=ie(t.pathname,s),t.search=t.search;const c={type:"loaded",state:{url:t,params:n,branch:e,error:r,route:o},props:{constructors:De(e).map(d=>d.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},u=!I,h=0;for(let d=0;d(s&&(c.route=!0),l[m])}),params:new Proxy(a,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:ue(e,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const A=new URL(b,e);return s&&d(A.href),A.origin===e.origin&&(b=A.href.slice(e.origin.length)),Q?ye(b,A.href,m):_e(b,m)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,_)??null}return{node:f,loader:t,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=f.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Nt(t,n,e,a,r,o){if(vt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&n||r.url&&e)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(Bt.some(s=>s(new URL(i))))return!0;return!1}function kt(t,n){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?n??null:null}function He(t,n){if(!t)return new Set(n.searchParams.keys());const e=new Set([...t.searchParams.keys(),...n.searchParams.keys()]);for(const a of e){const r=t.searchParams.getAll(a),o=n.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&e.delete(a)}return e}function Ot({error:t,url:n,route:e,params:a}){return{type:"loaded",state:{error:t,url:n,route:e,params:a,branch:[]},props:{page:I,constructors:[]}}}async function Zt({id:t,invalidating:n,url:e,params:a,route:r,preload:o}){if((R==null?void 0:R.id)===t)return M.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=r,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let u=null;const h=y.url?t!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,d=He(y.url,e);let _=!1;const l=f.map((p,v)=>{var T;const E=y.branch[v],k=!!(p!=null&&p[0])&&((E==null?void 0:E.loader)!==p[1]||Nt(_,g,h,d,(T=E.server)==null?void 0:T.uses,a));return k&&(_=!0),k});if(l.some(Boolean)){try{u=await ne(e,l)}catch(p){const v=await $(p,{url:e,params:a,route:{id:t}});return M.has(o)?Ot({error:v,url:e,params:a,route:r}):ot({status:z(p),error:v,url:e,route:r})}if(u.type==="redirect")return u}const m=u==null?void 0:u.nodes;let b=!1;const A=f.map(async(p,v)=>{var st;if(!p)return;const E=y.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(E==null?void 0:E.loader)&&!Nt(b,g,h,d,(st=E.universal)==null?void 0:st.uses,a))return E;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return Et({loader:p[1],url:e,params:a,route:r,parent:async()=>{var Rt;const At={};for(let it=0;it{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:kt(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await et({url:e,params:r,branch:[s,c],status:t,error:n,route:null})}function St(t,n){if(!t||nt(t,P))return;let e;try{e=V.hooks.reroute({url:new URL(t)})??t.pathname}catch{return}const a=Qt(e);for(const r of rt){const o=r.exec(a);if(o)return{id:t.pathname+t.search,invalidating:n,route:r,params:le(o),url:t}}}function Qt(t){return ce(t.slice(P.length)||"/")}function te({url:t,type:n,intent:e,delta:a}){let r=!1;const o=re(y,e,t,n);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return B||Kt.forEach(s=>s(i)),r?null:o}async function Y({type:t,url:n,popped:e,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=xt,block:u=xt}){const h=St(n,!1),g=te({url:n,type:t,delta:e==null?void 0:e.delta,intent:h});if(!g){u();return}const d=S,_=L;f(),B=!0,Q&&U.navigating.set(g.navigation),tt=c;let l=h&&await Zt(h);if(!l){if(nt(n,P))return await C(n);l=await ee(n,{id:null},await $(new _t(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,tt!==c)return g.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await ot({status:500,error:await $(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return zt(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await U.updated.check()&&await C(n);if(Me(),yt(d),Jt(_),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=e?e.state:i,!e){const w=o?0:1,p={[D]:S+=w,[q]:L+=w,[Vt]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Fe(S,L)}if(R=null,l.props.page.state=i,Q){y=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Ge.map(p=>p(g.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){j=j.filter(v=>!w.includes(v))};w.push(p),j.push(...w)}bt.$set(l.props),Yt=!0}else Xt(l,ht,!1);const{activeElement:m}=document;await oe();const b=e?e.scroll:r?mt():null;if(Ut){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==m&&document.activeElement!==document.body;!a&&!A&&ze(),Ut=!0,l.props.page&&(I=l.props.page),B=!1,t==="popstate"&&Wt(L),g.fulfil(void 0),j.forEach(w=>w(g.navigation)),U.navigating.set(null)}async function ee(t,n,e,a){return t.origin===K&&t.pathname===location.pathname&&!wt?await ot({status:a,error:e,url:t,route:n}):await C(t)}function Ke(){let t;x.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(t),t=setTimeout(()=>{a(i,2)},20)});function n(o){a(o.composedPath()[0],1)}x.addEventListener("mousedown",n),x.addEventListener("touchstart",n,{passive:!0});const e=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ft(i.target.href),e.unobserve(i.target))},{threshold:0});function a(o,i){const s=Mt(o,x);if(!s)return;const{url:c,external:f,download:u}=ut(s,P);if(f||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=St(c,!1);g&&qe(g)}else i<=h.preload_code&&ft(c.pathname)}function r(){e.disconnect();for(const o of x.querySelectorAll("a")){const{url:i,external:s,download:c}=ut(o,P);if(s||c)continue;const f=W(o);f.reload||(f.preload_code===J.viewport&&e.observe(o),f.preload_code===J.eager&&ft(i.pathname))}}j.push(r),r()}function $(t,n){if(t instanceof at)return t.body;const e=z(t),a=Ve(t);return V.hooks.handleError({error:t,event:n,status:e,message:a})??{message:a}}function Ye(t,n={}){return t=Ft(t),t.origin!==K?Promise.reject(new Error("goto: invalid URL")):zt(t,n,0)}function Je(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{let a=!1;if(Tt(),!B){const r=re(y,void 0,null,"leave"),o={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Kt.forEach(i=>i(o))}a?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Tt()}),(n=navigator.connection)!=null&&n.saveData||Ke(),x.addEventListener("click",e=>{var g;if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const a=Mt(e.composedPath()[0],x);if(!a)return;const{url:r,external:o,target:i,download:s}=ut(a,P);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;if(o||c.reload){te({url:r,type:"link"})?B=!0:e.preventDefault();return}const[u,h]=r.href.split("#");if(h!==void 0&&u===ct(location)){const[,d]=y.url.href.split("#");if(d===h){e.preventDefault(),h===""||h==="top"&&a.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=a.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(F=!0,yt(S),t(r),!c.replace_state)return;F=!1}e.preventDefault(),Y({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),x.addEventListener("submit",e=>{if(e.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(e.target),r=e.submitter;if(((r==null?void 0:r.formMethod)||a.method)!=="get")return;const i=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(nt(i,P))return;const s=e.target,c=W(s);if(c.reload)return;e.preventDefault(),e.stopPropagation();const f=new FormData(s),u=r==null?void 0:r.getAttribute("name");u&&f.append(u,(r==null?void 0:r.getAttribute("value"))??""),i.search=new URLSearchParams(f).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async e=>{var a;if((a=e.state)!=null&&a[D]){const r=e.state[D];if(tt={},r===S)return;const o=N[r],i=e.state[Vt]??{},s=new URL(e.state[Re]??location.href),c=e.state[q],f=ct(location)===ct(y.url);if(c===L&&(Yt||f)){t(s),N[S]=mt(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},bt.$set({page:I})),S=r;return}const h=r-S;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{S=r,L=c},block:()=>{history.go(-h)},nav_token:tt})}else if(!F){const r=new URL(location.href);t(r)}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[D]:++S,[q]:L},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&U.navigating.set(null)});function t(e){y.url=e,U.page.set({...I,url:e}),U.page.notify()}}async function We(t,{status:n=200,error:e,node_ids:a,params:r,route:o,data:i,form:s}){wt=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=St(c,!1)||{});let f;try{const u=a.map(async(d,_)=>{const l=i[_];return l!=null&&l.uses&&(l.uses=ae(l.uses)),Et({loader:V.nodes[d],url:c,params:r,route:o,parent:async()=>{const m={};for(let b=0;b<_;b+=1)Object.assign(m,(await u[b]).data);return m},server_data_node:kt(l)})}),h=await Promise.all(u),g=rt.find(({id:d})=>d===o.id);if(g){const d=g.layouts;for(let _=0;_o?"1":"0").join(""));const a=await jt(e.href);if(!a.ok){let o;throw(r=a.headers.get("content-type"))!=null&&r.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new at(a.status,o)}return new Promise(async o=>{var h;const i=new Map,s=a.body.getReader(),c=new TextDecoder;function f(g){return Oe(g,{Promise:d=>new Promise((_,l)=>{i.set(d,{fulfil:_,reject:l})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const _=u.indexOf(` `);if(_===-1)break;const l=JSON.parse(u.slice(0,_));if(u=u.slice(_+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=ae(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:A}=l,w=i.get(m);i.delete(m),A?w.reject(f(A)):w.fulfil(f(b))}}}})}function ae(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}function ze(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=document.body,e=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),e!==null?n.setAttribute("tabindex",e):n.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o{if(a.rangeCount===r.length){for(let o=0;o{r=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:e&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:e},willUnload:!n,type:a,complete:i},fulfil:r,reject:o}}export{tn as a,U as s}; diff --git a/docs/_app/immutable/chunks/paths.DqO9xUBo.js b/docs/_app/immutable/chunks/paths.DqO9xUBo.js new file mode 100644 index 0000000..59f121e --- /dev/null +++ b/docs/_app/immutable/chunks/paths.DqO9xUBo.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_12xyjpx)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_12xyjpx)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/docs/_app/immutable/chunks/paths.o50uAdmR.js b/docs/_app/immutable/chunks/paths.o50uAdmR.js deleted file mode 100644 index 9b43485..0000000 --- a/docs/_app/immutable/chunks/paths.o50uAdmR.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_712ocx)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_712ocx)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/docs/_app/immutable/entry/app.DPMskBam.js b/docs/_app/immutable/entry/app.CM_Zg40W.js similarity index 93% rename from docs/_app/immutable/entry/app.DPMskBam.js rename to docs/_app/immutable/entry/app.CM_Zg40W.js index e548854..c7360ee 100644 --- a/docs/_app/immutable/entry/app.DPMskBam.js +++ b/docs/_app/immutable/entry/app.CM_Zg40W.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["../nodes/0.HDgF3lCR.js","../chunks/scheduler.CnY5WKvn.js","../chunks/index.x_vOF7Lr.js","../assets/0.Br1xEDlG.css","../nodes/1.Dh29djuI.js","../chunks/entry.CZFJZrZM.js","../chunks/index.DAinFavA.js","../chunks/paths.o50uAdmR.js","../nodes/2.DPMYfibv.js","../chunks/each.D6YF6ztN.js","../chunks/transform.W7TN51b0.js","../chunks/Icon.DMVxx1jf.js","../assets/2.CyJQsSr_.css","../nodes/3.D4-9gE65.js","../assets/3.CsgfhULn.css","../nodes/4.DVi2n1kX.js","../assets/4.MWHyxg-Z.css","../nodes/5.BS93_b3Y.js","../assets/5.BMf-RGIR.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{s as N,j as B,p,l as U,i as k,d as h,q as j,r as W,e as z,c as F,a as G,m as I,u as d,t as H,b as J,g as K,v as O,w as y,x as Q}from"../chunks/scheduler.CnY5WKvn.js";import{S as X,i as Y,b as g,e as A,t as w,g as D,c as R,a as S,m as P,d as L}from"../chunks/index.x_vOF7Lr.js";const Z="modulepreload",M=function(a,e){return new URL(a,e).href},T={},E=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const u=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));s=Promise.all(n.map(o=>{if(o=M(o,i),o in T)return;T[o]=!0;const f=o.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(!!i)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===o&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Z,f||(_.as="script",_.crossOrigin=""),_.href=o,r&&_.setAttribute("nonce",r),document.head.appendChild(_),f)return new Promise((b,v)=>{_.addEventListener("load",b),_.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}return s.then(()=>e()).catch(u=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=u,window.dispatchEvent(t),!t.defaultPrevented)throw u})},re={};function $(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=y(s,u(a)),a[12](e)),{c(){e&&R(e.$$.fragment),n=p()},l(t){e&&S(e.$$.fragment,t),n=p()},m(t,r){e&&P(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const o=e;g(o.$$.fragment,1,0,()=>{L(o,1)}),A()}s?(e=y(s,u(t)),t[12](e),R(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[12](null),e&&L(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=y(s,u(a)),a[11](e)),{c(){e&&R(e.$$.fragment),n=p()},l(t){e&&S(e.$$.fragment,t),n=p()},m(t,r){e&&P(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const o=e;g(o.$$.fragment,1,0,()=>{L(o,1)}),A()}s?(e=y(s,u(t)),t[11](e),R(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&8215&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[11](null),e&&L(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function u(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=y(s,u(a)),a[10](e)),{c(){e&&R(e.$$.fragment),n=p()},l(t){e&&S(e.$$.fragment,t),n=p()},m(t,r){e&&P(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){D();const o=e;g(o.$$.fragment,1,0,()=>{L(o,1)}),A()}s?(e=y(s,u(t)),t[10](e),R(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const o={};r&16&&(o.data=t[4]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[10](null),e&&L(e,t)}}}function V(a){let e,n=a[6]&&q(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(i){e=F(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){k(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=q(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&h(e),n&&n.d()}}}function q(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,i){k(n,e,i)},p(n,i){i&128&&K(e,n[7])},d(n){n&&h(e)}}}function te(a){let e,n,i,s,u;const t=[x,$],r=[];function o(l,m){return l[1][1]?0:1}e=o(a),n=r[e]=t[e](a);let f=a[5]&&V(a);return{c(){n.c(),i=B(),f&&f.c(),s=p()},l(l){n.l(l),i=U(l),f&&f.l(l),s=p()},m(l,m){r[e].m(l,m),k(l,i,m),f&&f.m(l,m),k(l,s,m),u=!0},p(l,[m]){let _=e;e=o(l),e===_?r[e].p(l,m):(D(),g(r[_],1,1,()=>{r[_]=null}),A(),n=r[e],n?n.p(l,m):(n=r[e]=t[e](l),n.c()),w(n,1),n.m(i.parentNode,i)),l[5]?f?f.p(l,m):(f=V(l),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(l){u||(w(n),u=!0)},o(l){g(n),u=!1},d(l){l&&(h(i),h(s)),r[e].d(l),f&&f.d(l)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:u}=e,{components:t=[]}=e,{form:r}=e,{data_0:o=null}=e,{data_1:f=null}=e;j(i.page.notify);let l=!1,m=!1,_=null;W(()=>{const c=i.page.subscribe(()=>{l&&(n(6,m=!0),Q().then(()=>{n(7,_=document.title||"untitled page")}))});return n(5,l=!0),c});function b(c){O[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function v(c){O[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function C(c){O[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,o=c.data_0),"data_1"in c&&n(4,f=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,u,r,o,f,l,m,_,i,s,b,v,C]}class oe extends X{constructor(e){super(),Y(this,e,ne,te,N,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>E(()=>import("../nodes/0.HDgF3lCR.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>E(()=>import("../nodes/1.Dh29djuI.js"),__vite__mapDeps([4,1,2,5,6,7]),import.meta.url),()=>E(()=>import("../nodes/2.DPMYfibv.js"),__vite__mapDeps([8,1,2,9,10,11,6,12]),import.meta.url),()=>E(()=>import("../nodes/3.D4-9gE65.js"),__vite__mapDeps([13,1,2,14]),import.meta.url),()=>E(()=>import("../nodes/4.DVi2n1kX.js"),__vite__mapDeps([15,1,2,9,10,7,16]),import.meta.url),()=>E(()=>import("../nodes/5.BS93_b3Y.js"),__vite__mapDeps([17,1,2,9,6,11,18]),import.meta.url)],le=[],fe={"/":[-3],"/demo/elements":[3],"/demo/fonts":[4],"/demo/ig-story":[5]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; +const __vite__fileDeps=["../nodes/0.HDgF3lCR.js","../chunks/scheduler.CnY5WKvn.js","../chunks/index.x_vOF7Lr.js","../assets/0.Br1xEDlG.css","../nodes/1.BALe8-jf.js","../chunks/entry.fPoJWDfN.js","../chunks/index.DAinFavA.js","../chunks/paths.DqO9xUBo.js","../nodes/2.R62kWUKr.js","../chunks/each.D6YF6ztN.js","../chunks/transform.W7TN51b0.js","../chunks/Icon.DMVxx1jf.js","../assets/2.CyJQsSr_.css","../nodes/3.D4-9gE65.js","../assets/3.CsgfhULn.css","../nodes/4.BrBkd9jk.js","../assets/4.MWHyxg-Z.css","../nodes/5.BS93_b3Y.js","../assets/5.BMf-RGIR.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{s as N,j as B,p,l as U,i as k,d as h,q as j,r as W,e as z,c as F,a as G,m as I,u as d,t as H,b as J,g as K,v as O,w as y,x as Q}from"../chunks/scheduler.CnY5WKvn.js";import{S as X,i as Y,b as g,e as A,t as w,g as D,c as R,a as S,m as P,d as L}from"../chunks/index.x_vOF7Lr.js";const Z="modulepreload",M=function(a,e){return new URL(a,e).href},T={},E=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const u=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),r=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));s=Promise.all(n.map(o=>{if(o=M(o,i),o in T)return;T[o]=!0;const f=o.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(!!i)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===o&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Z,f||(_.as="script",_.crossOrigin=""),_.href=o,r&&_.setAttribute("nonce",r),document.head.appendChild(_),f)return new Promise((b,v)=>{_.addEventListener("load",b),_.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${o}`)))})}))}return s.then(()=>e()).catch(u=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=u,window.dispatchEvent(t),!t.defaultPrevented)throw u})},re={};function $(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=y(s,u(a)),a[12](e)),{c(){e&&R(e.$$.fragment),n=p()},l(t){e&&S(e.$$.fragment,t),n=p()},m(t,r){e&&P(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const o=e;g(o.$$.fragment,1,0,()=>{L(o,1)}),A()}s?(e=y(s,u(t)),t[12](e),R(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[12](null),e&&L(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function u(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=y(s,u(a)),a[11](e)),{c(){e&&R(e.$$.fragment),n=p()},l(t){e&&S(e.$$.fragment,t),n=p()},m(t,r){e&&P(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){D();const o=e;g(o.$$.fragment,1,0,()=>{L(o,1)}),A()}s?(e=y(s,u(t)),t[11](e),R(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const o={};r&8&&(o.data=t[3]),r&8215&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[11](null),e&&L(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function u(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=y(s,u(a)),a[10](e)),{c(){e&&R(e.$$.fragment),n=p()},l(t){e&&S(e.$$.fragment,t),n=p()},m(t,r){e&&P(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){D();const o=e;g(o.$$.fragment,1,0,()=>{L(o,1)}),A()}s?(e=y(s,u(t)),t[10](e),R(e.$$.fragment),w(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const o={};r&16&&(o.data=t[4]),r&4&&(o.form=t[2]),e.$set(o)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[10](null),e&&L(e,t)}}}function V(a){let e,n=a[6]&&q(a);return{c(){e=z("div"),n&&n.c(),this.h()},l(i){e=F(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=G(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){k(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=q(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&h(e),n&&n.d()}}}function q(a){let e;return{c(){e=H(a[7])},l(n){e=J(n,a[7])},m(n,i){k(n,e,i)},p(n,i){i&128&&K(e,n[7])},d(n){n&&h(e)}}}function te(a){let e,n,i,s,u;const t=[x,$],r=[];function o(l,m){return l[1][1]?0:1}e=o(a),n=r[e]=t[e](a);let f=a[5]&&V(a);return{c(){n.c(),i=B(),f&&f.c(),s=p()},l(l){n.l(l),i=U(l),f&&f.l(l),s=p()},m(l,m){r[e].m(l,m),k(l,i,m),f&&f.m(l,m),k(l,s,m),u=!0},p(l,[m]){let _=e;e=o(l),e===_?r[e].p(l,m):(D(),g(r[_],1,1,()=>{r[_]=null}),A(),n=r[e],n?n.p(l,m):(n=r[e]=t[e](l),n.c()),w(n,1),n.m(i.parentNode,i)),l[5]?f?f.p(l,m):(f=V(l),f.c(),f.m(s.parentNode,s)):f&&(f.d(1),f=null)},i(l){u||(w(n),u=!0)},o(l){g(n),u=!1},d(l){l&&(h(i),h(s)),r[e].d(l),f&&f.d(l)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:u}=e,{components:t=[]}=e,{form:r}=e,{data_0:o=null}=e,{data_1:f=null}=e;j(i.page.notify);let l=!1,m=!1,_=null;W(()=>{const c=i.page.subscribe(()=>{l&&(n(6,m=!0),Q().then(()=>{n(7,_=document.title||"untitled page")}))});return n(5,l=!0),c});function b(c){O[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function v(c){O[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function C(c){O[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,u=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,o=c.data_0),"data_1"in c&&n(4,f=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,u,r,o,f,l,m,_,i,s,b,v,C]}class oe extends X{constructor(e){super(),Y(this,e,ne,te,N,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>E(()=>import("../nodes/0.HDgF3lCR.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>E(()=>import("../nodes/1.BALe8-jf.js"),__vite__mapDeps([4,1,2,5,6,7]),import.meta.url),()=>E(()=>import("../nodes/2.R62kWUKr.js"),__vite__mapDeps([8,1,2,9,10,11,6,12]),import.meta.url),()=>E(()=>import("../nodes/3.D4-9gE65.js"),__vite__mapDeps([13,1,2,14]),import.meta.url),()=>E(()=>import("../nodes/4.BrBkd9jk.js"),__vite__mapDeps([15,1,2,9,10,7,16]),import.meta.url),()=>E(()=>import("../nodes/5.BS93_b3Y.js"),__vite__mapDeps([17,1,2,9,6,11,18]),import.meta.url)],le=[],fe={"/":[-3],"/demo/elements":[3],"/demo/fonts":[4],"/demo/ig-story":[5]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; diff --git a/docs/_app/immutable/entry/start.1u4Iy3G6.js b/docs/_app/immutable/entry/start.1u4Iy3G6.js deleted file mode 100644 index 53d817e..0000000 --- a/docs/_app/immutable/entry/start.1u4Iy3G6.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.CZFJZrZM.js";export{t as start}; diff --git a/docs/_app/immutable/entry/start.BJ8kvQNB.js b/docs/_app/immutable/entry/start.BJ8kvQNB.js new file mode 100644 index 0000000..6086686 --- /dev/null +++ b/docs/_app/immutable/entry/start.BJ8kvQNB.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.fPoJWDfN.js";export{t as start}; diff --git a/docs/_app/immutable/nodes/1.Dh29djuI.js b/docs/_app/immutable/nodes/1.BALe8-jf.js similarity index 92% rename from docs/_app/immutable/nodes/1.Dh29djuI.js rename to docs/_app/immutable/nodes/1.BALe8-jf.js index 86308db..f1c2544 100644 --- a/docs/_app/immutable/nodes/1.Dh29djuI.js +++ b/docs/_app/immutable/nodes/1.BALe8-jf.js @@ -1 +1 @@ -import{s as d,e as f,t as u,c as _,a as h,b as p,d as m,i as v,f as l,g as b,n as g,h as $}from"../chunks/scheduler.CnY5WKvn.js";import{S as E,i as S}from"../chunks/index.x_vOF7Lr.js";import{s as x}from"../chunks/entry.CZFJZrZM.js";const q=()=>{const t=x;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},y={subscribe(t){return q().page.subscribe(t)}};function C(t){let e,r=t[0].status+"",n,o,i=t[0].error.message+"",c;return{c(){e=f("h1"),n=u(r),o=u(": "),c=u(i)},l(a){e=_(a,"H1",{});var s=h(e);n=p(s,r),o=p(s,": "),c=p(s,i),s.forEach(m)},m(a,s){v(a,e,s),l(e,n),l(e,o),l(e,c)},p(a,[s]){s&1&&r!==(r=a[0].status+"")&&b(n,r),s&1&&i!==(i=a[0].error.message+"")&&b(c,i)},i:g,o:g,d(a){a&&m(e)}}}function H(t,e,r){let n;return $(t,y,o=>r(0,n=o)),[n]}let z=class extends E{constructor(e){super(),S(this,e,H,C,d,{})}};export{z as component}; +import{s as d,e as f,t as u,c as _,a as h,b as p,d as m,i as v,f as l,g as b,n as g,h as $}from"../chunks/scheduler.CnY5WKvn.js";import{S as E,i as S}from"../chunks/index.x_vOF7Lr.js";import{s as x}from"../chunks/entry.fPoJWDfN.js";const q=()=>{const t=x;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},y={subscribe(t){return q().page.subscribe(t)}};function C(t){let e,r=t[0].status+"",n,o,i=t[0].error.message+"",c;return{c(){e=f("h1"),n=u(r),o=u(": "),c=u(i)},l(a){e=_(a,"H1",{});var s=h(e);n=p(s,r),o=p(s,": "),c=p(s,i),s.forEach(m)},m(a,s){v(a,e,s),l(e,n),l(e,o),l(e,c)},p(a,[s]){s&1&&r!==(r=a[0].status+"")&&b(n,r),s&1&&i!==(i=a[0].error.message+"")&&b(c,i)},i:g,o:g,d(a){a&&m(e)}}}function H(t,e,r){let n;return $(t,y,o=>r(0,n=o)),[n]}let z=class extends E{constructor(e){super(),S(this,e,H,C,d,{})}};export{z as component}; diff --git a/docs/_app/immutable/nodes/2.DPMYfibv.js b/docs/_app/immutable/nodes/2.DPMYfibv.js deleted file mode 100644 index 1f2500f..0000000 --- a/docs/_app/immutable/nodes/2.DPMYfibv.js +++ /dev/null @@ -1 +0,0 @@ -import{s as z,e as p,p as te,Z as He,c as v,d,m as u,f as h,n as M,U as ae,i as S,k as J,j as H,a as N,l as O,t as W,b as K,g as ce,w as pe,N as ne,M as se,D as Oe,a3 as Pe,_ as xe,$ as Fe,R as re,S as le,T as ie,B as Re,y as ze,h as ue,a4 as me,r as De,a8 as fe,x as Be,u as de,O as qe,P as Le,W as ve,v as Se,a6 as Ve,a1 as $e}from"../chunks/scheduler.CnY5WKvn.js";import{S as B,i as q,t as I,g as Ne,e as je,b as A,c as x,a as L,m as F,d as R,f as We}from"../chunks/index.x_vOF7Lr.js";import{e as X}from"../chunks/each.D6YF6ztN.js";import"../chunks/transform.W7TN51b0.js";import{g as he,a as ge,d as Ke,I as Ue}from"../chunks/Icon.DMVxx1jf.js";import{w as oe}from"../chunks/index.DAinFavA.js";function be(l,e,t){const o=l.slice();return o[5]=e[t],o}function we(l){let e,t;return{c(){e=p("link"),this.h()},l(o){e=v(o,"LINK",{rel:!0,href:!0,as:!0,type:!0,crossorigin:!0}),this.h()},h(){u(e,"rel","preload"),u(e,"href",t=l[5]),u(e,"as","font"),u(e,"type","font/woff2"),u(e,"crossorigin","")},m(o,s){S(o,e,s)},p(o,s){s&16&&t!==(t=o[5])&&u(e,"href",t)},d(o){o&&d(e)}}}function Ge(l){let e,t,o,s,n,r,i,c,a,m,g,$,_,y,k,T,w,D,f,E,V,Y,Q,U,ee,G;document.title=e=l[0];let Z=X(l[4]),P=[];for(let C=0;C{"title"in c&&t(0,o=c.title),"description"in c&&t(1,s=c.description),"url"in c&&t(2,n=c.url),"keywords"in c&&t(3,r=c.keywords),"preloadFont"in c&&t(4,i=c.preloadFont)},[o,s,n,r,i]}class Je extends B{constructor(e){super(),q(this,e,Ze,Ge,z,{title:0,description:1,url:2,keywords:3,preloadFont:4})}}function Qe(l){let e,t='

Link

Default element styles demo

Pudding-hosted font previews

';return{c(){e=p("section"),e.innerHTML=t,this.h()},l(o){e=v(o,"SECTION",{id:!0,"data-svelte-h":!0}),J(e)!=="svelte-1edigqu"&&(e.innerHTML=t),this.h()},h(){u(e,"id","demo-link")},m(o,s){S(o,e,s)},p:M,i:M,o:M,d(o){o&&d(e)}}}class Xe extends B{constructor(e){super(),q(this,e,null,Qe,z,{})}}function Ye(l){let e,t='

Image

img tag

cat

img tag absolute

cat

background image

';return{c(){e=p("section"),e.innerHTML=t,this.h()},l(o){e=v(o,"SECTION",{id:!0,"data-svelte-h":!0}),J(e)!=="svelte-ogjijm"&&(e.innerHTML=t),this.h()},h(){u(e,"id","demo-image")},m(o,s){S(o,e,s)},p:M,i:M,o:M,d(o){o&&d(e)}}}class et extends B{constructor(e){super(),q(this,e,null,Ye,z,{})}}function Ee(l,e,t){const o=l.slice();return o[1]=e[t].tag,o[2]=e[t].text,o}function tt(l){let e,t=l[2]+"",o,s;return{c(){e=p(l[1]),o=W(t),s=H()},l(n){e=v(n,(l[1]||"null").toUpperCase(),{});var r=N(e);o=K(r,t),s=O(r),r.forEach(d)},m(n,r){S(n,e,r),h(e,o),h(e,s)},p:M,d(n){n&&d(e)}}}function Te(l){let e=l[1]&&tt(l);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o)},p(t,o){t[1]&&e.p(t,o)},d(t){e&&e.d(t)}}}function nt(l){let e,t,o="Dynamic Svelte Element",s,n=X(l[0]),r=[];for(let i=0;i{"number"in s&&t(0,o=s.number)},[o]}class it extends B{constructor(e){super(),q(this,e,lt,rt,z,{number:0})}}function at(l){let e,t,o,s;return{c(){e=p("p"),t=W("I am component B and my name is "),o=W(l[0]),s=W(".")},l(n){e=v(n,"P",{});var r=N(e);t=K(r,"I am component B and my name is "),o=K(r,l[0]),s=K(r,"."),r.forEach(d)},m(n,r){S(n,e,r),h(e,t),h(e,o),h(e,s)},p(n,[r]){r&1&&ce(o,n[0])},i:M,o:M,d(n){n&&d(e)}}}function ct(l,e,t){let{name:o}=e;return l.$$set=s=>{"name"in s&&t(0,o=s.name)},[o]}class ut extends B{constructor(e){super(),q(this,e,ct,at,z,{name:0})}}function ye(l,e,t){const o=l.slice();return o[2]=e[t],o}function ke(l){let e,t,o;const s=[l[2]];var n=l[0][l[2].component];function r(i,c){let a={};for(let m=0;m{R(a,1)}),je()}n?(e=pe(n,r(i,c)),x(e.$$.fragment),I(e.$$.fragment,1),F(e,t.parentNode,t)):e=null}else if(n){const a=c&2?he(s,[ge(i[2])]):{};e.$set(a)}},i(i){o||(e&&I(e.$$.fragment,i),o=!0)},o(i){e&&A(e.$$.fragment,i),o=!1},d(i){i&&d(t),e&&R(e,i)}}}function ft(l){let e,t,o="Dynamic Svelte Component",s,n,r=X(l[1]),i=[];for(let a=0;aA(i[a],1,1,()=>{i[a]=null});return{c(){e=p("section"),t=p("h2"),t.textContent=o,s=H();for(let a=0;a{const c=o===void 0;for(const a of i){const{width:m,height:g}=a.contentRect,$=e.exclude!=="width"&&m!==o,_=e.exclude!=="height"&&g!==s;($||_)&&(o=m,s=g,c||l.dispatchEvent(new CustomEvent("resize")))}},r=()=>{t&&t.disconnect();const i=e.debounce?Ke(n,e.debounce):n;t=new ResizeObserver(i),t.observe(l)};return r(),{update(i){r()},destroy(){t&&t.disconnect()}}}const gt=l=>({}),Ce=l=>({});function _t(l){let e,t,o,s,n,r,i,c;const a=l[10].default,m=se(a,l,l[9],null),g=l[10].figcaption,$=se(g,l,l[9],Ce);return{c(){e=p("figure"),t=p("div"),m&&m.c(),n=H(),$&&$.c(),this.h()},l(_){e=v(_,"FIGURE",{class:!0});var y=N(e);t=v(y,"DIV",{class:!0});var k=N(t);m&&m.l(k),k.forEach(d),n=O(y),$&&$.l(y),y.forEach(d),this.h()},h(){u(t,"class","figure-inner svelte-yftblm"),Oe(()=>l[11].call(t)),u(e,"class","svelte-yftblm")},m(_,y){S(_,e,y),h(e,t),m&&m.m(t,null),o=Pe(t,l[11].bind(t)),h(e,n),$&&$.m(e,null),r=!0,i||(c=[xe(s=ht.call(null,t,{exclude:l[1],debounce:l[0]})),Fe(t,"resize",l[7])],i=!0)},p(_,[y]){m&&m.p&&(!r||y&512)&&re(m,a,_,_[9],r?ie(a,_[9],y,null):le(_[9]),null),s&&Re(s.update)&&y&3&&s.update.call(null,{exclude:_[1],debounce:_[0]}),$&&$.p&&(!r||y&512)&&re($,g,_,_[9],r?ie(g,_[9],y,gt):le(_[9]),Ce)},i(_){r||(I(m,_),I($,_),r=!0)},o(_){A(m,_),A($,_),r=!1},d(_){_&&d(e),m&&m.d(_),o(),$&&$.d(_),i=!1,ze(c)}}}function pt(l,e,t){let o,s,n,{$$slots:r={},$$scope:i}=e,{debounce:c=250}=e,{exclude:a="height"}=e,{custom:m={}}=e;const g=oe(0);ue(l,g,f=>t(14,n=f));const $=oe(0);ue(l,$,f=>t(13,s=f));const _=oe(1);ue(l,_,f=>t(12,o=f));const y=oe({...m});me("Figure",{width:g,height:$,dpr:_,custom:y});let k,T;async function w(){await Be(),fe(g,n=k,n),fe($,s=T,s)}De(()=>{w()});function D(){k=this.clientWidth,T=this.clientHeight,t(2,k),t(3,T)}return l.$$set=f=>{"debounce"in f&&t(0,c=f.debounce),"exclude"in f&&t(1,a=f.exclude),"custom"in f&&t(8,m=f.custom),"$$scope"in f&&t(9,i=f.$$scope)},fe(_,o=Math.min(2,window.devicePixelRatio||1),o),[c,a,k,T,g,$,_,w,m,i,r,D]}class vt extends B{constructor(e){super(),q(this,e,pt,_t,z,{debounce:0,exclude:1,custom:8})}}function $t(l){let e;return{c(){e=qe("svg"),this.h()},l(t){e=Le(t,"svg",{style:!0}),N(e).forEach(d),this.h()},h(){de(e,"background","var(--color-mark)")},m(t,o){S(t,e,o)},p:M,d(t){t&&d(e)}}}function bt(l){let e,t="Figure caption";return{c(){e=p("figcaption"),e.textContent=t,this.h()},l(o){e=v(o,"FIGCAPTION",{slot:!0,"data-svelte-h":!0}),J(e)!=="svelte-1fkipux"&&(e.textContent=t),this.h()},h(){u(e,"slot","figcaption")},m(o,s){S(o,e,s)},p:M,d(o){o&&d(e)}}}function wt(l){let e,t,o="Figure",s,n,r,i;return n=new vt({props:{$$slots:{figcaption:[bt],default:[$t]},$$scope:{ctx:l}}}),{c(){e=p("section"),t=p("h2"),t.textContent=o,s=H(),r=p("div"),x(n.$$.fragment),this.h()},l(c){e=v(c,"SECTION",{id:!0});var a=N(e);t=v(a,"H2",{"data-svelte-h":!0}),J(t)!=="svelte-4e03p6"&&(t.textContent=o),s=O(a),r=v(a,"DIV",{style:!0});var m=N(r);L(n.$$.fragment,m),a.forEach(d),this.h()},h(){de(r,"display","contents"),de(r,"--aspect-ratio","1"),u(e,"id","demo-figure")},m(c,a){S(c,e,a),h(e,t),h(e,s),h(e,r),F(n,r,null),i=!0},p(c,[a]){const m={};a&1&&(m.$$scope={dirty:a,ctx:c}),n.$set(m)},i(c){i||(I(n.$$.fragment,c),i=!0)},o(c){A(n.$$.fragment,c),i=!1},d(c){c&&d(e),R(n)}}}class Et extends B{constructor(e){super(),q(this,e,null,wt,z,{})}}function Tt(l){let e;const t=l[2].default,o=se(t,l,l[3],null);return{c(){o&&o.c()},l(s){o&&o.l(s)},m(s,n){o&&o.m(s,n),e=!0},p(s,n){o&&o.p&&(!e||n&8)&&re(o,t,s,s[3],e?ie(t,s[3],n,null):le(s[3]),null)},i(s){e||(I(o,s),e=!0)},o(s){A(o,s),e=!1},d(s){o&&o.d(s)}}}function yt(l){let e,t;const o=[{name:"dollar-sign"},l[1],{iconNode:l[0]}];let s={$$slots:{default:[Tt]},$$scope:{ctx:l}};for(let n=0;n{t(1,e=ne(ne({},e),ve(r))),"$$scope"in r&&t(3,s=r.$$scope)},e=ve(e),[n,e,o,s]}class Ct extends B{constructor(e){super(),q(this,e,kt,yt,z,{})}}function It(l){let e,t,o,s,n,r;return n=new Ct({props:{color:"currentColor"}}),{c(){e=p("a"),t=W(l[0]),o=H(),s=p("span"),x(n.$$.fragment),this.h()},l(i){e=v(i,"A",{class:!0,href:!0,target:!0,rel:!0,role:!0});var c=N(e);t=K(c,l[0]),o=O(c),s=v(c,"SPAN",{class:!0});var a=N(s);L(n.$$.fragment,a),a.forEach(d),c.forEach(d),this.h()},h(){u(s,"class","svelte-159gd8r"),u(e,"class","tip-button svelte-159gd8r"),u(e,"href",l[1]),u(e,"target","_blank"),u(e,"rel","noreferrer"),u(e,"role","button")},m(i,c){S(i,e,c),h(e,t),h(e,o),h(e,s),F(n,s,null),r=!0},p(i,[c]){(!r||c&1)&&ce(t,i[0]),(!r||c&2)&&u(e,"href",i[1])},i(i){r||(I(n.$$.fragment,i),r=!0)},o(i){A(n.$$.fragment,i),r=!1},d(i){i&&d(e),R(n)}}}function At(l,e,t){let{text:o="Tip"}=e,{href:s}=e;return l.$$set=n=>{"text"in n&&t(0,o=n.text),"href"in n&&t(1,s=n.href)},[o,s]}class Mt extends B{constructor(e){super(),q(this,e,At,It,z,{text:0,href:1})}}function Dt(l){let e,t,o="Tip",s,n,r;return n=new Mt({props:{href:"#"}}),{c(){e=p("section"),t=p("h2"),t.textContent=o,s=H(),x(n.$$.fragment),this.h()},l(i){e=v(i,"SECTION",{id:!0});var c=N(e);t=v(c,"H2",{"data-svelte-h":!0}),J(t)!=="svelte-1fcbwg5"&&(t.textContent=o),s=O(c),L(n.$$.fragment,c),c.forEach(d),this.h()},h(){u(e,"id","demo-tip")},m(i,c){S(i,e,c),h(e,t),h(e,s),F(n,e,null),r=!0},p:M,i(i){r||(I(n.$$.fragment,i),r=!0)},o(i){A(n.$$.fragment,i),r=!1},d(i){i&&d(e),R(n)}}}class St extends B{constructor(e){super(),q(this,e,null,Dt,z,{})}}function Nt(l){let e,t;const o=l[7].default,s=se(o,l,l[6],null);return{c(){e=p("div"),s&&s.c()},l(n){e=v(n,"DIV",{});var r=N(e);s&&s.l(r),r.forEach(d)},m(n,r){S(n,e,r),s&&s.m(e,null),l[8](e),t=!0},p(n,[r]){s&&s.p&&(!t||r&64)&&re(s,o,n,n[6],t?ie(o,n[6],r,null):le(n[6]),null)},i(n){t||(I(s,n),t=!0)},o(n){A(s,n),t=!1},d(n){n&&d(e),s&&s.d(n),l[8](null)}}}function jt(l,e,t){let{$$slots:o={},$$scope:s}=e,{root:n=null}=e,{top:r=0}=e,{bottom:i=0}=e,{increments:c=100}=e,{value:a=void 0}=e;const m=[],g=[];let $=[],_=[],y;const k=()=>{$.length&&$.forEach(w)},T=()=>{let f=0,E=0;for(let V=0;Vf&&(f=m[V],E=V);f>0?t(1,a=E):t(1,a=void 0)},w=(f,E)=>{const V=Z=>{Z[0].isIntersecting;const P=Z[0].intersectionRatio;m[E]=P,T()},Y=r?r*-1:0,Q=i?i*-1:0,U=`${Y}px 0px ${Q}px 0px`,ee={root:n,rootMargin:U,threshold:g};_[E]&&_[E].disconnect();const G=new IntersectionObserver(V,ee);G.observe(f),_[E]=G};De(()=>{for(let f=0;f *:not(iframe)"),k()});function D(f){Se[f?"unshift":"push"](()=>{y=f,t(0,y)})}return l.$$set=f=>{"root"in f&&t(2,n=f.root),"top"in f&&t(3,r=f.top),"bottom"in f&&t(4,i=f.bottom),"increments"in f&&t(5,c=f.increments),"value"in f&&t(1,a=f.value),"$$scope"in f&&t(6,s=f.$$scope)},l.$$.update=()=>{l.$$.dirty&24&&k()},[y,a,n,r,i,c,s,o,D]}class Ht extends B{constructor(e){super(),q(this,e,jt,Nt,z,{root:2,top:3,bottom:4,increments:5,value:1})}}function Ie(l,e,t){const o=l.slice();o[2]=e[t],o[5]=t;const s=o[0]===o[5];return o[3]=s,o}function Ae(l){let e,t,o,s;return{c(){e=p("div"),t=p("p"),o=W(l[2]),s=H(),this.h()},l(n){e=v(n,"DIV",{class:!0});var r=N(e);t=v(r,"P",{class:!0});var i=N(t);o=K(i,l[2]),i.forEach(d),s=O(r),r.forEach(d),this.h()},h(){u(t,"class","svelte-12sq0x6"),u(e,"class","step svelte-12sq0x6"),$e(e,"active",l[3])},m(n,r){S(n,e,r),h(e,t),h(t,o),h(e,s)},p(n,r){r&1&&$e(e,"active",n[3])},d(n){n&&d(e)}}}function Ot(l){let e,t=X([0,1,2,3,4]),o=[];for(let s=0;s<5;s+=1)o[s]=Ae(Ie(l,t,s));return{c(){for(let s=0;s<5;s+=1)o[s].c();e=te()},l(s){for(let n=0;n<5;n+=1)o[n].l(s);e=te()},m(s,n){for(let r=0;r<5;r+=1)o[r]&&o[r].m(s,n);S(s,e,n)},p(s,n){if(n&1){t=X([0,1,2,3,4]);let r;for(r=0;r<5;r+=1){const i=Ie(s,t,r);o[r]?o[r].p(i,n):(o[r]=Ae(i),o[r].c(),o[r].m(e.parentNode,e))}for(;r<5;r+=1)o[r].d(1)}},d(s){s&&d(e),ae(o,s)}}}function Pt(l){let e,t,o,s,n,r,i,c,a,m,g,$,_;function y(T){l[1](T)}let k={$$slots:{default:[Ot]},$$scope:{ctx:l}};return l[0]!==void 0&&(k.value=l[0]),a=new Ht({props:k}),Se.push(()=>We(a,"value",y)),{c(){e=p("section"),t=p("h2"),o=W("Scrolly "),s=p("span"),n=W(l[0]),r=H(),i=p("div"),c=H(),x(a.$$.fragment),g=H(),$=p("div"),this.h()},l(T){e=v(T,"SECTION",{id:!0});var w=N(e);t=v(w,"H2",{class:!0});var D=N(t);o=K(D,"Scrolly "),s=v(D,"SPAN",{});var f=N(s);n=K(f,l[0]),f.forEach(d),D.forEach(d),r=O(w),i=v(w,"DIV",{class:!0}),N(i).forEach(d),c=O(w),L(a.$$.fragment,w),g=O(w),$=v(w,"DIV",{class:!0}),N($).forEach(d),w.forEach(d),this.h()},h(){u(t,"class","svelte-12sq0x6"),u(i,"class","spacer svelte-12sq0x6"),u($,"class","spacer svelte-12sq0x6"),u(e,"id","scrolly")},m(T,w){S(T,e,w),h(e,t),h(t,o),h(t,s),h(s,n),h(e,r),h(e,i),h(e,c),F(a,e,null),h(e,g),h(e,$),_=!0},p(T,[w]){(!_||w&1)&&ce(n,T[0]);const D={};w&65&&(D.$$scope={dirty:w,ctx:T}),!m&&w&1&&(m=!0,D.value=T[0],Ve(()=>m=!1)),a.$set(D)},i(T){_||(I(a.$$.fragment,T),_=!0)},o(T){A(a.$$.fragment,T),_=!1},d(T){T&&d(e),R(a)}}}function xt(l,e,t){let o;function s(n){o=n,t(0,o)}return[o,s]}class Ft extends B{constructor(e){super(),q(this,e,xt,Pt,z,{})}}function Rt(l){let e,t,o="Demo",s,n,r,i,c,a,m,g,$,_,y,k,T,w,D;return n=new Xe({}),i=new et({}),a=new st({}),g=new dt({}),_=new St({}),k=new Et({}),w=new Ft({}),{c(){e=p("div"),t=p("h1"),t.textContent=o,s=H(),x(n.$$.fragment),r=H(),x(i.$$.fragment),c=H(),x(a.$$.fragment),m=H(),x(g.$$.fragment),$=H(),x(_.$$.fragment),y=H(),x(k.$$.fragment),T=H(),x(w.$$.fragment),this.h()},l(f){e=v(f,"DIV",{id:!0,class:!0});var E=N(e);t=v(E,"H1",{"data-svelte-h":!0}),J(t)!=="svelte-ojh4tb"&&(t.textContent=o),s=O(E),L(n.$$.fragment,E),r=O(E),L(i.$$.fragment,E),c=O(E),L(a.$$.fragment,E),m=O(E),L(g.$$.fragment,E),$=O(E),L(_.$$.fragment,E),y=O(E),L(k.$$.fragment,E),T=O(E),L(w.$$.fragment,E),E.forEach(d),this.h()},h(){u(e,"id","demo"),u(e,"class","svelte-m1ilu3")},m(f,E){S(f,e,E),h(e,t),h(e,s),F(n,e,null),h(e,r),F(i,e,null),h(e,c),F(a,e,null),h(e,m),F(g,e,null),h(e,$),F(_,e,null),h(e,y),F(k,e,null),h(e,T),F(w,e,null),D=!0},p:M,i(f){D||(I(n.$$.fragment,f),I(i.$$.fragment,f),I(a.$$.fragment,f),I(g.$$.fragment,f),I(_.$$.fragment,f),I(k.$$.fragment,f),I(w.$$.fragment,f),D=!0)},o(f){A(n.$$.fragment,f),A(i.$$.fragment,f),A(a.$$.fragment,f),A(g.$$.fragment,f),A(_.$$.fragment,f),A(k.$$.fragment,f),A(w.$$.fragment,f),D=!1},d(f){f&&d(e),R(n),R(i),R(a),R(g),R(_),R(k),R(w)}}}class zt extends B{constructor(e){super(),q(this,e,null,Rt,z,{})}}function Bt(l){let e,t="🚧 This project is a work in progress. Please do not share the URL. 🚧";return{c(){e=p("div"),e.textContent=t,this.h()},l(o){e=v(o,"DIV",{class:!0,"data-svelte-h":!0}),J(e)!=="svelte-1huwx5x"&&(e.textContent=t),this.h()},h(){u(e,"class","svelte-svusjd")},m(o,s){S(o,e,s)},p:M,i:M,o:M,d(o){o&&d(e)}}}class qt extends B{constructor(e){super(),q(this,e,null,Bt,z,{})}}function Lt(l){let e,t,o,s;return e=new qt({}),o=new zt({}),{c(){x(e.$$.fragment),t=H(),x(o.$$.fragment)},l(n){L(e.$$.fragment,n),t=O(n),L(o.$$.fragment,n)},m(n,r){F(e,n,r),S(n,t,r),F(o,n,r),s=!0},p:M,i(n){s||(I(e.$$.fragment,n),I(o.$$.fragment,n),s=!0)},o(n){A(e.$$.fragment,n),A(o.$$.fragment,n),s=!1},d(n){n&&d(t),R(e,n),R(o,n)}}}class Vt extends B{constructor(e){super(),q(this,e,null,Lt,z,{})}}const Wt="Title TK",Kt="Description tk.",Me={title:Wt,description:Kt};function Ut(){console.log("--- --- --- --- --- ---"),console.log("svelte-starter: 5.18.2"),console.log("build: 2024-05-28-08:35"),console.log("--- --- --- --- --- ---")}function Gt(l){let e,t,o,s;return e=new Je({props:{title:l[1],description:l[2],url:l[3],preloadFont:l[0],keywords:l[4]}}),o=new Vt({}),{c(){x(e.$$.fragment),t=H(),x(o.$$.fragment)},l(n){L(e.$$.fragment,n),t=O(n),L(o.$$.fragment,n)},m(n,r){F(e,n,r),S(n,t,r),F(o,n,r),s=!0},p:M,i(n){s||(I(e.$$.fragment,n),I(o.$$.fragment,n),s=!0)},o(n){A(e.$$.fragment,n),A(o.$$.fragment,n),s=!1},d(n){n&&d(t),R(e,n),R(o,n)}}}function Zt(l,e,t){let{data:o}=e;Ut();const s=["https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Regular.woff2","https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Bold.woff2","https://pudding.cool/assets/fonts/atlas/AtlasGrotesk-Regular-Web.woff2","https://pudding.cool/assets/fonts/atlas/AtlasGrotesk-Bold-Web.woff2"],{title:n,description:r,url:i,keywords:c}=Me;return me("copy",Me),me("data",o.data),l.$$set=a=>{"data"in a&&t(5,o=a.data)},[s,n,r,i,c,o]}class nn extends B{constructor(e){super(),q(this,e,Zt,Gt,z,{data:5})}}export{nn as component}; diff --git a/docs/_app/immutable/nodes/2.R62kWUKr.js b/docs/_app/immutable/nodes/2.R62kWUKr.js new file mode 100644 index 0000000..121de32 --- /dev/null +++ b/docs/_app/immutable/nodes/2.R62kWUKr.js @@ -0,0 +1 @@ +import{s as j,e as p,p as te,Z as Oe,c as v,d,m as u,f as h,n as M,U as ae,i as S,k as J,j as O,a as N,l as P,t as W,b as K,g as ce,w as pe,N as ne,M as re,D as Pe,a3 as xe,_ as Fe,$ as Re,R as se,S as le,T as ie,B as ze,y as je,h as ue,a4 as me,r as De,a8 as fe,x as Be,u as de,O as qe,P as Le,W as ve,v as Se,a6 as Ve,a1 as $e}from"../chunks/scheduler.CnY5WKvn.js";import{S as B,i as q,t as I,g as Ne,e as He,b as A,c as F,a as L,m as R,d as z,f as We}from"../chunks/index.x_vOF7Lr.js";import{e as X}from"../chunks/each.D6YF6ztN.js";import"../chunks/transform.W7TN51b0.js";import{g as he,a as ge,d as Ke,I as Ue}from"../chunks/Icon.DMVxx1jf.js";import{w as oe}from"../chunks/index.DAinFavA.js";function be(l,e,t){const o=l.slice();return o[5]=e[t],o}function we(l){let e,t;return{c(){e=p("link"),this.h()},l(o){e=v(o,"LINK",{rel:!0,href:!0,as:!0,type:!0,crossorigin:!0}),this.h()},h(){u(e,"rel","preload"),u(e,"href",t=l[5]),u(e,"as","font"),u(e,"type","font/woff2"),u(e,"crossorigin","")},m(o,r){S(o,e,r)},p(o,r){r&16&&t!==(t=o[5])&&u(e,"href",t)},d(o){o&&d(e)}}}function Ge(l){let e,t,o,r,n,s,i,c,a,m,g,$,_,y,k,T,w,D,f,E,V,Y,Q,U,ee,G;document.title=e=l[0];let Z=X(l[4]),x=[];for(let C=0;C{"title"in c&&t(0,o=c.title),"description"in c&&t(1,r=c.description),"url"in c&&t(2,n=c.url),"keywords"in c&&t(3,s=c.keywords),"preloadFont"in c&&t(4,i=c.preloadFont)},[o,r,n,s,i]}class Je extends B{constructor(e){super(),q(this,e,Ze,Ge,j,{title:0,description:1,url:2,keywords:3,preloadFont:4})}}function Qe(l){let e,t='

Link

Default element styles demo

Pudding-hosted font previews

';return{c(){e=p("section"),e.innerHTML=t,this.h()},l(o){e=v(o,"SECTION",{id:!0,"data-svelte-h":!0}),J(e)!=="svelte-1edigqu"&&(e.innerHTML=t),this.h()},h(){u(e,"id","demo-link")},m(o,r){S(o,e,r)},p:M,i:M,o:M,d(o){o&&d(e)}}}class Xe extends B{constructor(e){super(),q(this,e,null,Qe,j,{})}}function Ye(l){let e,t='

Image

img tag

cat

background image

';return{c(){e=p("section"),e.innerHTML=t,this.h()},l(o){e=v(o,"SECTION",{id:!0,"data-svelte-h":!0}),J(e)!=="svelte-1rsr7zi"&&(e.innerHTML=t),this.h()},h(){u(e,"id","demo-image")},m(o,r){S(o,e,r)},p:M,i:M,o:M,d(o){o&&d(e)}}}class et extends B{constructor(e){super(),q(this,e,null,Ye,j,{})}}function Ee(l,e,t){const o=l.slice();return o[1]=e[t].tag,o[2]=e[t].text,o}function tt(l){let e,t=l[2]+"",o,r;return{c(){e=p(l[1]),o=W(t),r=O()},l(n){e=v(n,(l[1]||"null").toUpperCase(),{});var s=N(e);o=K(s,t),r=P(s),s.forEach(d)},m(n,s){S(n,e,s),h(e,o),h(e,r)},p:M,d(n){n&&d(e)}}}function Te(l){let e=l[1]&&tt(l);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o)},p(t,o){t[1]&&e.p(t,o)},d(t){e&&e.d(t)}}}function nt(l){let e,t,o="Dynamic Svelte Element",r,n=X(l[0]),s=[];for(let i=0;i{"number"in r&&t(0,o=r.number)},[o]}class it extends B{constructor(e){super(),q(this,e,lt,st,j,{number:0})}}function at(l){let e,t,o,r;return{c(){e=p("p"),t=W("I am component B and my name is "),o=W(l[0]),r=W(".")},l(n){e=v(n,"P",{});var s=N(e);t=K(s,"I am component B and my name is "),o=K(s,l[0]),r=K(s,"."),s.forEach(d)},m(n,s){S(n,e,s),h(e,t),h(e,o),h(e,r)},p(n,[s]){s&1&&ce(o,n[0])},i:M,o:M,d(n){n&&d(e)}}}function ct(l,e,t){let{name:o}=e;return l.$$set=r=>{"name"in r&&t(0,o=r.name)},[o]}class ut extends B{constructor(e){super(),q(this,e,ct,at,j,{name:0})}}function ye(l,e,t){const o=l.slice();return o[2]=e[t],o}function ke(l){let e,t,o;const r=[l[2]];var n=l[0][l[2].component];function s(i,c){let a={};for(let m=0;m{z(a,1)}),He()}n?(e=pe(n,s(i,c)),F(e.$$.fragment),I(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}else if(n){const a=c&2?he(r,[ge(i[2])]):{};e.$set(a)}},i(i){o||(e&&I(e.$$.fragment,i),o=!0)},o(i){e&&A(e.$$.fragment,i),o=!1},d(i){i&&d(t),e&&z(e,i)}}}function ft(l){let e,t,o="Dynamic Svelte Component",r,n,s=X(l[1]),i=[];for(let a=0;aA(i[a],1,1,()=>{i[a]=null});return{c(){e=p("section"),t=p("h2"),t.textContent=o,r=O();for(let a=0;a{const c=o===void 0;for(const a of i){const{width:m,height:g}=a.contentRect,$=e.exclude!=="width"&&m!==o,_=e.exclude!=="height"&&g!==r;($||_)&&(o=m,r=g,c||l.dispatchEvent(new CustomEvent("resize")))}},s=()=>{t&&t.disconnect();const i=e.debounce?Ke(n,e.debounce):n;t=new ResizeObserver(i),t.observe(l)};return s(),{update(i){s()},destroy(){t&&t.disconnect()}}}const gt=l=>({}),Ce=l=>({});function _t(l){let e,t,o,r,n,s,i,c;const a=l[10].default,m=re(a,l,l[9],null),g=l[10].figcaption,$=re(g,l,l[9],Ce);return{c(){e=p("figure"),t=p("div"),m&&m.c(),n=O(),$&&$.c(),this.h()},l(_){e=v(_,"FIGURE",{class:!0});var y=N(e);t=v(y,"DIV",{class:!0});var k=N(t);m&&m.l(k),k.forEach(d),n=P(y),$&&$.l(y),y.forEach(d),this.h()},h(){u(t,"class","figure-inner svelte-yftblm"),Pe(()=>l[11].call(t)),u(e,"class","svelte-yftblm")},m(_,y){S(_,e,y),h(e,t),m&&m.m(t,null),o=xe(t,l[11].bind(t)),h(e,n),$&&$.m(e,null),s=!0,i||(c=[Fe(r=ht.call(null,t,{exclude:l[1],debounce:l[0]})),Re(t,"resize",l[7])],i=!0)},p(_,[y]){m&&m.p&&(!s||y&512)&&se(m,a,_,_[9],s?ie(a,_[9],y,null):le(_[9]),null),r&&ze(r.update)&&y&3&&r.update.call(null,{exclude:_[1],debounce:_[0]}),$&&$.p&&(!s||y&512)&&se($,g,_,_[9],s?ie(g,_[9],y,gt):le(_[9]),Ce)},i(_){s||(I(m,_),I($,_),s=!0)},o(_){A(m,_),A($,_),s=!1},d(_){_&&d(e),m&&m.d(_),o(),$&&$.d(_),i=!1,je(c)}}}function pt(l,e,t){let o,r,n,{$$slots:s={},$$scope:i}=e,{debounce:c=250}=e,{exclude:a="height"}=e,{custom:m={}}=e;const g=oe(0);ue(l,g,f=>t(14,n=f));const $=oe(0);ue(l,$,f=>t(13,r=f));const _=oe(1);ue(l,_,f=>t(12,o=f));const y=oe({...m});me("Figure",{width:g,height:$,dpr:_,custom:y});let k,T;async function w(){await Be(),fe(g,n=k,n),fe($,r=T,r)}De(()=>{w()});function D(){k=this.clientWidth,T=this.clientHeight,t(2,k),t(3,T)}return l.$$set=f=>{"debounce"in f&&t(0,c=f.debounce),"exclude"in f&&t(1,a=f.exclude),"custom"in f&&t(8,m=f.custom),"$$scope"in f&&t(9,i=f.$$scope)},fe(_,o=Math.min(2,window.devicePixelRatio||1),o),[c,a,k,T,g,$,_,w,m,i,s,D]}class vt extends B{constructor(e){super(),q(this,e,pt,_t,j,{debounce:0,exclude:1,custom:8})}}function $t(l){let e;return{c(){e=qe("svg"),this.h()},l(t){e=Le(t,"svg",{style:!0}),N(e).forEach(d),this.h()},h(){de(e,"background","var(--color-mark)")},m(t,o){S(t,e,o)},p:M,d(t){t&&d(e)}}}function bt(l){let e,t="Figure caption";return{c(){e=p("figcaption"),e.textContent=t,this.h()},l(o){e=v(o,"FIGCAPTION",{slot:!0,"data-svelte-h":!0}),J(e)!=="svelte-1fkipux"&&(e.textContent=t),this.h()},h(){u(e,"slot","figcaption")},m(o,r){S(o,e,r)},p:M,d(o){o&&d(e)}}}function wt(l){let e,t,o="Figure",r,n,s,i;return n=new vt({props:{$$slots:{figcaption:[bt],default:[$t]},$$scope:{ctx:l}}}),{c(){e=p("section"),t=p("h2"),t.textContent=o,r=O(),s=p("div"),F(n.$$.fragment),this.h()},l(c){e=v(c,"SECTION",{id:!0});var a=N(e);t=v(a,"H2",{"data-svelte-h":!0}),J(t)!=="svelte-4e03p6"&&(t.textContent=o),r=P(a),s=v(a,"DIV",{style:!0});var m=N(s);L(n.$$.fragment,m),a.forEach(d),this.h()},h(){de(s,"display","contents"),de(s,"--aspect-ratio","1"),u(e,"id","demo-figure")},m(c,a){S(c,e,a),h(e,t),h(e,r),h(e,s),R(n,s,null),i=!0},p(c,[a]){const m={};a&1&&(m.$$scope={dirty:a,ctx:c}),n.$set(m)},i(c){i||(I(n.$$.fragment,c),i=!0)},o(c){A(n.$$.fragment,c),i=!1},d(c){c&&d(e),z(n)}}}class Et extends B{constructor(e){super(),q(this,e,null,wt,j,{})}}function Tt(l){let e;const t=l[2].default,o=re(t,l,l[3],null);return{c(){o&&o.c()},l(r){o&&o.l(r)},m(r,n){o&&o.m(r,n),e=!0},p(r,n){o&&o.p&&(!e||n&8)&&se(o,t,r,r[3],e?ie(t,r[3],n,null):le(r[3]),null)},i(r){e||(I(o,r),e=!0)},o(r){A(o,r),e=!1},d(r){o&&o.d(r)}}}function yt(l){let e,t;const o=[{name:"dollar-sign"},l[1],{iconNode:l[0]}];let r={$$slots:{default:[Tt]},$$scope:{ctx:l}};for(let n=0;n{t(1,e=ne(ne({},e),ve(s))),"$$scope"in s&&t(3,r=s.$$scope)},e=ve(e),[n,e,o,r]}class Ct extends B{constructor(e){super(),q(this,e,kt,yt,j,{})}}function It(l){let e,t,o,r,n,s;return n=new Ct({props:{color:"currentColor"}}),{c(){e=p("a"),t=W(l[0]),o=O(),r=p("span"),F(n.$$.fragment),this.h()},l(i){e=v(i,"A",{class:!0,href:!0,target:!0,rel:!0,role:!0});var c=N(e);t=K(c,l[0]),o=P(c),r=v(c,"SPAN",{class:!0});var a=N(r);L(n.$$.fragment,a),a.forEach(d),c.forEach(d),this.h()},h(){u(r,"class","svelte-159gd8r"),u(e,"class","tip-button svelte-159gd8r"),u(e,"href",l[1]),u(e,"target","_blank"),u(e,"rel","noreferrer"),u(e,"role","button")},m(i,c){S(i,e,c),h(e,t),h(e,o),h(e,r),R(n,r,null),s=!0},p(i,[c]){(!s||c&1)&&ce(t,i[0]),(!s||c&2)&&u(e,"href",i[1])},i(i){s||(I(n.$$.fragment,i),s=!0)},o(i){A(n.$$.fragment,i),s=!1},d(i){i&&d(e),z(n)}}}function At(l,e,t){let{text:o="Tip"}=e,{href:r}=e;return l.$$set=n=>{"text"in n&&t(0,o=n.text),"href"in n&&t(1,r=n.href)},[o,r]}class Mt extends B{constructor(e){super(),q(this,e,At,It,j,{text:0,href:1})}}function Dt(l){let e,t,o="Tip",r,n,s;return n=new Mt({props:{href:"#"}}),{c(){e=p("section"),t=p("h2"),t.textContent=o,r=O(),F(n.$$.fragment),this.h()},l(i){e=v(i,"SECTION",{id:!0});var c=N(e);t=v(c,"H2",{"data-svelte-h":!0}),J(t)!=="svelte-1fcbwg5"&&(t.textContent=o),r=P(c),L(n.$$.fragment,c),c.forEach(d),this.h()},h(){u(e,"id","demo-tip")},m(i,c){S(i,e,c),h(e,t),h(e,r),R(n,e,null),s=!0},p:M,i(i){s||(I(n.$$.fragment,i),s=!0)},o(i){A(n.$$.fragment,i),s=!1},d(i){i&&d(e),z(n)}}}class St extends B{constructor(e){super(),q(this,e,null,Dt,j,{})}}function Nt(l){let e,t;const o=l[7].default,r=re(o,l,l[6],null);return{c(){e=p("div"),r&&r.c()},l(n){e=v(n,"DIV",{});var s=N(e);r&&r.l(s),s.forEach(d)},m(n,s){S(n,e,s),r&&r.m(e,null),l[8](e),t=!0},p(n,[s]){r&&r.p&&(!t||s&64)&&se(r,o,n,n[6],t?ie(o,n[6],s,null):le(n[6]),null)},i(n){t||(I(r,n),t=!0)},o(n){A(r,n),t=!1},d(n){n&&d(e),r&&r.d(n),l[8](null)}}}function Ht(l,e,t){let{$$slots:o={},$$scope:r}=e,{root:n=null}=e,{top:s=0}=e,{bottom:i=0}=e,{increments:c=100}=e,{value:a=void 0}=e;const m=[],g=[];let $=[],_=[],y;const k=()=>{$.length&&$.forEach(w)},T=()=>{let f=0,E=0;for(let V=0;Vf&&(f=m[V],E=V);f>0?t(1,a=E):t(1,a=void 0)},w=(f,E)=>{const V=Z=>{Z[0].isIntersecting;const x=Z[0].intersectionRatio;m[E]=x,T()},Y=s?s*-1:0,Q=i?i*-1:0,U=`${Y}px 0px ${Q}px 0px`,ee={root:n,rootMargin:U,threshold:g};_[E]&&_[E].disconnect();const G=new IntersectionObserver(V,ee);G.observe(f),_[E]=G};De(()=>{for(let f=0;f *:not(iframe)"),k()});function D(f){Se[f?"unshift":"push"](()=>{y=f,t(0,y)})}return l.$$set=f=>{"root"in f&&t(2,n=f.root),"top"in f&&t(3,s=f.top),"bottom"in f&&t(4,i=f.bottom),"increments"in f&&t(5,c=f.increments),"value"in f&&t(1,a=f.value),"$$scope"in f&&t(6,r=f.$$scope)},l.$$.update=()=>{l.$$.dirty&24&&k()},[y,a,n,s,i,c,r,o,D]}class Ot extends B{constructor(e){super(),q(this,e,Ht,Nt,j,{root:2,top:3,bottom:4,increments:5,value:1})}}function Ie(l,e,t){const o=l.slice();o[2]=e[t],o[5]=t;const r=o[0]===o[5];return o[3]=r,o}function Ae(l){let e,t,o,r;return{c(){e=p("div"),t=p("p"),o=W(l[2]),r=O(),this.h()},l(n){e=v(n,"DIV",{class:!0});var s=N(e);t=v(s,"P",{class:!0});var i=N(t);o=K(i,l[2]),i.forEach(d),r=P(s),s.forEach(d),this.h()},h(){u(t,"class","svelte-12sq0x6"),u(e,"class","step svelte-12sq0x6"),$e(e,"active",l[3])},m(n,s){S(n,e,s),h(e,t),h(t,o),h(e,r)},p(n,s){s&1&&$e(e,"active",n[3])},d(n){n&&d(e)}}}function Pt(l){let e,t=X([0,1,2,3,4]),o=[];for(let r=0;r<5;r+=1)o[r]=Ae(Ie(l,t,r));return{c(){for(let r=0;r<5;r+=1)o[r].c();e=te()},l(r){for(let n=0;n<5;n+=1)o[n].l(r);e=te()},m(r,n){for(let s=0;s<5;s+=1)o[s]&&o[s].m(r,n);S(r,e,n)},p(r,n){if(n&1){t=X([0,1,2,3,4]);let s;for(s=0;s<5;s+=1){const i=Ie(r,t,s);o[s]?o[s].p(i,n):(o[s]=Ae(i),o[s].c(),o[s].m(e.parentNode,e))}for(;s<5;s+=1)o[s].d(1)}},d(r){r&&d(e),ae(o,r)}}}function xt(l){let e,t,o,r,n,s,i,c,a,m,g,$,_;function y(T){l[1](T)}let k={$$slots:{default:[Pt]},$$scope:{ctx:l}};return l[0]!==void 0&&(k.value=l[0]),a=new Ot({props:k}),Se.push(()=>We(a,"value",y)),{c(){e=p("section"),t=p("h2"),o=W("Scrolly "),r=p("span"),n=W(l[0]),s=O(),i=p("div"),c=O(),F(a.$$.fragment),g=O(),$=p("div"),this.h()},l(T){e=v(T,"SECTION",{id:!0});var w=N(e);t=v(w,"H2",{class:!0});var D=N(t);o=K(D,"Scrolly "),r=v(D,"SPAN",{});var f=N(r);n=K(f,l[0]),f.forEach(d),D.forEach(d),s=P(w),i=v(w,"DIV",{class:!0}),N(i).forEach(d),c=P(w),L(a.$$.fragment,w),g=P(w),$=v(w,"DIV",{class:!0}),N($).forEach(d),w.forEach(d),this.h()},h(){u(t,"class","svelte-12sq0x6"),u(i,"class","spacer svelte-12sq0x6"),u($,"class","spacer svelte-12sq0x6"),u(e,"id","scrolly")},m(T,w){S(T,e,w),h(e,t),h(t,o),h(t,r),h(r,n),h(e,s),h(e,i),h(e,c),R(a,e,null),h(e,g),h(e,$),_=!0},p(T,[w]){(!_||w&1)&&ce(n,T[0]);const D={};w&65&&(D.$$scope={dirty:w,ctx:T}),!m&&w&1&&(m=!0,D.value=T[0],Ve(()=>m=!1)),a.$set(D)},i(T){_||(I(a.$$.fragment,T),_=!0)},o(T){A(a.$$.fragment,T),_=!1},d(T){T&&d(e),z(a)}}}function Ft(l,e,t){let o;function r(n){o=n,t(0,o)}return[o,r]}class Rt extends B{constructor(e){super(),q(this,e,Ft,xt,j,{})}}function zt(l){let e,t,o="Demo",r,n,s,i,c,a,m,g,$,_,y,k,T,w,D;return n=new Xe({}),i=new et({}),a=new rt({}),g=new dt({}),_=new St({}),k=new Et({}),w=new Rt({}),{c(){e=p("div"),t=p("h1"),t.textContent=o,r=O(),F(n.$$.fragment),s=O(),F(i.$$.fragment),c=O(),F(a.$$.fragment),m=O(),F(g.$$.fragment),$=O(),F(_.$$.fragment),y=O(),F(k.$$.fragment),T=O(),F(w.$$.fragment),this.h()},l(f){e=v(f,"DIV",{id:!0,class:!0});var E=N(e);t=v(E,"H1",{"data-svelte-h":!0}),J(t)!=="svelte-ojh4tb"&&(t.textContent=o),r=P(E),L(n.$$.fragment,E),s=P(E),L(i.$$.fragment,E),c=P(E),L(a.$$.fragment,E),m=P(E),L(g.$$.fragment,E),$=P(E),L(_.$$.fragment,E),y=P(E),L(k.$$.fragment,E),T=P(E),L(w.$$.fragment,E),E.forEach(d),this.h()},h(){u(e,"id","demo"),u(e,"class","svelte-m1ilu3")},m(f,E){S(f,e,E),h(e,t),h(e,r),R(n,e,null),h(e,s),R(i,e,null),h(e,c),R(a,e,null),h(e,m),R(g,e,null),h(e,$),R(_,e,null),h(e,y),R(k,e,null),h(e,T),R(w,e,null),D=!0},p:M,i(f){D||(I(n.$$.fragment,f),I(i.$$.fragment,f),I(a.$$.fragment,f),I(g.$$.fragment,f),I(_.$$.fragment,f),I(k.$$.fragment,f),I(w.$$.fragment,f),D=!0)},o(f){A(n.$$.fragment,f),A(i.$$.fragment,f),A(a.$$.fragment,f),A(g.$$.fragment,f),A(_.$$.fragment,f),A(k.$$.fragment,f),A(w.$$.fragment,f),D=!1},d(f){f&&d(e),z(n),z(i),z(a),z(g),z(_),z(k),z(w)}}}class jt extends B{constructor(e){super(),q(this,e,null,zt,j,{})}}function Bt(l){let e,t="🚧 This project is a work in progress. Please do not share the URL. 🚧";return{c(){e=p("div"),e.textContent=t,this.h()},l(o){e=v(o,"DIV",{class:!0,"data-svelte-h":!0}),J(e)!=="svelte-1huwx5x"&&(e.textContent=t),this.h()},h(){u(e,"class","svelte-svusjd")},m(o,r){S(o,e,r)},p:M,i:M,o:M,d(o){o&&d(e)}}}class qt extends B{constructor(e){super(),q(this,e,null,Bt,j,{})}}function Lt(l){let e,t,o,r;return e=new qt({}),o=new jt({}),{c(){F(e.$$.fragment),t=O(),F(o.$$.fragment)},l(n){L(e.$$.fragment,n),t=P(n),L(o.$$.fragment,n)},m(n,s){R(e,n,s),S(n,t,s),R(o,n,s),r=!0},p:M,i(n){r||(I(e.$$.fragment,n),I(o.$$.fragment,n),r=!0)},o(n){A(e.$$.fragment,n),A(o.$$.fragment,n),r=!1},d(n){n&&d(t),z(e,n),z(o,n)}}}class Vt extends B{constructor(e){super(),q(this,e,null,Lt,j,{})}}const Wt="Title TK",Kt="Description tk.",Me={title:Wt,description:Kt};function Ut(){console.log("--- --- --- --- --- ---"),console.log("svelte-starter: 5.18.2"),console.log("build: 2024-05-28-08:45"),console.log("--- --- --- --- --- ---")}function Gt(l){let e,t,o,r;return e=new Je({props:{title:l[1],description:l[2],url:l[3],preloadFont:l[0],keywords:l[4]}}),o=new Vt({}),{c(){F(e.$$.fragment),t=O(),F(o.$$.fragment)},l(n){L(e.$$.fragment,n),t=P(n),L(o.$$.fragment,n)},m(n,s){R(e,n,s),S(n,t,s),R(o,n,s),r=!0},p:M,i(n){r||(I(e.$$.fragment,n),I(o.$$.fragment,n),r=!0)},o(n){A(e.$$.fragment,n),A(o.$$.fragment,n),r=!1},d(n){n&&d(t),z(e,n),z(o,n)}}}function Zt(l,e,t){let{data:o}=e;Ut();const r=["https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Regular.woff2","https://pudding.cool/assets/fonts/tiempos/TiemposTextWeb-Bold.woff2","https://pudding.cool/assets/fonts/atlas/AtlasGrotesk-Regular-Web.woff2","https://pudding.cool/assets/fonts/atlas/AtlasGrotesk-Bold-Web.woff2"],{title:n,description:s,url:i,keywords:c}=Me;return me("copy",Me),me("data",o.data),l.$$set=a=>{"data"in a&&t(5,o=a.data)},[r,n,s,i,c,o]}class nn extends B{constructor(e){super(),q(this,e,Zt,Gt,j,{data:5})}}export{nn as component}; diff --git a/docs/_app/immutable/nodes/4.DVi2n1kX.js b/docs/_app/immutable/nodes/4.BrBkd9jk.js similarity index 99% rename from docs/_app/immutable/nodes/4.DVi2n1kX.js rename to docs/_app/immutable/nodes/4.BrBkd9jk.js index 2686fa5..2c693f9 100644 --- a/docs/_app/immutable/nodes/4.DVi2n1kX.js +++ b/docs/_app/immutable/nodes/4.BrBkd9jk.js @@ -1 +1 @@ -import{s as ee,e as C,j as S,t as H,Z as ye,c as x,d as k,l as M,a as L,b as O,k as W,m as E,u as Y,f as p,i as R,_ as _e,$ as Q,g as K,B as ve,n as $,y as ae,r as ge,o as Z,U as fe,a0 as Ee}from"../chunks/scheduler.CnY5WKvn.js";import{S as te,i as ne,t as U,g as ce,e as ue,b as V,c as de,a as pe,m as he,d as me}from"../chunks/index.x_vOF7Lr.js";import{e as X}from"../chunks/each.D6YF6ztN.js";import"../chunks/transform.W7TN51b0.js";import{b as be}from"../chunks/paths.o50uAdmR.js";function ke(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}class Ce extends Map{constructor(e,s=Te){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(se(this,e))}has(e){return super.has(se(this,e))}set(e,s){return super.set(xe(this,e),s)}delete(e){return super.delete(ze(this,e))}}function se({_intern:t,_key:e},s){const n=e(s);return t.has(n)?t.get(n):s}function xe({_intern:t,_key:e},s){const n=e(s);return t.has(n)?t.get(n):(t.set(n,s),s)}function ze({_intern:t,_key:e},s){const n=e(s);return t.has(n)&&(s=t.get(n),t.delete(n)),s}function Te(t){return t!==null&&typeof t=="object"?t.valueOf():t}function we(t){return t}function Le(t,...e){return Se(t,Array.from,we,e)}function Se(t,e,s,n){return function i(o,v){if(v>=n.length)return s(o);const y=new Ce,c=n[v++];let l=-1;for(const m of o){const r=c(m,++l,o),a=y.get(r);a?a.push(m):y.set(r,[m])}for(const[m,r]of y)y.set(m,i(r,v));return e(y)}(t,0)}async function Me(t){if("clipboard"in navigator)await navigator.clipboard.writeText(t);else{const e=document.createElement("input");e.type="text",e.disabled=!0,e.style.setProperty("position","fixed"),e.style.setProperty("z-index","-100"),e.style.setProperty("pointer-events","none"),e.style.setProperty("opacity","0"),e.value=t,document.body.appendChild(e),e.click(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}}const Ie=(t,e)=>{async function s(){if(i)try{await Me(i),t.dispatchEvent(new CustomEvent("svelte-copy",{detail:i}))}catch(o){t.dispatchEvent(new CustomEvent("svelte-copy:error",{detail:o}))}}let n=typeof e=="string"?["click"]:[e.events].flat(1),i=typeof e=="string"?e:e.text;return n.forEach(o=>{t.addEventListener(o,s,!0)}),{update:o=>{const v=typeof o=="string"?["click"]:[o.events].flat(1),y=typeof o=="string"?o:o.text,c=v.filter(m=>!n.includes(m)),l=n.filter(m=>!v.includes(m));c.forEach(m=>{t.addEventListener(m,s,!0)}),l.forEach(m=>{t.removeEventListener(m,s,!0)}),n=v,i=y},destroy:()=>{n.forEach(o=>{t.removeEventListener(o,s,!0)})}}};function Ne(t){let e,s,n,i,o,v,y,c,l,m,r,a="CSS Snippet",h,g,j,I,D,T,w="Copy CSS to Clipboard",B,z,N,F,G;return{c(){e=C("link"),s=S(),n=C("div"),i=C("h3"),o=H(t[0]),v=S(),y=C("p"),c=H(t[1]),l=S(),m=C("details"),r=C("summary"),r.textContent=a,h=S(),g=C("code"),j=H(t[2]),I=S(),D=C("p"),T=C("button"),T.textContent=w,z=C("span"),N=H(t[3]),this.h()},l(b){const f=ye("svelte-1uevrx3",document.head);e=x(f,"LINK",{rel:!0,href:!0}),f.forEach(k),s=M(b),n=x(b,"DIV",{style:!0,class:!0});var P=L(n);i=x(P,"H3",{class:!0});var u=L(i);o=O(u,t[0]),u.forEach(k),v=M(P),y=x(P,"P",{});var _=L(y);c=O(_,t[1]),_.forEach(k),l=M(P),m=x(P,"DETAILS",{class:!0});var d=L(m);r=x(d,"SUMMARY",{class:!0,"data-svelte-h":!0}),W(r)!=="svelte-1p4cxwi"&&(r.textContent=a),h=M(d),g=x(d,"CODE",{class:!0});var A=L(g);j=O(A,t[2]),A.forEach(k),d.forEach(k),I=M(P),D=x(P,"P",{});var q=L(D);T=x(q,"BUTTON",{class:!0,"data-svelte-h":!0}),W(T)!=="svelte-v2s51m"&&(T.textContent=w),z=x(q,"SPAN",{class:!0});var J=L(z);N=O(J,t[3]),J.forEach(k),q.forEach(k),P.forEach(k),this.h()},h(){E(e,"rel","external stylesheet"),E(e,"href",t[5]),E(i,"class","svelte-19ry7n"),Y(y,"font-size",t[4]),E(r,"class","svelte-19ry7n"),E(g,"class","svelte-19ry7n"),E(m,"class","svelte-19ry7n"),E(T,"class","svelte-19ry7n"),E(z,"class","svelte-19ry7n"),Y(n,"font-family","'"+t[0]+"'"),E(n,"class","svelte-19ry7n")},m(b,f){p(document.head,e),R(b,s,f),R(b,n,f),p(n,i),p(i,o),p(n,v),p(n,y),p(y,c),p(n,l),p(n,m),p(m,r),p(m,h),p(m,g),p(g,j),p(n,I),p(n,D),p(D,T),p(D,z),p(z,N),F||(G=[_e(B=Ie.call(null,T,t[2])),Q(T,"svelte-copy",t[6])],F=!0)},p(b,[f]){f&1&&K(o,b[0]),f&2&&K(c,b[1]),f&16&&Y(y,"font-size",b[4]),f&4&&K(j,b[2]),B&&ve(B.update)&&f&4&&B.update.call(null,b[2]),f&8&&K(N,b[3]),f&1&&Y(n,"font-family","'"+b[0]+"'")},i:$,o:$,d(b){b&&(k(s),k(n)),k(e),F=!1,ae(G)}}}function Pe(t,e,s){let n,{id:i=""}=e,{family:o=""}=e,{size:v=16}=e,{text:y}=e,c="",l="";const m=`${be}/assets/demo/fonts/${i}.css`,r=()=>{s(3,l="Copied!"),setTimeout(()=>{s(3,l="")},1e3)};return ge(async()=>{const a=await fetch(m);s(2,c=await a.text())}),t.$$set=a=>{"id"in a&&s(7,i=a.id),"family"in a&&s(0,o=a.family),"size"in a&&s(8,v=a.size),"text"in a&&s(1,y=a.text)},t.$$.update=()=>{t.$$.dirty&256&&s(4,n=`${v}px`)},[o,y,c,l,n,m,r,i,v]}class Ae extends te{constructor(e){super(),ne(this,e,Pe,Ne,ee,{id:7,family:0,size:8,text:1})}}const De=[{id:"atkinson",family:"Atkinson",type:"sans-serif"},{id:"atlas",family:"Atlas Grotesk",type:"sans-serif"},{id:"baloo-bhai",family:"Baloo Bhai",type:"sans-serif"},{id:"canela",family:"Canela",type:"serif"},{id:"computer-modern",family:"Computer Modern",type:"serif"},{id:"cozette",family:"Cozette",type:"other"},{id:"inter",family:"Inter",type:"sans-serif"},{id:"jamboree",family:"Jamboree",type:"other"},{id:"jersey",family:"Jersey M54",type:"other"},{id:"lyon",family:"Lyon Display",type:"serif"},{id:"metropolis",family:"Metropolis",type:"sans-serif"},{id:"national",family:"National 2 Web",type:"sans-serif"},{id:"publico",family:"Publico Text",type:"serif"},{id:"recoleta",family:"Recoleta",type:"serif"},{id:"rubik",family:"Rubik",type:"sans-serif"},{id:"inconsolata",family:"Inconsolata",type:"mono"},{id:"spacemono",family:"Space Mono",type:"mono"},{id:"tiempos",family:"Tiempos Text",type:"serif"}];function le(t,e,s){const n=t.slice();return n[5]=e[s][0],n[6]=e[s][1],n}function oe(t,e,s){const n=t.slice();return n[9]=e[s].family,n[10]=e[s].id,n}function re(t){let e,s;return e=new Ae({props:{id:t[10],family:t[9],size:t[0],text:t[1]}}),{c(){de(e.$$.fragment)},l(n){pe(e.$$.fragment,n)},m(n,i){he(e,n,i),s=!0},p(n,i){const o={};i&1&&(o.size=n[0]),i&2&&(o.text=n[1]),e.$set(o)},i(n){s||(U(e.$$.fragment,n),s=!0)},o(n){V(e.$$.fragment,n),s=!1},d(n){me(e,n)}}}function ie(t){let e,s=t[5]+"",n,i,o,v,y,c=X(t[6]),l=[];for(let r=0;rV(l[r],1,1,()=>{l[r]=null});return{c(){e=C("h2"),n=H(s),i=S(),o=C("section");for(let r=0;rV(f[u],1,1,()=>{f[u]=null});return{c(){e=C("div"),s=C("h1"),s.textContent=n,i=S(),o=C("p"),o.innerHTML=v,y=S(),c=C("form"),l=C("label"),m=H("font-size: "),r=H(t[0]),a=H("px"),h=S(),g=C("input"),j=S(),I=C("label"),I.textContent=D,T=S(),w=C("input"),B=S(),z=C("article");for(let u=0;uc.type);o.sort((c,l)=>ke(c[1].length,l[1].length));function v(){n=Ee(this.value),s(0,n)}function y(){i=this.value,s(1,i)}return[n,i,o,v,y]}class He extends te{constructor(e){super(),ne(this,e,je,Be,ee,{})}}function Oe(t){let e,s;return e=new He({}),{c(){de(e.$$.fragment)},l(n){pe(e.$$.fragment,n)},m(n,i){he(e,n,i),s=!0},p:$,i(n){s||(U(e.$$.fragment,n),s=!0)},o(n){V(e.$$.fragment,n),s=!1},d(n){me(e,n)}}}class Ve extends te{constructor(e){super(),ne(this,e,null,Oe,ee,{})}}export{Ve as component}; +import{s as ee,e as C,j as S,t as H,Z as ye,c as x,d as k,l as M,a as L,b as O,k as W,m as E,u as Y,f as p,i as R,_ as _e,$ as Q,g as K,B as ve,n as $,y as ae,r as ge,o as Z,U as fe,a0 as Ee}from"../chunks/scheduler.CnY5WKvn.js";import{S as te,i as ne,t as U,g as ce,e as ue,b as V,c as de,a as pe,m as he,d as me}from"../chunks/index.x_vOF7Lr.js";import{e as X}from"../chunks/each.D6YF6ztN.js";import"../chunks/transform.W7TN51b0.js";import{b as be}from"../chunks/paths.DqO9xUBo.js";function ke(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}class Ce extends Map{constructor(e,s=Te){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:s}}),e!=null)for(const[n,i]of e)this.set(n,i)}get(e){return super.get(se(this,e))}has(e){return super.has(se(this,e))}set(e,s){return super.set(xe(this,e),s)}delete(e){return super.delete(ze(this,e))}}function se({_intern:t,_key:e},s){const n=e(s);return t.has(n)?t.get(n):s}function xe({_intern:t,_key:e},s){const n=e(s);return t.has(n)?t.get(n):(t.set(n,s),s)}function ze({_intern:t,_key:e},s){const n=e(s);return t.has(n)&&(s=t.get(n),t.delete(n)),s}function Te(t){return t!==null&&typeof t=="object"?t.valueOf():t}function we(t){return t}function Le(t,...e){return Se(t,Array.from,we,e)}function Se(t,e,s,n){return function i(o,v){if(v>=n.length)return s(o);const y=new Ce,c=n[v++];let l=-1;for(const m of o){const r=c(m,++l,o),a=y.get(r);a?a.push(m):y.set(r,[m])}for(const[m,r]of y)y.set(m,i(r,v));return e(y)}(t,0)}async function Me(t){if("clipboard"in navigator)await navigator.clipboard.writeText(t);else{const e=document.createElement("input");e.type="text",e.disabled=!0,e.style.setProperty("position","fixed"),e.style.setProperty("z-index","-100"),e.style.setProperty("pointer-events","none"),e.style.setProperty("opacity","0"),e.value=t,document.body.appendChild(e),e.click(),e.select(),document.execCommand("copy"),document.body.removeChild(e)}}const Ie=(t,e)=>{async function s(){if(i)try{await Me(i),t.dispatchEvent(new CustomEvent("svelte-copy",{detail:i}))}catch(o){t.dispatchEvent(new CustomEvent("svelte-copy:error",{detail:o}))}}let n=typeof e=="string"?["click"]:[e.events].flat(1),i=typeof e=="string"?e:e.text;return n.forEach(o=>{t.addEventListener(o,s,!0)}),{update:o=>{const v=typeof o=="string"?["click"]:[o.events].flat(1),y=typeof o=="string"?o:o.text,c=v.filter(m=>!n.includes(m)),l=n.filter(m=>!v.includes(m));c.forEach(m=>{t.addEventListener(m,s,!0)}),l.forEach(m=>{t.removeEventListener(m,s,!0)}),n=v,i=y},destroy:()=>{n.forEach(o=>{t.removeEventListener(o,s,!0)})}}};function Ne(t){let e,s,n,i,o,v,y,c,l,m,r,a="CSS Snippet",h,g,j,I,D,T,w="Copy CSS to Clipboard",B,z,N,F,G;return{c(){e=C("link"),s=S(),n=C("div"),i=C("h3"),o=H(t[0]),v=S(),y=C("p"),c=H(t[1]),l=S(),m=C("details"),r=C("summary"),r.textContent=a,h=S(),g=C("code"),j=H(t[2]),I=S(),D=C("p"),T=C("button"),T.textContent=w,z=C("span"),N=H(t[3]),this.h()},l(b){const f=ye("svelte-1uevrx3",document.head);e=x(f,"LINK",{rel:!0,href:!0}),f.forEach(k),s=M(b),n=x(b,"DIV",{style:!0,class:!0});var P=L(n);i=x(P,"H3",{class:!0});var u=L(i);o=O(u,t[0]),u.forEach(k),v=M(P),y=x(P,"P",{});var _=L(y);c=O(_,t[1]),_.forEach(k),l=M(P),m=x(P,"DETAILS",{class:!0});var d=L(m);r=x(d,"SUMMARY",{class:!0,"data-svelte-h":!0}),W(r)!=="svelte-1p4cxwi"&&(r.textContent=a),h=M(d),g=x(d,"CODE",{class:!0});var A=L(g);j=O(A,t[2]),A.forEach(k),d.forEach(k),I=M(P),D=x(P,"P",{});var q=L(D);T=x(q,"BUTTON",{class:!0,"data-svelte-h":!0}),W(T)!=="svelte-v2s51m"&&(T.textContent=w),z=x(q,"SPAN",{class:!0});var J=L(z);N=O(J,t[3]),J.forEach(k),q.forEach(k),P.forEach(k),this.h()},h(){E(e,"rel","external stylesheet"),E(e,"href",t[5]),E(i,"class","svelte-19ry7n"),Y(y,"font-size",t[4]),E(r,"class","svelte-19ry7n"),E(g,"class","svelte-19ry7n"),E(m,"class","svelte-19ry7n"),E(T,"class","svelte-19ry7n"),E(z,"class","svelte-19ry7n"),Y(n,"font-family","'"+t[0]+"'"),E(n,"class","svelte-19ry7n")},m(b,f){p(document.head,e),R(b,s,f),R(b,n,f),p(n,i),p(i,o),p(n,v),p(n,y),p(y,c),p(n,l),p(n,m),p(m,r),p(m,h),p(m,g),p(g,j),p(n,I),p(n,D),p(D,T),p(D,z),p(z,N),F||(G=[_e(B=Ie.call(null,T,t[2])),Q(T,"svelte-copy",t[6])],F=!0)},p(b,[f]){f&1&&K(o,b[0]),f&2&&K(c,b[1]),f&16&&Y(y,"font-size",b[4]),f&4&&K(j,b[2]),B&&ve(B.update)&&f&4&&B.update.call(null,b[2]),f&8&&K(N,b[3]),f&1&&Y(n,"font-family","'"+b[0]+"'")},i:$,o:$,d(b){b&&(k(s),k(n)),k(e),F=!1,ae(G)}}}function Pe(t,e,s){let n,{id:i=""}=e,{family:o=""}=e,{size:v=16}=e,{text:y}=e,c="",l="";const m=`${be}/assets/demo/fonts/${i}.css`,r=()=>{s(3,l="Copied!"),setTimeout(()=>{s(3,l="")},1e3)};return ge(async()=>{const a=await fetch(m);s(2,c=await a.text())}),t.$$set=a=>{"id"in a&&s(7,i=a.id),"family"in a&&s(0,o=a.family),"size"in a&&s(8,v=a.size),"text"in a&&s(1,y=a.text)},t.$$.update=()=>{t.$$.dirty&256&&s(4,n=`${v}px`)},[o,y,c,l,n,m,r,i,v]}class Ae extends te{constructor(e){super(),ne(this,e,Pe,Ne,ee,{id:7,family:0,size:8,text:1})}}const De=[{id:"atkinson",family:"Atkinson",type:"sans-serif"},{id:"atlas",family:"Atlas Grotesk",type:"sans-serif"},{id:"baloo-bhai",family:"Baloo Bhai",type:"sans-serif"},{id:"canela",family:"Canela",type:"serif"},{id:"computer-modern",family:"Computer Modern",type:"serif"},{id:"cozette",family:"Cozette",type:"other"},{id:"inter",family:"Inter",type:"sans-serif"},{id:"jamboree",family:"Jamboree",type:"other"},{id:"jersey",family:"Jersey M54",type:"other"},{id:"lyon",family:"Lyon Display",type:"serif"},{id:"metropolis",family:"Metropolis",type:"sans-serif"},{id:"national",family:"National 2 Web",type:"sans-serif"},{id:"publico",family:"Publico Text",type:"serif"},{id:"recoleta",family:"Recoleta",type:"serif"},{id:"rubik",family:"Rubik",type:"sans-serif"},{id:"inconsolata",family:"Inconsolata",type:"mono"},{id:"spacemono",family:"Space Mono",type:"mono"},{id:"tiempos",family:"Tiempos Text",type:"serif"}];function le(t,e,s){const n=t.slice();return n[5]=e[s][0],n[6]=e[s][1],n}function oe(t,e,s){const n=t.slice();return n[9]=e[s].family,n[10]=e[s].id,n}function re(t){let e,s;return e=new Ae({props:{id:t[10],family:t[9],size:t[0],text:t[1]}}),{c(){de(e.$$.fragment)},l(n){pe(e.$$.fragment,n)},m(n,i){he(e,n,i),s=!0},p(n,i){const o={};i&1&&(o.size=n[0]),i&2&&(o.text=n[1]),e.$set(o)},i(n){s||(U(e.$$.fragment,n),s=!0)},o(n){V(e.$$.fragment,n),s=!1},d(n){me(e,n)}}}function ie(t){let e,s=t[5]+"",n,i,o,v,y,c=X(t[6]),l=[];for(let r=0;rV(l[r],1,1,()=>{l[r]=null});return{c(){e=C("h2"),n=H(s),i=S(),o=C("section");for(let r=0;rV(f[u],1,1,()=>{f[u]=null});return{c(){e=C("div"),s=C("h1"),s.textContent=n,i=S(),o=C("p"),o.innerHTML=v,y=S(),c=C("form"),l=C("label"),m=H("font-size: "),r=H(t[0]),a=H("px"),h=S(),g=C("input"),j=S(),I=C("label"),I.textContent=D,T=S(),w=C("input"),B=S(),z=C("article");for(let u=0;uc.type);o.sort((c,l)=>ke(c[1].length,l[1].length));function v(){n=Ee(this.value),s(0,n)}function y(){i=this.value,s(1,i)}return[n,i,o,v,y]}class He extends te{constructor(e){super(),ne(this,e,je,Be,ee,{})}}function Oe(t){let e,s;return e=new He({}),{c(){de(e.$$.fragment)},l(n){pe(e.$$.fragment,n)},m(n,i){he(e,n,i),s=!0},p:$,i(n){s||(U(e.$$.fragment,n),s=!0)},o(n){V(e.$$.fragment,n),s=!1},d(n){me(e,n)}}}class Ve extends te{constructor(e){super(),ne(this,e,null,Oe,ee,{})}}export{Ve as component}; diff --git a/docs/_app/version.json b/docs/_app/version.json index 449d82a..3a7c9ef 100644 --- a/docs/_app/version.json +++ b/docs/_app/version.json @@ -1 +1 @@ -{"version":"1716899742059"} \ No newline at end of file +{"version":"1716900353872"} \ No newline at end of file diff --git a/docs/demo/elements/index.html b/docs/demo/elements/index.html index 863d518..bf7629d 100644 --- a/docs/demo/elements/index.html +++ b/docs/demo/elements/index.html @@ -8,12 +8,12 @@ - - + + - - + + @@ -64,7 +64,7 @@