diff --git a/docs/index.css b/docs/index.css index 833aa03..b798c8a 100644 --- a/docs/index.css +++ b/docs/index.css @@ -9,5 +9,5 @@ html, body { * { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -}.color-container.svelte-yl9omk.svelte-yl9omk{height:100px;display:flex;align-items:center;justify-content:center;user-select:none}.color-container.svelte-yl9omk>p.svelte-yl9omk{font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;font-style:italic;font-size:18px}.main-container.svelte-7d88a5.svelte-7d88a5{display:flex;width:100%;flex-direction:column;align-items:center}.carousel-container.svelte-7d88a5.svelte-7d88a5{display:flex;width:100%}.content-container.svelte-7d88a5.svelte-7d88a5{flex:1;display:flex;overflow:hidden;box-sizing:border-box}.content-container.svelte-7d88a5>div.svelte-7d88a5{width:100%;display:flex;transition-timing-function:ease-in-out;transition-property:transform}.arrow-container.svelte-7d88a5.svelte-7d88a5{padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}:root{--size:2px - }.circle.svelte-1bt6c9d{width:20px;height:20px;border-radius:50%;background-color:rgba(93, 93, 93, 0.5);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer}.circle.svelte-1bt6c9d:hover{opacity:0.9}.arrow.svelte-1bt6c9d{border:solid #1e1e1e;border-width:0 var(--size) var(--size) 0;padding:var(--size);position:relative}.next.svelte-1bt6c9d{transform:rotate(-45deg);left:calc(var(--size) / -2)}.prev.svelte-1bt6c9d{transform:rotate(135deg);right:calc(var(--size) / -2)}.disabled.svelte-1bt6c9d,.disabled.svelte-1bt6c9d:hover{opacity:0.5}:root{--dot-size:10px}.main-container.svelte-1j143j1{display:flex;align-items:center}.dot-container.svelte-1j143j1{height:calc(var(--dot-size) + 10px);width:calc(var(--dot-size) + 10x);display:flex;align-items:center;justify-content:center}.main-container.svelte-6wkp3k{display:flex;align-items:center;justify-content:center;height:16px;width:16px}.dot.svelte-6wkp3k{background-color:#5d5d5d;border-radius:50%;display:inline-block;opacity:0.5;cursor:pointer;transition:opacity 100ms ease}.dot.svelte-6wkp3k:hover{opacity:0.9}.current.svelte-6wkp3k{opacity:0.7} \ No newline at end of file +}.color-container.svelte-yl9omk.svelte-yl9omk{height:100px;display:flex;align-items:center;justify-content:center;user-select:none}.color-container.svelte-yl9omk>p.svelte-yl9omk{font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;font-style:italic;font-size:18px}.main-container.svelte-7d88a5.svelte-7d88a5{display:flex;width:100%;flex-direction:column;align-items:center}.carousel-container.svelte-7d88a5.svelte-7d88a5{display:flex;width:100%}.content-container.svelte-7d88a5.svelte-7d88a5{flex:1;display:flex;overflow:hidden;box-sizing:border-box}.content-container.svelte-7d88a5>div.svelte-7d88a5{width:100%;display:flex;transition-timing-function:ease-in-out;transition-property:transform}.arrow-container.svelte-7d88a5.svelte-7d88a5{padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}:root{--dot-size:10px}.main-container.svelte-1j143j1{display:flex;align-items:center}.dot-container.svelte-1j143j1{height:calc(var(--dot-size) + 10px);width:calc(var(--dot-size) + 10x);display:flex;align-items:center;justify-content:center}:root{--size:2px + }.circle.svelte-1bt6c9d{width:20px;height:20px;border-radius:50%;background-color:rgba(93, 93, 93, 0.5);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer}.circle.svelte-1bt6c9d:hover{opacity:0.9}.arrow.svelte-1bt6c9d{border:solid #1e1e1e;border-width:0 var(--size) var(--size) 0;padding:var(--size);position:relative}.next.svelte-1bt6c9d{transform:rotate(-45deg);left:calc(var(--size) / -2)}.prev.svelte-1bt6c9d{transform:rotate(135deg);right:calc(var(--size) / -2)}.disabled.svelte-1bt6c9d,.disabled.svelte-1bt6c9d:hover{opacity:0.5}.main-container.svelte-6wkp3k{display:flex;align-items:center;justify-content:center;height:16px;width:16px}.dot.svelte-6wkp3k{background-color:#5d5d5d;border-radius:50%;display:inline-block;opacity:0.5;cursor:pointer;transition:opacity 100ms ease}.dot.svelte-6wkp3k:hover{opacity:0.9}.current.svelte-6wkp3k{opacity:0.7} \ No newline at end of file diff --git a/docs/index.js b/docs/index.js index 47b05c1..06af6b2 100644 --- a/docs/index.js +++ b/docs/index.js @@ -1 +1 @@ -var app=function(){"use strict";function t(){}const n=t=>t;function e(t,n){for(const e in n)t[e]=n[e];return t}function o(t){return t()}function r(){return Object.create(null)}function i(t){t.forEach(o)}function c(t){return"function"==typeof t}function s(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function u(n,e,o){n.$$.on_destroy.push(function(n,...e){if(null==n)return t;const o=n.subscribe(...e);return o.unsubscribe?()=>o.unsubscribe():o}(e,o))}function l(t,n,e,o){if(t){const r=a(t,n,e,o);return t[0](r)}}function a(t,n,o,r){return t[1]&&r?e(o.ctx.slice(),t[1](r(n))):o.ctx}function f(t,n,e,o,r,i,c){const s=function(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(void 0===n.dirty)return r;if("object"==typeof r){const t=[],e=Math.max(n.dirty.length,r.length);for(let o=0;owindow.performance.now():()=>Date.now(),m=d?t=>requestAnimationFrame(t):t;const h=new Set;function g(t){h.forEach((n=>{n.c(t)||(h.delete(n),n.f())})),0!==h.size&&m(g)}function $(t,n){t.appendChild(n)}function y(t,n,e){t.insertBefore(n,e||null)}function v(t){t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function w(){return b(" ")}function k(){return b("")}function E(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function P(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function C(t,n,e,o){t.style.setProperty(n,e,o?"important":"")}function I(t,n,e){t.classList[e?"add":"remove"](n)}let _;function M(t){_=t}function L(){if(!_)throw new Error("Function called outside component initialization");return _}function A(){const t=L();return(n,e)=>{const o=t.$$.callbacks[n];if(o){const r=function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(n,e);o.slice().forEach((n=>{n.call(t,r)}))}}}function j(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach((t=>t(n)))}const D=[],N=[],S=[],O=[],T=Promise.resolve();let z=!1;function X(){z||(z=!0,T.then(Y))}function W(t){S.push(t)}let q=!1;const F=new Set;function Y(){if(!q){q=!0;do{for(let t=0;t{G.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}}function U(t,n){t.d(1),n.delete(t.key)}function V(t,n){R(t,1,1,(()=>{n.delete(t.key)}))}function Z(t,n,e,o,r,i,c,s,u,l,a,f){let d=t.length,p=i.length,m=d;const h={};for(;m--;)h[t[m].key]=m;const g=[],$=new Map,y=new Map;for(m=p;m--;){const t=f(r,i,m),s=e(t);let u=c.get(s);u?o&&u.p(t,n):(u=l(s,t),u.c()),$.set(s,g[m]=u),s in h&&y.set(s,Math.abs(m-h[s]))}const v=new Set,x=new Set;function b(t){Q(t,1),t.m(s,a),c.set(t.key,t),a=t.first,p--}for(;d&&p;){const n=g[p-1],e=t[d-1],o=n.key,r=e.key;n===e?(a=n.first,d--,p--):$.has(r)?!c.has(o)||v.has(o)?b(n):x.has(r)?d--:y.get(o)>y.get(r)?(x.add(o),b(n)):(v.add(r),d--):(u(e,c),d--)}for(;d--;){const n=t[d];$.has(n.key)||u(n,c)}for(;p;)b(g[p-1]);return g}function tt(t){t&&t.c()}function nt(t,n,e){const{fragment:r,on_mount:s,on_destroy:u,after_update:l}=t.$$;r&&r.m(n,e),W((()=>{const n=s.map(o).filter(c);u?u.push(...n):i(n),t.$$.on_mount=[]})),l.forEach(W)}function et(t,n){const e=t.$$;null!==e.fragment&&(i(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function ot(n,e,o,c,s,u,l=[-1]){const a=_;M(n);const f=e.props||{},d=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:s,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:r(),dirty:l,skip_bound:!1};let p=!1;if(d.ctx=o?o(n,f,((t,e,...o)=>{const r=o.length?o[0]:e;return d.ctx&&s(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),p&&function(t,n){-1===t.$$.dirty[0]&&(D.push(t),X(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const it=[];function ct(n,e=t){let o;const r=[];function i(t){if(s(n,t)&&(n=t,o)){const t=!it.length;for(let t=0;t{const t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(o(),o=null)}}}}function st(t,n){return Math.min(t+1,n-1)}function ut(t,n){const e=t+1;return e>n-1?0:e}function lt(t,n){return Math.max(t-1,0)}function at(t,n){const e=t-1;return e>=0?e:n-1}const ft={currentPageIndex:0};const dt=function(){const{subscribe:t,set:n,update:e}=ct(ft);return{subscribe:t,next:function({infinite:t,pagesCount:n}){e((e=>{const o=function(t){return t?ut:st}(t)(e.currentPageIndex,n);return{...e,currentPageIndex:o}}))},prev:function({infinite:t,pagesCount:n}){e((e=>{const o=function(t){return t?at:lt}(t)(e.currentPageIndex,n);return{...e,currentPageIndex:o}}))},setCurrentPageIndex:function(t){e((n=>({...n,currentPageIndex:t})))},init:function(t){n({...ft,currentPageIndex:t})},moveToPage:function({pageIndex:t,pagesCount:n}){e((e=>({...e,currentPageIndex:t<0?0:Math.min(t,n-1)})))}}}();function pt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function mt(t){return"[object Date]"===Object.prototype.toString.call(t)}function ht(t,n){if(t===n||t!=t)return()=>t;const e=typeof t;if(e!==typeof n||Array.isArray(t)!==Array.isArray(n))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const e=n.map(((n,e)=>ht(t[e],n)));return t=>e.map((n=>n(t)))}if("object"===e){if(!t||!n)throw new Error("Object cannot be null");if(mt(t)&&mt(n)){t=t.getTime();const e=(n=n.getTime())-t;return n=>new Date(t+n*e)}const e=Object.keys(n),o={};return e.forEach((e=>{o[e]=ht(t[e],n[e])})),t=>{const n={};return e.forEach((e=>{n[e]=o[e](t)})),n}}if("number"===e){const e=n-t;return n=>t+n*e}throw new Error(`Cannot interpolate ${e} values`)}function gt(t,o={}){const r=ct(t);let i,c=t;function s(s,u){if(null==t)return r.set(t=s),Promise.resolve();c=s;let l=i,a=!1,{delay:f=0,duration:d=400,easing:$=n,interpolate:y=ht}=e(e({},o),u);if(0===d)return l&&(l.abort(),l=null),r.set(t=c),Promise.resolve();const v=p()+f;let x;return i=function(t){let n;return 0===h.size&&m(g),{promise:new Promise((e=>{h.add(n={c:t,f:e})})),abort(){h.delete(n)}}}((n=>{if(nd?(r.set(t=s),!1):(r.set(t=x($(e/d))),!0)})),i.promise}return{set:s,update:(n,e)=>s(n(c,t),e),subscribe:r.subscribe}}function $t(n){let e,o,r,i;return{c(){e=x("div"),o=x("div"),P(o,"class","dot svelte-6wkp3k"),C(o,"height",n[1]+"px"),C(o,"width",n[1]+"px"),I(o,"current",n[0]),P(e,"class","main-container svelte-6wkp3k")},m(t,c){y(t,e,c),$(e,o),r||(i=E(o,"click",n[3]),r=!0)},p(t,[n]){2&n&&C(o,"height",t[1]+"px"),2&n&&C(o,"width",t[1]+"px"),1&n&&I(o,"current",t[0])},i:t,o:t,d(t){t&&v(e),r=!1,i()}}}function yt(t,n,e){let o;const r=gt(5,{duration:250,easing:pt});u(t,r,(t=>e(1,o=t)));let{active:i=!1}=n;return t.$$set=t=>{"active"in t&&e(0,i=t.active)},t.$$.update=()=>{1&t.$$.dirty&&r.set(i?8:5)},[i,o,r,function(n){j(t,n)}]}class vt extends rt{constructor(t){super(),ot(this,t,yt,$t,s,{active:0})}}function xt(t,n,e){const o=t.slice();return o[5]=n[e],o[7]=e,o}function bt(t,n){let e,o,r,i;return o=new vt({props:{active:n[1]===n[7]}}),o.$on("click",(function(){return n[3](n[7])})),{key:t,first:null,c(){e=x("div"),tt(o.$$.fragment),r=w(),P(e,"class","dot-container svelte-1j143j1"),this.first=e},m(t,n){y(t,e,n),nt(o,e,null),$(e,r),i=!0},p(t,e){n=t;const r={};3&e&&(r.active=n[1]===n[7]),o.$set(r)},i(t){i||(Q(o.$$.fragment,t),i=!0)},o(t){R(o.$$.fragment,t),i=!1},d(t){t&&v(e),et(o)}}}function wt(t){let n,e,o=[],r=new Map,i=Array(t[0]);const c=t=>t[7];for(let n=0;n{"pagesCount"in t&&e(0,r=t.pagesCount),"currentPageIndex"in t&&e(1,i=t.currentPageIndex)},[r,i,c,t=>c(t)]}class Et extends rt{constructor(t){super(),ot(this,t,kt,wt,s,{pagesCount:0,currentPageIndex:1})}}const Pt="prev",Ct="next";function It(n){let e,o,r,i;return{c(){e=x("div"),o=x("i"),P(o,"class","arrow svelte-1bt6c9d"),I(o,"next",n[0]===Ct),I(o,"prev",n[0]===Pt),P(e,"class","circle svelte-1bt6c9d"),I(e,"disabled",n[1])},m(t,c){y(t,e,c),$(e,o),r||(i=E(e,"click",n[2]),r=!0)},p(t,[n]){1&n&&I(o,"next",t[0]===Ct),1&n&&I(o,"prev",t[0]===Pt),2&n&&I(e,"disabled",t[1])},i:t,o:t,d(t){t&&v(e),r=!1,i()}}}function _t(t,n,e){let{direction:o=Ct}=n,{disabled:r=!1}=n;return t.$$set=t=>{"direction"in t&&e(0,o=t.direction),"disabled"in t&&e(1,r=t.disabled)},[o,r,function(n){j(t,n)}]}class Mt extends rt{constructor(t){super(),ot(this,t,_t,It,s,{direction:0,disabled:1})}}function Lt(t,n){t.removeEventListener("mouseup",n),t.removeEventListener("touchend",n)}function At(t,n){t.removeEventListener("mousemove",n),t.removeEventListener("touchmove",n)}function jt(t){if(t instanceof TouchEvent){const n=t.touches[0];return{x:n?n.clientX:0,y:n?n.clientY:0}}return{x:t.clientX,y:t.clientY}}function Dt(t,{thresholdProvider:n}){const e=(o=t,function(t,n){o.dispatchEvent(new CustomEvent(t,{detail:n}))});var o;let r,i,c=0;function s(t){c=0;const n=jt(t);r=n.x,i=n.y,e("start",{x:r,y:i}),function(t,n){t.addEventListener("mousemove",n),t.addEventListener("touchmove",n)}(window,u),function(t,n){t.addEventListener("mouseup",n),t.addEventListener("touchend",n)}(window,l)}function u(t){const o=jt(t),s=o.x-r,a=o.y-i;r=o.x,i=o.y,e("move",{x:r,y:i,dx:s,dy:a}),0!==s&&Math.sign(s)!==Math.sign(c)&&(c=0),c+=s,Math.abs(c)>n()&&(e("threshold",{direction:c>0?Pt:Ct}),Lt(window,l),At(window,u))}function l(t){const n=jt(t);r=n.x,i=n.y,e("end",{x:r,y:i}),Lt(window,l),At(window,u)}return function(t,n){t.addEventListener("mousedown",n),t.addEventListener("touchstart",n)}(t,s),{destroy(){!function(t,n){t.removeEventListener("mousedown",n),t.removeEventListener("touchstart",n)}(t,s)}}}const Nt=t=>({currentPageIndex:256&t[0],pagesCount:512&t[0]}),St=t=>({currentPageIndex:t[8],pagesCount:t[9],showPage:t[30]}),Ot=t=>({}),Tt=t=>({showNextPage:t[13]}),zt=t=>({}),Xt=t=>({showPrevPage:t[12]});function Wt(t){let n;const e=t[26].prev,o=l(e,t,t[25],Xt),r=o||function(t){let n,e,o;return e=new Mt({props:{direction:"prev",disabled:!t[1]&&0===t[8]}}),e.$on("click",t[12]),{c(){n=x("div"),tt(e.$$.fragment),P(n,"class","arrow-container svelte-7d88a5")},m(t,r){y(t,n,r),nt(e,n,null),o=!0},p(t,n){const o={};258&n[0]&&(o.disabled=!t[1]&&0===t[8]),e.$set(o)},i(t){o||(Q(e.$$.fragment,t),o=!0)},o(t){R(e.$$.fragment,t),o=!1},d(t){t&&v(n),et(e)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){o?o.p&&33554432&n[0]&&f(o,e,t,t[25],n,zt,Xt):r&&r.p&&258&n[0]&&r.p(t,n)},i(t){n||(Q(r,t),n=!0)},o(t){R(r,t),n=!1},d(t){r&&r.d(t)}}}function qt(t){let n;const e=t[26].next,o=l(e,t,t[25],Tt),r=o||function(t){let n,e,o;return e=new Mt({props:{direction:"next",disabled:!t[1]&&t[8]===t[9]-1}}),e.$on("click",t[13]),{c(){n=x("div"),tt(e.$$.fragment),P(n,"class","arrow-container svelte-7d88a5")},m(t,r){y(t,n,r),nt(e,n,null),o=!0},p(t,n){const o={};770&n[0]&&(o.disabled=!t[1]&&t[8]===t[9]-1),e.$set(o)},i(t){o||(Q(e.$$.fragment,t),o=!0)},o(t){R(e.$$.fragment,t),o=!1},d(t){t&&v(n),et(e)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){o?o.p&&33554432&n[0]&&f(o,e,t,t[25],n,Ot,Tt):r&&r.p&&770&n[0]&&r.p(t,n)},i(t){n||(Q(r,t),n=!0)},o(t){R(r,t),n=!1},d(t){r&&r.d(t)}}}function Ft(t){let n;const e=t[26].dots,o=l(e,t,t[25],St),r=o||function(t){let n,e;return n=new Et({props:{pagesCount:t[9],currentPageIndex:t[8]}}),n.$on("pageChange",t[10]),{c(){tt(n.$$.fragment)},m(t,o){nt(n,t,o),e=!0},p(t,e){const o={};512&e[0]&&(o.pagesCount=t[9]),256&e[0]&&(o.currentPageIndex=t[8]),n.$set(o)},i(t){e||(Q(n.$$.fragment,t),e=!0)},o(t){R(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){o?o.p&&33555200&n[0]&&f(o,e,t,t[25],n,Nt,St):r&&r.p&&768&n[0]&&r.p(t,n)},i(t){n||(Q(r,t),n=!0)},o(t){R(r,t),n=!1},d(t){r&&r.d(t)}}}function Yt(n){let e,o,r,s,u,a,d,p,m,h,g,b=n[0]&&Wt(n);const k=n[26].default,I=l(k,n,n[25],null);let _=n[0]&&qt(n),M=n[2]&&Ft(n);return{c(){e=x("div"),o=x("div"),b&&b.c(),r=w(),s=x("div"),u=x("div"),I&&I.c(),d=w(),_&&_.c(),p=w(),M&&M.c(),C(u,"transform","translateX("+n[5]+"px)"),C(u,"transition-duration",n[3]+"ms"),P(u,"class","svelte-7d88a5"),P(s,"class","content-container svelte-7d88a5"),P(o,"class","carousel-container svelte-7d88a5"),P(e,"class","main-container svelte-7d88a5")},m(i,l){var f;y(i,e,l),$(e,o),b&&b.m(o,null),$(o,r),$(o,s),$(s,u),I&&I.m(u,null),n[28](u),n[29](s),$(o,d),_&&_.m(o,null),$(e,p),M&&M.m(e,null),m=!0,h||(g=[(f=a=Dt.call(null,u,{thresholdProvider:n[27]}),f&&c(f.destroy)?f.destroy:t),E(u,"start",n[14]),E(u,"move",n[16]),E(u,"end",n[17]),E(u,"threshold",n[15])],h=!0)},p(t,n){t[0]?b?(b.p(t,n),1&n[0]&&Q(b,1)):(b=Wt(t),b.c(),Q(b,1),b.m(o,r)):b&&(J(),R(b,1,1,(()=>{b=null})),K()),I&&I.p&&33554432&n[0]&&f(I,k,t,t[25],n,null,null),(!m||32&n[0])&&C(u,"transform","translateX("+t[5]+"px)"),(!m||8&n[0])&&C(u,"transition-duration",t[3]+"ms"),a&&c(a.update)&&16&n[0]&&a.update.call(null,{thresholdProvider:t[27]}),t[0]?_?(_.p(t,n),1&n[0]&&Q(_,1)):(_=qt(t),_.c(),Q(_,1),_.m(o,null)):_&&(J(),R(_,1,1,(()=>{_=null})),K()),t[2]?M?(M.p(t,n),4&n[0]&&Q(M,1)):(M=Ft(t),M.c(),Q(M,1),M.m(e,null)):M&&(J(),R(M,1,1,(()=>{M=null})),K())},i(t){m||(Q(b),Q(I,t),Q(_),Q(M),m=!0)},o(t){R(b),R(I,t),R(_),R(M),m=!1},d(t){t&&v(e),b&&b.d(),I&&I.d(t),n[28](null),n[29](null),_&&_.d(),M&&M.d(),h=!1,i(g)}}}function Bt(t,n,e){let o,r,{$$slots:i={},$$scope:c}=n;const s={[Ct]:M,[Pt]:_};let u,l,{arrows:a=!0}=n,{infinite:f=!0}=n,{initialPageIndex:d=1}=n,{speed:p=500}=n,m=p,{autoplay:h=!1}=n,{autoplaySpeed:g=3e3}=n,{autoplayDirection:$=Ct}=n,{dots:y=!0}=n,v=0,x=0,b=0,w=0;const k=dt.subscribe((t=>{e(23,v=t.currentPageIndex)}));function E(){const t=l.children;e(4,b=u.clientWidth),e(24,x=t.length);for(let n=0;n{C(e)}),n)}function _(){dt.prev({infinite:f,pagesCount:x}),C(!0)}function M(){dt.next({infinite:f,pagesCount:x}),C(!0)}P=async()=>{await(X(),T),l&&u&&(f&&function(){const t=l.firstChild,n=l.children[l.children.length-1];l.prepend(n.cloneNode(!0)),l.append(t.cloneNode(!0))}(),E());const{teardownAutoplay:t}=function(){let t;return h&&(t=setInterval((()=>{s[$]()}),g)),{teardownAutoplay:()=>{t&&clearInterval(t)}}}();var n;return n=E,window.addEventListener("resize",n),()=>{!function(t){window.removeEventListener("resize",t)}(E),t()}},L().$$.on_mount.push(P),function(t){L().$$.on_destroy.push(t)}((()=>{k()}));return t.$$set=t=>{"arrows"in t&&e(0,a=t.arrows),"infinite"in t&&e(1,f=t.infinite),"initialPageIndex"in t&&e(18,d=t.initialPageIndex),"speed"in t&&e(19,p=t.speed),"autoplay"in t&&e(20,h=t.autoplay),"autoplaySpeed"in t&&e(21,g=t.autoplaySpeed),"autoplayDirection"in t&&e(22,$=t.autoplayDirection),"dots"in t&&e(2,y=t.dots),"$$scope"in t&&e(25,c=t.$$scope)},t.$$.update=()=>{8388610&t.$$.dirty[0]&&e(8,o=v-Number(f)),16777218&t.$$.dirty[0]&&e(9,r=Math.max(x-(f?2:0),0))},[a,f,y,m,b,w,u,l,o,r,function(t){I(t.detail+Number(f),{offsetDelay:0,animated:!0})},I,_,M,function(){e(3,m=0)},function(t){s[t.detail.direction]()},function(t){e(5,w+=t.detail.dx)},function(){I(v,{offsetDelay:0,animated:!0})},d,p,h,g,$,v,x,c,i,()=>b/3,function(t){N[t?"unshift":"push"]((()=>{l=t,e(7,l)}))},function(t){N[t?"unshift":"push"]((()=>{u=t,e(6,u)}))},t=>I(t,{offsetDelay:0,animated:!0})]}class Gt extends rt{constructor(t){super(),ot(this,t,Bt,Yt,s,{arrows:0,infinite:1,initialPageIndex:18,speed:19,autoplay:20,autoplaySpeed:21,autoplayDirection:22,dots:2},[-1,-1])}}function Ht(t,n,e){const o=t.slice();return o[1]=n[e],o[3]=e,o}function Jt(t,n,e){const o=t.slice();return o[4]=n[e].color,o[5]=n[e].text,o}function Kt(t,n,e){const o=t.slice();return o[4]=n[e].color,o[5]=n[e].text,o}function Qt(t,n){let e,o,r,i,c=n[5]+"";return{key:t,first:null,c(){e=x("div"),o=x("p"),r=b(c),i=w(),P(o,"class","svelte-yl9omk"),P(e,"class","color-container svelte-yl9omk"),C(e,"background-color",n[4]),this.first=e},m(t,n){y(t,e,n),$(e,o),$(o,r),$(e,i)},p(t,e){n=t},d(t){t&&v(e)}}}function Rt(t){let n,e=[],o=new Map,r=t[0].flat();const i=t=>t[4];for(let n=0;nt[4];for(let t=0;tt[3];for(let n=0;nt;function n(t,e){for(const n in e)t[n]=e[n];return t}function o(t){return t()}function r(){return Object.create(null)}function i(t){t.forEach(o)}function c(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function u(e,n,o){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const o=e.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}(n,o))}function l(t,e,n,o){if(t){const r=a(t,e,n,o);return t[0](r)}}function a(t,e,o,r){return t[1]&&r?n(o.ctx.slice(),t[1](r(e))):o.ctx}function f(t,e,n,o,r,i,c){const s=function(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;owindow.performance.now():()=>Date.now(),m=d?t=>requestAnimationFrame(t):t;const h=new Set;function g(t){h.forEach((e=>{e.c(t)||(h.delete(e),e.f())})),0!==h.size&&m(g)}function $(t,e){t.appendChild(e)}function v(t,e,n){t.insertBefore(e,n||null)}function y(t){t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function w(){return b(" ")}function k(){return b("")}function E(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function P(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function C(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function I(t,e,n){t.classList[n?"add":"remove"](e)}let _;function M(t){_=t}function L(){if(!_)throw new Error("Function called outside component initialization");return _}function A(){const t=L();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}function j(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t(e)))}const D=[],N=[],S=[],O=[],T=Promise.resolve();let z=!1;function X(){z||(z=!0,T.then(Y))}function W(t){S.push(t)}let q=!1;const F=new Set;function Y(){if(!q){q=!0;do{for(let t=0;t{G.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}function U(t,e){t.d(1),e.delete(t.key)}function V(t,e){R(t,1,1,(()=>{e.delete(t.key)}))}function Z(t,e,n,o,r,i,c,s,u,l,a,f){let d=t.length,p=i.length,m=d;const h={};for(;m--;)h[t[m].key]=m;const g=[],$=new Map,v=new Map;for(m=p;m--;){const t=f(r,i,m),s=n(t);let u=c.get(s);u?o&&u.p(t,e):(u=l(s,t),u.c()),$.set(s,g[m]=u),s in h&&v.set(s,Math.abs(m-h[s]))}const y=new Set,x=new Set;function b(t){Q(t,1),t.m(s,a),c.set(t.key,t),a=t.first,p--}for(;d&&p;){const e=g[p-1],n=t[d-1],o=e.key,r=n.key;e===n?(a=e.first,d--,p--):$.has(r)?!c.has(o)||y.has(o)?b(e):x.has(r)?d--:v.get(o)>v.get(r)?(x.add(o),b(e)):(y.add(r),d--):(u(n,c),d--)}for(;d--;){const e=t[d];$.has(e.key)||u(e,c)}for(;p;)b(g[p-1]);return g}function tt(t){t&&t.c()}function et(t,e,n){const{fragment:r,on_mount:s,on_destroy:u,after_update:l}=t.$$;r&&r.m(e,n),W((()=>{const e=s.map(o).filter(c);u?u.push(...e):i(e),t.$$.on_mount=[]})),l.forEach(W)}function nt(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ot(e,n,o,c,s,u,l=[-1]){const a=_;M(e);const f=n.props||{},d=e.$$={fragment:null,ctx:null,props:u,update:t,not_equal:s,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:r(),dirty:l,skip_bound:!1};let p=!1;if(d.ctx=o?o(e,f,((t,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&s(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),p&&function(t,e){-1===t.$$.dirty[0]&&(D.push(t),X(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const it=[];function ct(e,n=t){let o;const r=[];function i(t){if(s(e,t)&&(e=t,o)){const t=!it.length;for(let t=0;t{const t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(o(),o=null)}}}}function st(t,e){return Math.min(t+1,e-1)}function ut(t,e){const n=t+1;return n>e-1?0:n}function lt(t,e){return Math.max(t-1,0)}function at(t,e){const n=t-1;return n>=0?n:e-1}const ft={currentPageIndex:0};function dt(){const{subscribe:t,set:e,update:n}=ct(ft);return{subscribe:t,next:function({infinite:t,pagesCount:e}){n((n=>{const o=function(t){return t?ut:st}(t)(n.currentPageIndex,e);return{...n,currentPageIndex:o}}))},prev:function({infinite:t,pagesCount:e}){n((n=>{const o=function(t){return t?at:lt}(t)(n.currentPageIndex,e);return{...n,currentPageIndex:o}}))},setCurrentPageIndex:function(t){n((e=>({...e,currentPageIndex:t})))},init:function(t){e({...ft,currentPageIndex:t})},moveToPage:function({pageIndex:t,pagesCount:e}){n((n=>({...n,currentPageIndex:t<0?0:Math.min(t,e-1)})))}}}function pt(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function mt(t){return"[object Date]"===Object.prototype.toString.call(t)}function ht(t,e){if(t===e||t!=t)return()=>t;const n=typeof t;if(n!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const n=e.map(((e,n)=>ht(t[n],e)));return t=>n.map((e=>e(t)))}if("object"===n){if(!t||!e)throw new Error("Object cannot be null");if(mt(t)&&mt(e)){t=t.getTime();const n=(e=e.getTime())-t;return e=>new Date(t+e*n)}const n=Object.keys(e),o={};return n.forEach((n=>{o[n]=ht(t[n],e[n])})),t=>{const e={};return n.forEach((n=>{e[n]=o[n](t)})),e}}if("number"===n){const n=e-t;return e=>t+e*n}throw new Error(`Cannot interpolate ${n} values`)}function gt(t,o={}){const r=ct(t);let i,c=t;function s(s,u){if(null==t)return r.set(t=s),Promise.resolve();c=s;let l=i,a=!1,{delay:f=0,duration:d=400,easing:$=e,interpolate:v=ht}=n(n({},o),u);if(0===d)return l&&(l.abort(),l=null),r.set(t=c),Promise.resolve();const y=p()+f;let x;return i=function(t){let e;return 0===h.size&&m(g),{promise:new Promise((n=>{h.add(e={c:t,f:n})})),abort(){h.delete(e)}}}((e=>{if(ed?(r.set(t=s),!1):(r.set(t=x($(n/d))),!0)})),i.promise}return{set:s,update:(e,n)=>s(e(c,t),n),subscribe:r.subscribe}}function $t(e){let n,o,r,i;return{c(){n=x("div"),o=x("div"),P(o,"class","dot svelte-6wkp3k"),C(o,"height",e[1]+"px"),C(o,"width",e[1]+"px"),I(o,"current",e[0]),P(n,"class","main-container svelte-6wkp3k")},m(t,c){v(t,n,c),$(n,o),r||(i=E(o,"click",e[3]),r=!0)},p(t,[e]){2&e&&C(o,"height",t[1]+"px"),2&e&&C(o,"width",t[1]+"px"),1&e&&I(o,"current",t[0])},i:t,o:t,d(t){t&&y(n),r=!1,i()}}}function vt(t,e,n){let o;const r=gt(5,{duration:250,easing:pt});u(t,r,(t=>n(1,o=t)));let{active:i=!1}=e;return t.$$set=t=>{"active"in t&&n(0,i=t.active)},t.$$.update=()=>{1&t.$$.dirty&&r.set(i?8:5)},[i,o,r,function(e){j(t,e)}]}class yt extends rt{constructor(t){super(),ot(this,t,vt,$t,s,{active:0})}}function xt(t,e,n){const o=t.slice();return o[5]=e[n],o[7]=n,o}function bt(t,e){let n,o,r,i;return o=new yt({props:{active:e[1]===e[7]}}),o.$on("click",(function(){return e[3](e[7])})),{key:t,first:null,c(){n=x("div"),tt(o.$$.fragment),r=w(),P(n,"class","dot-container svelte-1j143j1"),this.first=n},m(t,e){v(t,n,e),et(o,n,null),$(n,r),i=!0},p(t,n){e=t;const r={};3&n&&(r.active=e[1]===e[7]),o.$set(r)},i(t){i||(Q(o.$$.fragment,t),i=!0)},o(t){R(o.$$.fragment,t),i=!1},d(t){t&&y(n),nt(o)}}}function wt(t){let e,n,o=[],r=new Map,i=Array(t[0]);const c=t=>t[7];for(let e=0;e{"pagesCount"in t&&n(0,r=t.pagesCount),"currentPageIndex"in t&&n(1,i=t.currentPageIndex)},[r,i,c,t=>c(t)]}class Et extends rt{constructor(t){super(),ot(this,t,kt,wt,s,{pagesCount:0,currentPageIndex:1})}}const Pt="prev",Ct="next";function It(e){let n,o,r,i;return{c(){n=x("div"),o=x("i"),P(o,"class","arrow svelte-1bt6c9d"),I(o,"next",e[0]===Ct),I(o,"prev",e[0]===Pt),P(n,"class","circle svelte-1bt6c9d"),I(n,"disabled",e[1])},m(t,c){v(t,n,c),$(n,o),r||(i=E(n,"click",e[2]),r=!0)},p(t,[e]){1&e&&I(o,"next",t[0]===Ct),1&e&&I(o,"prev",t[0]===Pt),2&e&&I(n,"disabled",t[1])},i:t,o:t,d(t){t&&y(n),r=!1,i()}}}function _t(t,e,n){let{direction:o=Ct}=e,{disabled:r=!1}=e;return t.$$set=t=>{"direction"in t&&n(0,o=t.direction),"disabled"in t&&n(1,r=t.disabled)},[o,r,function(e){j(t,e)}]}class Mt extends rt{constructor(t){super(),ot(this,t,_t,It,s,{direction:0,disabled:1})}}function Lt(t,e){t.removeEventListener("mouseup",e),t.removeEventListener("touchend",e)}function At(t,e){t.removeEventListener("mousemove",e),t.removeEventListener("touchmove",e)}function jt(t){if(t instanceof TouchEvent){const e=t.touches[0];return{x:e?e.clientX:0,y:e?e.clientY:0}}return{x:t.clientX,y:t.clientY}}function Dt(t,{thresholdProvider:e}){const n=(o=t,function(t,e){o.dispatchEvent(new CustomEvent(t,{detail:e}))});var o;let r,i,c=0;function s(t){c=0;const e=jt(t);r=e.x,i=e.y,n("start",{x:r,y:i}),function(t,e){t.addEventListener("mousemove",e),t.addEventListener("touchmove",e)}(window,u),function(t,e){t.addEventListener("mouseup",e),t.addEventListener("touchend",e)}(window,l)}function u(t){const o=jt(t),s=o.x-r,a=o.y-i;r=o.x,i=o.y,n("move",{x:r,y:i,dx:s,dy:a}),0!==s&&Math.sign(s)!==Math.sign(c)&&(c=0),c+=s,Math.abs(c)>e()&&(n("threshold",{direction:c>0?Pt:Ct}),Lt(window,l),At(window,u))}function l(t){const e=jt(t);r=e.x,i=e.y,n("end",{x:r,y:i}),Lt(window,l),At(window,u)}return function(t,e){t.addEventListener("mousedown",e),t.addEventListener("touchstart",e)}(t,s),{destroy(){!function(t,e){t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",e)}(t,s)}}}const Nt=t=>({currentPageIndex:256&t[0],pagesCount:512&t[0]}),St=t=>({currentPageIndex:t[8],pagesCount:t[9],showPage:t[30]}),Ot=t=>({}),Tt=t=>({showNextPage:t[13]}),zt=t=>({}),Xt=t=>({showPrevPage:t[12]});function Wt(t){let e;const n=t[26].prev,o=l(n,t,t[25],Xt),r=o||function(t){let e,n,o;return n=new Mt({props:{direction:"prev",disabled:!t[1]&&0===t[8]}}),n.$on("click",t[12]),{c(){e=x("div"),tt(n.$$.fragment),P(e,"class","arrow-container svelte-7d88a5")},m(t,r){v(t,e,r),et(n,e,null),o=!0},p(t,e){const o={};258&e[0]&&(o.disabled=!t[1]&&0===t[8]),n.$set(o)},i(t){o||(Q(n.$$.fragment,t),o=!0)},o(t){R(n.$$.fragment,t),o=!1},d(t){t&&y(e),nt(n)}}}(t);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){o?o.p&&33554432&e[0]&&f(o,n,t,t[25],e,zt,Xt):r&&r.p&&258&e[0]&&r.p(t,e)},i(t){e||(Q(r,t),e=!0)},o(t){R(r,t),e=!1},d(t){r&&r.d(t)}}}function qt(t){let e;const n=t[26].next,o=l(n,t,t[25],Tt),r=o||function(t){let e,n,o;return n=new Mt({props:{direction:"next",disabled:!t[1]&&t[8]===t[9]-1}}),n.$on("click",t[13]),{c(){e=x("div"),tt(n.$$.fragment),P(e,"class","arrow-container svelte-7d88a5")},m(t,r){v(t,e,r),et(n,e,null),o=!0},p(t,e){const o={};770&e[0]&&(o.disabled=!t[1]&&t[8]===t[9]-1),n.$set(o)},i(t){o||(Q(n.$$.fragment,t),o=!0)},o(t){R(n.$$.fragment,t),o=!1},d(t){t&&y(e),nt(n)}}}(t);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){o?o.p&&33554432&e[0]&&f(o,n,t,t[25],e,Ot,Tt):r&&r.p&&770&e[0]&&r.p(t,e)},i(t){e||(Q(r,t),e=!0)},o(t){R(r,t),e=!1},d(t){r&&r.d(t)}}}function Ft(t){let e;const n=t[26].dots,o=l(n,t,t[25],St),r=o||function(t){let e,n;return e=new Et({props:{pagesCount:t[9],currentPageIndex:t[8]}}),e.$on("pageChange",t[10]),{c(){tt(e.$$.fragment)},m(t,o){et(e,t,o),n=!0},p(t,n){const o={};512&n[0]&&(o.pagesCount=t[9]),256&n[0]&&(o.currentPageIndex=t[8]),e.$set(o)},i(t){n||(Q(e.$$.fragment,t),n=!0)},o(t){R(e.$$.fragment,t),n=!1},d(t){nt(e,t)}}}(t);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,e){o?o.p&&33555200&e[0]&&f(o,n,t,t[25],e,Nt,St):r&&r.p&&768&e[0]&&r.p(t,e)},i(t){e||(Q(r,t),e=!0)},o(t){R(r,t),e=!1},d(t){r&&r.d(t)}}}function Yt(e){let n,o,r,s,u,a,d,p,m,h,g,b=e[0]&&Wt(e);const k=e[26].default,I=l(k,e,e[25],null);let _=e[0]&&qt(e),M=e[2]&&Ft(e);return{c(){n=x("div"),o=x("div"),b&&b.c(),r=w(),s=x("div"),u=x("div"),I&&I.c(),d=w(),_&&_.c(),p=w(),M&&M.c(),C(u,"transform","translateX("+e[5]+"px)"),C(u,"transition-duration",e[3]+"ms"),P(u,"class","svelte-7d88a5"),P(s,"class","content-container svelte-7d88a5"),P(o,"class","carousel-container svelte-7d88a5"),P(n,"class","main-container svelte-7d88a5")},m(i,l){var f;v(i,n,l),$(n,o),b&&b.m(o,null),$(o,r),$(o,s),$(s,u),I&&I.m(u,null),e[28](u),e[29](s),$(o,d),_&&_.m(o,null),$(n,p),M&&M.m(n,null),m=!0,h||(g=[(f=a=Dt.call(null,u,{thresholdProvider:e[27]}),f&&c(f.destroy)?f.destroy:t),E(u,"start",e[14]),E(u,"move",e[16]),E(u,"end",e[17]),E(u,"threshold",e[15])],h=!0)},p(t,e){t[0]?b?(b.p(t,e),1&e[0]&&Q(b,1)):(b=Wt(t),b.c(),Q(b,1),b.m(o,r)):b&&(J(),R(b,1,1,(()=>{b=null})),K()),I&&I.p&&33554432&e[0]&&f(I,k,t,t[25],e,null,null),(!m||32&e[0])&&C(u,"transform","translateX("+t[5]+"px)"),(!m||8&e[0])&&C(u,"transition-duration",t[3]+"ms"),a&&c(a.update)&&16&e[0]&&a.update.call(null,{thresholdProvider:t[27]}),t[0]?_?(_.p(t,e),1&e[0]&&Q(_,1)):(_=qt(t),_.c(),Q(_,1),_.m(o,null)):_&&(J(),R(_,1,1,(()=>{_=null})),K()),t[2]?M?(M.p(t,e),4&e[0]&&Q(M,1)):(M=Ft(t),M.c(),Q(M,1),M.m(n,null)):M&&(J(),R(M,1,1,(()=>{M=null})),K())},i(t){m||(Q(b),Q(I,t),Q(_),Q(M),m=!0)},o(t){R(b),R(I,t),R(_),R(M),m=!1},d(t){t&&y(n),b&&b.d(),I&&I.d(t),e[28](null),e[29](null),_&&_.d(),M&&M.d(),h=!1,i(g)}}}function Bt(t,e,n){let o,r,{$$slots:i={},$$scope:c}=e;const s={[Ct]:M,[Pt]:_};let u,l,{arrows:a=!0}=e,{infinite:f=!0}=e,{initialPageIndex:d=1}=e,{speed:p=500}=e,m=p,{autoplay:h=!1}=e,{autoplaySpeed:g=3e3}=e,{autoplayDirection:$=Ct}=e,{dots:v=!0}=e,y=dt(),x=0,b=0,w=0,k=0;function E(){const t=l.children;n(4,w=u.clientWidth),n(24,b=t.length);for(let e=0;e{C(n)}),e)}function _(){y.prev({infinite:f,pagesCount:b}),C(!0)}function M(){y.next({infinite:f,pagesCount:b}),C(!0)}P=async()=>{await(X(),T);const t=y.subscribe((t=>{n(23,x=t.currentPageIndex)}));l&&u&&(f&&function(){const t=l.firstChild,e=l.children[l.children.length-1];l.prepend(e.cloneNode(!0)),l.append(t.cloneNode(!0))}(),E());const{teardownAutoplay:e}=function(){let t;return h&&(t=setInterval((()=>{s[$]()}),g)),{teardownAutoplay:()=>{t&&clearInterval(t)}}}();var o;return o=E,window.addEventListener("resize",o),()=>{!function(t){window.removeEventListener("resize",t)}(E),e(),t()}},L().$$.on_mount.push(P);return t.$$set=t=>{"arrows"in t&&n(0,a=t.arrows),"infinite"in t&&n(1,f=t.infinite),"initialPageIndex"in t&&n(18,d=t.initialPageIndex),"speed"in t&&n(19,p=t.speed),"autoplay"in t&&n(20,h=t.autoplay),"autoplaySpeed"in t&&n(21,g=t.autoplaySpeed),"autoplayDirection"in t&&n(22,$=t.autoplayDirection),"dots"in t&&n(2,v=t.dots),"$$scope"in t&&n(25,c=t.$$scope)},t.$$.update=()=>{8388610&t.$$.dirty[0]&&n(8,o=x-Number(f)),16777218&t.$$.dirty[0]&&n(9,r=Math.max(b-(f?2:0),0))},[a,f,v,m,w,k,u,l,o,r,function(t){I(t.detail+Number(f),{offsetDelay:0,animated:!0})},I,_,M,function(){n(3,m=0)},function(t){s[t.detail.direction]()},function(t){n(5,k+=t.detail.dx)},function(){I(x,{offsetDelay:0,animated:!0})},d,p,h,g,$,x,b,c,i,()=>w/3,function(t){N[t?"unshift":"push"]((()=>{l=t,n(7,l)}))},function(t){N[t?"unshift":"push"]((()=>{u=t,n(6,u)}))},t=>I(t,{offsetDelay:0,animated:!0})]}class Gt extends rt{constructor(t){super(),ot(this,t,Bt,Yt,s,{arrows:0,infinite:1,initialPageIndex:18,speed:19,autoplay:20,autoplaySpeed:21,autoplayDirection:22,dots:2},[-1,-1])}}function Ht(t,e,n){const o=t.slice();return o[1]=e[n],o[3]=n,o}function Jt(t,e,n){const o=t.slice();return o[4]=e[n].color,o[5]=e[n].text,o}function Kt(t,e,n){const o=t.slice();return o[4]=e[n].color,o[5]=e[n].text,o}function Qt(t,e){let n,o,r,i,c=e[5]+"";return{key:t,first:null,c(){n=x("div"),o=x("p"),r=b(c),i=w(),P(o,"class","svelte-yl9omk"),P(n,"class","color-container svelte-yl9omk"),C(n,"background-color",e[4]),this.first=n},m(t,e){v(t,n,e),$(n,o),$(o,r),$(n,i)},p(t,n){e=t},d(t){t&&y(n)}}}function Rt(t){let e,n=[],o=new Map,r=t[0].flat();const i=t=>t[4];for(let e=0;et[4];for(let t=0;tt[3];for(let e=0;e