From 72604b0982bfcb77c2f8fbf86b919b79381d0b81 Mon Sep 17 00:00:00 2001 From: Valexr Date: Sat, 27 Apr 2024 08:25:38 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Valexr/c?= =?UTF-8?q?ounty@8dde4cdf834c76533b6dd9fb61f8a77e3dc2347d=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/app.js b/build/app.js index e5b2ee4..d05d08b 100644 --- a/build/app.js +++ b/build/app.js @@ -1,7 +1,7 @@ var Kt="county";var te={type:"git",url:"https://github.com/Valexr/county.git"};function y(){}var et=e=>e;function ee(e,t){for(let n in t)e[n]=t[n];return e}function ne(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function vt(e){return e()}function dt(){return Object.create(null)}function I(e){e.forEach(vt)}function A(e){return typeof e=="function"}function oe(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function N(e,t){return e!=e?t==t:e!==t}function re(e){return Object.keys(e).length===0}function wt(e,...t){if(e==null){for(let o of t)o(void 0);return y}let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function lt(e,t,n){e.$$.on_destroy.push(wt(t,n))}function ie(e,t,n,o){if(e){let r=se(e,t,n,o);return e[0](r)}}function se(e,t,n,o){return e[1]&&o?ee(n.ctx.slice(),e[1](o(t))):n.ctx}function le(e,t,n,o){if(e[2]&&o){let r=e[2](o(n));if(t.dirty===void 0)return r;if(typeof r=="object"){let l=[],i=Math.max(t.dirty.length,r.length);for(let c=0;c32){let t=[],n=e.ctx.length/32;for(let o=0;owindow.performance.now():()=>Date.now(),ct=fe?e=>requestAnimationFrame(e):y;var nt=new Set;function pe(e){nt.forEach(t=>{t.c(e)||(nt.delete(t),t.f())}),nt.size!==0&&ct(pe)}function kt(e){let t;return nt.size===0&&ct(pe),{promise:new Promise(n=>{nt.add(t={c:e,f:n})}),abort(){nt.delete(t)}}}var Et=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var _t=class e{_listeners="WeakMap"in Et?new WeakMap:void 0;_observer=void 0;options;constructor(t){this.options=t}observe(t,n){return this._listeners.set(t,n),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(t=>{for(let n of t)e.entries.set(n.target,n),this._listeners.get(n.target)?.(n)}))}};_t.entries="WeakMap"in Et?new WeakMap:void 0;var de=!1;function _e(){de=!0}function me(){de=!1}function $(e,t){e.appendChild(t)}function Dt(e){if(!e)return document;let t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function he(e){let t=U("style");return t.textContent="/* empty */",Xe(Dt(e),t),t.sheet}function Xe(e,t){return $(e.head||e,t),t.sheet}function Q(e,t,n){e.insertBefore(t,n||null)}function F(e){e.parentNode&&e.parentNode.removeChild(e)}function ye(e,t){for(let n=0;ne.removeEventListener(t,n,o)}function ge(e){return function(t){return t.preventDefault(),e.call(this,t)}}function p(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function be(e){return Array.from(e.childNodes)}function H(e,t){t=""+t,e.data!==t&&(e.data=t)}function St(e,t,n,o){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function C(e,t,n){e.classList.toggle(t,!!n)}function mt(e,t,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:o})}function xe(e){let t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}var ht=new Map,yt=0;function He(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ye(e,t){let n={stylesheet:he(t),rules:{}};return ht.set(e,n),n}function Nt(e,t,n,o,r,l,i,c=0){let s=16.666/o,u=`{ `;for(let m=0;m<=1;m+=s){let b=t+(n-t)*l(m);u+=m*100+`%{${i(b,1-b)}} `}let f=u+`100% {${i(n,1-n)}} -}`,a=`__svelte_${He(f)}_${c}`,_=Dt(e),{stylesheet:d,rules:g}=ht.get(_)||Ye(_,e);g[a]||(g[a]=!0,d.insertRule(`@keyframes ${a} ${f}`,d.cssRules.length));let v=e.style.animation||"";return e.style.animation=`${v?`${v}, `:""}${a} ${o}ms linear ${r}ms 1 both`,yt+=1,a}function gt(e,t){let n=(e.style.animation||"").split(", "),o=n.filter(t?l=>l.indexOf(t)<0:l=>l.indexOf("__svelte")===-1),r=n.length-o.length;r&&(e.style.animation=o.join(", "),yt-=r,yt||Ke())}function Ke(){ct(()=>{yt||(ht.forEach(e=>{let{ownerNode:t}=e.stylesheet;t&&F(t)}),ht.clear())})}var Z;function j(e){Z=e}function Fe(){if(!Z)throw new Error("Function called outside component initialization");return Z}var Y=[];var T=[],rt=[],Mt=[],tn=Promise.resolve(),Ct=!1;function Qe(){Ct||(Ct=!0,tn.then(ut))}function G(e){rt.push(e)}function V(e){Mt.push(e)}var It=new Set,ot=0;function ut(){if(ot!==0)return;let e=Z;do{try{for(;ote.indexOf(o)===-1?t.push(o):n.push(o)),n.forEach(o=>o()),rt=t}var at;function nn(){return at||(at=Promise.resolve(),at.then(()=>{at=null})),at}function $e(e,t,n){e.dispatchEvent(mt(`${t?"intro":"outro"}${n}`))}var bt=new Set,K;function q(){K={r:0,c:[],p:K}}function O(){K.r||I(K.c),K=K.p}function h(e,t){e&&e.i&&(bt.delete(e),e.i(t))}function x(e,t,n,o){if(e&&e.o){if(bt.has(e))return;bt.add(e),K.c.push(()=>{bt.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}var on={duration:0};function ve(e,t,n){let o={direction:"in"},r=t(e,n,o),l=!1,i,c,s=0;function u(){i&>(e,i)}function f(){let{delay:_=0,duration:d=300,easing:g=et,tick:v=y,css:m}=r||on;m&&(i=Nt(e,0,1,d,_,g,m,s++)),v(0,1);let b=Bt()+_,w=b+d;c&&c.abort(),l=!0,G(()=>$e(e,!0,"start")),c=kt(E=>{if(l){if(E>=w)return v(1,0),$e(e,!0,"end"),u(),l=!1;if(E>=b){let st=g((E-b)/d);v(st,1-st)}}return l})}let a=!1;return{start(){a||(a=!0,gt(e),A(r)?(r=r(o),nn().then(f)):f())},invalidate(){a=!1},end(){l&&(u(),l=!1)}}}function jt(e,t){let n=t.token={};function o(r,l,i,c){if(t.token!==n)return;t.resolved=c;let s=t.ctx;i!==void 0&&(s=s.slice(),s[i]=c);let u=r&&(t.current=r)(s),f=!1;t.block&&(t.blocks?t.blocks.forEach((a,_)=>{_!==l&&a&&(q(),x(a,1,1,()=>{t.blocks[_]===a&&(t.blocks[_]=null)}),O())}):t.block.d(1),u.c(),h(u,1),u.m(t.mount(),t.anchor),f=!0),t.block=u,t.blocks&&(t.blocks[l]=u),f&&ut()}if(ne(e)){let r=Fe();if(e.then(l=>{j(r),o(t.then,1,t.value,l),j(null)},l=>{if(j(r),o(t.catch,2,t.error,l),j(null),!t.hasCatch)throw l}),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}}function Tt(e,t,n){let o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}function ft(e){return e?.length!==void 0?e:Array.from(e)}var rn=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],sn=new Set([...rn]);function J(e,t,n){let o=e.$$.props[t];o!==void 0&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function D(e){e&&e.c()}function B(e,t,n){let{fragment:o,after_update:r}=e.$$;o&&o.m(t,n),G(()=>{let l=e.$$.on_mount.map(vt).filter(A);e.$$.on_destroy?e.$$.on_destroy.push(...l):I(l),e.$$.on_mount=[]}),r.forEach(G)}function k(e,t){let n=e.$$;n.fragment!==null&&(Ue(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function cn(e,t){e.$$.dirty[0]===-1&&(Y.push(e),Qe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{let g=d.length?d[0]:_;return u.ctx&&r(u.ctx[a],u.ctx[a]=g)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](g),f&&cn(e,a)),_}):[],u.update(),f=!0,I(u.before_update),u.fragment=o?o(u.ctx):!1,t.target){if(t.hydrate){_e();let a=be(t.target);u.fragment&&u.fragment.l(a),a.forEach(F)}else u.fragment&&u.fragment.c();t.intro&&h(e.$$.fragment),B(e,t.target,t.anchor),me(),ut()}j(s)}var un;typeof HTMLElement=="function"&&(un=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=U("slot"),r!=="default"&&p(l,"name",r)},m:function(s,u){Q(s,l,u)},d:function(s){s&&F(l)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=xe(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=qt(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=qt(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let i=this.$$c.$on(r,l);this.$$l_u.set(l,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=qt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function qt(e,t,n,o){let r=n[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!n[e])return t;if(o==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}var L=class{$$=void 0;$$set=void 0;$destroy(){k(this,1),this.$destroy=y}$on(t,n){if(!A(n))return y;let o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{let r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(t){this.$$set&&!re(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};var we="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(we);var it=[];function xt(e,t){return{subscribe:pt(e,t).subscribe}}function pt(e,t=y){let n,o=new Set;function r(c){if(oe(e,c)&&(e=c,n)){let s=!it.length;for(let u of o)u[1](),it.push(u,e);if(s){for(let u=0;u{o.delete(u),o.size===0&&n&&(n(),n=null)}}return{set:r,update:l,subscribe:i}}function Be(e,t,n){let o=!Array.isArray(e),r=o?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=t.length<2;return xt(n,(i,c)=>{let s=!1,u=[],f=0,a=y,_=()=>{if(f)return;a();let g=t(o?u[0]:u,i,c);l?i(g):a=A(g)?g:y},d=r.map((g,v)=>wt(g,m=>{u[v]=m,f&=~(1<{f|=1<t,set:s=>c(s),update:s=>c(s(t)),remove:()=>l?.removeItem(e),clear:()=>l?.clear(),subscribe:o}}function Ft(e){let{subscribe:t,set:n}=pt(e);return{subscribe:t,get:()=>e,set:o=>n(e=o),update:o=>n(e=o(e))}}function Ee(e){return Math.floor(Math.random()*e)}function Ot(e,t){return Qt()==="ru"?t:e}function Qt(){return navigator.language.includes("ru")?"ru":"en"}function Rt(e,t=0){let n=Qt()==="ru",o=t===1||t>20&&String(t).endsWith("1"),r=[2,3,4].includes(t),l={years:o?"\u0433\u043E\u0434":r?"\u0433\u043E\u0434\u0430":"\u043B\u0435\u0442",months:!t||t>4?"\u043C\u0435\u0441\u044F\u0446\u0435\u0432":r?"\u043C\u0435\u0441\u044F\u0446\u0430":"\u043C\u0435\u0441\u044F\u0446",days:o?"\u0434\u0435\u043D\u044C":r?"\u0434\u043D\u044F":"\u0434\u043D\u0435\u0439",weeks:o?"\u043D\u0435\u0434\u0435\u043B\u044F":r?"\u043D\u0435\u0434\u0435\u043B\u0438":"\u043D\u0435\u0434\u0435\u043B\u044C",hours:o?"\u0447\u0430\u0441":r?"\u0447\u0430\u0441\u0430":"\u0447\u0430\u0441\u043E\u0432"};return n?l[e]:t===1?e.substring(0,e.length-1):e}var tt=an();function an(){let{subscribe:e,set:t,get:n,update:o}=Ft([["",""]]);return{subscribe:e,set:t,get:n,update:o,async load(){let r=`./assets/quotes_${Qt()}.json`,i=await(await fetch(r)).json();t(i)},random(r){return n()[Ee(n().length-r)]}}}var W=fn();function fn(){let{subscribe:e,get:t,set:n,update:o}=ke("CountyDates",[],!0);return{subscribe:e,get:t,set:n,update:o,add(r){o(l=>l.concat(r))},change(r,l){W.update(i=>i.map((c,s)=>s===Number(r)?Object.assign(c,l):c))},del(r){W.update(l=>l.filter((i,c)=>c!==r))},quote(r){this.change(r,{quote:tt.random(r)})}}}var De=xt(new Date().toLocaleDateString("en-CA")),Le=xt(new Date().toLocaleTimeString("ru"),e=>{let t=setInterval(()=>{let n=new Date().toLocaleTimeString("ru");e(n)},1e3);return()=>clearInterval(t)});var Se=Be([W,tt],([e,t],n)=>{n(e.map(({start:r,title:l,quote:i},c)=>o(c,r,l,i)));function o(r,l,i,c){let s=new Date().getTime()-new Date(l).getTime(),u=new Date(s).getFullYear()-1970,f=new Date(s).getMonth(),a=new Date(s).getDate()-1,_=Math.floor(a/7);return{id:r,title:i,quote:c||tt.random(r),start:l,years:u,months:f,days:a%7,weeks:_,full:{months:u*12+f,weeks:Math.trunc(s/(36e5*24*7)),days:Math.trunc(s/(36e5*24)),hours:Math.trunc(s/36e5)}}}},[]);Date.prototype.getElapsedTime=function(){let e=new Date(Date.now()-Number(this));return"Elapsed Time: Years: "+(e.getFullYear()-1970)+", Months: "+e.getMonth()+", Days: "+(e.getDate()-1)+", Hours: "+e.getHours()+", Minutes: "+e.getMinutes()+", Seconds: "+e.getSeconds()};function Ne(e,{delay:t=0,duration:n=400,easing:o=et}={}){let r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:o,css:l=>`opacity: ${l*r}`}}function Vt(e){let t=e.slice(),n=t[0];return t[2]=n[0],t[3]=n[1],t}function Ie(e){let t,n,o=e[2]+"",r,l,i,c,s,u=e[3]+"",f,a;return{c(){t=U("blockquote"),n=U("p"),r=z(o),l=S(),i=U("p"),c=U("a"),s=z("~ "),f=z(u),p(n,"class","svelte-10fl26u"),p(c,"href",e[1]),p(c,"target","_blank"),p(c,"class","svelte-10fl26u"),p(i,"class","svelte-10fl26u"),p(t,"class","svelte-10fl26u")},m(_,d){Q(_,t,d),$(t,n),$(n,r),$(t,l),$(t,i),$(i,c),$(c,s),$(c,f)},p(_,d){d&1&&o!==(o=_[2]+"")&&H(r,o),d&1&&u!==(u=_[3]+"")&&H(f,u),d&2&&p(c,"href",_[1])},i(_){_&&(a||G(()=>{a=ve(t,Ne,{}),a.start()}))},o:y,d(_){_&&F(t)}}}function pn(e){let t,n=e[0]&&Ie(Vt(e));return{c(){n&&n.c(),t=X()},m(o,r){n&&n.m(o,r),Q(o,t,r)},p(o,[r]){o[0]?n?(n.p(Vt(o),r),r&1&&h(n,1)):(n=Ie(Vt(o)),n.c(),h(n,1),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i(o){h(n)},o:y,d(o){o&&F(t),n&&n.d(o)}}}function dn(e,t,n){let{quote:o}=t,{href:r=""}=t;return e.$$set=l=>{"quote"in l&&n(0,o=l.quote),"href"in l&&n(1,r=l.href)},[o,r]}var Jt=class extends L{constructor(t){super(),M(this,t,dn,pn,N,{quote:0,href:1})}},Me=Jt;function _n(e){let t,n,o,r,l=e[4].default,i=ie(l,e,e[3],null);return{c(){t=U("button"),i&&i.c(),p(t,"id",e[0]),p(t,"class","clear outline svelte-1wl0gbz")},m(c,s){Q(c,t,s),i&&i.m(t,null),n=!0,o||(r=R(t,"click",e[1]),o=!0)},p(c,[s]){i&&i.p&&(!n||s&8)&&ce(i,l,c,c[3],n?le(l,c[3],s,null):ue(c[3]),null),(!n||s&1)&&p(t,"id",c[0])},i(c){n||(h(i,c),n=!0)},o(c){x(i,c),n=!1},d(c){c&&F(t),i&&i.d(c),o=!1,r()}}}function mn(e,t,n){let{$$slots:o={},$$scope:r}=t,{id:l=""}=t,{type:i}=t;function c(s){let{id:u}=s.currentTarget;n(2,i=u)}return e.$$set=s=>{"id"in s&&n(0,l=s.id),"type"in s&&n(2,i=s.type),"$$scope"in s&&n(3,r=s.$$scope)},[l,c,i,r,o]}var zt=class extends L{constructor(t){super(),M(this,t,mn,_n,N,{id:0,type:2})}},Ce=zt;function hn(e){let t;return{c(){t=z(e[2])},m(n,o){Q(n,t,o)},p(n,o){o&4&&H(t,n[2])},d(n){n&&F(t)}}}function yn(e){let t,n,o,r,l;function i(s){e[4](s)}let c={id:e[3],$$slots:{default:[hn]},$$scope:{ctx:e}};return e[0]!==void 0&&(c.type=e[0]),n=new Ce({props:c}),T.push(()=>J(n,"type",i)),{c(){t=U("li"),D(n.$$.fragment),p(t,"id",r=Rt(e[1],e[2])),p(t,"class","svelte-1ntyu6w")},m(s,u){Q(s,t,u),B(n,t,null),l=!0},p(s,[u]){let f={};u&8&&(f.id=s[3]),u&36&&(f.$$scope={dirty:u,ctx:s}),!o&&u&1&&(o=!0,f.type=s[0],V(()=>o=!1)),n.$set(f),(!l||u&6&&r!==(r=Rt(s[1],s[2])))&&p(t,"id",r)},i(s){l||(h(n.$$.fragment,s),l=!0)},o(s){x(n.$$.fragment,s),l=!1},d(s){s&&F(t),k(n)}}}function gn(e,t,n){let{name:o}=t,{value:r}=t,{type:l}=t,{id:i=""}=t;function c(s){l=s,n(0,l)}return e.$$set=s=>{"name"in s&&n(1,o=s.name),"value"in s&&n(2,r=s.value),"type"in s&&n(0,l=s.type),"id"in s&&n(3,i=s.id)},[l,o,r,i,c]}var Wt=class extends L{constructor(t){super(),M(this,t,gn,yn,N,{name:1,value:2,type:0,id:3})}},P=Wt;function bn(e){let t,n,o,r,l,i=e[0].years&&je(e),c=e[0].months&&Te(e),s=e[0].weeks&&qe(e),u=e[0].days&&Oe(e);return{c(){i&&i.c(),t=S(),c&&c.c(),n=S(),s&&s.c(),o=S(),u&&u.c(),r=X()},m(f,a){i&&i.m(f,a),Q(f,t,a),c&&c.m(f,a),Q(f,n,a),s&&s.m(f,a),Q(f,o,a),u&&u.m(f,a),Q(f,r,a),l=!0},p(f,a){f[0].years?i?(i.p(f,a),a&1&&h(i,1)):(i=je(f),i.c(),h(i,1),i.m(t.parentNode,t)):i&&(q(),x(i,1,1,()=>{i=null}),O()),f[0].months?c?(c.p(f,a),a&1&&h(c,1)):(c=Te(f),c.c(),h(c,1),c.m(n.parentNode,n)):c&&(q(),x(c,1,1,()=>{c=null}),O()),f[0].weeks?s?(s.p(f,a),a&1&&h(s,1)):(s=qe(f),s.c(),h(s,1),s.m(o.parentNode,o)):s&&(q(),x(s,1,1,()=>{s=null}),O()),f[0].days?u?(u.p(f,a),a&1&&h(u,1)):(u=Oe(f),u.c(),h(u,1),u.m(r.parentNode,r)):u&&(q(),x(u,1,1,()=>{u=null}),O())},i(f){l||(h(i),h(c),h(s),h(u),l=!0)},o(f){x(i),x(c),x(s),x(u),l=!1},d(f){f&&(F(t),F(n),F(o),F(r)),i&&i.d(f),c&&c.d(f),s&&s.d(f),u&&u.d(f)}}}function xn(e){let t,n,o;function r(i){e[5](i)}let l={name:"hours",value:e[0].full.hours};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.hours),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Fn(e){let t,n,o;function r(i){e[4](i)}let l={name:"days",value:e[0].full.days};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.days),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Qn(e){let t,n,o;function r(i){e[3](i)}let l={name:"weeks",value:e[0].full.weeks};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.weeks),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Un(e){let t,n,o;function r(i){e[2](i)}let l={name:"months",value:e[0].full.months};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.months),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function je(e){let t,n,o;function r(i){e[6](i)}let l={name:"years",id:"hours",value:e[0].years};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].years),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Te(e){let t,n,o;function r(i){e[7](i)}let l={name:"months",id:"months",value:e[0].months};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].months),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function qe(e){let t,n,o;function r(i){e[8](i)}let l={name:"weeks",id:"weeks",value:e[0].weeks};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].weeks),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Oe(e){let t,n,o;function r(i){e[9](i)}let l={name:"days",id:"days",value:e[0].days};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].days),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function $n(e){let t,n,o,r,l=[Un,Qn,Fn,xn,bn],i=[];function c(s,u){return s[1]==="months"?0:s[1]==="weeks"?1:s[1]==="days"?2:s[1]==="hours"?3:4}return n=c(e,-1),o=i[n]=l[n](e),{c(){t=U("ul"),o.c(),St(t,"--county-length",Re(e[0])),p(t,"class","svelte-10qtkb4")},m(s,u){Q(s,t,u),i[n].m(t,null),r=!0},p(s,[u]){let f=n;n=c(s,u),n===f?i[n].p(s,u):(q(),x(i[f],1,1,()=>{i[f]=null}),O(),o=i[n],o?o.p(s,u):(o=i[n]=l[n](s),o.c()),h(o,1),o.m(t,null)),(!r||u&1)&&St(t,"--county-length",Re(s[0]))},i(s){r||(h(o),r=!0)},o(s){x(o),r=!1},d(s){s&&F(t),i[n].d()}}}function Re(e){let{id:t,title:n,quote:o,start:r,full:l,...i}=e;return Object.values(i).filter(c=>c).length}function vn(e,t,n){let{counter:o}=t,r;function l(d){r=d,n(1,r)}function i(d){r=d,n(1,r)}function c(d){r=d,n(1,r)}function s(d){r=d,n(1,r)}function u(d){r=d,n(1,r)}function f(d){r=d,n(1,r)}function a(d){r=d,n(1,r)}function _(d){r=d,n(1,r)}return e.$$set=d=>{"counter"in d&&n(0,o=d.counter)},[o,r,l,i,c,s,u,f,a,_]}var At=class extends L{constructor(t){super(),M(this,t,vn,$n,N,{counter:0})}},Ve=At;var Ut=wn();function wn(){let{subscribe:e,set:t,get:n,update:o}=Ft([]);async function r(){if(!n().length){let s=await fetch("./assets/photos.json");t(await s.json())}l()}function l(){let[{src:c,alt:s}]=i();document.documentElement.style.cssText=` +}`,a=`__svelte_${He(f)}_${c}`,_=Dt(e),{stylesheet:d,rules:g}=ht.get(_)||Ye(_,e);g[a]||(g[a]=!0,d.insertRule(`@keyframes ${a} ${f}`,d.cssRules.length));let v=e.style.animation||"";return e.style.animation=`${v?`${v}, `:""}${a} ${o}ms linear ${r}ms 1 both`,yt+=1,a}function gt(e,t){let n=(e.style.animation||"").split(", "),o=n.filter(t?l=>l.indexOf(t)<0:l=>l.indexOf("__svelte")===-1),r=n.length-o.length;r&&(e.style.animation=o.join(", "),yt-=r,yt||Ke())}function Ke(){ct(()=>{yt||(ht.forEach(e=>{let{ownerNode:t}=e.stylesheet;t&&F(t)}),ht.clear())})}var Z;function j(e){Z=e}function Fe(){if(!Z)throw new Error("Function called outside component initialization");return Z}var Y=[];var T=[],rt=[],Mt=[],tn=Promise.resolve(),Ct=!1;function Qe(){Ct||(Ct=!0,tn.then(ut))}function G(e){rt.push(e)}function V(e){Mt.push(e)}var It=new Set,ot=0;function ut(){if(ot!==0)return;let e=Z;do{try{for(;ote.indexOf(o)===-1?t.push(o):n.push(o)),n.forEach(o=>o()),rt=t}var at;function nn(){return at||(at=Promise.resolve(),at.then(()=>{at=null})),at}function $e(e,t,n){e.dispatchEvent(mt(`${t?"intro":"outro"}${n}`))}var bt=new Set,K;function q(){K={r:0,c:[],p:K}}function O(){K.r||I(K.c),K=K.p}function h(e,t){e&&e.i&&(bt.delete(e),e.i(t))}function x(e,t,n,o){if(e&&e.o){if(bt.has(e))return;bt.add(e),K.c.push(()=>{bt.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}var on={duration:0};function ve(e,t,n){let o={direction:"in"},r=t(e,n,o),l=!1,i,c,s=0;function u(){i&>(e,i)}function f(){let{delay:_=0,duration:d=300,easing:g=et,tick:v=y,css:m}=r||on;m&&(i=Nt(e,0,1,d,_,g,m,s++)),v(0,1);let b=Bt()+_,w=b+d;c&&c.abort(),l=!0,G(()=>$e(e,!0,"start")),c=kt(E=>{if(l){if(E>=w)return v(1,0),$e(e,!0,"end"),u(),l=!1;if(E>=b){let st=g((E-b)/d);v(st,1-st)}}return l})}let a=!1;return{start(){a||(a=!0,gt(e),A(r)?(r=r(o),nn().then(f)):f())},invalidate(){a=!1},end(){l&&(u(),l=!1)}}}function jt(e,t){let n=t.token={};function o(r,l,i,c){if(t.token!==n)return;t.resolved=c;let s=t.ctx;i!==void 0&&(s=s.slice(),s[i]=c);let u=r&&(t.current=r)(s),f=!1;t.block&&(t.blocks?t.blocks.forEach((a,_)=>{_!==l&&a&&(q(),x(a,1,1,()=>{t.blocks[_]===a&&(t.blocks[_]=null)}),O())}):t.block.d(1),u.c(),h(u,1),u.m(t.mount(),t.anchor),f=!0),t.block=u,t.blocks&&(t.blocks[l]=u),f&&ut()}if(ne(e)){let r=Fe();if(e.then(l=>{j(r),o(t.then,1,t.value,l),j(null)},l=>{if(j(r),o(t.catch,2,t.error,l),j(null),!t.hasCatch)throw l}),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}}function Tt(e,t,n){let o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}function ft(e){return e?.length!==void 0?e:Array.from(e)}var rn=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],sn=new Set([...rn]);function J(e,t,n){let o=e.$$.props[t];o!==void 0&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function D(e){e&&e.c()}function B(e,t,n){let{fragment:o,after_update:r}=e.$$;o&&o.m(t,n),G(()=>{let l=e.$$.on_mount.map(vt).filter(A);e.$$.on_destroy?e.$$.on_destroy.push(...l):I(l),e.$$.on_mount=[]}),r.forEach(G)}function k(e,t){let n=e.$$;n.fragment!==null&&(Ue(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function cn(e,t){e.$$.dirty[0]===-1&&(Y.push(e),Qe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{let g=d.length?d[0]:_;return u.ctx&&r(u.ctx[a],u.ctx[a]=g)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](g),f&&cn(e,a)),_}):[],u.update(),f=!0,I(u.before_update),u.fragment=o?o(u.ctx):!1,t.target){if(t.hydrate){_e();let a=be(t.target);u.fragment&&u.fragment.l(a),a.forEach(F)}else u.fragment&&u.fragment.c();t.intro&&h(e.$$.fragment),B(e,t.target,t.anchor),me(),ut()}j(s)}var un;typeof HTMLElement=="function"&&(un=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=U("slot"),r!=="default"&&p(l,"name",r)},m:function(s,u){Q(s,l,u)},d:function(s){s&&F(l)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=xe(this);for(let r of this.$$s)r in n&&(t[r]=[e(r)]);for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=qt(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){let l=qt(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let r in this.$$l)for(let l of this.$$l[r]){let i=this.$$c.$on(r,l);this.$$l_u.set(l,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=qt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function qt(e,t,n,o){let r=n[e]?.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!n[e])return t;if(o==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}var L=class{$$=void 0;$$set=void 0;$destroy(){k(this,1),this.$destroy=y}$on(t,n){if(!A(n))return y;let o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{let r=o.indexOf(n);r!==-1&&o.splice(r,1)}}$set(t){this.$$set&&!re(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};var we="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(we);var it=[];function xt(e,t){return{subscribe:pt(e,t).subscribe}}function pt(e,t=y){let n,o=new Set;function r(c){if(oe(e,c)&&(e=c,n)){let s=!it.length;for(let u of o)u[1](),it.push(u,e);if(s){for(let u=0;u{o.delete(u),o.size===0&&n&&(n(),n=null)}}return{set:r,update:l,subscribe:i}}function Be(e,t,n){let o=!Array.isArray(e),r=o?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=t.length<2;return xt(n,(i,c)=>{let s=!1,u=[],f=0,a=y,_=()=>{if(f)return;a();let g=t(o?u[0]:u,i,c);l?i(g):a=A(g)?g:y},d=r.map((g,v)=>wt(g,m=>{u[v]=m,f&=~(1<{f|=1<t,set:s=>c(s),update:s=>c(s(t)),remove:()=>l?.removeItem(e),clear:()=>l?.clear(),subscribe:o}}function Ft(e){let{subscribe:t,set:n}=pt(e);return{subscribe:t,get:()=>e,set:o=>n(e=o),update:o=>n(e=o(e))}}function Ee(e){return Math.floor(Math.random()*e)}function Ot(e,t){return Qt()==="ru"?t:e}function Qt(){return navigator.language.includes("ru")?"ru":"en"}function Rt(e,t=0){let n=Qt()==="ru",o=t===1||t>20&&String(t).endsWith("1"),r=[2,3,4].includes(t),l={years:o?"\u0433\u043E\u0434":r?"\u0433\u043E\u0434\u0430":"\u043B\u0435\u0442",months:!t||t>4?"\u043C\u0435\u0441\u044F\u0446\u0435\u0432":r?"\u043C\u0435\u0441\u044F\u0446\u0430":"\u043C\u0435\u0441\u044F\u0446",days:o?"\u0434\u0435\u043D\u044C":r?"\u0434\u043D\u044F":"\u0434\u043D\u0435\u0439",weeks:o?"\u043D\u0435\u0434\u0435\u043B\u044F":r?"\u043D\u0435\u0434\u0435\u043B\u0438":"\u043D\u0435\u0434\u0435\u043B\u044C",hours:o?"\u0447\u0430\u0441":r?"\u0447\u0430\u0441\u0430":"\u0447\u0430\u0441\u043E\u0432"};return n?l[e]:t===1?e.substring(0,e.length-1):e}var tt=an();function an(){let{subscribe:e,set:t,get:n,update:o}=Ft([["",""]]);return{subscribe:e,set:t,get:n,update:o,async load(){let r=`./assets/quotes_${Qt()}.json`,i=await(await fetch(r)).json();t(i)},random(r){return n()[Ee(n().length-r)]}}}var W=fn();function fn(){let{subscribe:e,get:t,set:n,update:o}=ke("CountyDates",[],!0);return{subscribe:e,get:t,set:n,update:o,add(r){o(l=>l.concat(r))},change(r,l){W.update(i=>i.map((c,s)=>s===Number(r)?Object.assign(c,l):c))},del(r){W.update(l=>l.filter((i,c)=>c!==r))},quote(r){this.change(r,{quote:tt.random(r)})}}}var De=xt(new Date().toLocaleDateString("en-CA")),Le=xt(new Date().toLocaleTimeString("ru"),e=>{let t=setInterval(()=>{let n=new Date().toLocaleTimeString("ru");e(n)},1e3);return()=>clearInterval(t)});var Se=Be([W,tt],([e,t],n)=>{n(e.map(({start:r,title:l,quote:i},c)=>o(c,r,l,i)));function o(r,l,i,c){let s=new Date().getTime()-new Date(l).getTime(),u=new Date(s).getFullYear()-1970,f=new Date(s).getMonth(),a=new Date(s).getDate()-1,_=Math.floor(a/7);return{id:r,title:i,quote:c||tt.random(r),start:l,years:u,months:f,days:a%7,weeks:_,full:{months:u*12+f,weeks:Math.trunc(s/(36e5*24*7)),days:Math.trunc(s/(36e5*24)),hours:Math.trunc(s/36e5)}}}},[]);Date.prototype.getElapsedTime=function(){let e=new Date(Date.now()-Number(this));return"Elapsed Time: Years: "+(e.getFullYear()-1970)+", Months: "+e.getMonth()+", Days: "+(e.getDate()-1)+", Hours: "+e.getHours()+", Minutes: "+e.getMinutes()+", Seconds: "+e.getSeconds()};function Ne(e,{delay:t=0,duration:n=400,easing:o=et}={}){let r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:o,css:l=>`opacity: ${l*r}`}}function Vt(e){let t=e.slice(),n=t[0];return t[2]=n[0],t[3]=n[1],t}function Ie(e){let t,n,o=e[2]+"",r,l,i,c,s,u=e[3]+"",f,a;return{c(){t=U("blockquote"),n=U("p"),r=z(o),l=S(),i=U("p"),c=U("a"),s=z("~ "),f=z(u),p(n,"class","svelte-10fl26u"),p(c,"href",e[1]),p(c,"target","_blank"),p(c,"class","svelte-10fl26u"),p(i,"class","svelte-10fl26u"),p(t,"class","svelte-10fl26u")},m(_,d){Q(_,t,d),$(t,n),$(n,r),$(t,l),$(t,i),$(i,c),$(c,s),$(c,f)},p(_,d){d&1&&o!==(o=_[2]+"")&&H(r,o),d&1&&u!==(u=_[3]+"")&&H(f,u),d&2&&p(c,"href",_[1])},i(_){_&&(a||G(()=>{a=ve(t,Ne,{}),a.start()}))},o:y,d(_){_&&F(t)}}}function pn(e){let t,n=e[0]&&Ie(Vt(e));return{c(){n&&n.c(),t=X()},m(o,r){n&&n.m(o,r),Q(o,t,r)},p(o,[r]){o[0]?n?(n.p(Vt(o),r),r&1&&h(n,1)):(n=Ie(Vt(o)),n.c(),h(n,1),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i(o){h(n)},o:y,d(o){o&&F(t),n&&n.d(o)}}}function dn(e,t,n){let{quote:o}=t,{href:r=""}=t;return e.$$set=l=>{"quote"in l&&n(0,o=l.quote),"href"in l&&n(1,r=l.href)},[o,r]}var Jt=class extends L{constructor(t){super(),M(this,t,dn,pn,N,{quote:0,href:1})}},Me=Jt;function _n(e){let t,n,o,r,l=e[4].default,i=ie(l,e,e[3],null);return{c(){t=U("button"),i&&i.c(),p(t,"id",e[0]),p(t,"class","clear outline svelte-1wl0gbz")},m(c,s){Q(c,t,s),i&&i.m(t,null),n=!0,o||(r=R(t,"click",e[1]),o=!0)},p(c,[s]){i&&i.p&&(!n||s&8)&&ce(i,l,c,c[3],n?le(l,c[3],s,null):ue(c[3]),null),(!n||s&1)&&p(t,"id",c[0])},i(c){n||(h(i,c),n=!0)},o(c){x(i,c),n=!1},d(c){c&&F(t),i&&i.d(c),o=!1,r()}}}function mn(e,t,n){let{$$slots:o={},$$scope:r}=t,{id:l=""}=t,{type:i}=t;function c(s){let{id:u}=s.currentTarget;n(2,i=u)}return e.$$set=s=>{"id"in s&&n(0,l=s.id),"type"in s&&n(2,i=s.type),"$$scope"in s&&n(3,r=s.$$scope)},[l,c,i,r,o]}var zt=class extends L{constructor(t){super(),M(this,t,mn,_n,N,{id:0,type:2})}},Ce=zt;function hn(e){let t;return{c(){t=z(e[2])},m(n,o){Q(n,t,o)},p(n,o){o&4&&H(t,n[2])},d(n){n&&F(t)}}}function yn(e){let t,n,o,r,l;function i(s){e[4](s)}let c={id:e[3],$$slots:{default:[hn]},$$scope:{ctx:e}};return e[0]!==void 0&&(c.type=e[0]),n=new Ce({props:c}),T.push(()=>J(n,"type",i)),{c(){t=U("li"),D(n.$$.fragment),p(t,"id",r=Rt(e[1],e[2])),p(t,"class","svelte-1ntyu6w")},m(s,u){Q(s,t,u),B(n,t,null),l=!0},p(s,[u]){let f={};u&8&&(f.id=s[3]),u&36&&(f.$$scope={dirty:u,ctx:s}),!o&&u&1&&(o=!0,f.type=s[0],V(()=>o=!1)),n.$set(f),(!l||u&6&&r!==(r=Rt(s[1],s[2])))&&p(t,"id",r)},i(s){l||(h(n.$$.fragment,s),l=!0)},o(s){x(n.$$.fragment,s),l=!1},d(s){s&&F(t),k(n)}}}function gn(e,t,n){let{name:o}=t,{value:r}=t,{type:l}=t,{id:i=""}=t;function c(s){l=s,n(0,l)}return e.$$set=s=>{"name"in s&&n(1,o=s.name),"value"in s&&n(2,r=s.value),"type"in s&&n(0,l=s.type),"id"in s&&n(3,i=s.id)},[l,o,r,i,c]}var Wt=class extends L{constructor(t){super(),M(this,t,gn,yn,N,{name:1,value:2,type:0,id:3})}},P=Wt;function bn(e){let t,n,o,r,l,i=e[0].years&&je(e),c=e[0].months&&Te(e),s=e[0].weeks&&qe(e),u=e[0].days&&Oe(e);return{c(){i&&i.c(),t=S(),c&&c.c(),n=S(),s&&s.c(),o=S(),u&&u.c(),r=X()},m(f,a){i&&i.m(f,a),Q(f,t,a),c&&c.m(f,a),Q(f,n,a),s&&s.m(f,a),Q(f,o,a),u&&u.m(f,a),Q(f,r,a),l=!0},p(f,a){f[0].years?i?(i.p(f,a),a&1&&h(i,1)):(i=je(f),i.c(),h(i,1),i.m(t.parentNode,t)):i&&(q(),x(i,1,1,()=>{i=null}),O()),f[0].months?c?(c.p(f,a),a&1&&h(c,1)):(c=Te(f),c.c(),h(c,1),c.m(n.parentNode,n)):c&&(q(),x(c,1,1,()=>{c=null}),O()),f[0].weeks?s?(s.p(f,a),a&1&&h(s,1)):(s=qe(f),s.c(),h(s,1),s.m(o.parentNode,o)):s&&(q(),x(s,1,1,()=>{s=null}),O()),f[0].days?u?(u.p(f,a),a&1&&h(u,1)):(u=Oe(f),u.c(),h(u,1),u.m(r.parentNode,r)):u&&(q(),x(u,1,1,()=>{u=null}),O())},i(f){l||(h(i),h(c),h(s),h(u),l=!0)},o(f){x(i),x(c),x(s),x(u),l=!1},d(f){f&&(F(t),F(n),F(o),F(r)),i&&i.d(f),c&&c.d(f),s&&s.d(f),u&&u.d(f)}}}function xn(e){let t,n,o;function r(i){e[5](i)}let l={name:"hours",value:e[0].full.hours};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.hours),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Fn(e){let t,n,o;function r(i){e[4](i)}let l={name:"days",value:e[0].full.days};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.days),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Qn(e){let t,n,o;function r(i){e[3](i)}let l={name:"weeks",value:e[0].full.weeks};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.weeks),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Un(e){let t,n,o;function r(i){e[2](i)}let l={name:"months",value:e[0].full.months};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].full.months),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function je(e){let t,n,o;function r(i){e[6](i)}let l={name:"years",id:"hours",value:e[0].years};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].years),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Te(e){let t,n,o;function r(i){e[7](i)}let l={name:"months",id:"months",value:e[0].months};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].months),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function qe(e){let t,n,o;function r(i){e[8](i)}let l={name:"weeks",id:"weeks",value:e[0].weeks};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].weeks),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function Oe(e){let t,n,o;function r(i){e[9](i)}let l={name:"days",id:"days",value:e[0].days};return e[1]!==void 0&&(l.type=e[1]),t=new P({props:l}),T.push(()=>J(t,"type",r)),{c(){D(t.$$.fragment)},m(i,c){B(t,i,c),o=!0},p(i,c){let s={};c&1&&(s.value=i[0].days),!n&&c&2&&(n=!0,s.type=i[1],V(()=>n=!1)),t.$set(s)},i(i){o||(h(t.$$.fragment,i),o=!0)},o(i){x(t.$$.fragment,i),o=!1},d(i){k(t,i)}}}function $n(e){let t,n,o,r,l=[Un,Qn,Fn,xn,bn],i=[];function c(s,u){return s[1]==="months"?0:s[1]==="weeks"?1:s[1]==="days"?2:s[1]==="hours"?3:4}return n=c(e,-1),o=i[n]=l[n](e),{c(){t=U("ul"),o.c(),St(t,"--county-length",Re(e[0],e[1])),p(t,"class","svelte-10qtkb4")},m(s,u){Q(s,t,u),i[n].m(t,null),r=!0},p(s,[u]){let f=n;n=c(s,u),n===f?i[n].p(s,u):(q(),x(i[f],1,1,()=>{i[f]=null}),O(),o=i[n],o?o.p(s,u):(o=i[n]=l[n](s),o.c()),h(o,1),o.m(t,null)),(!r||u&3)&&St(t,"--county-length",Re(s[0],s[1]))},i(s){r||(h(o),r=!0)},o(s){x(o),r=!1},d(s){s&&F(t),i[n].d()}}}function Re(e,t){let{id:n,title:o,quote:r,start:l,full:i,...c}=e,s=Object.values(c).filter(u=>u).join("");return t?String(i[t]).length:s.length}function vn(e,t,n){let{counter:o}=t,r;function l(d){r=d,n(1,r)}function i(d){r=d,n(1,r)}function c(d){r=d,n(1,r)}function s(d){r=d,n(1,r)}function u(d){r=d,n(1,r)}function f(d){r=d,n(1,r)}function a(d){r=d,n(1,r)}function _(d){r=d,n(1,r)}return e.$$set=d=>{"counter"in d&&n(0,o=d.counter)},[o,r,l,i,c,s,u,f,a,_]}var At=class extends L{constructor(t){super(),M(this,t,vn,$n,N,{counter:0})}},Ve=At;var Ut=wn();function wn(){let{subscribe:e,set:t,get:n,update:o}=Ft([]);async function r(){if(!n().length){let s=await fetch("./assets/photos.json");t(await s.json())}l()}function l(){let[{src:c,alt:s}]=i();document.documentElement.style.cssText=` background: url(${c}) center no-repeat; background-size: cover; `,document.documentElement.title=s}function i(c=1,s={width:window.innerWidth,height:window.innerHeight}){let u=Array.from({length:c},()=>Math.floor(Math.random()*24644));return n().reduce((_,[d,g,v],m)=>{if(u.includes(m)){let b={width:s.height*(g/10),height:s.height},w={width:s.width,height:s.height},E=`?w=${f(a(b,w).width)}`;_.push({id:m,src:`https://images.unsplash.com/photo-${d}${E}`,alt:`Image by ${v} from Unsplash`,...a(b,w)})}return _},[]);function f(_){return _*devicePixelRatio}function a(_,d){let g=Math.min(d.width/_.width,d.height,_.height);return{width:Math.round(_.width*g),height:Math.round(_.height*g)}}}return{subscribe:e,set:t,update:o,load:r,prepare:i,back:l}}function Bn(e){let t,n,o,r;return{c(){t=Lt("svg"),n=Lt("use"),p(n,"href",o="./assets/sprite.svg#"+e[1]),p(t,"id",e[0]),p(t,"width",e[2]),p(t,"height",e[2]),p(t,"fill",e[3]),p(t,"style",r="transform: rotate("+e[4]+"deg); --icon-size: "+e[2]+"; "+e[6]),p(t,"class","svelte-e5fszy"),C(t,"spin",e[5]),C(t,"bordered",e[7])},m(l,i){Q(l,t,i),$(t,n)},p(l,[i]){i&2&&o!==(o="./assets/sprite.svg#"+l[1])&&p(n,"href",o),i&1&&p(t,"id",l[0]),i&4&&p(t,"width",l[2]),i&4&&p(t,"height",l[2]),i&8&&p(t,"fill",l[3]),i&84&&r!==(r="transform: rotate("+l[4]+"deg); --icon-size: "+l[2]+"; "+l[6])&&p(t,"style",r),i&32&&C(t,"spin",l[5]),i&128&&C(t,"bordered",l[7])},i:y,o:y,d(l){l&&F(t)}}}function kn(e,t,n){let{id:o=""}=t,{name:r="Close"}=t,{size:l="16px"}=t,{color:i="currentColor"}=t,{rotate:c=0}=t,{spin:s=!1}=t,{style:u=""}=t,{bordered:f=!1}=t;return e.$$set=a=>{"id"in a&&n(0,o=a.id),"name"in a&&n(1,r=a.name),"size"in a&&n(2,l=a.size),"color"in a&&n(3,i=a.color),"rotate"in a&&n(4,c=a.rotate),"spin"in a&&n(5,s=a.spin),"style"in a&&n(6,u=a.style),"bordered"in a&&n(7,f=a.bordered)},[o,r,l,i,c,s,u,f]}var Pt=class extends L{constructor(t){super(),M(this,t,kn,Bn,N,{id:0,name:1,size:2,color:3,rotate:4,spin:5,style:6,bordered:7})}},$t=Pt;function En(e){let t,n,o,r,l,i,c,s,u,f,a;return n=new $t({props:{name:"Images"}}),l=new $t({props:{name:"Delete"}}),s=new $t({props:{name:"Quote"}}),{c(){t=U("button"),D(n.$$.fragment),o=S(),r=U("button"),D(l.$$.fragment),i=S(),c=U("button"),D(s.$$.fragment),p(t,"class","box"),p(r,"class","box"),p(r,"id",e[0]),p(c,"class","box"),p(c,"id",e[0])},m(_,d){Q(_,t,d),B(n,t,null),Q(_,o,d),Q(_,r,d),B(l,r,null),Q(_,i,d),Q(_,c,d),B(s,c,null),u=!0,f||(a=[R(t,"click",Ut.back),R(r,"click",Ln),R(c,"click",Dn)],f=!0)},p(_,[d]){(!u||d&1)&&p(r,"id",_[0]),(!u||d&1)&&p(c,"id",_[0])},i(_){u||(h(n.$$.fragment,_),h(l.$$.fragment,_),h(s.$$.fragment,_),u=!0)},o(_){x(n.$$.fragment,_),x(l.$$.fragment,_),x(s.$$.fragment,_),u=!1},d(_){_&&(F(t),F(o),F(r),F(i),F(c)),k(n),k(l),k(s),f=!1,I(a)}}}function Dn(e){let{id:t}=e.target;W.quote(Number(t))}function Ln(e){let{id:t}=e.target;W.del(Number(t))}function Sn(e,t,n){let{active:o}=t;return e.$$set=r=>{"active"in r&&n(0,o=r.active)},[o]}var Zt=class extends L{constructor(t){super(),M(this,t,Sn,En,N,{active:0})}},Je=Zt;function ze(e){let t,n,o;return{c(){t=U("fieldset"),n=U("h2"),o=U("button"),o.textContent=`${Ot("Add counter","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0447\u0451\u0442\u0447\u0438\u043A")}`,p(o,"class","svelte-1ajygs9"),p(t,"class","svelte-1ajygs9")},m(r,l){Q(r,t,l),$(t,n),$(n,o)},d(r){r&&F(t)}}}function Nn(e){let t,n,o,r,l,i,c,s,u,f,a,_,d,g,v,m=!e[1]&&ze(e);return{c(){t=U("form"),n=U("fieldset"),o=U("label"),r=U("input"),c=S(),s=U("label"),u=U("input"),d=S(),m&&m.c(),p(r,"id",l=String(e[0])),p(r,"type","date"),p(r,"name","start"),p(r,"max",e[2]),r.value=i=e[1]?.start||e[2],r.required=!0,p(r,"class","svelte-1ajygs9"),C(r,"clear",e[1]),p(u,"id",f=String(e[0])),p(u,"type","text"),p(u,"name","title"),p(u,"maxlength","15"),u.value=a=e[1]?.title||"",p(u,"placeholder",_=Ot("Counter name","\u0418\u043C\u044F \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0430")),p(u,"autocomplete","off"),u.required=!0,p(u,"class","svelte-1ajygs9"),C(u,"clear",e[1]),p(n,"class","svelte-1ajygs9"),p(t,"action","post"),p(t,"class","svelte-1ajygs9")},m(b,w){Q(b,t,w),$(t,n),$(n,o),$(o,r),$(n,c),$(n,s),$(s,u),$(n,d),m&&m.m(n,null),g||(v=[R(r,"input",e[4]),R(u,"change",e[4]),R(t,"submit",ge(e[3]))],g=!0)},p(b,[w]){w&1&&l!==(l=String(b[0]))&&p(r,"id",l),w&4&&p(r,"max",b[2]),w&6&&i!==(i=b[1]?.start||b[2])&&(r.value=i),w&2&&C(r,"clear",b[1]),w&1&&f!==(f=String(b[0]))&&p(u,"id",f),w&2&&a!==(a=b[1]?.title||"")&&u.value!==a&&(u.value=a),w&2&&C(u,"clear",b[1]),b[1]?m&&(m.d(1),m=null):m||(m=ze(b),m.c(),m.m(n,null))},i:y,o:y,d(b){b&&F(t),m&&m.d(),g=!1,I(v)}}}function In(e,t,n){let o;lt(e,De,s=>n(2,o=s));let{id:r=0}=t,{counter:l=void 0}=t;function i(s){if(l)return;let u=new FormData(s.target),f=Object.fromEntries(u);W.add(f)}function c(s){if(!l)return;let{id:u,name:f,value:a}=s.currentTarget,_={[f]:a};W.change(Number(u),_)}return e.$$set=s=>{"id"in s&&n(0,r=s.id),"counter"in s&&n(1,l=s.counter)},[r,l,o,i,c]}var Gt=class extends L{constructor(t){super(),M(this,t,In,Nn,N,{id:0,counter:1})}},Xt=Gt;function We(e,t,n){let o=e.slice();return o[6]=t[n],o[8]=n,o}function Mn(e){return{c:y,m:y,p:y,i:y,o:y,d:y}}function Cn(e){let t,n,o,r={ctx:e,current:null,token:null,hasCatch:!1,pending:Rn,then:Tn,catch:jn,blocks:[,,,]};return jt(n=tt.load(),r),{c(){t=X(),r.block.c()},m(l,i){Q(l,t,i),r.block.m(l,r.anchor=i),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(l,i){e=l,Tt(r,e,i)},i(l){o||(h(r.block),o=!0)},o(l){for(let i=0;i<3;i+=1){let c=r.blocks[i];x(c)}o=!1},d(l){l&&F(t),r.block.d(l),r.token=null,r=null}}}function jn(e){return{c:y,m:y,p:y,i:y,o:y,d:y}}function Tn(e){let t,n,o,r,l,i,c,s,u,f=ft(e[3]),a=[];for(let m=0;mx(a[m],1,1,()=>{a[m]=null});r=new Xt({});let d=[On,qn],g=[];function v(m,b){return m[2]?0:1}return c=v(e,-1),s=g[c]=d[c](e),{c(){t=U("main");for(let m=0;m{g[w]=null}),O(),s=g[c],s?s.p(m,b):(s=g[c]=d[c](m),s.c()),h(s,1),s.m(i,null)),(!u||b&4)&&C(i,"active",m[2])},i(m){if(!u){for(let b=0;bo.parentNode,i.anchor=o,l=!0},p(c,[s]){e=c,(!l||s&1)&&t!==(t=e[0])&&(document.title=t),Tt(i,e,s)},i(c){l||(h(i.block),l=!0)},o(c){for(let s=0;s<3;s+=1){let u=i.blocks[s];x(u)}l=!1},d(c){c&&(F(n),F(o)),i.block.d(c),i.token=null,i=null}}}function zn(e,t,n){let o,r;lt(e,Se,u=>n(3,o=u)),lt(e,Le,u=>n(4,r=u));let{name:l}=t,{repository:i}=t,c;function s(u){new IntersectionObserver(a,{threshold:.5}).observe(u);function a(_){let d=_.find(g=>g.isIntersecting);n(2,c=d?.target.id)}}return e.$$set=u=>{"name"in u&&n(0,l=u.name),"repository"in u&&n(1,i=u.repository)},[l,i,c,o,r,s]}var Ht=class extends L{constructor(t){super(),M(this,t,zn,Jn,N,{name:0,repository:1})}},Ze=Ht;var us=new Ze({target:document.body,props:{name:Kt,repository:te.url}});export{us as default};