\r\n {#each sortedDaysOfWeek as day}\r\n {day[1]}\r\n {/each}\r\n
\r\n registerSelection(e.detail)} />\r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n",
+ "\r\n\r\n
\r\n {#each visibleMonth.weeks as week (week.id) }\r\n \r\n {/each}\r\n
\r\n\r\n\r\n",
+ "\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n",
+ "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthsOfYear[month][0]} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, { m: monthDefinition, i: index })}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n",
+ "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n"
],
"names": [],
- "mappings": "AAuSE,WAAW,eAAC,CAAC,AACX,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,CAAC,CAAC,IAAI,CACd,UAAU,CAAE,MAAM,CAClB,QAAQ,CAAE,OAAO,AACnB,CAAC,AAED,gBAAgB,eAAC,CAAC,AAChB,OAAO,CAAE,IAAI,CAAC,IAAI,CAClB,MAAM,CAAE,GAAG,CAAC,KAAK,CAAC,IAAI,qBAAqB,CAAC,CAC5C,OAAO,CAAE,KAAK,CACd,UAAU,CAAE,MAAM,CAClB,KAAK,CAAE,KAAK,CACZ,eAAe,CAAE,IAAI,CACrB,MAAM,CAAE,OAAO,CACf,UAAU,CAAE,IAAI,yBAAyB,CAAC,CAC1C,KAAK,CAAE,IAAI,mBAAmB,CAAC,CAC/B,aAAa,CAAE,GAAG,CAClB,UAAU,CAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC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AI,MAAM,sBAAsB,CAAC,AAC1C,CAAC,AACH,CAAC,AACD,WAAW,WAAW,cAAC,CAAC,AACtB,SAAS,CAAE,mBAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,AAChC,CAAC,AACD,WAAW,uBAAS,MAAM,CAC1B,WAAW,uBAAS,CACpB,yBAAW,OAAO,KAAK,SAAS,CAAC,AAAC,CAAC,AACjC,gBAAgB,CAAE,IAAI,iBAAiB,CAAC,CACxC,YAAY,CAAE,IAAI,iBAAiB,CAAC,CACpC,KAAK,CAAE,IAAI,AACb,CAAC,AACD,IAAI,uBAAS,CAAC,yBAAW,CACzB,IAAI,uBAAS,CAAC,yBAAW,MAAM,AAAC,CAAC,AAC/B,OAAO,CAAE,CAAC,CACV,UAAU,CAAE,IAAI,CAChB,YAAY,CAAE,IAAI,iBAAiB,CAAC,CACpC,KAAK,CAAE,IAAI,AACb,CAAC,AAED,WAAW,mBAAM,CAAC,AAChB,EAAE,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACjC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,IAAI,CAAC,AAAE,CAAC,AACnC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,IAAI,CAAC,AAAE,CAAC,AACnC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,IAAI,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACrC,CAAC"
}
\ No newline at end of file
diff --git a/docs/bundle.js b/docs/bundle.js
index 745cf8a..3f577d9 100644
--- a/docs/bundle.js
+++ b/docs/bundle.js
@@ -1,2 +1,2 @@
-var SvelteCalendar=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(b)}function k(e){var t;return y||(y=!0,v(b)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function C(e,t){for(var n=0;n>>0}(u)+"_"+c;if(!j[p]){if(!f){var g=E("style");document.head.appendChild(g),f=g.sheet}j[p]=!0,f.insertRule("@keyframes "+p+" "+u,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",I+=1,p}function N(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--I&&v(function(){if(!I){for(var e=f.cssRules.length;e--;)f.deleteRule(e);j={}}})}function F(e){W=e}function A(e){(function(){if(!W)throw new Error("Function called outside component initialization");return W})().$$.on_mount.push(e)}function J(){var e=W;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=T(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var L,q=[],z=[],R=[],X=[],G=Promise.resolve(),K=!1;function Q(){K||(K=!0,G.then(Z))}function U(e){R.push(e)}function V(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();F(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var s=t.x;void 0===s&&(s=0);var i=t.y;void 0===i&&(i=0);var c=t.opacity;void 0===c&&(c=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.transform,h=l*(1-c);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*s+"px, "+(1-e)*i+"px);\n\t\t\topacity: "+(l-h*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Me(e){var t,n,o,r,i,c=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=E("div"),n=E("button"),o=S(c),r=O(),P(n,"class","day--label svelte-5wjnn4"),P(n,"type","button"),Y(n,"selected",ve(e.day.date,e.selected)),Y(n,"highlighted",ve(e.day.date,e.highlighted)),Y(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),Y(n,"disabled",!e.day.selectable),s(n,ke,26,6,654),P(t,"class","day svelte-5wjnn4"),Y(t,"outside-month",!e.day.partOfMonth),Y(t,"is-today",e.day.isToday),Y(t,"is-disabled",!e.day.selectable),s(t,ke,20,4,489),i=x(n,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(r,s){e=s,r.days&&c!==(c=e.day.date.getDate())&&_(o,c),(r.areDatesEquivalent||r.days||r.selected)&&Y(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&Y(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&Y(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(Y(n,"disabled",!e.day.selectable),Y(t,"outside-month",!e.day.partOfMonth),Y(t,"is-today",e.day.isToday),Y(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),i()}}}function De(e){for(var t,r,i,c,d=e.days,h=[],u=0;u=g)return u(1,0),ne(e,!0,"end"),h(),a=!1;if(t>=f){var n=l((t-f)/r);u(n,1-n)}}return a})}var p=!1;return{start:function(){p||(N(e),l(c)?(c=c(),te().then(u)):u())},invalidate:function(){p=!1},end:function(){a&&(h(),a=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),c=!0)},o:function(e){r&&r.invalidate(),i=function(e,t,r){var s,i=t(e,r),c=!0,d=oe;function h(){var t=i.delay;void 0===t&&(t=0);var r=i.duration;void 0===r&&(r=300);var l=i.easing;void 0===l&&(l=o);var h=i.tick;void 0===h&&(h=n);var u=i.css;u&&(s=H(e,1,0,r,t,l,u));var p=m()+t,f=p+r;U(function(){return ne(e,!1,"start")}),k(function(t){if(c){if(t>=f)return h(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=p){var n=l((t-p)/r);h(1-n,n)}}return c})}return d.r+=1,l(i)?te().then(function(){i=i(),h()}):h(),{end:function(t){t&&i.tick&&i.tick(1,0),c&&(s&&N(e,s),c=!1)}}}(t,ye,{duration:180}),c=!1},d:function(e){e&&D(t),C(h,e),e&&i&&i.end()}}}function Ce(e,t,n){var o=J(),r=t.days,s=t.selected,i=t.highlighted,c=t.shouldShakeDate,a=t.direction,l=["days","selected","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){l.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",s=e.selected),"highlighted"in e&&n("highlighted",i=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",c=e.shouldShakeDate),"direction"in e&&n("direction",a=e.direction)},{dispatch:o,days:r,selected:s,highlighted:i,shouldShakeDate:c,direction:a,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Ee=function(e){function t(t){e.call(this,t),ue(this,t,Ce,De,d,["days","selected","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Se="src\\Components\\Month.svelte";function Oe(e,t,n){var o=Object.create(e);return o.week=t[n],o}function xe(e,t){var n,o,r=new Ee({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=S(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(se(r.$$.fragment,e),o=!0)},o:function(e){ie(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),he(r,e)}}}function Pe(e){for(var t,n,o=[],r=new Map,i=e.visibleMonth.weeks,c=function(e){return e.week.id},l=0;lw.get(O)?(M.add(S),D(C)):($.add(O),u--):(a(E,i),u--)}for(;u--;){var x=e[u];v.has(x.key)||a(x,i)}for(;p;)D(m[p-1]);return m}(o,e,c,1,n,s,r,t,ae,xe,null,Oe),oe.r||a(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",s=e.visibleMonth),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",a=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=h was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ye=ce.Object,Te="src\\Components\\NavBar.svelte";function We(e,t,n){var o=Ye.create(e);return o.monthDefinition=t[n],o.index=n,o}function Ie(e){var t,n,o,r,i,c=e.monthDefinition.abbrev;function a(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=E("div"),n=E("span"),o=S(c),r=O(),P(n,"class","svelte-1uccyem"),s(n,Te,69,8,1913),P(t,"class","month-selector--month svelte-1uccyem"),Y(t,"selected",e.index===e.month),Y(t,"selectable",e.monthDefinition.selectable),s(t,Te,63,6,1703),i=x(t,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&c!==(c=e.monthDefinition.abbrev)&&_(o,c),n.month&&Y(t,"selected",e.index===e.month),n.availableMonths&&Y(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),i()}}}function je(e){for(var t,o,r,i,c,l,d,h,u,p,f,g,m,v,w,y=e.monthsOfYear[e.month][0],b=e.availableMonths,k=[],B=0;B was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",s=e.month),"start"in e&&n("start",i=e.start),"end"in e&&n("end",c=e.end),"year"in e&&n("year",a=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth),"monthsOfYear"in e&&n("monthsOfYear",h=e.monthsOfYear)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1,monthsOfYear:1}),e.start||e.year||e.end||e.monthsOfYear){var t=i.getFullYear()===a,r=c.getFullYear()===a;n("availableMonths",o=h.map(function(e,n){return Object.assign({},{name:e[0],abbrev:e[1]},{selectable:!t&&!r||(!t||n>=i.getMonth())&&(!r||n<=c.getMonth())})}))}},{dispatch:r,month:s,start:i,end:c,year:a,canIncrementMonth:l,canDecrementMonth:d,monthsOfYear:h,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:p,monthSelected:f,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return f(t,e.index)}}}var Ne=function(e){function t(t){e.call(this,t),ue(this,t,He,je,d,["month","start","end","year","canIncrementMonth","canDecrementMonth","monthsOfYear"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'"),void 0!==n.monthsOfYear||"monthsOfYear"in o||console.warn(" was created without expected prop 'monthsOfYear'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0},monthsOfYear:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Fe=ce.window,Ae="src\\Components\\Popover.svelte",Je=function(){return{}},Le=function(){return{}},qe=function(){return{}},ze=function(){return{}};function Re(e){var t,n,o,r,i,c,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=h(f,e,ze),m=e.$$slots.contents,v=h(m,e,Le);return{c:function(){t=E("div"),n=E("div"),g&&g.c(),o=O(),r=E("div"),i=E("div"),c=E("div"),v&&v.c(),P(n,"class","trigger"),s(n,Ae,103,2,2365),P(c,"class","contents-inner svelte-1wmex1c"),s(c,Ae,114,6,2763),P(i,"class","contents svelte-1wmex1c"),s(i,Ae,113,4,2704),P(r,"class","contents-wrapper svelte-1wmex1c"),B(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),Y(r,"visible",e.open),Y(r,"shrink",e.shrink),s(r,Ae,107,2,2487),P(t,"class","sc-popover svelte-1wmex1c"),s(t,Ae,102,0,2317),d=[x(Fe,"resize",e.onwindowresize),x(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(s,a){M(s,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,i),$(i,c),v&&v.m(c,null),e.div2_binding(i),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,qe),u(f,t,ze)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,Je),u(m,t,Le)),(!l||e.translateX||e.translateY)&&B(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&Y(r,"visible",t.open),e.shrink&&Y(r,"shrink",t.shrink)},i:function(e){l||(se(g,e),se(v,e),l=!0)},o:function(e){ie(g,e),ie(v,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Xe(e,t,n){var o,r,s,i,c,a=J(),l=0,d=0,h=t.open;void 0===h&&(h=!1);var u=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",u=!0),t="animationend",o=function(){n("shrink",u=!1),n("open",h=!1),a("closed")},(e=i).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(h){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return s.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){h||n("open",h=!0),await(Q(),G);var e=c.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",h=e.open),"shrink"in e&&n("shrink",u=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:o,w:r,triggerContainer:s,contentsAnimated:i,contentsWrapper:c,translateY:l,translateX:d,open:h,shrink:u,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",h=!0),a("opened")},onwindowresize:function(){r=Fe.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",s=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",i=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",c=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:y}}var Ge=function(e){function t(t){e.call(this,t),ue(this,t,Xe,Re,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ke=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Qe=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ue={daysOfWeek:[["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"],["Saturday","Sat"]],monthsOfYear:[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]]},Ve=[{key:"d",method:function(e){return Qe(e.getDate(),2)}},{key:"D",method:function(e){return Ue.daysOfWeek[e.getDay()][1]}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ue.daysOfWeek[e.getDay()][0]}},{key:"F",method:function(e){return Ue.monthsOfYear[e.getMonth()][0]}},{key:"m",method:function(e){return Qe(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ue.monthsOfYear[e.getMonth()][1]}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Qe(e.getFullYear(),2,!0)}}],Ze=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Qe(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Qe(e.getHours(),2)}},{key:"i",method:function(e){return Qe(e.getMinutes(),2)}},{key:"s",method:function(e){return Qe(e.getSeconds(),2)}}],et=function(e){void 0===e&&(e={}),function(e){Object.keys(e).forEach(function(t){Ue[t]&&Ue[t].length==e[t].length&&(Ue[t]=e[t])})}(e)},tt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ve.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),Ze.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),t},nt={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},ot=Object.keys(nt).map(function(e){return nt[e]}),rt="src\\Components\\Datepicker.svelte";function st(e,t,n){var o=Object.create(e);return o.day=t[n],o}function it(e){var t,n;return{c:function(){t=E("button"),n=S(e.formattedSelected),P(t,"class","calendar-button svelte-1lorc63"),P(t,"type","button"),s(t,rt,263,8,7068)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&_(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function ct(e){var t,n,o=e.$$slots.default,r=h(o,e,null),i=!e.trigger&&it(e);return{c:function(){t=E("div"),r||i&&i.c(),r&&r.c(),P(t,"slot","trigger"),P(t,"class","svelte-1lorc63"),s(t,rt,260,4,7003)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):i&&i.m(t,null),n=!0},p:function(e,n){r||(n.trigger?i&&(i.d(1),i=null):i?i.p(e,n):((i=it(n)).c(),i.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),u(o,n,null))},i:function(e){n||(se(r,e),n=!0)},o:function(e){ie(r,e),n=!1},d:function(e){e&&D(t),r||i&&i.d(),r&&r.d(e)}}}function at(e){var t,o,r=e.day[1];return{c:function(){t=E("span"),o=S(r),P(t,"class","svelte-1lorc63"),s(t,rt,284,10,7637)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function lt(e){var t,n,o,r,i,c,a=new Ne({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth,monthsOfYear:e.monthsOfYear},$$inline:!0});a.$on("monthSelected",e.monthSelected_handler),a.$on("incrementMonth",e.incrementMonth_handler);for(var l=e.sortedDaysOfWeek,d=[],h=0;h0&&O>Z?j(1,O.getDate()):e<0&&O was created with unknown prop '"+e+"'")});var K=t.$$slots;void 0===K&&(K={});var Q,U,V,Z,ee,te,ne,oe,re=t.$$scope;return e.$set=function(e){"format"in e&&n("format",i=e.format),"start"in e&&n("start",c=e.start),"end"in e&&n("end",a=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",h=e.trigger),"selectableCallback"in e&&n("selectableCallback",u=e.selectableCallback),"weekStart"in e&&n("weekStart",p=e.weekStart),"daysOfWeek"in e&&n("daysOfWeek",f=e.daysOfWeek),"monthsOfYear"in e&&n("monthsOfYear",g=e.monthsOfYear),"style"in e&&n("style",m=e.style),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",v=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",w=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",y=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",b=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",k=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",$=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",M=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",D=e.dayHighlightedTextColor),"formattedSelected"in e&&n("formattedSelected",W=e.formattedSelected),"$$scope"in e&&n("$$scope",re=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,weekStart:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,buttonBackgroundColor:1,buttonBorderColor:1,buttonTextColor:1,highlightColor:1,dayBackgroundColor:1,dayTextColor:1,dayHighlightedBackgroundColor:1,dayHighlightedTextColor:1,style:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback||e.weekStart)&&n("months",Q=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=0),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var r=new Date(t.getFullYear(),t.getMonth()+1,1),s=[],i=new Date(e.getFullYear(),e.getMonth(),1),c=me(e,t,n);i0),(e.buttonBackgroundColor||e.buttonBorderColor||e.buttonTextColor||e.highlightColor||e.dayBackgroundColor||e.dayTextColor||e.dayHighlightedBackgroundColor||e.dayHighlightedTextColor||e.style)&&n("wrapperStyle",oe="\n --button-background-color: "+v+";\n --button-border-color: "+w+";\n --button-text-color: "+y+";\n --highlight-color: "+b+";\n --day-background-color: "+k+";\n --day-text-color: "+$+";\n --day-highlighted-background-color: "+M+";\n --day-highlighted-text-color: "+D+";\n "+m+"\n "),(e.format||e.selected)&&n("formattedSelected",W="function"==typeof i?i(l):tt(l,i))},{popover:o,format:i,start:c,end:a,selected:l,dateChosen:d,trigger:h,selectableCallback:u,weekStart:p,daysOfWeek:f,monthsOfYear:g,style:m,buttonBackgroundColor:v,buttonBorderColor:w,buttonTextColor:y,highlightColor:b,dayBackgroundColor:k,dayTextColor:$,dayHighlightedBackgroundColor:M,dayHighlightedTextColor:D,sortedDaysOfWeek:S,highlighted:O,shouldShakeDate:x,month:P,year:_,isOpen:B,isClosing:Y,formattedSelected:W,changeMonth:I,incrementMonth:j,registerSelection:L,registerClose:R,registerOpen:function(){n("highlighted",O=new Date(l)),n("month",P=l.getMonth()),n("year",_=l.getFullYear()),document.addEventListener("keydown",q),r("open")},visibleMonth:U,visibleMonthId:V,canIncrementMonth:te,canDecrementMonth:ne,wrapperStyle:oe,monthSelected_handler:function(e){return I(e.detail)},incrementMonth_handler:function(e){return j(e.detail)},dateSelected_handler:function(e){return L(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",B=e)},popover_1_shrink_binding:function(e){n("isClosing",Y=e)},$$slots:K,$$scope:re}}var pt=function(e){function t(t){e.call(this,t),ue(this,t,ut,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","weekStart","daysOfWeek","monthsOfYear","style","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","formattedSelected"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},weekStart:{configurable:!0},daysOfWeek:{configurable:!0},monthsOfYear:{configurable:!0},style:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0},formattedSelected:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.weekStart.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.weekStart.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.style.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.style.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe);return t(),pt}();
+var SvelteCalendar=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(b)}function k(e){var t;return y||(y=!0,v(b)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function C(e,t){for(var n=0;n>>0}(u)+"_"+c;if(!I[p]){if(!f){var g=E("style");document.head.appendChild(g),f=g.sheet}I[p]=!0,f.insertRule("@keyframes "+p+" "+u,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",j+=1,p}function N(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--j&&v(function(){if(!j){for(var e=f.cssRules.length;e--;)f.deleteRule(e);I={}}})}function F(e){W=e}function A(e){(function(){if(!W)throw new Error("Function called outside component initialization");return W})().$$.on_mount.push(e)}function q(){var e=W;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=T(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var J,L=[],R=[],z=[],X=[],G=Promise.resolve(),K=!1;function Q(){K||(K=!0,G.then(Z))}function U(e){z.push(e)}function V(e){X.push(e)}function Z(){var e=new Set;do{for(;L.length;){var t=L.shift();F(t),ee(t.$$)}for(;R.length;)R.pop()();for(var n=0;n=e&&r<=t;return{isInRange:s,selectable:s&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var s=t.x;void 0===s&&(s=0);var i=t.y;void 0===i&&(i=0);var c=t.opacity;void 0===c&&(c=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.transform,h=l*(1-c);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*s+"px, "+(1-e)*i+"px);\n\t\t\topacity: "+(l-h*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Me(e){var t,n,o,r,i,c=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=E("div"),n=E("button"),o=S(c),r=O(),P(n,"class","day--label svelte-5wjnn4"),P(n,"type","button"),Y(n,"selected",ve(e.day.date,e.selected)),Y(n,"highlighted",ve(e.day.date,e.highlighted)),Y(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),Y(n,"disabled",!e.day.selectable),s(n,ke,26,6,666),P(t,"class","day svelte-5wjnn4"),Y(t,"outside-month",!e.day.partOfMonth),Y(t,"is-today",e.day.isToday),Y(t,"is-disabled",!e.day.selectable),s(t,ke,20,4,501),i=x(n,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(r,s){e=s,r.days&&c!==(c=e.day.date.getDate())&&_(o,c),(r.areDatesEquivalent||r.days||r.selected)&&Y(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&Y(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&Y(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(Y(n,"disabled",!e.day.selectable),Y(t,"outside-month",!e.day.partOfMonth),Y(t,"is-today",e.day.isToday),Y(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),i()}}}function De(e){for(var t,r,i,c,d=e.days,h=[],u=0;u=g)return u(1,0),ne(e,!0,"end"),h(),a=!1;if(t>=f){var n=l((t-f)/r);u(n,1-n)}}return a})}var p=!1;return{start:function(){p||(N(e),l(c)?(c=c(),te().then(u)):u())},invalidate:function(){p=!1},end:function(){a&&(h(),a=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),c=!0)},o:function(e){r&&r.invalidate(),i=function(e,t,r){var s,i=t(e,r),c=!0,d=oe;function h(){var t=i.delay;void 0===t&&(t=0);var r=i.duration;void 0===r&&(r=300);var l=i.easing;void 0===l&&(l=o);var h=i.tick;void 0===h&&(h=n);var u=i.css;u&&(s=H(e,1,0,r,t,l,u));var p=m()+t,f=p+r;U(function(){return ne(e,!1,"start")}),k(function(t){if(c){if(t>=f)return h(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=p){var n=l((t-p)/r);h(1-n,n)}}return c})}return d.r+=1,l(i)?te().then(function(){i=i(),h()}):h(),{end:function(t){t&&i.tick&&i.tick(1,0),c&&(s&&N(e,s),c=!1)}}}(t,ye,{duration:180}),c=!1},d:function(e){e&&D(t),C(h,e),e&&i&&i.end()}}}function Ce(e,t,n){var o=q(),r=t.days,s=t.selected,i=t.highlighted,c=t.shouldShakeDate,a=t.direction,l=["days","selected","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){l.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",s=e.selected),"highlighted"in e&&n("highlighted",i=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",c=e.shouldShakeDate),"direction"in e&&n("direction",a=e.direction)},{dispatch:o,days:r,selected:s,highlighted:i,shouldShakeDate:c,direction:a,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Ee=function(e){function t(t){e.call(this,t),ue(this,t,Ce,De,d,["days","selected","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Se="src\\Components\\Month.svelte";function Oe(e,t,n){var o=Object.create(e);return o.week=t[n],o}function xe(e,t){var n,o,r=new Ee({props:{days:t.week.days,selected:t.selected,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=S(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(se(r.$$.fragment,e),o=!0)},o:function(e){ie(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),he(r,e)}}}function Pe(e){for(var t,n,o=[],r=new Map,i=e.visibleMonth.weeks,c=function(e){return e.week.id},l=0;lw.get(O)?(M.add(S),D(C)):($.add(O),u--):(a(E,i),u--)}for(;u--;){var x=e[u];v.has(x.key)||a(x,i)}for(;p;)D(m[p-1]);return m}(o,e,c,1,n,s,r,t,ae,xe,null,Oe),oe.r||a(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",s=e.visibleMonth),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",a=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=h was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ye=ce.Object,Te="src\\Components\\NavBar.svelte";function We(e,t,n){var o=Ye.create(e);return o.monthDefinition=t[n],o.index=n,o}function je(e){var t,n,o,r,i,c=e.monthDefinition.abbrev;function a(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=E("div"),n=E("span"),o=S(c),r=O(),P(n,"class","svelte-1uccyem"),s(n,Te,70,8,2028),P(t,"class","month-selector--month svelte-1uccyem"),Y(t,"selected",e.index===e.month),Y(t,"selectable",e.monthDefinition.selectable),s(t,Te,64,6,1791),i=x(t,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&c!==(c=e.monthDefinition.abbrev)&&_(o,c),n.month&&Y(t,"selected",e.index===e.month),n.availableMonths&&Y(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),i()}}}function Ie(e){for(var t,o,r,i,c,l,d,h,u,p,f,g,m,v,w,y=e.monthsOfYear[e.month][0],b=e.availableMonths,k=[],B=0;B was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",s=e.month),"year"in e&&n("year",i=e.year),"start"in e&&n("start",c=e.start),"end"in e&&n("end",a=e.end),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth),"monthsOfYear"in e&&n("monthsOfYear",h=e.monthsOfYear)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1,monthsOfYear:1}),e.start||e.year||e.end||e.monthsOfYear){var t=c.getFullYear()===i,r=a.getFullYear()===i;n("availableMonths",o=h.map(function(e,n){return Object.assign({},{name:e[0],abbrev:e[1]},{selectable:!t&&!r||(!t||n>=c.getMonth())&&(!r||n<=a.getMonth())})}))}},{dispatch:r,month:s,year:i,start:c,end:a,canIncrementMonth:l,canDecrementMonth:d,monthsOfYear:h,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:p,monthSelected:f,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return f(t,{m:e.monthDefinition,i:e.index})}}}var Ne=function(e){function t(t){e.call(this,t),ue(this,t,He,Ie,d,["month","year","start","end","canIncrementMonth","canDecrementMonth","monthsOfYear"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'"),void 0!==n.monthsOfYear||"monthsOfYear"in o||console.warn(" was created without expected prop 'monthsOfYear'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},year:{configurable:!0},start:{configurable:!0},end:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0},monthsOfYear:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Fe=ce.window,Ae="src\\Components\\Popover.svelte",qe=function(){return{}},Je=function(){return{}},Le=function(){return{}},Re=function(){return{}};function ze(e){var t,n,o,r,i,c,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=h(f,e,Re),m=e.$$slots.contents,v=h(m,e,Je);return{c:function(){t=E("div"),n=E("div"),g&&g.c(),o=O(),r=E("div"),i=E("div"),c=E("div"),v&&v.c(),P(n,"class","trigger"),s(n,Ae,103,2,2461),P(c,"class","contents-inner svelte-1wmex1c"),s(c,Ae,114,6,2859),P(i,"class","contents svelte-1wmex1c"),s(i,Ae,113,4,2800),P(r,"class","contents-wrapper svelte-1wmex1c"),B(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),Y(r,"visible",e.open),Y(r,"shrink",e.shrink),s(r,Ae,107,2,2583),P(t,"class","sc-popover svelte-1wmex1c"),s(t,Ae,102,0,2413),d=[x(Fe,"resize",e.onwindowresize),x(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(s,a){M(s,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,i),$(i,c),v&&v.m(c,null),e.div2_binding(i),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,Le),u(f,t,Re)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,qe),u(m,t,Je)),(!l||e.translateX||e.translateY)&&B(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&Y(r,"visible",t.open),e.shrink&&Y(r,"shrink",t.shrink)},i:function(e){l||(se(g,e),se(v,e),l=!0)},o:function(e){ie(g,e),ie(v,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Xe(e,t,n){var o,r,s,i,c,a=q(),l=0,d=0,h=t.open;void 0===h&&(h=!1);var u=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",u=!0),t="animationend",o=function(){n("shrink",u=!1),n("open",h=!1),a("closed")},(e=i).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(h){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return s.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){h||n("open",h=!0),await(Q(),G);var e=c.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",h=e.open),"shrink"in e&&n("shrink",u=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:o,w:r,triggerContainer:s,contentsAnimated:i,contentsWrapper:c,translateY:l,translateX:d,open:h,shrink:u,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",h=!0),a("opened")},onwindowresize:function(){r=Fe.innerWidth,n("w",r)},div0_binding:function(e){R[e?"unshift":"push"](function(){n("triggerContainer",s=e)})},div2_binding:function(e){R[e?"unshift":"push"](function(){n("contentsAnimated",i=e)})},div3_binding:function(e){R[e?"unshift":"push"](function(){n("contentsWrapper",c=e)})},div4_binding:function(e){R[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:y}}var Ge=function(e){function t(t){e.call(this,t),ue(this,t,Xe,ze,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ke=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Qe=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ue={daysOfWeek:[["Sunday","Sun"],["Monday","Mon"],["Tuesday","Tue"],["Wednesday","Wed"],["Thursday","Thu"],["Friday","Fri"],["Saturday","Sat"]],monthsOfYear:[["January","Jan"],["February","Feb"],["March","Mar"],["April","Apr"],["May","May"],["June","Jun"],["July","Jul"],["August","Aug"],["September","Sep"],["October","Oct"],["November","Nov"],["December","Dec"]]},Ve=[{key:"d",method:function(e){return Qe(e.getDate(),2)}},{key:"D",method:function(e){return Ue.daysOfWeek[e.getDay()][1]}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ue.daysOfWeek[e.getDay()][0]}},{key:"F",method:function(e){return Ue.monthsOfYear[e.getMonth()][0]}},{key:"m",method:function(e){return Qe(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ue.monthsOfYear[e.getMonth()][1]}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Qe(e.getFullYear(),2,!0)}}],Ze=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Qe(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Qe(e.getHours(),2)}},{key:"i",method:function(e){return Qe(e.getMinutes(),2)}},{key:"s",method:function(e){return Qe(e.getSeconds(),2)}}],et=function(e){void 0===e&&(e={}),function(e){Object.keys(e).forEach(function(t){Ue[t]&&Ue[t].length==e[t].length&&(Ue[t]=e[t])})}(e)},tt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ve.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),Ze.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ke(t,n.key,n.method(e)))}),t},nt={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},ot=Object.keys(nt).map(function(e){return nt[e]}),rt="src\\Components\\Datepicker.svelte";function st(e,t,n){var o=Object.create(e);return o.day=t[n],o}function it(e){var t,n;return{c:function(){t=E("button"),n=S(e.formattedSelected),P(t,"class","calendar-button svelte-1qydjkw"),P(t,"type","button"),s(t,rt,270,8,7747)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&_(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function ct(e){var t,n,o=e.$$slots.default,r=h(o,e,null),i=!e.trigger&&it(e);return{c:function(){t=E("div"),r||i&&i.c(),r&&r.c(),P(t,"slot","trigger"),P(t,"class","svelte-1qydjkw"),s(t,rt,267,4,7679)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):i&&i.m(t,null),n=!0},p:function(e,n){r||(n.trigger?i&&(i.d(1),i=null):i?i.p(e,n):((i=it(n)).c(),i.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),u(o,n,null))},i:function(e){n||(se(r,e),n=!0)},o:function(e){ie(r,e),n=!1},d:function(e){e&&D(t),r||i&&i.d(),r&&r.d(e)}}}function at(e){var t,o,r=e.day[1];return{c:function(){t=E("span"),o=S(r),P(t,"class","svelte-1qydjkw"),s(t,rt,291,10,8337)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function lt(e){var t,n,o,r,i,c,a=new Ne({props:{month:e.month,year:e.year,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth,start:e.start,end:e.end,monthsOfYear:e.monthsOfYear},$$inline:!0});a.$on("monthSelected",e.monthSelected_handler),a.$on("incrementMonth",e.incrementMonth_handler);for(var l=e.sortedDaysOfWeek,d=[],h=0;h0&&O>Z&&I(1,O.getDate()),e<0&&O was created with unknown prop '"+e+"'")});var K=t.$$slots;void 0===K&&(K={});var Q,U,V,Z,ee,te,ne,oe,re=t.$$scope;return e.$set=function(e){"format"in e&&n("format",i=e.format),"start"in e&&n("start",c=e.start),"end"in e&&n("end",a=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",h=e.trigger),"selectableCallback"in e&&n("selectableCallback",u=e.selectableCallback),"weekStart"in e&&n("weekStart",p=e.weekStart),"daysOfWeek"in e&&n("daysOfWeek",f=e.daysOfWeek),"monthsOfYear"in e&&n("monthsOfYear",g=e.monthsOfYear),"style"in e&&n("style",m=e.style),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",v=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",w=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",y=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",b=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",k=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",$=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",M=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",D=e.dayHighlightedTextColor),"formattedSelected"in e&&n("formattedSelected",W=e.formattedSelected),"$$scope"in e&&n("$$scope",re=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,weekStart:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,buttonBackgroundColor:1,buttonBorderColor:1,buttonTextColor:1,highlightColor:1,dayBackgroundColor:1,dayTextColor:1,dayHighlightedBackgroundColor:1,dayHighlightedTextColor:1,style:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback||e.weekStart)&&n("months",Q=function(e,t,n,o){void 0===n&&(n=null),void 0===o&&(o=0),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var r=new Date(t.getFullYear(),t.getMonth()+1,1),s=[],i=new Date(e.getFullYear(),e.getMonth(),1),c=me(e,t,n);i0),(e.buttonBackgroundColor||e.buttonBorderColor||e.buttonTextColor||e.highlightColor||e.dayBackgroundColor||e.dayTextColor||e.dayHighlightedBackgroundColor||e.dayHighlightedTextColor||e.style)&&n("wrapperStyle",oe="\n --button-background-color: "+v+";\n --button-border-color: "+w+";\n --button-text-color: "+y+";\n --highlight-color: "+b+";\n --day-background-color: "+k+";\n --day-text-color: "+$+";\n --day-highlighted-background-color: "+M+";\n --day-highlighted-text-color: "+D+";\n "+m+"\n "),(e.format||e.selected)&&n("formattedSelected",W="function"==typeof i?i(l):tt(l,i))},{popover:o,format:i,start:c,end:a,selected:l,dateChosen:d,trigger:h,selectableCallback:u,weekStart:p,daysOfWeek:f,monthsOfYear:g,style:m,buttonBackgroundColor:v,buttonBorderColor:w,buttonTextColor:y,highlightColor:b,dayBackgroundColor:k,dayTextColor:$,dayHighlightedBackgroundColor:M,dayHighlightedTextColor:D,sortedDaysOfWeek:S,highlighted:O,shouldShakeDate:x,month:P,year:_,isOpen:B,isClosing:Y,formattedSelected:W,changeMonth:j,incrementMonth:I,registerSelection:J,registerClose:z,registerOpen:function(){n("highlighted",O=new Date(l)),n("month",P=l.getMonth()),n("year",_=l.getFullYear()),document.addEventListener("keydown",L),r("open")},visibleMonth:U,visibleMonthId:V,canIncrementMonth:te,canDecrementMonth:ne,wrapperStyle:oe,monthSelected_handler:function(e){return j(e.detail)},incrementMonth_handler:function(e){return I(e.detail)},dateSelected_handler:function(e){return J(e.detail)},popover_1_binding:function(e){R[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",B=e)},popover_1_shrink_binding:function(e){n("isClosing",Y=e)},$$slots:K,$$scope:re}}var pt=function(e){function t(t){e.call(this,t),ue(this,t,ut,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","weekStart","daysOfWeek","monthsOfYear","style","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","formattedSelected"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},weekStart:{configurable:!0},daysOfWeek:{configurable:!0},monthsOfYear:{configurable:!0},style:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0},formattedSelected:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.weekStart.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.weekStart.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.daysOfWeek.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.monthsOfYear.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.style.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.style.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe);return t(),pt}();
//# sourceMappingURL=bundle.js.map
diff --git a/docs/bundle.js.map b/docs/bundle.js.map
index 4693d91..4ffa77c 100644
--- a/docs/bundle.js.map
+++ b/docs/bundle.js.map
@@ -1 +1 @@
-{"version":3,"file":"bundle.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps, weekStart = 0) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay() + weekStart);\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== weekStart || weeks.length !== 6) {\n if (date.getDay() === weekStart) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null, weekStart = 0) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler, weekStart));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthsOfYear[month][0]} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:
\r\n\r\n\t
With Svelte:
\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n <button class='custom-button'>\r\n {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n </button>\r\n</Datepicker>\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n target: document.querySelector('.button-container'),\r\n anchor: trigger, \r\n props: {\r\n trigger: trigger\r\n }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t
You can confine the date selection range with start and end:
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t
Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.
\r\n\r\n\t
You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t
You can bind to the `dateSelected` event, which has a data property `date`:
Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:
\r\n\r\n\t
With Svelte:
\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n <button class='custom-button'>\r\n {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n </button>\r\n</Datepicker>\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n target: document.querySelector('.button-container'),\r\n anchor: trigger, \r\n props: {\r\n trigger: trigger\r\n }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t
You can confine the date selection range with start and end:
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t
Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.
\r\n\r\n\t
You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).
\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t
You can bind to the `dateSelected` event, which has a data property `date`: