diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3897265 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..845ea51 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,15 @@ +module.exports = { + root: true, + extends: ['eslint:recommended'], + plugins: ['svelte3'], + overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], + parserOptions: { + sourceType: 'module', + ecmaVersion: 2020 + }, + env: { + browser: true, + es2017: true, + node: true + } +}; diff --git a/.gitignore b/.gitignore index 8dd8956..da49c52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,103 +1,9 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity -.vscode -# dotenv environment variables file +.DS_Store +node_modules +/build +/.svelte-kit +/package .env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port +.env.* +!.env.example +.vscode \ No newline at end of file diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 298c305..0000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/docs/ \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 7359739..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Martin Skočík - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 69c32d5..cbaf4c0 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,15 @@ Simple date & time picker implemented in svelte. Features: - datepicker - timepicker (with meridian support) -- various format +- various formatting options - keyboard navigation - includes `` element -- custom element -- validator action for `` using `svelte-use-forms` (optional) - easily themable +- restriction by start and end date +- validator action for `` using `svelte-use-forms` (optional) +- custom element -![screenshot](docs/screenshot.png) +![screenshot](https://raw.githubusercontent.com/mskocik/svelty-picker/main/docs/screenshot.png) ## ⚙️ Install @@ -51,7 +52,6 @@ Try yourself in [REPL](https://svelte.dev/repl/98fd362aad6049f4b38606820baff0b0? | mode | `string` | `auto` | restrict picker's mode. Possible values: `auto|date|datetime|time`. By default it try to guess the mode from `format` | | format | `string` | `yyyy-mm-dd` | Format of entered date/time. See [format settings](#format-settings) for available options | | weekStart | `number` | `1` | number in range `0-6` to select first day of the week. Sunday is `0` | -| visible | `bool` | `false` | Whether place picker inline after focus. By default picker is floating | inputClasses | `string` | `` | input css class string | | todayBtnClasses | `string` | `sdt-action-btn sdt-today-btn` | today button css classes | | clearBtnClasses | `string` | `sdt-action-btn sdt-clear-btn` | clear button css classes | @@ -77,24 +77,57 @@ config.todayBtn = false; ``` ### Format settings -- `p` : meridian in lower case ('am' or 'pm') - according to locale file -- `P` : meridian in upper case ('AM' or 'PM') - according to locale file -- `s` : seconds without leading zeros -- `ss` : seconds, 2 digits with leading zeros -- `i` : minutes without leading zeros -- `ii` : minutes, 2 digits with leading zeros -- `h` : hour without leading zeros - 24-hour format -- `hh` : hour, 2 digits with leading zeros - 24-hour format -- `H` : hour without leading zeros - 12-hour format -- `HH` : hour, 2 digits with leading zeros - 12-hour format +Date format can be defined under `formatType` property. It has two options: `standard` and `php`, where +`standard` is the _default_. + +#### `standard` format settings: + - `d` : day of the month without leading zeros - `dd` : day of the month, 2 digits with leading zeros +- `D` : short textual representation of a weekday (i18n.daysShort) +- `DD` : long textual representation of a weekday (i18n.days) +- `S` : English ordinal suffix for the day of the month, (i18n.suffix) - `m` : numeric representation of month without leading zeros - `mm` : numeric representation of the month, 2 digits with leading zeros -- `M` : short textual representation of a month, three letters -- `MM` : full textual representation of a month, such as January or March +- `M` : short textual representation of a month, three letters (i18n.monthsShort) +- `MM` : full textual representation of a month, such as January or March (i18n.months) - `yy` : two digit representation of a year - `yyyy` : full numeric representation of a year, 4 digits +- `h` : hour without leading zeros - 24-hour format +- `hh` : hour, 2 digits with leading zeros - 24-hour format +- `H` : hour without leading zeros - 12-hour format +- `HH` : hour, 2 digits with leading zeros - 12-hour format +- `i` : minutes, 2 digits with leading zeros +- `ii` : alias for `i` +- `s` : seconds, 2 digits with leading zeros +- `ss` : alias for `s` +- `p` : meridian in lower case ('am' or 'pm') - according to locale file (i18n.meridiem) +- `P` : meridian in upper case ('AM' or 'PM') - according to locale file (i18n.meridiem) +- `t` : timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use `php` format + +#### `php` format settings: + +- `d` : Day of the month, 2 digits with leading zeros 01 to 31 +- `D` : A textual representation of a day, three letters Mon through Sun +- `j` : Day of the month without leading zeros 1 to 31 +- `l` : A full textual representation of the day of the week Sunday through Saturday +- `N` : ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday) +- `S` : English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j +- `F` : A full textual representation of a month, such as January or March January through December +- `m` : Numeric representation of a month, with leading zeros 01 through 12 +- `M` : A short textual representation of a month, three letters Jan through Dec +- `n` : Numeric representation of a month, without leading zeros 1 through 12 +- `Y` : A full numeric representation of a year, at least 4 digits, with - for years BCE. Examples: -0055, 0787, 1999, 2003 +- `y` : A two digit representation of a year Examples: 99 or 03 +- `a` : Lowercase Ante meridiem and Post meridiem am or pm +- `A` : Uppercase Ante meridiem and Post meridiem AM or PM +- `g` : 12-hour format of an hour without leading zeros 1 through 12 +- `G` : 24-hour format of an hour without leading zeros 0 through 23 +- `h` : 12-hour format of an hour with leading zeros 01 through 12 +- `H` : 24-hour format of an hour with leading zeros 00 through 23 +- `i` : Minutes with leading zeros 00 to 59 +- `s` : Seconds with leading zeros 00 through 59 +- `U` : timestamp in seconds. For timestamp with miliseconds use `standard` format ### CSS variables diff --git a/dist/svelty-picker-element-bundle.js b/dist/svelty-picker-element-bundle.js deleted file mode 100644 index e378171..0000000 --- a/dist/svelty-picker-element-bundle.js +++ /dev/null @@ -1 +0,0 @@ -var SveltyPicker=function(t){"use strict";function e(){}const n=t=>t;function r(t){return t()}function s(){return Object.create(null)}function a(t){t.forEach(r)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(t){return null==t?"":t}function c(t){return t&&o(t.destroy)?t.destroy:e}const d="undefined"!=typeof window;let u=d?()=>window.performance.now():()=>Date.now(),h=d?t=>requestAnimationFrame(t):e;const g=new Set;function p(t){g.forEach((e=>{e.c(t)||(g.delete(e),e.f())})),0!==g.size&&h(p)}function f(t){let e;return 0===g.size&&h(p),{promise:new Promise((n=>{g.add(e={c:t,f:n})})),abort(){g.delete(e)}}}function m(t,e){t.appendChild(e)}function y(t,e,n){const r=b(t);if(!r.getElementById(e)){const t=k("style");t.id=e,t.textContent=n,x(r,t)}}function b(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function v(t){const e=k("style");return x(b(t),e),e.sheet}function x(t,e){m(t.head||t,e)}function T(t,e,n){t.insertBefore(e,n||null)}function w(t){t.parentNode.removeChild(t)}function C(t,e){for(let n=0;nt.removeEventListener(e,n,r)}function S(t){return function(e){return e.preventDefault(),t.call(this,e)}}function F(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function A(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Y(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function B(t,e,n){t.classList[n?"add":"remove"](e)}function H(t,e,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}const E=new Map;let N,O=0;function _(t,e,n,r,s,a,o,i=0){const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*a(t);c+=100*t+`%{${o(r,1-r)}}\n`}const d=c+`100% {${o(n,1-n)}}\n}`,u=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d)}_${i}`,h=b(t),{stylesheet:g,rules:p}=E.get(h)||function(t,e){const n={stylesheet:v(e),rules:{}};return E.set(t,n),n}(h,t);p[u]||(p[u]=!0,g.insertRule(`@keyframes ${u} ${d}`,g.cssRules.length));const f=t.style.animation||"";return t.style.animation=`${f?`${f}, `:""}${u} ${r}ms linear ${s}ms 1 both`,O+=1,u}function P(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),s=n.length-r.length;s&&(t.style.animation=r.join(", "),O-=s,O||h((()=>{O||(E.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),E.clear())})))}function j(t){N=t}function I(){const t=function(){if(!N)throw new Error("Function called outside component initialization");return N}();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const s=H(e,n);r.slice().forEach((e=>{e.call(t,s)}))}}}function L(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const R=[],q=[],V=[],Z=[],G=Promise.resolve();let J=!1;function W(){J||(J=!0,G.then(et))}function K(t){V.push(t)}const X=new Set;let Q,tt=0;function et(){const t=N;do{for(;tt{Q=null}))),Q}function st(t,e,n){t.dispatchEvent(H(`${e?"intro":"outro"}${n}`))}const at=new Set;let ot;function it(){ot={r:0,c:[],p:ot}}function lt(){ot.r||a(ot.c),ot=ot.p}function ct(t,e){t&&t.i&&(at.delete(t),t.i(e))}function dt(t,e,n,r){if(t&&t.o){if(at.has(t))return;at.add(t),ot.c.push((()=>{at.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}const ut={duration:0};function ht(t,r,s){let a,i,l=r(t,s),c=!1,d=0;function h(){a&&P(t,a)}function g(){const{delay:r=0,duration:s=300,easing:o=n,tick:g=e,css:p}=l||ut;p&&(a=_(t,0,1,s,r,o,p,d++)),g(0,1);const m=u()+r,y=m+s;i&&i.abort(),c=!0,K((()=>st(t,!0,"start"))),i=f((e=>{if(c){if(e>=y)return g(1,0),st(t,!0,"end"),h(),c=!1;if(e>=m){const t=o((e-m)/s);g(t,1-t)}}return c}))}let p=!1;return{start(){p||(p=!0,P(t),o(l)?(l=l(),rt().then(g)):g())},invalidate(){p=!1},end(){c&&(h(),c=!1)}}}function gt(t,r,s){let i,l=r(t,s),c=!0;const d=ot;function h(){const{delay:r=0,duration:s=300,easing:o=n,tick:h=e,css:g}=l||ut;g&&(i=_(t,1,0,s,r,o,g));const p=u()+r,m=p+s;K((()=>st(t,!1,"start"))),f((e=>{if(c){if(e>=m)return h(0,1),st(t,!1,"end"),--d.r||a(d.c),!1;if(e>=p){const t=o((e-p)/s);h(1-t,t)}}return c}))}return d.r+=1,o(l)?rt().then((()=>{l=l(),h()})):h(),{end(e){e&&l.tick&&l.tick(1,0),c&&(i&&P(t,i),c=!1)}}}function pt(t,r,s,i){let l=r(t,s),c=i?0:1,d=null,h=null,g=null;function p(){g&&P(t,g)}function m(t,e){const n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function y(r){const{delay:s=0,duration:o=300,easing:i=n,tick:y=e,css:b}=l||ut,v={start:u()+s,b:r};r||(v.group=ot,ot.r+=1),d||h?h=v:(b&&(p(),g=_(t,c,r,o,s,i,b)),r&&y(0,1),d=m(v,o),K((()=>st(t,r,"start"))),f((e=>{if(h&&e>h.start&&(d=m(h,o),h=null,st(t,d.b,"start"),b&&(p(),g=_(t,c,d.b,d.duration,0,i,l.css))),d)if(e>=d.end)y(c=d.b,1-c),st(t,d.b,"end"),h||(d.b?p():--d.group.r||a(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;c=d.a+d.d*i(t/d.duration),y(c,1-c)}return!(!d&&!h)})))}return{run(t){o(l)?rt().then((()=>{l=l(),y(t)})):y(t)},end(){p(),d=h=null}}}function ft(t,e){t.d(1),e.delete(t.key)}function mt(t,e){dt(t,1,1,(()=>{e.delete(t.key)}))}function yt(t,e,n,r,s,a,o,i,l,c,d,u){let h=t.length,g=a.length,p=h;const f={};for(;p--;)f[t[p].key]=p;const m=[],y=new Map,b=new Map;for(p=g;p--;){const t=u(s,a,p),i=n(t);let l=o.get(i);l?r&&l.p(t,e):(l=c(i,t),l.c()),y.set(i,m[p]=l),i in f&&b.set(i,Math.abs(p-f[i]))}const v=new Set,x=new Set;function T(t){ct(t,1),t.m(i,d),o.set(t.key,t),d=t.first,g--}for(;h&&g;){const e=m[g-1],n=t[h-1],r=e.key,s=n.key;e===n?(d=e.first,h--,g--):y.has(s)?!o.has(r)||v.has(r)?T(e):x.has(s)?h--:b.get(r)>b.get(s)?(x.add(r),T(e)):(v.add(s),h--):(l(n,o),h--)}for(;h--;){const e=t[h];y.has(e.key)||l(e,o)}for(;g;)T(m[g-1]);return m}function bt(t){t&&t.c()}function vt(t,e,n,s){const{fragment:i,on_mount:l,on_destroy:c,after_update:d}=t.$$;i&&i.m(e,n),s||K((()=>{const e=l.map(r).filter(o);c?c.push(...e):a(e),t.$$.on_mount=[]})),d.forEach(K)}function xt(t,e){const n=t.$$;null!==n.fragment&&(a(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Tt(t,n,r,o,i,l,c,d=[-1]){const u=N;j(t);const h=t.$$={fragment:null,ctx:null,props:l,update:e,not_equal:i,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:s(),dirty:d,skip_bound:!1,root:n.target||u.$$.root};c&&c(h.root);let g=!1;if(h.ctx=r?r(t,n.props||{},((e,n,...r)=>{const s=r.length?r[0]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),g&&function(t,e){-1===t.$$.dirty[0]&&(R.push(t),W(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var Ct={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,visible:!1,inputClasses:null,todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"}};function kt(t){const e=t-1;return e*e*e+1}function $t(t,{delay:e=0,duration:r=400,easing:s=n}={}){const a=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:s,css:t=>"opacity: "+t*a}}function Ut(t,e,n,r,s){if(0===n){const n=11,r=1,s=-1,a=[];let o=[],i=t.getUTCFullYear()-t.getUTCFullYear()%10-1;for(let t=0;t<12;t++)o.push(i+t),4===o.length&&(a.push(o),o=[]);let l=null;return e||(e=new Date),e.getUTCFullYear()>=i&&(l=e.getUTCFullYear()%i),{grid:a,todayMark:s,nextFrom:n,prevTo:r,selectionMark:l}}if(1===n){let n=[],s=[],a=12,o=24;const i=t.toISOString().split("T")[0].substring(0,8),l=new Date(i+"01 00:00:00"),c=l.getFullYear()-1;l.setFullYear(c);let d=0;for(let t=0;t<3;t++){for(let t=0;t<12;t++)l.setUTCMonth(t),s.push(r.monthsShort[t%12]),4===s.length&&(n.push(s),s=[]);l.setFullYear(l.getFullYear()+1)}let u=null;return e||(e=new Date),e.getUTCFullYear()-c>=0&&e.getUTCFullYear()-c<=2&&(u=e.getUTCMonth()+12*(e.getUTCFullYear()-c||0)),{grid:n,todayMark:d,nextFrom:o,prevTo:a,selectionMark:u}}let a=t||new Date,o=a.getUTCFullYear(),i=a.getUTCMonth();a.getUTCDate(),a.getUTCHours();let l=new Date,c=zt(o,i-1,28,0,0,0,0),d=Dt.getDaysInMonth(c.getUTCFullYear(),c.getUTCMonth());c.setUTCDate(d),c.setUTCDate(d-(c.getUTCDay()-s+7)%7);let u=new Date(c);u.setUTCDate(u.getUTCDate()+42);let h=u.valueOf(),g=[],p=[],f=-1,m=null,y=0,b=42,v=0;for(;c.valueOf()o||c.getUTCFullYear()===o&&c.getUTCMonth()>i)&&(b=v-1),c.setUTCDate(c.getUTCDate()+1),c.getUTCFullYear()===l.getUTCFullYear()&&c.getUTCMonth()===l.getUTCMonth()&&c.getUTCDate()===l.getUTCDate()&&(f=v),!m&&e&&c.getUTCFullYear()===e.getUTCFullYear()&&c.getUTCMonth()===e.getUTCMonth()&&c.getUTCDate()===e.getUTCDate()&&(m=v),7===p.length&&(g.push(p),p=[]);return{grid:g,todayMark:f,prevTo:y,nextFrom:b,selectionMark:m}}function Mt(t,e){if(2===e)return t<0&&(t=42+t),{x:t%7,y:Math.floor(t/7)}}const Dt={isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,Dt.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}};function zt(){return new Date(Date.UTC.apply(Date,arguments))}function St(t,e,n,r){if(t instanceof Date){const e=new Date(t.valueOf()-6e4*t.getTimezoneOffset());return e.setMilliseconds(0),e}e=/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)?At.parseFormat("yyyy-mm-dd",r):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)?At.parseFormat("yyyy-mm-dd hh:ii",r):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)?At.parseFormat("yyyy-mm-dd hh:ii:ss",r):At.parseFormat(e,r);var s,a,o=t&&t.toString().match(At.nonpunctuation)||[],i=(t=new Date(0,0,0,0,0,0,0),{}),l=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],c={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12===e?0:e)},H:function(t,e){return t.setUTCHours(12===e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;){if(isNaN(t.getUTCMonth()))return t;t.setUTCDate(t.getUTCDate()-1)}return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1===e?t.getUTCHours()+12:t.getUTCHours())}};if(c.M=c.MM=c.mm=c.m,c.dd=c.d,c.P=c.p,t=zt(t.getFullYear(),t.getMonth(),t.getDate(),t.getUTCHours(),t.getUTCMinutes(),t.getSeconds()),o.length===e.parts.length){for(var d=0,u=e.parts.length;dwindow.innerWidth?"right: 1rem":`left: ${r.left}px`),e.height+e.top>window.innerHeight+window.scrollY?n.push("bottom: 1rem"):n.push(`top: ${r.top+r.height+window.scrollY}px`),t.style=n.join(";"),t.hidden=!1,document.body.appendChild(t)}return t.hidden=!1,{destroy:function(){t.parentNode&&t.parentNode.removeChild(t)}}}function Bt(t,{delay:e=0,duration:n=400,easing:r=kt,start:s=0,end:a=1,opacity:o=0}={}){const i=getComputedStyle(t),l=+i.opacity,c="none"===i.transform?"":i.transform,d=1-s,u=l*(1-o);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n transform: ${c} scale(${1!==a?s+a*e:1-d*e});\n opacity: ${l-u*e};\n `}}function Ht(t){y(t,"svelte-1xp8yha",".sdt-cal-td.svelte-1xp8yha.svelte-1xp8yha{padding:0;font-size:90%;text-align:center;background-color:var(--sdt-bg-main);;}.sdt-cal-th.svelte-1xp8yha.svelte-1xp8yha{height:24px}.sdt-calendar.svelte-1xp8yha.svelte-1xp8yha{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-1xp8yha.svelte-1xp8yha{display:grid}.sdt-calendar.is-grid.svelte-1xp8yha .sdt-table.svelte-1xp8yha{grid-column:1/2;grid-row:1/2\r\n }.sdt-table.svelte-1xp8yha.svelte-1xp8yha{width:100%;border-collapse:collapse}.sdt-table-height.svelte-1xp8yha.svelte-1xp8yha{height:222px}.animate-transition.svelte-1xp8yha.svelte-1xp8yha{will-change:transform;transition:transform 0.3s ease\r\n }.not-current.svelte-1xp8yha.svelte-1xp8yha{opacity:0.3}.not-current.svelte-1xp8yha.svelte-1xp8yha:hover{opacity:0.55}.std-btn.svelte-1xp8yha.svelte-1xp8yha{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:0.3rem;box-sizing:border-box;color:var(--sdt-color)}.sdt-btn-day.svelte-1xp8yha.svelte-1xp8yha{max-height:32px}.std-btn[disabled].svelte-1xp8yha.svelte-1xp8yha{cursor:not-allowed;opacity:0.35}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha{width:auto;font-weight:bold;padding:0.375rem 0.5rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha:first-of-type{padding-left:0.375rem;padding-right:0.375rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha{padding-left:0.25rem;padding-right:0.25rem}.std-btn.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-bg-hover)}.is-selected.svelte-1xp8yha .std-btn.svelte-1xp8yha{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main));opacity:0.9}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-time-icon.svelte-1xp8yha.svelte-1xp8yha{margin-right:-4px}.sdt-time-icon.svelte-1xp8yha svg.svelte-1xp8yha{margin:4px 0}.sdt-tbody-lg.svelte-1xp8yha.svelte-1xp8yha{background-color:var(--sdt-bg-main)}.sdt-tbody-lg.svelte-1xp8yha .std-btn.svelte-1xp8yha{height:72px}.sdt-thead-nav.svelte-1xp8yha.svelte-1xp8yha{display:flex;margin-bottom:0.25rem}.sdt-nav-btns.svelte-1xp8yha.svelte-1xp8yha{white-space:nowrap}.sdt-toggle-btn.svelte-1xp8yha.svelte-1xp8yha{width:100%;text-align:left}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{box-sizing:border-box;position:absolute;content:'';margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-shadow);border-top:4px solid var(--sdt-shadow);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-1xp8yha.svelte-1xp8yha{fill:var(--sdt-color)}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:hover:before{border-left-color:var(--sdt-primary);border-top-color:var(--sdt-primary)}.is-selected.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{border-left-color:#eee;border-top-color:#eee}")}function Et(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function Nt(t,e,n){const r=t.slice();return r[40]=e[n],r[42]=n,r}function Ot(t,e,n){const r=t.slice();return r[43]=e[n],r}function _t(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function Pt(t,e,n){const r=t.slice();return r[47]=e[n],r[42]=n,r}function jt(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function It(t,e,n){const r=t.slice();return r[50]=e[n],r[42]=n,r}function Lt(t){let e,n,r,s,a,o;return{c(){e=k("button"),n=$("svg"),r=$("path"),F(r,"fill-rule","evenodd"),F(r,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),F(n,"class","sdt-svg svelte-1xp8yha"),F(n,"xmlns","http://www.w3.org/2000/svg"),F(n,"viewBox","0 0 16 16"),F(n,"width","16"),F(n,"height","16"),F(e,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-1xp8yha"),F(e,"title",s=t[0].timeView)},m(s,i){T(s,e,i),m(e,n),m(n,r),a||(o=z(e,"click",S(t[20])),a=!0)},p(t,n){1&n[0]&&s!==(s=t[0].timeView)&&F(e,"title",s)},d(t){t&&w(e),a=!1,o()}}}function Rt(t){let e,n,r,s,a,o,i,l=t[9].grid,c=[];for(let e=0;e{s&&s.end(1),r=ht(n,t[11],{duration:ee,start:t[13],opacity:1}),r.start()})),a=!0)},o(e){r&&r.invalidate(),e&&(s=gt(n,t[11],{duration:ee,end:t[12],start:1})),a=!1},d(t){t&&w(e),C(c,t),t&&s&&s.end(),o=!1,i()}}}function qt(t,e){let n,r,s,a,o,i=e[50]+"";function l(){return e[29](e[50])}return{key:t,first:null,c(){n=k("td"),r=k("button"),s=U(i),F(r,"class","std-btn svelte-1xp8yha"),B(r,"not-current",!e[14](4*e[39]+e[42])),F(n,"class","svelte-1xp8yha"),B(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){T(t,n,e),m(n,r),m(r,s),a||(o=z(r,"click",S(l)),a=!0)},p(t,a){e=t,512&a[0]&&i!==(i=e[50]+"")&&A(s,i),16896&a[0]&&B(r,"not-current",!e[14](4*e[39]+e[42])),512&a[0]&&B(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&w(n),a=!1,o()}}}function Vt(t){let e,n,r=[],s=new Map,a=t[37];const o=t=>t[42];for(let e=0;e{o&&o.end(1),s=ht(n,t[11],{duration:ee,start:t[13],opacity:1}),s.start()})),i=!0)},o(e){s&&s.invalidate(),e&&(o=gt(n,t[11],{duration:ee,end:t[12],start:1})),i=!1},d(t){t&&w(e),C(u,t),t&&o&&o.end(),l=!1,a(c)}}}function Gt(t,e){let n,r,s,a,o,i=e[47]+"";function l(){return e[30](e[47])}return{key:t,first:null,c(){n=k("td"),r=k("button"),s=U(i),F(r,"class","std-btn svelte-1xp8yha"),B(r,"not-current",!e[14](4*e[39]+e[42])),F(n,"class","svelte-1xp8yha"),B(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){T(t,n,e),m(n,r),m(r,s),a||(o=z(r,"click",S(l)),a=!0)},p(t,a){e=t,512&a[0]&&i!==(i=e[47]+"")&&A(s,i),16896&a[0]&&B(r,"not-current",!e[14](4*e[39]+e[42])),512&a[0]&&B(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&w(n),a=!1,o()}}}function Jt(t){let e,n,r=[],s=new Map,a=t[37];const o=t=>t[42];for(let e=0;e{o&&o.end(1),a=ht(n,t[11],{duration:ee,start:.5,opacity:1}),a.start()})),i=!0)},o(e){a&&a.invalidate(),e&&(o=gt(n,t[11],{duration:ee,start:Math.abs(t[4])})),i=!1},d(t){t&&w(e),C(u,t),C(g,t),t&&o&&o.end(),l=!1,c()}}}function Kt(t){let e,n,r=t[43]+"";return{c(){e=k("th"),n=U(r),F(e,"class","sdt-cal-th svelte-1xp8yha")},m(t,r){T(t,e,r),m(e,n)},p(t,e){1024&e[0]&&r!==(r=t[43]+"")&&A(n,r)},d(t){t&&w(e)}}}function Xt(t,e){let n,r,s,a,o,i,l=e[40].getUTCDate()+"";function c(){return e[32](e[40])}return{key:t,first:null,c(){n=k("td"),r=k("button"),s=U(l),F(r,"class","std-btn sdt-btn-day svelte-1xp8yha"),r.disabled=a=e[15](e[40]),B(r,"not-current",!e[14](7*e[39]+e[42],e[40])),F(n,"class","sdt-cal-td svelte-1xp8yha"),B(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),B(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){T(t,n,e),m(n,r),m(r,s),o||(i=z(r,"click",S(c)),o=!0)},p(t,o){e=t,512&o[0]&&l!==(l=e[40].getUTCDate()+"")&&A(s,l),512&o[0]&&a!==(a=e[15](e[40]))&&(r.disabled=a),16896&o[0]&&B(r,"not-current",!e[14](7*e[39]+e[42],e[40])),512&o[0]&&B(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),512&o[0]&&B(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark)},d(t){t&&w(n),o=!1,i()}}}function Qt(t){let e,n,r=[],s=new Map,a=t[37];const o=t=>t[42];for(let e=0;e',c=M(),d=k("button"),d.innerHTML='',u=M(),h=k("div"),v&&v.c(),g=M(),x&&x.c(),p=M(),C&&C.c(),F(n,"class","std-btn std-btn-header sdt-toggle-btn svelte-1xp8yha"),F(l,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),F(d,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),F(o,"class","sdt-nav-btns svelte-1xp8yha"),F(e,"class","sdt-thead-nav svelte-1xp8yha"),F(h,"class","sdt-calendar svelte-1xp8yha"),B(h,"is-grid",t[5])},m(a,w){T(a,e,w),m(e,n),m(n,r),m(e,s),m(e,o),b&&b.m(o,null),m(o,i),m(o,l),m(o,c),m(o,d),T(a,u,w),T(a,h,w),v&&v.m(h,null),m(h,g),x&&x.m(h,null),m(h,p),C&&C.m(h,null),f||(y=[z(n,"click",S(t[17])),z(l,"click",S(t[27])),z(d,"click",S(t[28]))],f=!0)},p(t,e){256&e[0]&&A(r,t[8]),t[1]&&t[2]?b?b.p(t,e):(b=Lt(t),b.c(),b.m(o,i)):b&&(b.d(1),b=null),0===t[3]?v?(v.p(t,e),8&e[0]&&ct(v,1)):(v=Rt(t),v.c(),ct(v,1),v.m(h,g)):v&&(it(),dt(v,1,1,(()=>{v=null})),lt()),1===t[3]?x?(x.p(t,e),8&e[0]&&ct(x,1)):(x=Zt(t),x.c(),ct(x,1),x.m(h,p)):x&&(it(),dt(x,1,1,(()=>{x=null})),lt()),2===t[3]?C?(C.p(t,e),8&e[0]&&ct(C,1)):(C=Wt(t),C.c(),ct(C,1),C.m(h,null)):C&&(it(),dt(C,1,1,(()=>{C=null})),lt()),32&e[0]&&B(h,"is-grid",t[5])},i(t){ct(v),ct(x),ct(C)},o(t){dt(v),dt(x),dt(C)},d(t){t&&w(e),b&&b.d(),t&&w(u),t&&w(h),v&&v.d(),x&&x.d(),C&&C.d(),f=!1,a(y)}}}let ee=400;function ne(t,e,n){let r,s,a,o,i,l,{date:c=null}=e,{startDate:d=null}=e,{endDate:u=null}=e,{weekStart:h=1}=e,{i18n:g}=e,{enableTimeToggle:p=!1}=e;function f(t,e,n){const r=y.getTimezoneOffset()>=0?0:1,s=new Date(t,e,y.getUTCDate()+r),a=Ut(s,s,v,g,h);k(n),U(a.grid[Math.floor(a.selectionMark/7)][a.selectionMark%7])}let m=c,y=c?new Date(c.valueOf()):new Date;const b=I();let v=2,x=-2,T=!1,w=222,C=null;function k(t){const e=0===v?120:1===v?12:1;y.setUTCMonth(y.getUTCMonth()+t*e),n(26,y),n(21,c),n(2,m),n(7,C=null),n(6,w=222)}function $(t){if(1!==v)return k(t);n(7,C=()=>{k(t)}),n(6,w=-1===t?w-222:w+222)}function U(t){switch(n(4,x=1),n(5,T=!0),v){case 0:y.setYear(t),n(26,y),n(21,c),n(2,m);break;case 1:y.setUTCMonth(g.monthsShort.indexOf(t)),n(26,y),n(21,c),n(2,m);break;case 2:const e=zt(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());m&&(e.setMinutes(m.getMinutes()),e.setUTCHours(m.getUTCHours())),n(2,m=e),b("date",m)}v<2&&n(3,v++,v)}return t.$$set=t=>{"date"in t&&n(21,c=t.date),"startDate"in t&&n(22,d=t.startDate),"endDate"in t&&n(23,u=t.endDate),"weekStart"in t&&n(24,h=t.weekStart),"i18n"in t&&n(0,g=t.i18n),"enableTimeToggle"in t&&n(1,p=t.enableTimeToggle)},t.$$.update=()=>{4194304&t.$$.dirty[0]&&d&&d.setUTCDate(d.getUTCDate()-1),2097156&t.$$.dirty[0]&&c!==m&&(n(2,m=c),c&&n(26,y=new Date(c.valueOf())),n(4,x=1),n(5,T=!0),n(3,v=2)),16&t.$$.dirty[0]&&n(13,r=x<1?1.5:.5),16&t.$$.dirty[0]&&n(12,s=x<1?1:1.5),16&t.$$.dirty[0]&&n(11,a=-2===x?$t:null!==x?Bt:()=>{}),83886093&t.$$.dirty[0]&&n(9,o=Ut(y,m,v,g,h)),16777217&t.$$.dirty[0]&&n(10,i=h>-1?g.daysMin.concat(g.daysMin).slice(h,7+h):g.daysMin.slice(h,7+h)),67108872&t.$$.dirty[0]&&n(8,l=function(){switch(v){case 0:return`${o.grid[0][1]} - ${o.grid[2][2]}`;case 1:return y.getUTCFullYear();case 2:return g.months[y.getUTCMonth()]+" "+y.getUTCFullYear()}}())},[g,p,m,v,x,T,w,C,l,o,i,a,s,r,function(t){return o.prevTo<=t&&tt)||!!(u&&u<=t)},$,function(){n(4,x=-1),n(5,T=!0),v&&n(3,v--,v)},U,function(){n(5,T=!1)},function(){b("switch","time")},c,d,u,h,function(t,e){if(!m)return void U(new Date);let n;switch(t){case"PageDown":e=!0;case"ArrowDown":if(e)return f(y.getUTCFullYear(),y.getMonth()+1,1);if(n=Mt(o.selectionMark+7,v),n.y>5){const t=new Date(y.getUTCFullYear(),y.getMonth()+1,y.getDate());let e=Ut(t,m,v,g,h);return e.grid[0][n.x].getUTCMonth()0?y.getMonth():11,1),m,v,g,h);return n.y=t.grid[5][n.x].getUTCDate()===m.getUTCDate()?4:t.grid[5][n.x].getUTCMonth()===m.getUTCMonth()?3:5,k(-1),void U(t.grid[n.y][n.x])}o.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&k(-1),U(o.grid[n.y][n.x]);break;case"ArrowLeft":if(e)return f(y.getUTCFullYear()-1,y.getMonth(),1);n=Mt(o.selectionMark-1,v),o.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&k(-1),U(o.grid[n.y][n.x]);break;case"ArrowRight":if(e)return f(y.getUTCFullYear()+1,y.getMonth(),1);n=Mt(o.selectionMark+1,v),o.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&k(1),U(o.grid[n.y][n.x])}},y,()=>$(-1),()=>$(1),t=>{U(t)},t=>{U(t)},()=>C&&C(),t=>{U(t)}]}class re extends wt{constructor(t){super(),Tt(this,t,ne,te,i,{date:21,startDate:22,endDate:23,weekStart:24,i18n:0,enableTimeToggle:1,handleGridNav:25},Ht,[-1,-1])}get handleGridNav(){return this.$$.ctx[25]}}function se(t){y(t,"svelte-yz95cb",".sdt-timer.svelte-yz95cb.svelte-yz95cb{position:relative;width:272px}.sdt-time-head.svelte-yz95cb.svelte-yz95cb{position:relative;display:flex;justify-content:center;align-items:center}.sdt-time-figure.svelte-yz95cb.svelte-yz95cb{font-size:1.5rem;font-weight:bold}.sdt-clock.svelte-yz95cb.svelte-yz95cb{margin:auto;position:relative;width:260px;height:260px;background-color:var(--sdt-clock-bg);border-radius:50%;transition:background-color 0.3s}.sdt-clock.is-minute-view.svelte-yz95cb.svelte-yz95cb{background-color:var(--sdt-clock-bg-minute, var(--sdt-clock-bg));box-shadow:var(--sdt-clock-bg-shadow)}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;padding:0.375rem;color:var(--sdt-color)}.sdt-svg.svelte-yz95cb.svelte-yz95cb{fill:var(--sdt-color)}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb:not(.is-active){opacity:0.5}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-back-btn.svelte-yz95cb.svelte-yz95cb{position:absolute;top:0;left:0;opacity:1 !important}.sdt-meridian.svelte-yz95cb.svelte-yz95cb{position:absolute;top:0.25rem;right:0.25rem;display:flex;flex-flow:column;font-size:90%}.sdt-meridian.svelte-yz95cb .sdt-time-btn.svelte-yz95cb{padding:0.15rem 0.5rem}.sdt-meridian.svelte-yz95cb .sdt-time-btn.is-active.svelte-yz95cb{font-weight:bold}.sdt-middle-dot.svelte-yz95cb.svelte-yz95cb{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%, -50%);background-color:var(--sdt-primary);border-radius:50%}.sdt-hand-pointer.svelte-yz95cb.svelte-yz95cb{width:2px;height:calc(40% + 1px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-primary);transform-origin:center bottom 0;transition:transform 0.3s ease, height 0.15s ease}.sdt-hand-circle.svelte-yz95cb.svelte-yz95cb{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-primary);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-yz95cb.svelte-yz95cb{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%, -50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:transparent}.sdt-tick.is-selected.svelte-yz95cb.svelte-yz95cb{animation:svelte-yz95cb-tick-selection 0s 0.175s ease-out forwards}@keyframes svelte-yz95cb-tick-selection{0%{color:initial;background-color:transparent}100%{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}")}function ae(t,e,n){const r=t.slice();return r[31]=e[n],r[33]=n,r}function oe(t,e,n){const r=t.slice();return r[31]=e[n],r[33]=n,r}function ie(t){let e,n,r,s,a,o;return{c(){e=k("button"),n=$("svg"),r=$("path"),F(r,"fill-rule","evenodd"),F(r,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),F(n,"class","sdt-svg svelte-yz95cb"),F(n,"xmlns","http://www.w3.org/2000/svg"),F(n,"viewBox","0 0 24 24"),F(n,"width","20"),F(n,"height","20"),F(e,"class","sdt-time-btn sdt-back-btn svelte-yz95cb"),F(e,"title",s=t[2].backToDate)},m(s,i){T(s,e,i),m(e,n),m(n,r),a||(o=z(e,"click",t[16]),a=!0)},p(t,n){4&n[0]&&s!==(s=t[2].backToDate)&&F(e,"title",s)},d(t){t&&w(e),a=!1,o()}}}function le(t){let e,n,r,s,o,i,l,c,d,u;return{c(){e=k("div"),n=k("button"),r=U("AM"),o=M(),i=k("button"),l=U("PM"),F(n,"class","sdt-time-btn svelte-yz95cb"),F(n,"data-value",s=t[4]%12),B(n,"is-active",t[4]<12),F(i,"class","sdt-time-btn svelte-yz95cb"),F(i,"data-value",c=t[4]%12+12),B(i,"is-active",t[4]>=12),F(e,"class","sdt-meridian svelte-yz95cb")},m(s,a){T(s,e,a),m(e,n),m(n,r),m(e,o),m(e,i),m(i,l),d||(u=[z(n,"click",t[14]),z(i,"click",t[14])],d=!0)},p(t,e){16&e[0]&&s!==(s=t[4]%12)&&F(n,"data-value",s),16&e[0]&&B(n,"is-active",t[4]<12),16&e[0]&&c!==(c=t[4]%12+12)&&F(i,"data-value",c),16&e[0]&&B(i,"is-active",t[4]>=12)},d(t){t&&w(e),d=!1,a(u)}}}function ce(t,e){let n,r,s,a,o,i,l=e[31].val+"";return{key:t,first:null,c(){n=k("button"),r=U(l),F(n,"style",s=`left:${e[31].x}px; top:${e[31].y}px`),F(n,"class","sdt-tick svelte-yz95cb"),F(n,"data-value",a=e[31].val),B(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33])),this.first=n},m(t,e){T(t,n,e),m(n,r),i=!0},p(t,o){e=t,(!i||512&o[0])&&l!==(l=e[31].val+"")&&A(r,l),(!i||512&o[0]&&s!==(s=`left:${e[31].x}px; top:${e[31].y}px`))&&F(n,"style",s),(!i||512&o[0]&&a!==(a=e[31].val))&&F(n,"data-value",a),4664&o[0]&&B(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33]))},i(t){i||(t&&K((()=>{o||(o=pt(n,$t,{duration:200},!0)),o.run(1)})),i=!0)},o(t){t&&(o||(o=pt(n,$t,{duration:200},!1)),o.run(0)),i=!1},d(t){t&&w(n),t&&o&&o.end()}}}function de(t){let e,n,r=t[8],s=[];for(let e=0;edt(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t{a||(a=pt(e,$t,{duration:200},!0)),a.run(1)})),o=!0)},o(t){t&&(a||(a=pt(e,$t,{duration:200},!1)),a.run(0)),o=!1},d(t){t&&w(e),t&&a&&a.end()}}}function he(t){let e,n,r,s,o,i,l,c,d,u,h,g,p,f,y,b,v,x,C,$,D,S,Y,H=t[11](t[4],t[0])+"",E=t[11](t[5],!1)+"",N=[],O=new Map,_=t[1]&&ie(t),P=t[0]&&le(t),j=t[9];const I=t=>t[31].val;for(let e=0;e{L=null})),lt()):L?(L.p(t,e),9&e[0]&&ct(L,1)):(L=de(t),L.c(),ct(L,1),L.m(p,null)),8&e[0]&&B(p,"is-minute-view",t[3])},i(t){if(!D){for(let t=0;t{$=ht(e,$t,{duration:200}),$.start()})),D=!0}},o(t){for(let t=0;t=9||t<3?-1:1)*e),val:r?5*t||n:t?t+s:n});return c}function T(t){if(b&&("mousemove"!==t.type||m)&&(f||"BUTTON"===t.target.tagName)){if("BUTTON"===t.target.tagName){let e=parseInt(t.target.dataset.value);const n=t.meridianSwitch||!f?"setUTCHours":"setUTCMinutes";y[n](e)}else if(f){const e=d.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top,s=130,a=130;let o,i,l=null;switch(l=n>s?r>a?2:1:r>a?3:4,l){case 1:o=n-s,i=a-r;break;case 2:o=n-s,i=r-a;break;case 3:o=s-n,i=r-a;break;case 4:o=s-n,i=a-r}const c=Math.sqrt(o*o+i*i),u=90-Math.asin(o/c)*(180/Math.PI);let h;switch(l){case 1:h=90-u;break;case 2:h=u+90;break;case 3:h=270-u;break;case 4:h=u+270}h=Math.floor(h/6),y.setMinutes(h)}n(20,y),n(17,u),b=!1,v("time",y),t.meridianSwitch||m||!f||setTimeout((()=>{v("close")}),300),t.meridianSwitch||f||n(3,f=!0),setTimeout((()=>{b=!0}),200)}}return t.$$set=t=>{"date"in t&&n(17,u=t.date),"showMeridian"in t&&n(0,h=t.showMeridian),"hasDateComponent"in t&&n(1,g=t.hasDateComponent),"i18n"in t&&n(2,p=t.i18n)},t.$$.update=()=>{1179648&t.$$.dirty[0]&&u!==y&&n(20,y=u),1048576&t.$$.dirty[0]&&n(4,r=y?y.getUTCHours():0),17&t.$$.dirty[0]&&(s=!!h&&r>=12),1048576&t.$$.dirty[0]&&n(5,a=y?y.getUTCMinutes():0),57&t.$$.dirty[0]&&n(10,o=f?`transform: rotateZ(${6*a}deg)`:h?`transform: rotateZ(${r%12*30}deg);`:`transform: rotateZ(${r%12*30}deg); ${r>12||!r?"height: calc(25% + 1px)":""}`),8&t.$$.dirty[0]&&(i=f?5:1),8&t.$$.dirty[0]&&n(9,l=x(220,130,f?"00":"12",f,0)),8&t.$$.dirty[0]&&v("time-switch",f)},n(8,c=x(140,130,"00",!1,12)),[h,g,p,f,r,a,d,m,c,l,o,function(t,e){return e?s&&12===t?12:t<10||t%12<10?"0"+t%12:t%12:t<10?`0${t}`:t},function(t,e,n){return f?e===t||0===n&&n===t:h?!(!s||12!=e||12!==t)||(!s&&12==e&&0===t||e===(t?t%12:12)):e>12?(n?i*n+12:0)===t:"00"===e||"12"===e?12===t&&12==e||"00"===e&&0===t:e===t},T,function(t){t.meridianSwitch=!0,T(t)},function(t){n(7,m="mousedown"===t.type)},function(){v("switch","date")},u,function(t){if(void 0===t)return f;n(3,f=t)},function(t){f?(t=5*t+a)%5!=0&&(t=tn(3,f=!1),()=>n(3,f=!0),t=>{m&&T(t)},function(t){q[t?"unshift":"push"]((()=>{d=t,n(6,d)}))}]}class pe extends wt{constructor(t){super(),Tt(this,t,ge,he,i,{date:17,showMeridian:0,hasDateComponent:1,i18n:2,minuteSwitch:18,makeTick:19},se,[-1,-1])}get minuteSwitch(){return this.$$.ctx[18]}get makeTick(){return this.$$.ctx[19]}}function fe(t){y(t,"svelte-tb6rom",".sdt-calendar-colors.svelte-tb6rom{--sdt-primary:#286090;--sdt-color:#000;--sdt-bg-main:#fff;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:#1e486d;--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:#eee;--sdt-btn-header-bg-hover:#dfdfdf;--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:rgb(238, 237, 237, 0.25);--sdt-clock-bg-shadow:0 0 128px 2px #ddd inset;--sdt-shadow:#ccc}.std-calendar-wrap.svelte-tb6rom{width:280px;background-color:var(--sdt-bg-main);box-shadow:0 1px 6px var(--sdt-shadow);border-radius:4px;padding:0.25rem 0.25rem 0.5rem;color:var(--sdt-color)}.std-calendar-wrap.is-popup.svelte-tb6rom{box-shadow:0 1px 6px var(--sdt-shadow)}.std-btn-row.svelte-tb6rom{margin-top:0.5rem;display:flex;justify-content:space-evenly}.sdt-action-btn.svelte-tb6rom{padding:0.25rem 0.5rem;font-size:.875rem;border-radius:0.2rem}.sdt-today-btn.svelte-tb6rom{background-color:var(--sdt-primary);color:var(--sdt-today-color, var(--sdt-bg-main));padding:0.25rem 0.5rem;font-size:.875rem;border-radius:0.2rem;border:1px solid var(--sdt-today-bg)}.sdt-today-btn[disabled].svelte-tb6rom{opacity:0.75}.sdt-today-btn.svelte-tb6rom:focus,.sdt-today-btn.svelte-tb6rom:active,.sdt-today-btn.svelte-tb6rom:hover:not([disabled]){background-color:var(--sdt-today-bg)}.sdt-clear-btn.svelte-tb6rom{border:1px solid var(--sdt-clear-color);background-color:transparent;color:var(--sdt-clear-color)}.sdt-clear-btn.svelte-tb6rom:focus,.sdt-clear-btn.svelte-tb6rom:active:not([disabled]),.sdt-clear-btn.svelte-tb6rom:hover:not([disabled]){background-color:var(--sdt-clear-color);color:var(--sdt-clear-hover-color, var(--sdt-bg-main))}")}function me(t){let e,n,r,s,i,l,d,u,h;const g=[be,ye],p=[];function f(t,e){return"date"===t[27]?0:1}return n=f(t),r=p[n]=g[n](t),{c(){e=k("div"),r.c(),F(e,"class",s="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom")},m(r,s){T(r,e,s),p[n].m(e,null),d=!0,u||(h=[c(i=t[19].call(null,e,{inputEl:t[22],visible:t[28],inputRect:t[23]})),z(e,"mousedown",S(t[47]))],u=!0)},p(t,a){let l=n;n=f(t),n===l?p[n].p(t,a):(it(),dt(p[l],1,1,(()=>{p[l]=null})),lt(),r=p[n],r?r.p(t,a):(r=p[n]=g[n](t),r.c()),ct(r,1),r.m(e,null)),(!d||512&a[0]&&s!==(s="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom"))&&F(e,"class",s),i&&o(i.update)&&281018368&a[0]&&i.update.call(null,{inputEl:t[22],visible:t[28],inputRect:t[23]})},i(t){d||(ct(r),t&&K((()=>{l||(l=pt(e,$t,{duration:200},!0)),l.run(1)})),d=!0)},o(t){dt(r),t&&(l||(l=pt(e,$t,{duration:200},!1)),l.run(0)),d=!1},d(t){t&&w(e),p[n].d(),t&&l&&l.end(),u=!1,a(h)}}}function ye(t){let e,n,r={date:t[20],hasDateComponent:"time"!==t[26],showMeridian:t[1].match("p|P"),i18n:t[18]};return e=new pe({props:r}),t[53](e),e.$on("time",t[31]),e.$on("switch",t[36]),e.$on("close",t[37]),{c(){bt(e.$$.fragment)},m(t,r){vt(e,t,r),n=!0},p(t,n){const r={};1048576&n[0]&&(r.date=t[20]),67108864&n[0]&&(r.hasDateComponent="time"!==t[26]),2&n[0]&&(r.showMeridian=t[1].match("p|P")),262144&n[0]&&(r.i18n=t[18]),e.$set(r)},i(t){n||(ct(e.$$.fragment,t),n=!0)},o(t){dt(e.$$.fragment,t),n=!1},d(n){t[53](null),xt(e,n)}}}function be(t){let e,n,r,s,a={date:t[20],startDate:t[6]?St(t[6],t[1],t[18],t[10]):null,endDate:t[7]?St(t[7],t[1],t[18],t[10]):null,enableTimeToggle:t[26].includes("time"),i18n:t[18],weekStart:t[11]};e=new re({props:a}),t[52](e),e.$on("date",t[31]),e.$on("switch",t[36]);let o=(t[16]||t[17])&&ve(t);return{c(){bt(e.$$.fragment),n=M(),o&&o.c(),r=D()},m(t,a){vt(e,t,a),T(t,n,a),o&&o.m(t,a),T(t,r,a),s=!0},p(t,n){const s={};1048576&n[0]&&(s.date=t[20]),263234&n[0]&&(s.startDate=t[6]?St(t[6],t[1],t[18],t[10]):null),263298&n[0]&&(s.endDate=t[7]?St(t[7],t[1],t[18],t[10]):null),67108864&n[0]&&(s.enableTimeToggle=t[26].includes("time")),262144&n[0]&&(s.i18n=t[18]),2048&n[0]&&(s.weekStart=t[11]),e.$set(s),t[16]||t[17]?o?o.p(t,n):(o=ve(t),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i(t){s||(ct(e.$$.fragment,t),s=!0)},o(t){dt(e.$$.fragment,t),s=!1},d(s){t[52](null),xt(e,s),s&&w(n),o&&o.d(s),s&&w(r)}}}function ve(t){let e,n,r=t[16]&&xe(t),s=t[17]&&Te(t);return{c(){e=k("div"),r&&r.c(),n=M(),s&&s.c(),F(e,"class","std-btn-row svelte-tb6rom")},m(t,a){T(t,e,a),r&&r.m(e,null),m(e,n),s&&s.m(e,null)},p(t,a){t[16]?r?r.p(t,a):(r=xe(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),t[17]?s?s.p(t,a):(s=Te(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(t){t&&w(e),r&&r.d(),s&&s.d()}}}function xe(t){let e,n,r,s,a,o,i=t[18].todayBtn+"";return{c(){e=k("button"),n=U(i),F(e,"class",r=l(t[14])+" svelte-tb6rom"),e.disabled=s=t[6]>Ft(new Date,t[1],t[18],t[10])},m(r,s){T(r,e,s),m(e,n),a||(o=z(e,"click",t[32]),a=!0)},p(t,a){262144&a[0]&&i!==(i=t[18].todayBtn+"")&&A(n,i),16384&a[0]&&r!==(r=l(t[14])+" svelte-tb6rom")&&F(e,"class",r),263234&a[0]&&s!==(s=t[6]>Ft(new Date,t[1],t[18],t[10]))&&(e.disabled=s)},d(t){t&&w(e),a=!1,o()}}}function Te(t){let e,n,r,s,a,o,i=t[18].clearBtn+"";return{c(){e=k("button"),n=U(i),F(e,"class",r=l(t[15])+" svelte-tb6rom"),e.disabled=s=!t[20]},m(r,s){T(r,e,s),m(e,n),a||(o=z(e,"click",t[33]),a=!0)},p(t,a){262144&a[0]&&i!==(i=t[18].clearBtn+"")&&A(n,i),32768&a[0]&&r!==(r=l(t[15])+" svelte-tb6rom")&&F(e,"class",r),1048576&a[0]&&s!==(s=!t[20])&&(e.disabled=s)},d(t){t&&w(e),a=!1,o()}}}function we(t){let e,n,r,s,o,i,d,u,h=(t[12]||t[21])&&me(t);return{c(){e=k("input"),s=M(),h&&h.c(),o=D(),F(e,"type",n=t[8]?"hidden":"text"),F(e,"name",t[2]),F(e,"autocomplete","off"),e.disabled=t[3],F(e,"placeholder",t[4]),F(e,"class",r=l(t[13])+" svelte-tb6rom"),e.required=t[5],e.readOnly=t[21],e.value=t[0]},m(n,r){T(n,e,r),t[50](e),T(n,s,r),h&&h.m(n,r),T(n,o,r),i=!0,d||(u=[c(t[29].call(null,e,t[30])),z(e,"focus",t[34]),z(e,"blur",t[38]),z(e,"click",t[51]),z(e,"input",t[48]),z(e,"change",t[49]),z(e,"keydown",t[35])],d=!0)},p(t,s){(!i||256&s[0]&&n!==(n=t[8]?"hidden":"text"))&&F(e,"type",n),(!i||4&s[0])&&F(e,"name",t[2]),(!i||8&s[0])&&(e.disabled=t[3]),(!i||16&s[0])&&F(e,"placeholder",t[4]),(!i||8192&s[0]&&r!==(r=l(t[13])+" svelte-tb6rom"))&&F(e,"class",r),(!i||32&s[0])&&(e.required=t[5]),(!i||2097152&s[0])&&(e.readOnly=t[21]),(!i||1&s[0]&&e.value!==t[0])&&(e.value=t[0]),t[12]||t[21]?h?(h.p(t,s),2101248&s[0]&&ct(h,1)):(h=me(t),h.c(),ct(h,1),h.m(o.parentNode,o)):h&&(it(),dt(h,1,1,(()=>{h=null})),lt())},i(t){i||(ct(h),i=!0)},o(t){dt(h),i=!1},d(n){n&&w(e),t[50](null),n&&w(s),h&&h.d(n),n&&w(o),d=!1,a(u)}}}const Ce=Ct;function ke(t,e,n){let r,{name:s="date"}=e,{disabled:a=!1}=e,{placeholder:o=null}=e,{required:i=!1}=e,{value:l=null}=e,{initialDate:c=null}=e,{startDate:d=null}=e,{endDate:u=null}=e,{pickerOnly:h=!1}=e,{theme:g=Ce.theme}=e,{mode:p=Ce.mode}=e,{format:f=Ce.format}=e,{formatType:m=Ce.formatType}=e,{weekStart:y=Ce.weekStart}=e,{visible:b=Ce.visible}=e,{inputClasses:v=Ce.inputClasses}=e,{todayBtnClasses:x=Ce.todayBtnClasses}=e,{clearBtnClasses:T=Ce.clearBtnClasses}=e,{todayBtn:w=Ce.todayBtn}=e,{clearBtn:C=Ce.clearBtn}=e,{clearToggle:k=Ce.clearToggle}=e,{autoclose:$=Ce.autoclose}=e,{i18n:U=Ce.i18n}=e,{positionFn:M=Yt}=e,{validatorAction:D=null}=e;"yyyy-mm-dd"===f&&"time"===p&&(f="hh:ii");const z=I();l&&(l=l.replace(/(:\d+):\d+/,"$1"));let S=l,F=f,A=c&&c instanceof Date?zt(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getHours(),c.getUTCMinutes()):l?St(l,f,U,m):null;A&&c&&(l=Ft(A,f,U,m));let Y,B=h,H=null,E=null,N=D?D.shift():()=>{},O=D||[],_=null,P=!1,j=null,R="auto"===p?f.match(/hh?|ii?/i)&&f.match(/y|m|d/i)?"datetime":f.match(/hh?|ii?/i)?"time":"date":p,V="time"===R?"time":"date";function Z(t){let e=t.detail||null;t.detail&&A&&A.getUTCFullYear()===t.detail.getUTCFullYear()&&A.getUTCMonth()===t.detail.getUTCMonth()&&A.getUTCDate()===t.detail.getUTCDate()&&"date"===R&&k&&(e=null),n(0,l=e?Ft(e,f,U,m):null),!$||"date"!==R&&e||h||P||X(!1),e&&!P&&"datetime"===R&&"date"===V&&n(27,V="time"),P&&"time"===V?j=setTimeout((()=>{P=!1}),400):P=!1,(W(),G).then((()=>{H.dispatchEvent(new Event("input")),z("change",l)}))}function J(){Z({detail:null})}function K(){n(23,E=H.getBoundingClientRect()),n(21,B=!0)}function X(t){n(21,B=!1),R.includes("date")&&n(27,V="date"),t&&z("blur")}return t.$$set=t=>{"name"in t&&n(2,s=t.name),"disabled"in t&&n(3,a=t.disabled),"placeholder"in t&&n(4,o=t.placeholder),"required"in t&&n(5,i=t.required),"value"in t&&n(0,l=t.value),"initialDate"in t&&n(39,c=t.initialDate),"startDate"in t&&n(6,d=t.startDate),"endDate"in t&&n(7,u=t.endDate),"pickerOnly"in t&&n(8,h=t.pickerOnly),"theme"in t&&n(9,g=t.theme),"mode"in t&&n(40,p=t.mode),"format"in t&&n(1,f=t.format),"formatType"in t&&n(10,m=t.formatType),"weekStart"in t&&n(11,y=t.weekStart),"visible"in t&&n(12,b=t.visible),"inputClasses"in t&&n(13,v=t.inputClasses),"todayBtnClasses"in t&&n(14,x=t.todayBtnClasses),"clearBtnClasses"in t&&n(15,T=t.clearBtnClasses),"todayBtn"in t&&n(16,w=t.todayBtn),"clearBtn"in t&&n(17,C=t.clearBtn),"clearToggle"in t&&n(41,k=t.clearToggle),"autoclose"in t&&n(42,$=t.autoclose),"i18n"in t&&n(18,U=t.i18n),"positionFn"in t&&n(19,M=t.positionFn),"validatorAction"in t&&n(43,D=t.validatorAction)},t.$$.update=()=>{if(4352&t.$$.dirty[0]&&n(28,r=!!h||b),1311747&t.$$.dirty[0]|49664&t.$$.dirty[1]){if(l!==S){const t=l?St(l,f,U,m):null;n(20,A=t),n(45,S=l)}F!==f&&A&&(n(0,l=Ft(A,f,U,m)),n(45,S=l),n(46,F=f),"auto"===p&&n(26,R=f.match(/hh?|ii?/i)&&f.match(/y|m|d/i)?"datetime":f.match(/hh?|ii?/i)?"time":"date"))}},[l,f,s,a,o,i,d,u,h,g,m,y,b,v,x,T,w,C,U,M,A,B,H,E,_,Y,R,V,r,N,O,Z,function(){const t=new Date;if(d&&St(d,f,U,m){H=t,n(22,H)}))},()=>{!B&&K()},function(t){q[t?"unshift":"push"]((()=>{_=t,n(24,_)}))},function(t){q[t?"unshift":"push"]((()=>{Y=t,n(25,Y)}))}]}class $e extends wt{constructor(t){super(),Tt(this,t,ke,we,i,{name:2,disabled:3,placeholder:4,required:5,value:0,initialDate:39,startDate:6,endDate:7,pickerOnly:8,theme:9,mode:40,format:1,formatType:10,weekStart:11,visible:12,inputClasses:13,todayBtnClasses:14,clearBtnClasses:15,todayBtn:16,clearBtn:17,clearToggle:41,autoclose:42,i18n:18,positionFn:19,validatorAction:43,setDateValue:44},fe,[-1,-1])}get setDateValue(){return this.$$.ctx[44]}}const Ue=["value","name","placeholder","start-date","end-date","disabled","input-classes","mode","format","week-start","today-btn","clear-btn","autoclose","required"];function Me(t,e){switch(t){case"value":return e||"";case"required":case"disabled":case"today-btn":case"clear-btn":case"autoclose":return null!==e&&"false"!==e;case"weekStart":return parseInt(e)}return e}function De(t){return t.includes("-")?t.split("-").reduce(((t,e,n)=>(n&&(e=e[0].toUpperCase()+e.substr(1)),t+e)),""):t}class ze extends HTMLElement{constructor(){super(),this.picker=null;const t=["value","name","placeholder","mode","format"].reduce(((t,e)=>(t[e]={get(){return Me(e,this.getAttribute(e))},set(t){this.setAttribute(e,t)}},t)),{}),e={form:{get(){return this.closest("form")}},weekStart:{get(){return this.getAttribute("week-start")},set(t){this.setAttribute("week-start",t)}},startDate:{get(){return this.getAttribute("start-date")},set(t){t&&this.setAttribute("start-date",t),!t&&this.removeAttribute("start-date")}},endDate:{get(){return this.getAttribute("end-date")},set(t){t&&this.setAttribute("end-date",t),!t&&this.removeAttribute("end-date")}},inputClasses:{get(){return this.getAttribute("input-classes")},set(t){t&&this.setAttribute("input-classes",t),!t&&this.removeAttribute("input-classes")}}},n=["required","disabled","today-btn","clear-btn","autoclose"].reduce(((t,e)=>{const n=De(e);return t[n]={get(){const t=this.hasAttribute(e),r=!t||"false"!==this.getAttribute(e);return t?r:Ce[n]},set(t){t?this.setAttribute(e,t=""):this.hasAttribute(e)?this.removeAttribute(e):this.picker.$set({[n]:t})}},t}),{});Object.defineProperties(this,Object.assign({},t,e,n))}focus(){if(this.disabled)return;const t=this.querySelector("input");t&&t.focus()}static get observedAttributes(){return Ue}attributeChangedCallback(t,e,n){this.picker&&e!==n&&this.picker.$set({[De(t)]:Me(t,n)})}connectedCallback(){if(this.picker)return;let t={};for(const e of Ue)this.hasAttribute(e)&&(t[De(e)]=Me(e,this.getAttribute(e)));this.picker=new $e({target:this,props:t}),this.picker.$on("input",(t=>{this.setAttribute("value",t.target.value),this.dispatchEvent(new Event("input"))})),this.picker.$on("blur",(t=>{this.dispatchEvent(new Event("blur"))})),setTimeout((()=>{if(this.hasAttribute("from")){const t=document.getElementById(this.getAttribute("from"));t.oninput=e=>{this.picker.$set({startDate:t.value})}}if(this.hasAttribute("to")){const t=document.getElementById(this.getAttribute("to"));t.oninput=e=>{this.picker.$set({endDate:t.value})}}}))}disconnectedCallback(){this.picker&&this.picker.destroy()}}return t.registerElement=function(t){window.customElements.define(t,ze)},Object.defineProperty(t,"__esModule",{value:!0}),t}({}); diff --git a/dist/svelty-picker-element.js b/dist/svelty-picker-element.js deleted file mode 100644 index edb37e2..0000000 --- a/dist/svelty-picker-element.js +++ /dev/null @@ -1 +0,0 @@ -var SveltyPicker=function(t){"use strict";function e(){}const n=t=>t;function r(t){return t()}function s(){return Object.create(null)}function a(t){t.forEach(r)}function i(t){return"function"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function o(t){return null==t?"":t}function c(t){return t&&i(t.destroy)?t.destroy:e}const u="undefined"!=typeof window;let d=u?()=>window.performance.now():()=>Date.now(),h=u?t=>requestAnimationFrame(t):e;const f=new Set;function g(t){f.forEach((e=>{e.c(t)||(f.delete(e),e.f())})),0!==f.size&&h(g)}function m(t){let e;return 0===f.size&&h(g),{promise:new Promise((n=>{f.add(e={c:t,f:n})})),abort(){f.delete(e)}}}function p(t,e){t.appendChild(e)}function y(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function b(t){const e=w("style");return function(t,e){p(t.head||t,e)}(y(t),e),e.sheet}function v(t,e,n){t.insertBefore(e,n||null)}function T(t){t.parentNode.removeChild(t)}function C(t,e){for(let n=0;nt.removeEventListener(e,n,r)}function x(t){return function(e){return e.preventDefault(),t.call(this,e)}}function S(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function F(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function A(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Y(t,e,n){t.classList[n?"add":"remove"](e)}function B(t,e,n=!1){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}const H=new Map;let E,z=0;function N(t,e,n,r,s,a,i,l=0){const o=16.666/r;let c="{\n";for(let t=0;t<=1;t+=o){const r=e+(n-e)*a(t);c+=100*t+`%{${i(r,1-r)}}\n`}const u=c+`100% {${i(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=y(t),{stylesheet:f,rules:g}=H.get(h)||function(t,e){const n={stylesheet:b(e),rules:{}};return H.set(t,n),n}(h,t);g[d]||(g[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${r}ms linear ${s}ms 1 both`,z+=1,d}function O(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),s=n.length-r.length;s&&(t.style.animation=r.join(", "),z-=s,z||h((()=>{z||(H.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),H.clear())})))}function _(t){E=t}function P(){const t=function(){if(!E)throw new Error("Function called outside component initialization");return E}();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const s=B(e,n);r.slice().forEach((e=>{e.call(t,s)}))}}}function L(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const R=[],j=[],q=[],I=[],V=Promise.resolve();let Z=!1;function G(){Z||(Z=!0,V.then(Q))}function J(t){q.push(t)}const W=new Set;let K,X=0;function Q(){const t=E;do{for(;X{K=null}))),K}function nt(t,e,n){t.dispatchEvent(B(`${e?"intro":"outro"}${n}`))}const rt=new Set;let st;function at(){st={r:0,c:[],p:st}}function it(){st.r||a(st.c),st=st.p}function lt(t,e){t&&t.i&&(rt.delete(t),t.i(e))}function ot(t,e,n,r){if(t&&t.o){if(rt.has(t))return;rt.add(t),st.c.push((()=>{rt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}const ct={duration:0};function ut(t,r,s){let a,l,o=r(t,s),c=!1,u=0;function h(){a&&O(t,a)}function f(){const{delay:r=0,duration:s=300,easing:i=n,tick:f=e,css:g}=o||ct;g&&(a=N(t,0,1,s,r,i,g,u++)),f(0,1);const p=d()+r,y=p+s;l&&l.abort(),c=!0,J((()=>nt(t,!0,"start"))),l=m((e=>{if(c){if(e>=y)return f(1,0),nt(t,!0,"end"),h(),c=!1;if(e>=p){const t=i((e-p)/s);f(t,1-t)}}return c}))}let g=!1;return{start(){g||(g=!0,O(t),i(o)?(o=o(),et().then(f)):f())},invalidate(){g=!1},end(){c&&(h(),c=!1)}}}function dt(t,r,s){let l,o=r(t,s),c=!0;const u=st;function h(){const{delay:r=0,duration:s=300,easing:i=n,tick:h=e,css:f}=o||ct;f&&(l=N(t,1,0,s,r,i,f));const g=d()+r,p=g+s;J((()=>nt(t,!1,"start"))),m((e=>{if(c){if(e>=p)return h(0,1),nt(t,!1,"end"),--u.r||a(u.c),!1;if(e>=g){const t=i((e-g)/s);h(1-t,t)}}return c}))}return u.r+=1,i(o)?et().then((()=>{o=o(),h()})):h(),{end(e){e&&o.tick&&o.tick(1,0),c&&(l&&O(t,l),c=!1)}}}function ht(t,r,s,l){let o=r(t,s),c=l?0:1,u=null,h=null,f=null;function g(){f&&O(t,f)}function p(t,e){const n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function y(r){const{delay:s=0,duration:i=300,easing:l=n,tick:y=e,css:b}=o||ct,v={start:d()+s,b:r};r||(v.group=st,st.r+=1),u||h?h=v:(b&&(g(),f=N(t,c,r,i,s,l,b)),r&&y(0,1),u=p(v,i),J((()=>nt(t,r,"start"))),m((e=>{if(h&&e>h.start&&(u=p(h,i),h=null,nt(t,u.b,"start"),b&&(g(),f=N(t,c,u.b,u.duration,0,l,o.css))),u)if(e>=u.end)y(c=u.b,1-c),nt(t,u.b,"end"),h||(u.b?g():--u.group.r||a(u.group.c)),u=null;else if(e>=u.start){const t=e-u.start;c=u.a+u.d*l(t/u.duration),y(c,1-c)}return!(!u&&!h)})))}return{run(t){i(o)?et().then((()=>{o=o(),y(t)})):y(t)},end(){g(),u=h=null}}}function ft(t,e){t.d(1),e.delete(t.key)}function gt(t,e){ot(t,1,1,(()=>{e.delete(t.key)}))}function mt(t,e,n,r,s,a,i,l,o,c,u,d){let h=t.length,f=a.length,g=h;const m={};for(;g--;)m[t[g].key]=g;const p=[],y=new Map,b=new Map;for(g=f;g--;){const t=d(s,a,g),l=n(t);let o=i.get(l);o?r&&o.p(t,e):(o=c(l,t),o.c()),y.set(l,p[g]=o),l in m&&b.set(l,Math.abs(g-m[l]))}const v=new Set,T=new Set;function C(t){lt(t,1),t.m(l,u),i.set(t.key,t),u=t.first,f--}for(;h&&f;){const e=p[f-1],n=t[h-1],r=e.key,s=n.key;e===n?(u=e.first,h--,f--):y.has(s)?!i.has(r)||v.has(r)?C(e):T.has(s)?h--:b.get(r)>b.get(s)?(T.add(r),C(e)):(v.add(s),h--):(o(n,i),h--)}for(;h--;){const e=t[h];y.has(e.key)||o(e,i)}for(;f;)C(p[f-1]);return p}function pt(t){t&&t.c()}function yt(t,e,n,s){const{fragment:l,on_mount:o,on_destroy:c,after_update:u}=t.$$;l&&l.m(e,n),s||J((()=>{const e=o.map(r).filter(i);c?c.push(...e):a(e),t.$$.on_mount=[]})),u.forEach(J)}function bt(t,e){const n=t.$$;null!==n.fragment&&(a(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function vt(t,n,r,i,l,o,c,u=[-1]){const d=E;_(t);const h=t.$$={fragment:null,ctx:null,props:o,update:e,not_equal:l,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:s(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};c&&c(h.root);let f=!1;if(h.ctx=r?r(t,n.props||{},((e,n,...r)=>{const s=r.length?r[0]:n;return h.ctx&&l(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),f&&function(t,e){-1===t.$$.dirty[0]&&(R.push(t),G(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var Ct={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,visible:!1,inputClasses:null,todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"}};function wt(t){const e=t-1;return e*e*e+1}function $t(t,{delay:e=0,duration:r=400,easing:s=n}={}){const a=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:s,css:t=>"opacity: "+t*a}}function Ut(t,e,n,r,s){if(0===n){const n=11,r=1,s=-1,a=[];let i=[],l=t.getUTCFullYear()-t.getUTCFullYear()%10-1;for(let t=0;t<12;t++)i.push(l+t),4===i.length&&(a.push(i),i=[]);let o=null;return e||(e=new Date),e.getUTCFullYear()>=l&&(o=e.getUTCFullYear()%l),{grid:a,todayMark:s,nextFrom:n,prevTo:r,selectionMark:o}}if(1===n){let n=[],s=[],a=12,i=24;const l=t.toISOString().split("T")[0].substring(0,8),o=new Date(l+"01 00:00:00"),c=o.getFullYear()-1;o.setFullYear(c);let u=0;for(let t=0;t<3;t++){for(let t=0;t<12;t++)o.setUTCMonth(t),s.push(r.monthsShort[t%12]),4===s.length&&(n.push(s),s=[]);o.setFullYear(o.getFullYear()+1)}let d=null;return e||(e=new Date),e.getUTCFullYear()-c>=0&&e.getUTCFullYear()-c<=2&&(d=e.getUTCMonth()+12*(e.getUTCFullYear()-c||0)),{grid:n,todayMark:u,nextFrom:i,prevTo:a,selectionMark:d}}let a=t||new Date,i=a.getUTCFullYear(),l=a.getUTCMonth();a.getUTCDate(),a.getUTCHours();let o=new Date,c=Dt(i,l-1,28,0,0,0,0),u=kt.getDaysInMonth(c.getUTCFullYear(),c.getUTCMonth());c.setUTCDate(u),c.setUTCDate(u-(c.getUTCDay()-s+7)%7);let d=new Date(c);d.setUTCDate(d.getUTCDate()+42);let h=d.valueOf(),f=[],g=[],m=-1,p=null,y=0,b=42,v=0;for(;c.valueOf()i||c.getUTCFullYear()===i&&c.getUTCMonth()>l)&&(b=v-1),c.setUTCDate(c.getUTCDate()+1),c.getUTCFullYear()===o.getUTCFullYear()&&c.getUTCMonth()===o.getUTCMonth()&&c.getUTCDate()===o.getUTCDate()&&(m=v),!p&&e&&c.getUTCFullYear()===e.getUTCFullYear()&&c.getUTCMonth()===e.getUTCMonth()&&c.getUTCDate()===e.getUTCDate()&&(p=v),7===g.length&&(f.push(g),g=[]);return{grid:f,todayMark:m,prevTo:y,nextFrom:b,selectionMark:p}}function Mt(t,e){if(2===e)return t<0&&(t=42+t),{x:t%7,y:Math.floor(t/7)}}const kt={isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,kt.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}};function Dt(){return new Date(Date.UTC.apply(Date,arguments))}function xt(t,e,n,r){if(t instanceof Date){const e=new Date(t.valueOf()-6e4*t.getTimezoneOffset());return e.setMilliseconds(0),e}e=/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)?Ft.parseFormat("yyyy-mm-dd",r):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)?Ft.parseFormat("yyyy-mm-dd hh:ii",r):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)?Ft.parseFormat("yyyy-mm-dd hh:ii:ss",r):Ft.parseFormat(e,r);var s,a,i=t&&t.toString().match(Ft.nonpunctuation)||[],l=(t=new Date(0,0,0,0,0,0,0),{}),o=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],c={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12===e?0:e)},H:function(t,e){return t.setUTCHours(12===e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;){if(isNaN(t.getUTCMonth()))return t;t.setUTCDate(t.getUTCDate()-1)}return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1===e?t.getUTCHours()+12:t.getUTCHours())}};if(c.M=c.MM=c.mm=c.m,c.dd=c.d,c.P=c.p,t=Dt(t.getFullYear(),t.getMonth(),t.getDate(),t.getUTCHours(),t.getUTCMinutes(),t.getSeconds()),i.length===e.parts.length){for(var u=0,d=e.parts.length;uwindow.innerWidth?"right: 1rem":`left: ${r.left}px`),e.height+e.top>window.innerHeight+window.scrollY?n.push("bottom: 1rem"):n.push(`top: ${r.top+r.height+window.scrollY}px`),t.style=n.join(";"),t.hidden=!1,document.body.appendChild(t)}return t.hidden=!1,{destroy:function(){t.parentNode&&t.parentNode.removeChild(t)}}}function Yt(t,{delay:e=0,duration:n=400,easing:r=wt,start:s=0,end:a=1,opacity:i=0}={}){const l=getComputedStyle(t),o=+l.opacity,c="none"===l.transform?"":l.transform,u=1-s,d=o*(1-i);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n transform: ${c} scale(${1!==a?s+a*e:1-u*e});\n opacity: ${o-d*e};\n `}}function Bt(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function Ht(t,e,n){const r=t.slice();return r[40]=e[n],r[42]=n,r}function Et(t,e,n){const r=t.slice();return r[43]=e[n],r}function zt(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function Nt(t,e,n){const r=t.slice();return r[47]=e[n],r[42]=n,r}function Ot(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function _t(t,e,n){const r=t.slice();return r[50]=e[n],r[42]=n,r}function Pt(t){let e,n,r,s,a,i;return{c(){e=w("button"),n=$("svg"),r=$("path"),S(r,"fill-rule","evenodd"),S(r,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),S(n,"class","sdt-svg svelte-1xp8yha"),S(n,"xmlns","http://www.w3.org/2000/svg"),S(n,"viewBox","0 0 16 16"),S(n,"width","16"),S(n,"height","16"),S(e,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-1xp8yha"),S(e,"title",s=t[0].timeView)},m(s,l){v(s,e,l),p(e,n),p(n,r),a||(i=D(e,"click",x(t[20])),a=!0)},p(t,n){1&n[0]&&s!==(s=t[0].timeView)&&S(e,"title",s)},d(t){t&&T(e),a=!1,i()}}}function Lt(t){let e,n,r,s,a,i,l,o=t[9].grid,c=[];for(let e=0;e{s&&s.end(1),r=ut(n,t[11],{duration:Xt,start:t[13],opacity:1}),r.start()})),a=!0)},o(e){r&&r.invalidate(),e&&(s=dt(n,t[11],{duration:Xt,end:t[12],start:1})),a=!1},d(t){t&&T(e),C(c,t),t&&s&&s.end(),i=!1,l()}}}function Rt(t,e){let n,r,s,a,i,l=e[50]+"";function o(){return e[29](e[50])}return{key:t,first:null,c(){n=w("td"),r=w("button"),s=U(l),S(r,"class","std-btn svelte-1xp8yha"),Y(r,"not-current",!e[14](4*e[39]+e[42])),S(n,"class","svelte-1xp8yha"),Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){v(t,n,e),p(n,r),p(r,s),a||(i=D(r,"click",x(o)),a=!0)},p(t,a){e=t,512&a[0]&&l!==(l=e[50]+"")&&F(s,l),16896&a[0]&&Y(r,"not-current",!e[14](4*e[39]+e[42])),512&a[0]&&Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&T(n),a=!1,i()}}}function jt(t){let e,n,r=[],s=new Map,a=t[37];const i=t=>t[42];for(let e=0;e{i&&i.end(1),s=ut(n,t[11],{duration:Xt,start:t[13],opacity:1}),s.start()})),l=!0)},o(e){s&&s.invalidate(),e&&(i=dt(n,t[11],{duration:Xt,end:t[12],start:1})),l=!1},d(t){t&&T(e),C(d,t),t&&i&&i.end(),o=!1,a(c)}}}function It(t,e){let n,r,s,a,i,l=e[47]+"";function o(){return e[30](e[47])}return{key:t,first:null,c(){n=w("td"),r=w("button"),s=U(l),S(r,"class","std-btn svelte-1xp8yha"),Y(r,"not-current",!e[14](4*e[39]+e[42])),S(n,"class","svelte-1xp8yha"),Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){v(t,n,e),p(n,r),p(r,s),a||(i=D(r,"click",x(o)),a=!0)},p(t,a){e=t,512&a[0]&&l!==(l=e[47]+"")&&F(s,l),16896&a[0]&&Y(r,"not-current",!e[14](4*e[39]+e[42])),512&a[0]&&Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&T(n),a=!1,i()}}}function Vt(t){let e,n,r=[],s=new Map,a=t[37];const i=t=>t[42];for(let e=0;e{i&&i.end(1),a=ut(n,t[11],{duration:Xt,start:.5,opacity:1}),a.start()})),l=!0)},o(e){a&&a.invalidate(),e&&(i=dt(n,t[11],{duration:Xt,start:Math.abs(t[4])})),l=!1},d(t){t&&T(e),C(d,t),C(f,t),t&&i&&i.end(),o=!1,c()}}}function Gt(t){let e,n,r=t[43]+"";return{c(){e=w("th"),n=U(r),S(e,"class","sdt-cal-th svelte-1xp8yha")},m(t,r){v(t,e,r),p(e,n)},p(t,e){1024&e[0]&&r!==(r=t[43]+"")&&F(n,r)},d(t){t&&T(e)}}}function Jt(t,e){let n,r,s,a,i,l,o=e[40].getUTCDate()+"";function c(){return e[32](e[40])}return{key:t,first:null,c(){n=w("td"),r=w("button"),s=U(o),S(r,"class","std-btn sdt-btn-day svelte-1xp8yha"),r.disabled=a=e[15](e[40]),Y(r,"not-current",!e[14](7*e[39]+e[42],e[40])),S(n,"class","sdt-cal-td svelte-1xp8yha"),Y(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),Y(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){v(t,n,e),p(n,r),p(r,s),i||(l=D(r,"click",x(c)),i=!0)},p(t,i){e=t,512&i[0]&&o!==(o=e[40].getUTCDate()+"")&&F(s,o),512&i[0]&&a!==(a=e[15](e[40]))&&(r.disabled=a),16896&i[0]&&Y(r,"not-current",!e[14](7*e[39]+e[42],e[40])),512&i[0]&&Y(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),512&i[0]&&Y(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark)},d(t){t&&T(n),i=!1,l()}}}function Wt(t){let e,n,r=[],s=new Map,a=t[37];const i=t=>t[42];for(let e=0;e',c=M(),u=w("button"),u.innerHTML='',d=M(),h=w("div"),C&&C.c(),f=M(),$&&$.c(),g=M(),k&&k.c(),S(n,"class","std-btn std-btn-header sdt-toggle-btn svelte-1xp8yha"),S(o,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),S(u,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),S(i,"class","sdt-nav-btns svelte-1xp8yha"),S(e,"class","sdt-thead-nav svelte-1xp8yha"),S(h,"class","sdt-calendar svelte-1xp8yha"),Y(h,"is-grid",t[5])},m(a,T){v(a,e,T),p(e,n),p(n,r),p(e,s),p(e,i),b&&b.m(i,null),p(i,l),p(i,o),p(i,c),p(i,u),v(a,d,T),v(a,h,T),C&&C.m(h,null),p(h,f),$&&$.m(h,null),p(h,g),k&&k.m(h,null),m||(y=[D(n,"click",x(t[17])),D(o,"click",x(t[27])),D(u,"click",x(t[28]))],m=!0)},p(t,e){256&e[0]&&F(r,t[8]),t[1]&&t[2]?b?b.p(t,e):(b=Pt(t),b.c(),b.m(i,l)):b&&(b.d(1),b=null),0===t[3]?C?(C.p(t,e),8&e[0]&<(C,1)):(C=Lt(t),C.c(),lt(C,1),C.m(h,f)):C&&(at(),ot(C,1,1,(()=>{C=null})),it()),1===t[3]?$?($.p(t,e),8&e[0]&<($,1)):($=qt(t),$.c(),lt($,1),$.m(h,g)):$&&(at(),ot($,1,1,(()=>{$=null})),it()),2===t[3]?k?(k.p(t,e),8&e[0]&<(k,1)):(k=Zt(t),k.c(),lt(k,1),k.m(h,null)):k&&(at(),ot(k,1,1,(()=>{k=null})),it()),32&e[0]&&Y(h,"is-grid",t[5])},i(t){lt(C),lt($),lt(k)},o(t){ot(C),ot($),ot(k)},d(t){t&&T(e),b&&b.d(),t&&T(d),t&&T(h),C&&C.d(),$&&$.d(),k&&k.d(),m=!1,a(y)}}}let Xt=400;function Qt(t,e,n){let r,s,a,i,l,o,{date:c=null}=e,{startDate:u=null}=e,{endDate:d=null}=e,{weekStart:h=1}=e,{i18n:f}=e,{enableTimeToggle:g=!1}=e;function m(t,e,n){const r=y.getTimezoneOffset()>=0?0:1,s=new Date(t,e,y.getUTCDate()+r),a=Ut(s,s,v,f,h);U(n),k(a.grid[Math.floor(a.selectionMark/7)][a.selectionMark%7])}let p=c,y=c?new Date(c.valueOf()):new Date;const b=P();let v=2,T=-2,C=!1,w=222,$=null;function U(t){const e=0===v?120:1===v?12:1;y.setUTCMonth(y.getUTCMonth()+t*e),n(26,y),n(21,c),n(2,p),n(7,$=null),n(6,w=222)}function M(t){if(1!==v)return U(t);n(7,$=()=>{U(t)}),n(6,w=-1===t?w-222:w+222)}function k(t){switch(n(4,T=1),n(5,C=!0),v){case 0:y.setYear(t),n(26,y),n(21,c),n(2,p);break;case 1:y.setUTCMonth(f.monthsShort.indexOf(t)),n(26,y),n(21,c),n(2,p);break;case 2:const e=Dt(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());p&&(e.setMinutes(p.getMinutes()),e.setUTCHours(p.getUTCHours())),n(2,p=e),b("date",p)}v<2&&n(3,v++,v)}return t.$$set=t=>{"date"in t&&n(21,c=t.date),"startDate"in t&&n(22,u=t.startDate),"endDate"in t&&n(23,d=t.endDate),"weekStart"in t&&n(24,h=t.weekStart),"i18n"in t&&n(0,f=t.i18n),"enableTimeToggle"in t&&n(1,g=t.enableTimeToggle)},t.$$.update=()=>{4194304&t.$$.dirty[0]&&u&&u.setUTCDate(u.getUTCDate()-1),2097156&t.$$.dirty[0]&&c!==p&&(n(2,p=c),c&&n(26,y=new Date(c.valueOf())),n(4,T=1),n(5,C=!0),n(3,v=2)),16&t.$$.dirty[0]&&n(13,r=T<1?1.5:.5),16&t.$$.dirty[0]&&n(12,s=T<1?1:1.5),16&t.$$.dirty[0]&&n(11,a=-2===T?$t:null!==T?Yt:()=>{}),83886093&t.$$.dirty[0]&&n(9,i=Ut(y,p,v,f,h)),16777217&t.$$.dirty[0]&&n(10,l=h>-1?f.daysMin.concat(f.daysMin).slice(h,7+h):f.daysMin.slice(h,7+h)),67108872&t.$$.dirty[0]&&n(8,o=function(){switch(v){case 0:return`${i.grid[0][1]} - ${i.grid[2][2]}`;case 1:return y.getUTCFullYear();case 2:return f.months[y.getUTCMonth()]+" "+y.getUTCFullYear()}}())},[f,g,p,v,T,C,w,$,o,i,l,a,s,r,function(t){return i.prevTo<=t&&tt)||!!(d&&d<=t)},M,function(){n(4,T=-1),n(5,C=!0),v&&n(3,v--,v)},k,function(){n(5,C=!1)},function(){b("switch","time")},c,u,d,h,function(t,e){if(!p)return void k(new Date);let n;switch(t){case"PageDown":e=!0;case"ArrowDown":if(e)return m(y.getUTCFullYear(),y.getMonth()+1,1);if(n=Mt(i.selectionMark+7,v),n.y>5){const t=new Date(y.getUTCFullYear(),y.getMonth()+1,y.getDate());let e=Ut(t,p,v,f,h);return e.grid[0][n.x].getUTCMonth()0?y.getMonth():11,1),p,v,f,h);return n.y=t.grid[5][n.x].getUTCDate()===p.getUTCDate()?4:t.grid[5][n.x].getUTCMonth()===p.getUTCMonth()?3:5,U(-1),void k(t.grid[n.y][n.x])}i.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&U(-1),k(i.grid[n.y][n.x]);break;case"ArrowLeft":if(e)return m(y.getUTCFullYear()-1,y.getMonth(),1);n=Mt(i.selectionMark-1,v),i.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&U(-1),k(i.grid[n.y][n.x]);break;case"ArrowRight":if(e)return m(y.getUTCFullYear()+1,y.getMonth(),1);n=Mt(i.selectionMark+1,v),i.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&U(1),k(i.grid[n.y][n.x])}},y,()=>M(-1),()=>M(1),t=>{k(t)},t=>{k(t)},()=>$&&$(),t=>{k(t)}]}class te extends Tt{constructor(t){super(),vt(this,t,Qt,Kt,l,{date:21,startDate:22,endDate:23,weekStart:24,i18n:0,enableTimeToggle:1,handleGridNav:25},null,[-1,-1])}get handleGridNav(){return this.$$.ctx[25]}}function ee(t,e,n){const r=t.slice();return r[31]=e[n],r[33]=n,r}function ne(t,e,n){const r=t.slice();return r[31]=e[n],r[33]=n,r}function re(t){let e,n,r,s,a,i;return{c(){e=w("button"),n=$("svg"),r=$("path"),S(r,"fill-rule","evenodd"),S(r,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),S(n,"class","sdt-svg svelte-yz95cb"),S(n,"xmlns","http://www.w3.org/2000/svg"),S(n,"viewBox","0 0 24 24"),S(n,"width","20"),S(n,"height","20"),S(e,"class","sdt-time-btn sdt-back-btn svelte-yz95cb"),S(e,"title",s=t[2].backToDate)},m(s,l){v(s,e,l),p(e,n),p(n,r),a||(i=D(e,"click",t[16]),a=!0)},p(t,n){4&n[0]&&s!==(s=t[2].backToDate)&&S(e,"title",s)},d(t){t&&T(e),a=!1,i()}}}function se(t){let e,n,r,s,i,l,o,c,u,d;return{c(){e=w("div"),n=w("button"),r=U("AM"),i=M(),l=w("button"),o=U("PM"),S(n,"class","sdt-time-btn svelte-yz95cb"),S(n,"data-value",s=t[4]%12),Y(n,"is-active",t[4]<12),S(l,"class","sdt-time-btn svelte-yz95cb"),S(l,"data-value",c=t[4]%12+12),Y(l,"is-active",t[4]>=12),S(e,"class","sdt-meridian svelte-yz95cb")},m(s,a){v(s,e,a),p(e,n),p(n,r),p(e,i),p(e,l),p(l,o),u||(d=[D(n,"click",t[14]),D(l,"click",t[14])],u=!0)},p(t,e){16&e[0]&&s!==(s=t[4]%12)&&S(n,"data-value",s),16&e[0]&&Y(n,"is-active",t[4]<12),16&e[0]&&c!==(c=t[4]%12+12)&&S(l,"data-value",c),16&e[0]&&Y(l,"is-active",t[4]>=12)},d(t){t&&T(e),u=!1,a(d)}}}function ae(t,e){let n,r,s,a,i,l,o=e[31].val+"";return{key:t,first:null,c(){n=w("button"),r=U(o),S(n,"style",s=`left:${e[31].x}px; top:${e[31].y}px`),S(n,"class","sdt-tick svelte-yz95cb"),S(n,"data-value",a=e[31].val),Y(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33])),this.first=n},m(t,e){v(t,n,e),p(n,r),l=!0},p(t,i){e=t,(!l||512&i[0])&&o!==(o=e[31].val+"")&&F(r,o),(!l||512&i[0]&&s!==(s=`left:${e[31].x}px; top:${e[31].y}px`))&&S(n,"style",s),(!l||512&i[0]&&a!==(a=e[31].val))&&S(n,"data-value",a),4664&i[0]&&Y(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33]))},i(t){l||(t&&J((()=>{i||(i=ht(n,$t,{duration:200},!0)),i.run(1)})),l=!0)},o(t){t&&(i||(i=ht(n,$t,{duration:200},!1)),i.run(0)),l=!1},d(t){t&&T(n),t&&i&&i.end()}}}function ie(t){let e,n,r=t[8],s=[];for(let e=0;eot(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t{a||(a=ht(e,$t,{duration:200},!0)),a.run(1)})),i=!0)},o(t){t&&(a||(a=ht(e,$t,{duration:200},!1)),a.run(0)),i=!1},d(t){t&&T(e),t&&a&&a.end()}}}function oe(t){let e,n,r,s,i,l,o,c,u,d,h,f,g,m,y,b,C,$,k,x,A,B,H,E=t[11](t[4],t[0])+"",z=t[11](t[5],!1)+"",N=[],O=new Map,_=t[1]&&re(t),P=t[0]&&se(t),L=t[9];const R=t=>t[31].val;for(let e=0;e{j=null})),it()):j?(j.p(t,e),9&e[0]&<(j,1)):(j=ie(t),j.c(),lt(j,1),j.m(g,null)),8&e[0]&&Y(g,"is-minute-view",t[3])},i(t){if(!A){for(let t=0;t{x=ut(e,$t,{duration:200}),x.start()})),A=!0}},o(t){for(let t=0;t=9||t<3?-1:1)*e),val:r?5*t||n:t?t+s:n});return c}function C(t){if(b&&("mousemove"!==t.type||p)&&(m||"BUTTON"===t.target.tagName)){if("BUTTON"===t.target.tagName){let e=parseInt(t.target.dataset.value);const n=t.meridianSwitch||!m?"setUTCHours":"setUTCMinutes";y[n](e)}else if(m){const e=u.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top,s=130,a=130;let i,l,o=null;switch(o=n>s?r>a?2:1:r>a?3:4,o){case 1:i=n-s,l=a-r;break;case 2:i=n-s,l=r-a;break;case 3:i=s-n,l=r-a;break;case 4:i=s-n,l=a-r}const c=Math.sqrt(i*i+l*l),d=90-Math.asin(i/c)*(180/Math.PI);let h;switch(o){case 1:h=90-d;break;case 2:h=d+90;break;case 3:h=270-d;break;case 4:h=d+270}h=Math.floor(h/6),y.setMinutes(h)}n(20,y),n(17,d),b=!1,v("time",y),t.meridianSwitch||p||!m||setTimeout((()=>{v("close")}),300),t.meridianSwitch||m||n(3,m=!0),setTimeout((()=>{b=!0}),200)}}return t.$$set=t=>{"date"in t&&n(17,d=t.date),"showMeridian"in t&&n(0,h=t.showMeridian),"hasDateComponent"in t&&n(1,f=t.hasDateComponent),"i18n"in t&&n(2,g=t.i18n)},t.$$.update=()=>{1179648&t.$$.dirty[0]&&d!==y&&n(20,y=d),1048576&t.$$.dirty[0]&&n(4,r=y?y.getUTCHours():0),17&t.$$.dirty[0]&&(s=!!h&&r>=12),1048576&t.$$.dirty[0]&&n(5,a=y?y.getUTCMinutes():0),57&t.$$.dirty[0]&&n(10,i=m?`transform: rotateZ(${6*a}deg)`:h?`transform: rotateZ(${r%12*30}deg);`:`transform: rotateZ(${r%12*30}deg); ${r>12||!r?"height: calc(25% + 1px)":""}`),8&t.$$.dirty[0]&&(l=m?5:1),8&t.$$.dirty[0]&&n(9,o=T(220,130,m?"00":"12",m,0)),8&t.$$.dirty[0]&&v("time-switch",m)},n(8,c=T(140,130,"00",!1,12)),[h,f,g,m,r,a,u,p,c,o,i,function(t,e){return e?s&&12===t?12:t<10||t%12<10?"0"+t%12:t%12:t<10?`0${t}`:t},function(t,e,n){return m?e===t||0===n&&n===t:h?!(!s||12!=e||12!==t)||(!s&&12==e&&0===t||e===(t?t%12:12)):e>12?(n?l*n+12:0)===t:"00"===e||"12"===e?12===t&&12==e||"00"===e&&0===t:e===t},C,function(t){t.meridianSwitch=!0,C(t)},function(t){n(7,p="mousedown"===t.type)},function(){v("switch","date")},d,function(t){if(void 0===t)return m;n(3,m=t)},function(t){m?(t=5*t+a)%5!=0&&(t=tn(3,m=!1),()=>n(3,m=!0),t=>{p&&C(t)},function(t){j[t?"unshift":"push"]((()=>{u=t,n(6,u)}))}]}class ue extends Tt{constructor(t){super(),vt(this,t,ce,oe,l,{date:17,showMeridian:0,hasDateComponent:1,i18n:2,minuteSwitch:18,makeTick:19},null,[-1,-1])}get minuteSwitch(){return this.$$.ctx[18]}get makeTick(){return this.$$.ctx[19]}}function de(t){let e,n,r,s,l,o,u,d,h;const f=[fe,he],g=[];function m(t,e){return"date"===t[27]?0:1}return n=m(t),r=g[n]=f[n](t),{c(){e=w("div"),r.c(),S(e,"class",s="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom")},m(r,s){v(r,e,s),g[n].m(e,null),u=!0,d||(h=[c(l=t[19].call(null,e,{inputEl:t[22],visible:t[28],inputRect:t[23]})),D(e,"mousedown",x(t[47]))],d=!0)},p(t,a){let o=n;n=m(t),n===o?g[n].p(t,a):(at(),ot(g[o],1,1,(()=>{g[o]=null})),it(),r=g[n],r?r.p(t,a):(r=g[n]=f[n](t),r.c()),lt(r,1),r.m(e,null)),(!u||512&a[0]&&s!==(s="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom"))&&S(e,"class",s),l&&i(l.update)&&281018368&a[0]&&l.update.call(null,{inputEl:t[22],visible:t[28],inputRect:t[23]})},i(t){u||(lt(r),t&&J((()=>{o||(o=ht(e,$t,{duration:200},!0)),o.run(1)})),u=!0)},o(t){ot(r),t&&(o||(o=ht(e,$t,{duration:200},!1)),o.run(0)),u=!1},d(t){t&&T(e),g[n].d(),t&&o&&o.end(),d=!1,a(h)}}}function he(t){let e,n,r={date:t[20],hasDateComponent:"time"!==t[26],showMeridian:t[1].match("p|P"),i18n:t[18]};return e=new ue({props:r}),t[53](e),e.$on("time",t[31]),e.$on("switch",t[36]),e.$on("close",t[37]),{c(){pt(e.$$.fragment)},m(t,r){yt(e,t,r),n=!0},p(t,n){const r={};1048576&n[0]&&(r.date=t[20]),67108864&n[0]&&(r.hasDateComponent="time"!==t[26]),2&n[0]&&(r.showMeridian=t[1].match("p|P")),262144&n[0]&&(r.i18n=t[18]),e.$set(r)},i(t){n||(lt(e.$$.fragment,t),n=!0)},o(t){ot(e.$$.fragment,t),n=!1},d(n){t[53](null),bt(e,n)}}}function fe(t){let e,n,r,s,a={date:t[20],startDate:t[6]?xt(t[6],t[1],t[18],t[10]):null,endDate:t[7]?xt(t[7],t[1],t[18],t[10]):null,enableTimeToggle:t[26].includes("time"),i18n:t[18],weekStart:t[11]};e=new te({props:a}),t[52](e),e.$on("date",t[31]),e.$on("switch",t[36]);let i=(t[16]||t[17])&&ge(t);return{c(){pt(e.$$.fragment),n=M(),i&&i.c(),r=k()},m(t,a){yt(e,t,a),v(t,n,a),i&&i.m(t,a),v(t,r,a),s=!0},p(t,n){const s={};1048576&n[0]&&(s.date=t[20]),263234&n[0]&&(s.startDate=t[6]?xt(t[6],t[1],t[18],t[10]):null),263298&n[0]&&(s.endDate=t[7]?xt(t[7],t[1],t[18],t[10]):null),67108864&n[0]&&(s.enableTimeToggle=t[26].includes("time")),262144&n[0]&&(s.i18n=t[18]),2048&n[0]&&(s.weekStart=t[11]),e.$set(s),t[16]||t[17]?i?i.p(t,n):(i=ge(t),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},i(t){s||(lt(e.$$.fragment,t),s=!0)},o(t){ot(e.$$.fragment,t),s=!1},d(s){t[52](null),bt(e,s),s&&T(n),i&&i.d(s),s&&T(r)}}}function ge(t){let e,n,r=t[16]&&me(t),s=t[17]&&pe(t);return{c(){e=w("div"),r&&r.c(),n=M(),s&&s.c(),S(e,"class","std-btn-row svelte-tb6rom")},m(t,a){v(t,e,a),r&&r.m(e,null),p(e,n),s&&s.m(e,null)},p(t,a){t[16]?r?r.p(t,a):(r=me(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),t[17]?s?s.p(t,a):(s=pe(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(t){t&&T(e),r&&r.d(),s&&s.d()}}}function me(t){let e,n,r,s,a,i,l=t[18].todayBtn+"";return{c(){e=w("button"),n=U(l),S(e,"class",r=o(t[14])+" svelte-tb6rom"),e.disabled=s=t[6]>St(new Date,t[1],t[18],t[10])},m(r,s){v(r,e,s),p(e,n),a||(i=D(e,"click",t[32]),a=!0)},p(t,a){262144&a[0]&&l!==(l=t[18].todayBtn+"")&&F(n,l),16384&a[0]&&r!==(r=o(t[14])+" svelte-tb6rom")&&S(e,"class",r),263234&a[0]&&s!==(s=t[6]>St(new Date,t[1],t[18],t[10]))&&(e.disabled=s)},d(t){t&&T(e),a=!1,i()}}}function pe(t){let e,n,r,s,a,i,l=t[18].clearBtn+"";return{c(){e=w("button"),n=U(l),S(e,"class",r=o(t[15])+" svelte-tb6rom"),e.disabled=s=!t[20]},m(r,s){v(r,e,s),p(e,n),a||(i=D(e,"click",t[33]),a=!0)},p(t,a){262144&a[0]&&l!==(l=t[18].clearBtn+"")&&F(n,l),32768&a[0]&&r!==(r=o(t[15])+" svelte-tb6rom")&&S(e,"class",r),1048576&a[0]&&s!==(s=!t[20])&&(e.disabled=s)},d(t){t&&T(e),a=!1,i()}}}function ye(t){let e,n,r,s,i,l,u,d,h=(t[12]||t[21])&&de(t);return{c(){e=w("input"),s=M(),h&&h.c(),i=k(),S(e,"type",n=t[8]?"hidden":"text"),S(e,"name",t[2]),S(e,"autocomplete","off"),e.disabled=t[3],S(e,"placeholder",t[4]),S(e,"class",r=o(t[13])+" svelte-tb6rom"),e.required=t[5],e.readOnly=t[21],e.value=t[0]},m(n,r){v(n,e,r),t[50](e),v(n,s,r),h&&h.m(n,r),v(n,i,r),l=!0,u||(d=[c(t[29].call(null,e,t[30])),D(e,"focus",t[34]),D(e,"blur",t[38]),D(e,"click",t[51]),D(e,"input",t[48]),D(e,"change",t[49]),D(e,"keydown",t[35])],u=!0)},p(t,s){(!l||256&s[0]&&n!==(n=t[8]?"hidden":"text"))&&S(e,"type",n),(!l||4&s[0])&&S(e,"name",t[2]),(!l||8&s[0])&&(e.disabled=t[3]),(!l||16&s[0])&&S(e,"placeholder",t[4]),(!l||8192&s[0]&&r!==(r=o(t[13])+" svelte-tb6rom"))&&S(e,"class",r),(!l||32&s[0])&&(e.required=t[5]),(!l||2097152&s[0])&&(e.readOnly=t[21]),(!l||1&s[0]&&e.value!==t[0])&&(e.value=t[0]),t[12]||t[21]?h?(h.p(t,s),2101248&s[0]&<(h,1)):(h=de(t),h.c(),lt(h,1),h.m(i.parentNode,i)):h&&(at(),ot(h,1,1,(()=>{h=null})),it())},i(t){l||(lt(h),l=!0)},o(t){ot(h),l=!1},d(n){n&&T(e),t[50](null),n&&T(s),h&&h.d(n),n&&T(i),u=!1,a(d)}}}const be=Ct;function ve(t,e,n){let r,{name:s="date"}=e,{disabled:a=!1}=e,{placeholder:i=null}=e,{required:l=!1}=e,{value:o=null}=e,{initialDate:c=null}=e,{startDate:u=null}=e,{endDate:d=null}=e,{pickerOnly:h=!1}=e,{theme:f=be.theme}=e,{mode:g=be.mode}=e,{format:m=be.format}=e,{formatType:p=be.formatType}=e,{weekStart:y=be.weekStart}=e,{visible:b=be.visible}=e,{inputClasses:v=be.inputClasses}=e,{todayBtnClasses:T=be.todayBtnClasses}=e,{clearBtnClasses:C=be.clearBtnClasses}=e,{todayBtn:w=be.todayBtn}=e,{clearBtn:$=be.clearBtn}=e,{clearToggle:U=be.clearToggle}=e,{autoclose:M=be.autoclose}=e,{i18n:k=be.i18n}=e,{positionFn:D=At}=e,{validatorAction:x=null}=e;"yyyy-mm-dd"===m&&"time"===g&&(m="hh:ii");const S=P();o&&(o=o.replace(/(:\d+):\d+/,"$1"));let F=o,A=m,Y=c&&c instanceof Date?Dt(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getHours(),c.getUTCMinutes()):o?xt(o,m,k,p):null;Y&&c&&(o=St(Y,m,k,p));let B,H=h,E=null,z=null,N=x?x.shift():()=>{},O=x||[],_=null,R=!1,q=null,I="auto"===g?m.match(/hh?|ii?/i)&&m.match(/y|m|d/i)?"datetime":m.match(/hh?|ii?/i)?"time":"date":g,Z="time"===I?"time":"date";function J(t){let e=t.detail||null;t.detail&&Y&&Y.getUTCFullYear()===t.detail.getUTCFullYear()&&Y.getUTCMonth()===t.detail.getUTCMonth()&&Y.getUTCDate()===t.detail.getUTCDate()&&"date"===I&&U&&(e=null),n(0,o=e?St(e,m,k,p):null),!M||"date"!==I&&e||h||R||X(!1),e&&!R&&"datetime"===I&&"date"===Z&&n(27,Z="time"),R&&"time"===Z?q=setTimeout((()=>{R=!1}),400):R=!1,(G(),V).then((()=>{E.dispatchEvent(new Event("input")),S("change",o)}))}function W(){J({detail:null})}function K(){n(23,z=E.getBoundingClientRect()),n(21,H=!0)}function X(t){n(21,H=!1),I.includes("date")&&n(27,Z="date"),t&&S("blur")}return t.$$set=t=>{"name"in t&&n(2,s=t.name),"disabled"in t&&n(3,a=t.disabled),"placeholder"in t&&n(4,i=t.placeholder),"required"in t&&n(5,l=t.required),"value"in t&&n(0,o=t.value),"initialDate"in t&&n(39,c=t.initialDate),"startDate"in t&&n(6,u=t.startDate),"endDate"in t&&n(7,d=t.endDate),"pickerOnly"in t&&n(8,h=t.pickerOnly),"theme"in t&&n(9,f=t.theme),"mode"in t&&n(40,g=t.mode),"format"in t&&n(1,m=t.format),"formatType"in t&&n(10,p=t.formatType),"weekStart"in t&&n(11,y=t.weekStart),"visible"in t&&n(12,b=t.visible),"inputClasses"in t&&n(13,v=t.inputClasses),"todayBtnClasses"in t&&n(14,T=t.todayBtnClasses),"clearBtnClasses"in t&&n(15,C=t.clearBtnClasses),"todayBtn"in t&&n(16,w=t.todayBtn),"clearBtn"in t&&n(17,$=t.clearBtn),"clearToggle"in t&&n(41,U=t.clearToggle),"autoclose"in t&&n(42,M=t.autoclose),"i18n"in t&&n(18,k=t.i18n),"positionFn"in t&&n(19,D=t.positionFn),"validatorAction"in t&&n(43,x=t.validatorAction)},t.$$.update=()=>{if(4352&t.$$.dirty[0]&&n(28,r=!!h||b),1311747&t.$$.dirty[0]|49664&t.$$.dirty[1]){if(o!==F){const t=o?xt(o,m,k,p):null;n(20,Y=t),n(45,F=o)}A!==m&&Y&&(n(0,o=St(Y,m,k,p)),n(45,F=o),n(46,A=m),"auto"===g&&n(26,I=m.match(/hh?|ii?/i)&&m.match(/y|m|d/i)?"datetime":m.match(/hh?|ii?/i)?"time":"date"))}},[o,m,s,a,i,l,u,d,h,f,p,y,b,v,T,C,w,$,k,D,Y,H,E,z,_,B,I,Z,r,N,O,J,function(){const t=new Date;if(u&&xt(u,m,k,p){E=t,n(22,E)}))},()=>{!H&&K()},function(t){j[t?"unshift":"push"]((()=>{_=t,n(24,_)}))},function(t){j[t?"unshift":"push"]((()=>{B=t,n(25,B)}))}]}class Te extends Tt{constructor(t){super(),vt(this,t,ve,ye,l,{name:2,disabled:3,placeholder:4,required:5,value:0,initialDate:39,startDate:6,endDate:7,pickerOnly:8,theme:9,mode:40,format:1,formatType:10,weekStart:11,visible:12,inputClasses:13,todayBtnClasses:14,clearBtnClasses:15,todayBtn:16,clearBtn:17,clearToggle:41,autoclose:42,i18n:18,positionFn:19,validatorAction:43,setDateValue:44},null,[-1,-1])}get setDateValue(){return this.$$.ctx[44]}}const Ce=["value","name","placeholder","start-date","end-date","disabled","input-classes","mode","format","week-start","today-btn","clear-btn","autoclose","required"];function we(t,e){switch(t){case"value":return e||"";case"required":case"disabled":case"today-btn":case"clear-btn":case"autoclose":return null!==e&&"false"!==e;case"weekStart":return parseInt(e)}return e}function $e(t){return t.includes("-")?t.split("-").reduce(((t,e,n)=>(n&&(e=e[0].toUpperCase()+e.substr(1)),t+e)),""):t}class Ue extends HTMLElement{constructor(){super(),this.picker=null;const t=["value","name","placeholder","mode","format"].reduce(((t,e)=>(t[e]={get(){return we(e,this.getAttribute(e))},set(t){this.setAttribute(e,t)}},t)),{}),e={form:{get(){return this.closest("form")}},weekStart:{get(){return this.getAttribute("week-start")},set(t){this.setAttribute("week-start",t)}},startDate:{get(){return this.getAttribute("start-date")},set(t){t&&this.setAttribute("start-date",t),!t&&this.removeAttribute("start-date")}},endDate:{get(){return this.getAttribute("end-date")},set(t){t&&this.setAttribute("end-date",t),!t&&this.removeAttribute("end-date")}},inputClasses:{get(){return this.getAttribute("input-classes")},set(t){t&&this.setAttribute("input-classes",t),!t&&this.removeAttribute("input-classes")}}},n=["required","disabled","today-btn","clear-btn","autoclose"].reduce(((t,e)=>{const n=$e(e);return t[n]={get(){const t=this.hasAttribute(e),r=!t||"false"!==this.getAttribute(e);return t?r:be[n]},set(t){t?this.setAttribute(e,t=""):this.hasAttribute(e)?this.removeAttribute(e):this.picker.$set({[n]:t})}},t}),{});Object.defineProperties(this,Object.assign({},t,e,n))}focus(){if(this.disabled)return;const t=this.querySelector("input");t&&t.focus()}static get observedAttributes(){return Ce}attributeChangedCallback(t,e,n){this.picker&&e!==n&&this.picker.$set({[$e(t)]:we(t,n)})}connectedCallback(){if(this.picker)return;let t={};for(const e of Ce)this.hasAttribute(e)&&(t[$e(e)]=we(e,this.getAttribute(e)));this.picker=new Te({target:this,props:t}),this.picker.$on("input",(t=>{this.setAttribute("value",t.target.value),this.dispatchEvent(new Event("input"))})),this.picker.$on("blur",(t=>{this.dispatchEvent(new Event("blur"))})),setTimeout((()=>{if(this.hasAttribute("from")){const t=document.getElementById(this.getAttribute("from"));t.oninput=e=>{this.picker.$set({startDate:t.value})}}if(this.hasAttribute("to")){const t=document.getElementById(this.getAttribute("to"));t.oninput=e=>{this.picker.$set({endDate:t.value})}}}))}disconnectedCallback(){this.picker&&this.picker.destroy()}}return t.registerElement=function(t){window.customElements.define(t,Ue)},Object.defineProperty(t,"__esModule",{value:!0}),t}({}); diff --git a/dist/svelty-picker.css b/dist/svelty-picker.css deleted file mode 100644 index aaf8050..0000000 --- a/dist/svelty-picker.css +++ /dev/null @@ -1,6 +0,0 @@ -.sdt-calendar-colors.svelte-tb6rom{--sdt-primary:#286090;--sdt-color:#000;--sdt-bg-main:#fff;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:#1e486d;--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:#eee;--sdt-btn-header-bg-hover:#dfdfdf;--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:rgb(238, 237, 237, 0.25);--sdt-clock-bg-shadow:0 0 128px 2px #ddd inset;--sdt-shadow:#ccc}.std-calendar-wrap.svelte-tb6rom{width:280px;background-color:var(--sdt-bg-main);box-shadow:0 1px 6px var(--sdt-shadow);border-radius:4px;padding:0.25rem 0.25rem 0.5rem;color:var(--sdt-color)}.std-calendar-wrap.is-popup.svelte-tb6rom{box-shadow:0 1px 6px var(--sdt-shadow)}.std-btn-row.svelte-tb6rom{margin-top:0.5rem;display:flex;justify-content:space-evenly}.sdt-action-btn.svelte-tb6rom{padding:0.25rem 0.5rem;font-size:.875rem;border-radius:0.2rem}.sdt-today-btn.svelte-tb6rom{background-color:var(--sdt-primary);color:var(--sdt-today-color, var(--sdt-bg-main));padding:0.25rem 0.5rem;font-size:.875rem;border-radius:0.2rem;border:1px solid var(--sdt-today-bg)}.sdt-today-btn[disabled].svelte-tb6rom{opacity:0.75}.sdt-today-btn.svelte-tb6rom:focus,.sdt-today-btn.svelte-tb6rom:active,.sdt-today-btn.svelte-tb6rom:hover:not([disabled]){background-color:var(--sdt-today-bg)}.sdt-clear-btn.svelte-tb6rom{border:1px solid var(--sdt-clear-color);background-color:transparent;color:var(--sdt-clear-color)}.sdt-clear-btn.svelte-tb6rom:focus,.sdt-clear-btn.svelte-tb6rom:active:not([disabled]),.sdt-clear-btn.svelte-tb6rom:hover:not([disabled]){background-color:var(--sdt-clear-color);color:var(--sdt-clear-hover-color, var(--sdt-bg-main))} -/*# sourceMappingURL=data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cbiAgICAgIGNhc2UgJ0RlbGV0ZSc6XHJcbiAgICAgICAgb25DbGVhcigpO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBjYXNlICdFbnRlcic6XHJcbiAgICAgICAgaXNGb2N1c2VkICYmIGUucHJldmVudERlZmF1bHQoKTtcclxuICAgICAgICBpZiAoY3VycmVudE1vZGUgPT09ICd0aW1lJykge1xyXG4gICAgICAgICAgaWYgKCF0aW1lRWwubWludXRlU3dpdGNoKCkpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHRpbWVFbC5taW51dGVTd2l0Y2godHJ1ZSk7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICByZXR1cm4gb25CbHVyKGZhbHNlKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgaWYgKGlzRm9jdXNlZCAmJiByZXNvbHZlZE1vZGUgPT09ICdkYXRlJykgaXNGb2N1c2VkID0gZmFsc2U7XHJcbiAgICAgICAgaWYgKGlubmVyRGF0ZSAmJiByZXNvbHZlZE1vZGUuaW5jbHVkZXMoJ3RpbWUnKSkge1xyXG4gICAgICAgICAgY3VycmVudE1vZGUgPSAndGltZSc7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgICBjYXNlICdUYWInOlxyXG4gICAgICBjYXNlICdGNSc6ICBcclxuICAgICAgICBicmVhaztcclxuICAgICAgZGVmYXVsdDpcclxuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBmdW5jdGlvbiBvbk1vZGVTd2l0Y2goZSkge1xyXG4gICAgY3VycmVudE1vZGUgPSBlLmRldGFpbDtcclxuICB9XHJcblxyXG4gIGZ1bmN0aW9uIG9uVGltZUNsb3NlKCkge1xyXG4gICAgYXV0b2Nsb3NlICYmICFwcmV2ZW50Q2xvc2UgJiYgIXBpY2tlck9ubHkgJiYgb25CbHVyKGZhbHNlKTtcclxuICB9XHJcblxyXG4gIGZ1bmN0aW9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ha.svelte-1xp8yha{padding:0;font-size:90%;text-align:center;background-color:var(--sdt-bg-main);;}.sdt-cal-th.svelte-1xp8yha.svelte-1xp8yha{height:24px}.sdt-calendar.svelte-1xp8yha.svelte-1xp8yha{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-1xp8yha.svelte-1xp8yha{display:grid}.sdt-calendar.is-grid.svelte-1xp8yha .sdt-table.svelte-1xp8yha{grid-column:1/2;grid-row:1/2 - }.sdt-table.svelte-1xp8yha.svelte-1xp8yha{width:100%;border-collapse:collapse}.sdt-table-height.svelte-1xp8yha.svelte-1xp8yha{height:222px}.animate-transition.svelte-1xp8yha.svelte-1xp8yha{will-change:transform;transition:transform 0.3s ease - }.not-current.svelte-1xp8yha.svelte-1xp8yha{opacity:0.3}.not-current.svelte-1xp8yha.svelte-1xp8yha:hover{opacity:0.55}.std-btn.svelte-1xp8yha.svelte-1xp8yha{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:0.3rem;box-sizing:border-box;color:var(--sdt-color)}.sdt-btn-day.svelte-1xp8yha.svelte-1xp8yha{max-height:32px}.std-btn[disabled].svelte-1xp8yha.svelte-1xp8yha{cursor:not-allowed;opacity:0.35}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha{width:auto;font-weight:bold;padding:0.375rem 0.5rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha:first-of-type{padding-left:0.375rem;padding-right:0.375rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha{padding-left:0.25rem;padding-right:0.25rem}.std-btn.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-bg-hover)}.is-selected.svelte-1xp8yha .std-btn.svelte-1xp8yha{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main));opacity:0.9}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-time-icon.svelte-1xp8yha.svelte-1xp8yha{margin-right:-4px}.sdt-time-icon.svelte-1xp8yha svg.svelte-1xp8yha{margin:4px 0}.sdt-tbody-lg.svelte-1xp8yha.svelte-1xp8yha{background-color:var(--sdt-bg-main)}.sdt-tbody-lg.svelte-1xp8yha .std-btn.svelte-1xp8yha{height:72px}.sdt-thead-nav.svelte-1xp8yha.svelte-1xp8yha{display:flex;margin-bottom:0.25rem}.sdt-nav-btns.svelte-1xp8yha.svelte-1xp8yha{white-space:nowrap}.sdt-toggle-btn.svelte-1xp8yha.svelte-1xp8yha{width:100%;text-align:left}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{box-sizing:border-box;position:absolute;content:'';margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-shadow);border-top:4px solid var(--sdt-shadow);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-1xp8yha.svelte-1xp8yha{fill:var(--sdt-color)}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:hover:before{border-left-color:var(--sdt-primary);border-top-color:var(--sdt-primary)}.is-selected.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{border-left-color:#eee;border-top-color:#eee} -/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FsZW5kYXIuc3ZlbHRlIiwic291cmNlcyI6WyJDYWxlbmRhci5zdmVsdGUiXSwic291cmNlc0NvbnRlbnQiOlsiPHNjcmlwdD5cclxuICBpbXBvcnQgeyBjcmVhdGVFdmVudERpc3BhdGNoZXIgfSBmcm9tICdzdmVsdGUnO1xyXG4gIGltcG9ydCB7IGZhZGUgfSBmcm9tICdzdmVsdGUvdHJhbnNpdGlvbic7XHJcbiAgaW1wb3J0IHsgY29tcHV0ZSwgTU9ERV9NT05USCwgTU9ERV9ZRUFSLCBNT0RFX0RFQ0FERSwgbW92ZUdyaWQsIFVUQ0RhdGUgfSBmcm9tICcuL2RhdGVVdGlscy5qcyc7XHJcbiAga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{position:relative;display:flex;justify-content:center;align-items:center}.sdt-time-figure.svelte-yz95cb.svelte-yz95cb{font-size:1.5rem;font-weight:bold}.sdt-clock.svelte-yz95cb.svelte-yz95cb{margin:auto;position:relative;width:260px;height:260px;background-color:var(--sdt-clock-bg);border-radius:50%;transition:background-color 0.3s}.sdt-clock.is-minute-view.svelte-yz95cb.svelte-yz95cb{background-color:var(--sdt-clock-bg-minute, var(--sdt-clock-bg));box-shadow:var(--sdt-clock-bg-shadow)}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;padding:0.375rem;color:var(--sdt-color)}.sdt-svg.svelte-yz95cb.svelte-yz95cb{fill:var(--sdt-color)}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb:not(.is-active){opacity:0.5}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-back-btn.svelte-yz95cb.svelte-yz95cb{position:absolute;top:0;left:0;opacity:1 !important}.sdt-meridian.svelte-yz95cb.svelte-yz95cb{position:absolute;top:0.25rem;right:0.25rem;display:flex;flex-flow:column;font-size:90%}.sdt-meridian.svelte-yz95cb .sdt-time-btn.svelte-yz95cb{padding:0.15rem 0.5rem}.sdt-meridian.svelte-yz95cb .sdt-time-btn.is-active.svelte-yz95cb{font-weight:bold}.sdt-middle-dot.svelte-yz95cb.svelte-yz95cb{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%, -50%);background-color:var(--sdt-primary);border-radius:50%}.sdt-hand-pointer.svelte-yz95cb.svelte-yz95cb{width:2px;height:calc(40% + 1px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-primary);transform-origin:center bottom 0;transition:transform 0.3s ease, height 0.15s ease}.sdt-hand-circle.svelte-yz95cb.svelte-yz95cb{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-primary);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-yz95cb.svelte-yz95cb{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%, -50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:transparent}.sdt-tick.is-selected.svelte-yz95cb.svelte-yz95cb{animation:svelte-yz95cb-tick-selection 0s 0.175s ease-out forwards}@keyframes svelte-yz95cb-tick-selection{0%{color:initial;background-color:transparent}100%{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}} -/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGltZS5zdmVsdGUiLCJzb3VyY2VzIjpbIlRpbWUuc3ZlbHRlIl0sInNvdXJjZXNDb250ZW50IjpbIjxzY3JpcHQ+XHJcbiAgaW1wb3J0IHsgY3JlYXRlRXZlbnREaXNwYXRjaGVyIH0gZnJvbSAnc3ZlbHRlJztcclxuICBpbXBvcnQgeyBmYWRlIH0gZnJvbSAnc3ZlbHRlL3RyYW5zaXRpb24nO1xyXG4gIGltcG9ydCB7IFVUQ0RhdGUgfSBmcm9tICcuL2RhdGVVdGlscyc7XHJcblxyXG4gIGV4cG9ydCBsZXQgZGF0ZSA9IG51bGw7XHJcbiAgZXhwb3J0IGxldCBzaG93TWVyaWRpYW4gPSBmYWxzZTtcclxuICBleHBvcnQgbGV0IGhhc0RhdGVDb21wb25lbnQgPSBmYWxzZTtcclxuICBleHBvcnQgbGV0IGkxOG47XHJcbiAgZXhwb3J0IGZ1bmN0aW9uIG1pbnV0ZVN3aXRjaCh2YWwpIHtcclxuICAgIGlmICh2YWwgPT09IHVuZGVmaW5lZCkgcmV0dXJuIGlzTWludXRlVmlldztcclxuICAgIGlzTWludXRlVmlldyA9IHZhbDtcclxuICB9XHJcblxyXG4gIGV4cG9ydCBmdW5jdGlvbiBtYWtlVGljayh2YWwpIHtcclxuICAgIGlmIChpc01pbnV0ZVZpZXcpIHtcclxuICAgICAgdmFsID0gdmFsICogNSArIHNlbGVjdGVkTW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7XHJcbiAgICAgICAgICBiID0gY250WSAtIGNsaWVudFk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIDI6XHJcbiAgICAgICAgICBhID0gY2xpZW50WCAtIGNudFg7XHJcbiAgICAgICAgICBiID0gY2xpZW50WSAtIGNudFk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIDM6XHJcbiAgICAgICAgICBhID0gY250WCAtIGNsaWVudFg7XHJcbiAgICAgICAgICBiID0gY2xpZW50WSAtIGNudFk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIDQ6XHJcbiAgICAgICAgICBhID0gY250WCAtIGNsaWVudFg7XHJcbiAgICAgICAgICBiID0gY250WSAtIGNsaWVudFk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgfVxyXG4gICAgICBjb25zdCBjID0gTWF0aC5zcXJ0KGEqYSArIGIqYik7XHJcbiAgICAgIGNvbnN0IGJldGEgPSA5MCAtIChNYXRoLmFzaW4oYS9jKSAqICgxODAgLyBNYXRoLlBJKSk7XHJcbiAgICAgIGxldCBkZWdyZWU7XHJcbiAgICAgIHN3aXRjaCAocXVhZHJhbnQpIHtcclxuICAgICAgICBjYXNlIDE6XHJcbiAgICAgICAgICBkZWdyZWUgPSA5MCAtIGJldGE7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIDI6XHJcbiAgICAgICAgICBkZWdyZWUgPSBiZXRhICsgOTA7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIDM6XHJcbiAgICAgICAgICBkZWdyZWUgPSAyNzAgLSBiZXRhO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSA0OlxyXG4gICAgICAgICAgZGVncmVlID0gYmV0YSArIDI3MDtcclxuICAgICAgICAgIGJyZWFrO1xyXG4gICAgICB9XHJcbiAgICAgIGRlZ3JlZSA9IE1hdGguZmxvb3IoZGVncmVlIC8gNilcclx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BQyxDQUFDLElBQUksQ0FBQyxDQUNoQyxVQUFVLENBQUUsTUFBTSxDQUNsQixhQUFhLENBQUUsR0FBRyxDQUNsQixXQUFXLENBQUUsSUFBSSxDQUNqQixNQUFNLENBQUUsT0FBTyxDQUNmLGdCQUFnQixDQUFFLFdBQVcsQUFDL0IsQ0FBQyxBQUNELFNBQVMsWUFBWSw0QkFBQyxDQUFDLEFBQ3JCLFNBQVMsQ0FBRSw0QkFBYyxDQUFDLEVBQUUsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLFFBQVEsQUFDdkQsQ0FBQyxBQUNELFdBQVcsNEJBQWUsQ0FBQyxBQUN6QixFQUFFLEFBQUMsQ0FBQyxBQUNGLEtBQUssQ0FBRSxPQUFPLENBQ2QsZ0JBQWdCLENBQUUsV0FBVyxBQUMvQixDQUFDLEFBQ0QsSUFBSSxBQUFDLENBQUMsQUFDSixnQkFBZ0IsQ0FBRSxJQUFJLGFBQWEsQ0FBQyxDQUNwQyxLQUFLLENBQUUsSUFBSSxvQkFBb0IsQ0FBQyxtQkFBbUIsQ0FBQyxBQUN0RCxDQUFDLEFBQ0gsQ0FBQyJ9 */ \ No newline at end of file diff --git a/dist/svelty-picker.mjs b/dist/svelty-picker.mjs deleted file mode 100644 index 00e5795..0000000 --- a/dist/svelty-picker.mjs +++ /dev/null @@ -1 +0,0 @@ -function t(){}const e=t=>t;function n(t){return t()}function a(){return Object.create(null)}function r(t){t.forEach(n)}function l(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t){return null==t?"":t}function o(e){return e&&l(e.destroy)?e.destroy:t}const c="undefined"!=typeof window;let u=c?()=>window.performance.now():()=>Date.now(),d=c?t=>requestAnimationFrame(t):t;const h=new Set;function f(t){h.forEach((e=>{e.c(t)||(h.delete(e),e.f())})),0!==h.size&&d(f)}function g(t){let e;return 0===h.size&&d(f),{promise:new Promise((n=>{h.add(e={c:t,f:n})})),abort(){h.delete(e)}}}function m(t,e){t.appendChild(e)}function p(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function y(t){const e=b("style");return function(t,e){m(t.head||t,e)}(p(t),e),e.sheet}function T(t,e,n){t.insertBefore(e,n||null)}function v(t){t.parentNode.removeChild(t)}function C(t,e){for(let n=0;nt.removeEventListener(e,n,a)}function k(t){return function(e){return e.preventDefault(),t.call(this,e)}}function x(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function F(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function S(t,e,n,a){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,a?"important":"")}function Y(t,e,n){t.classList[n?"add":"remove"](e)}function H(t,e,n=!1){const a=document.createEvent("CustomEvent");return a.initCustomEvent(t,n,!1,e),a}const B=new Map;let z,N=0;function A(t,e,n,a,r,l,s,i=0){const o=16.666/a;let c="{\n";for(let t=0;t<=1;t+=o){const a=e+(n-e)*l(t);c+=100*t+`%{${s(a,1-a)}}\n`}const u=c+`100% {${s(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${i}`,h=p(t),{stylesheet:f,rules:g}=B.get(h)||function(t,e){const n={stylesheet:y(e),rules:{}};return B.set(t,n),n}(h,t);g[d]||(g[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${a}ms linear ${r}ms 1 both`,N+=1,d}function E(t,e){const n=(t.style.animation||"").split(", "),a=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),r=n.length-a.length;r&&(t.style.animation=a.join(", "),N-=r,N||d((()=>{N||(B.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),B.clear())})))}function O(t){z=t}function _(){const t=function(){if(!z)throw new Error("Function called outside component initialization");return z}();return(e,n)=>{const a=t.$$.callbacks[e];if(a){const r=H(e,n);a.slice().forEach((e=>{e.call(t,r)}))}}}function P(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const R=[],L=[],V=[],j=[],I=Promise.resolve();let q=!1;function Z(){q||(q=!0,I.then(X))}function G(t){V.push(t)}const J=new Set;let W,K=0;function X(){const t=z;do{for(;K{W=null}))),W}function et(t,e,n){t.dispatchEvent(H(`${e?"intro":"outro"}${n}`))}const nt=new Set;let at;function rt(){at={r:0,c:[],p:at}}function lt(){at.r||r(at.c),at=at.p}function st(t,e){t&&t.i&&(nt.delete(t),t.i(e))}function it(t,e,n,a){if(t&&t.o){if(nt.has(t))return;nt.add(t),at.c.push((()=>{nt.delete(t),a&&(n&&t.d(1),a())})),t.o(e)}}const ot={duration:0};function ct(n,a,r){let s,i,o=a(n,r),c=!1,d=0;function h(){s&&E(n,s)}function f(){const{delay:a=0,duration:r=300,easing:l=e,tick:f=t,css:m}=o||ot;m&&(s=A(n,0,1,r,a,l,m,d++)),f(0,1);const p=u()+a,y=p+r;i&&i.abort(),c=!0,G((()=>et(n,!0,"start"))),i=g((t=>{if(c){if(t>=y)return f(1,0),et(n,!0,"end"),h(),c=!1;if(t>=p){const e=l((t-p)/r);f(e,1-e)}}return c}))}let m=!1;return{start(){m||(m=!0,E(n),l(o)?(o=o(),tt().then(f)):f())},invalidate(){m=!1},end(){c&&(h(),c=!1)}}}function ut(n,a,s){let i,o=a(n,s),c=!0;const d=at;function h(){const{delay:a=0,duration:l=300,easing:s=e,tick:h=t,css:f}=o||ot;f&&(i=A(n,1,0,l,a,s,f));const m=u()+a,p=m+l;G((()=>et(n,!1,"start"))),g((t=>{if(c){if(t>=p)return h(0,1),et(n,!1,"end"),--d.r||r(d.c),!1;if(t>=m){const e=s((t-m)/l);h(1-e,e)}}return c}))}return d.r+=1,l(o)?tt().then((()=>{o=o(),h()})):h(),{end(t){t&&o.tick&&o.tick(1,0),c&&(i&&E(n,i),c=!1)}}}function dt(n,a,s,i){let o=a(n,s),c=i?0:1,d=null,h=null,f=null;function m(){f&&E(n,f)}function p(t,e){const n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function y(a){const{delay:l=0,duration:s=300,easing:i=e,tick:y=t,css:T}=o||ot,v={start:u()+l,b:a};a||(v.group=at,at.r+=1),d||h?h=v:(T&&(m(),f=A(n,c,a,s,l,i,T)),a&&y(0,1),d=p(v,s),G((()=>et(n,a,"start"))),g((t=>{if(h&&t>h.start&&(d=p(h,s),h=null,et(n,d.b,"start"),T&&(m(),f=A(n,c,d.b,d.duration,0,i,o.css))),d)if(t>=d.end)y(c=d.b,1-c),et(n,d.b,"end"),h||(d.b?m():--d.group.r||r(d.group.c)),d=null;else if(t>=d.start){const e=t-d.start;c=d.a+d.d*i(e/d.duration),y(c,1-c)}return!(!d&&!h)})))}return{run(t){l(o)?tt().then((()=>{o=o(),y(t)})):y(t)},end(){m(),d=h=null}}}function ht(t,e){t.d(1),e.delete(t.key)}function ft(t,e){it(t,1,1,(()=>{e.delete(t.key)}))}function gt(t,e,n,a,r,l,s,i,o,c,u,d){let h=t.length,f=l.length,g=h;const m={};for(;g--;)m[t[g].key]=g;const p=[],y=new Map,T=new Map;for(g=f;g--;){const t=d(r,l,g),i=n(t);let o=s.get(i);o?a&&o.p(t,e):(o=c(i,t),o.c()),y.set(i,p[g]=o),i in m&&T.set(i,Math.abs(g-m[i]))}const v=new Set,C=new Set;function b(t){st(t,1),t.m(i,u),s.set(t.key,t),u=t.first,f--}for(;h&&f;){const e=p[f-1],n=t[h-1],a=e.key,r=n.key;e===n?(u=e.first,h--,f--):y.has(r)?!s.has(a)||v.has(a)?b(e):C.has(r)?h--:T.get(a)>T.get(r)?(C.add(a),b(e)):(v.add(r),h--):(o(n,s),h--)}for(;h--;){const e=t[h];y.has(e.key)||o(e,s)}for(;f;)b(p[f-1]);return p}function mt(t){t&&t.c()}function pt(t,e,a,s){const{fragment:i,on_mount:o,on_destroy:c,after_update:u}=t.$$;i&&i.m(e,a),s||G((()=>{const e=o.map(n).filter(l);c?c.push(...e):r(e),t.$$.on_mount=[]})),u.forEach(G)}function yt(t,e){const n=t.$$;null!==n.fragment&&(r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Tt(e,n,l,s,i,o,c,u=[-1]){const d=z;O(e);const h=e.$$={fragment:null,ctx:null,props:o,update:t,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};c&&c(h.root);let f=!1;if(h.ctx=l?l(e,n.props||{},((t,n,...a)=>{const r=a.length?a[0]:n;return h.ctx&&i(h.ctx[t],h.ctx[t]=r)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](r),f&&function(t,e){-1===t.$$.dirty[0]&&(R.push(t),Z(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var Ct={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,visible:!1,inputClasses:null,todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"}};function bt(t){const e=t-1;return e*e*e+1}function wt(t,{delay:n=0,duration:a=400,easing:r=e}={}){const l=+getComputedStyle(t).opacity;return{delay:n,duration:a,easing:r,css:t=>"opacity: "+t*l}}function Ut(t,e,n,a,r){if(0===n){const n=11,a=1,r=-1,l=[];let s=[],i=t.getUTCFullYear()-t.getUTCFullYear()%10-1;for(let t=0;t<12;t++)s.push(i+t),4===s.length&&(l.push(s),s=[]);let o=null;return e||(e=new Date),e.getUTCFullYear()>=i&&(o=e.getUTCFullYear()%i),{grid:l,todayMark:r,nextFrom:n,prevTo:a,selectionMark:o}}if(1===n){let n=[],r=[],l=12,s=24;const i=t.toISOString().split("T")[0].substring(0,8),o=new Date(i+"01 00:00:00"),c=o.getFullYear()-1;o.setFullYear(c);let u=0;for(let t=0;t<3;t++){for(let t=0;t<12;t++)o.setUTCMonth(t),r.push(a.monthsShort[t%12]),4===r.length&&(n.push(r),r=[]);o.setFullYear(o.getFullYear()+1)}let d=null;return e||(e=new Date),e.getUTCFullYear()-c>=0&&e.getUTCFullYear()-c<=2&&(d=e.getUTCMonth()+12*(e.getUTCFullYear()-c||0)),{grid:n,todayMark:u,nextFrom:s,prevTo:l,selectionMark:d}}let l=t||new Date,s=l.getUTCFullYear(),i=l.getUTCMonth();l.getUTCDate(),l.getUTCHours();let o=new Date,c=Dt(s,i-1,28,0,0,0,0),u=Mt.getDaysInMonth(c.getUTCFullYear(),c.getUTCMonth());c.setUTCDate(u),c.setUTCDate(u-(c.getUTCDay()-r+7)%7);let d=new Date(c);d.setUTCDate(d.getUTCDate()+42);let h=d.valueOf(),f=[],g=[],m=-1,p=null,y=0,T=42,v=0;for(;c.valueOf()s||c.getUTCFullYear()===s&&c.getUTCMonth()>i)&&(T=v-1),c.setUTCDate(c.getUTCDate()+1),c.getUTCFullYear()===o.getUTCFullYear()&&c.getUTCMonth()===o.getUTCMonth()&&c.getUTCDate()===o.getUTCDate()&&(m=v),!p&&e&&c.getUTCFullYear()===e.getUTCFullYear()&&c.getUTCMonth()===e.getUTCMonth()&&c.getUTCDate()===e.getUTCDate()&&(p=v),7===g.length&&(f.push(g),g=[]);return{grid:f,todayMark:m,prevTo:y,nextFrom:T,selectionMark:p}}function $t(t,e){if(2===e)return t<0&&(t=42+t),{x:t%7,y:Math.floor(t/7)}}const Mt={isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,Mt.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}};function Dt(){return new Date(Date.UTC.apply(Date,arguments))}function kt(t,e,n,a){if(t instanceof Date){const e=new Date(t.valueOf()-6e4*t.getTimezoneOffset());return e.setMilliseconds(0),e}e=/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)?Ft.parseFormat("yyyy-mm-dd",a):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)?Ft.parseFormat("yyyy-mm-dd hh:ii",a):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)?Ft.parseFormat("yyyy-mm-dd hh:ii:ss",a):Ft.parseFormat(e,a);var r,l,s=t&&t.toString().match(Ft.nonpunctuation)||[],i=(t=new Date(0,0,0,0,0,0,0),{}),o=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],c={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12===e?0:e)},H:function(t,e){return t.setUTCHours(12===e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;){if(isNaN(t.getUTCMonth()))return t;t.setUTCDate(t.getUTCDate()-1)}return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1===e?t.getUTCHours()+12:t.getUTCHours())}};if(c.M=c.MM=c.mm=c.m,c.dd=c.d,c.P=c.p,t=Dt(t.getFullYear(),t.getMonth(),t.getDate(),t.getUTCHours(),t.getUTCMinutes(),t.getSeconds()),s.length===e.parts.length){for(var u=0,d=e.parts.length;uwindow.innerWidth?"right: 1rem":`left: ${a.left}px`),e.height+e.top>window.innerHeight+window.scrollY?n.push("bottom: 1rem"):n.push(`top: ${a.top+a.height+window.scrollY}px`),t.style=n.join(";"),t.hidden=!1,document.body.appendChild(t)}return t.hidden=!1,{destroy:function(){t.parentNode&&t.parentNode.removeChild(t)}}}function Yt(t,{delay:e=0,duration:n=400,easing:a=bt,start:r=0,end:l=1,opacity:s=0}={}){const i=getComputedStyle(t),o=+i.opacity,c="none"===i.transform?"":i.transform,u=1-r,d=o*(1-s);return{delay:e,duration:n,easing:a,css:(t,e)=>`\n transform: ${c} scale(${1!==l?r+l*e:1-u*e});\n opacity: ${o-d*e};\n `}}function Ht(t,e,n){const a=t.slice();return a[37]=e[n],a[39]=n,a}function Bt(t,e,n){const a=t.slice();return a[40]=e[n],a[42]=n,a}function zt(t,e,n){const a=t.slice();return a[43]=e[n],a}function Nt(t,e,n){const a=t.slice();return a[37]=e[n],a[39]=n,a}function At(t,e,n){const a=t.slice();return a[47]=e[n],a[42]=n,a}function Et(t,e,n){const a=t.slice();return a[37]=e[n],a[39]=n,a}function Ot(t,e,n){const a=t.slice();return a[50]=e[n],a[42]=n,a}function _t(t){let e,n,a,r,l,s;return{c(){e=b("button"),n=w("svg"),a=w("path"),x(a,"fill-rule","evenodd"),x(a,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),x(n,"class","sdt-svg svelte-1xp8yha"),x(n,"xmlns","http://www.w3.org/2000/svg"),x(n,"viewBox","0 0 16 16"),x(n,"width","16"),x(n,"height","16"),x(e,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-1xp8yha"),x(e,"title",r=t[0].timeView)},m(r,i){T(r,e,i),m(e,n),m(n,a),l||(s=D(e,"click",k(t[20])),l=!0)},p(t,n){1&n[0]&&r!==(r=t[0].timeView)&&x(e,"title",r)},d(t){t&&v(e),l=!1,s()}}}function Pt(t){let e,n,a,r,l,s,i,o=t[9].grid,c=[];for(let e=0;e{r&&r.end(1),a=ct(n,t[11],{duration:Kt,start:t[13],opacity:1}),a.start()})),l=!0)},o(e){a&&a.invalidate(),e&&(r=ut(n,t[11],{duration:Kt,end:t[12],start:1})),l=!1},d(t){t&&v(e),C(c,t),t&&r&&r.end(),s=!1,i()}}}function Rt(t,e){let n,a,r,l,s,i=e[50]+"";function o(){return e[29](e[50])}return{key:t,first:null,c(){n=b("td"),a=b("button"),r=U(i),x(a,"class","std-btn svelte-1xp8yha"),Y(a,"not-current",!e[14](4*e[39]+e[42])),x(n,"class","svelte-1xp8yha"),Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){T(t,n,e),m(n,a),m(a,r),l||(s=D(a,"click",k(o)),l=!0)},p(t,l){e=t,512&l[0]&&i!==(i=e[50]+"")&&F(r,i),16896&l[0]&&Y(a,"not-current",!e[14](4*e[39]+e[42])),512&l[0]&&Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&v(n),l=!1,s()}}}function Lt(t){let e,n,a=[],r=new Map,l=t[37];const s=t=>t[42];for(let e=0;e{s&&s.end(1),l=ct(n,t[11],{duration:Kt,start:t[13],opacity:1}),l.start()})),i=!0)},o(e){l&&l.invalidate(),e&&(s=ut(n,t[11],{duration:Kt,end:t[12],start:1})),i=!1},d(t){t&&v(e),C(d,t),t&&s&&s.end(),o=!1,r(c)}}}function jt(t,e){let n,a,r,l,s,i=e[47]+"";function o(){return e[30](e[47])}return{key:t,first:null,c(){n=b("td"),a=b("button"),r=U(i),x(a,"class","std-btn svelte-1xp8yha"),Y(a,"not-current",!e[14](4*e[39]+e[42])),x(n,"class","svelte-1xp8yha"),Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){T(t,n,e),m(n,a),m(a,r),l||(s=D(a,"click",k(o)),l=!0)},p(t,l){e=t,512&l[0]&&i!==(i=e[47]+"")&&F(r,i),16896&l[0]&&Y(a,"not-current",!e[14](4*e[39]+e[42])),512&l[0]&&Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&v(n),l=!1,s()}}}function It(t){let e,n,a=[],r=new Map,l=t[37];const s=t=>t[42];for(let e=0;e{s&&s.end(1),l=ct(n,t[11],{duration:Kt,start:.5,opacity:1}),l.start()})),i=!0)},o(e){l&&l.invalidate(),e&&(s=ut(n,t[11],{duration:Kt,start:Math.abs(t[4])})),i=!1},d(t){t&&v(e),C(d,t),C(f,t),t&&s&&s.end(),o=!1,c()}}}function Zt(t){let e,n,a=t[43]+"";return{c(){e=b("th"),n=U(a),x(e,"class","sdt-cal-th svelte-1xp8yha")},m(t,a){T(t,e,a),m(e,n)},p(t,e){1024&e[0]&&a!==(a=t[43]+"")&&F(n,a)},d(t){t&&v(e)}}}function Gt(t,e){let n,a,r,l,s,i,o=e[40].getUTCDate()+"";function c(){return e[32](e[40])}return{key:t,first:null,c(){n=b("td"),a=b("button"),r=U(o),x(a,"class","std-btn sdt-btn-day svelte-1xp8yha"),a.disabled=l=e[15](e[40]),Y(a,"not-current",!e[14](7*e[39]+e[42],e[40])),x(n,"class","sdt-cal-td svelte-1xp8yha"),Y(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),Y(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){T(t,n,e),m(n,a),m(a,r),s||(i=D(a,"click",k(c)),s=!0)},p(t,s){e=t,512&s[0]&&o!==(o=e[40].getUTCDate()+"")&&F(r,o),512&s[0]&&l!==(l=e[15](e[40]))&&(a.disabled=l),16896&s[0]&&Y(a,"not-current",!e[14](7*e[39]+e[42],e[40])),512&s[0]&&Y(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),512&s[0]&&Y(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark)},d(t){t&&v(n),s=!1,i()}}}function Jt(t){let e,n,a=[],r=new Map,l=t[37];const s=t=>t[42];for(let e=0;e',c=$(),u=b("button"),u.innerHTML='',d=$(),h=b("div"),w&&w.c(),f=$(),M&&M.c(),g=$(),S&&S.c(),x(n,"class","std-btn std-btn-header sdt-toggle-btn svelte-1xp8yha"),x(o,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),x(u,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),x(s,"class","sdt-nav-btns svelte-1xp8yha"),x(e,"class","sdt-thead-nav svelte-1xp8yha"),x(h,"class","sdt-calendar svelte-1xp8yha"),Y(h,"is-grid",t[5])},m(r,v){T(r,e,v),m(e,n),m(n,a),m(e,l),m(e,s),C&&C.m(s,null),m(s,i),m(s,o),m(s,c),m(s,u),T(r,d,v),T(r,h,v),w&&w.m(h,null),m(h,f),M&&M.m(h,null),m(h,g),S&&S.m(h,null),p||(y=[D(n,"click",k(t[17])),D(o,"click",k(t[27])),D(u,"click",k(t[28]))],p=!0)},p(t,e){256&e[0]&&F(a,t[8]),t[1]&&t[2]?C?C.p(t,e):(C=_t(t),C.c(),C.m(s,i)):C&&(C.d(1),C=null),0===t[3]?w?(w.p(t,e),8&e[0]&&st(w,1)):(w=Pt(t),w.c(),st(w,1),w.m(h,f)):w&&(rt(),it(w,1,1,(()=>{w=null})),lt()),1===t[3]?M?(M.p(t,e),8&e[0]&&st(M,1)):(M=Vt(t),M.c(),st(M,1),M.m(h,g)):M&&(rt(),it(M,1,1,(()=>{M=null})),lt()),2===t[3]?S?(S.p(t,e),8&e[0]&&st(S,1)):(S=qt(t),S.c(),st(S,1),S.m(h,null)):S&&(rt(),it(S,1,1,(()=>{S=null})),lt()),32&e[0]&&Y(h,"is-grid",t[5])},i(t){st(w),st(M),st(S)},o(t){it(w),it(M),it(S)},d(t){t&&v(e),C&&C.d(),t&&v(d),t&&v(h),w&&w.d(),M&&M.d(),S&&S.d(),p=!1,r(y)}}}let Kt=400;function Xt(t,e,n){let a,r,l,s,i,o,{date:c=null}=e,{startDate:u=null}=e,{endDate:d=null}=e,{weekStart:h=1}=e,{i18n:f}=e,{enableTimeToggle:g=!1}=e;function m(t,e,n){const a=y.getTimezoneOffset()>=0?0:1,r=new Date(t,e,y.getUTCDate()+a),l=Ut(r,r,v,f,h);$(n),D(l.grid[Math.floor(l.selectionMark/7)][l.selectionMark%7])}let p=c,y=c?new Date(c.valueOf()):new Date;const T=_();let v=2,C=-2,b=!1,w=222,U=null;function $(t){const e=0===v?120:1===v?12:1;y.setUTCMonth(y.getUTCMonth()+t*e),n(26,y),n(21,c),n(2,p),n(7,U=null),n(6,w=222)}function M(t){if(1!==v)return $(t);n(7,U=()=>{$(t)}),n(6,w=-1===t?w-222:w+222)}function D(t){switch(n(4,C=1),n(5,b=!0),v){case 0:y.setYear(t),n(26,y),n(21,c),n(2,p);break;case 1:y.setUTCMonth(f.monthsShort.indexOf(t)),n(26,y),n(21,c),n(2,p);break;case 2:const e=Dt(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());p&&(e.setMinutes(p.getMinutes()),e.setUTCHours(p.getUTCHours())),n(2,p=e),T("date",p)}v<2&&n(3,v++,v)}return t.$$set=t=>{"date"in t&&n(21,c=t.date),"startDate"in t&&n(22,u=t.startDate),"endDate"in t&&n(23,d=t.endDate),"weekStart"in t&&n(24,h=t.weekStart),"i18n"in t&&n(0,f=t.i18n),"enableTimeToggle"in t&&n(1,g=t.enableTimeToggle)},t.$$.update=()=>{4194304&t.$$.dirty[0]&&u&&u.setUTCDate(u.getUTCDate()-1),2097156&t.$$.dirty[0]&&c!==p&&(n(2,p=c),c&&n(26,y=new Date(c.valueOf())),n(4,C=1),n(5,b=!0),n(3,v=2)),16&t.$$.dirty[0]&&n(13,a=C<1?1.5:.5),16&t.$$.dirty[0]&&n(12,r=C<1?1:1.5),16&t.$$.dirty[0]&&n(11,l=-2===C?wt:null!==C?Yt:()=>{}),83886093&t.$$.dirty[0]&&n(9,s=Ut(y,p,v,f,h)),16777217&t.$$.dirty[0]&&n(10,i=h>-1?f.daysMin.concat(f.daysMin).slice(h,7+h):f.daysMin.slice(h,7+h)),67108872&t.$$.dirty[0]&&n(8,o=function(){switch(v){case 0:return`${s.grid[0][1]} - ${s.grid[2][2]}`;case 1:return y.getUTCFullYear();case 2:return f.months[y.getUTCMonth()]+" "+y.getUTCFullYear()}}())},[f,g,p,v,C,b,w,U,o,s,i,l,r,a,function(t){return s.prevTo<=t&&tt)||!!(d&&d<=t)},M,function(){n(4,C=-1),n(5,b=!0),v&&n(3,v--,v)},D,function(){n(5,b=!1)},function(){T("switch","time")},c,u,d,h,function(t,e){if(!p)return void D(new Date);let n;switch(t){case"PageDown":e=!0;case"ArrowDown":if(e)return m(y.getUTCFullYear(),y.getMonth()+1,1);if(n=$t(s.selectionMark+7,v),n.y>5){const t=new Date(y.getUTCFullYear(),y.getMonth()+1,y.getDate());let e=Ut(t,p,v,f,h);return e.grid[0][n.x].getUTCMonth()0?y.getMonth():11,1),p,v,f,h);return n.y=t.grid[5][n.x].getUTCDate()===p.getUTCDate()?4:t.grid[5][n.x].getUTCMonth()===p.getUTCMonth()?3:5,$(-1),void D(t.grid[n.y][n.x])}s.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&$(-1),D(s.grid[n.y][n.x]);break;case"ArrowLeft":if(e)return m(y.getUTCFullYear()-1,y.getMonth(),1);n=$t(s.selectionMark-1,v),s.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&$(-1),D(s.grid[n.y][n.x]);break;case"ArrowRight":if(e)return m(y.getUTCFullYear()+1,y.getMonth(),1);n=$t(s.selectionMark+1,v),s.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&$(1),D(s.grid[n.y][n.x])}},y,()=>M(-1),()=>M(1),t=>{D(t)},t=>{D(t)},()=>U&&U(),t=>{D(t)}]}class Qt extends vt{constructor(t){super(),Tt(this,t,Xt,Wt,s,{date:21,startDate:22,endDate:23,weekStart:24,i18n:0,enableTimeToggle:1,handleGridNav:25},null,[-1,-1])}get handleGridNav(){return this.$$.ctx[25]}}function te(t,e,n){const a=t.slice();return a[31]=e[n],a[33]=n,a}function ee(t,e,n){const a=t.slice();return a[31]=e[n],a[33]=n,a}function ne(t){let e,n,a,r,l,s;return{c(){e=b("button"),n=w("svg"),a=w("path"),x(a,"fill-rule","evenodd"),x(a,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),x(n,"class","sdt-svg svelte-yz95cb"),x(n,"xmlns","http://www.w3.org/2000/svg"),x(n,"viewBox","0 0 24 24"),x(n,"width","20"),x(n,"height","20"),x(e,"class","sdt-time-btn sdt-back-btn svelte-yz95cb"),x(e,"title",r=t[2].backToDate)},m(r,i){T(r,e,i),m(e,n),m(n,a),l||(s=D(e,"click",t[16]),l=!0)},p(t,n){4&n[0]&&r!==(r=t[2].backToDate)&&x(e,"title",r)},d(t){t&&v(e),l=!1,s()}}}function ae(t){let e,n,a,l,s,i,o,c,u,d;return{c(){e=b("div"),n=b("button"),a=U("AM"),s=$(),i=b("button"),o=U("PM"),x(n,"class","sdt-time-btn svelte-yz95cb"),x(n,"data-value",l=t[4]%12),Y(n,"is-active",t[4]<12),x(i,"class","sdt-time-btn svelte-yz95cb"),x(i,"data-value",c=t[4]%12+12),Y(i,"is-active",t[4]>=12),x(e,"class","sdt-meridian svelte-yz95cb")},m(r,l){T(r,e,l),m(e,n),m(n,a),m(e,s),m(e,i),m(i,o),u||(d=[D(n,"click",t[14]),D(i,"click",t[14])],u=!0)},p(t,e){16&e[0]&&l!==(l=t[4]%12)&&x(n,"data-value",l),16&e[0]&&Y(n,"is-active",t[4]<12),16&e[0]&&c!==(c=t[4]%12+12)&&x(i,"data-value",c),16&e[0]&&Y(i,"is-active",t[4]>=12)},d(t){t&&v(e),u=!1,r(d)}}}function re(t,e){let n,a,r,l,s,i,o=e[31].val+"";return{key:t,first:null,c(){n=b("button"),a=U(o),x(n,"style",r=`left:${e[31].x}px; top:${e[31].y}px`),x(n,"class","sdt-tick svelte-yz95cb"),x(n,"data-value",l=e[31].val),Y(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33])),this.first=n},m(t,e){T(t,n,e),m(n,a),i=!0},p(t,s){e=t,(!i||512&s[0])&&o!==(o=e[31].val+"")&&F(a,o),(!i||512&s[0]&&r!==(r=`left:${e[31].x}px; top:${e[31].y}px`))&&x(n,"style",r),(!i||512&s[0]&&l!==(l=e[31].val))&&x(n,"data-value",l),4664&s[0]&&Y(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33]))},i(t){i||(t&&G((()=>{s||(s=dt(n,wt,{duration:200},!0)),s.run(1)})),i=!0)},o(t){t&&(s||(s=dt(n,wt,{duration:200},!1)),s.run(0)),i=!1},d(t){t&&v(n),t&&s&&s.end()}}}function le(t){let e,n,a=t[8],r=[];for(let e=0;eit(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t{l||(l=dt(e,wt,{duration:200},!0)),l.run(1)})),s=!0)},o(t){t&&(l||(l=dt(e,wt,{duration:200},!1)),l.run(0)),s=!1},d(t){t&&v(e),t&&l&&l.end()}}}function ie(t){let e,n,a,l,s,i,o,c,u,d,h,f,g,p,y,C,w,M,k,S,H,B,z,N=t[11](t[4],t[0])+"",A=t[11](t[5],!1)+"",E=[],O=new Map,_=t[1]&&ne(t),P=t[0]&&ae(t),R=t[9];const L=t=>t[31].val;for(let e=0;e{V=null})),lt()):V?(V.p(t,e),9&e[0]&&st(V,1)):(V=le(t),V.c(),st(V,1),V.m(g,null)),8&e[0]&&Y(g,"is-minute-view",t[3])},i(t){if(!H){for(let t=0;t{S=ct(e,wt,{duration:200}),S.start()})),H=!0}},o(t){for(let t=0;t=9||t<3?-1:1)*e),val:a?5*t||n:t?t+r:n});return c}function b(t){if(T&&("mousemove"!==t.type||p)&&(m||"BUTTON"===t.target.tagName)){if("BUTTON"===t.target.tagName){let e=parseInt(t.target.dataset.value);const n=t.meridianSwitch||!m?"setUTCHours":"setUTCMinutes";y[n](e)}else if(m){const e=u.getBoundingClientRect(),n=t.clientX-e.left,a=t.clientY-e.top,r=130,l=130;let s,i,o=null;switch(o=n>r?a>l?2:1:a>l?3:4,o){case 1:s=n-r,i=l-a;break;case 2:s=n-r,i=a-l;break;case 3:s=r-n,i=a-l;break;case 4:s=r-n,i=l-a}const c=Math.sqrt(s*s+i*i),d=90-Math.asin(s/c)*(180/Math.PI);let h;switch(o){case 1:h=90-d;break;case 2:h=d+90;break;case 3:h=270-d;break;case 4:h=d+270}h=Math.floor(h/6),y.setMinutes(h)}n(20,y),n(17,d),T=!1,v("time",y),t.meridianSwitch||p||!m||setTimeout((()=>{v("close")}),300),t.meridianSwitch||m||n(3,m=!0),setTimeout((()=>{T=!0}),200)}}return t.$$set=t=>{"date"in t&&n(17,d=t.date),"showMeridian"in t&&n(0,h=t.showMeridian),"hasDateComponent"in t&&n(1,f=t.hasDateComponent),"i18n"in t&&n(2,g=t.i18n)},t.$$.update=()=>{1179648&t.$$.dirty[0]&&d!==y&&n(20,y=d),1048576&t.$$.dirty[0]&&n(4,a=y?y.getUTCHours():0),17&t.$$.dirty[0]&&(r=!!h&&a>=12),1048576&t.$$.dirty[0]&&n(5,l=y?y.getUTCMinutes():0),57&t.$$.dirty[0]&&n(10,s=m?`transform: rotateZ(${6*l}deg)`:h?`transform: rotateZ(${a%12*30}deg);`:`transform: rotateZ(${a%12*30}deg); ${a>12||!a?"height: calc(25% + 1px)":""}`),8&t.$$.dirty[0]&&(i=m?5:1),8&t.$$.dirty[0]&&n(9,o=C(220,130,m?"00":"12",m,0)),8&t.$$.dirty[0]&&v("time-switch",m)},n(8,c=C(140,130,"00",!1,12)),[h,f,g,m,a,l,u,p,c,o,s,function(t,e){return e?r&&12===t?12:t<10||t%12<10?"0"+t%12:t%12:t<10?`0${t}`:t},function(t,e,n){return m?e===t||0===n&&n===t:h?!(!r||12!=e||12!==t)||(!r&&12==e&&0===t||e===(t?t%12:12)):e>12?(n?i*n+12:0)===t:"00"===e||"12"===e?12===t&&12==e||"00"===e&&0===t:e===t},b,function(t){t.meridianSwitch=!0,b(t)},function(t){n(7,p="mousedown"===t.type)},function(){v("switch","date")},d,function(t){if(void 0===t)return m;n(3,m=t)},function(t){m?(t=5*t+l)%5!=0&&(t=tn(3,m=!1),()=>n(3,m=!0),t=>{p&&b(t)},function(t){L[t?"unshift":"push"]((()=>{u=t,n(6,u)}))}]}class ce extends vt{constructor(t){super(),Tt(this,t,oe,ie,s,{date:17,showMeridian:0,hasDateComponent:1,i18n:2,minuteSwitch:18,makeTick:19},null,[-1,-1])}get minuteSwitch(){return this.$$.ctx[18]}get makeTick(){return this.$$.ctx[19]}}function ue(t){let e,n,a,s,i,c,u,d,h;const f=[he,de],g=[];function m(t,e){return"date"===t[27]?0:1}return n=m(t),a=g[n]=f[n](t),{c(){e=b("div"),a.c(),x(e,"class",s="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom")},m(a,r){T(a,e,r),g[n].m(e,null),u=!0,d||(h=[o(i=t[19].call(null,e,{inputEl:t[22],visible:t[28],inputRect:t[23]})),D(e,"mousedown",k(t[47]))],d=!0)},p(t,r){let o=n;n=m(t),n===o?g[n].p(t,r):(rt(),it(g[o],1,1,(()=>{g[o]=null})),lt(),a=g[n],a?a.p(t,r):(a=g[n]=f[n](t),a.c()),st(a,1),a.m(e,null)),(!u||512&r[0]&&s!==(s="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom"))&&x(e,"class",s),i&&l(i.update)&&281018368&r[0]&&i.update.call(null,{inputEl:t[22],visible:t[28],inputRect:t[23]})},i(t){u||(st(a),t&&G((()=>{c||(c=dt(e,wt,{duration:200},!0)),c.run(1)})),u=!0)},o(t){it(a),t&&(c||(c=dt(e,wt,{duration:200},!1)),c.run(0)),u=!1},d(t){t&&v(e),g[n].d(),t&&c&&c.end(),d=!1,r(h)}}}function de(t){let e,n,a={date:t[20],hasDateComponent:"time"!==t[26],showMeridian:t[1].match("p|P"),i18n:t[18]};return e=new ce({props:a}),t[53](e),e.$on("time",t[31]),e.$on("switch",t[36]),e.$on("close",t[37]),{c(){mt(e.$$.fragment)},m(t,a){pt(e,t,a),n=!0},p(t,n){const a={};1048576&n[0]&&(a.date=t[20]),67108864&n[0]&&(a.hasDateComponent="time"!==t[26]),2&n[0]&&(a.showMeridian=t[1].match("p|P")),262144&n[0]&&(a.i18n=t[18]),e.$set(a)},i(t){n||(st(e.$$.fragment,t),n=!0)},o(t){it(e.$$.fragment,t),n=!1},d(n){t[53](null),yt(e,n)}}}function he(t){let e,n,a,r,l={date:t[20],startDate:t[6]?kt(t[6],t[1],t[18],t[10]):null,endDate:t[7]?kt(t[7],t[1],t[18],t[10]):null,enableTimeToggle:t[26].includes("time"),i18n:t[18],weekStart:t[11]};e=new Qt({props:l}),t[52](e),e.$on("date",t[31]),e.$on("switch",t[36]);let s=(t[16]||t[17])&&fe(t);return{c(){mt(e.$$.fragment),n=$(),s&&s.c(),a=M()},m(t,l){pt(e,t,l),T(t,n,l),s&&s.m(t,l),T(t,a,l),r=!0},p(t,n){const r={};1048576&n[0]&&(r.date=t[20]),263234&n[0]&&(r.startDate=t[6]?kt(t[6],t[1],t[18],t[10]):null),263298&n[0]&&(r.endDate=t[7]?kt(t[7],t[1],t[18],t[10]):null),67108864&n[0]&&(r.enableTimeToggle=t[26].includes("time")),262144&n[0]&&(r.i18n=t[18]),2048&n[0]&&(r.weekStart=t[11]),e.$set(r),t[16]||t[17]?s?s.p(t,n):(s=fe(t),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},i(t){r||(st(e.$$.fragment,t),r=!0)},o(t){it(e.$$.fragment,t),r=!1},d(r){t[52](null),yt(e,r),r&&v(n),s&&s.d(r),r&&v(a)}}}function fe(t){let e,n,a=t[16]&&ge(t),r=t[17]&&me(t);return{c(){e=b("div"),a&&a.c(),n=$(),r&&r.c(),x(e,"class","std-btn-row svelte-tb6rom")},m(t,l){T(t,e,l),a&&a.m(e,null),m(e,n),r&&r.m(e,null)},p(t,l){t[16]?a?a.p(t,l):(a=ge(t),a.c(),a.m(e,n)):a&&(a.d(1),a=null),t[17]?r?r.p(t,l):(r=me(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(t){t&&v(e),a&&a.d(),r&&r.d()}}}function ge(t){let e,n,a,r,l,s,o=t[18].todayBtn+"";return{c(){e=b("button"),n=U(o),x(e,"class",a=i(t[14])+" svelte-tb6rom"),e.disabled=r=t[6]>xt(new Date,t[1],t[18],t[10])},m(a,r){T(a,e,r),m(e,n),l||(s=D(e,"click",t[32]),l=!0)},p(t,l){262144&l[0]&&o!==(o=t[18].todayBtn+"")&&F(n,o),16384&l[0]&&a!==(a=i(t[14])+" svelte-tb6rom")&&x(e,"class",a),263234&l[0]&&r!==(r=t[6]>xt(new Date,t[1],t[18],t[10]))&&(e.disabled=r)},d(t){t&&v(e),l=!1,s()}}}function me(t){let e,n,a,r,l,s,o=t[18].clearBtn+"";return{c(){e=b("button"),n=U(o),x(e,"class",a=i(t[15])+" svelte-tb6rom"),e.disabled=r=!t[20]},m(a,r){T(a,e,r),m(e,n),l||(s=D(e,"click",t[33]),l=!0)},p(t,l){262144&l[0]&&o!==(o=t[18].clearBtn+"")&&F(n,o),32768&l[0]&&a!==(a=i(t[15])+" svelte-tb6rom")&&x(e,"class",a),1048576&l[0]&&r!==(r=!t[20])&&(e.disabled=r)},d(t){t&&v(e),l=!1,s()}}}function pe(t){let e,n,a,l,s,c,u,d,h=(t[12]||t[21])&&ue(t);return{c(){e=b("input"),l=$(),h&&h.c(),s=M(),x(e,"type",n=t[8]?"hidden":"text"),x(e,"name",t[2]),x(e,"autocomplete","off"),e.disabled=t[3],x(e,"placeholder",t[4]),x(e,"class",a=i(t[13])+" svelte-tb6rom"),e.required=t[5],e.readOnly=t[21],e.value=t[0]},m(n,a){T(n,e,a),t[50](e),T(n,l,a),h&&h.m(n,a),T(n,s,a),c=!0,u||(d=[o(t[29].call(null,e,t[30])),D(e,"focus",t[34]),D(e,"blur",t[38]),D(e,"click",t[51]),D(e,"input",t[48]),D(e,"change",t[49]),D(e,"keydown",t[35])],u=!0)},p(t,r){(!c||256&r[0]&&n!==(n=t[8]?"hidden":"text"))&&x(e,"type",n),(!c||4&r[0])&&x(e,"name",t[2]),(!c||8&r[0])&&(e.disabled=t[3]),(!c||16&r[0])&&x(e,"placeholder",t[4]),(!c||8192&r[0]&&a!==(a=i(t[13])+" svelte-tb6rom"))&&x(e,"class",a),(!c||32&r[0])&&(e.required=t[5]),(!c||2097152&r[0])&&(e.readOnly=t[21]),(!c||1&r[0]&&e.value!==t[0])&&(e.value=t[0]),t[12]||t[21]?h?(h.p(t,r),2101248&r[0]&&st(h,1)):(h=ue(t),h.c(),st(h,1),h.m(s.parentNode,s)):h&&(rt(),it(h,1,1,(()=>{h=null})),lt())},i(t){c||(st(h),c=!0)},o(t){it(h),c=!1},d(n){n&&v(e),t[50](null),n&&v(l),h&&h.d(n),n&&v(s),u=!1,r(d)}}}const ye=Ct;function Te(t,e,n){let a,{name:r="date"}=e,{disabled:l=!1}=e,{placeholder:s=null}=e,{required:i=!1}=e,{value:o=null}=e,{initialDate:c=null}=e,{startDate:u=null}=e,{endDate:d=null}=e,{pickerOnly:h=!1}=e,{theme:f=ye.theme}=e,{mode:g=ye.mode}=e,{format:m=ye.format}=e,{formatType:p=ye.formatType}=e,{weekStart:y=ye.weekStart}=e,{visible:T=ye.visible}=e,{inputClasses:v=ye.inputClasses}=e,{todayBtnClasses:C=ye.todayBtnClasses}=e,{clearBtnClasses:b=ye.clearBtnClasses}=e,{todayBtn:w=ye.todayBtn}=e,{clearBtn:U=ye.clearBtn}=e,{clearToggle:$=ye.clearToggle}=e,{autoclose:M=ye.autoclose}=e,{i18n:D=ye.i18n}=e,{positionFn:k=St}=e,{validatorAction:x=null}=e;"yyyy-mm-dd"===m&&"time"===g&&(m="hh:ii");const F=_();o&&(o=o.replace(/(:\d+):\d+/,"$1"));let S=o,Y=m,H=c&&c instanceof Date?Dt(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getHours(),c.getUTCMinutes()):o?kt(o,m,D,p):null;H&&c&&(o=xt(H,m,D,p));let B,z=h,N=null,A=null,E=x?x.shift():()=>{},O=x||[],R=null,V=!1,j=null,q="auto"===g?m.match(/hh?|ii?/i)&&m.match(/y|m|d/i)?"datetime":m.match(/hh?|ii?/i)?"time":"date":g,G="time"===q?"time":"date";function J(t){let e=t.detail||null;t.detail&&H&&H.getUTCFullYear()===t.detail.getUTCFullYear()&&H.getUTCMonth()===t.detail.getUTCMonth()&&H.getUTCDate()===t.detail.getUTCDate()&&"date"===q&&$&&(e=null),n(0,o=e?xt(e,m,D,p):null),!M||"date"!==q&&e||h||V||X(!1),e&&!V&&"datetime"===q&&"date"===G&&n(27,G="time"),V&&"time"===G?j=setTimeout((()=>{V=!1}),400):V=!1,(Z(),I).then((()=>{N.dispatchEvent(new Event("input")),F("change",o)}))}function W(){J({detail:null})}function K(){n(23,A=N.getBoundingClientRect()),n(21,z=!0)}function X(t){n(21,z=!1),q.includes("date")&&n(27,G="date"),t&&F("blur")}return t.$$set=t=>{"name"in t&&n(2,r=t.name),"disabled"in t&&n(3,l=t.disabled),"placeholder"in t&&n(4,s=t.placeholder),"required"in t&&n(5,i=t.required),"value"in t&&n(0,o=t.value),"initialDate"in t&&n(39,c=t.initialDate),"startDate"in t&&n(6,u=t.startDate),"endDate"in t&&n(7,d=t.endDate),"pickerOnly"in t&&n(8,h=t.pickerOnly),"theme"in t&&n(9,f=t.theme),"mode"in t&&n(40,g=t.mode),"format"in t&&n(1,m=t.format),"formatType"in t&&n(10,p=t.formatType),"weekStart"in t&&n(11,y=t.weekStart),"visible"in t&&n(12,T=t.visible),"inputClasses"in t&&n(13,v=t.inputClasses),"todayBtnClasses"in t&&n(14,C=t.todayBtnClasses),"clearBtnClasses"in t&&n(15,b=t.clearBtnClasses),"todayBtn"in t&&n(16,w=t.todayBtn),"clearBtn"in t&&n(17,U=t.clearBtn),"clearToggle"in t&&n(41,$=t.clearToggle),"autoclose"in t&&n(42,M=t.autoclose),"i18n"in t&&n(18,D=t.i18n),"positionFn"in t&&n(19,k=t.positionFn),"validatorAction"in t&&n(43,x=t.validatorAction)},t.$$.update=()=>{if(4352&t.$$.dirty[0]&&n(28,a=!!h||T),1311747&t.$$.dirty[0]|49664&t.$$.dirty[1]){if(o!==S){const t=o?kt(o,m,D,p):null;n(20,H=t),n(45,S=o)}Y!==m&&H&&(n(0,o=xt(H,m,D,p)),n(45,S=o),n(46,Y=m),"auto"===g&&n(26,q=m.match(/hh?|ii?/i)&&m.match(/y|m|d/i)?"datetime":m.match(/hh?|ii?/i)?"time":"date"))}},[o,m,r,l,s,i,u,d,h,f,p,y,T,v,C,b,w,U,D,k,H,z,N,A,R,B,q,G,a,E,O,J,function(){const t=new Date;if(u&&kt(u,m,D,p){N=t,n(22,N)}))},()=>{!z&&K()},function(t){L[t?"unshift":"push"]((()=>{R=t,n(24,R)}))},function(t){L[t?"unshift":"push"]((()=>{B=t,n(25,B)}))}]}class ve extends vt{constructor(t){super(),Tt(this,t,Te,pe,s,{name:2,disabled:3,placeholder:4,required:5,value:0,initialDate:39,startDate:6,endDate:7,pickerOnly:8,theme:9,mode:40,format:1,formatType:10,weekStart:11,visible:12,inputClasses:13,todayBtnClasses:14,clearBtnClasses:15,todayBtn:16,clearBtn:17,clearToggle:41,autoclose:42,i18n:18,positionFn:19,validatorAction:43,setDateValue:44},null,[-1,-1])}get setDateValue(){return this.$$.ctx[44]}}export{ye as config,ve as default}; diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/_app/immutable/assets/index-a9bc93c9.css b/docs/_app/immutable/assets/index-a9bc93c9.css new file mode 100644 index 0000000..dd3c0df --- /dev/null +++ b/docs/_app/immutable/assets/index-a9bc93c9.css @@ -0,0 +1 @@ +.sdt-cal-td.svelte-1xp8yha.svelte-1xp8yha{padding:0;font-size:90%;text-align:center;background-color:var(--sdt-bg-main)}.sdt-cal-th.svelte-1xp8yha.svelte-1xp8yha{height:24px}.sdt-calendar.svelte-1xp8yha.svelte-1xp8yha{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-1xp8yha.svelte-1xp8yha{display:grid}.sdt-calendar.is-grid.svelte-1xp8yha .sdt-table.svelte-1xp8yha{grid-column:1/2;grid-row:1/2}.sdt-table.svelte-1xp8yha.svelte-1xp8yha{width:100%;border-collapse:collapse}.sdt-table-height.svelte-1xp8yha.svelte-1xp8yha{height:222px}.animate-transition.svelte-1xp8yha.svelte-1xp8yha{will-change:transform;transition:transform .3s ease}.not-current.svelte-1xp8yha.svelte-1xp8yha{opacity:.3}.not-current.svelte-1xp8yha.svelte-1xp8yha:hover{opacity:.55}.std-btn.svelte-1xp8yha.svelte-1xp8yha{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:.3rem;box-sizing:border-box;color:var(--sdt-color)}.sdt-btn-day.svelte-1xp8yha.svelte-1xp8yha{max-height:32px}.std-btn[disabled].svelte-1xp8yha.svelte-1xp8yha{cursor:not-allowed;opacity:.35}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha{width:auto;font-weight:700;padding:.375rem .5rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha:first-of-type{padding-left:.375rem;padding-right:.375rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha{padding-left:.25rem;padding-right:.25rem}.std-btn.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-bg-hover)}.is-selected.svelte-1xp8yha .std-btn.svelte-1xp8yha{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main));opacity:.9}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-time-icon.svelte-1xp8yha.svelte-1xp8yha{margin-right:-4px}.sdt-time-icon.svelte-1xp8yha svg.svelte-1xp8yha{margin:4px 0}.sdt-tbody-lg.svelte-1xp8yha.svelte-1xp8yha{background-color:var(--sdt-bg-main)}.sdt-tbody-lg.svelte-1xp8yha .std-btn.svelte-1xp8yha{height:72px}.sdt-thead-nav.svelte-1xp8yha.svelte-1xp8yha{display:flex;margin-bottom:.25rem}.sdt-nav-btns.svelte-1xp8yha.svelte-1xp8yha{white-space:nowrap}.sdt-toggle-btn.svelte-1xp8yha.svelte-1xp8yha{width:100%;text-align:left}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{box-sizing:border-box;position:absolute;content:"";margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-shadow);border-top:4px solid var(--sdt-shadow);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-1xp8yha.svelte-1xp8yha{fill:var(--sdt-color)}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:hover:before{border-left-color:var(--sdt-primary);border-top-color:var(--sdt-primary)}.is-selected.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{border-left-color:#eee;border-top-color:#eee}.sdt-timer.svelte-gtqd74.svelte-gtqd74{position:relative;width:272px}.sdt-time-head.svelte-gtqd74.svelte-gtqd74{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:4px}.sdt-time-figure.svelte-gtqd74.svelte-gtqd74{font-size:1.5rem;font-weight:700}.sdt-clock.svelte-gtqd74.svelte-gtqd74{margin:auto;position:relative;width:260px;height:260px;background-color:var(--sdt-clock-bg);border-radius:50%;transition:background-color .3s;overflow:hidden}.sdt-time-btn.svelte-gtqd74.svelte-gtqd74{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;padding:0 .375rem;color:var(--sdt-color)}.sdt-svg.svelte-gtqd74.svelte-gtqd74{fill:var(--sdt-color)}.sdt-time-btn.svelte-gtqd74.svelte-gtqd74:not(.is-active){opacity:.5}.sdt-time-btn.svelte-gtqd74.svelte-gtqd74:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-back-btn.svelte-gtqd74.svelte-gtqd74{position:absolute;top:0;left:0;padding:.375rem;opacity:1!important}.sdt-meridian.svelte-gtqd74.svelte-gtqd74{position:absolute;top:.25rem;right:.25rem;display:flex;flex-flow:column;font-size:90%}.sdt-meridian.svelte-gtqd74 .sdt-time-btn.svelte-gtqd74{padding:.15rem .5rem}.sdt-meridian.svelte-gtqd74 .sdt-time-btn.is-active.svelte-gtqd74{font-weight:700}.sdt-middle-dot.svelte-gtqd74.svelte-gtqd74{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);background-color:var(--sdt-primary);border-radius:50%}.sdt-hand-pointer.svelte-gtqd74.svelte-gtqd74{width:2px;height:calc(40% + 1px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-primary);transform-origin:center bottom 0;transition:transform .3s ease,height .15s ease}.sdt-hand-circle.svelte-gtqd74.svelte-gtqd74{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-primary);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-gtqd74.svelte-gtqd74{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%,-50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:transparent;transition:all .3s}.sdt-tick[disabled].svelte-gtqd74.svelte-gtqd74{cursor:not-allowed}.sdt-tick.outer-tick.svelte-gtqd74.svelte-gtqd74{opacity:0}.sdt-tick.is-selected.svelte-gtqd74.svelte-gtqd74{animation:svelte-gtqd74-tick-selection 0s .175s ease-out forwards}@keyframes svelte-gtqd74-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}.sdt-calendar-colors.svelte-1pq5qho{--sdt-primary:#286090;--sdt-color:#000;--sdt-bg-main:#fff;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:#1e486d;--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:#eee;--sdt-btn-header-bg-hover:#dfdfdf;--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:rgb(238, 237, 237, .25);--sdt-clock-bg-shadow:0 0 128px 2px #ddd inset;--sdt-shadow:#ccc}.std-calendar-wrap.svelte-1pq5qho{width:280px;background-color:var(--sdt-bg-main);box-shadow:0 1px 6px var(--sdt-shadow);border-radius:4px;padding:.25rem .25rem .5rem;color:var(--sdt-color)}.std-calendar-wrap.is-popup.svelte-1pq5qho{box-shadow:0 1px 6px var(--sdt-shadow)}.std-btn-row.svelte-1pq5qho{margin-top:.5rem;display:flex;justify-content:space-evenly}.sdt-action-btn.svelte-1pq5qho{padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem}.sdt-today-btn.svelte-1pq5qho{background-color:var(--sdt-primary);color:var(--sdt-today-color, var(--sdt-bg-main));padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem;border:1px solid var(--sdt-today-bg)}.sdt-today-btn[disabled].svelte-1pq5qho{opacity:.5;cursor:not-allowed}.sdt-today-btn.svelte-1pq5qho:focus,.sdt-today-btn.svelte-1pq5qho:active,.sdt-today-btn.svelte-1pq5qho:hover:not([disabled]){background-color:var(--sdt-today-bg)}.sdt-clear-btn.svelte-1pq5qho{border:1px solid var(--sdt-clear-color);background-color:transparent;color:var(--sdt-clear-color)}.sdt-clear-btn.svelte-1pq5qho:focus,.sdt-clear-btn.svelte-1pq5qho:active:not([disabled]),.sdt-clear-btn.svelte-1pq5qho:hover:not([disabled]){background-color:var(--sdt-clear-color);color:var(--sdt-clear-hover-color, var(--sdt-bg-main))}.my-colors{--sdt-primary:#998825;--sdt-color:#eee;--sdt-color-selected:#eee;--sdt-bg-main:#333;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:rgb(160, 145, 57);--sdt-today-color:var(--sdt-color-selected);--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:rgb(126, 35, 78);--sdt-btn-header-bg-hover:rgb(107, 18, 60);--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:#eeeded;--sdt-clock-bg-shadow:0 0 128px 2px #74661834 inset;--sdt-shadow:#ccc} diff --git a/docs/_app/immutable/chunks/index-1e0e0ebd.js b/docs/_app/immutable/chunks/index-1e0e0ebd.js new file mode 100644 index 0000000..444c3d2 --- /dev/null +++ b/docs/_app/immutable/chunks/index-1e0e0ebd.js @@ -0,0 +1,4 @@ +function E(){}const V=t=>t;function gt(t,e){for(const n in e)t[n]=e[n];return t}function rt(t){return t()}function it(){return Object.create(null)}function S(t){t.forEach(rt)}function P(t){return typeof t=="function"}function It(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let O;function Ht(t,e){return O||(O=document.createElement("a")),O.href=e,t===O.href}function xt(t){return Object.keys(t).length===0}function Wt(t,e,n,i){if(t){const r=ct(t,e,n,i);return t[0](r)}}function ct(t,e,n,i){return t[1]&&i?gt(n.ctx.slice(),t[1](i(e))):n.ctx}function Gt(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const l=[],s=Math.max(e.dirty.length,r.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),Y=lt?t=>requestAnimationFrame(t):E;const N=new Set;function ot(t){N.forEach(e=>{e.c(t)||(N.delete(e),e.f())}),N.size!==0&&Y(ot)}function Z(t){let e;return N.size===0&&Y(ot),{promise:new Promise(n=>{N.add(e={c:t,f:n})}),abort(){N.delete(e)}}}let W=!1;function $t(){W=!0}function wt(){W=!1}function bt(t,e,n,i){for(;t>1);n(r)<=i?t=r+1:e=r}return t}function vt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let a=0;a0&&e[n[r]].claim_order<=a?r+1:bt(1,r,u=>e[n[u]].claim_order,a))-1;i[c]=n[_]+1;const f=_+1;n[f]=c,r=Math.max(f,r)}const l=[],s=[];let o=e.length-1;for(let c=n[r]+1;c!=0;c=i[c-1]){for(l.push(e[c-1]);o>=c;o--)s.push(e[o]);o--}for(;o>=0;o--)s.push(e[o]);l.reverse(),s.sort((c,a)=>c.claim_order-a.claim_order);for(let c=0,a=0;c=l[a].claim_order;)a++;const _=at.removeEventListener(e,n,i)}function ee(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ct(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ne(t,e,n){e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:Ct(t,e,n)}function Mt(t){return Array.from(t.childNodes)}function Dt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function ft(t,e,n,i,r=!1){Dt(t);const l=(()=>{for(let s=t.claim_info.last_index;s=0;s--){const o=t[s];if(e(o)){const c=n(o);return c===void 0?t.splice(s,1):t[s]=c,r?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,o}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function _t(t,e,n,i){return ft(t,r=>r.nodeName===e,r=>{const l=[];for(let s=0;sr.removeAttribute(s))},()=>i(e))}function ie(t,e,n){return _t(t,e,n,ut)}function se(t,e,n){return _t(t,e,n,At)}function Pt(t,e){return ft(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>tt(e),!0)}function re(t){return Pt(t," ")}function ce(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function le(t,e){t.value=e==null?"":e}function oe(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function ae(t,e){for(let n=0;n>>0}function qt(t,e){const n={stylesheet:Et(e),rules:{}};return B.set(t,n),n}function I(t,e,n,i,r,l,s,o=0){const c=16.666/i;let a=`{ +`;for(let m=0;m<=1;m+=c){const g=e+(n-e)*l(m);a+=m*100+`%{${s(g,1-g)}} +`}const _=a+`100% {${s(n,1-n)}} +}`,f=`__svelte_${Rt(_)}_${o}`,u=at(t),{stylesheet:d,rules:h}=B.get(u)||qt(u,t);h[f]||(h[f]=!0,d.insertRule(`@keyframes ${f} ${_}`,d.cssRules.length));const y=t.style.animation||"";return t.style.animation=`${y?`${y}, `:""}${f} ${i}ms linear ${r}ms 1 both`,F+=1,f}function H(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?l=>l.indexOf(e)<0:l=>l.indexOf("__svelte")===-1),r=n.length-i.length;r&&(t.style.animation=i.join(", "),F-=r,F||Ot())}function Ot(){Y(()=>{F||(B.forEach(t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}}),B.clear())})}let D;function M(t){D=t}function G(){if(!D)throw new Error("Function called outside component initialization");return D}function _e(t){G().$$.on_mount.push(t)}function de(t){G().$$.after_update.push(t)}function he(){const t=G();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const l=dt(e,n,{cancelable:i});return r.slice().forEach(s=>{s.call(t,l)}),!l.defaultPrevented}return!0}}function me(t,e){return G().$$.context.set(t,e),e}function pe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const C=[],st=[],T=[],Q=[],ht=Promise.resolve();let U=!1;function mt(){U||(U=!0,ht.then(pt))}function ye(){return mt(),ht}function j(t){T.push(t)}function ge(t){Q.push(t)}const K=new Set;let L=0;function pt(){const t=D;do{for(;L{A=null})),A}function k(t,e,n){t.dispatchEvent(dt(`${e?"intro":"outro"}${n}`))}const z=new Set;let v;function xe(){v={r:0,c:[],p:v}}function $e(){v.r||S(v.c),v=v.p}function yt(t,e){t&&t.i&&(z.delete(t),t.i(e))}function Tt(t,e,n,i){if(t&&t.o){if(z.has(t))return;z.add(t),v.c.push(()=>{z.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const nt={duration:0};function we(t,e,n){let i=e(t,n),r=!1,l,s,o=0;function c(){l&&H(t,l)}function a(){const{delay:f=0,duration:u=300,easing:d=V,tick:h=E,css:y}=i||nt;y&&(l=I(t,0,1,u,f,d,y,o++)),h(0,1);const m=X()+f,g=m+u;s&&s.abort(),r=!0,j(()=>k(t,!0,"start")),s=Z(x=>{if(r){if(x>=g)return h(1,0),k(t,!0,"end"),c(),r=!1;if(x>=m){const $=d((x-m)/u);h($,1-$)}}return r})}let _=!1;return{start(){_||(_=!0,H(t),P(i)?(i=i(),et().then(a)):a())},invalidate(){_=!1},end(){r&&(c(),r=!1)}}}function be(t,e,n){let i=e(t,n),r=!0,l;const s=v;s.r+=1;function o(){const{delay:c=0,duration:a=300,easing:_=V,tick:f=E,css:u}=i||nt;u&&(l=I(t,1,0,a,c,_,u));const d=X()+c,h=d+a;j(()=>k(t,!1,"start")),Z(y=>{if(r){if(y>=h)return f(0,1),k(t,!1,"end"),--s.r||S(s.c),!1;if(y>=d){const m=_((y-d)/a);f(1-m,m)}}return r})}return P(i)?et().then(()=>{i=i(),o()}):o(),{end(c){c&&i.tick&&i.tick(1,0),r&&(l&&H(t,l),r=!1)}}}function ve(t,e,n,i){let r=e(t,n),l=i?0:1,s=null,o=null,c=null;function a(){c&&H(t,c)}function _(u,d){const h=u.b-l;return d*=Math.abs(h),{a:l,b:u.b,d:h,duration:d,start:u.start,end:u.start+d,group:u.group}}function f(u){const{delay:d=0,duration:h=300,easing:y=V,tick:m=E,css:g}=r||nt,x={start:X()+d,b:u};u||(x.group=v,v.r+=1),s||o?o=x:(g&&(a(),c=I(t,l,u,h,d,y,g)),u&&m(0,1),s=_(x,h),j(()=>k(t,u,"start")),Z($=>{if(o&&$>o.start&&(s=_(o,h),o=null,k(t,s.b,"start"),g&&(a(),c=I(t,l,s.b,s.duration,0,y,r.css))),s){if($>=s.end)m(l=s.b,1-l),k(t,s.b,"end"),o||(s.b?a():--s.group.r||S(s.group.c)),s=null;else if($>=s.start){const R=$-s.start;l=s.a+s.d*y(R/s.duration),m(l,1-l)}}return!!(s||o)}))}return{run(u){P(r)?et().then(()=>{r=r(),f(u)}):f(u)},end(){a(),s=o=null}}}function ke(t,e){t.d(1),e.delete(t.key)}function Ee(t,e){Tt(t,1,1,()=>{e.delete(t.key)})}function Se(t,e,n,i,r,l,s,o,c,a,_,f){let u=t.length,d=l.length,h=u;const y={};for(;h--;)y[t[h].key]=h;const m=[],g=new Map,x=new Map;for(h=d;h--;){const p=f(r,l,h),w=n(p);let b=s.get(w);b?i&&b.p(p,e):(b=a(w,p),b.c()),g.set(w,m[h]=b),w in y&&x.set(w,Math.abs(h-y[w]))}const $=new Set,R=new Set;function J(p){yt(p,1),p.m(o,_),s.set(p.key,p),_=p.first,d--}for(;u&&d;){const p=m[d-1],w=t[u-1],b=p.key,q=w.key;p===w?(_=p.first,u--,d--):g.has(q)?!s.has(b)||$.has(b)?J(p):R.has(q)?u--:x.get(b)>x.get(q)?(R.add(b),J(p)):($.add(q),u--):(c(w,s),u--)}for(;u--;){const p=t[u];g.has(p.key)||c(p,s)}for(;d;)J(m[d-1]);return m}function Ne(t,e){const n={},i={},r={$$scope:1};let l=t.length;for(;l--;){const s=t[l],o=e[l];if(o){for(const c in s)c in o||(i[c]=1);for(const c in o)r[c]||(n[c]=o[c],r[c]=1);t[l]=o}else for(const c in s)r[c]=1}for(const s in i)s in n||(n[s]=void 0);return n}function je(t){return typeof t=="object"&&t!==null?t:{}}function Ae(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Ce(t){t&&t.c()}function Me(t,e){t&&t.l(e)}function zt(t,e,n,i){const{fragment:r,on_mount:l,on_destroy:s,after_update:o}=t.$$;r&&r.m(e,n),i||j(()=>{const c=l.map(rt).filter(P);s?s.push(...c):S(c),t.$$.on_mount=[]}),o.forEach(j)}function Bt(t,e){const n=t.$$;n.fragment!==null&&(S(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ft(t,e){t.$$.dirty[0]===-1&&(C.push(t),mt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const h=d.length?d[0]:u;return a.ctx&&r(a.ctx[f],a.ctx[f]=h)&&(!a.skip_bound&&a.bound[f]&&a.bound[f](h),_&&Ft(t,f)),u}):[],a.update(),_=!0,S(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){$t();const f=Mt(e.target);a.fragment&&a.fragment.l(f),f.forEach(jt)}else a.fragment&&a.fragment.c();e.intro&&yt(t.$$.fragment),zt(t,e.target,e.anchor,e.customElement),wt(),pt()}M(c)}class Pe{$destroy(){Bt(this,1),this.$destroy=E}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!xt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{Ee as $,Ne as A,je as B,Bt as C,gt as D,ye as E,Wt as F,Jt as G,Kt as H,Gt as I,Nt as J,Ht as K,V as L,At as M,se as N,fe as O,te as P,ee as Q,S as R,Pe as S,he as T,j as U,we as V,be as W,Xt as X,Se as Y,ke as Z,ve as _,Yt as a,st as a0,Qt as a1,Ut as a2,P as a3,pe as a4,Ae as a5,ne as a6,ae as a7,le as a8,ge as a9,ue as aa,Vt as b,re as c,$e as d,Zt as e,yt as f,xe as g,jt as h,De as i,me as j,de as k,ut as l,ie as m,E as n,_e as o,Mt as p,Ct as q,oe as r,It as s,Tt as t,tt as u,Pt as v,ce as w,Ce as x,Me as y,zt as z}; diff --git a/docs/_app/immutable/error.svelte-173903e2.js b/docs/_app/immutable/error.svelte-173903e2.js new file mode 100644 index 0000000..7ce9944 --- /dev/null +++ b/docs/_app/immutable/error.svelte-173903e2.js @@ -0,0 +1 @@ +import{S as j,i as y,s as z,l as v,u as E,a as S,e as C,m as b,p as d,v as P,h as o,c as q,b as u,J as R,w as N,n as H}from"./chunks/index-1e0e0ebd.js";function J(r){let l,t=r[1].frame+"",a;return{c(){l=v("pre"),a=E(t)},l(f){l=b(f,"PRE",{});var s=d(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].frame+"")&&N(a,t)},d(f){f&&o(l)}}}function h(r){let l,t=r[1].stack+"",a;return{c(){l=v("pre"),a=E(t)},l(f){l=b(f,"PRE",{});var s=d(l);a=P(s,t),s.forEach(o)},m(f,s){u(f,l,s),R(l,a)},p(f,s){s&2&&t!==(t=f[1].stack+"")&&N(a,t)},d(f){f&&o(l)}}}function A(r){let l,t,a,f,s=r[1].message+"",c,k,n,p,i=r[1].frame&&J(r),_=r[1].stack&&h(r);return{c(){l=v("h1"),t=E(r[0]),a=S(),f=v("pre"),c=E(s),k=S(),i&&i.c(),n=S(),_&&_.c(),p=C()},l(e){l=b(e,"H1",{});var m=d(l);t=P(m,r[0]),m.forEach(o),a=q(e),f=b(e,"PRE",{});var w=d(f);c=P(w,s),w.forEach(o),k=q(e),i&&i.l(e),n=q(e),_&&_.l(e),p=C()},m(e,m){u(e,l,m),R(l,t),u(e,a,m),u(e,f,m),R(f,c),u(e,k,m),i&&i.m(e,m),u(e,n,m),_&&_.m(e,m),u(e,p,m)},p(e,[m]){m&1&&N(t,e[0]),m&2&&s!==(s=e[1].message+"")&&N(c,s),e[1].frame?i?i.p(e,m):(i=J(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),e[1].stack?_?_.p(e,m):(_=h(e),_.c(),_.m(p.parentNode,p)):_&&(_.d(1),_=null)},i:H,o:H,d(e){e&&o(l),e&&o(a),e&&o(f),e&&o(k),i&&i.d(e),e&&o(n),_&&_.d(e),e&&o(p)}}}function F({error:r,status:l}){return{props:{error:r,status:l}}}function B(r,l,t){let{status:a}=l,{error:f}=l;return r.$$set=s=>{"status"in s&&t(0,a=s.status),"error"in s&&t(1,f=s.error)},[a,f]}class G extends j{constructor(l){super(),y(this,l,B,A,z,{status:0,error:1})}}export{G as default,F as load}; diff --git a/docs/_app/immutable/layout.svelte-91c1ce5c.js b/docs/_app/immutable/layout.svelte-91c1ce5c.js new file mode 100644 index 0000000..4f259d6 --- /dev/null +++ b/docs/_app/immutable/layout.svelte-91c1ce5c.js @@ -0,0 +1 @@ +import{S as o,i,s as r,F as u,G as f,H as _,I as c,f as p,t as d}from"./chunks/index-1e0e0ebd.js";function m(n){let s;const l=n[1].default,e=u(l,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),s=!0},p(t,[a]){e&&e.p&&(!s||a&1)&&f(e,l,t,t[0],s?c(l,t[0],a,null):_(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){d(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,l){let{$$slots:e={},$$scope:t}=s;return n.$$set=a=>{"$$scope"in a&&l(0,t=a.$$scope)},[t,e]}class h extends o{constructor(s){super(),i(this,s,$,m,r,{})}}export{h as default}; diff --git a/docs/_app/immutable/pages/index.svelte-a9a3ded9.js b/docs/_app/immutable/pages/index.svelte-a9a3ded9.js new file mode 100644 index 0000000..aa9ef44 --- /dev/null +++ b/docs/_app/immutable/pages/index.svelte-a9a3ded9.js @@ -0,0 +1,75 @@ +import{S as yo,i as bo,s as Do,l,u as i,a as h,m as o,p as n,v as c,h as t,c as m,K as n2,q as b,b as F,J as e,n as Qm,L as ME,M as Ws,N as Zs,O as ae,P as pe,Q as $t,w as ea,f as ve,g as Xn,t as ke,d as Qn,R as Qs,T as l2,r as Pg,U as Ks,V as cd,W as o2,X as Dc,Y as dd,Z as r2,E as hE,_ as go,$ as CE,a0 as Kn,e as rd,a1 as Eo,a2 as mE,a3 as OE,a4 as Km,x as Xt,y as Qt,z as Kt,C as xt,a5 as xm,a6 as SE,a7 as Lg,a8 as Bg,a9 as $m,o as IE,aa as FE}from"../chunks/index-1e0e0ebd.js";function HE(r){let a,s,d,u,f,g,_,v,p,k,E,T,D,M,R,H,J,A,O,P,B,C,j,V,U,ce,Z,q,Q,G,ne,he,ge,K,fe,L,w,S,ue,me,N,x,z,se,_e,de,$,De,Ie,nt,Ue,$e,we,Te,Et,lt,et,xs='npm install svelty-picker',ot,rt,ma,ta,Fe,I=`<script> + import SveltyPicker from 'svelty-picker' + + let myDate = '2021-11-11'; +</script> + +<SveltyPicker inputClasses="form-control" format="yyyy-mm-dd hh:ii" bind:value={myDate}></SveltyPicker>`,ye,be,$s,kt,aa,en,Ja,Pe,tn,Wa,Ee,_a,He,va,an,ga,Ea,sn,ka,ya,nn,ba,Da,ln,wa,W,Ne,yt,on,rn,Ta,Le,cn,Ma,Ca,Oa,Sa,dn,bt,un,qe,je,fn,Ia,Ve,Fa,Ha,pn,Aa,Pa,Dt,hn,tt,La,sa,mn,wt,na,Ge,Tt,_n,Mt,Re,Je,vn,it,Ba,ct,Ct,gn,Ya,dt,Ot,En,at,kn,ut,yn,bn,ft,Me,We,la,Dn,Na,Be,wn,St,Va,Ce,Tn,It,Ft,Ht,Ra,M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o,H1,Pc,Un,vE=`/** defaults */ +.sdt-calendar-colors { + --sdt-primary: #286090; + --sdt-color: #000; + --sdt-bg-main: #fff; + --sdt-bg-today: var(--sdt-primary); + --sdt-bg-clear: #dc3545; + --sdt-today-bg: #1e486d; + --sdt-clear-color: #dc3545; + --sdt-btn-bg-hover: #eee; + --sdt-btn-header-bg-hover: #dfdfdf; + --sdt-clock-bg: #eeeded; + --sdt-clock-bg-minute: rgb(238, 237, 237, 0.25); + --sdt-clock-bg-shadow: 0 0 128px 2px #ddd inset; + --sdt-shadow: #ccc; +}`,Lc,oo,A1,Bc,_t,P1,cc,L1,B1,dc,Y1,N1,uc,V1,R1,Yc,Es,ks,fc,z1,U1,pc,q1,j1,G1,ha,hc,J1,W1,mc,Z1,X1,_c,Q1,K1,Nc,qn,gE=`<script> +function onInput(event) { + console.log(event.target.value) // logs currently selected date or empty string +} + +function onChange(event) { + console.log(event.detail) // logs currently selected date or null +} +</script> + +<SveltyPicker on:input={onInput} on:change={onChange}></SveltyPicker>`,Vc,ro,x1,Rc,io,$1,zc,jn,EE=`export const en = { + days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], + daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'], + months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], + monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + meridiem: ['am', 'pm'], + suffix: ['st', 'nd', 'rd', 'th'], + todayBtn: 'Today', + clearBtn: 'Clear', + timeView: 'Show time view', + backToDate: 'Back to calendar view' +}`,Uc,co,em,qc,uo,tm,jc,fo,po,Gn,am,sm,Gc,ho,nm,Jc,mo,lm;return{c(){a=l("h1"),s=i("\u{1F4C6} Svelty Picker "),d=l("a"),u=l("img"),g=h(),_=l("p"),v=i("Simple date & time picker implemented in svelte."),p=h(),k=l("p"),E=i("Features:"),T=h(),D=l("ul"),M=l("li"),R=i("datepicker"),H=h(),J=l("li"),A=i("timepicker (with meridian support)"),O=h(),P=l("li"),B=i("various formatting options"),C=h(),j=l("li"),V=i("keyboard navigation"),U=h(),ce=l("li"),Z=i("includes "),q=l("code"),Q=i(""),G=i(" element"),ne=h(),he=l("li"),ge=i("easily themable"),K=h(),fe=l("li"),L=i("restriction by start and end date"),w=h(),S=l("li"),ue=i("validator action for "),me=l("code"),N=i(""),x=i(" using "),z=l("code"),se=i("svelte-use-forms"),_e=i(" (optional)"),de=h(),$=l("li"),De=i("custom element"),Ie=h(),nt=l("p"),Ue=l("img"),we=h(),Te=l("h2"),Et=i("\u2699\uFE0F Install"),lt=h(),et=l("pre"),ot=h(),rt=l("h2"),ma=i("\u{1F440} Example"),ta=h(),Fe=l("pre"),ye=h(),be=l("p"),$s=i("Try yourself in "),kt=l("a"),aa=i("REPL"),en=i("."),Ja=h(),Pe=l("h2"),tn=i("\u{1F4D3} Options"),Wa=h(),Ee=l("table"),_a=l("thead"),He=l("tr"),va=l("th"),an=i("Property"),ga=h(),Ea=l("th"),sn=i("Type"),ka=h(),ya=l("th"),nn=i("Default"),ba=h(),Da=l("th"),ln=i("Description"),wa=h(),W=l("tbody"),Ne=l("tr"),yt=l("td"),on=i("name"),rn=h(),Ta=l("td"),Le=l("code"),cn=i("string"),Ma=h(),Ca=l("td"),Oa=l("code"),Sa=i("date"),dn=h(),bt=l("td"),un=i("html attribute for underlying "),qe=l("code"),je=i(""),fn=i(" element"),Ia=h(),Ve=l("tr"),Fa=l("td"),Ha=i("disabled"),pn=h(),Aa=l("td"),Pa=l("code"),Dt=i("bool"),hn=h(),tt=l("td"),La=l("code"),sa=i("false"),mn=h(),wt=l("td"),na=i("html attribute for underlying "),Ge=l("code"),Tt=i(""),_n=i(" element"),Mt=h(),Re=l("tr"),Je=l("td"),vn=i("placeholder"),it=h(),Ba=l("td"),ct=l("code"),Ct=i("string"),gn=h(),Ya=l("td"),dt=l("code"),Ot=i("null"),En=h(),at=l("td"),kn=i("html attribute for underlying "),ut=l("code"),yn=i(""),bn=i(" element"),ft=h(),Me=l("tr"),We=l("td"),la=i("required"),Dn=h(),Na=l("td"),Be=l("code"),wn=i("bool"),St=h(),Va=l("td"),Ce=l("code"),Tn=i("false"),It=h(),Ft=l("td"),Ht=i("html attribute for underlying "),Ra=l("code"),Mn=i(""),Za=i(" element"),Cn=h(),Ze=l("tr"),On=l("td"),xn=i("value"),wo=h(),Xa=l("td"),Sn=l("code"),$n=i("string"),re=h(),oe=l("td"),pt=l("code"),oa=i("null"),ra=h(),At=l("td"),Qa=i("string representation of selected value"),el=h(),Xe=l("tr"),ia=l("td"),tl=i("initialDate"),Ka=h(),xa=l("td"),za=l("code"),In=i("Date"),Ua=h(),$a=l("td"),es=l("code"),al=i("null"),sl=h(),st=l("td"),nl=i("initial date object, if you prefer that to "),ts=l("code"),ll=i("value"),ol=h(),Qe=l("tr"),ca=l("td"),ht=i("startDate"),da=h(),as=l("td"),rl=i("`string"),Fn=h(),mt=l("td"),il=i("Date`"),Oe=h(),ss=l("td"),ns=l("code"),cl=i("null"),dl=h(),Ke=l("tr"),ls=l("td"),ua=i("endDate"),ul=h(),os=l("td"),rs=i("`string"),fa=h(),is=l("td"),fl=i("Date`"),Hn=h(),cs=l("td"),ds=l("code"),us=i("null"),An=h(),Ae=l("tr"),qa=l("td"),pl=i("pickerOnly"),Pn=h(),fs=l("td"),pa=l("code"),hl=i("bool"),ps=h(),hs=l("td"),ja=l("code"),ms=i("false"),ml=h(),To=l("td"),ud=i("Picker is always visible and input field is then hidden, but still present"),fd=h(),Pt=l("tr"),Mo=l("td"),pd=i("theme"),hd=h(),Co=l("td"),Oo=l("code"),md=i("string"),_d=h(),So=l("td"),Io=l("code"),vd=i("sdt-calendar-colors"),gd=h(),_l=l("td"),Ed=i("css class defining "),vl=l("a"),kd=i("css variables"),yd=h(),Lt=l("tr"),Fo=l("td"),bd=i("mode"),Dd=h(),Ho=l("td"),Ao=l("code"),wd=i("string"),Td=h(),Po=l("td"),Lo=l("code"),Md=i("auto"),Cd=h(),Bo=l("td"),Od=i("restrict picker\u2019s mode. Possible values: `auto"),Sd=h(),Bt=l("tr"),Yo=l("td"),Id=i("format"),Fd=h(),No=l("td"),Vo=l("code"),Hd=i("string"),Ad=h(),Ro=l("td"),zo=l("code"),Pd=i("yyyy-mm-dd"),Ld=h(),Ln=l("td"),Bd=i("Format of entered date/time. See "),gl=l("a"),Yd=i("format settings"),Nd=i(" for available options"),Vd=h(),Yt=l("tr"),Uo=l("td"),Rd=i("weekStart"),zd=h(),qo=l("td"),jo=l("code"),Ud=i("number"),qd=h(),Go=l("td"),Jo=l("code"),jd=i("1"),Gd=h(),_s=l("td"),Jd=i("number in range "),Wo=l("code"),Wd=i("0-6"),Zd=i(" to select first day of the week. Sunday is "),Zo=l("code"),Xd=i("0"),Qd=h(),Nt=l("tr"),Xo=l("td"),Kd=i("inputClasses"),xd=h(),Qo=l("td"),Ko=l("code"),$d=i("string"),eu=h(),xo=l("td"),tu=i("\u201C"),au=h(),$o=l("td"),su=i("input css class string"),nu=h(),Vt=l("tr"),er=l("td"),lu=i("todayBtnClasses"),ou=h(),tr=l("td"),ar=l("code"),ru=i("string"),iu=h(),sr=l("td"),nr=l("code"),cu=i("sdt-action-btn sdt-today-btn"),du=h(),lr=l("td"),uu=i("today button css classes"),fu=h(),Rt=l("tr"),or=l("td"),pu=i("clearBtnClasses"),hu=h(),rr=l("td"),ir=l("code"),mu=i("string"),_u=h(),cr=l("td"),dr=l("code"),vu=i("sdt-action-btn sdt-clear-btn"),gu=h(),ur=l("td"),Eu=i("clear button css classes"),ku=h(),zt=l("tr"),fr=l("td"),yu=i("todayBtn"),bu=h(),pr=l("td"),hr=l("code"),Du=i("bool"),wu=h(),mr=l("td"),_r=l("code"),Tu=i("true"),Mu=h(),vr=l("td"),Cu=i("Show today button"),Ou=h(),Ut=l("tr"),gr=l("td"),Su=i("clearBtn"),Iu=h(),Er=l("td"),kr=l("code"),Fu=i("bool"),Hu=h(),yr=l("td"),br=l("code"),Au=i("true"),Pu=h(),Dr=l("td"),Lu=i("Show clear button"),Bu=h(),qt=l("tr"),wr=l("td"),Yu=i("clearToggle"),Nu=h(),Tr=l("td"),Mr=l("code"),Vu=i("bool"),Ru=h(),Cr=l("td"),Or=l("code"),zu=i("true"),Uu=h(),Sr=l("td"),qu=i("Clear current selection by clicking the same date"),ju=h(),jt=l("tr"),Ir=l("td"),Gu=i("autoclose"),Ju=h(),Fr=l("td"),Hr=l("code"),Wu=i("bool"),Zu=h(),Ar=l("td"),Pr=l("code"),Xu=i("true"),Qu=h(),Bn=l("td"),Ku=i("Hides picker after selection is done. If mode includes "),Lr=l("em"),xu=i("time picker"),$u=i(", it closes automatically only after minute selection"),ef=h(),Gt=l("tr"),Br=l("td"),tf=i("i18n"),af=h(),Yr=l("td"),Nr=l("code"),sf=i("object"),nf=h(),Vr=l("td"),Rr=l("code"),lf=i("en"),of=h(),zr=l("td"),rf=i("localization object, english is by default"),cf=h(),Jt=l("tr"),Ur=l("td"),df=i("positionFn"),uf=h(),qr=l("td"),jr=l("code"),ff=i("function"),pf=h(),Gr=l("td"),Jr=l("em"),Wr=l("code"),hf=i("internal"),mf=h(),ze=l("td"),_f=i("function used to position picker. Used as action. Acceps following object: "),Zr=l("code"),vf=i("{ inputEl, visible}"),gf=i(", where "),Xr=l("code"),Ef=i("visible"),kf=i(" is "),Qr=l("code"),yf=i("visible"),bf=i(" parameter & "),Kr=l("code"),Df=i("inputEl"),wf=i(" is underlying "),xr=l("code"),Tf=i(""),Mf=i(" element"),Cf=h(),Wt=l("tr"),$r=l("td"),Of=i("validatorAction"),Sf=h(),ei=l("td"),ti=l("code"),If=i("array"),Ff=h(),ai=l("td"),si=l("code"),Hf=i("null"),Af=h(),Ga=l("td"),Pf=i("Bind validator action for inner "),ni=l("code"),Lf=i(""),Bf=i(" element. Designed to be used with "),li=l("code"),Yf=i("svelte-use-form"),Nf=i("."),Tc=h(),Zt=l("p"),Vf=i("Note: Properties starting by "),oi=l("code"),Rf=i("theme"),zf=i(" to "),ri=l("code"),Uf=i("i18n"),qf=i(" are configurable globally by overriding it in globally available "),ii=l("code"),jf=i("config"),Mc=h(),Yn=l("pre"),Cc=h(),El=l("h3"),Gf=i("Format settings"),Oc=h(),Ye=l("p"),Jf=i("Date format can be defined under "),ci=l("code"),Wf=i("formatType"),Zf=i(" property. It has two options: "),di=l("code"),Xf=i("standard"),Qf=i(" and "),ui=l("code"),Kf=i("php"),xf=i(`, where +`),fi=l("code"),$f=i("standard"),ep=i(" is the "),pi=l("em"),tp=i("default"),ap=i("."),Sc=h(),Nn=l("h4"),hi=l("code"),sp=i("standard"),np=i(" format settings:"),Ic=h(),X=l("ul"),kl=l("li"),mi=l("code"),lp=i("d"),op=i(" : day of the month without leading zeros"),rp=h(),yl=l("li"),_i=l("code"),ip=i("dd"),cp=i(" : day of the month, 2 digits with leading zeros"),dp=h(),bl=l("li"),vi=l("code"),up=i("D"),fp=i(" : short textual representation of a weekday (i18n.daysShort)"),pp=h(),Dl=l("li"),gi=l("code"),hp=i("DD"),mp=i(" : long textual representation of a weekday (i18n.days)"),_p=h(),wl=l("li"),Ei=l("code"),vp=i("S"),gp=i(" : English ordinal suffix for the day of the month, (i18n.suffix)"),Ep=h(),Tl=l("li"),ki=l("code"),kp=i("m"),yp=i(" : numeric representation of month without leading zeros"),bp=h(),Ml=l("li"),yi=l("code"),Dp=i("mm"),wp=i(" : numeric representation of the month, 2 digits with leading zeros"),Tp=h(),Cl=l("li"),bi=l("code"),Mp=i("M"),Cp=i(" : short textual representation of a month, three letters (i18n.monthsShort)"),Op=h(),Ol=l("li"),Di=l("code"),Sp=i("MM"),Ip=i(" : full textual representation of a month, such as January or March (i18n.months)"),Fp=h(),Sl=l("li"),wi=l("code"),Hp=i("yy"),Ap=i(" : two digit representation of a year"),Pp=h(),Il=l("li"),Ti=l("code"),Lp=i("yyyy"),Bp=i(" : full numeric representation of a year, 4 digits"),Yp=h(),Fl=l("li"),Mi=l("code"),Np=i("h"),Vp=i(" : hour without leading zeros - 24-hour format"),Rp=h(),Hl=l("li"),Ci=l("code"),zp=i("hh"),Up=i(" : hour, 2 digits with leading zeros - 24-hour format"),qp=h(),Al=l("li"),Oi=l("code"),jp=i("H"),Gp=i(" : hour without leading zeros - 12-hour format"),Jp=h(),Pl=l("li"),Si=l("code"),Wp=i("HH"),Zp=i(" : hour, 2 digits with leading zeros - 12-hour format"),Xp=h(),Ll=l("li"),Ii=l("code"),Qp=i("i"),Kp=i(" : minutes, 2 digits with leading zeros"),xp=h(),Vn=l("li"),Fi=l("code"),$p=i("ii"),eh=i(" : alias for "),Hi=l("code"),th=i("i"),ah=h(),Bl=l("li"),Ai=l("code"),sh=i("s"),nh=i(" : seconds, 2 digits with leading zeros"),lh=h(),Rn=l("li"),Pi=l("code"),oh=i("ss"),rh=i(" : alias for "),Li=l("code"),ih=i("s"),ch=h(),Yl=l("li"),Bi=l("code"),dh=i("p"),uh=i(" : meridian in lower case (\u2018am\u2019 or \u2018pm\u2019) - according to locale file (i18n.meridiem)"),fh=h(),Nl=l("li"),Yi=l("code"),ph=i("P"),hh=i(" : meridian in upper case (\u2018AM\u2019 or \u2018PM\u2019) - according to locale file (i18n.meridiem)"),mh=h(),vs=l("li"),Ni=l("code"),_h=i("t"),vh=i(" : timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use "),Vi=l("code"),gh=i("php"),Eh=i(" format"),Fc=h(),zn=l("h4"),Ri=l("code"),kh=i("php"),yh=i(" format settings:"),Hc=h(),ee=l("ul"),Vl=l("li"),zi=l("code"),bh=i("d"),Dh=i(" : Day of the month, 2 digits with leading zeros 01 to 31"),wh=h(),Rl=l("li"),Ui=l("code"),Th=i("D"),Mh=i(" : A textual representation of a day, three letters Mon through Sun"),Ch=h(),zl=l("li"),qi=l("code"),Oh=i("j"),Sh=i(" : Day of the month without leading zeros 1 to 31"),Ih=h(),Ul=l("li"),ji=l("code"),Fh=i("l"),Hh=i(" : A full textual representation of the day of the week Sunday through Saturday"),Ah=h(),ql=l("li"),Gi=l("code"),Ph=i("N"),Lh=i(" : ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday)"),Bh=h(),jl=l("li"),Ji=l("code"),Yh=i("S"),Nh=i(" : English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j"),Vh=h(),Gl=l("li"),Wi=l("code"),Rh=i("F"),zh=i(" : A full textual representation of a month, such as January or March January through December"),Uh=h(),Jl=l("li"),Zi=l("code"),qh=i("m"),jh=i(" : Numeric representation of a month, with leading zeros 01 through 12"),Gh=h(),Wl=l("li"),Xi=l("code"),Jh=i("M"),Wh=i(" : A short textual representation of a month, three letters Jan through Dec"),Zh=h(),Zl=l("li"),Qi=l("code"),Xh=i("n"),Qh=i(" : Numeric representation of a month, without leading zeros 1 through 12"),Kh=h(),Xl=l("li"),Ki=l("code"),xh=i("Y"),$h=i(" : A full numeric representation of a year, at least 4 digits, with - for years BCE. Examples: -0055, 0787, 1999, 2003"),e1=h(),Ql=l("li"),xi=l("code"),t1=i("y"),a1=i(" : A two digit representation of a year Examples: 99 or 03"),s1=h(),Kl=l("li"),$i=l("code"),n1=i("a"),l1=i(" : Lowercase Ante meridiem and Post meridiem am or pm"),o1=h(),xl=l("li"),ec=l("code"),r1=i("A"),i1=i(" : Uppercase Ante meridiem and Post meridiem AM or PM"),c1=h(),$l=l("li"),tc=l("code"),d1=i("g"),u1=i(" : 12-hour format of an hour without leading zeros 1 through 12"),f1=h(),eo=l("li"),ac=l("code"),p1=i("G"),h1=i(" : 24-hour format of an hour without leading zeros 0 through 23"),m1=h(),to=l("li"),sc=l("code"),_1=i("h"),v1=i(" : 12-hour format of an hour with leading zeros 01 through 12"),g1=h(),ao=l("li"),nc=l("code"),E1=i("H"),k1=i(" : 24-hour format of an hour with leading zeros 00 through 23"),y1=h(),so=l("li"),lc=l("code"),b1=i("i"),D1=i(" : Minutes with leading zeros 00 to 59"),w1=h(),no=l("li"),oc=l("code"),T1=i("s"),M1=i(" : Seconds with leading zeros 00 through 59"),C1=h(),gs=l("li"),rc=l("code"),O1=i("U"),S1=i(" : timestamp in seconds. For timestamp with miliseconds use "),ic=l("code"),I1=i("standard"),F1=i(" format"),Ac=h(),lo=l("h3"),H1=i("CSS variables"),Pc=h(),Un=l("pre"),Lc=h(),oo=l("h2"),A1=i("\u{1F5EF}\uFE0F Events"),Bc=h(),_t=l("p"),P1=i("Component emits "),cc=l("code"),L1=i("input"),B1=i(", "),dc=l("code"),Y1=i("change"),N1=i(" and "),uc=l("code"),V1=i("blur"),R1=i(" events."),Yc=h(),Es=l("ul"),ks=l("li"),fc=l("code"),z1=i("input"),U1=i(" is dispatched on "),pc=l("code"),q1=i(""),j1=i(" element therefore you can get current value like from every native event:"),G1=h(),ha=l("li"),hc=l("code"),J1=i("change"),W1=i(" event is using Svelte\u2019s "),mc=l("code"),Z1=i("eventDispatcher"),X1=i(", therefore triggered event contains "),_c=l("code"),Q1=i("detail"),K1=i(" property"),Nc=h(),qn=l("pre"),Vc=h(),ro=l("h2"),x1=i("\u{1F310} Localization"),Rc=h(),io=l("p"),$1=i("Localization file has following structure."),zc=h(),jn=l("pre"),Uc=h(),co=l("p"),em=i("PRs for extending built-in localization are welcome \u{1F973}"),qc=h(),uo=l("h2"),tm=i("\u{1F3C6} Thanks to:"),jc=h(),fo=l("ul"),po=l("li"),Gn=l("a"),am=i("Bootstrap datepicker"),sm=i(" for some internal date and format handling"),Gc=h(),ho=l("h2"),nm=i("Licence:"),Jc=h(),mo=l("p"),lm=i("MIT"),this.h()},l(y){a=o(y,"H1",{});var Y=n(a);s=c(Y,"\u{1F4C6} Svelty Picker "),d=o(Y,"A",{href:!0,rel:!0});var c2=n(d);u=o(c2,"IMG",{src:!0,alt:!0}),c2.forEach(t),Y.forEach(t),g=m(y),_=o(y,"P",{});var d2=n(_);v=c(d2,"Simple date & time picker implemented in svelte."),d2.forEach(t),p=m(y),k=o(y,"P",{});var u2=n(k);E=c(u2,"Features:"),u2.forEach(t),T=m(y),D=o(y,"UL",{});var Se=n(D);M=o(Se,"LI",{});var f2=n(M);R=c(f2,"datepicker"),f2.forEach(t),H=m(Se),J=o(Se,"LI",{});var p2=n(J);A=c(p2,"timepicker (with meridian support)"),p2.forEach(t),O=m(Se),P=o(Se,"LI",{});var h2=n(P);B=c(h2,"various formatting options"),h2.forEach(t),C=m(Se),j=o(Se,"LI",{});var m2=n(j);V=c(m2,"keyboard navigation"),m2.forEach(t),U=m(Se),ce=o(Se,"LI",{});var Wc=n(ce);Z=c(Wc,"includes "),q=o(Wc,"CODE",{});var _2=n(q);Q=c(_2,""),_2.forEach(t),G=c(Wc," element"),Wc.forEach(t),ne=m(Se),he=o(Se,"LI",{});var v2=n(he);ge=c(v2,"easily themable"),v2.forEach(t),K=m(Se),fe=o(Se,"LI",{});var g2=n(fe);L=c(g2,"restriction by start and end date"),g2.forEach(t),w=m(Se),S=o(Se,"LI",{});var _o=n(S);ue=c(_o,"validator action for "),me=o(_o,"CODE",{});var E2=n(me);N=c(E2,""),E2.forEach(t),x=c(_o," using "),z=o(_o,"CODE",{});var k2=n(z);se=c(k2,"svelte-use-forms"),k2.forEach(t),_e=c(_o," (optional)"),_o.forEach(t),de=m(Se),$=o(Se,"LI",{});var y2=n($);De=c(y2,"custom element"),y2.forEach(t),Se.forEach(t),Ie=m(y),nt=o(y,"P",{});var b2=n(nt);Ue=o(b2,"IMG",{src:!0,alt:!0}),b2.forEach(t),we=m(y),Te=o(y,"H2",{});var D2=n(Te);Et=c(D2,"\u2699\uFE0F Install"),D2.forEach(t),lt=m(y),et=o(y,"PRE",{class:!0});var kE=n(et);kE.forEach(t),ot=m(y),rt=o(y,"H2",{});var w2=n(rt);ma=c(w2,"\u{1F440} Example"),w2.forEach(t),ta=m(y),Fe=o(y,"PRE",{class:!0});var yE=n(Fe);yE.forEach(t),ye=m(y),be=o(y,"P",{});var Zc=n(be);$s=c(Zc,"Try yourself in "),kt=o(Zc,"A",{href:!0,rel:!0});var T2=n(kt);aa=c(T2,"REPL"),T2.forEach(t),en=c(Zc,"."),Zc.forEach(t),Ja=m(y),Pe=o(y,"H2",{});var M2=n(Pe);tn=c(M2,"\u{1F4D3} Options"),M2.forEach(t),Wa=m(y),Ee=o(y,"TABLE",{});var Xc=n(Ee);_a=o(Xc,"THEAD",{});var C2=n(_a);He=o(C2,"TR",{});var ys=n(He);va=o(ys,"TH",{});var O2=n(va);an=c(O2,"Property"),O2.forEach(t),ga=m(ys),Ea=o(ys,"TH",{});var S2=n(Ea);sn=c(S2,"Type"),S2.forEach(t),ka=m(ys),ya=o(ys,"TH",{});var I2=n(ya);nn=c(I2,"Default"),I2.forEach(t),ba=m(ys),Da=o(ys,"TH",{});var F2=n(Da);ln=c(F2,"Description"),F2.forEach(t),ys.forEach(t),C2.forEach(t),wa=m(Xc),W=o(Xc,"TBODY",{});var te=n(W);Ne=o(te,"TR",{});var bs=n(Ne);yt=o(bs,"TD",{});var H2=n(yt);on=c(H2,"name"),H2.forEach(t),rn=m(bs),Ta=o(bs,"TD",{});var A2=n(Ta);Le=o(A2,"CODE",{});var P2=n(Le);cn=c(P2,"string"),P2.forEach(t),A2.forEach(t),Ma=m(bs),Ca=o(bs,"TD",{});var L2=n(Ca);Oa=o(L2,"CODE",{});var B2=n(Oa);Sa=c(B2,"date"),B2.forEach(t),L2.forEach(t),dn=m(bs),bt=o(bs,"TD",{});var Qc=n(bt);un=c(Qc,"html attribute for underlying "),qe=o(Qc,"CODE",{});var Y2=n(qe);je=c(Y2,""),Y2.forEach(t),fn=c(Qc," element"),Qc.forEach(t),bs.forEach(t),Ia=m(te),Ve=o(te,"TR",{});var Ds=n(Ve);Fa=o(Ds,"TD",{});var N2=n(Fa);Ha=c(N2,"disabled"),N2.forEach(t),pn=m(Ds),Aa=o(Ds,"TD",{});var V2=n(Aa);Pa=o(V2,"CODE",{});var R2=n(Pa);Dt=c(R2,"bool"),R2.forEach(t),V2.forEach(t),hn=m(Ds),tt=o(Ds,"TD",{});var z2=n(tt);La=o(z2,"CODE",{});var U2=n(La);sa=c(U2,"false"),U2.forEach(t),z2.forEach(t),mn=m(Ds),wt=o(Ds,"TD",{});var Kc=n(wt);na=c(Kc,"html attribute for underlying "),Ge=o(Kc,"CODE",{});var q2=n(Ge);Tt=c(q2,""),q2.forEach(t),_n=c(Kc," element"),Kc.forEach(t),Ds.forEach(t),Mt=m(te),Re=o(te,"TR",{});var ws=n(Re);Je=o(ws,"TD",{});var j2=n(Je);vn=c(j2,"placeholder"),j2.forEach(t),it=m(ws),Ba=o(ws,"TD",{});var G2=n(Ba);ct=o(G2,"CODE",{});var J2=n(ct);Ct=c(J2,"string"),J2.forEach(t),G2.forEach(t),gn=m(ws),Ya=o(ws,"TD",{});var W2=n(Ya);dt=o(W2,"CODE",{});var Z2=n(dt);Ot=c(Z2,"null"),Z2.forEach(t),W2.forEach(t),En=m(ws),at=o(ws,"TD",{});var xc=n(at);kn=c(xc,"html attribute for underlying "),ut=o(xc,"CODE",{});var X2=n(ut);yn=c(X2,""),X2.forEach(t),bn=c(xc," element"),xc.forEach(t),ws.forEach(t),ft=m(te),Me=o(te,"TR",{});var Ts=n(Me);We=o(Ts,"TD",{});var Q2=n(We);la=c(Q2,"required"),Q2.forEach(t),Dn=m(Ts),Na=o(Ts,"TD",{});var K2=n(Na);Be=o(K2,"CODE",{});var x2=n(Be);wn=c(x2,"bool"),x2.forEach(t),K2.forEach(t),St=m(Ts),Va=o(Ts,"TD",{});var $2=n(Va);Ce=o($2,"CODE",{});var e_=n(Ce);Tn=c(e_,"false"),e_.forEach(t),$2.forEach(t),It=m(Ts),Ft=o(Ts,"TD",{});var $c=n(Ft);Ht=c($c,"html attribute for underlying "),Ra=o($c,"CODE",{});var t_=n(Ra);Mn=c(t_,""),t_.forEach(t),Za=c($c," element"),$c.forEach(t),Ts.forEach(t),Cn=m(te),Ze=o(te,"TR",{});var Ms=n(Ze);On=o(Ms,"TD",{});var a_=n(On);xn=c(a_,"value"),a_.forEach(t),wo=m(Ms),Xa=o(Ms,"TD",{});var s_=n(Xa);Sn=o(s_,"CODE",{});var n_=n(Sn);$n=c(n_,"string"),n_.forEach(t),s_.forEach(t),re=m(Ms),oe=o(Ms,"TD",{});var l_=n(oe);pt=o(l_,"CODE",{});var o_=n(pt);oa=c(o_,"null"),o_.forEach(t),l_.forEach(t),ra=m(Ms),At=o(Ms,"TD",{});var r_=n(At);Qa=c(r_,"string representation of selected value"),r_.forEach(t),Ms.forEach(t),el=m(te),Xe=o(te,"TR",{});var Cs=n(Xe);ia=o(Cs,"TD",{});var i_=n(ia);tl=c(i_,"initialDate"),i_.forEach(t),Ka=m(Cs),xa=o(Cs,"TD",{});var c_=n(xa);za=o(c_,"CODE",{});var d_=n(za);In=c(d_,"Date"),d_.forEach(t),c_.forEach(t),Ua=m(Cs),$a=o(Cs,"TD",{});var u_=n($a);es=o(u_,"CODE",{});var f_=n(es);al=c(f_,"null"),f_.forEach(t),u_.forEach(t),sl=m(Cs),st=o(Cs,"TD",{});var om=n(st);nl=c(om,"initial date object, if you prefer that to "),ts=o(om,"CODE",{});var p_=n(ts);ll=c(p_,"value"),p_.forEach(t),om.forEach(t),Cs.forEach(t),ol=m(te),Qe=o(te,"TR",{});var Os=n(Qe);ca=o(Os,"TD",{});var h_=n(ca);ht=c(h_,"startDate"),h_.forEach(t),da=m(Os),as=o(Os,"TD",{});var m_=n(as);rl=c(m_,"`string"),m_.forEach(t),Fn=m(Os),mt=o(Os,"TD",{});var __=n(mt);il=c(__,"Date`"),__.forEach(t),Oe=m(Os),ss=o(Os,"TD",{});var v_=n(ss);ns=o(v_,"CODE",{});var g_=n(ns);cl=c(g_,"null"),g_.forEach(t),v_.forEach(t),Os.forEach(t),dl=m(te),Ke=o(te,"TR",{});var Ss=n(Ke);ls=o(Ss,"TD",{});var E_=n(ls);ua=c(E_,"endDate"),E_.forEach(t),ul=m(Ss),os=o(Ss,"TD",{});var k_=n(os);rs=c(k_,"`string"),k_.forEach(t),fa=m(Ss),is=o(Ss,"TD",{});var y_=n(is);fl=c(y_,"Date`"),y_.forEach(t),Hn=m(Ss),cs=o(Ss,"TD",{});var b_=n(cs);ds=o(b_,"CODE",{});var D_=n(ds);us=c(D_,"null"),D_.forEach(t),b_.forEach(t),Ss.forEach(t),An=m(te),Ae=o(te,"TR",{});var Is=n(Ae);qa=o(Is,"TD",{});var w_=n(qa);pl=c(w_,"pickerOnly"),w_.forEach(t),Pn=m(Is),fs=o(Is,"TD",{});var T_=n(fs);pa=o(T_,"CODE",{});var M_=n(pa);hl=c(M_,"bool"),M_.forEach(t),T_.forEach(t),ps=m(Is),hs=o(Is,"TD",{});var C_=n(hs);ja=o(C_,"CODE",{});var O_=n(ja);ms=c(O_,"false"),O_.forEach(t),C_.forEach(t),ml=m(Is),To=o(Is,"TD",{});var S_=n(To);ud=c(S_,"Picker is always visible and input field is then hidden, but still present"),S_.forEach(t),Is.forEach(t),fd=m(te),Pt=o(te,"TR",{});var Fs=n(Pt);Mo=o(Fs,"TD",{});var I_=n(Mo);pd=c(I_,"theme"),I_.forEach(t),hd=m(Fs),Co=o(Fs,"TD",{});var F_=n(Co);Oo=o(F_,"CODE",{});var H_=n(Oo);md=c(H_,"string"),H_.forEach(t),F_.forEach(t),_d=m(Fs),So=o(Fs,"TD",{});var A_=n(So);Io=o(A_,"CODE",{});var P_=n(Io);vd=c(P_,"sdt-calendar-colors"),P_.forEach(t),A_.forEach(t),gd=m(Fs),_l=o(Fs,"TD",{});var rm=n(_l);Ed=c(rm,"css class defining "),vl=o(rm,"A",{href:!0});var L_=n(vl);kd=c(L_,"css variables"),L_.forEach(t),rm.forEach(t),Fs.forEach(t),yd=m(te),Lt=o(te,"TR",{});var Hs=n(Lt);Fo=o(Hs,"TD",{});var B_=n(Fo);bd=c(B_,"mode"),B_.forEach(t),Dd=m(Hs),Ho=o(Hs,"TD",{});var Y_=n(Ho);Ao=o(Y_,"CODE",{});var N_=n(Ao);wd=c(N_,"string"),N_.forEach(t),Y_.forEach(t),Td=m(Hs),Po=o(Hs,"TD",{});var V_=n(Po);Lo=o(V_,"CODE",{});var R_=n(Lo);Md=c(R_,"auto"),R_.forEach(t),V_.forEach(t),Cd=m(Hs),Bo=o(Hs,"TD",{});var z_=n(Bo);Od=c(z_,"restrict picker\u2019s mode. Possible values: `auto"),z_.forEach(t),Hs.forEach(t),Sd=m(te),Bt=o(te,"TR",{});var As=n(Bt);Yo=o(As,"TD",{});var U_=n(Yo);Id=c(U_,"format"),U_.forEach(t),Fd=m(As),No=o(As,"TD",{});var q_=n(No);Vo=o(q_,"CODE",{});var j_=n(Vo);Hd=c(j_,"string"),j_.forEach(t),q_.forEach(t),Ad=m(As),Ro=o(As,"TD",{});var G_=n(Ro);zo=o(G_,"CODE",{});var J_=n(zo);Pd=c(J_,"yyyy-mm-dd"),J_.forEach(t),G_.forEach(t),Ld=m(As),Ln=o(As,"TD",{});var ed=n(Ln);Bd=c(ed,"Format of entered date/time. See "),gl=o(ed,"A",{href:!0});var W_=n(gl);Yd=c(W_,"format settings"),W_.forEach(t),Nd=c(ed," for available options"),ed.forEach(t),As.forEach(t),Vd=m(te),Yt=o(te,"TR",{});var Ps=n(Yt);Uo=o(Ps,"TD",{});var Z_=n(Uo);Rd=c(Z_,"weekStart"),Z_.forEach(t),zd=m(Ps),qo=o(Ps,"TD",{});var X_=n(qo);jo=o(X_,"CODE",{});var Q_=n(jo);Ud=c(Q_,"number"),Q_.forEach(t),X_.forEach(t),qd=m(Ps),Go=o(Ps,"TD",{});var K_=n(Go);Jo=o(K_,"CODE",{});var x_=n(Jo);jd=c(x_,"1"),x_.forEach(t),K_.forEach(t),Gd=m(Ps),_s=o(Ps,"TD",{});var vc=n(_s);Jd=c(vc,"number in range "),Wo=o(vc,"CODE",{});var $_=n(Wo);Wd=c($_,"0-6"),$_.forEach(t),Zd=c(vc," to select first day of the week. Sunday is "),Zo=o(vc,"CODE",{});var ev=n(Zo);Xd=c(ev,"0"),ev.forEach(t),vc.forEach(t),Ps.forEach(t),Qd=m(te),Nt=o(te,"TR",{});var Ls=n(Nt);Xo=o(Ls,"TD",{});var tv=n(Xo);Kd=c(tv,"inputClasses"),tv.forEach(t),xd=m(Ls),Qo=o(Ls,"TD",{});var av=n(Qo);Ko=o(av,"CODE",{});var sv=n(Ko);$d=c(sv,"string"),sv.forEach(t),av.forEach(t),eu=m(Ls),xo=o(Ls,"TD",{});var nv=n(xo);tu=c(nv,"\u201C"),nv.forEach(t),au=m(Ls),$o=o(Ls,"TD",{});var lv=n($o);su=c(lv,"input css class string"),lv.forEach(t),Ls.forEach(t),nu=m(te),Vt=o(te,"TR",{});var Bs=n(Vt);er=o(Bs,"TD",{});var ov=n(er);lu=c(ov,"todayBtnClasses"),ov.forEach(t),ou=m(Bs),tr=o(Bs,"TD",{});var rv=n(tr);ar=o(rv,"CODE",{});var iv=n(ar);ru=c(iv,"string"),iv.forEach(t),rv.forEach(t),iu=m(Bs),sr=o(Bs,"TD",{});var cv=n(sr);nr=o(cv,"CODE",{});var dv=n(nr);cu=c(dv,"sdt-action-btn sdt-today-btn"),dv.forEach(t),cv.forEach(t),du=m(Bs),lr=o(Bs,"TD",{});var uv=n(lr);uu=c(uv,"today button css classes"),uv.forEach(t),Bs.forEach(t),fu=m(te),Rt=o(te,"TR",{});var Ys=n(Rt);or=o(Ys,"TD",{});var fv=n(or);pu=c(fv,"clearBtnClasses"),fv.forEach(t),hu=m(Ys),rr=o(Ys,"TD",{});var pv=n(rr);ir=o(pv,"CODE",{});var hv=n(ir);mu=c(hv,"string"),hv.forEach(t),pv.forEach(t),_u=m(Ys),cr=o(Ys,"TD",{});var mv=n(cr);dr=o(mv,"CODE",{});var _v=n(dr);vu=c(_v,"sdt-action-btn sdt-clear-btn"),_v.forEach(t),mv.forEach(t),gu=m(Ys),ur=o(Ys,"TD",{});var vv=n(ur);Eu=c(vv,"clear button css classes"),vv.forEach(t),Ys.forEach(t),ku=m(te),zt=o(te,"TR",{});var Ns=n(zt);fr=o(Ns,"TD",{});var gv=n(fr);yu=c(gv,"todayBtn"),gv.forEach(t),bu=m(Ns),pr=o(Ns,"TD",{});var Ev=n(pr);hr=o(Ev,"CODE",{});var kv=n(hr);Du=c(kv,"bool"),kv.forEach(t),Ev.forEach(t),wu=m(Ns),mr=o(Ns,"TD",{});var yv=n(mr);_r=o(yv,"CODE",{});var bv=n(_r);Tu=c(bv,"true"),bv.forEach(t),yv.forEach(t),Mu=m(Ns),vr=o(Ns,"TD",{});var Dv=n(vr);Cu=c(Dv,"Show today button"),Dv.forEach(t),Ns.forEach(t),Ou=m(te),Ut=o(te,"TR",{});var Vs=n(Ut);gr=o(Vs,"TD",{});var wv=n(gr);Su=c(wv,"clearBtn"),wv.forEach(t),Iu=m(Vs),Er=o(Vs,"TD",{});var Tv=n(Er);kr=o(Tv,"CODE",{});var Mv=n(kr);Fu=c(Mv,"bool"),Mv.forEach(t),Tv.forEach(t),Hu=m(Vs),yr=o(Vs,"TD",{});var Cv=n(yr);br=o(Cv,"CODE",{});var Ov=n(br);Au=c(Ov,"true"),Ov.forEach(t),Cv.forEach(t),Pu=m(Vs),Dr=o(Vs,"TD",{});var Sv=n(Dr);Lu=c(Sv,"Show clear button"),Sv.forEach(t),Vs.forEach(t),Bu=m(te),qt=o(te,"TR",{});var Rs=n(qt);wr=o(Rs,"TD",{});var Iv=n(wr);Yu=c(Iv,"clearToggle"),Iv.forEach(t),Nu=m(Rs),Tr=o(Rs,"TD",{});var Fv=n(Tr);Mr=o(Fv,"CODE",{});var Hv=n(Mr);Vu=c(Hv,"bool"),Hv.forEach(t),Fv.forEach(t),Ru=m(Rs),Cr=o(Rs,"TD",{});var Av=n(Cr);Or=o(Av,"CODE",{});var Pv=n(Or);zu=c(Pv,"true"),Pv.forEach(t),Av.forEach(t),Uu=m(Rs),Sr=o(Rs,"TD",{});var Lv=n(Sr);qu=c(Lv,"Clear current selection by clicking the same date"),Lv.forEach(t),Rs.forEach(t),ju=m(te),jt=o(te,"TR",{});var zs=n(jt);Ir=o(zs,"TD",{});var Bv=n(Ir);Gu=c(Bv,"autoclose"),Bv.forEach(t),Ju=m(zs),Fr=o(zs,"TD",{});var Yv=n(Fr);Hr=o(Yv,"CODE",{});var Nv=n(Hr);Wu=c(Nv,"bool"),Nv.forEach(t),Yv.forEach(t),Zu=m(zs),Ar=o(zs,"TD",{});var Vv=n(Ar);Pr=o(Vv,"CODE",{});var Rv=n(Pr);Xu=c(Rv,"true"),Rv.forEach(t),Vv.forEach(t),Qu=m(zs),Bn=o(zs,"TD",{});var td=n(Bn);Ku=c(td,"Hides picker after selection is done. If mode includes "),Lr=o(td,"EM",{});var zv=n(Lr);xu=c(zv,"time picker"),zv.forEach(t),$u=c(td,", it closes automatically only after minute selection"),td.forEach(t),zs.forEach(t),ef=m(te),Gt=o(te,"TR",{});var Us=n(Gt);Br=o(Us,"TD",{});var Uv=n(Br);tf=c(Uv,"i18n"),Uv.forEach(t),af=m(Us),Yr=o(Us,"TD",{});var qv=n(Yr);Nr=o(qv,"CODE",{});var jv=n(Nr);sf=c(jv,"object"),jv.forEach(t),qv.forEach(t),nf=m(Us),Vr=o(Us,"TD",{});var Gv=n(Vr);Rr=o(Gv,"CODE",{});var Jv=n(Rr);lf=c(Jv,"en"),Jv.forEach(t),Gv.forEach(t),of=m(Us),zr=o(Us,"TD",{});var Wv=n(zr);rf=c(Wv,"localization object, english is by default"),Wv.forEach(t),Us.forEach(t),cf=m(te),Jt=o(te,"TR",{});var qs=n(Jt);Ur=o(qs,"TD",{});var Zv=n(Ur);df=c(Zv,"positionFn"),Zv.forEach(t),uf=m(qs),qr=o(qs,"TD",{});var Xv=n(qr);jr=o(Xv,"CODE",{});var Qv=n(jr);ff=c(Qv,"function"),Qv.forEach(t),Xv.forEach(t),pf=m(qs),Gr=o(qs,"TD",{});var Kv=n(Gr);Jr=o(Kv,"EM",{});var xv=n(Jr);Wr=o(xv,"CODE",{});var $v=n(Wr);hf=c($v,"internal"),$v.forEach(t),xv.forEach(t),Kv.forEach(t),mf=m(qs),ze=o(qs,"TD",{});var vt=n(ze);_f=c(vt,"function used to position picker. Used as action. Acceps following object: "),Zr=o(vt,"CODE",{});var e0=n(Zr);vf=c(e0,"{ inputEl, visible}"),e0.forEach(t),gf=c(vt,", where "),Xr=o(vt,"CODE",{});var t0=n(Xr);Ef=c(t0,"visible"),t0.forEach(t),kf=c(vt," is "),Qr=o(vt,"CODE",{});var a0=n(Qr);yf=c(a0,"visible"),a0.forEach(t),bf=c(vt," parameter & "),Kr=o(vt,"CODE",{});var s0=n(Kr);Df=c(s0,"inputEl"),s0.forEach(t),wf=c(vt," is underlying "),xr=o(vt,"CODE",{});var n0=n(xr);Tf=c(n0,""),n0.forEach(t),Mf=c(vt," element"),vt.forEach(t),qs.forEach(t),Cf=m(te),Wt=o(te,"TR",{});var js=n(Wt);$r=o(js,"TD",{});var l0=n($r);Of=c(l0,"validatorAction"),l0.forEach(t),Sf=m(js),ei=o(js,"TD",{});var o0=n(ei);ti=o(o0,"CODE",{});var r0=n(ti);If=c(r0,"array"),r0.forEach(t),o0.forEach(t),Ff=m(js),ai=o(js,"TD",{});var i0=n(ai);si=o(i0,"CODE",{});var c0=n(si);Hf=c(c0,"null"),c0.forEach(t),i0.forEach(t),Af=m(js),Ga=o(js,"TD",{});var vo=n(Ga);Pf=c(vo,"Bind validator action for inner "),ni=o(vo,"CODE",{});var d0=n(ni);Lf=c(d0,""),d0.forEach(t),Bf=c(vo," element. Designed to be used with "),li=o(vo,"CODE",{});var u0=n(li);Yf=c(u0,"svelte-use-form"),u0.forEach(t),Nf=c(vo,"."),vo.forEach(t),js.forEach(t),te.forEach(t),Xc.forEach(t),Tc=m(y),Zt=o(y,"P",{});var Jn=n(Zt);Vf=c(Jn,"Note: Properties starting by "),oi=o(Jn,"CODE",{});var f0=n(oi);Rf=c(f0,"theme"),f0.forEach(t),zf=c(Jn," to "),ri=o(Jn,"CODE",{});var p0=n(ri);Uf=c(p0,"i18n"),p0.forEach(t),qf=c(Jn," are configurable globally by overriding it in globally available "),ii=o(Jn,"CODE",{});var h0=n(ii);jf=c(h0,"config"),h0.forEach(t),Jn.forEach(t),Mc=m(y),Yn=o(y,"PRE",{class:!0});var bE=n(Yn);bE.forEach(t),Cc=m(y),El=o(y,"H3",{});var m0=n(El);Gf=c(m0,"Format settings"),m0.forEach(t),Oc=m(y),Ye=o(y,"P",{});var gt=n(Ye);Jf=c(gt,"Date format can be defined under "),ci=o(gt,"CODE",{});var _0=n(ci);Wf=c(_0,"formatType"),_0.forEach(t),Zf=c(gt," property. It has two options: "),di=o(gt,"CODE",{});var v0=n(di);Xf=c(v0,"standard"),v0.forEach(t),Qf=c(gt," and "),ui=o(gt,"CODE",{});var g0=n(ui);Kf=c(g0,"php"),g0.forEach(t),xf=c(gt,`, where +`),fi=o(gt,"CODE",{});var E0=n(fi);$f=c(E0,"standard"),E0.forEach(t),ep=c(gt," is the "),pi=o(gt,"EM",{});var k0=n(pi);tp=c(k0,"default"),k0.forEach(t),ap=c(gt,"."),gt.forEach(t),Sc=m(y),Nn=o(y,"H4",{});var im=n(Nn);hi=o(im,"CODE",{});var y0=n(hi);sp=c(y0,"standard"),y0.forEach(t),np=c(im," format settings:"),im.forEach(t),Ic=m(y),X=o(y,"UL",{});var le=n(X);kl=o(le,"LI",{});var cm=n(kl);mi=o(cm,"CODE",{});var b0=n(mi);lp=c(b0,"d"),b0.forEach(t),op=c(cm," : day of the month without leading zeros"),cm.forEach(t),rp=m(le),yl=o(le,"LI",{});var dm=n(yl);_i=o(dm,"CODE",{});var D0=n(_i);ip=c(D0,"dd"),D0.forEach(t),cp=c(dm," : day of the month, 2 digits with leading zeros"),dm.forEach(t),dp=m(le),bl=o(le,"LI",{});var um=n(bl);vi=o(um,"CODE",{});var w0=n(vi);up=c(w0,"D"),w0.forEach(t),fp=c(um," : short textual representation of a weekday (i18n.daysShort)"),um.forEach(t),pp=m(le),Dl=o(le,"LI",{});var fm=n(Dl);gi=o(fm,"CODE",{});var T0=n(gi);hp=c(T0,"DD"),T0.forEach(t),mp=c(fm," : long textual representation of a weekday (i18n.days)"),fm.forEach(t),_p=m(le),wl=o(le,"LI",{});var pm=n(wl);Ei=o(pm,"CODE",{});var M0=n(Ei);vp=c(M0,"S"),M0.forEach(t),gp=c(pm," : English ordinal suffix for the day of the month, (i18n.suffix)"),pm.forEach(t),Ep=m(le),Tl=o(le,"LI",{});var hm=n(Tl);ki=o(hm,"CODE",{});var C0=n(ki);kp=c(C0,"m"),C0.forEach(t),yp=c(hm," : numeric representation of month without leading zeros"),hm.forEach(t),bp=m(le),Ml=o(le,"LI",{});var mm=n(Ml);yi=o(mm,"CODE",{});var O0=n(yi);Dp=c(O0,"mm"),O0.forEach(t),wp=c(mm," : numeric representation of the month, 2 digits with leading zeros"),mm.forEach(t),Tp=m(le),Cl=o(le,"LI",{});var _m=n(Cl);bi=o(_m,"CODE",{});var S0=n(bi);Mp=c(S0,"M"),S0.forEach(t),Cp=c(_m," : short textual representation of a month, three letters (i18n.monthsShort)"),_m.forEach(t),Op=m(le),Ol=o(le,"LI",{});var vm=n(Ol);Di=o(vm,"CODE",{});var I0=n(Di);Sp=c(I0,"MM"),I0.forEach(t),Ip=c(vm," : full textual representation of a month, such as January or March (i18n.months)"),vm.forEach(t),Fp=m(le),Sl=o(le,"LI",{});var gm=n(Sl);wi=o(gm,"CODE",{});var F0=n(wi);Hp=c(F0,"yy"),F0.forEach(t),Ap=c(gm," : two digit representation of a year"),gm.forEach(t),Pp=m(le),Il=o(le,"LI",{});var Em=n(Il);Ti=o(Em,"CODE",{});var H0=n(Ti);Lp=c(H0,"yyyy"),H0.forEach(t),Bp=c(Em," : full numeric representation of a year, 4 digits"),Em.forEach(t),Yp=m(le),Fl=o(le,"LI",{});var km=n(Fl);Mi=o(km,"CODE",{});var A0=n(Mi);Np=c(A0,"h"),A0.forEach(t),Vp=c(km," : hour without leading zeros - 24-hour format"),km.forEach(t),Rp=m(le),Hl=o(le,"LI",{});var ym=n(Hl);Ci=o(ym,"CODE",{});var P0=n(Ci);zp=c(P0,"hh"),P0.forEach(t),Up=c(ym," : hour, 2 digits with leading zeros - 24-hour format"),ym.forEach(t),qp=m(le),Al=o(le,"LI",{});var bm=n(Al);Oi=o(bm,"CODE",{});var L0=n(Oi);jp=c(L0,"H"),L0.forEach(t),Gp=c(bm," : hour without leading zeros - 12-hour format"),bm.forEach(t),Jp=m(le),Pl=o(le,"LI",{});var Dm=n(Pl);Si=o(Dm,"CODE",{});var B0=n(Si);Wp=c(B0,"HH"),B0.forEach(t),Zp=c(Dm," : hour, 2 digits with leading zeros - 12-hour format"),Dm.forEach(t),Xp=m(le),Ll=o(le,"LI",{});var wm=n(Ll);Ii=o(wm,"CODE",{});var Y0=n(Ii);Qp=c(Y0,"i"),Y0.forEach(t),Kp=c(wm," : minutes, 2 digits with leading zeros"),wm.forEach(t),xp=m(le),Vn=o(le,"LI",{});var ad=n(Vn);Fi=o(ad,"CODE",{});var N0=n(Fi);$p=c(N0,"ii"),N0.forEach(t),eh=c(ad," : alias for "),Hi=o(ad,"CODE",{});var V0=n(Hi);th=c(V0,"i"),V0.forEach(t),ad.forEach(t),ah=m(le),Bl=o(le,"LI",{});var Tm=n(Bl);Ai=o(Tm,"CODE",{});var R0=n(Ai);sh=c(R0,"s"),R0.forEach(t),nh=c(Tm," : seconds, 2 digits with leading zeros"),Tm.forEach(t),lh=m(le),Rn=o(le,"LI",{});var sd=n(Rn);Pi=o(sd,"CODE",{});var z0=n(Pi);oh=c(z0,"ss"),z0.forEach(t),rh=c(sd," : alias for "),Li=o(sd,"CODE",{});var U0=n(Li);ih=c(U0,"s"),U0.forEach(t),sd.forEach(t),ch=m(le),Yl=o(le,"LI",{});var Mm=n(Yl);Bi=o(Mm,"CODE",{});var q0=n(Bi);dh=c(q0,"p"),q0.forEach(t),uh=c(Mm," : meridian in lower case (\u2018am\u2019 or \u2018pm\u2019) - according to locale file (i18n.meridiem)"),Mm.forEach(t),fh=m(le),Nl=o(le,"LI",{});var Cm=n(Nl);Yi=o(Cm,"CODE",{});var j0=n(Yi);ph=c(j0,"P"),j0.forEach(t),hh=c(Cm," : meridian in upper case (\u2018AM\u2019 or \u2018PM\u2019) - according to locale file (i18n.meridiem)"),Cm.forEach(t),mh=m(le),vs=o(le,"LI",{});var gc=n(vs);Ni=o(gc,"CODE",{});var G0=n(Ni);_h=c(G0,"t"),G0.forEach(t),vh=c(gc," : timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use "),Vi=o(gc,"CODE",{});var J0=n(Vi);gh=c(J0,"php"),J0.forEach(t),Eh=c(gc," format"),gc.forEach(t),le.forEach(t),Fc=m(y),zn=o(y,"H4",{});var Om=n(zn);Ri=o(Om,"CODE",{});var W0=n(Ri);kh=c(W0,"php"),W0.forEach(t),yh=c(Om," format settings:"),Om.forEach(t),Hc=m(y),ee=o(y,"UL",{});var ie=n(ee);Vl=o(ie,"LI",{});var Sm=n(Vl);zi=o(Sm,"CODE",{});var Z0=n(zi);bh=c(Z0,"d"),Z0.forEach(t),Dh=c(Sm," : Day of the month, 2 digits with leading zeros 01 to 31"),Sm.forEach(t),wh=m(ie),Rl=o(ie,"LI",{});var Im=n(Rl);Ui=o(Im,"CODE",{});var X0=n(Ui);Th=c(X0,"D"),X0.forEach(t),Mh=c(Im," : A textual representation of a day, three letters Mon through Sun"),Im.forEach(t),Ch=m(ie),zl=o(ie,"LI",{});var Fm=n(zl);qi=o(Fm,"CODE",{});var Q0=n(qi);Oh=c(Q0,"j"),Q0.forEach(t),Sh=c(Fm," : Day of the month without leading zeros 1 to 31"),Fm.forEach(t),Ih=m(ie),Ul=o(ie,"LI",{});var Hm=n(Ul);ji=o(Hm,"CODE",{});var K0=n(ji);Fh=c(K0,"l"),K0.forEach(t),Hh=c(Hm," : A full textual representation of the day of the week Sunday through Saturday"),Hm.forEach(t),Ah=m(ie),ql=o(ie,"LI",{});var Am=n(ql);Gi=o(Am,"CODE",{});var x0=n(Gi);Ph=c(x0,"N"),x0.forEach(t),Lh=c(Am," : ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday)"),Am.forEach(t),Bh=m(ie),jl=o(ie,"LI",{});var Pm=n(jl);Ji=o(Pm,"CODE",{});var $0=n(Ji);Yh=c($0,"S"),$0.forEach(t),Nh=c(Pm," : English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j"),Pm.forEach(t),Vh=m(ie),Gl=o(ie,"LI",{});var Lm=n(Gl);Wi=o(Lm,"CODE",{});var eg=n(Wi);Rh=c(eg,"F"),eg.forEach(t),zh=c(Lm," : A full textual representation of a month, such as January or March January through December"),Lm.forEach(t),Uh=m(ie),Jl=o(ie,"LI",{});var Bm=n(Jl);Zi=o(Bm,"CODE",{});var tg=n(Zi);qh=c(tg,"m"),tg.forEach(t),jh=c(Bm," : Numeric representation of a month, with leading zeros 01 through 12"),Bm.forEach(t),Gh=m(ie),Wl=o(ie,"LI",{});var Ym=n(Wl);Xi=o(Ym,"CODE",{});var ag=n(Xi);Jh=c(ag,"M"),ag.forEach(t),Wh=c(Ym," : A short textual representation of a month, three letters Jan through Dec"),Ym.forEach(t),Zh=m(ie),Zl=o(ie,"LI",{});var Nm=n(Zl);Qi=o(Nm,"CODE",{});var sg=n(Qi);Xh=c(sg,"n"),sg.forEach(t),Qh=c(Nm," : Numeric representation of a month, without leading zeros 1 through 12"),Nm.forEach(t),Kh=m(ie),Xl=o(ie,"LI",{});var Vm=n(Xl);Ki=o(Vm,"CODE",{});var ng=n(Ki);xh=c(ng,"Y"),ng.forEach(t),$h=c(Vm," : A full numeric representation of a year, at least 4 digits, with - for years BCE. Examples: -0055, 0787, 1999, 2003"),Vm.forEach(t),e1=m(ie),Ql=o(ie,"LI",{});var Rm=n(Ql);xi=o(Rm,"CODE",{});var lg=n(xi);t1=c(lg,"y"),lg.forEach(t),a1=c(Rm," : A two digit representation of a year Examples: 99 or 03"),Rm.forEach(t),s1=m(ie),Kl=o(ie,"LI",{});var zm=n(Kl);$i=o(zm,"CODE",{});var og=n($i);n1=c(og,"a"),og.forEach(t),l1=c(zm," : Lowercase Ante meridiem and Post meridiem am or pm"),zm.forEach(t),o1=m(ie),xl=o(ie,"LI",{});var Um=n(xl);ec=o(Um,"CODE",{});var rg=n(ec);r1=c(rg,"A"),rg.forEach(t),i1=c(Um," : Uppercase Ante meridiem and Post meridiem AM or PM"),Um.forEach(t),c1=m(ie),$l=o(ie,"LI",{});var qm=n($l);tc=o(qm,"CODE",{});var ig=n(tc);d1=c(ig,"g"),ig.forEach(t),u1=c(qm," : 12-hour format of an hour without leading zeros 1 through 12"),qm.forEach(t),f1=m(ie),eo=o(ie,"LI",{});var jm=n(eo);ac=o(jm,"CODE",{});var cg=n(ac);p1=c(cg,"G"),cg.forEach(t),h1=c(jm," : 24-hour format of an hour without leading zeros 0 through 23"),jm.forEach(t),m1=m(ie),to=o(ie,"LI",{});var Gm=n(to);sc=o(Gm,"CODE",{});var dg=n(sc);_1=c(dg,"h"),dg.forEach(t),v1=c(Gm," : 12-hour format of an hour with leading zeros 01 through 12"),Gm.forEach(t),g1=m(ie),ao=o(ie,"LI",{});var Jm=n(ao);nc=o(Jm,"CODE",{});var ug=n(nc);E1=c(ug,"H"),ug.forEach(t),k1=c(Jm," : 24-hour format of an hour with leading zeros 00 through 23"),Jm.forEach(t),y1=m(ie),so=o(ie,"LI",{});var Wm=n(so);lc=o(Wm,"CODE",{});var fg=n(lc);b1=c(fg,"i"),fg.forEach(t),D1=c(Wm," : Minutes with leading zeros 00 to 59"),Wm.forEach(t),w1=m(ie),no=o(ie,"LI",{});var Zm=n(no);oc=o(Zm,"CODE",{});var pg=n(oc);T1=c(pg,"s"),pg.forEach(t),M1=c(Zm," : Seconds with leading zeros 00 through 59"),Zm.forEach(t),C1=m(ie),gs=o(ie,"LI",{});var Ec=n(gs);rc=o(Ec,"CODE",{});var hg=n(rc);O1=c(hg,"U"),hg.forEach(t),S1=c(Ec," : timestamp in seconds. For timestamp with miliseconds use "),ic=o(Ec,"CODE",{});var mg=n(ic);I1=c(mg,"standard"),mg.forEach(t),F1=c(Ec," format"),Ec.forEach(t),ie.forEach(t),Ac=m(y),lo=o(y,"H3",{});var _g=n(lo);H1=c(_g,"CSS variables"),_g.forEach(t),Pc=m(y),Un=o(y,"PRE",{class:!0});var DE=n(Un);DE.forEach(t),Lc=m(y),oo=o(y,"H2",{});var vg=n(oo);A1=c(vg,"\u{1F5EF}\uFE0F Events"),vg.forEach(t),Bc=m(y),_t=o(y,"P",{});var Gs=n(_t);P1=c(Gs,"Component emits "),cc=o(Gs,"CODE",{});var gg=n(cc);L1=c(gg,"input"),gg.forEach(t),B1=c(Gs,", "),dc=o(Gs,"CODE",{});var Eg=n(dc);Y1=c(Eg,"change"),Eg.forEach(t),N1=c(Gs," and "),uc=o(Gs,"CODE",{});var kg=n(uc);V1=c(kg,"blur"),kg.forEach(t),R1=c(Gs," events."),Gs.forEach(t),Yc=m(y),Es=o(y,"UL",{});var nd=n(Es);ks=o(nd,"LI",{});var kc=n(ks);fc=o(kc,"CODE",{});var yg=n(fc);z1=c(yg,"input"),yg.forEach(t),U1=c(kc," is dispatched on "),pc=o(kc,"CODE",{});var bg=n(pc);q1=c(bg,""),bg.forEach(t),j1=c(kc," element therefore you can get current value like from every native event:"),kc.forEach(t),G1=m(nd),ha=o(nd,"LI",{});var Wn=n(ha);hc=o(Wn,"CODE",{});var Dg=n(hc);J1=c(Dg,"change"),Dg.forEach(t),W1=c(Wn," event is using Svelte\u2019s "),mc=o(Wn,"CODE",{});var wg=n(mc);Z1=c(wg,"eventDispatcher"),wg.forEach(t),X1=c(Wn,", therefore triggered event contains "),_c=o(Wn,"CODE",{});var Tg=n(_c);Q1=c(Tg,"detail"),Tg.forEach(t),K1=c(Wn," property"),Wn.forEach(t),nd.forEach(t),Nc=m(y),qn=o(y,"PRE",{class:!0});var wE=n(qn);wE.forEach(t),Vc=m(y),ro=o(y,"H2",{});var Mg=n(ro);x1=c(Mg,"\u{1F310} Localization"),Mg.forEach(t),Rc=m(y),io=o(y,"P",{});var Cg=n(io);$1=c(Cg,"Localization file has following structure."),Cg.forEach(t),zc=m(y),jn=o(y,"PRE",{class:!0});var TE=n(jn);TE.forEach(t),Uc=m(y),co=o(y,"P",{});var Og=n(co);em=c(Og,"PRs for extending built-in localization are welcome \u{1F973}"),Og.forEach(t),qc=m(y),uo=o(y,"H2",{});var Sg=n(uo);tm=c(Sg,"\u{1F3C6} Thanks to:"),Sg.forEach(t),jc=m(y),fo=o(y,"UL",{});var Ig=n(fo);po=o(Ig,"LI",{});var Xm=n(po);Gn=o(Xm,"A",{href:!0,rel:!0});var Fg=n(Gn);am=c(Fg,"Bootstrap datepicker"),Fg.forEach(t),sm=c(Xm," for some internal date and format handling"),Xm.forEach(t),Ig.forEach(t),Gc=m(y),ho=o(y,"H2",{});var Hg=n(ho);nm=c(Hg,"Licence:"),Hg.forEach(t),Jc=m(y),mo=o(y,"P",{});var Ag=n(mo);lm=c(Ag,"MIT"),Ag.forEach(t),this.h()},h(){n2(u.src,f="http://img.shields.io/npm/v/svelty-picker.svg?style=flat")||b(u,"src",f),b(u,"alt","NPM version"),b(d,"href","https://www.npmjs.org/package/svelty-picker"),b(d,"rel","nofollow"),n2(Ue.src,$e="https://raw.githubusercontent.com/mskocik/svelty-picker/main/docs/screenshot.png")||b(Ue,"src",$e),b(Ue,"alt","screenshot"),b(et,"class","language-undefined"),b(Fe,"class","language-svelte"),b(kt,"href","https://svelte.dev/repl/98fd362aad6049f4b38606820baff0b0?version=3.44.1"),b(kt,"rel","nofollow"),b(vl,"href","#css-variables"),b(gl,"href","#format-settings"),b(Yn,"class","language-js"),b(Un,"class","language-css"),b(qn,"class","language-js"),b(jn,"class","language-js"),b(Gn,"href","https://github.com/smalot/bootstrap-datetimepicker/blob/master/js/bootstrap-datetimepicker.js"),b(Gn,"rel","nofollow")},m(y,Y){F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t(ta),y&&t(Fe),y&&t(ye),y&&t(be),y&&t(Ja),y&&t(Pe),y&&t(Wa),y&&t(Ee),y&&t(Tc),y&&t(Zt),y&&t(Mc),y&&t(Yn),y&&t(Cc),y&&t(El),y&&t(Oc),y&&t(Ye),y&&t(Sc),y&&t(Nn),y&&t(Ic),y&&t(X),y&&t(Fc),y&&t(zn),y&&t(Hc),y&&t(ee),y&&t(Ac),y&&t(lo),y&&t(Pc),y&&t(Un),y&&t(Lc),y&&t(oo),y&&t(Bc),y&&t(_t),y&&t(Yc),y&&t(Es),y&&t(Nc),y&&t(qn),y&&t(Vc),y&&t(ro),y&&t(Rc),y&&t(io),y&&t(zc),y&&t(jn),y&&t(Uc),y&&t(co),y&&t(qc),y&&t(uo),y&&t(jc),y&&t(fo),y&&t(Gc),y&&t(ho),y&&t(Jc),y&&t(mo)}}}class AE extends yo{constructor(a){super(),bo(this,a,null,HE,Do,{})}}const PE={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"},LE={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,inputClasses:"",todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:PE};function BE(r){const a=r-1;return a*a*a+1}function Xs(r,{delay:a=0,duration:s=400,easing:d=ME}={}){const u=+getComputedStyle(r).opacity;return{delay:a,duration:s,easing:d,css:f=>`opacity: ${f*u}`}}const id=0,wc=1,bc=2;function ld(r,a,s,d,u){if(s===id){const j=[];let V=[],U=r.getFullYear()-r.getFullYear()%10-1;for(let Z=0;Z<12;Z++)V.push(U+Z),V.length===4&&(j.push(V),V=[]);let ce=null;return a||(a=new Date),a.getFullYear()>=U&&(ce=a.getFullYear()%U),{years:j,todayMark:-1,nextFrom:11,prevTo:1,selectionMark:ce}}if(s===wc){let P=[],B=[],C=12,j=24;const V=r.toISOString().split("T")[0].substring(0,8),U=new Date(V+"01 00:00:00"),ce=U.getFullYear()-1;U.setFullYear(ce);let Z=0;for(let Q=0;Q<3;Q++){for(let G=0;G<12;G++)U.setMonth(G),B.push(d.monthsShort[G%12]),B.length===4&&(P.push(B),B=[]);U.setFullYear(U.getFullYear()+1)}let q=null;return a||(a=new Date),a.getFullYear()-ce>=0&&a.getFullYear()-ce<=2&&(q=a.getMonth()+(a.getFullYear()-ce||0)*12),{months:P,todayMark:Z,nextFrom:j,prevTo:C,selectionMark:q}}let f=r||new Date,g=f.getFullYear(),_=f.getMonth();f.getDate(),f.getHours();let v=new Date,p=new Date(g,_-1,28,0,0,0,0),k=i2.getDaysInMonth(p.getFullYear(),p.getMonth());p.setDate(k),p.setDate(k-(p.getDay()-u+7)%7);let E=new Date(p);E.setDate(E.getDate()+42);let T=E.valueOf(),D=[],M=[],R=-1,H=null,J=0,A=42,O=0;for(;p.valueOf()g||p.getFullYear()===g&&p.getMonth()>_)&&(A=O-1),p.setDate(p.getDate()+1),p.getFullYear()===v.getFullYear()&&p.getMonth()===v.getMonth()&&p.getDate()===v.getDate()&&(R=O),!H&&a&&p.getFullYear()===a.getFullYear()&&p.getMonth()===a.getMonth()&&p.getDate()===a.getDate()&&(H=O),M.length===7&&(D.push(M),M=[]);return{grid:D,todayMark:R,prevTo:J,nextFrom:A,selectionMark:H}}function od(r,a){return r<0&&(r=42+r),{x:r%7,y:Math.floor(r/7)}}const i2={isLeapYear:function(r){return r%4===0&&r%100!==0||r%400===0},getDaysInMonth:function(r,a){return[31,i2.isLeapYear(r)?29:28,31,30,31,30,31,31,30,31,30,31][a]}};function Yg(r,a){return r instanceof Date?r.getFullYear()a.getFullYear()||r.getMonth()>a.getMonth()||r.getDate()>=a.getDate():!1}function yc(r,a,s,d){if(r instanceof Date)return r;const u=d==="php"?{date:"Y-m-d",datetime:"Y-m-d H:i",datetime_s:"Y-m-d H:i:s"}:{date:"yyyy-mm-dd",datetime:"yyyy-mm-dd hh:ii",datetime_s:"yyyy-mm-dd hh:ii:ss"};let f;/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(r)?f=Zn.parseFormat(u.date,d):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(r)?f=Zn.parseFormat(u.datetime,d):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(r)?f=Zn.parseFormat(u.datetime_s,d):f=Zn.parseFormat(a,d);const g=r&&r.toString().match(Zn.nonpunctuation)||[];r=new Date,r.setHours(0,0,0,0);const _={},{setters_order:v,setters_map:p}=Zn.setters(d);let k,E;if(g.length!==f.parts.length&&f.parts.includes("S")){const R=g[f.parts.indexOf("S")-1].match(/(\d+)([a-zA-Z]+)/).slice(1,3);g.splice(f.parts.indexOf("S")-1,1,...R)}if(g.length===f.parts.length){for(var T=0,D=f.parts.length;Td.setHours(u),h:(d,u)=>d.setHours(u),HH:(d,u)=>d.setHours(u===12?0:u),H:(d,u)=>d.setHours(u===12?0:u),i:(d,u)=>d.setMinutes(u),s:(d,u)=>d.setSeconds(u),yyyy:(d,u)=>d.setFullYear(u),yy:(d,u)=>d.setFullYear((u<50?2e3:1900)+u),m:(d,u)=>{for(u-=1;u<0;)u+=12;for(u%=12,d.setMonth(u);d.getMonth()!==u;){if(isNaN(d.getMonth()))return d;d.setDate(d.getDate()-1)}return d},d:(d,u)=>d.setDate(u),p:(d,u)=>d.setHours(u===1?d.getHours()+12:d.getHours()),t:(d,u)=>d.setTime(u),mm:()=>{},M:()=>{},MM:()=>{},ii:()=>{},ss:()=>{},dd:()=>{},D:()=>{},DD:()=>{},P:()=>{}},s.mm=s.M=s.MM=s.m,s.ii=s.i,s.ss=s.s,s.dd=s.D=s.DD=s.d,s.P=s.p):(a=["H","G","h","g","i","s","d","D","j","l","N","S","m","M","F","n","Y","yy","p","P","U"],s={H:(d,u)=>d.setHours(u),G:(d,u)=>d.setHours(u),h:(d,u)=>d.setHours(u===12?0:u),g:(d,u)=>d.setHours(u===12?0:u),i:(d,u)=>d.setMinutes(u),s:(d,u)=>d.setSeconds(u),Y:(d,u)=>d.setFullYear(u),yy:(d,u)=>d.setFullYear((u<50?2e3:1900)+u),m:(d,u)=>{for(u-=1;u<0;)u+=12;for(u%=12,d.setMonth(u);d.getMonth()!==u;){if(isNaN(d.getMonth()))return d;d.setDate(d.getDate()-1)}return d},d:(d,u)=>d.setDate(u),a:(d,u)=>d.setHours(u===1?d.getHours()+12:d.getHours()),U:(d,u)=>d.setTime(u*1e3)},s.F=s.M=s.m,s.D=s.j=s.l=s.N=s.d,s.A=s.a),{setters_order:a,setters_map:s}}};function YE(r,{inputEl:a,visible:s,inputRect:d}){if(!s){const f=r.getBoundingClientRect(),g=["position: absolute","z-index: 12250"];g.push(d.x+f.width>window.innerWidth?"right: 1rem":`left: ${d.left}px`),f.height+f.top>window.innerHeight+window.scrollY?g.push("bottom: 1rem"):g.push(`top: ${d.top+d.height+window.scrollY}px`),r.style=g.join(";"),r.hidden=!1,document.body.appendChild(r)}r.hidden=!1;function u(){r.parentNode&&r.parentNode.removeChild(r)}return{destroy:u}}function NE(r,{delay:a=0,duration:s=400,easing:d=BE,start:u=0,end:f=1,opacity:g=0}={}){const _=getComputedStyle(r),v=+_.opacity,p=_.transform==="none"?"":_.transform,k=1-u,E=v*(1-g);return{delay:a,duration:s,easing:d,css:(T,D)=>` + transform: ${p} scale(${f!==1?u+f*D:1-k*D}); + opacity: ${v-E*D}; + `}}function Vg(r,a,s){const d=r.slice();return d[38]=a[s],d[40]=s,d}function Rg(r,a,s){const d=r.slice();return d[41]=a[s],d[43]=s,d}function zg(r,a,s){const d=r.slice();return d[44]=a[s],d}function Ug(r,a,s){const d=r.slice();return d[38]=a[s],d[40]=s,d}function qg(r,a,s){const d=r.slice();return d[48]=a[s],d[43]=s,d}function jg(r,a,s){const d=r.slice();return d[38]=a[s],d[40]=s,d}function Gg(r,a,s){const d=r.slice();return d[51]=a[s],d[43]=s,d}function Jg(r){let a,s,d,u,f,g;return{c(){a=l("button"),s=Ws("svg"),d=Ws("path"),this.h()},l(_){a=o(_,"BUTTON",{class:!0,title:!0});var v=n(a);s=Zs(v,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var p=n(s);d=Zs(p,"path",{"fill-rule":!0,d:!0}),n(d).forEach(t),p.forEach(t),v.forEach(t),this.h()},h(){b(d,"fill-rule","evenodd"),b(d,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),b(s,"class","sdt-svg svelte-1xp8yha"),b(s,"xmlns","http://www.w3.org/2000/svg"),b(s,"viewBox","0 0 16 16"),b(s,"width","16"),b(s,"height","16"),b(a,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-1xp8yha"),b(a,"title",u=r[0].timeView)},m(_,v){F(_,a,v),e(a,s),e(s,d),f||(g=pe(a,"click",$t(r[21])),f=!0)},p(_,v){v[0]&1&&u!==(u=_[0].timeView)&&b(a,"title",u)},d(_){_&&t(a),f=!1,g()}}}function Wg(r){let a,s,d,u,f,g,_,v=r[10].years,p=[];for(let k=0;k{u&&u.end(1),d=cd(s,r[12],{duration:ko,start:r[14],opacity:1}),d.start()}),f=!0)},o(k){d&&d.invalidate(),k&&(u=o2(s,r[12],{duration:ko,end:r[13],start:1})),f=!1},d(k){k&&t(a),Dc(p,k),k&&u&&u.end(),g=!1,_()}}}function Zg(r,a){let s,d,u=a[51]+"",f,g,_,v;function p(){return a[29](a[51])}return{key:r,first:null,c(){s=l("td"),d=l("button"),f=i(u),this.h()},l(k){s=o(k,"TD",{class:!0});var E=n(s);d=o(E,"BUTTON",{class:!0});var T=n(d);f=c(T,u),T.forEach(t),E.forEach(t),this.h()},h(){b(d,"class","std-btn svelte-1xp8yha"),d.disabled=g=a[16](new Date(a[51],a[3].getMonth(),a[3].getDate())),ae(d,"not-current",!a[15](a[40]*4+a[43])),b(s,"class","svelte-1xp8yha"),ae(s,"is-selected",a[40]*4+a[43]===a[10].selectionMark),this.first=s},m(k,E){F(k,s,E),e(s,d),e(d,f),_||(v=pe(d,"click",$t(p)),_=!0)},p(k,E){a=k,E[0]&1024&&u!==(u=a[51]+"")&&ea(f,u),E[0]&1032&&g!==(g=a[16](new Date(a[51],a[3].getMonth(),a[3].getDate())))&&(d.disabled=g),E[0]&33792&&ae(d,"not-current",!a[15](a[40]*4+a[43])),E[0]&1024&&ae(s,"is-selected",a[40]*4+a[43]===a[10].selectionMark)},d(k){k&&t(s),_=!1,v()}}}function Xg(r){let a,s=[],d=new Map,u,f=r[38];const g=_=>_[43];for(let _=0;_{f&&f.end(1),u=cd(s,r[12],{duration:ko,start:r[14],opacity:1}),u.start()}),g=!0)},o(E){u&&u.invalidate(),E&&(f=o2(s,r[12],{duration:ko,end:r[13],start:1})),g=!1},d(E){E&&t(a),Dc(k,E),E&&f&&f.end(),_=!1,Qs(v)}}}function Kg(r,a){let s,d,u=a[48]+"",f,g,_,v;function p(){return a[30](a[48])}return{key:r,first:null,c(){s=l("td"),d=l("button"),f=i(u),this.h()},l(k){s=o(k,"TD",{class:!0});var E=n(s);d=o(E,"BUTTON",{class:!0});var T=n(d);f=c(T,u),T.forEach(t),E.forEach(t),this.h()},h(){b(d,"class","std-btn svelte-1xp8yha"),d.disabled=g=a[16](new Date(a[3].getFullYear(),a[0].monthsShort.indexOf(a[48]),a[3].getDate())),ae(d,"not-current",!a[15](a[40]*4+a[43])),b(s,"class","svelte-1xp8yha"),ae(s,"is-selected",a[40]*4+a[43]===a[10].selectionMark),this.first=s},m(k,E){F(k,s,E),e(s,d),e(d,f),_||(v=pe(d,"click",$t(p)),_=!0)},p(k,E){a=k,E[0]&1024&&u!==(u=a[48]+"")&&ea(f,u),E[0]&1033&&g!==(g=a[16](new Date(a[3].getFullYear(),a[0].monthsShort.indexOf(a[48]),a[3].getDate())))&&(d.disabled=g),E[0]&33792&&ae(d,"not-current",!a[15](a[40]*4+a[43])),E[0]&1024&&ae(s,"is-selected",a[40]*4+a[43]===a[10].selectionMark)},d(k){k&&t(s),_=!1,v()}}}function xg(r){let a,s=[],d=new Map,u,f=r[38];const g=_=>_[43];for(let _=0;_{g&&g.end(1),f=cd(s,r[12],{duration:ko,start:.5,opacity:1}),f.start()}),_=!0)},o(M){f&&f.invalidate(),M&&(g=o2(s,r[12],{duration:ko,start:Math.abs(r[5])})),_=!1},d(M){M&&t(a),Dc(E,M),Dc(D,M),M&&g&&g.end(),v=!1,p()}}}function eE(r){let a,s=r[44]+"",d;return{c(){a=l("th"),d=i(s),this.h()},l(u){a=o(u,"TH",{class:!0});var f=n(a);d=c(f,s),f.forEach(t),this.h()},h(){b(a,"class","sdt-cal-th svelte-1xp8yha")},m(u,f){F(u,a,f),e(a,d)},p(u,f){f[0]&2048&&s!==(s=u[44]+"")&&ea(d,s)},d(u){u&&t(a)}}}function tE(r,a){let s,d,u=a[41].getDate()+"",f,g,_,v;function p(){return a[32](a[41])}return{key:r,first:null,c(){s=l("td"),d=l("button"),f=i(u),this.h()},l(k){s=o(k,"TD",{class:!0});var E=n(s);d=o(E,"BUTTON",{class:!0});var T=n(d);f=c(T,u),T.forEach(t),E.forEach(t),this.h()},h(){b(d,"class","std-btn sdt-btn-day svelte-1xp8yha"),d.disabled=g=a[16](a[41]),ae(d,"not-current",!a[15](a[40]*7+a[43])),b(s,"class","sdt-cal-td svelte-1xp8yha"),ae(s,"sdt-today",a[40]*7+a[43]===a[10].todayMark),ae(s,"is-selected",a[40]*7+a[43]===a[10].selectionMark),this.first=s},m(k,E){F(k,s,E),e(s,d),e(d,f),_||(v=pe(d,"click",$t(p)),_=!0)},p(k,E){a=k,E[0]&1024&&u!==(u=a[41].getDate()+"")&&ea(f,u),E[0]&1024&&g!==(g=a[16](a[41]))&&(d.disabled=g),E[0]&33792&&ae(d,"not-current",!a[15](a[40]*7+a[43])),E[0]&1024&&ae(s,"sdt-today",a[40]*7+a[43]===a[10].todayMark),E[0]&1024&&ae(s,"is-selected",a[40]*7+a[43]===a[10].selectionMark)},d(k){k&&t(s),_=!1,v()}}}function aE(r){let a,s=[],d=new Map,u,f=r[38];const g=_=>_[43];for(let _=0;_{B=null}),Qn()),V[4]===wc?C?(C.p(V,U),U[0]&16&&ve(C,1)):(C=Qg(V),C.c(),ve(C,1),C.m(R,J)):C&&(Xn(),ke(C,1,1,()=>{C=null}),Qn()),V[4]===bc?j?(j.p(V,U),U[0]&16&&ve(j,1)):(j=$g(V),j.c(),ve(j,1),j.m(R,null)):j&&(Xn(),ke(j,1,1,()=>{j=null}),Qn()),U[0]&64&&ae(R,"is-grid",V[6])},i(V){ve(B),ve(C),ve(j)},o(V){ke(B),ke(C),ke(j)},d(V){V&&t(a),P&&P.d(),V&&t(M),V&&t(R),B&&B.d(),C&&C.d(),j&&j.d(),A=!1,Qs(O)}}}let ko=400;const t2=222;function RE(r,a,s){let d,u,f,g,_,v,p,{date:k=null}=a,{startDate:E=null}=a,{endDate:T=null}=a,{weekStart:D=1}=a,{i18n:M}=a,{enableTimeToggle:R=!1}=a;function H(N,x){if(!A){ne({day:new Date});return}let z,se;switch(N){case"PageDown":x=!0;case"ArrowDown":if(x)return J(O.getFullYear(),O.getMonth()+1,1);if(se=_.selectionMark+7,se>=_.nextFrom){const _e=new Date(O.getFullYear(),O.getUTCMonth()+1,28);let de=ld(_e,A,B,M,D);q(1),z=de.selectionMark!==null?{y:Math.floor((de.selectionMark+7)/7),x:(de.selectionMark+7)%7}:{y:(se+7)%70?0:-1),O.getMonth()>0?O.getMonth()-1:11,1),de=ld(_e,A,B,M,D);q(-1),z=de.selectionMark!==null?{x:Math.floor((de.selectionMark-7)/7),y:(de.selectionMark-7)%7}:{x:5,y:se},ne(de.grid[z.x][z.y]);return}z=od(_.selectionMark-7),_.grid[z.y][z.x].getMonth()!==O.getMonth()&&q(-1),ne(_.grid[z.y][z.x]);break;case"ArrowLeft":if(x)return J(O.getFullYear()-1,O.getMonth(),1);z=od(_.selectionMark-1),_.grid[z.y][z.x].getMonth()!==O.getMonth()&&q(-1),ne(_.grid[z.y][z.x]);break;case"ArrowRight":if(x)return J(O.getFullYear()+1,O.getMonth(),1);z=od(_.selectionMark+1),_.grid[z.y][z.x].getMonth()!==O.getMonth()&&q(1),ne(_.grid[z.y][z.x]);break}}function J(N,x,z){let se,_e=O.getDate();do se=new Date(N,x,_e),_e--;while(se.getMonth()===O.getMonth());const de=ld(se,se,B,M,D),$=de.grid[Math.floor(de.selectionMark/7)][de.selectionMark%7];T&&Ng($,T)||E&&Yg($,E)||(q(z),ne($))}let A=k,O=k?new Date(k.valueOf()):new Date;const P=l2();let B=bc,C=-2,j=!1,V=t2,U=null;function ce(N){return _.prevTo<=N&&N<_.nextFrom}function Z(N){return!!(d&&d>N||T&&T<=N)}function q(N){const x=B===id?120:B===wc?12:1;O.setMonth(O.getMonth()+N*x),s(3,O),s(22,k),s(2,A),s(8,U=null),s(7,V=222)}function Q(N){if(B!==wc)return q(N);s(8,U=()=>{q(N)}),s(7,V=N===-1?V-t2:V+t2)}function G(){s(5,C=-1),s(6,j=!0),B&&s(4,B--,B)}function ne(N){switch(s(5,C=1),s(6,j=!0),B){case 0:O.setFullYear(N),s(3,O),s(22,k),s(2,A);break;case 1:O.setMonth(M.monthsShort.indexOf(N)),s(3,O),s(22,k),s(2,A);break;case 2:if(E&&!Ng(N,E)||T&&!Yg(N,T))return;const x=new Date(N.getFullYear(),N.getMonth(),N.getDate());A&&(x.setMinutes(A.getMinutes()),x.setHours(A.getHours())),s(2,A=x),P("date",A);break}BQ(-1),L=()=>Q(1),w=N=>{ne(N)},S=N=>{ne(N)},ue=()=>U&&U(),me=N=>{ne(N)};return r.$$set=N=>{"date"in N&&s(22,k=N.date),"startDate"in N&&s(23,E=N.startDate),"endDate"in N&&s(24,T=N.endDate),"weekStart"in N&&s(25,D=N.weekStart),"i18n"in N&&s(0,M=N.i18n),"enableTimeToggle"in N&&s(1,R=N.enableTimeToggle)},r.$$.update=()=>{r.$$.dirty[0]&8388608&&(d=E?new Date(E.getFullYear(),E.getMonth(),E.getDate(),0,0,0,0):null),r.$$.dirty[0]&4194308&&k!==A&&(s(2,A=k),k&&s(3,O=new Date(k.valueOf())),s(5,C=1),s(6,j=!0),s(4,B=bc)),r.$$.dirty[0]&32&&s(14,u=C<1?1.5:.5),r.$$.dirty[0]&32&&s(13,f=C<1?1:1.5),r.$$.dirty[0]&32&&s(12,g=C===-2?Xs:C!==null?NE:()=>{}),r.$$.dirty[0]&33554461&&s(10,_=ld(O,A,B,M,D)),r.$$.dirty[0]&33554433&&s(11,v=D>-1?M.daysMin.concat(M.daysMin).slice(D,7+D):M.daysMin.slice(D,7+D))},s(9,p=K()),[M,R,A,O,B,C,j,V,U,p,_,v,g,f,u,ce,Z,Q,G,ne,he,ge,k,E,T,D,H,fe,L,w,S,ue,me]}class zE extends yo{constructor(a){super(),bo(this,a,RE,VE,Do,{date:22,startDate:23,endDate:24,weekStart:25,i18n:0,enableTimeToggle:1,handleGridNav:26},null,[-1,-1])}get handleGridNav(){return this.$$.ctx[26]}}function sE(r,a,s){const d=r.slice();return d[35]=a[s],d[37]=s,d}function nE(r,a,s){const d=r.slice();return d[35]=a[s],d[37]=s,d}function lE(r){let a,s,d,u,f,g;return{c(){a=l("button"),s=Ws("svg"),d=Ws("path"),this.h()},l(_){a=o(_,"BUTTON",{class:!0,title:!0});var v=n(a);s=Zs(v,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var p=n(s);d=Zs(p,"path",{"fill-rule":!0,d:!0}),n(d).forEach(t),p.forEach(t),v.forEach(t),this.h()},h(){b(d,"fill-rule","evenodd"),b(d,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),b(s,"class","sdt-svg svelte-gtqd74"),b(s,"xmlns","http://www.w3.org/2000/svg"),b(s,"viewBox","0 0 24 24"),b(s,"width","20"),b(s,"height","20"),b(a,"class","sdt-time-btn sdt-back-btn svelte-gtqd74"),b(a,"title",u=r[4].backToDate)},m(_,v){F(_,a,v),e(a,s),e(s,d),f||(g=pe(a,"click",r[20]),f=!0)},p(_,v){v[0]&16&&u!==(u=_[4].backToDate)&&b(a,"title",u)},d(_){_&&t(a),f=!1,g()}}}function oE(r){let a,s,d,u,f,g,_,v,p,k;return{c(){a=l("div"),s=l("button"),d=i("AM"),f=h(),g=l("button"),_=i("PM"),this.h()},l(E){a=o(E,"DIV",{class:!0});var T=n(a);s=o(T,"BUTTON",{class:!0,"data-value":!0});var D=n(s);d=c(D,"AM"),D.forEach(t),f=m(T),g=o(T,"BUTTON",{class:!0,"data-value":!0});var M=n(g);_=c(M,"PM"),M.forEach(t),T.forEach(t),this.h()},h(){b(s,"class","sdt-time-btn svelte-gtqd74"),b(s,"data-value",u=r[6]%12),ae(s,"is-active",r[6]<12),b(g,"class","sdt-time-btn svelte-gtqd74"),b(g,"data-value",v=r[6]%12+12),ae(g,"is-active",r[10]),b(a,"class","sdt-meridian svelte-gtqd74")},m(E,T){F(E,a,T),e(a,s),e(s,d),e(a,f),e(a,g),e(g,_),p||(k=[pe(s,"click",r[18]),pe(g,"click",r[18])],p=!0)},p(E,T){T[0]&64&&u!==(u=E[6]%12)&&b(s,"data-value",u),T[0]&64&&ae(s,"is-active",E[6]<12),T[0]&64&&v!==(v=E[6]%12+12)&&b(g,"data-value",v),T[0]&1024&&ae(g,"is-active",E[10])},d(E){E&&t(a),p=!1,Qs(k)}}}function rE(r,a){let s,d=a[35].val+"",u,f,g,_,v,p;return{key:r,first:null,c(){s=l("button"),u=i(d),this.h()},l(k){s=o(k,"BUTTON",{style:!0,class:!0,"data-value":!0});var E=n(s);u=c(E,d),E.forEach(t),this.h()},h(){b(s,"style",f=`left:${a[35].x}px; top:${a[35].y}px`),b(s,"class","sdt-tick svelte-gtqd74"),b(s,"data-value",g=a[35].val),s.disabled=_=(a[0]||a[1])&&a[16](a[35].val,!1),ae(s,"outer-tick",a[5]),ae(s,"is-selected",a[15](a[6],a[35].val,a[37])),this.first=s},m(k,E){F(k,s,E),e(s,u),p=!0},p(k,E){a=k,(!p||E[0]&4096)&&d!==(d=a[35].val+"")&&ea(u,d),(!p||E[0]&4096&&f!==(f=`left:${a[35].x}px; top:${a[35].y}px`))&&b(s,"style",f),(!p||E[0]&4096&&g!==(g=a[35].val))&&b(s,"data-value",g),(!p||E[0]&4099&&_!==(_=(a[0]||a[1])&&a[16](a[35].val,!1)))&&(s.disabled=_),E[0]&32&&ae(s,"outer-tick",a[5]),E[0]&36928&&ae(s,"is-selected",a[15](a[6],a[35].val,a[37]))},i(k){p||(k&&Ks(()=>{v||(v=go(s,Xs,{duration:200},!0)),v.run(1)}),p=!0)},o(k){k&&(v||(v=go(s,Xs,{duration:200},!1)),v.run(0)),p=!1},d(k){k&&t(s),k&&v&&v.end()}}}function iE(r){let a,s=r[35].val+"",d,u,f,g,_,v;return{c(){a=l("button"),d=i(s),this.h()},l(p){a=o(p,"BUTTON",{style:!0,class:!0,"data-value":!0});var k=n(a);d=c(k,s),k.forEach(t),this.h()},h(){b(a,"style",u=`left:${r[35].x}px; top:${r[35].y}px;`),b(a,"class","sdt-tick svelte-gtqd74"),b(a,"data-value",f=r[35].val),a.disabled=g=(r[0]||r[1])&&r[16](r[35].val,!1),ae(a,"outer-tick",r[2]&&!r[5]),ae(a,"is-selected",r[15](r[5]?r[7]:r[6],r[35].val,r[37]))},m(p,k){F(p,a,k),e(a,d),v=!0},p(p,k){(!v||k[0]&2048)&&s!==(s=p[35].val+"")&&ea(d,s),(!v||k[0]&2048&&u!==(u=`left:${p[35].x}px; top:${p[35].y}px;`))&&b(a,"style",u),(!v||k[0]&2048&&f!==(f=p[35].val))&&b(a,"data-value",f),(!v||k[0]&2051&&g!==(g=(p[0]||p[1])&&p[16](p[35].val,!1)))&&(a.disabled=g),k[0]&36&&ae(a,"outer-tick",p[2]&&!p[5]),k[0]&35040&&ae(a,"is-selected",p[15](p[5]?p[7]:p[6],p[35].val,p[37]))},i(p){v||(p&&Ks(()=>{_||(_=go(a,Xs,{duration:200},!0)),_.run(1)}),v=!0)},o(p){p&&(_||(_=go(a,Xs,{duration:200},!1)),_.run(0)),v=!1},d(p){p&&t(a),p&&_&&_.end()}}}function UE(r){let a,s,d,u,f=r[14](r[6],r[2])+"",g,_,v,p,k,E,T=r[14](r[7],!1)+"",D,M,R,H,J,A,O,P,B,C=[],j=new Map,V,U,ce,Z,q,Q=r[3]&&lE(r),G=r[2]&&oE(r),ne=r[12];const he=L=>L[35].val;for(let L=0;Lke(K[L],1,1,()=>{K[L]=null});return{c(){a=l("div"),s=l("div"),Q&&Q.c(),d=h(),u=l("button"),g=i(f),_=h(),v=l("span"),p=i(":"),k=h(),E=l("button"),D=i(T),M=h(),G&&G.c(),R=h(),H=l("div"),J=l("div"),A=h(),O=l("div"),P=l("div"),B=h();for(let L=0;L{U=cd(a,Xs,{duration:200}),U.start()}),ce=!0}},o(L){for(let w=0;w=9||$<3?-1:1)*S),val:me?$*5||ue:$?$+N:ue});return de}function ce(w,S){return S?u&&w===12?12:w<10||w%12<10?`0${w%12}`:w%12:w<10?`0${w}`:w}function Z(w,S,ue){return P?S===w||ue===0&&ue===w:M?u&&S==12&&w===12||!u&&S==12&&w===0?!0:S===(w?w%12:12):S>12?(ue?_*ue+12:0)===w:S==="00"||S==="12"?w===12&&parseInt(S)==12||S==="00"&&w===0:S===w}function q(w,S=!1){return typeof w=="string"&&(w=parseInt(w)),T&&D&&v?P||S?T.getHours()===C.getHours()&&T.getMinutes()>w||D.getHours()===C.getHours()&&D.getMinutes()w||D.getHours()w:T.getHours()>w:D&&D.getDate()===C.getDate()&&D.getMonth()===C.getMonth()&&D.getFullYear()===C.getFullYear()?P||S?D.getHours()===C.getHours()&&D.getMinutes()z?_e=x>se?2:1:_e=x>se?3:4,_e){case 1:S=N-z,ue=se-x;break;case 2:S=N-z,ue=x-se;break;case 3:S=z-N,ue=x-se;break;case 4:S=z-N,ue=se-x;break}const de=Math.sqrt(S*S+ue*ue),$=90-Math.asin(S/de)*(180/Math.PI);let De=0;switch(_e){case 1:De=90-$;break;case 2:De=$+90;break;case 3:De=270-$;break;case 4:De=$+270;break}De=Math.floor(De/6),C.setMinutes(De)}s(24,C),s(21,E),j=!1,V("time",C),!w.meridianSwitch&&!B&&P&&setTimeout(()=>{V("close")},300),!w.meridianSwitch&&!P&&s(5,P=!0),setTimeout(()=>{j=!0},200)}function G(w){w.meridianSwitch=!0,Q(w)}function ne(w){s(9,B=w.type==="mousedown")}function he(){V("switch","date")}const ge=()=>s(5,P=!1),K=()=>s(5,P=!0),fe=w=>{B&&Q(w)};function L(w){Kn[w?"unshift":"push"](()=>{O=w,s(8,O)})}return r.$$set=w=>{"date"in w&&s(21,E=w.date),"startDate"in w&&s(0,T=w.startDate),"endDate"in w&&s(1,D=w.endDate),"showMeridian"in w&&s(2,M=w.showMeridian),"hasDateComponent"in w&&s(3,R=w.hasDateComponent),"i18n"in w&&s(4,H=w.i18n)},r.$$.update=()=>{if(r.$$.dirty[0]&18874368&&E!==C&&E&&s(24,C=E),r.$$.dirty[0]&16777219){let w=!1;T&&T.toDateString()===C.toDateString()&&(q(C.getHours())&&(C.setHours(T.getHours()),w=!0),q(C.getMinutes(),!0)&&(C.setMinutes(T.getMinutes()),w=!0)),D&&D.toDateString()===C.toDateString()&&(q(C.getHours())&&(C.setHours(D.getHours()),w=!0),q(C.getMinutes(),!0)&&(C.setMinutes(D.getMinutes()),w=!0)),w&&hE().then(()=>V("time",C))}r.$$.dirty[0]&16777216&&s(6,d=C?C.getHours():0),r.$$.dirty[0]&68&&s(10,u=M?d>=12:!1),r.$$.dirty[0]&16777216&&s(7,f=C?C.getMinutes():0),r.$$.dirty[0]&228&&s(13,g=P?`transform: rotateZ(${f*6}deg)`:M?`transform: rotateZ(${d%12*30}deg);`:`transform: rotateZ(${d%12*30}deg); ${d>=12?"height: calc(25% + 1px)":""}`),r.$$.dirty[0]&32&&(_=P?5:1),r.$$.dirty[0]&3&&(v=T&&D&&["getFullYear","getMonth","getDate"].every(w=>D[w]()===T[w]())),r.$$.dirty[0]&32&&s(12,p=U(P?260:220,130,"00",!1,0)),r.$$.dirty[0]&32&&s(11,k=U(P?220:140,130,P?"00":"12",P,12)),r.$$.dirty[0]&32&&V("time-switch",P)},[T,D,M,R,H,P,d,f,O,B,u,k,p,g,ce,Z,q,Q,G,ne,he,E,J,A,C,ge,K,fe,L]}class jE extends yo{constructor(a){super(),bo(this,a,qE,UE,Do,{date:21,startDate:0,endDate:1,showMeridian:2,hasDateComponent:3,i18n:4,minuteSwitch:22,makeTick:23},null,[-1,-1])}get minuteSwitch(){return this.$$.ctx[22]}get makeTick(){return this.$$.ctx[23]}}function cE(r){let a,s,d,u,f,g,_,v,p;const k=[JE,GE],E=[];function T(D,M){return D[19]==="date"?0:1}return s=T(r),d=E[s]=k[s](r),{c(){a=l("div"),d.c(),this.h()},l(D){a=o(D,"DIV",{class:!0});var M=n(a);d.l(M),M.forEach(t),this.h()},h(){b(a,"class",u="std-calendar-wrap is-popup "+r[6]+" svelte-1pq5qho")},m(D,M){F(D,a,M),E[s].m(a,null),_=!0,v||(p=[mE(f=r[16].call(null,a,{inputEl:r[24],visible:r[28],inputRect:r[25]})),pe(a,"mousedown",$t(r[50]))],v=!0)},p(D,M){let R=s;s=T(D),s===R?E[s].p(D,M):(Xn(),ke(E[R],1,1,()=>{E[R]=null}),Qn(),d=E[s],d?d.p(D,M):(d=E[s]=k[s](D),d.c()),ve(d,1),d.m(a,null)),(!_||M[0]&64&&u!==(u="std-calendar-wrap is-popup "+D[6]+" svelte-1pq5qho"))&&b(a,"class",u),f&&OE(f.update)&&M[0]&318767104&&f.update.call(null,{inputEl:D[24],visible:D[28],inputRect:D[25]})},i(D){_||(ve(d),D&&Ks(()=>{g||(g=go(a,Xs,{duration:200},!0)),g.run(1)}),_=!0)},o(D){ke(d),D&&(g||(g=go(a,Xs,{duration:200},!1)),g.run(0)),_=!1},d(D){D&&t(a),E[s].d(),D&&g&&g.end(),v=!1,Qs(p)}}}function GE(r){let a,s,d={date:r[17],startDate:r[20],endDate:r[21],hasDateComponent:r[18]!=="time",showMeridian:r[7].match(r[8]==="php"?"a|A":"p|P")!==null,i18n:r[15]};return a=new jE({props:d}),r[56](a),a.$on("time",r[32]),a.$on("switch",r[36]),a.$on("close",r[37]),{c(){Xt(a.$$.fragment)},l(u){Qt(a.$$.fragment,u)},m(u,f){Kt(a,u,f),s=!0},p(u,f){const g={};f[0]&131072&&(g.date=u[17]),f[0]&1048576&&(g.startDate=u[20]),f[0]&2097152&&(g.endDate=u[21]),f[0]&262144&&(g.hasDateComponent=u[18]!=="time"),f[0]&384&&(g.showMeridian=u[7].match(u[8]==="php"?"a|A":"p|P")!==null),f[0]&32768&&(g.i18n=u[15]),a.$set(g)},i(u){s||(ve(a.$$.fragment,u),s=!0)},o(u){ke(a.$$.fragment,u),s=!1},d(u){r[56](null),xt(a,u)}}}function JE(r){var _;let a,s,d,u,f={date:r[17],startDate:r[20],endDate:r[21],enableTimeToggle:(_=r[18])==null?void 0:_.includes("time"),i18n:r[15],weekStart:r[9]};a=new zE({props:f}),r[55](a),a.$on("date",r[32]),a.$on("switch",r[36]);let g=(r[13]||r[14])&&dE(r);return{c(){Xt(a.$$.fragment),s=h(),g&&g.c(),d=rd()},l(v){Qt(a.$$.fragment,v),s=m(v),g&&g.l(v),d=rd()},m(v,p){Kt(a,v,p),F(v,s,p),g&&g.m(v,p),F(v,d,p),u=!0},p(v,p){var E;const k={};p[0]&131072&&(k.date=v[17]),p[0]&1048576&&(k.startDate=v[20]),p[0]&2097152&&(k.endDate=v[21]),p[0]&262144&&(k.enableTimeToggle=(E=v[18])==null?void 0:E.includes("time")),p[0]&32768&&(k.i18n=v[15]),p[0]&512&&(k.weekStart=v[9]),a.$set(k),v[13]||v[14]?g?g.p(v,p):(g=dE(v),g.c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},i(v){u||(ve(a.$$.fragment,v),u=!0)},o(v){ke(a.$$.fragment,v),u=!1},d(v){r[55](null),xt(a,v),v&&t(s),g&&g.d(v),v&&t(d)}}}function dE(r){let a,s,d=r[13]&&uE(r),u=r[14]&&fE(r);return{c(){a=l("div"),d&&d.c(),s=h(),u&&u.c(),this.h()},l(f){a=o(f,"DIV",{class:!0});var g=n(a);d&&d.l(g),s=m(g),u&&u.l(g),g.forEach(t),this.h()},h(){b(a,"class","std-btn-row svelte-1pq5qho")},m(f,g){F(f,a,g),d&&d.m(a,null),e(a,s),u&&u.m(a,null)},p(f,g){f[13]?d?d.p(f,g):(d=uE(f),d.c(),d.m(a,s)):d&&(d.d(1),d=null),f[14]?u?u.p(f,g):(u=fE(f),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(f){f&&t(a),d&&d.d(),u&&u.d()}}}function uE(r){let a,s=r[15].todayBtn+"",d,u,f,g;return{c(){a=l("button"),d=i(s),this.h()},l(_){a=o(_,"BUTTON",{class:!0});var v=n(a);d=c(v,s),v.forEach(t),this.h()},h(){b(a,"class",u=Eo(r[11])+" svelte-1pq5qho"),a.disabled=r[29]},m(_,v){F(_,a,v),e(a,d),f||(g=pe(a,"click",r[33]),f=!0)},p(_,v){v[0]&32768&&s!==(s=_[15].todayBtn+"")&&ea(d,s),v[0]&2048&&u!==(u=Eo(_[11])+" svelte-1pq5qho")&&b(a,"class",u),v[0]&536870912&&(a.disabled=_[29])},d(_){_&&t(a),f=!1,g()}}}function fE(r){let a,s=r[15].clearBtn+"",d,u,f,g,_;return{c(){a=l("button"),d=i(s),this.h()},l(v){a=o(v,"BUTTON",{class:!0});var p=n(a);d=c(p,s),p.forEach(t),this.h()},h(){b(a,"class",u=Eo(r[12])+" svelte-1pq5qho"),a.disabled=f=!r[17]},m(v,p){F(v,a,p),e(a,d),g||(_=pe(a,"click",r[34]),g=!0)},p(v,p){p[0]&32768&&s!==(s=v[15].clearBtn+"")&&ea(d,s),p[0]&4096&&u!==(u=Eo(v[12])+" svelte-1pq5qho")&&b(a,"class",u),p[0]&131072&&f!==(f=!v[17])&&(a.disabled=f)},d(v){v&&t(a),g=!1,_()}}}function WE(r){let a,s,d,u,f,g,_,v,p=r[23]&&r[22]&&cE(r);return{c(){a=l("input"),u=h(),p&&p.c(),f=rd(),this.h()},l(k){a=o(k,"INPUT",{type:!0,tabindex:!0,name:!0,placeholder:!0,autocomplete:!0,class:!0}),u=m(k),p&&p.l(k),f=rd(),this.h()},h(){b(a,"type",s=r[5]?"hidden":"text"),b(a,"tabindex","0"),b(a,"name",r[1]),a.disabled=r[2],a.required=r[4],a.value=r[0],b(a,"placeholder",r[3]),b(a,"autocomplete","off"),b(a,"class",d=Eo(r[10])+" svelte-1pq5qho"),a.readOnly=r[22]},m(k,E){F(k,a,E),r[53](a),F(k,u,E),p&&p.m(k,E),F(k,f,E),g=!0,_||(v=[mE(r[30].call(null,a,r[31])),pe(a,"focus",r[38]),pe(a,"blur",r[39]),pe(a,"click",r[54]),pe(a,"input",r[51]),pe(a,"change",r[52]),pe(a,"keydown",r[35])],_=!0)},p(k,E){(!g||E[0]&32&&s!==(s=k[5]?"hidden":"text"))&&b(a,"type",s),(!g||E[0]&2)&&b(a,"name",k[1]),(!g||E[0]&4)&&(a.disabled=k[2]),(!g||E[0]&16)&&(a.required=k[4]),(!g||E[0]&1&&a.value!==k[0])&&(a.value=k[0]),(!g||E[0]&8)&&b(a,"placeholder",k[3]),(!g||E[0]&1024&&d!==(d=Eo(k[10])+" svelte-1pq5qho"))&&b(a,"class",d),(!g||E[0]&4194304)&&(a.readOnly=k[22]),k[23]&&k[22]?p?(p.p(k,E),E[0]&12582912&&ve(p,1)):(p=cE(k),p.c(),ve(p,1),p.m(f.parentNode,f)):p&&(Xn(),ke(p,1,1,()=>{p=null}),Qn())},i(k){g||(ve(p),g=!0)},o(k){ke(p),g=!1},d(k){k&&t(a),r[53](null),k&&t(u),p&&p.d(k),k&&t(f),_=!1,Qs(v)}}}const xe=LE;function ZE(r,a,s){let d,u,f,g,{name:_="date"}=a,{disabled:v=!1}=a,{placeholder:p=null}=a,{required:k=!1}=a,{value:E=null}=a,{initialDate:T=null}=a,{startDate:D=null}=a,{endDate:M=null}=a,{pickerOnly:R=!1}=a,{theme:H=xe.theme}=a,{mode:J=xe.mode}=a,{format:A=xe.format}=a,{formatType:O=xe.formatType}=a,{weekStart:P=xe.weekStart}=a,{inputClasses:B=xe.inputClasses}=a,{todayBtnClasses:C=xe.todayBtnClasses}=a,{clearBtnClasses:j=xe.clearBtnClasses}=a,{todayBtn:V=xe.todayBtn}=a,{clearBtn:U=xe.clearBtn}=a,{clearToggle:ce=xe.clearToggle}=a,{autoclose:Z=xe.autoclose}=a,{i18n:q=xe.i18n}=a,{positionFn:Q=YE}=a,{validatorAction:G=null}=a;function ne(I){s(17,fe=yc(I,A,q,O))}const he=l2();E&&(E=E.replace(/(:\d+):\d+/,"$1"));let ge=E,K=A,fe=T&&T instanceof Date?T:E?yc(E,A,q,O):null;fe&&T&&(E=e2(fe,A,q,O));let L=R,w=R,S=null,ue=null,me=G?G.shift():()=>{},N=G||[],x,z,se=!1,_e=null,de="",$=de==="time"?"time":"date";function De(){R||s(23,w=!1),de!=="time"&&s(19,$="date")}function Ie(I){let ye=I.detail||null;I.detail&&fe&&fe.getFullYear()===I.detail.getFullYear()&&fe.getMonth()===I.detail.getMonth()&&fe.getDate()===I.detail.getDate()&&de==="date"&&ce&&(ye=null),s(0,E=ye?e2(ye,A,q,O):null),Z&&(de==="date"||!ye)&&!R&&!se&&De(),ye&&!se&&de==="datetime"&&$==="date"&&s(19,$="time"),se&&$==="time"?_e=setTimeout(()=>{se=!1},400):se=!1,hE().then(()=>{S&&S.dispatchEvent(new Event("input")),he("change",E)})}function nt(){const I=new Date;if(d&&d>I)return;const ye=fe?fe.getHours():I.getHours(),be=fe?fe.getMinutes():I.getMinutes();Ie(new CustomEvent("ontoday",{detail:new Date(I.getFullYear(),I.getMonth(),I.getDate(),ye,be,0)}))}function Ue(){Ie(new CustomEvent("clear",{detail:null}))}function $e(I){if(!w&&(["Backspace","Delete"].includes(I.key)&&Ue(),I.key!=="Enter"))return Et();if(!w&&I.key!=="Tab"){s(23,w=!0),I.preventDefault();return}switch(I.key){case"PageDown":case"PageUp":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":I.preventDefault(),_e&&clearTimeout(_e),se=!0,$==="date"?x.handleGridNav(I.key,I.shiftKey):z.makeTick(["ArrowDown","ArrowLeft","PageDown"].includes(I.key)?-1:1);break;case"Escape":L&&s(23,w=!1);break;case"Backspace":case"Delete":Ue();break;case"Enter":if(L&&I.preventDefault(),$==="time")return z.minuteSwitch(null)?De():z.minuteSwitch(!0);L&&de==="date"&&s(22,L=!1),fe&&de.includes("time")&&s(19,$="time");break;case"Tab":w&&(s(23,w=!1),I.preventDefault());case"F5":break;default:I.preventDefault()}}function we(I){s(19,$=I.detail)}function Te(){Z&&!se&&De()}function Et(){s(25,ue=S&&S.getBoundingClientRect()),s(22,L=!0),s(23,w=!0)}function lt(){s(22,L=!1),s(23,w=!1),he("blur")}function et(I){Km.call(this,r,I)}function xs(I){Km.call(this,r,I)}function ot(I){Km.call(this,r,I)}function rt(I){Kn[I?"unshift":"push"](()=>{S=I,s(24,S)})}const ma=()=>{!w&&Et()};function ta(I){Kn[I?"unshift":"push"](()=>{x=I,s(26,x)})}function Fe(I){Kn[I?"unshift":"push"](()=>{z=I,s(27,z)})}return r.$$set=I=>{"name"in I&&s(1,_=I.name),"disabled"in I&&s(2,v=I.disabled),"placeholder"in I&&s(3,p=I.placeholder),"required"in I&&s(4,k=I.required),"value"in I&&s(0,E=I.value),"initialDate"in I&&s(40,T=I.initialDate),"startDate"in I&&s(41,D=I.startDate),"endDate"in I&&s(42,M=I.endDate),"pickerOnly"in I&&s(5,R=I.pickerOnly),"theme"in I&&s(6,H=I.theme),"mode"in I&&s(43,J=I.mode),"format"in I&&s(7,A=I.format),"formatType"in I&&s(8,O=I.formatType),"weekStart"in I&&s(9,P=I.weekStart),"inputClasses"in I&&s(10,B=I.inputClasses),"todayBtnClasses"in I&&s(11,C=I.todayBtnClasses),"clearBtnClasses"in I&&s(12,j=I.clearBtnClasses),"todayBtn"in I&&s(13,V=I.todayBtn),"clearBtn"in I&&s(14,U=I.clearBtn),"clearToggle"in I&&s(44,ce=I.clearToggle),"autoclose"in I&&s(45,Z=I.autoclose),"i18n"in I&&s(15,q=I.i18n),"positionFn"in I&&s(16,Q=I.positionFn),"validatorAction"in I&&s(46,G=I.validatorAction)},r.$$.update=()=>{if(r.$$.dirty[0]&33152|r.$$.dirty[1]&1024&&s(20,d=D?yc(D,A,q,O):null),r.$$.dirty[0]&33152|r.$$.dirty[1]&2048&&s(21,u=M?new Date(yc(M,A,q,O).setSeconds(1)):null),r.$$.dirty[0]&3145728&&s(29,f=d&&d>new Date||u&&u(d&&(s=s[0].toUpperCase()+s.substr(1)),a+s),""):r}class XE extends HTMLElement{constructor(){super(),this.picker=null;const a=["value","name","placeholder","mode","format"].reduce((u,f)=>(u[f]={get(){return a2(f,this.getAttribute(f))},set(g){this.setAttribute(f,g)}},u),{}),s={form:{get(){return this.closest("form")}},weekStart:{get(){return this.getAttribute("week-start")},set(u){this.setAttribute("week-start",u)}},startDate:{get(){return this.getAttribute("start-date")},set(u){u&&this.setAttribute("start-date",u),!u&&this.removeAttribute("start-date")}},endDate:{get(){return this.getAttribute("end-date")},set(u){u&&this.setAttribute("end-date",u),!u&&this.removeAttribute("end-date")}},inputClasses:{get(){return this.getAttribute("input-classes")},set(u){u&&this.setAttribute("input-classes",u),!u&&this.removeAttribute("input-classes")}}},d=["required","disabled","today-btn","clear-btn","autoclose"].reduce((u,f)=>{const g=s2(f);return u[g]={get(){const _=this.hasAttribute(f),v=_?this.getAttribute(f)!=="false":!0;return _?v:xe[g]},set(_){_?this.setAttribute(f,_=""):this.hasAttribute(f)?this.removeAttribute(f):this.picker.$set({[g]:_})}},u},{});Object.defineProperties(this,Object.assign({},a,s,d))}focus(){if(this.disabled)return;const a=this.querySelector("input");a&&a.focus()}static get observedAttributes(){return pE}attributeChangedCallback(a,s,d){this.picker&&s!==d&&this.picker.$set({[s2(a)]:a2(a,d)})}connectedCallback(){if(this.picker)return;let a={};for(const s of pE)this.hasAttribute(s)&&(a[s2(s)]=a2(s,this.getAttribute(s)));this.picker=new Js({target:this,props:a}),this.picker.$on("input",s=>{this.setAttribute("value",s.target.value),this.dispatchEvent(new Event("input"))}),this.picker.$on("blur",s=>{this.dispatchEvent(new Event("blur"))}),setTimeout(()=>{if(this.hasAttribute("from")){const s=document.getElementById(this.getAttribute("from"));s.oninput=d=>{this.picker.$set({startDate:s.value})}}if(this.hasAttribute("to")){const s=document.getElementById(this.getAttribute("to"));s.oninput=d=>{this.picker.$set({endDate:s.value})}}})}disconnectedCallback(){this.picker&&this.picker.destroy()}}function QE(r){window.customElements.define(r,XE)}function KE(r){let a,s,d,u,f,g,_,v,p,k,E,T,D,M,R,H,J,A,O,P,B,C,j,V,U,ce,Z,q,Q,G,ne,he,ge,K,fe,L,w,S,ue,me,N,x,z,se,_e,de,$,De,Ie,nt,Ue,$e,we,Te,Et,lt,et,xs,ot,rt,ma,ta,Fe,I,ye,be,$s,kt,aa,en,Ja,Pe,tn,Wa,Ee,_a,He,va,an,ga,Ea,sn,ka,ya,nn,ba,Da,ln,wa,W,Ne,yt,on,rn,Ta,Le,cn,Ma,Ca,Oa,Sa,dn,bt,un,qe,je,fn,Ia,Ve,Fa,Ha,pn,Aa,Pa,Dt,hn,tt,La,sa,mn,wt,na,Ge,Tt,_n,Mt,Re,Je,vn,it,Ba,ct,Ct,gn,Ya,dt,Ot,En,at,kn,ut,yn,bn,ft,Me,We,la,Dn,Na,Be,wn,St,Va,Ce,Tn,It,Ft,Ht,Ra,Mn,Za,Cn,Ze;function On(re){r[9](re)}let xn={placeholder:"Pick your date and time",inputClasses:"form-control",format:r[2],formatType:xE,initialDate:r[7]};r[1]!==void 0&&(xn.value=r[1]),U=new Js({props:xn}),Kn.push(()=>xm(U,"value",On));function wo(re){r[12](re)}let Xa={inputClasses:"form-control",mode:"date",id:"fromPicker",to:"toPicker",placeholder:"From",endDate:r[4]};r[3]!==void 0&&(Xa.value=r[3]),be=new Js({props:Xa}),Kn.push(()=>xm(be,"value",wo));function Sn(re){r[13](re)}let $n={inputClasses:"form-control",mode:"date",id:"toPicker",from:"fromPicker",placeholder:"To",startDate:r[3]};return r[4]!==void 0&&($n.value=r[4]),Pe=new Js({props:$n}),Kn.push(()=>xm(Pe,"value",Sn)),tt=new Js({props:{inputClasses:"form-control",mode:"time",format:"hh:ii"}}),Mt=new Js({props:{inputClasses:"form-control",mode:"datetime",pickerOnly:!0}}),it=new Js({props:{theme:r[6],inputClasses:"form-control",mode:"datetime",pickerOnly:!0}}),Be=new Js({props:{placeholder:"Pick your date and time",inputClasses:"form-control",initialDate:r[7]}}),Be.$on("input",r[8]),Be.$on("change",r[8]),Be.$on("blur",r[8]),{c(){a=l("div"),s=l("h1"),d=i("\u{1F973} Examples"),u=h(),f=l("small"),g=l("em"),_=i("Using bootstrap css for showcase"),v=h(),p=l("h5"),k=i("\u{1F4C5} Full example!"),E=h(),T=l("p"),D=i("Selected "),M=l("code"),R=i("format"),H=i(" determines, if time picker will be available based on time part of given format."),J=h(),A=l("form"),O=l("div"),P=l("div"),B=l("div"),C=l("span"),j=i("Full date-time picker"),V=h(),Xt(U.$$.fragment),Z=h(),q=l("div"),Q=i(`Change format: + `),G=l("select"),ne=l("optgroup"),he=l("option"),ge=i("yyyy-mm-dd hh:ii"),K=l("option"),fe=i("mm/dd/yyyy hh:ii"),L=l("option"),w=i("dd.mm.yyyy hh:ii"),S=l("option"),ue=i("dd-M-yy hh:ii"),me=l("optgroup"),N=l("option"),x=i("yyyy-mm-dd"),z=l("option"),se=i("mm/dd/yyyy"),_e=l("option"),de=i("dd.mm.yyyy"),$=l("option"),De=i("dd-M-yy"),Ie=l("option"),nt=i("dd MM yyyy"),Ue=h(),$e=l("div"),we=l("div"),Te=l("h5"),Et=i("\u{1F4A1} Limit dates with "),lt=l("code"),et=i("startDate"),xs=i(" & "),ot=l("code"),rt=i("endDate"),ma=i("."),ta=h(),Fe=l("div"),I=i(`Pick your holiday session: + `),ye=l("div"),Xt(be.$$.fragment),kt=h(),aa=l("span"),en=i("\u2013"),Ja=h(),Xt(Pe.$$.fragment),Wa=h(),Ee=l("p"),_a=i("Selected date of "),He=l("b"),va=i("From"),an=i(" serves as "),ga=l("code"),Ea=i("startDate"),sn=i(" for "),ka=l("b"),ya=i("To"),nn=i(" date picker and vice versa, where "),ba=l("b"),Da=i("To"),ln=i(` + serves as `),wa=l("code"),W=i("endDate"),Ne=i(" for "),yt=l("b"),on=i("From"),rn=i(" date picker."),Ta=h(),Le=l("p"),cn=i("This example uses "),Ma=l("code"),Ca=i("Svelty-picker"),Oa=i(" as a "),Sa=l("code"),dn=i("custom-element"),bt=i("."),un=h(),qe=l("div"),je=l("h5"),fn=i("\u{1F552} Timepicker only. Forced by "),Ia=l("code"),Ve=i("mode"),Fa=i(" set to "),Ha=l("code"),pn=i("time"),Aa=i("."),Pa=h(),Dt=l("div"),hn=i(`Time picker only: + `),Xt(tt.$$.fragment),La=h(),sa=l("h5"),mn=i("\u{1F3A8} Easily themable - just override CSS variables"),wt=h(),na=l("div"),Ge=l("div"),Tt=l("div"),_n=i(`Default theme + + `),Xt(Mt.$$.fragment),Re=h(),Je=l("div"),vn=i(`Custom theme + `),Xt(it.$$.fragment),Ba=h(),ct=l("label"),Ct=l("input"),gn=i(" Remove all theming"),Ya=h(),dt=l("div"),Ot=l("div"),En=i(`Datepicker as custom element! + `),at=l("el-picker"),kn=h(),ut=l("h5"),yn=i("\u{1F4AC} Event listening:"),bn=h(),ft=l("div"),Me=l("div"),We=l("div"),la=l("span"),Dn=i("Full date-time picker"),Na=h(),Xt(Be.$$.fragment),wn=h(),St=l("div"),Va=i(`Event log: + `),Ce=l("textarea"),Tn=h(),It=l("p"),Ft=i("Check more details at "),Ht=l("a"),Ra=i("GitHub repository"),Mn=i("."),this.h()},l(re){a=o(re,"DIV",{class:!0});var oe=n(a);s=o(oe,"H1",{});var pt=n(s);d=c(pt,"\u{1F973} Examples"),pt.forEach(t),u=m(oe),f=o(oe,"SMALL",{});var oa=n(f);g=o(oa,"EM",{});var ra=n(g);_=c(ra,"Using bootstrap css for showcase"),ra.forEach(t),oa.forEach(t),v=m(oe),p=o(oe,"H5",{class:!0});var At=n(p);k=c(At,"\u{1F4C5} Full example!"),At.forEach(t),E=m(oe),T=o(oe,"P",{});var Qa=n(T);D=c(Qa,"Selected "),M=o(Qa,"CODE",{});var el=n(M);R=c(el,"format"),el.forEach(t),H=c(Qa," determines, if time picker will be available based on time part of given format."),Qa.forEach(t),J=m(oe),A=o(oe,"FORM",{});var Xe=n(A);O=o(Xe,"DIV",{class:!0});var ia=n(O);P=o(ia,"DIV",{class:!0});var tl=n(P);B=o(tl,"DIV",{class:!0});var Ka=n(B);C=o(Ka,"SPAN",{class:!0});var xa=n(C);j=c(xa,"Full date-time picker"),xa.forEach(t),V=m(Ka),Qt(U.$$.fragment,Ka),Ka.forEach(t),tl.forEach(t),Z=m(ia),q=o(ia,"DIV",{class:!0});var za=n(q);Q=c(za,`Change format: + `),G=o(za,"SELECT",{name:!0,id:!0,class:!0});var In=n(G);ne=o(In,"OPTGROUP",{label:!0});var Ua=n(ne);he=o(Ua,"OPTION",{});var $a=n(he);ge=c($a,"yyyy-mm-dd hh:ii"),$a.forEach(t),K=o(Ua,"OPTION",{});var es=n(K);fe=c(es,"mm/dd/yyyy hh:ii"),es.forEach(t),L=o(Ua,"OPTION",{});var al=n(L);w=c(al,"dd.mm.yyyy hh:ii"),al.forEach(t),S=o(Ua,"OPTION",{});var sl=n(S);ue=c(sl,"dd-M-yy hh:ii"),sl.forEach(t),Ua.forEach(t),me=o(In,"OPTGROUP",{label:!0});var st=n(me);N=o(st,"OPTION",{});var nl=n(N);x=c(nl,"yyyy-mm-dd"),nl.forEach(t),z=o(st,"OPTION",{});var ts=n(z);se=c(ts,"mm/dd/yyyy"),ts.forEach(t),_e=o(st,"OPTION",{});var ll=n(_e);de=c(ll,"dd.mm.yyyy"),ll.forEach(t),$=o(st,"OPTION",{});var ol=n($);De=c(ol,"dd-M-yy"),ol.forEach(t),Ie=o(st,"OPTION",{});var Qe=n(Ie);nt=c(Qe,"dd MM yyyy"),Qe.forEach(t),st.forEach(t),In.forEach(t),za.forEach(t),ia.forEach(t),Xe.forEach(t),Ue=m(oe),$e=o(oe,"DIV",{class:!0});var ca=n($e);we=o(ca,"DIV",{class:!0});var ht=n(we);Te=o(ht,"H5",{class:!0});var da=n(Te);Et=c(da,"\u{1F4A1} Limit dates with "),lt=o(da,"CODE",{});var as=n(lt);et=c(as,"startDate"),as.forEach(t),xs=c(da," & "),ot=o(da,"CODE",{});var rl=n(ot);rt=c(rl,"endDate"),rl.forEach(t),ma=c(da,"."),da.forEach(t),ta=m(ht),Fe=o(ht,"DIV",{class:!0});var Fn=n(Fe);I=c(Fn,`Pick your holiday session: + `),ye=o(Fn,"DIV",{class:!0});var mt=n(ye);Qt(be.$$.fragment,mt),kt=m(mt),aa=o(mt,"SPAN",{class:!0});var il=n(aa);en=c(il,"\u2013"),il.forEach(t),Ja=m(mt),Qt(Pe.$$.fragment,mt),mt.forEach(t),Fn.forEach(t),Wa=m(ht),Ee=o(ht,"P",{});var Oe=n(Ee);_a=c(Oe,"Selected date of "),He=o(Oe,"B",{});var ss=n(He);va=c(ss,"From"),ss.forEach(t),an=c(Oe," serves as "),ga=o(Oe,"CODE",{});var ns=n(ga);Ea=c(ns,"startDate"),ns.forEach(t),sn=c(Oe," for "),ka=o(Oe,"B",{});var cl=n(ka);ya=c(cl,"To"),cl.forEach(t),nn=c(Oe," date picker and vice versa, where "),ba=o(Oe,"B",{});var dl=n(ba);Da=c(dl,"To"),dl.forEach(t),ln=c(Oe,` + serves as `),wa=o(Oe,"CODE",{});var Ke=n(wa);W=c(Ke,"endDate"),Ke.forEach(t),Ne=c(Oe," for "),yt=o(Oe,"B",{});var ls=n(yt);on=c(ls,"From"),ls.forEach(t),rn=c(Oe," date picker."),Oe.forEach(t),Ta=m(ht),Le=o(ht,"P",{class:!0});var ua=n(Le);cn=c(ua,"This example uses "),Ma=o(ua,"CODE",{});var ul=n(Ma);Ca=c(ul,"Svelty-picker"),ul.forEach(t),Oa=c(ua," as a "),Sa=o(ua,"CODE",{});var os=n(Sa);dn=c(os,"custom-element"),os.forEach(t),bt=c(ua,"."),ua.forEach(t),ht.forEach(t),un=m(ca),qe=o(ca,"DIV",{class:!0});var rs=n(qe);je=o(rs,"H5",{class:!0});var fa=n(je);fn=c(fa,"\u{1F552} Timepicker only. Forced by "),Ia=o(fa,"CODE",{});var is=n(Ia);Ve=c(is,"mode"),is.forEach(t),Fa=c(fa," set to "),Ha=o(fa,"CODE",{});var fl=n(Ha);pn=c(fl,"time"),fl.forEach(t),Aa=c(fa,"."),fa.forEach(t),Pa=m(rs),Dt=o(rs,"DIV",{class:!0});var Hn=n(Dt);hn=c(Hn,`Time picker only: + `),Qt(tt.$$.fragment,Hn),Hn.forEach(t),rs.forEach(t),ca.forEach(t),La=m(oe),sa=o(oe,"H5",{class:!0});var cs=n(sa);mn=c(cs,"\u{1F3A8} Easily themable - just override CSS variables"),cs.forEach(t),wt=m(oe),na=o(oe,"DIV",{class:!0});var ds=n(na);Ge=o(ds,"DIV",{class:!0});var us=n(Ge);Tt=o(us,"DIV",{class:!0});var An=n(Tt);_n=c(An,`Default theme + + `),Qt(Mt.$$.fragment,An),An.forEach(t),Re=m(us),Je=o(us,"DIV",{});var Ae=n(Je);vn=c(Ae,`Custom theme + `),Qt(it.$$.fragment,Ae),Ba=m(Ae),ct=o(Ae,"LABEL",{});var qa=n(ct);Ct=o(qa,"INPUT",{type:!0}),gn=c(qa," Remove all theming"),qa.forEach(t),Ae.forEach(t),us.forEach(t),ds.forEach(t),Ya=m(oe),dt=o(oe,"DIV",{class:!0});var pl=n(dt);Ot=o(pl,"DIV",{class:!0});var Pn=n(Ot);En=c(Pn,`Datepicker as custom element! + `),at=o(Pn,"EL-PICKER",{"input-classes":!0}),n(at).forEach(t),Pn.forEach(t),pl.forEach(t),kn=m(oe),ut=o(oe,"H5",{class:!0});var fs=n(ut);yn=c(fs,"\u{1F4AC} Event listening:"),fs.forEach(t),bn=m(oe),ft=o(oe,"DIV",{class:!0});var pa=n(ft);Me=o(pa,"DIV",{class:!0});var hl=n(Me);We=o(hl,"DIV",{class:!0});var ps=n(We);la=o(ps,"SPAN",{class:!0});var hs=n(la);Dn=c(hs,"Full date-time picker"),hs.forEach(t),Na=m(ps),Qt(Be.$$.fragment,ps),ps.forEach(t),hl.forEach(t),wn=m(pa),St=o(pa,"DIV",{class:!0});var ja=n(St);Va=c(ja,`Event log: + `),Ce=o(ja,"TEXTAREA",{placeholder:!0,id:!0,cols:!0,rows:!0,class:!0}),n(Ce).forEach(t),ja.forEach(t),pa.forEach(t),Tn=m(oe),It=o(oe,"P",{});var ms=n(It);Ft=c(ms,"Check more details at "),Ht=o(ms,"A",{href:!0,target:!0});var ml=n(Ht);Ra=c(ml,"GitHub repository"),ml.forEach(t),Mn=c(ms,"."),ms.forEach(t),oe.forEach(t),this.h()},h(){b(p,"class","mt-5"),b(C,"class","form-label"),b(B,"class","form-group"),b(P,"class","col-sm-6"),he.__value="yyyy-mm-dd hh:ii",he.value=he.__value,K.__value="mm/dd/yyyy hh:ii",K.value=K.__value,L.__value="dd.mm.yyyy hh:ii",L.value=L.__value,S.__value="dd-M-yy hh:ii",S.value=S.__value,b(ne,"label","Date & time"),N.__value="yyyy-mm-dd",N.value=N.__value,z.__value="mm/dd/yyyy",z.value=z.__value,_e.__value="dd.mm.yyyy",_e.value=_e.__value,$.__value="dd-M-yy",$.value=$.__value,Ie.__value="dd MM yyyy",Ie.value=Ie.__value,b(me,"label","Date only"),b(G,"name",""),b(G,"id",""),b(G,"class","form-select"),r[2]===void 0&&Ks(()=>r[10].call(G)),b(q,"class","col-sm-4"),b(O,"class","row"),b(Te,"class","mt-5"),b(aa,"class","input-group-text"),b(ye,"class","input-group"),b(Fe,"class","form-group"),b(Le,"class","alert alert-info"),b(we,"class","col-sm-6"),b(je,"class","mt-5"),b(Dt,"class","form-group"),b(qe,"class","col-sm-6"),b($e,"class","row"),b(sa,"class","mt-3"),b(Tt,"class","me-4"),b(Ct,"type","checkbox"),b(Ge,"class","col d-flex flex-wrap"),b(na,"class","row mb-4"),SE(at,"input-classes","form-control"),b(Ot,"class","col-4"),b(dt,"class","row"),b(ut,"class","mt-5"),b(la,"class","form-label"),b(We,"class","form-group"),b(Me,"class","col-sm-6"),b(Ce,"placeholder","Event log"),b(Ce,"id",""),b(Ce,"cols","30"),b(Ce,"rows","4"),b(Ce,"class","form-control"),b(St,"class","col-sm-6"),b(ft,"class","row mb-4"),b(Ht,"href","https://github.com/mskocik/svelty-picker"),b(Ht,"target","_blank"),b(a,"class","container")},m(re,oe){F(re,a,oe),e(a,s),e(s,d),e(a,u),e(a,f),e(f,g),e(g,_),e(a,v),e(a,p),e(p,k),e(a,E),e(a,T),e(T,D),e(T,M),e(M,R),e(T,H),e(a,J),e(a,A),e(A,O),e(O,P),e(P,B),e(B,C),e(C,j),e(B,V),Kt(U,B,null),e(O,Z),e(O,q),e(q,Q),e(q,G),e(G,ne),e(ne,he),e(he,ge),e(ne,K),e(K,fe),e(ne,L),e(L,w),e(ne,S),e(S,ue),e(G,me),e(me,N),e(N,x),e(me,z),e(z,se),e(me,_e),e(_e,de),e(me,$),e($,De),e(me,Ie),e(Ie,nt),Lg(G,r[2]),e(a,Ue),e(a,$e),e($e,we),e(we,Te),e(Te,Et),e(Te,lt),e(lt,et),e(Te,xs),e(Te,ot),e(ot,rt),e(Te,ma),e(we,ta),e(we,Fe),e(Fe,I),e(Fe,ye),Kt(be,ye,null),e(ye,kt),e(ye,aa),e(aa,en),e(ye,Ja),Kt(Pe,ye,null),e(we,Wa),e(we,Ee),e(Ee,_a),e(Ee,He),e(He,va),e(Ee,an),e(Ee,ga),e(ga,Ea),e(Ee,sn),e(Ee,ka),e(ka,ya),e(Ee,nn),e(Ee,ba),e(ba,Da),e(Ee,ln),e(Ee,wa),e(wa,W),e(Ee,Ne),e(Ee,yt),e(yt,on),e(Ee,rn),e(we,Ta),e(we,Le),e(Le,cn),e(Le,Ma),e(Ma,Ca),e(Le,Oa),e(Le,Sa),e(Sa,dn),e(Le,bt),e($e,un),e($e,qe),e(qe,je),e(je,fn),e(je,Ia),e(Ia,Ve),e(je,Fa),e(je,Ha),e(Ha,pn),e(je,Aa),e(qe,Pa),e(qe,Dt),e(Dt,hn),Kt(tt,Dt,null),e(a,La),e(a,sa),e(sa,mn),e(a,wt),e(a,na),e(na,Ge),e(Ge,Tt),e(Tt,_n),Kt(Mt,Tt,null),e(Ge,Re),e(Ge,Je),e(Je,vn),Kt(it,Je,null),e(Je,Ba),e(Je,ct),e(ct,Ct),Ct.checked=r[0],e(ct,gn),e(a,Ya),e(a,dt),e(dt,Ot),e(Ot,En),e(Ot,at),e(a,kn),e(a,ut),e(ut,yn),e(a,bn),e(a,ft),e(ft,Me),e(Me,We),e(We,la),e(la,Dn),e(We,Na),Kt(Be,We,null),e(ft,wn),e(ft,St),e(St,Va),e(St,Ce),Bg(Ce,r[5]),e(a,Tn),e(a,It),e(It,Ft),e(It,Ht),e(Ht,Ra),e(It,Mn),Za=!0,Cn||(Ze=[pe(G,"change",r[10]),pe(A,"submit",$t(r[11])),pe(Ct,"change",r[14]),pe(Ce,"input",r[15])],Cn=!0)},p(re,[oe]){const pt={};oe&4&&(pt.format=re[2]),!ce&&oe&2&&(ce=!0,pt.value=re[1],$m(()=>ce=!1)),U.$set(pt),oe&4&&Lg(G,re[2]);const oa={};oe&16&&(oa.endDate=re[4]),!$s&&oe&8&&($s=!0,oa.value=re[3],$m(()=>$s=!1)),be.$set(oa);const ra={};oe&8&&(ra.startDate=re[3]),!tn&&oe&16&&(tn=!0,ra.value=re[4],$m(()=>tn=!1)),Pe.$set(ra);const At={};oe&64&&(At.theme=re[6]),it.$set(At),oe&1&&(Ct.checked=re[0]),oe&32&&Bg(Ce,re[5])},i(re){Za||(ve(U.$$.fragment,re),ve(be.$$.fragment,re),ve(Pe.$$.fragment,re),ve(tt.$$.fragment,re),ve(Mt.$$.fragment,re),ve(it.$$.fragment,re),ve(Be.$$.fragment,re),Za=!0)},o(re){ke(U.$$.fragment,re),ke(be.$$.fragment,re),ke(Pe.$$.fragment,re),ke(tt.$$.fragment,re),ke(Mt.$$.fragment,re),ke(it.$$.fragment,re),ke(Be.$$.fragment,re),Za=!1},d(re){re&&t(a),xt(U),xt(be),xt(Pe),xt(tt),xt(Mt),xt(it),xt(Be),Cn=!1,Qs(Ze)}}}let xE="standard";function $E(r,a,s){let d,u=new Date,f,g="yyyy-mm-dd hh:ii",_,v,p=!1;IE(()=>{QE("el-picker")});let k="";function E(O){let P=O.detail!==void 0?O.detail:O.target.value||"";s(5,k+=`Triggered '${O.type}' event with value: ${P} +`)}function T(O){f=O,s(1,f)}function D(){g=FE(this),s(2,g)}const M=()=>console.log("submit");function R(O){_=O,s(3,_)}function H(O){v=O,s(4,v)}function J(){p=this.checked,s(0,p)}function A(){k=this.value,s(5,k)}return r.$$.update=()=>{r.$$.dirty&1&&s(6,d=p?"":"my-colors")},[p,f,g,_,v,k,d,u,E,T,D,M,R,H,J,A]}class ek extends yo{constructor(a){super(),bo(this,a,$E,KE,Do,{})}}function tk(r){let a,s,d,u,f,g,_,v,p,k,E,T,D,M,R,H,J,A,O,P,B,C,j,V,U,ce;return P=new AE({}),j=new ek({}),{c(){a=l("div"),s=l("div"),d=l("div"),u=l("ul"),f=l("li"),g=l("a"),_=i("Readme.md"),v=h(),p=l("li"),k=l("a"),E=i("Examples"),T=h(),D=l("a"),M=l("img"),H=h(),J=l("div"),A=l("div"),O=l("div"),Xt(P.$$.fragment),B=h(),C=l("div"),Xt(j.$$.fragment),this.h()},l(Z){a=o(Z,"DIV",{class:!0});var q=n(a);s=o(q,"DIV",{class:!0});var Q=n(s);d=o(Q,"DIV",{class:!0});var G=n(d);u=o(G,"UL",{class:!0});var ne=n(u);f=o(ne,"LI",{class:!0});var he=n(f);g=o(he,"A",{class:!0,"aria-current":!0,href:!0});var ge=n(g);_=c(ge,"Readme.md"),ge.forEach(t),he.forEach(t),v=m(ne),p=o(ne,"LI",{class:!0});var K=n(p);k=o(K,"A",{class:!0,href:!0});var fe=n(k);E=c(fe,"Examples"),fe.forEach(t),K.forEach(t),ne.forEach(t),T=m(G),D=o(G,"A",{href:!0});var L=n(D);M=o(L,"IMG",{alt:!0,src:!0}),L.forEach(t),G.forEach(t),H=m(Q),J=o(Q,"DIV",{class:!0});var w=n(J);A=o(w,"DIV",{class:!0,id:!0});var S=n(A);O=o(S,"DIV",{class:!0,id:!0,role:!0,"aria-labelledby":!0});var ue=n(O);Qt(P.$$.fragment,ue),ue.forEach(t),B=m(S),C=o(S,"DIV",{class:!0,id:!0,role:!0,"aria-labelledby":!0});var me=n(C);Qt(j.$$.fragment,me),me.forEach(t),S.forEach(t),w.forEach(t),Q.forEach(t),q.forEach(t),this.h()},h(){b(g,"class","nav-link"),b(g,"aria-current","page"),b(g,"href","#home"),ae(g,"active",r[0]),b(f,"class","nav-item"),b(k,"class","nav-link"),b(k,"href","#home"),ae(k,"active",!r[0]),b(p,"class","nav-item"),b(u,"class","nav nav-pills flex-column"),b(M,"alt","GitHub package.json version"),n2(M.src,R="https://img.shields.io/github/package-json/v/mskocik/svelty-picker?logo=github&logoColor=g")||b(M,"src",R),b(D,"href","https://github.com/mskocik/svelty-picker"),b(d,"class","col-auto"),b(O,"class","tab-pane fade"),b(O,"id","index"),b(O,"role","tabpanel"),b(O,"aria-labelledby","home-tab"),ae(O,"active",r[0]),ae(O,"show",r[0]),b(C,"class","tab-pane fade"),b(C,"id","profile"),b(C,"role","tabpanel"),b(C,"aria-labelledby","profile-tab"),ae(C,"active",!r[0]),ae(C,"show",!r[0]),b(A,"class","tab-content"),b(A,"id","myTabContent"),b(J,"class","col"),b(s,"class","row"),b(a,"class","container mt-4")},m(Z,q){F(Z,a,q),e(a,s),e(s,d),e(d,u),e(u,f),e(f,g),e(g,_),e(u,v),e(u,p),e(p,k),e(k,E),e(d,T),e(d,D),e(D,M),e(s,H),e(s,J),e(J,A),e(A,O),Kt(P,O,null),e(A,B),e(A,C),Kt(j,C,null),V=!0,U||(ce=[pe(g,"click",$t(r[1])),pe(k,"click",$t(r[2]))],U=!0)},p(Z,[q]){q&1&&ae(g,"active",Z[0]),q&1&&ae(k,"active",!Z[0]),q&1&&ae(O,"active",Z[0]),q&1&&ae(O,"show",Z[0]),q&1&&ae(C,"active",!Z[0]),q&1&&ae(C,"show",!Z[0])},i(Z){V||(ve(P.$$.fragment,Z),ve(j.$$.fragment,Z),V=!0)},o(Z){ke(P.$$.fragment,Z),ke(j.$$.fragment,Z),V=!1},d(Z){Z&&t(a),xt(P),xt(j),U=!1,Qs(ce)}}}function ak(r,a,s){let d=!0;return[d,()=>s(0,d=!0),()=>s(0,d=!1)]}class nk extends yo{constructor(a){super(),bo(this,a,ak,tk,Do,{})}}export{nk as default}; diff --git a/docs/_app/immutable/start-96f8d8c3.js b/docs/_app/immutable/start-96f8d8c3.js new file mode 100644 index 0000000..96d0a59 --- /dev/null +++ b/docs/_app/immutable/start-96f8d8c3.js @@ -0,0 +1 @@ +import{n as ye,s as Xe,S as Qe,i as et,a as tt,e as x,c as nt,b as V,g as G,t as C,d as M,f as T,h as D,j as st,k as rt,o as Re,l as it,m as at,p as ot,q as ve,r as B,u as ct,v as lt,w as ft,x as q,y as re,z as J,A as ie,B as ae,C as K,D as oe,E as Ie}from"./chunks/index-1e0e0ebd.js";const Z=[];function ue(s,e=ye){let t;const a=new Set;function l(n){if(Xe(s,n)&&(s=n,t)){const r=!Z.length;for(const i of a)i[1](),Z.push(i,s);if(r){for(let i=0;i{a.delete(i),a.size===0&&(t(),t=null)}}return{set:l,update:c,subscribe:f}}let De="",He="";function ut(s){De=s.base,He=s.assets||De}function dt(s){let e,t,a;const l=[s[1]||{}];var c=s[0][0];function f(n){let r={};for(let i=0;i{K(d,1)}),M()}c?(e=new c(f()),q(e.$$.fragment),T(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){a||(e&&T(e.$$.fragment,n),a=!0)},o(n){e&&C(e.$$.fragment,n),a=!1},d(n){n&&D(t),e&&K(e,n)}}}function pt(s){let e,t,a;const l=[s[1]||{}];var c=s[0][0];function f(n){let r={$$slots:{default:[gt]},$$scope:{ctx:n}};for(let i=0;i{K(d,1)}),M()}c?(e=new c(f(n)),q(e.$$.fragment),T(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){a||(e&&T(e.$$.fragment,n),a=!0)},o(n){e&&C(e.$$.fragment,n),a=!1},d(n){n&&D(t),e&&K(e,n)}}}function ht(s){let e,t,a;const l=[s[2]||{}];var c=s[0][1];function f(n){let r={};for(let i=0;i{K(d,1)}),M()}c?(e=new c(f()),q(e.$$.fragment),T(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){a||(e&&T(e.$$.fragment,n),a=!0)},o(n){e&&C(e.$$.fragment,n),a=!1},d(n){n&&D(t),e&&K(e,n)}}}function _t(s){let e,t,a;const l=[s[2]||{}];var c=s[0][1];function f(n){let r={$$slots:{default:[mt]},$$scope:{ctx:n}};for(let i=0;i{K(d,1)}),M()}c?(e=new c(f(n)),q(e.$$.fragment),T(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){a||(e&&T(e.$$.fragment,n),a=!0)},o(n){e&&C(e.$$.fragment,n),a=!1},d(n){n&&D(t),e&&K(e,n)}}}function mt(s){let e,t,a;const l=[s[3]||{}];var c=s[0][2];function f(n){let r={};for(let i=0;i{K(d,1)}),M()}c?(e=new c(f()),q(e.$$.fragment),T(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){a||(e&&T(e.$$.fragment,n),a=!0)},o(n){e&&C(e.$$.fragment,n),a=!1},d(n){n&&D(t),e&&K(e,n)}}}function gt(s){let e,t,a,l;const c=[_t,ht],f=[];function n(r,i){return r[0][2]?0:1}return e=n(s),t=f[e]=c[e](s),{c(){t.c(),a=x()},l(r){t.l(r),a=x()},m(r,i){f[e].m(r,i),V(r,a,i),l=!0},p(r,i){let d=e;e=n(r),e===d?f[e].p(r,i):(G(),C(f[d],1,1,()=>{f[d]=null}),M(),t=f[e],t?t.p(r,i):(t=f[e]=c[e](r),t.c()),T(t,1),t.m(a.parentNode,a))},i(r){l||(T(t),l=!0)},o(r){C(t),l=!1},d(r){f[e].d(r),r&&D(a)}}}function ze(s){let e,t=s[5]&&Ve(s);return{c(){e=it("div"),t&&t.c(),this.h()},l(a){e=at(a,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=ot(e);t&&t.l(l),l.forEach(D),this.h()},h(){ve(e,"id","svelte-announcer"),ve(e,"aria-live","assertive"),ve(e,"aria-atomic","true"),B(e,"position","absolute"),B(e,"left","0"),B(e,"top","0"),B(e,"clip","rect(0 0 0 0)"),B(e,"clip-path","inset(50%)"),B(e,"overflow","hidden"),B(e,"white-space","nowrap"),B(e,"width","1px"),B(e,"height","1px")},m(a,l){V(a,e,l),t&&t.m(e,null)},p(a,l){a[5]?t?t.p(a,l):(t=Ve(a),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(a){a&&D(e),t&&t.d()}}}function Ve(s){let e;return{c(){e=ct(s[6])},l(t){e=lt(t,s[6])},m(t,a){V(t,e,a)},p(t,a){a&64&&ft(e,t[6])},d(t){t&&D(e)}}}function wt(s){let e,t,a,l,c;const f=[pt,dt],n=[];function r(d,L){return d[0][1]?0:1}e=r(s),t=n[e]=f[e](s);let i=s[4]&&ze(s);return{c(){t.c(),a=tt(),i&&i.c(),l=x()},l(d){t.l(d),a=nt(d),i&&i.l(d),l=x()},m(d,L){n[e].m(d,L),V(d,a,L),i&&i.m(d,L),V(d,l,L),c=!0},p(d,[L]){let E=e;e=r(d),e===E?n[e].p(d,L):(G(),C(n[E],1,1,()=>{n[E]=null}),M(),t=n[e],t?t.p(d,L):(t=n[e]=f[e](d),t.c()),T(t,1),t.m(a.parentNode,a)),d[4]?i?i.p(d,L):(i=ze(d),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(d){c||(T(t),c=!0)},o(d){C(t),c=!1},d(d){n[e].d(d),d&&D(a),i&&i.d(d),d&&D(l)}}}function bt(s,e,t){let{stores:a}=e,{page:l}=e,{components:c}=e,{props_0:f=null}=e,{props_1:n=null}=e,{props_2:r=null}=e;st("__svelte__",a),rt(a.page.notify);let i=!1,d=!1,L=null;return Re(()=>{const E=a.page.subscribe(()=>{i&&(t(5,d=!0),t(6,L=document.title||"untitled page"))});return t(4,i=!0),E}),s.$$set=E=>{"stores"in E&&t(7,a=E.stores),"page"in E&&t(8,l=E.page),"components"in E&&t(0,c=E.components),"props_0"in E&&t(1,f=E.props_0),"props_1"in E&&t(2,n=E.props_1),"props_2"in E&&t(3,r=E.props_2)},s.$$.update=()=>{s.$$.dirty&384&&a.page.set(l)},[c,f,n,r,i,d,L,a,l]}class yt extends Qe{constructor(e){super(),et(this,e,bt,wt,Xe,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const vt=function(){const e=document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),$t=function(s){return"/svelty-picker/_app/"+s},qe={},$e=function(e,t,a){return!t||t.length===0?e():Promise.all(t.map(l=>{if(l=$t(l),l in qe)return;qe[l]=!0;const c=l.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${f}`))return;const n=document.createElement("link");if(n.rel=c?"stylesheet":vt,c||(n.as="script",n.crossOrigin=""),n.href=l,document.head.appendChild(n),c)return new Promise((r,i)=>{n.addEventListener("load",r),n.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())},kt={},de=[()=>$e(()=>import("./layout.svelte-91c1ce5c.js"),["immutable/layout.svelte-91c1ce5c.js","immutable/chunks/index-1e0e0ebd.js"]),()=>$e(()=>import("./error.svelte-173903e2.js"),["immutable/error.svelte-173903e2.js","immutable/chunks/index-1e0e0ebd.js"]),()=>$e(()=>import("./pages/index.svelte-a9a3ded9.js"),["immutable/pages/index.svelte-a9a3ded9.js","immutable/assets/index-a9bc93c9.css","immutable/chunks/index-1e0e0ebd.js"])],Et={"":[[0,2],[1]]};function Rt(s){s.client}function Je(s){return s instanceof Error||s&&s.name&&s.message?s:new Error(JSON.stringify(s))}function Ke(s){if(!s)return{};if(s.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in s)throw new Error("maxage should be replaced with cache: { maxage }");const e=s.status&&s.status>=400&&s.status<=599&&!s.redirect;if(s.error||e){const t=s.status;if(!s.error&&e)return{status:t||500,error:new Error(`${t}`)};const a=typeof s.error=="string"?new Error(s.error):s.error;return a instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:a}):{status:t,error:a}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof a}"`)}}if(s.redirect){if(!s.status||Math.floor(s.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof s.redirect!="string")throw new Error('"redirect" property returned from load() must be a string')}if(s.dependencies&&(!Array.isArray(s.dependencies)||s.dependencies.some(t=>typeof t!="string")))throw new Error('"dependencies" property returned from load() must be of type string[]');if(s.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return s}function Be(s,e){return s==="/"||e==="ignore"?s:e==="never"?s.endsWith("/")?s.slice(0,-1):s:e==="always"&&!s.endsWith("/")?s+"/":s}class Lt extends URL{get hash(){throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.")}}function We(s){let e=s.baseURI;if(!e){const t=s.getElementsByTagName("base");e=t.length?t[0].href:s.URL}return e}function Le(){return{x:pageXOffset,y:pageYOffset}}function Ye(s){return s.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Ge(s){return s instanceof SVGAElement?new URL(s.href.baseVal,document.baseURI):new URL(s.href)}function Me(s){const e=ue(s);let t=!0;function a(){t=!0,e.update(f=>f)}function l(f){t=!1,e.set(f)}function c(f){let n;return e.subscribe(r=>{(n===void 0||t&&r!==n)&&f(n=r)})}return{notify:a,set:l,subscribe:c}}function St(){const{set:s,subscribe:e}=ue(!1),t="1658175502760";let a;async function l(){clearTimeout(a);const f=await fetch(`${He}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(f.ok){const{version:n}=await f.json(),r=n!==t;return r&&(s(!0),clearTimeout(a)),r}else throw new Error(`Version check failed: ${f.status}`)}return{subscribe:e,check:l}}function Ut(s){let e=5381,t=s.length;if(typeof s=="string")for(;t;)e=e*33^s.charCodeAt(--t);else for(;t;)e=e*33^s[--t];return(e>>>0).toString(36)}const Se=window.fetch;function At(s,e){let a=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof s=="string"?s:s.url)}]`;e&&typeof e.body=="string"&&(a+=`[sveltekit\\:data-body="${Ut(e.body)}"]`);const l=document.querySelector(a);if(l&&l.textContent){const{body:c,...f}=JSON.parse(l.textContent);return Promise.resolve(new Response(c,f))}return Se(s,e)}const Nt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Ot(s){const e=[],t=[];let a=!0;return{pattern:s===""?/^\/$/:new RegExp(`^${decodeURIComponent(s).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,f,n)=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(r)return e.push(r[1]),t.push(r[2]),"(?:/(.*))?";const i=f===n.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((d,L)=>{if(L%2){const E=Nt.exec(d);if(!E)throw new Error(`Invalid param: ${d}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,Q,F,ce]=E;return e.push(F),t.push(ce),Q?"(.*?)":"([^/]+?)"}return i&&d.includes(".")&&(a=!1),d.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${a?"/?":""}$`),names:e,types:t}}function Pt(s,e,t,a){const l={};for(let c=0;c{const{pattern:r,names:i,types:d}=Ot(l);return{id:l,exec:L=>{const E=r.exec(L);if(E)return Pt(E,i,d,t)},a:c.map(L=>s[L]),b:f.map(L=>s[L]),has_shadow:!!n}})}const Ze="sveltekit:scroll",W="sveltekit:index",ke=xt(de,Et,kt),Ct=de[0](),Tt=de[1](),Fe={};let se={};try{se=JSON.parse(sessionStorage[Ze])}catch{}function Ee(s){se[s]=Le()}function jt({target:s,session:e,base:t,trailing_slash:a}){var je;const l=new Map,c=[],f={url:Me({}),page:Me({}),navigating:ue(null),session:ue(e),updated:St()},n={id:null,promise:null},r={before_navigate:[],after_navigate:[]};let i={branch:[],error:null,session_id:0,stuff:Fe,url:null},d=!1,L=!0,E=!1,Q=1,F=null,ce,Ue,Ae=!1;f.session.subscribe(async o=>{Ue=o,Ae&&(Q+=1,me(new URL(location.href),[],!0))}),Ae=!0;let X=!0,j=(je=history.state)==null?void 0:je[W];j||(j=Date.now(),history.replaceState({...history.state,[W]:j},"",location.href));const pe=se[j];pe&&(history.scrollRestoration="manual",scrollTo(pe.x,pe.y));let he=!1,_e,Ne;async function Oe(o,{noscroll:p=!1,replaceState:b=!1,keepfocus:u=!1,state:h={}},w){if(typeof o=="string"&&(o=new URL(o,We(document))),X)return we({url:o,scroll:p?Le():null,keepfocus:u,redirect_chain:w,details:{state:h,replaceState:b},accepted:()=>{},blocked:()=>{}});await ne(o)}async function Pe(o){const p=Te(o);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return n.promise=Ce(p,!1),n.id=p.id,n.promise}async function me(o,p,b,u,h){var R,N;const w=Te(o),k=Ne={};let _=w&&await Ce(w,b);if(!_&&o.origin===location.origin&&o.pathname===location.pathname&&(_=await te({status:404,error:new Error(`Not found: ${o.pathname}`),url:o,routeId:null})),!_)return await ne(o),!1;if(Ne!==k)return!1;if(c.length=0,_.redirect)if(p.length>10||p.includes(o.pathname))_=await te({status:500,error:new Error("Redirect loop"),url:o,routeId:null});else return X?Oe(new URL(_.redirect,o).href,{},[...p,o.pathname]):await ne(new URL(_.redirect,location.href)),!1;else((N=(R=_.props)==null?void 0:R.page)==null?void 0:N.status)>=400&&await f.updated.check()&&await ne(o);if(E=!0,u&&u.details){const{details:v}=u,S=v.replaceState?0:1;v.state[W]=j+=S,history[v.replaceState?"replaceState":"pushState"](v.state,"",o)}if(d?(i=_.state,_.props.page&&(_.props.page.url=o),ce.$set(_.props)):xe(_),u){const{scroll:v,keepfocus:S}=u;if(!S){const y=document.body,g=y.getAttribute("tabindex");y.tabIndex=-1,y.focus({preventScroll:!0}),setTimeout(()=>{var $;($=getSelection())==null||$.removeAllRanges()}),g!==null?y.setAttribute("tabindex",g):y.removeAttribute("tabindex")}if(await Ie(),L){const y=o.hash&&document.getElementById(o.hash.slice(1));v?scrollTo(v.x,v.y):y?y.scrollIntoView():scrollTo(0,0)}}else await Ie();n.promise=null,n.id=null,L=!0,_.props.page&&(_e=_.props.page);const m=_.state.branch[_.state.branch.length-1];X=(m==null?void 0:m.module.router)!==!1,h&&h(),E=!1}function xe(o){i=o.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),_e=o.props.page,ce=new yt({target:s,props:{...o.props,stores:f},hydrate:!0}),X){const b={from:null,to:new URL(location.href)};r.after_navigate.forEach(u=>u(b))}d=!0}async function ge({url:o,params:p,stuff:b,branch:u,status:h,error:w,routeId:k}){var y,g;const _=u.filter(Boolean),m=_.find($=>{var A;return(A=$.loaded)==null?void 0:A.redirect}),R={redirect:(y=m==null?void 0:m.loaded)==null?void 0:y.redirect,state:{url:o,params:p,branch:u,error:w,stuff:b,session_id:Q},props:{components:_.map($=>$.module.default)}};for(let $=0;$<_.length;$+=1){const A=_[$].loaded;R.props[`props_${$}`]=A?await A.props:null}if(!i.url||o.href!==i.url.href||i.error!==w||i.stuff!==b){R.props.page={error:w,params:p,routeId:k,status:h,stuff:b,url:o};const $=(A,z)=>{Object.defineProperty(R.props.page,A,{get:()=>{throw new Error(`$page.${A} has been replaced by $page.url.${z}`)}})};$("origin","origin"),$("path","pathname"),$("query","searchParams")}const v=_[_.length-1],S=(g=v==null?void 0:v.loaded)==null?void 0:g.cache;if(S){const $=o.pathname+o.search;let A=!1;const z=()=>{l.get($)===R&&l.delete($),O(),clearTimeout(U)},U=setTimeout(z,S.maxage*1e3),O=f.session.subscribe(()=>{A&&z()});A=!0,l.set($,R)}return R}async function ee({status:o,error:p,module:b,url:u,params:h,stuff:w,props:k,routeId:_}){const m={module:b,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:g}=new URL(y,u);m.uses.dependencies.add(g)}k&&m.uses.dependencies.add(u.href);const N={};for(const y in h)Object.defineProperty(N,y,{get(){return m.uses.params.add(y),h[y]},enumerable:!0});const v=Ue,S=new Lt(u);if(b.load){const y={routeId:_,params:N,props:k||{},get url(){return m.uses.url=!0,S},get session(){return m.uses.session=!0,v},get stuff(){return m.uses.stuff=!0,{...w}},async fetch(g,$){let A;typeof g=="string"?A=g:(A=g.url,$={body:g.method==="GET"||g.method==="HEAD"?void 0:await g.blob(),cache:g.cache,credentials:g.credentials,headers:g.headers,integrity:g.integrity,keepalive:g.keepalive,method:g.method,mode:g.mode,redirect:g.redirect,referrer:g.referrer,referrerPolicy:g.referrerPolicy,signal:g.signal,...$});const z=new URL(A,u).href;return R(z),d?Se(z,$):At(A,$)},status:o!=null?o:null,error:p!=null?p:null};m.loaded=Ke(await b.load.call(null,y)),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else k&&(m.loaded=Ke({props:k}));return m}async function Ce({id:o,url:p,params:b,route:u},h){var g,$,A,z;if(n.id===o&&n.promise)return n.promise;if(!h){const U=l.get(o);if(U)return U}const{a:w,b:k,has_shadow:_}=u,m=i.url&&{url:o!==i.url.pathname+i.url.search,params:Object.keys(b).filter(U=>i.params[U]!==b[U]),session:Q!==i.session_id};let R=[],N=Fe,v=!1,S=200,y=null;w.forEach(U=>U().catch(()=>{}));e:for(let U=0;UI.uses.params.has(Y))||m.session&&I.uses.session||Array.from(I.uses.dependencies).some(Y=>c.some(fe=>fe(Y)))||v&&I.uses.stuff){let Y={};const fe=_&&U===w.length-1;if(fe){const H=await Se(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(H.ok){const be=H.headers.get("x-sveltekit-location");if(be)return{redirect:be,props:{},state:i};Y=H.status===204?{}:await H.json()}else{S=H.status;try{y=await H.json()}catch{y=new Error("Failed to load data")}}}if(y||(O=await ee({module:P,url:p,params:b,props:Y,stuff:N,routeId:u.id})),O&&(fe&&(O.uses.url=!0),O.loaded)){if(O.loaded.error&&(S=(g=O.loaded.status)!=null?g:500,y=O.loaded.error),O.loaded.redirect)return{redirect:O.loaded.redirect,props:{},state:i};O.loaded.stuff&&(v=!0)}}else O=I}catch(P){S=500,y=Je(P)}if(y){for(;U--;)if(k[U]){let P,I,le=U;for(;!(I=R[le]);)le-=1;try{if(P=await ee({status:S,error:y,module:await k[U](),url:p,params:b,stuff:I.stuff,routeId:u.id}),($=P==null?void 0:P.loaded)!=null&&$.error)continue;(A=P==null?void 0:P.loaded)!=null&&A.stuff&&(N={...N,...P.loaded.stuff}),R=R.slice(0,le+1).concat(P);break e}catch{continue}}return await te({status:S,error:y,url:p,routeId:u.id})}else(z=O==null?void 0:O.loaded)!=null&&z.stuff&&(N={...N,...O.loaded.stuff}),R.push(O)}return await ge({url:p,params:b,stuff:N,branch:R,status:S,error:y,routeId:u.id})}async function te({status:o,error:p,url:b,routeId:u}){var _,m;const h={},w=await ee({module:await Ct,url:b,params:h,stuff:{},routeId:u}),k=await ee({status:o,error:p,module:await Tt,url:b,params:h,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:u});return await ge({url:b,params:h,stuff:{...(_=w==null?void 0:w.loaded)==null?void 0:_.stuff,...(m=k==null?void 0:k.loaded)==null?void 0:m.stuff},branch:[w,k],status:o,error:p,routeId:u})}function Te(o){if(o.origin!==location.origin||!o.pathname.startsWith(t))return;const p=decodeURI(o.pathname.slice(t.length)||"/");for(const b of ke){const u=b.exec(p);if(u)return{id:Be(o.pathname,a)+o.search,route:b,params:u,url:o}}}async function we({url:o,scroll:p,keepfocus:b,redirect_chain:u,details:h,accepted:w,blocked:k}){const _=i.url;let m=!1;const R={from:_,to:o,cancel:()=>m=!0};if(r.before_navigate.forEach(S=>S(R)),m){k();return}const N=Be(o.pathname,a),v=new URL(o.origin+N+o.search+o.hash);Ee(j),w(),d&&f.navigating.set({from:i.url,to:v}),await me(v,u,!1,{scroll:p,keepfocus:b,details:h},()=>{const S={from:_,to:v};r.after_navigate.forEach(y=>y(S)),f.navigating.set(null)})}function ne(o){return location.href=o.href,new Promise(()=>{})}return{after_navigate:o=>{Re(()=>(r.after_navigate.push(o),()=>{const p=r.after_navigate.indexOf(o);r.after_navigate.splice(p,1)}))},before_navigate:o=>{Re(()=>(r.before_navigate.push(o),()=>{const p=r.before_navigate.indexOf(o);r.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(E||!d)&&(L=!1)},goto:(o,p={})=>Oe(o,p,[]),invalidate:o=>{if(typeof o=="function")c.push(o);else{const{href:p}=new URL(o,location.href);c.push(b=>b===p)}return F||(F=Promise.resolve().then(async()=>{await me(new URL(location.href),[],!0),F=null})),F},prefetch:async o=>{const p=new URL(o,We(document));await Pe(p)},prefetch_routes:async o=>{const b=(o?ke.filter(u=>o.some(h=>u.exec(h))):ke).map(u=>Promise.all(u.a.map(h=>h())));await Promise.all(b)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",u=>{let h=!1;const w={from:i.url,to:null,cancel:()=>h=!0};r.before_navigate.forEach(k=>k(w)),h?(u.preventDefault(),u.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(j);try{sessionStorage[Ze]=JSON.stringify(se)}catch{}}});const o=u=>{const h=Ye(u);h&&h.href&&h.hasAttribute("sveltekit:prefetch")&&Pe(Ge(h))};let p;const b=u=>{clearTimeout(p),p=setTimeout(()=>{var h;(h=u.target)==null||h.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",o),addEventListener("mousemove",b),addEventListener("sveltekit:trigger_prefetch",o),addEventListener("click",u=>{if(!X||u.button||u.which!==1||u.metaKey||u.ctrlKey||u.shiftKey||u.altKey||u.defaultPrevented)return;const h=Ye(u);if(!h||!h.href)return;const w=h instanceof SVGAElement,k=Ge(h);if(!w&&k.origin==="null")return;const _=(h.getAttribute("rel")||"").split(/\s+/);if(h.hasAttribute("download")||_.includes("external")||h.hasAttribute("sveltekit:reload")||(w?h.target.baseVal:h.target))return;const[m,R]=k.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){he=!0,Ee(j),f.page.set({..._e,url:k}),f.page.notify();return}we({url:k,scroll:h.hasAttribute("sveltekit:noscroll")?Le():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:k.href===location.href},accepted:()=>u.preventDefault(),blocked:()=>u.preventDefault()})}),addEventListener("popstate",u=>{if(u.state&&X){if(u.state[W]===j)return;we({url:new URL(location.href),scroll:se[u.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=u.state[W]},blocked:()=>{const h=j-u.state[W];history.go(h)}})}}),addEventListener("hashchange",()=>{he&&(he=!1,history.replaceState({...history.state,[W]:++j},"",location.href))})},_hydrate:async({status:o,error:p,nodes:b,params:u,routeId:h})=>{var N;const w=new URL(location.href),k=[];let _={},m,R;try{for(let v=0;vt;function n(t){return t()}function r(){return Object.create(null)}function s(t){t.forEach(n)}function a(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(t){return null==t?"":t}function i(e){return e&&a(e.destroy)?e.destroy:t}const c="undefined"!=typeof window;let d=c?()=>window.performance.now():()=>Date.now(),u=c?t=>requestAnimationFrame(t):t;const h=new Set;function p(t){h.forEach((e=>{e.c(t)||(h.delete(e),e.f())})),0!==h.size&&u(p)}function m(t){let e;return 0===h.size&&u(p),{promise:new Promise((n=>{h.add(e={c:t,f:n})})),abort(){h.delete(e)}}}function g(t,e){t.appendChild(e)}function f(t,e,n){const r=y(t);if(!r.getElementById(e)){const t=C("style");t.id=e,t.textContent=n,b(r,t)}}function y(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function v(t){const e=C("style");return b(y(t),e),e.sheet}function b(t,e){g(t.head||t,e)}function x(t,e,n){t.insertBefore(e,n||null)}function w(t){t.parentNode.removeChild(t)}function T(t,e){for(let n=0;nt.removeEventListener(e,n,r)}function z(t){return function(e){return e.preventDefault(),t.call(this,e)}}function S(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function F(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function _(t,e){t.value=null==e?"":e}function A(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function H(t,e){for(let n=0;n>>0}(d)}_${l}`,h=y(t),{stylesheet:p,rules:m}=E.get(h)||function(t,e){const n={stylesheet:v(e),rules:{}};return E.set(t,n),n}(h,t);m[u]||(m[u]=!0,p.insertRule(`@keyframes ${u} ${d}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${u} ${r}ms linear ${s}ms 1 both`,N+=1,u}function L(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),s=n.length-r.length;s&&(t.style.animation=r.join(", "),N-=s,N||u((()=>{N||(E.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),E.clear())})))}function R(t){O=t}function I(){if(!O)throw new Error("Function called outside component initialization");return O}function j(){const t=I();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const s=B(e,n);r.slice().forEach((e=>{e.call(t,s)}))}}}function q(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const V=[],Z=[],G=[],J=[],W=Promise.resolve();let K=!1;function X(){K||(K=!0,W.then(rt))}function Q(t){G.push(t)}const tt=new Set;let et,nt=0;function rt(){const t=O;do{for(;nt{et=null}))),et}function ot(t,e,n){t.dispatchEvent(B(`${e?"intro":"outro"}${n}`))}const lt=new Set;let it;function ct(){it={r:0,c:[],p:it}}function dt(){it.r||s(it.c),it=it.p}function ut(t,e){t&&t.i&&(lt.delete(t),t.i(e))}function ht(t,e,n,r){if(t&&t.o){if(lt.has(t))return;lt.add(t),it.c.push((()=>{lt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}const pt={duration:0};function mt(n,r,s){let o,l,i=r(n,s),c=!1,u=0;function h(){o&&L(n,o)}function p(){const{delay:r=0,duration:s=300,easing:a=e,tick:p=t,css:g}=i||pt;g&&(o=P(n,0,1,s,r,a,g,u++)),p(0,1);const f=d()+r,y=f+s;l&&l.abort(),c=!0,Q((()=>ot(n,!0,"start"))),l=m((t=>{if(c){if(t>=y)return p(1,0),ot(n,!0,"end"),h(),c=!1;if(t>=f){const e=a((t-f)/s);p(e,1-e)}}return c}))}let g=!1;return{start(){g||(g=!0,L(n),a(i)?(i=i(),at().then(p)):p())},invalidate(){g=!1},end(){c&&(h(),c=!1)}}}function gt(n,r,o){let l,i=r(n,o),c=!0;const u=it;function h(){const{delay:r=0,duration:a=300,easing:o=e,tick:h=t,css:p}=i||pt;p&&(l=P(n,1,0,a,r,o,p));const g=d()+r,f=g+a;Q((()=>ot(n,!1,"start"))),m((t=>{if(c){if(t>=f)return h(0,1),ot(n,!1,"end"),--u.r||s(u.c),!1;if(t>=g){const e=o((t-g)/a);h(1-e,e)}}return c}))}return u.r+=1,a(i)?at().then((()=>{i=i(),h()})):h(),{end(t){t&&i.tick&&i.tick(1,0),c&&(l&&L(n,l),c=!1)}}}function ft(n,r,o,l){let i=r(n,o),c=l?0:1,u=null,h=null,p=null;function g(){p&&L(n,p)}function f(t,e){const n=t.b-c;return e*=Math.abs(n),{a:c,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function y(r){const{delay:a=0,duration:o=300,easing:l=e,tick:y=t,css:v}=i||pt,b={start:d()+a,b:r};r||(b.group=it,it.r+=1),u||h?h=b:(v&&(g(),p=P(n,c,r,o,a,l,v)),r&&y(0,1),u=f(b,o),Q((()=>ot(n,r,"start"))),m((t=>{if(h&&t>h.start&&(u=f(h,o),h=null,ot(n,u.b,"start"),v&&(g(),p=P(n,c,u.b,u.duration,0,l,i.css))),u)if(t>=u.end)y(c=u.b,1-c),ot(n,u.b,"end"),h||(u.b?g():--u.group.r||s(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;c=u.a+u.d*l(e/u.duration),y(c,1-c)}return!(!u&&!h)})))}return{run(t){a(i)?at().then((()=>{i=i(),y(t)})):y(t)},end(){g(),u=h=null}}}function yt(t,e){t.d(1),e.delete(t.key)}function vt(t,e){ht(t,1,1,(()=>{e.delete(t.key)}))}function bt(t,e,n,r,s,a,o,l,i,c,d,u){let h=t.length,p=a.length,m=h;const g={};for(;m--;)g[t[m].key]=m;const f=[],y=new Map,v=new Map;for(m=p;m--;){const t=u(s,a,m),l=n(t);let i=o.get(l);i?r&&i.p(t,e):(i=c(l,t),i.c()),y.set(l,f[m]=i),l in g&&v.set(l,Math.abs(m-g[l]))}const b=new Set,x=new Set;function w(t){ut(t,1),t.m(l,d),o.set(t.key,t),d=t.first,p--}for(;h&&p;){const e=f[p-1],n=t[h-1],r=e.key,s=n.key;e===n?(d=e.first,h--,p--):y.has(s)?!o.has(r)||b.has(r)?w(e):x.has(s)?h--:v.get(r)>v.get(s)?(x.add(r),w(e)):(b.add(s),h--):(i(n,o),h--)}for(;h--;){const e=t[h];y.has(e.key)||i(e,o)}for(;p;)w(f[p-1]);return f}function xt(t){t&&t.c()}function wt(t,e,r,o){const{fragment:l,on_mount:i,on_destroy:c,after_update:d}=t.$$;l&&l.m(e,r),o||Q((()=>{const e=i.map(n).filter(a);c?c.push(...e):s(e),t.$$.on_mount=[]})),d.forEach(Q)}function Tt(t,e){const n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ct(e,n,a,o,l,i,c,d=[-1]){const u=O;R(e);const h=e.$$={fragment:null,ctx:null,props:i,update:t,not_equal:l,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:r(),dirty:d,skip_bound:!1,root:n.target||u.$$.root};c&&c(h.root);let p=!1;if(h.ctx=a?a(e,n.props||{},((t,n,...r)=>{const s=r.length?r[0]:n;return h.ctx&&l(h.ctx[t],h.ctx[t]=s)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](s),p&&function(t,e){-1===t.$$.dirty[0]&&(V.push(t),X(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var $t={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,visible:!1,inputClasses:null,todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"}};function Mt(t){const e=t-1;return e*e*e+1}function Ut(t,{delay:n=0,duration:r=400,easing:s=e}={}){const a=+getComputedStyle(t).opacity;return{delay:n,duration:r,easing:s,css:t=>"opacity: "+t*a}}function Dt(t,e,n,r,s){if(0===n){const n=11,r=1,s=-1,a=[];let o=[],l=t.getUTCFullYear()-t.getUTCFullYear()%10-1;for(let t=0;t<12;t++)o.push(l+t),4===o.length&&(a.push(o),o=[]);let i=null;return e||(e=new Date),e.getUTCFullYear()>=l&&(i=e.getUTCFullYear()%l),{grid:a,todayMark:s,nextFrom:n,prevTo:r,selectionMark:i}}if(1===n){let n=[],s=[],a=12,o=24;const l=t.toISOString().split("T")[0].substring(0,8),i=new Date(l+"01 00:00:00"),c=i.getFullYear()-1;i.setFullYear(c);let d=0;for(let t=0;t<3;t++){for(let t=0;t<12;t++)i.setUTCMonth(t),s.push(r.monthsShort[t%12]),4===s.length&&(n.push(s),s=[]);i.setFullYear(i.getFullYear()+1)}let u=null;return e||(e=new Date),e.getUTCFullYear()-c>=0&&e.getUTCFullYear()-c<=2&&(u=e.getUTCMonth()+12*(e.getUTCFullYear()-c||0)),{grid:n,todayMark:d,nextFrom:o,prevTo:a,selectionMark:u}}let a=t||new Date,o=a.getUTCFullYear(),l=a.getUTCMonth();a.getUTCDate(),a.getUTCHours();let i=new Date,c=Ft(o,l-1,28,0,0,0,0),d=St.getDaysInMonth(c.getUTCFullYear(),c.getUTCMonth());c.setUTCDate(d),c.setUTCDate(d-(c.getUTCDay()-s+7)%7);let u=new Date(c);u.setUTCDate(u.getUTCDate()+42);let h=u.valueOf(),p=[],m=[],g=-1,f=null,y=0,v=42,b=0;for(;c.valueOf()o||c.getUTCFullYear()===o&&c.getUTCMonth()>l)&&(v=b-1),c.setUTCDate(c.getUTCDate()+1),c.getUTCFullYear()===i.getUTCFullYear()&&c.getUTCMonth()===i.getUTCMonth()&&c.getUTCDate()===i.getUTCDate()&&(g=b),!f&&e&&c.getUTCFullYear()===e.getUTCFullYear()&&c.getUTCMonth()===e.getUTCMonth()&&c.getUTCDate()===e.getUTCDate()&&(f=b),7===m.length&&(p.push(m),m=[]);return{grid:p,todayMark:g,prevTo:y,nextFrom:v,selectionMark:f}}function zt(t,e){if(2===e)return t<0&&(t=42+t),{x:t%7,y:Math.floor(t/7)}}const St={isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,St.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}};function Ft(){return new Date(Date.UTC.apply(Date,arguments))}function _t(t,e,n,r){if(t instanceof Date){const e=new Date(t.valueOf()-6e4*t.getTimezoneOffset());return e.setMilliseconds(0),e}e=/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)?Ht.parseFormat("yyyy-mm-dd",r):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(t)?Ht.parseFormat("yyyy-mm-dd hh:ii",r):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(t)?Ht.parseFormat("yyyy-mm-dd hh:ii:ss",r):Ht.parseFormat(e,r);var s,a,o=t&&t.toString().match(Ht.nonpunctuation)||[],l=(t=new Date(0,0,0,0,0,0,0),{}),i=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],c={hh:function(t,e){return t.setUTCHours(e)},h:function(t,e){return t.setUTCHours(e)},HH:function(t,e){return t.setUTCHours(12===e?0:e)},H:function(t,e){return t.setUTCHours(12===e?0:e)},ii:function(t,e){return t.setUTCMinutes(e)},i:function(t,e){return t.setUTCMinutes(e)},ss:function(t,e){return t.setUTCSeconds(e)},s:function(t,e){return t.setUTCSeconds(e)},yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;){if(isNaN(t.getUTCMonth()))return t;t.setUTCDate(t.getUTCDate()-1)}return t},d:function(t,e){return t.setUTCDate(e)},p:function(t,e){return t.setUTCHours(1===e?t.getUTCHours()+12:t.getUTCHours())}};if(c.M=c.MM=c.mm=c.m,c.dd=c.d,c.P=c.p,t=Ft(t.getFullYear(),t.getMonth(),t.getDate(),t.getUTCHours(),t.getUTCMinutes(),t.getSeconds()),o.length===e.parts.length){for(var d=0,u=e.parts.length;dwindow.innerWidth?"right: 1rem":`left: ${r.left}px`),e.height+e.top>window.innerHeight+window.scrollY?n.push("bottom: 1rem"):n.push(`top: ${r.top+r.height+window.scrollY}px`),t.style=n.join(";"),t.hidden=!1,document.body.appendChild(t)}return t.hidden=!1,{destroy:function(){t.parentNode&&t.parentNode.removeChild(t)}}}function Bt(t,{delay:e=0,duration:n=400,easing:r=Mt,start:s=0,end:a=1,opacity:o=0}={}){const l=getComputedStyle(t),i=+l.opacity,c="none"===l.transform?"":l.transform,d=1-s,u=i*(1-o);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n transform: ${c} scale(${1!==a?s+a*e:1-d*e});\n opacity: ${i-u*e};\n `}}function Et(t){f(t,"svelte-1xp8yha",".sdt-cal-td.svelte-1xp8yha.svelte-1xp8yha{padding:0;font-size:90%;text-align:center;background-color:var(--sdt-bg-main);;}.sdt-cal-th.svelte-1xp8yha.svelte-1xp8yha{height:24px}.sdt-calendar.svelte-1xp8yha.svelte-1xp8yha{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-1xp8yha.svelte-1xp8yha{display:grid}.sdt-calendar.is-grid.svelte-1xp8yha .sdt-table.svelte-1xp8yha{grid-column:1/2;grid-row:1/2\r\n }.sdt-table.svelte-1xp8yha.svelte-1xp8yha{width:100%;border-collapse:collapse}.sdt-table-height.svelte-1xp8yha.svelte-1xp8yha{height:222px}.animate-transition.svelte-1xp8yha.svelte-1xp8yha{will-change:transform;transition:transform 0.3s ease\r\n }.not-current.svelte-1xp8yha.svelte-1xp8yha{opacity:0.3}.not-current.svelte-1xp8yha.svelte-1xp8yha:hover{opacity:0.55}.std-btn.svelte-1xp8yha.svelte-1xp8yha{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:0.3rem;box-sizing:border-box;color:var(--sdt-color)}.sdt-btn-day.svelte-1xp8yha.svelte-1xp8yha{max-height:32px}.std-btn[disabled].svelte-1xp8yha.svelte-1xp8yha{cursor:not-allowed;opacity:0.35}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha{width:auto;font-weight:bold;padding:0.375rem 0.5rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha:first-of-type{padding-left:0.375rem;padding-right:0.375rem}.std-btn-header.icon-btn.svelte-1xp8yha.svelte-1xp8yha{padding-left:0.25rem;padding-right:0.25rem}.std-btn.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-bg-hover)}.is-selected.svelte-1xp8yha .std-btn.svelte-1xp8yha{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main));opacity:0.9}.std-btn-header.svelte-1xp8yha.svelte-1xp8yha:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-time-icon.svelte-1xp8yha.svelte-1xp8yha{margin-right:-4px}.sdt-time-icon.svelte-1xp8yha svg.svelte-1xp8yha{margin:4px 0}.sdt-tbody-lg.svelte-1xp8yha.svelte-1xp8yha{background-color:var(--sdt-bg-main)}.sdt-tbody-lg.svelte-1xp8yha .std-btn.svelte-1xp8yha{height:72px}.sdt-thead-nav.svelte-1xp8yha.svelte-1xp8yha{display:flex;margin-bottom:0.25rem}.sdt-nav-btns.svelte-1xp8yha.svelte-1xp8yha{white-space:nowrap}.sdt-toggle-btn.svelte-1xp8yha.svelte-1xp8yha{width:100%;text-align:left}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{box-sizing:border-box;position:absolute;content:'';margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-shadow);border-top:4px solid var(--sdt-shadow);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-1xp8yha.svelte-1xp8yha{fill:var(--sdt-color)}.sdt-today.svelte-1xp8yha.svelte-1xp8yha:hover:before{border-left-color:var(--sdt-primary);border-top-color:var(--sdt-primary)}.is-selected.sdt-today.svelte-1xp8yha.svelte-1xp8yha:before{border-left-color:#eee;border-top-color:#eee}")}function Ot(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function Nt(t,e,n){const r=t.slice();return r[40]=e[n],r[42]=n,r}function Pt(t,e,n){const r=t.slice();return r[43]=e[n],r}function Lt(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function Rt(t,e,n){const r=t.slice();return r[47]=e[n],r[42]=n,r}function It(t,e,n){const r=t.slice();return r[37]=e[n],r[39]=n,r}function jt(t,e,n){const r=t.slice();return r[50]=e[n],r[42]=n,r}function qt(t){let e,n,r,s,a,o;return{c(){e=C("button"),n=k("svg"),r=k("path"),S(r,"fill-rule","evenodd"),S(r,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),S(n,"class","sdt-svg svelte-1xp8yha"),S(n,"xmlns","http://www.w3.org/2000/svg"),S(n,"viewBox","0 0 16 16"),S(n,"width","16"),S(n,"height","16"),S(e,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-1xp8yha"),S(e,"title",s=t[0].timeView)},m(s,l){x(s,e,l),g(e,n),g(n,r),a||(o=D(e,"click",z(t[20])),a=!0)},p(t,n){1&n[0]&&s!==(s=t[0].timeView)&&S(e,"title",s)},d(t){t&&w(e),a=!1,o()}}}function Vt(t){let e,n,r,s,a,o,l,i=t[9].grid,c=[];for(let e=0;e{s&&s.end(1),r=mt(n,t[11],{duration:re,start:t[13],opacity:1}),r.start()})),a=!0)},o(e){r&&r.invalidate(),e&&(s=gt(n,t[11],{duration:re,end:t[12],start:1})),a=!1},d(t){t&&w(e),T(c,t),t&&s&&s.end(),o=!1,l()}}}function Zt(t,e){let n,r,s,a,o,l=e[50]+"";function i(){return e[29](e[50])}return{key:t,first:null,c(){n=C("td"),r=C("button"),s=$(l),S(r,"class","std-btn svelte-1xp8yha"),Y(r,"not-current",!e[14](4*e[39]+e[42])),S(n,"class","svelte-1xp8yha"),Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){x(t,n,e),g(n,r),g(r,s),a||(o=D(r,"click",z(i)),a=!0)},p(t,a){e=t,512&a[0]&&l!==(l=e[50]+"")&&F(s,l),16896&a[0]&&Y(r,"not-current",!e[14](4*e[39]+e[42])),512&a[0]&&Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&w(n),a=!1,o()}}}function Gt(t){let e,n,r=[],s=new Map,a=t[37];const o=t=>t[42];for(let e=0;e{o&&o.end(1),a=mt(n,t[11],{duration:re,start:t[13],opacity:1}),a.start()})),l=!0)},o(e){a&&a.invalidate(),e&&(o=gt(n,t[11],{duration:re,end:t[12],start:1})),l=!1},d(t){t&&w(e),T(u,t),t&&o&&o.end(),i=!1,s(c)}}}function Wt(t,e){let n,r,s,a,o,l=e[47]+"";function i(){return e[30](e[47])}return{key:t,first:null,c(){n=C("td"),r=C("button"),s=$(l),S(r,"class","std-btn svelte-1xp8yha"),Y(r,"not-current",!e[14](4*e[39]+e[42])),S(n,"class","svelte-1xp8yha"),Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){x(t,n,e),g(n,r),g(r,s),a||(o=D(r,"click",z(i)),a=!0)},p(t,a){e=t,512&a[0]&&l!==(l=e[47]+"")&&F(s,l),16896&a[0]&&Y(r,"not-current",!e[14](4*e[39]+e[42])),512&a[0]&&Y(n,"is-selected",4*e[39]+e[42]===e[9].selectionMark)},d(t){t&&w(n),a=!1,o()}}}function Kt(t){let e,n,r=[],s=new Map,a=t[37];const o=t=>t[42];for(let e=0;e{o&&o.end(1),a=mt(n,t[11],{duration:re,start:.5,opacity:1}),a.start()})),l=!0)},o(e){a&&a.invalidate(),e&&(o=gt(n,t[11],{duration:re,start:Math.abs(t[4])})),l=!1},d(t){t&&w(e),T(u,t),T(p,t),t&&o&&o.end(),i=!1,c()}}}function Qt(t){let e,n,r=t[43]+"";return{c(){e=C("th"),n=$(r),S(e,"class","sdt-cal-th svelte-1xp8yha")},m(t,r){x(t,e,r),g(e,n)},p(t,e){1024&e[0]&&r!==(r=t[43]+"")&&F(n,r)},d(t){t&&w(e)}}}function te(t,e){let n,r,s,a,o,l,i=e[40].getUTCDate()+"";function c(){return e[32](e[40])}return{key:t,first:null,c(){n=C("td"),r=C("button"),s=$(i),S(r,"class","std-btn sdt-btn-day svelte-1xp8yha"),r.disabled=a=e[15](e[40]),Y(r,"not-current",!e[14](7*e[39]+e[42],e[40])),S(n,"class","sdt-cal-td svelte-1xp8yha"),Y(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),Y(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark),this.first=n},m(t,e){x(t,n,e),g(n,r),g(r,s),o||(l=D(r,"click",z(c)),o=!0)},p(t,o){e=t,512&o[0]&&i!==(i=e[40].getUTCDate()+"")&&F(s,i),512&o[0]&&a!==(a=e[15](e[40]))&&(r.disabled=a),16896&o[0]&&Y(r,"not-current",!e[14](7*e[39]+e[42],e[40])),512&o[0]&&Y(n,"sdt-today",7*e[39]+e[42]===e[9].todayMark),512&o[0]&&Y(n,"is-selected",7*e[39]+e[42]===e[9].selectionMark)},d(t){t&&w(n),o=!1,l()}}}function ee(t){let e,n,r=[],s=new Map,a=t[37];const o=t=>t[42];for(let e=0;e',c=M(),d=C("button"),d.innerHTML='',u=M(),h=C("div"),b&&b.c(),p=M(),T&&T.c(),m=M(),k&&k.c(),S(n,"class","std-btn std-btn-header sdt-toggle-btn svelte-1xp8yha"),S(i,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),S(d,"class","std-btn std-btn-header icon-btn svelte-1xp8yha"),S(o,"class","sdt-nav-btns svelte-1xp8yha"),S(e,"class","sdt-thead-nav svelte-1xp8yha"),S(h,"class","sdt-calendar svelte-1xp8yha"),Y(h,"is-grid",t[5])},m(s,w){x(s,e,w),g(e,n),g(n,r),g(e,a),g(e,o),v&&v.m(o,null),g(o,l),g(o,i),g(o,c),g(o,d),x(s,u,w),x(s,h,w),b&&b.m(h,null),g(h,p),T&&T.m(h,null),g(h,m),k&&k.m(h,null),f||(y=[D(n,"click",z(t[17])),D(i,"click",z(t[27])),D(d,"click",z(t[28]))],f=!0)},p(t,e){256&e[0]&&F(r,t[8]),t[1]&&t[2]?v?v.p(t,e):(v=qt(t),v.c(),v.m(o,l)):v&&(v.d(1),v=null),0===t[3]?b?(b.p(t,e),8&e[0]&&ut(b,1)):(b=Vt(t),b.c(),ut(b,1),b.m(h,p)):b&&(ct(),ht(b,1,1,(()=>{b=null})),dt()),1===t[3]?T?(T.p(t,e),8&e[0]&&ut(T,1)):(T=Jt(t),T.c(),ut(T,1),T.m(h,m)):T&&(ct(),ht(T,1,1,(()=>{T=null})),dt()),2===t[3]?k?(k.p(t,e),8&e[0]&&ut(k,1)):(k=Xt(t),k.c(),ut(k,1),k.m(h,null)):k&&(ct(),ht(k,1,1,(()=>{k=null})),dt()),32&e[0]&&Y(h,"is-grid",t[5])},i(t){ut(b),ut(T),ut(k)},o(t){ht(b),ht(T),ht(k)},d(t){t&&w(e),v&&v.d(),t&&w(u),t&&w(h),b&&b.d(),T&&T.d(),k&&k.d(),f=!1,s(y)}}}let re=400;function se(t,e,n){let r,s,a,o,l,i,{date:c=null}=e,{startDate:d=null}=e,{endDate:u=null}=e,{weekStart:h=1}=e,{i18n:p}=e,{enableTimeToggle:m=!1}=e;function g(t,e,n){const r=y.getTimezoneOffset()>=0?0:1,s=new Date(t,e,y.getUTCDate()+r),a=Dt(s,s,b,p,h);k(n),M(a.grid[Math.floor(a.selectionMark/7)][a.selectionMark%7])}let f=c,y=c?new Date(c.valueOf()):new Date;const v=j();let b=2,x=-2,w=!1,T=222,C=null;function k(t){const e=0===b?120:1===b?12:1;y.setUTCMonth(y.getUTCMonth()+t*e),n(26,y),n(21,c),n(2,f),n(7,C=null),n(6,T=222)}function $(t){if(1!==b)return k(t);n(7,C=()=>{k(t)}),n(6,T=-1===t?T-222:T+222)}function M(t){switch(n(4,x=1),n(5,w=!0),b){case 0:y.setYear(t),n(26,y),n(21,c),n(2,f);break;case 1:y.setUTCMonth(p.monthsShort.indexOf(t)),n(26,y),n(21,c),n(2,f);break;case 2:const e=Ft(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());f&&(e.setMinutes(f.getMinutes()),e.setUTCHours(f.getUTCHours())),n(2,f=e),v("date",f)}b<2&&n(3,b++,b)}return t.$$set=t=>{"date"in t&&n(21,c=t.date),"startDate"in t&&n(22,d=t.startDate),"endDate"in t&&n(23,u=t.endDate),"weekStart"in t&&n(24,h=t.weekStart),"i18n"in t&&n(0,p=t.i18n),"enableTimeToggle"in t&&n(1,m=t.enableTimeToggle)},t.$$.update=()=>{4194304&t.$$.dirty[0]&&d&&d.setUTCDate(d.getUTCDate()-1),2097156&t.$$.dirty[0]&&c!==f&&(n(2,f=c),c&&n(26,y=new Date(c.valueOf())),n(4,x=1),n(5,w=!0),n(3,b=2)),16&t.$$.dirty[0]&&n(13,r=x<1?1.5:.5),16&t.$$.dirty[0]&&n(12,s=x<1?1:1.5),16&t.$$.dirty[0]&&n(11,a=-2===x?Ut:null!==x?Bt:()=>{}),83886093&t.$$.dirty[0]&&n(9,o=Dt(y,f,b,p,h)),16777217&t.$$.dirty[0]&&n(10,l=h>-1?p.daysMin.concat(p.daysMin).slice(h,7+h):p.daysMin.slice(h,7+h)),67108872&t.$$.dirty[0]&&n(8,i=function(){switch(b){case 0:return`${o.grid[0][1]} - ${o.grid[2][2]}`;case 1:return y.getUTCFullYear();case 2:return p.months[y.getUTCMonth()]+" "+y.getUTCFullYear()}}())},[p,m,f,b,x,w,T,C,i,o,l,a,s,r,function(t){return o.prevTo<=t&&tt)||!!(u&&u<=t)},$,function(){n(4,x=-1),n(5,w=!0),b&&n(3,b--,b)},M,function(){n(5,w=!1)},function(){v("switch","time")},c,d,u,h,function(t,e){if(!f)return void M(new Date);let n;switch(t){case"PageDown":e=!0;case"ArrowDown":if(e)return g(y.getUTCFullYear(),y.getMonth()+1,1);if(n=zt(o.selectionMark+7,b),n.y>5){const t=new Date(y.getUTCFullYear(),y.getMonth()+1,y.getDate());let e=Dt(t,f,b,p,h);return e.grid[0][n.x].getUTCMonth()0?y.getMonth():11,1),f,b,p,h);return n.y=t.grid[5][n.x].getUTCDate()===f.getUTCDate()?4:t.grid[5][n.x].getUTCMonth()===f.getUTCMonth()?3:5,k(-1),void M(t.grid[n.y][n.x])}o.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&k(-1),M(o.grid[n.y][n.x]);break;case"ArrowLeft":if(e)return g(y.getUTCFullYear()-1,y.getMonth(),1);n=zt(o.selectionMark-1,b),o.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&k(-1),M(o.grid[n.y][n.x]);break;case"ArrowRight":if(e)return g(y.getUTCFullYear()+1,y.getMonth(),1);n=zt(o.selectionMark+1,b),o.grid[n.y][n.x].getUTCMonth()!==y.getUTCMonth()&&k(1),M(o.grid[n.y][n.x])}},y,()=>$(-1),()=>$(1),t=>{M(t)},t=>{M(t)},()=>C&&C(),t=>{M(t)}]}class ae extends kt{constructor(t){super(),Ct(this,t,se,ne,o,{date:21,startDate:22,endDate:23,weekStart:24,i18n:0,enableTimeToggle:1,handleGridNav:25},Et,[-1,-1])}get handleGridNav(){return this.$$.ctx[25]}}function oe(t){f(t,"svelte-yz95cb",".sdt-timer.svelte-yz95cb.svelte-yz95cb{position:relative;width:272px}.sdt-time-head.svelte-yz95cb.svelte-yz95cb{position:relative;display:flex;justify-content:center;align-items:center}.sdt-time-figure.svelte-yz95cb.svelte-yz95cb{font-size:1.5rem;font-weight:bold}.sdt-clock.svelte-yz95cb.svelte-yz95cb{margin:auto;position:relative;width:260px;height:260px;background-color:var(--sdt-clock-bg);border-radius:50%;transition:background-color 0.3s}.sdt-clock.is-minute-view.svelte-yz95cb.svelte-yz95cb{background-color:var(--sdt-clock-bg-minute, var(--sdt-clock-bg));box-shadow:var(--sdt-clock-bg-shadow)}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;padding:0.375rem;color:var(--sdt-color)}.sdt-svg.svelte-yz95cb.svelte-yz95cb{fill:var(--sdt-color)}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb:not(.is-active){opacity:0.5}.sdt-time-btn.svelte-yz95cb.svelte-yz95cb:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-back-btn.svelte-yz95cb.svelte-yz95cb{position:absolute;top:0;left:0;opacity:1 !important}.sdt-meridian.svelte-yz95cb.svelte-yz95cb{position:absolute;top:0.25rem;right:0.25rem;display:flex;flex-flow:column;font-size:90%}.sdt-meridian.svelte-yz95cb .sdt-time-btn.svelte-yz95cb{padding:0.15rem 0.5rem}.sdt-meridian.svelte-yz95cb .sdt-time-btn.is-active.svelte-yz95cb{font-weight:bold}.sdt-middle-dot.svelte-yz95cb.svelte-yz95cb{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%, -50%);background-color:var(--sdt-primary);border-radius:50%}.sdt-hand-pointer.svelte-yz95cb.svelte-yz95cb{width:2px;height:calc(40% + 1px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-primary);transform-origin:center bottom 0;transition:transform 0.3s ease, height 0.15s ease}.sdt-hand-circle.svelte-yz95cb.svelte-yz95cb{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-primary);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-yz95cb.svelte-yz95cb{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%, -50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:transparent}.sdt-tick.is-selected.svelte-yz95cb.svelte-yz95cb{animation:svelte-yz95cb-tick-selection 0s 0.175s ease-out forwards}@keyframes svelte-yz95cb-tick-selection{0%{color:initial;background-color:transparent}100%{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}")}function le(t,e,n){const r=t.slice();return r[31]=e[n],r[33]=n,r}function ie(t,e,n){const r=t.slice();return r[31]=e[n],r[33]=n,r}function ce(t){let e,n,r,s,a,o;return{c(){e=C("button"),n=k("svg"),r=k("path"),S(r,"fill-rule","evenodd"),S(r,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),S(n,"class","sdt-svg svelte-yz95cb"),S(n,"xmlns","http://www.w3.org/2000/svg"),S(n,"viewBox","0 0 24 24"),S(n,"width","20"),S(n,"height","20"),S(e,"class","sdt-time-btn sdt-back-btn svelte-yz95cb"),S(e,"title",s=t[2].backToDate)},m(s,l){x(s,e,l),g(e,n),g(n,r),a||(o=D(e,"click",t[16]),a=!0)},p(t,n){4&n[0]&&s!==(s=t[2].backToDate)&&S(e,"title",s)},d(t){t&&w(e),a=!1,o()}}}function de(t){let e,n,r,a,o,l,i,c,d,u;return{c(){e=C("div"),n=C("button"),r=$("AM"),o=M(),l=C("button"),i=$("PM"),S(n,"class","sdt-time-btn svelte-yz95cb"),S(n,"data-value",a=t[4]%12),Y(n,"is-active",t[4]<12),S(l,"class","sdt-time-btn svelte-yz95cb"),S(l,"data-value",c=t[4]%12+12),Y(l,"is-active",t[4]>=12),S(e,"class","sdt-meridian svelte-yz95cb")},m(s,a){x(s,e,a),g(e,n),g(n,r),g(e,o),g(e,l),g(l,i),d||(u=[D(n,"click",t[14]),D(l,"click",t[14])],d=!0)},p(t,e){16&e[0]&&a!==(a=t[4]%12)&&S(n,"data-value",a),16&e[0]&&Y(n,"is-active",t[4]<12),16&e[0]&&c!==(c=t[4]%12+12)&&S(l,"data-value",c),16&e[0]&&Y(l,"is-active",t[4]>=12)},d(t){t&&w(e),d=!1,s(u)}}}function ue(t,e){let n,r,s,a,o,l,i=e[31].val+"";return{key:t,first:null,c(){n=C("button"),r=$(i),S(n,"style",s=`left:${e[31].x}px; top:${e[31].y}px`),S(n,"class","sdt-tick svelte-yz95cb"),S(n,"data-value",a=e[31].val),Y(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33])),this.first=n},m(t,e){x(t,n,e),g(n,r),l=!0},p(t,o){e=t,(!l||512&o[0])&&i!==(i=e[31].val+"")&&F(r,i),(!l||512&o[0]&&s!==(s=`left:${e[31].x}px; top:${e[31].y}px`))&&S(n,"style",s),(!l||512&o[0]&&a!==(a=e[31].val))&&S(n,"data-value",a),4664&o[0]&&Y(n,"is-selected",e[12](e[3]?e[5]:e[4],e[31].val,e[33]))},i(t){l||(t&&Q((()=>{o||(o=ft(n,Ut,{duration:200},!0)),o.run(1)})),l=!0)},o(t){t&&(o||(o=ft(n,Ut,{duration:200},!1)),o.run(0)),l=!1},d(t){t&&w(n),t&&o&&o.end()}}}function he(t){let e,n,r=t[8],s=[];for(let e=0;eht(s[t],1,1,(()=>{s[t]=null}));return{c(){for(let t=0;t{a||(a=ft(e,Ut,{duration:200},!0)),a.run(1)})),o=!0)},o(t){t&&(a||(a=ft(e,Ut,{duration:200},!1)),a.run(0)),o=!1},d(t){t&&w(e),t&&a&&a.end()}}}function me(t){let e,n,r,a,o,l,i,c,d,u,h,p,m,f,y,v,b,T,k,U,z,_,A,H=t[11](t[4],t[0])+"",B=t[11](t[5],!1)+"",E=[],O=new Map,N=t[1]&&ce(t),P=t[0]&&de(t),L=t[9];const R=t=>t[31].val;for(let e=0;e{I=null})),dt()):I?(I.p(t,e),9&e[0]&&ut(I,1)):(I=he(t),I.c(),ut(I,1),I.m(m,null)),8&e[0]&&Y(m,"is-minute-view",t[3])},i(t){if(!z){for(let t=0;t{U=mt(e,Ut,{duration:200}),U.start()})),z=!0}},o(t){for(let t=0;t=9||t<3?-1:1)*e),val:r?5*t||n:t?t+s:n});return c}function w(t){if(v&&("mousemove"!==t.type||f)&&(g||"BUTTON"===t.target.tagName)){if("BUTTON"===t.target.tagName){let e=parseInt(t.target.dataset.value);const n=t.meridianSwitch||!g?"setUTCHours":"setUTCMinutes";y[n](e)}else if(g){const e=d.getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top,s=130,a=130;let o,l,i=null;switch(i=n>s?r>a?2:1:r>a?3:4,i){case 1:o=n-s,l=a-r;break;case 2:o=n-s,l=r-a;break;case 3:o=s-n,l=r-a;break;case 4:o=s-n,l=a-r}const c=Math.sqrt(o*o+l*l),u=90-Math.asin(o/c)*(180/Math.PI);let h;switch(i){case 1:h=90-u;break;case 2:h=u+90;break;case 3:h=270-u;break;case 4:h=u+270}h=Math.floor(h/6),y.setMinutes(h)}n(20,y),n(17,u),v=!1,b("time",y),t.meridianSwitch||f||!g||setTimeout((()=>{b("close")}),300),t.meridianSwitch||g||n(3,g=!0),setTimeout((()=>{v=!0}),200)}}return t.$$set=t=>{"date"in t&&n(17,u=t.date),"showMeridian"in t&&n(0,h=t.showMeridian),"hasDateComponent"in t&&n(1,p=t.hasDateComponent),"i18n"in t&&n(2,m=t.i18n)},t.$$.update=()=>{1179648&t.$$.dirty[0]&&u!==y&&n(20,y=u),1048576&t.$$.dirty[0]&&n(4,r=y?y.getUTCHours():0),17&t.$$.dirty[0]&&(s=!!h&&r>=12),1048576&t.$$.dirty[0]&&n(5,a=y?y.getUTCMinutes():0),57&t.$$.dirty[0]&&n(10,o=g?`transform: rotateZ(${6*a}deg)`:h?`transform: rotateZ(${r%12*30}deg);`:`transform: rotateZ(${r%12*30}deg); ${r>12||!r?"height: calc(25% + 1px)":""}`),8&t.$$.dirty[0]&&(l=g?5:1),8&t.$$.dirty[0]&&n(9,i=x(220,130,g?"00":"12",g,0)),8&t.$$.dirty[0]&&b("time-switch",g)},n(8,c=x(140,130,"00",!1,12)),[h,p,m,g,r,a,d,f,c,i,o,function(t,e){return e?s&&12===t?12:t<10||t%12<10?"0"+t%12:t%12:t<10?`0${t}`:t},function(t,e,n){return g?e===t||0===n&&n===t:h?!(!s||12!=e||12!==t)||(!s&&12==e&&0===t||e===(t?t%12:12)):e>12?(n?l*n+12:0)===t:"00"===e||"12"===e?12===t&&12==e||"00"===e&&0===t:e===t},w,function(t){t.meridianSwitch=!0,w(t)},function(t){n(7,f="mousedown"===t.type)},function(){b("switch","date")},u,function(t){if(void 0===t)return g;n(3,g=t)},function(t){g?(t=5*t+a)%5!=0&&(t=tn(3,g=!1),()=>n(3,g=!0),t=>{f&&w(t)},function(t){Z[t?"unshift":"push"]((()=>{d=t,n(6,d)}))}]}class fe extends kt{constructor(t){super(),Ct(this,t,ge,me,o,{date:17,showMeridian:0,hasDateComponent:1,i18n:2,minuteSwitch:18,makeTick:19},oe,[-1,-1])}get minuteSwitch(){return this.$$.ctx[18]}get makeTick(){return this.$$.ctx[19]}}function ye(t){f(t,"svelte-tb6rom",".sdt-calendar-colors.svelte-tb6rom{--sdt-primary:#286090;--sdt-color:#000;--sdt-bg-main:#fff;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:#1e486d;--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:#eee;--sdt-btn-header-bg-hover:#dfdfdf;--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:rgb(238, 237, 237, 0.25);--sdt-clock-bg-shadow:0 0 128px 2px #ddd inset;--sdt-shadow:#ccc}.std-calendar-wrap.svelte-tb6rom{width:280px;background-color:var(--sdt-bg-main);box-shadow:0 1px 6px var(--sdt-shadow);border-radius:4px;padding:0.25rem 0.25rem 0.5rem;color:var(--sdt-color)}.std-calendar-wrap.is-popup.svelte-tb6rom{box-shadow:0 1px 6px var(--sdt-shadow)}.std-btn-row.svelte-tb6rom{margin-top:0.5rem;display:flex;justify-content:space-evenly}.sdt-action-btn.svelte-tb6rom{padding:0.25rem 0.5rem;font-size:.875rem;border-radius:0.2rem}.sdt-today-btn.svelte-tb6rom{background-color:var(--sdt-primary);color:var(--sdt-today-color, var(--sdt-bg-main));padding:0.25rem 0.5rem;font-size:.875rem;border-radius:0.2rem;border:1px solid var(--sdt-today-bg)}.sdt-today-btn[disabled].svelte-tb6rom{opacity:0.75}.sdt-today-btn.svelte-tb6rom:focus,.sdt-today-btn.svelte-tb6rom:active,.sdt-today-btn.svelte-tb6rom:hover:not([disabled]){background-color:var(--sdt-today-bg)}.sdt-clear-btn.svelte-tb6rom{border:1px solid var(--sdt-clear-color);background-color:transparent;color:var(--sdt-clear-color)}.sdt-clear-btn.svelte-tb6rom:focus,.sdt-clear-btn.svelte-tb6rom:active:not([disabled]),.sdt-clear-btn.svelte-tb6rom:hover:not([disabled]){background-color:var(--sdt-clear-color);color:var(--sdt-clear-hover-color, var(--sdt-bg-main))}")}function ve(t){let e,n,r,o,l,c,d,u,h;const p=[xe,be],m=[];function g(t,e){return"date"===t[27]?0:1}return n=g(t),r=m[n]=p[n](t),{c(){e=C("div"),r.c(),S(e,"class",o="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom")},m(r,s){x(r,e,s),m[n].m(e,null),d=!0,u||(h=[i(l=t[19].call(null,e,{inputEl:t[22],visible:t[28],inputRect:t[23]})),D(e,"mousedown",z(t[47]))],u=!0)},p(t,s){let i=n;n=g(t),n===i?m[n].p(t,s):(ct(),ht(m[i],1,1,(()=>{m[i]=null})),dt(),r=m[n],r?r.p(t,s):(r=m[n]=p[n](t),r.c()),ut(r,1),r.m(e,null)),(!d||512&s[0]&&o!==(o="std-calendar-wrap is-popup "+t[9]+" svelte-tb6rom"))&&S(e,"class",o),l&&a(l.update)&&281018368&s[0]&&l.update.call(null,{inputEl:t[22],visible:t[28],inputRect:t[23]})},i(t){d||(ut(r),t&&Q((()=>{c||(c=ft(e,Ut,{duration:200},!0)),c.run(1)})),d=!0)},o(t){ht(r),t&&(c||(c=ft(e,Ut,{duration:200},!1)),c.run(0)),d=!1},d(t){t&&w(e),m[n].d(),t&&c&&c.end(),u=!1,s(h)}}}function be(t){let e,n,r={date:t[20],hasDateComponent:"time"!==t[26],showMeridian:t[1].match("p|P"),i18n:t[18]};return e=new fe({props:r}),t[53](e),e.$on("time",t[31]),e.$on("switch",t[36]),e.$on("close",t[37]),{c(){xt(e.$$.fragment)},m(t,r){wt(e,t,r),n=!0},p(t,n){const r={};1048576&n[0]&&(r.date=t[20]),67108864&n[0]&&(r.hasDateComponent="time"!==t[26]),2&n[0]&&(r.showMeridian=t[1].match("p|P")),262144&n[0]&&(r.i18n=t[18]),e.$set(r)},i(t){n||(ut(e.$$.fragment,t),n=!0)},o(t){ht(e.$$.fragment,t),n=!1},d(n){t[53](null),Tt(e,n)}}}function xe(t){let e,n,r,s,a={date:t[20],startDate:t[6]?_t(t[6],t[1],t[18],t[10]):null,endDate:t[7]?_t(t[7],t[1],t[18],t[10]):null,enableTimeToggle:t[26].includes("time"),i18n:t[18],weekStart:t[11]};e=new ae({props:a}),t[52](e),e.$on("date",t[31]),e.$on("switch",t[36]);let o=(t[16]||t[17])&&we(t);return{c(){xt(e.$$.fragment),n=M(),o&&o.c(),r=U()},m(t,a){wt(e,t,a),x(t,n,a),o&&o.m(t,a),x(t,r,a),s=!0},p(t,n){const s={};1048576&n[0]&&(s.date=t[20]),263234&n[0]&&(s.startDate=t[6]?_t(t[6],t[1],t[18],t[10]):null),263298&n[0]&&(s.endDate=t[7]?_t(t[7],t[1],t[18],t[10]):null),67108864&n[0]&&(s.enableTimeToggle=t[26].includes("time")),262144&n[0]&&(s.i18n=t[18]),2048&n[0]&&(s.weekStart=t[11]),e.$set(s),t[16]||t[17]?o?o.p(t,n):(o=we(t),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i(t){s||(ut(e.$$.fragment,t),s=!0)},o(t){ht(e.$$.fragment,t),s=!1},d(s){t[52](null),Tt(e,s),s&&w(n),o&&o.d(s),s&&w(r)}}}function we(t){let e,n,r=t[16]&&Te(t),s=t[17]&&Ce(t);return{c(){e=C("div"),r&&r.c(),n=M(),s&&s.c(),S(e,"class","std-btn-row svelte-tb6rom")},m(t,a){x(t,e,a),r&&r.m(e,null),g(e,n),s&&s.m(e,null)},p(t,a){t[16]?r?r.p(t,a):(r=Te(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),t[17]?s?s.p(t,a):(s=Ce(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(t){t&&w(e),r&&r.d(),s&&s.d()}}}function Te(t){let e,n,r,s,a,o,i=t[18].todayBtn+"";return{c(){e=C("button"),n=$(i),S(e,"class",r=l(t[14])+" svelte-tb6rom"),e.disabled=s=t[6]>At(new Date,t[1],t[18],t[10])},m(r,s){x(r,e,s),g(e,n),a||(o=D(e,"click",t[32]),a=!0)},p(t,a){262144&a[0]&&i!==(i=t[18].todayBtn+"")&&F(n,i),16384&a[0]&&r!==(r=l(t[14])+" svelte-tb6rom")&&S(e,"class",r),263234&a[0]&&s!==(s=t[6]>At(new Date,t[1],t[18],t[10]))&&(e.disabled=s)},d(t){t&&w(e),a=!1,o()}}}function Ce(t){let e,n,r,s,a,o,i=t[18].clearBtn+"";return{c(){e=C("button"),n=$(i),S(e,"class",r=l(t[15])+" svelte-tb6rom"),e.disabled=s=!t[20]},m(r,s){x(r,e,s),g(e,n),a||(o=D(e,"click",t[33]),a=!0)},p(t,a){262144&a[0]&&i!==(i=t[18].clearBtn+"")&&F(n,i),32768&a[0]&&r!==(r=l(t[15])+" svelte-tb6rom")&&S(e,"class",r),1048576&a[0]&&s!==(s=!t[20])&&(e.disabled=s)},d(t){t&&w(e),a=!1,o()}}}function ke(t){let e,n,r,a,o,c,d,u,h=(t[12]||t[21])&&ve(t);return{c(){e=C("input"),a=M(),h&&h.c(),o=U(),S(e,"type",n=t[8]?"hidden":"text"),S(e,"name",t[2]),S(e,"autocomplete","off"),e.disabled=t[3],S(e,"placeholder",t[4]),S(e,"class",r=l(t[13])+" svelte-tb6rom"),e.required=t[5],e.readOnly=t[21],e.value=t[0]},m(n,r){x(n,e,r),t[50](e),x(n,a,r),h&&h.m(n,r),x(n,o,r),c=!0,d||(u=[i(t[29].call(null,e,t[30])),D(e,"focus",t[34]),D(e,"blur",t[38]),D(e,"click",t[51]),D(e,"input",t[48]),D(e,"change",t[49]),D(e,"keydown",t[35])],d=!0)},p(t,s){(!c||256&s[0]&&n!==(n=t[8]?"hidden":"text"))&&S(e,"type",n),(!c||4&s[0])&&S(e,"name",t[2]),(!c||8&s[0])&&(e.disabled=t[3]),(!c||16&s[0])&&S(e,"placeholder",t[4]),(!c||8192&s[0]&&r!==(r=l(t[13])+" svelte-tb6rom"))&&S(e,"class",r),(!c||32&s[0])&&(e.required=t[5]),(!c||2097152&s[0])&&(e.readOnly=t[21]),(!c||1&s[0]&&e.value!==t[0])&&(e.value=t[0]),t[12]||t[21]?h?(h.p(t,s),2101248&s[0]&&ut(h,1)):(h=ve(t),h.c(),ut(h,1),h.m(o.parentNode,o)):h&&(ct(),ht(h,1,1,(()=>{h=null})),dt())},i(t){c||(ut(h),c=!0)},o(t){ht(h),c=!1},d(n){n&&w(e),t[50](null),n&&w(a),h&&h.d(n),n&&w(o),d=!1,s(u)}}}const $e=$t;function Me(t,e,n){let r,{name:s="date"}=e,{disabled:a=!1}=e,{placeholder:o=null}=e,{required:l=!1}=e,{value:i=null}=e,{initialDate:c=null}=e,{startDate:d=null}=e,{endDate:u=null}=e,{pickerOnly:h=!1}=e,{theme:p=$e.theme}=e,{mode:m=$e.mode}=e,{format:g=$e.format}=e,{formatType:f=$e.formatType}=e,{weekStart:y=$e.weekStart}=e,{visible:v=$e.visible}=e,{inputClasses:b=$e.inputClasses}=e,{todayBtnClasses:x=$e.todayBtnClasses}=e,{clearBtnClasses:w=$e.clearBtnClasses}=e,{todayBtn:T=$e.todayBtn}=e,{clearBtn:C=$e.clearBtn}=e,{clearToggle:k=$e.clearToggle}=e,{autoclose:$=$e.autoclose}=e,{i18n:M=$e.i18n}=e,{positionFn:U=Yt}=e,{validatorAction:D=null}=e;"yyyy-mm-dd"===g&&"time"===m&&(g="hh:ii");const z=j();i&&(i=i.replace(/(:\d+):\d+/,"$1"));let S=i,F=g,_=c&&c instanceof Date?Ft(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getHours(),c.getUTCMinutes()):i?_t(i,g,M,f):null;_&&c&&(i=At(_,g,M,f));let A,H=h,Y=null,B=null,E=D?D.shift():()=>{},O=D||[],N=null,P=!1,L=null,R="auto"===m?g.match(/hh?|ii?/i)&&g.match(/y|m|d/i)?"datetime":g.match(/hh?|ii?/i)?"time":"date":m,I="time"===R?"time":"date";function V(t){let e=t.detail||null;t.detail&&_&&_.getUTCFullYear()===t.detail.getUTCFullYear()&&_.getUTCMonth()===t.detail.getUTCMonth()&&_.getUTCDate()===t.detail.getUTCDate()&&"date"===R&&k&&(e=null),n(0,i=e?At(e,g,M,f):null),!$||"date"!==R&&e||h||P||K(!1),e&&!P&&"datetime"===R&&"date"===I&&n(27,I="time"),P&&"time"===I?L=setTimeout((()=>{P=!1}),400):P=!1,(X(),W).then((()=>{Y.dispatchEvent(new Event("input")),z("change",i)}))}function G(){V({detail:null})}function J(){n(23,B=Y.getBoundingClientRect()),n(21,H=!0)}function K(t){n(21,H=!1),R.includes("date")&&n(27,I="date"),t&&z("blur")}return t.$$set=t=>{"name"in t&&n(2,s=t.name),"disabled"in t&&n(3,a=t.disabled),"placeholder"in t&&n(4,o=t.placeholder),"required"in t&&n(5,l=t.required),"value"in t&&n(0,i=t.value),"initialDate"in t&&n(39,c=t.initialDate),"startDate"in t&&n(6,d=t.startDate),"endDate"in t&&n(7,u=t.endDate),"pickerOnly"in t&&n(8,h=t.pickerOnly),"theme"in t&&n(9,p=t.theme),"mode"in t&&n(40,m=t.mode),"format"in t&&n(1,g=t.format),"formatType"in t&&n(10,f=t.formatType),"weekStart"in t&&n(11,y=t.weekStart),"visible"in t&&n(12,v=t.visible),"inputClasses"in t&&n(13,b=t.inputClasses),"todayBtnClasses"in t&&n(14,x=t.todayBtnClasses),"clearBtnClasses"in t&&n(15,w=t.clearBtnClasses),"todayBtn"in t&&n(16,T=t.todayBtn),"clearBtn"in t&&n(17,C=t.clearBtn),"clearToggle"in t&&n(41,k=t.clearToggle),"autoclose"in t&&n(42,$=t.autoclose),"i18n"in t&&n(18,M=t.i18n),"positionFn"in t&&n(19,U=t.positionFn),"validatorAction"in t&&n(43,D=t.validatorAction)},t.$$.update=()=>{if(4352&t.$$.dirty[0]&&n(28,r=!!h||v),1311747&t.$$.dirty[0]|49664&t.$$.dirty[1]){if(i!==S){const t=i?_t(i,g,M,f):null;n(20,_=t),n(45,S=i)}F!==g&&_&&(n(0,i=At(_,g,M,f)),n(45,S=i),n(46,F=g),"auto"===m&&n(26,R=g.match(/hh?|ii?/i)&&g.match(/y|m|d/i)?"datetime":g.match(/hh?|ii?/i)?"time":"date"))}},[i,g,s,a,o,l,d,u,h,p,f,y,v,b,x,w,T,C,M,U,_,H,Y,B,N,A,R,I,r,E,O,V,function(){const t=new Date;if(d&&_t(d,g,M,f){Y=t,n(22,Y)}))},()=>{!H&&J()},function(t){Z[t?"unshift":"push"]((()=>{N=t,n(24,N)}))},function(t){Z[t?"unshift":"push"]((()=>{A=t,n(25,A)}))}]}class Ue extends kt{constructor(t){super(),Ct(this,t,Me,ke,o,{name:2,disabled:3,placeholder:4,required:5,value:0,initialDate:39,startDate:6,endDate:7,pickerOnly:8,theme:9,mode:40,format:1,formatType:10,weekStart:11,visible:12,inputClasses:13,todayBtnClasses:14,clearBtnClasses:15,todayBtn:16,clearBtn:17,clearToggle:41,autoclose:42,i18n:18,positionFn:19,validatorAction:43,setDateValue:44},ye,[-1,-1])}get setDateValue(){return this.$$.ctx[44]}}const De=["value","name","placeholder","start-date","end-date","disabled","input-classes","mode","format","week-start","today-btn","clear-btn","autoclose","required"];function ze(t,e){switch(t){case"value":return e||"";case"required":case"disabled":case"today-btn":case"clear-btn":case"autoclose":return null!==e&&"false"!==e;case"weekStart":return parseInt(e)}return e}function Se(t){return t.includes("-")?t.split("-").reduce(((t,e,n)=>(n&&(e=e[0].toUpperCase()+e.substr(1)),t+e)),""):t}class Fe extends HTMLElement{constructor(){super(),this.picker=null;const t=["value","name","placeholder","mode","format"].reduce(((t,e)=>(t[e]={get(){return ze(e,this.getAttribute(e))},set(t){this.setAttribute(e,t)}},t)),{}),e={form:{get(){return this.closest("form")}},weekStart:{get(){return this.getAttribute("week-start")},set(t){this.setAttribute("week-start",t)}},startDate:{get(){return this.getAttribute("start-date")},set(t){t&&this.setAttribute("start-date",t),!t&&this.removeAttribute("start-date")}},endDate:{get(){return this.getAttribute("end-date")},set(t){t&&this.setAttribute("end-date",t),!t&&this.removeAttribute("end-date")}},inputClasses:{get(){return this.getAttribute("input-classes")},set(t){t&&this.setAttribute("input-classes",t),!t&&this.removeAttribute("input-classes")}}},n=["required","disabled","today-btn","clear-btn","autoclose"].reduce(((t,e)=>{const n=Se(e);return t[n]={get(){const t=this.hasAttribute(e),r=!t||"false"!==this.getAttribute(e);return t?r:$e[n]},set(t){t?this.setAttribute(e,t=""):this.hasAttribute(e)?this.removeAttribute(e):this.picker.$set({[n]:t})}},t}),{});Object.defineProperties(this,Object.assign({},t,e,n))}focus(){if(this.disabled)return;const t=this.querySelector("input");t&&t.focus()}static get observedAttributes(){return De}attributeChangedCallback(t,e,n){this.picker&&e!==n&&this.picker.$set({[Se(t)]:ze(t,n)})}connectedCallback(){if(this.picker)return;let t={};for(const e of De)this.hasAttribute(e)&&(t[Se(e)]=ze(e,this.getAttribute(e)));this.picker=new Ue({target:this,props:t}),this.picker.$on("input",(t=>{this.setAttribute("value",t.target.value),this.dispatchEvent(new Event("input"))})),this.picker.$on("blur",(t=>{this.dispatchEvent(new Event("blur"))})),setTimeout((()=>{if(this.hasAttribute("from")){const t=document.getElementById(this.getAttribute("from"));t.oninput=e=>{this.picker.$set({startDate:t.value})}}if(this.hasAttribute("to")){const t=document.getElementById(this.getAttribute("to"));t.oninput=e=>{this.picker.$set({endDate:t.value})}}}))}disconnectedCallback(){this.picker&&this.picker.destroy()}}function _e(t){f(t,"svelte-o3mx86",".container.svelte-o3mx86{max-width:960px}.my-colors{--sdt-primary:#998825;--sdt-color:#eee;--sdt-color-selected:#eee;--sdt-bg-main:#333;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:rgb(160, 145, 57);--sdt-today-color:var(--sdt-color-selected);--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:rgb(126, 35, 78);--sdt-btn-header-bg-hover:rgb(107, 18, 60);--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:#eeeded;--sdt-clock-bg-shadow:0 0 128px 2px #74661834 inset;--sdt-shadow:#ccc}")}function Ae(t){let e,n,r,a,o,l,i,c,d,u,h,p,m,f,y,v,b,T,k,U,F,A,Y,B,E,O,N,P,L,R,I,j,q,V,G,W,K,X,tt,et,nt,rt,st,at,ot,lt,it,ct,dt,pt,mt,gt,ft,yt,vt,bt,Ct,kt,$t,Mt,Ut,Dt,zt,St,Ft,_t,At,Ht,Yt,Bt,Et,Ot,Nt,Pt,Lt,Rt,It,jt;function qt(e){t[7](e)}let Vt={placeholder:"Pick your date and time",inputClasses:"form-control",format:t[2],initialDate:t[5]};return void 0!==t[1]&&(Vt.value=t[1]),f=new Ue({props:Vt}),Z.push((()=>function(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}(f,"value",qt))),et=new Ue({props:{inputClasses:"form-control",mode:"time",format:"hh:ii"}}),ct=new Ue({props:{inputClasses:"form-control",mode:"datetime",pickerOnly:!0}}),gt=new Ue({props:{theme:t[4],inputClasses:"form-control",mode:"datetime",pickerOnly:!0}}),Ft=new Ue({props:{placeholder:"Pick your date and time",inputClasses:"form-control",initialDate:t[5]}}),Ft.$on("input",t[6]),Ft.$on("change",t[6]),Ft.$on("blur",t[6]),{c(){e=C("div"),n=C("div"),n.innerHTML="

Simple Date & time picker

\n Using bootstrap css for showcase",r=M(),a=C("h5"),a.textContent="📅 Full example!",o=M(),l=C("p"),l.innerHTML="Selected format determines, if time picker will be available based on time part of given format.",i=M(),c=C("form"),d=C("div"),u=C("div"),h=C("div"),p=C("span"),p.textContent="Full date-time picker",m=M(),xt(f.$$.fragment),v=M(),b=C("div"),T=$("Change format:\r\n "),k=C("select"),U=C("optgroup"),F=C("option"),F.textContent="yyyy-mm-dd hh:ii",A=C("option"),A.textContent="mm/dd/yyyy hh:ii",Y=C("option"),Y.textContent="dd.mm.yyyy hh:ii",B=C("option"),B.textContent="dd-M-yy hh:ii",E=C("optgroup"),O=C("option"),O.textContent="yyyy-mm-dd",N=C("option"),N.textContent="mm/dd/yyyy",P=C("option"),P.textContent="dd.mm.yyyy",L=C("option"),L.textContent="dd-M-yy",R=C("option"),R.textContent="dd MM yyyy",I=M(),j=C("div"),q=C("div"),q.innerHTML='
💡 Limit dates with startDate & endDate properties
\n
Pick your holiday session:\n
\n \n
\n

Selected date of From serves as startDate for To date picker and vice versa, where To\n serves as endDate for From date picker.

\n\n

This example uses Svelty-picker as a custom-element.

',V=M(),G=C("div"),W=C("h5"),W.innerHTML="🕒 Timepicker only. Forced by mode set to time.",K=M(),X=C("div"),tt=$("Time picker only:\r\n "),xt(et.$$.fragment),nt=M(),rt=C("h5"),rt.textContent="🎨 Easily themable - just override CSS variables",st=M(),at=C("div"),ot=C("div"),lt=C("div"),it=$("Default theme\r\n \r\n "),xt(ct.$$.fragment),dt=M(),pt=C("div"),mt=$("Custom theme\r\n "),xt(gt.$$.fragment),ft=M(),yt=C("label"),vt=C("input"),bt=$(" Remove all theming"),Ct=M(),kt=C("h5"),kt.textContent="💬 Event listening:",$t=M(),Mt=C("div"),Ut=C("div"),Dt=C("div"),zt=C("span"),zt.textContent="Full date-time picker",St=M(),xt(Ft.$$.fragment),_t=M(),At=C("div"),Ht=$("Event log:\r\n "),Yt=C("textarea"),Bt=M(),Et=C("p"),Et.innerHTML='Below is README from GitHub repository.',Ot=M(),Nt=C("hr"),Pt=M(),Lt=C("div"),S(n,"class","text-center"),S(a,"class","mt-5"),S(p,"class","form-label"),S(h,"class","form-group"),S(u,"class","col-sm-6"),F.__value="yyyy-mm-dd hh:ii",F.value=F.__value,A.__value="mm/dd/yyyy hh:ii",A.value=A.__value,Y.__value="dd.mm.yyyy hh:ii",Y.value=Y.__value,B.__value="dd-M-yy hh:ii",B.value=B.__value,S(U,"label","Date & time"),O.__value="yyyy-mm-dd",O.value=O.__value,N.__value="mm/dd/yyyy",N.value=N.__value,P.__value="dd.mm.yyyy",P.value=P.__value,L.__value="dd-M-yy",L.value=L.__value,R.__value="dd MM yyyy",R.value=R.__value,S(E,"label","Date only"),S(k,"name",""),S(k,"id",""),S(k,"class","form-select"),void 0===t[2]&&Q((()=>t[8].call(k))),S(b,"class","col-sm-6"),S(d,"class","row"),S(q,"class","col-sm-6"),S(W,"class","mt-5"),S(X,"class","form-group"),S(G,"class","col-sm-6"),S(j,"class","row"),S(rt,"class","mt-3"),S(lt,"class","me-4"),S(vt,"type","checkbox"),S(ot,"class","col d-flex flex-wrap"),S(at,"class","row mb-4"),S(kt,"class","mt-5"),S(zt,"class","form-label"),S(Dt,"class","form-group"),S(Ut,"class","col-sm-6"),S(Yt,"placeholder","Event log"),S(Yt,"id",""),S(Yt,"cols","30"),S(Yt,"rows","4"),S(Yt,"class","form-control"),S(At,"class","col-sm-6"),S(Mt,"class","row mb-4"),S(Lt,"id","readme"),S(e,"class","container svelte-o3mx86")},m(s,y){x(s,e,y),g(e,n),g(e,r),g(e,a),g(e,o),g(e,l),g(e,i),g(e,c),g(c,d),g(d,u),g(u,h),g(h,p),g(h,m),wt(f,h,null),g(d,v),g(d,b),g(b,T),g(b,k),g(k,U),g(U,F),g(U,A),g(U,Y),g(U,B),g(k,E),g(E,O),g(E,N),g(E,P),g(E,L),g(E,R),H(k,t[2]),g(e,I),g(e,j),g(j,q),g(j,V),g(j,G),g(G,W),g(G,K),g(G,X),g(X,tt),wt(et,X,null),g(e,nt),g(e,rt),g(e,st),g(e,at),g(at,ot),g(ot,lt),g(lt,it),wt(ct,lt,null),g(ot,dt),g(ot,pt),g(pt,mt),wt(gt,pt,null),g(pt,ft),g(pt,yt),g(yt,vt),vt.checked=t[0],g(yt,bt),g(e,Ct),g(e,kt),g(e,$t),g(e,Mt),g(Mt,Ut),g(Ut,Dt),g(Dt,zt),g(Dt,St),wt(Ft,Dt,null),g(Mt,_t),g(Mt,At),g(At,Ht),g(At,Yt),_(Yt,t[3]),g(e,Bt),g(e,Et),g(e,Ot),g(e,Nt),g(e,Pt),g(e,Lt),Rt=!0,It||(jt=[D(k,"change",t[8]),D(c,"submit",z(t[9])),D(vt,"change",t[10]),D(Yt,"input",t[11])],It=!0)},p(t,[e]){const n={};var r;4&e&&(n.format=t[2]),!y&&2&e&&(y=!0,n.value=t[1],r=()=>y=!1,J.push(r)),f.$set(n),4&e&&H(k,t[2]);const s={};16&e&&(s.theme=t[4]),gt.$set(s),1&e&&(vt.checked=t[0]),8&e&&_(Yt,t[3])},i(t){Rt||(ut(f.$$.fragment,t),ut(et.$$.fragment,t),ut(ct.$$.fragment,t),ut(gt.$$.fragment,t),ut(Ft.$$.fragment,t),Rt=!0)},o(t){ht(f.$$.fragment,t),ht(et.$$.fragment,t),ht(ct.$$.fragment,t),ht(gt.$$.fragment,t),ht(Ft.$$.fragment,t),Rt=!1},d(t){t&&w(e),Tt(f),Tt(et),Tt(ct),Tt(gt),Tt(Ft),It=!1,s(jt)}}}function He(t,e,n){let r,s,a=new Date,o="yyyy-mm-dd hh:ii",l=!1;var i;i=()=>{var t;t="el-picker",window.customElements.define(t,Fe),"http://localhost:5000/"!==location.href&&fetch("https://raw.githubusercontent.com/mskocik/simple-datepicker/master/README.md").then((t=>t.text())).then((t=>{document.getElementById("readme").innerHTML=marked.parse(t)}))},I().$$.on_mount.push(i);let c="";return t.$$.update=()=>{1&t.$$.dirty&&n(4,r=l?"":"my-colors")},[l,s,o,c,r,a,function(t){let e=void 0!==t.detail?t.detail:t.target.value||"";n(3,c+=`Triggered '${t.type}' event with value: ${e}\n`)},function(t){s=t,n(1,s)},function(){o=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(2,o)},()=>console.log("submit"),function(){l=this.checked,n(0,l)},function(){c=this.value,n(3,c)}]}new class extends kt{constructor(t){super(),Ct(this,t,He,Ae,o,{},_e)}}({target:document.body,props:{}})}(); diff --git a/docs/favicon.png b/docs/favicon.png index 7e6f5eb..825b9e6 100644 Binary files a/docs/favicon.png and b/docs/favicon.png differ diff --git a/docs/index.html b/docs/index.html index 49e3c84..9af3557 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,31 +1,462 @@ - - - - - - - - Svelte Date & Time picker you will love - - - - - - - Fork me on GitHub - - - - + + + + + + + + + + + + + + + + + + Fork me on GitHub +
+ + +
+

📆 Svelty Picker NPM version

+

Simple date & time picker implemented in svelte.

+

Features:

+
  • datepicker
  • +
  • timepicker (with meridian support)
  • +
  • various formatting options
  • +
  • keyboard navigation
  • +
  • includes <input> element
  • +
  • easily themable
  • +
  • restriction by start and end date
  • +
  • validator action for <input> using svelte-use-forms (optional)
  • +
  • custom element
+

screenshot

+

⚙️ Install

+
npm install svelty-picker
+

👀 Example

+
<script>
+  import SveltyPicker from 'svelty-picker'
+  
+  let myDate = '2021-11-11';
+</script>
+
+<SveltyPicker inputClasses="form-control" format="yyyy-mm-dd hh:ii" bind:value={myDate}></SveltyPicker>
+

Try yourself in REPL.

+

📓 Options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyTypeDefaultDescription
namestringdatehtml attribute for underlying <input> element
disabledboolfalsehtml attribute for underlying <input> element
placeholderstringnullhtml attribute for underlying <input> element
requiredboolfalsehtml attribute for underlying <input> element
valuestringnullstring representation of selected value
initialDateDatenullinitial date object, if you prefer that to value
startDate`stringDate`null
endDate`stringDate`null
pickerOnlyboolfalsePicker is always visible and input field is then hidden, but still present
themestringsdt-calendar-colorscss class defining css variables
modestringautorestrict picker’s mode. Possible values: `auto
formatstringyyyy-mm-ddFormat of entered date/time. See format settings for available options
weekStartnumber1number in range 0-6 to select first day of the week. Sunday is 0
inputClassesstringinput css class string
todayBtnClassesstringsdt-action-btn sdt-today-btntoday button css classes
clearBtnClassesstringsdt-action-btn sdt-clear-btnclear button css classes
todayBtnbooltrueShow today button
clearBtnbooltrueShow clear button
clearTogglebooltrueClear current selection by clicking the same date
autoclosebooltrueHides picker after selection is done. If mode includes time picker, it closes automatically only after minute selection
i18nobjectenlocalization object, english is by default
positionFnfunctioninternalfunction used to position picker. Used as action. Acceps following object: { inputEl, visible}, where visible is visible parameter & inputEl is underlying <input> element
validatorActionarraynullBind validator action for inner <input> element. Designed to be used with svelte-use-form.
+

Note: Properties starting by theme to i18n are configurable globally by overriding it in globally available config

+
import { config } from 'svelty-picker';
+
+// set new locale 
+config.i18n = {
+  // my localization object
+}
+// default for all pickers in the app
+config.todayBtn = false;
+

Format settings

+

Date format can be defined under formatType property. It has two options: standard and php, where +standard is the default.

+

standard format settings:

+
  • d : day of the month without leading zeros
  • +
  • dd : day of the month, 2 digits with leading zeros
  • +
  • D : short textual representation of a weekday (i18n.daysShort)
  • +
  • DD : long textual representation of a weekday (i18n.days)
  • +
  • S : English ordinal suffix for the day of the month, (i18n.suffix)
  • +
  • m : numeric representation of month without leading zeros
  • +
  • mm : numeric representation of the month, 2 digits with leading zeros
  • +
  • M : short textual representation of a month, three letters (i18n.monthsShort)
  • +
  • MM : full textual representation of a month, such as January or March (i18n.months)
  • +
  • yy : two digit representation of a year
  • +
  • yyyy : full numeric representation of a year, 4 digits
  • +
  • h : hour without leading zeros - 24-hour format
  • +
  • hh : hour, 2 digits with leading zeros - 24-hour format
  • +
  • H : hour without leading zeros - 12-hour format
  • +
  • HH : hour, 2 digits with leading zeros - 12-hour format
  • +
  • i : minutes, 2 digits with leading zeros
  • +
  • ii : alias for i
  • +
  • s : seconds, 2 digits with leading zeros
  • +
  • ss : alias for s
  • +
  • p : meridian in lower case (‘am’ or ‘pm’) - according to locale file (i18n.meridiem)
  • +
  • P : meridian in upper case (‘AM’ or ‘PM’) - according to locale file (i18n.meridiem)
  • +
  • t : timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use php format
+

php format settings:

+
  • d : Day of the month, 2 digits with leading zeros 01 to 31
  • +
  • D : A textual representation of a day, three letters Mon through Sun
  • +
  • j : Day of the month without leading zeros 1 to 31
  • +
  • l : A full textual representation of the day of the week Sunday through Saturday
  • +
  • N : ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday)
  • +
  • S : English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j
  • +
  • F : A full textual representation of a month, such as January or March January through December
  • +
  • m : Numeric representation of a month, with leading zeros 01 through 12
  • +
  • M : A short textual representation of a month, three letters Jan through Dec
  • +
  • n : Numeric representation of a month, without leading zeros 1 through 12
  • +
  • Y : A full numeric representation of a year, at least 4 digits, with - for years BCE. Examples: -0055, 0787, 1999, 2003
  • +
  • y : A two digit representation of a year Examples: 99 or 03
  • +
  • a : Lowercase Ante meridiem and Post meridiem am or pm
  • +
  • A : Uppercase Ante meridiem and Post meridiem AM or PM
  • +
  • g : 12-hour format of an hour without leading zeros 1 through 12
  • +
  • G : 24-hour format of an hour without leading zeros 0 through 23
  • +
  • h : 12-hour format of an hour with leading zeros 01 through 12
  • +
  • H : 24-hour format of an hour with leading zeros 00 through 23
  • +
  • i : Minutes with leading zeros 00 to 59
  • +
  • s : Seconds with leading zeros 00 through 59
  • +
  • U : timestamp in seconds. For timestamp with miliseconds use standard format
+

CSS variables

+
/** defaults */
+.sdt-calendar-colors {
+  --sdt-primary: #286090;
+  --sdt-color: #000;
+  --sdt-bg-main: #fff;
+  --sdt-bg-today: var(--sdt-primary);
+  --sdt-bg-clear: #dc3545;
+  --sdt-today-bg: #1e486d;
+  --sdt-clear-color: #dc3545;
+  --sdt-btn-bg-hover: #eee;
+  --sdt-btn-header-bg-hover: #dfdfdf;
+  --sdt-clock-bg: #eeeded;
+  --sdt-clock-bg-minute: rgb(238, 237, 237, 0.25);
+  --sdt-clock-bg-shadow: 0 0 128px 2px #ddd inset;
+  --sdt-shadow: #ccc;
+}
+

🗯️ Events

+

Component emits input, change and blur events.

+
  • input is dispatched on <input> element therefore you can get current value like from every native event:
  • +
  • change event is using Svelte’s eventDispatcher, therefore triggered event contains detail property
+
<script>
+function onInput(event) {
+  console.log(event.target.value) // logs currently selected date or empty string
+}
+
+function onChange(event) {
+  console.log(event.detail) // logs currently selected date or null
+}
+</script>
+
+<SveltyPicker on:input={onInput} on:change={onChange}></SveltyPicker>
+

🌐 Localization

+

Localization file has following structure.

+
export const en = {
+  days:        ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
+  daysShort:   ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
+  daysMin:     ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],
+  months:      ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
+  monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
+  meridiem:    ['am', 'pm'],
+  suffix:      ['st', 'nd', 'rd', 'th'],
+  todayBtn:    'Today',
+  clearBtn:    'Clear',
+  timeView:    'Show time view',
+  backToDate:  'Back to calendar view'
+}
+

PRs for extending built-in localization are welcome 🥳

+

🏆 Thanks to:

+ +

Licence:

+

MIT

+

🥳 Examples

+ Using bootstrap css for showcase + +
📅 Full example!
+ +

Selected format determines, if time picker will be available based on time part of given format. +

+ +
Full date-time picker + + +
+
Change format: +
+ +
💡 Limit dates with startDate & endDate. +
+
Pick your holiday session: +
+ + + +
+

Selected date of From serves as startDate for To date picker and vice versa, where To + serves as endDate for From date picker. +

+ +

This example uses Svelty-picker as a custom-element.

+
🕒 Timepicker only. Forced by mode set to time. +
+
Time picker only: + +
+ +
🎨 Easily themable - just override CSS variables +
+
Default theme + + +
+
+ +
+
+ + + + + + + + +
MoTuWeThFrSaSu
+ + + + + + +
+ + + + + + +
+ + + + + + +
+ + + + + + +
+ + + + + + +
+ + + + + + +
+
+
+
+
Custom theme + +
+
+ +
+
+ + + + + + + + +
MoTuWeThFrSaSu
+ + + + + + +
+ + + + + + +
+ + + + + + +
+ + + + + + +
+ + + + + + +
+ + + + + + +
+
+
+
+
+
Datepicker as custom element! +
+ +
💬 Event listening: +
+ +
Full date-time picker + + +
+
Event log: +
+

Check more details at GitHub repository.

+
+ + +
+ + diff --git a/docs/index.js b/docs/index.js deleted file mode 100644 index 81685fb..0000000 --- a/docs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import Docs from './docs.svelte'; - -new Docs({ - target: document.body, - props: {} -}); \ No newline at end of file diff --git a/index.js b/index.js deleted file mode 100644 index ca4ddca..0000000 --- a/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import SveltyPicker, { config } from './src/SveltyPicker.svelte'; - -export default SveltyPicker; - -export { config } \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..0f47472 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true + } +} diff --git a/mdsvex.config.js b/mdsvex.config.js new file mode 100644 index 0000000..5cdd1d0 --- /dev/null +++ b/mdsvex.config.js @@ -0,0 +1,14 @@ +import { defineMDSveXConfig as defineConfig } from "mdsvex"; + +const config = defineConfig({ + extensions: [".svelte.md", ".md", ".svx"], + + smartypants: { + dashes: "oldschool", + }, + + remarkPlugins: [], + rehypePlugins: [], +}); + +export default config; diff --git a/package-lock.json b/package-lock.json index 939ac83..35160dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,94 +1,2486 @@ { "name": "svelty-picker", - "version": "1.2.2", - "lockfileVersion": 1, + "version": "0.0.1", + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "svelty-picker", + "version": "0.0.1", + "dependencies": { + "@sveltejs/adapter-static": "^1.0.0-next.37" + }, + "devDependencies": { + "@playwright/test": "^1.22.2", + "@sveltejs/kit": "next", + "eslint": "^8.16.0", + "eslint-plugin-svelte3": "^4.0.0", + "mdsvex": "^0.10.6", + "svelte": "^3.44.0", + "svelte-check": "^2.7.1", + "typescript": "^4.7.4", + "vite": "^3.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", + "integrity": "sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@playwright/test": { + "version": "1.23.4", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.23.4.tgz", + "integrity": "sha512-iIsoMJDS/lyuhw82FtcV/B3PXikgVD3hNe5hyvOpRM0uRr1OIpN3LgPeRbBjhzBWmyf6RgRg5fqK5sVcpA03yA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "playwright-core": "1.23.4" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/@sveltejs/adapter-static": { + "version": "1.0.0-next.37", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.37.tgz", + "integrity": "sha512-BDFkx4CGAd6pG4e3+zYjy/eM9UDbhkRgXqavUzCO5oT8xXao5TeprY1AIbdzjMTmFjsWdeSXE9TbIsT0iikpyQ==", + "dependencies": { + "tiny-glob": "^0.2.9" + } + }, + "node_modules/@sveltejs/kit": { + "version": "1.0.0-next.377", + "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.377.tgz", + "integrity": "sha512-DH2v2yUBUuDZ7vzjPXUd/yt1AMR3BIkZN0ubLAvS2C+q5Wbvk7ZvAJhfPZ3OYc3ZpQXe4ZGEcptOjvEYvd1lLA==", + "dev": true, + "dependencies": { + "@sveltejs/vite-plugin-svelte": "^1.0.1", + "chokidar": "^3.5.3", + "sade": "^1.8.1" + }, + "bin": { + "svelte-kit": "svelte-kit.js" + }, + "engines": { + "node": ">=16.9" + }, + "peerDependencies": { + "svelte": "^3.44.0", + "vite": "^3.0.0" + } + }, + "node_modules/@sveltejs/vite-plugin-svelte": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.1.tgz", + "integrity": "sha512-PorCgUounn0VXcpeJu+hOweZODKmGuLHsLomwqSj+p26IwjjGffmYQfVHtiTWq+NqaUuuHWWG7vPge6UFw4Aeg==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^4.2.1", + "debug": "^4.3.4", + "deepmerge": "^4.2.2", + "kleur": "^4.1.5", + "magic-string": "^0.26.2", + "svelte-hmr": "^0.14.12" + }, + "engines": { + "node": "^14.18.0 || >= 16" + }, + "peerDependencies": { + "diff-match-patch": "^1.0.5", + "svelte": "^3.44.0", + "vite": "^3.0.0" + }, + "peerDependenciesMeta": { + "diff-match-patch": { + "optional": true + } + } + }, + "node_modules/@types/node": { + "version": "18.0.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.5.tgz", + "integrity": "sha512-En7tneq+j0qAiVwysBD79y86MT3ModuoIJbe7JXp+sb5UAjInSShmK3nXXMioBzfF7rXC12hv12d4IyCVwN4dA==", + "dev": true + }, + "node_modules/@types/pug": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.6.tgz", + "integrity": "sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==", + "dev": true + }, + "node_modules/@types/sass": { + "version": "1.43.1", + "resolved": "https://registry.npmjs.org/@types/sass/-/sass-1.43.1.tgz", + "integrity": "sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/unist": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", + "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-indent": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", + "dev": true + }, + "node_modules/esbuild": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.49.tgz", + "integrity": "sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "esbuild-android-64": "0.14.49", + "esbuild-android-arm64": "0.14.49", + "esbuild-darwin-64": "0.14.49", + "esbuild-darwin-arm64": "0.14.49", + "esbuild-freebsd-64": "0.14.49", + "esbuild-freebsd-arm64": "0.14.49", + "esbuild-linux-32": "0.14.49", + "esbuild-linux-64": "0.14.49", + "esbuild-linux-arm": "0.14.49", + "esbuild-linux-arm64": "0.14.49", + "esbuild-linux-mips64le": "0.14.49", + "esbuild-linux-ppc64le": "0.14.49", + "esbuild-linux-riscv64": "0.14.49", + "esbuild-linux-s390x": "0.14.49", + "esbuild-netbsd-64": "0.14.49", + "esbuild-openbsd-64": "0.14.49", + "esbuild-sunos-64": "0.14.49", + "esbuild-windows-32": "0.14.49", + "esbuild-windows-64": "0.14.49", + "esbuild-windows-arm64": "0.14.49" + } + }, + "node_modules/esbuild-android-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.49.tgz", + "integrity": "sha512-vYsdOTD+yi+kquhBiFWl3tyxnj2qZJsl4tAqwhT90ktUdnyTizgle7TjNx6Ar1bN7wcwWqZ9QInfdk2WVagSww==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-android-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.49.tgz", + "integrity": "sha512-g2HGr/hjOXCgSsvQZ1nK4nW/ei8JUx04Li74qub9qWrStlysaVmadRyTVuW32FGIpLQyc5sUjjZopj49eGGM2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-darwin-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.49.tgz", + "integrity": "sha512-3rvqnBCtX9ywso5fCHixt2GBCUsogNp9DjGmvbBohh31Ces34BVzFltMSxJpacNki96+WIcX5s/vum+ckXiLYg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-darwin-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.49.tgz", + "integrity": "sha512-XMaqDxO846srnGlUSJnwbijV29MTKUATmOLyQSfswbK/2X5Uv28M9tTLUJcKKxzoo9lnkYPsx2o8EJcTYwCs/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-freebsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.49.tgz", + "integrity": "sha512-NJ5Q6AjV879mOHFri+5lZLTp5XsO2hQ+KSJYLbfY9DgCu8s6/Zl2prWXVANYTeCDLlrIlNNYw8y34xqyLDKOmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-freebsd-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.49.tgz", + "integrity": "sha512-lFLtgXnAc3eXYqj5koPlBZvEbBSOSUbWO3gyY/0+4lBdRqELyz4bAuamHvmvHW5swJYL7kngzIZw6kdu25KGOA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.49.tgz", + "integrity": "sha512-zTTH4gr2Kb8u4QcOpTDVn7Z8q7QEIvFl/+vHrI3cF6XOJS7iEI1FWslTo3uofB2+mn6sIJEQD9PrNZKoAAMDiA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.49.tgz", + "integrity": "sha512-hYmzRIDzFfLrB5c1SknkxzM8LdEUOusp6M2TnuQZJLRtxTgyPnZZVtyMeCLki0wKgYPXkFsAVhi8vzo2mBNeTg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-arm": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.49.tgz", + "integrity": "sha512-iE3e+ZVv1Qz1Sy0gifIsarJMQ89Rpm9mtLSRtG3AH0FPgAzQ5Z5oU6vYzhc/3gSPi2UxdCOfRhw2onXuFw/0lg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.49.tgz", + "integrity": "sha512-KLQ+WpeuY+7bxukxLz5VgkAAVQxUv67Ft4DmHIPIW+2w3ObBPQhqNoeQUHxopoW/aiOn3m99NSmSV+bs4BSsdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-mips64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.49.tgz", + "integrity": "sha512-n+rGODfm8RSum5pFIqFQVQpYBw+AztL8s6o9kfx7tjfK0yIGF6tm5HlG6aRjodiiKkH2xAiIM+U4xtQVZYU4rA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-ppc64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.49.tgz", + "integrity": "sha512-WP9zR4HX6iCBmMFH+XHHng2LmdoIeUmBpL4aL2TR8ruzXyT4dWrJ5BSbT8iNo6THN8lod6GOmYDLq/dgZLalGw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-riscv64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.49.tgz", + "integrity": "sha512-h66ORBz+Dg+1KgLvzTVQEA1LX4XBd1SK0Fgbhhw4akpG/YkN8pS6OzYI/7SGENiN6ao5hETRDSkVcvU9NRtkMQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-s390x": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.49.tgz", + "integrity": "sha512-DhrUoFVWD+XmKO1y7e4kNCqQHPs6twz6VV6Uezl/XHYGzM60rBewBF5jlZjG0nCk5W/Xy6y1xWeopkrhFFM0sQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-netbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.49.tgz", + "integrity": "sha512-BXaUwFOfCy2T+hABtiPUIpWjAeWK9P8O41gR4Pg73hpzoygVGnj0nI3YK4SJhe52ELgtdgWP/ckIkbn2XaTxjQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-openbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.49.tgz", + "integrity": "sha512-lP06UQeLDGmVPw9Rg437Btu6J9/BmyhdoefnQ4gDEJTtJvKtQaUcOQrhjTq455ouZN4EHFH1h28WOJVANK41kA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-sunos-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.49.tgz", + "integrity": "sha512-4c8Zowp+V3zIWje329BeLbGh6XI9c/rqARNaj5yPHdC61pHI9UNdDxT3rePPJeWcEZVKjkiAS6AP6kiITp7FSw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.49.tgz", + "integrity": "sha512-q7Rb+J9yHTeKr9QTPDYkqfkEj8/kcKz9lOabDuvEXpXuIcosWCJgo5Z7h/L4r7rbtTH4a8U2FGKb6s1eeOHmJA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.49.tgz", + "integrity": "sha512-+Cme7Ongv0UIUTniPqfTX6mJ8Deo7VXw9xN0yJEN1lQMHDppTNmKwAM3oGbD/Vqff+07K2gN0WfNkMohmG+dVw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-windows-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.49.tgz", + "integrity": "sha512-v+HYNAXzuANrCbbLFJ5nmO3m5y2PGZWLe3uloAkLt87aXiO2mZr3BTmacZdjwNkNEHuH3bNtN8cak+mzVjVPfA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.19.0.tgz", + "integrity": "sha512-SXOPj3x9VKvPe81TjjUJCYlV4oJjQw68Uek+AM0X4p+33dj2HY5bpTZOgnQHcG2eAm1mtCU9uNMnJi7exU/kYw==", + "dev": true, + "dependencies": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.9.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.2", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-svelte3": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte3/-/eslint-plugin-svelte3-4.0.0.tgz", + "integrity": "sha512-OIx9lgaNzD02+MDFNLw0GEUbuovNcglg+wnd/UY0fbZmlQSz7GlQiQ1f+yX0XvC07XPcDOnFcichqI3xCwp71g==", + "dev": true, + "peerDependencies": { + "eslint": ">=8.0.0", + "svelte": "^3.2.0" + } + }, + "node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^2.0.0" + }, + "engines": { + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/espree": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", + "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", + "dev": true, + "dependencies": { + "acorn": "^8.7.1", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "13.16.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.16.0.tgz", + "integrity": "sha512-A1lrQfpNF+McdPOnnFqY3kSN0AFTy485bTi1bkLk4mVPODIUEcSfhHgRqA+QdXPksrSTTztYXx37NFV+GpGk3Q==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalyzer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", + "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==" + }, + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/magic-string": { + "version": "0.26.2", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.26.2.tgz", + "integrity": "sha512-NzzlXpclt5zAbmo6h6jNc8zl2gNRGHvmsZW4IvZhTC4W7k4OlLP+S5YLussa/r3ixNT66KOQfNORlXHSOy/X4A==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/mdsvex": { + "version": "0.10.6", + "resolved": "https://registry.npmjs.org/mdsvex/-/mdsvex-0.10.6.tgz", + "integrity": "sha512-aGRDY0r5jx9+OOgFdyB9Xm3EBr9OUmcrTDPWLB7a7g8VPRxzPy4MOBmcVYgz7ErhAJ7bZ/coUoj6aHio3x/2mA==", + "dev": true, + "dependencies": { + "@types/unist": "^2.0.3", + "prism-svelte": "^0.4.7", + "prismjs": "^1.17.1", + "vfile-message": "^2.0.4" + }, + "peerDependencies": { + "svelte": "3.x" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "dev": true + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/playwright-core": { + "version": "1.23.4", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.23.4.tgz", + "integrity": "sha512-h5V2yw7d8xIwotjyNrkLF13nV9RiiZLHdXeHo+nVJIYGVlZ8U2qV0pMxNJKNTvfQVT0N8/A4CW6/4EW2cOcTiA==", + "dev": true, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/postcss": { + "version": "8.4.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", + "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "dependencies": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prism-svelte": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/prism-svelte/-/prism-svelte-0.4.7.tgz", + "integrity": "sha512-yABh19CYbM24V7aS7TuPYRNMqthxwbvx6FF/Rw920YbyBWO3tnyPIqRMgHuSVsLmuHkkBS1Akyof463FVdkeDQ==", + "dev": true + }, + "node_modules/prismjs": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.28.0.tgz", + "integrity": "sha512-8aaXdYvl1F7iC7Xm1spqSaY/OJBpYW3v+KJ+F17iYxvdc8sfjW194COK5wVhMZX45tGteiBQgdvD/nhxcRwylw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/resolve": { + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "2.77.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.0.tgz", + "integrity": "sha512-vL8xjY4yOQEw79DvyXLijhnhh+R/O9zpF/LEgkCebZFtb6ELeN9H3/2T0r8+mp+fFTBHZ5qGpOpW2ela2zRt3g==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", + "dev": true, + "dependencies": { + "mri": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/sander": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", + "integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==", + "dev": true, + "dependencies": { + "es6-promise": "^3.1.2", + "graceful-fs": "^4.1.3", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.2" + } + }, + "node_modules/sander/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sorcery": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", + "integrity": "sha512-R5ocFmKZQFfSTstfOtHjJuAwbpGyf9qjQa1egyhvXSbM7emjrtLXtGdZsDJDABC85YBfVvrOiGWKSYXPKdvP1g==", + "dev": true, + "dependencies": { + "buffer-crc32": "^0.2.5", + "minimist": "^1.2.0", + "sander": "^0.5.0", + "sourcemap-codec": "^1.3.0" + }, + "bin": { + "sorcery": "bin/index.js" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svelte": { + "version": "3.49.0", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.49.0.tgz", + "integrity": "sha512-+lmjic1pApJWDfPCpUUTc1m8azDqYCG1JN9YEngrx/hUyIcFJo6VZhj0A1Ai0wqoHcEIuQy+e9tk+4uDgdtsFA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/svelte-check": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-2.8.0.tgz", + "integrity": "sha512-HRL66BxffMAZusqe5I5k26mRWQ+BobGd9Rxm3onh7ZVu0nTk8YTKJ9vu3LVPjUGLU9IX7zS+jmwPVhJYdXJ8vg==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.9", + "chokidar": "^3.4.1", + "fast-glob": "^3.2.7", + "import-fresh": "^3.2.1", + "picocolors": "^1.0.0", + "sade": "^1.7.4", + "svelte-preprocess": "^4.0.0", + "typescript": "*" + }, + "bin": { + "svelte-check": "bin/svelte-check" + }, + "peerDependencies": { + "svelte": "^3.24.0" + } + }, + "node_modules/svelte-hmr": { + "version": "0.14.12", + "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.14.12.tgz", + "integrity": "sha512-4QSW/VvXuqVcFZ+RhxiR8/newmwOCTlbYIezvkeN6302YFRE8cXy0naamHcjz8Y9Ce3ITTZtrHrIL0AGfyo61w==", + "dev": true, + "engines": { + "node": "^12.20 || ^14.13.1 || >= 16" + }, + "peerDependencies": { + "svelte": ">=3.19.0" + } + }, + "node_modules/svelte-preprocess": { + "version": "4.10.7", + "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.7.tgz", + "integrity": "sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@types/pug": "^2.0.4", + "@types/sass": "^1.16.0", + "detect-indent": "^6.0.0", + "magic-string": "^0.25.7", + "sorcery": "^0.10.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">= 9.11.2" + }, + "peerDependencies": { + "@babel/core": "^7.10.2", + "coffeescript": "^2.5.1", + "less": "^3.11.3 || ^4.0.0", + "postcss": "^7 || ^8", + "postcss-load-config": "^2.1.0 || ^3.0.0 || ^4.0.0", + "pug": "^3.0.0", + "sass": "^1.26.8", + "stylus": "^0.55.0", + "sugarss": "^2.0.0", + "svelte": "^3.23.0", + "typescript": "^3.9.5 || ^4.0.0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "coffeescript": { + "optional": true + }, + "less": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "postcss": { + "optional": true + }, + "postcss-load-config": { + "optional": true + }, + "pug": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/svelte-preprocess/node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/tiny-glob": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", + "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "dependencies": { + "globalyzer": "0.1.0", + "globrex": "^0.1.2" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "dev": true, + "dependencies": { + "@types/unist": "^2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/vfile-message": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", + "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", + "dev": true, + "dependencies": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.0.0.tgz", + "integrity": "sha512-M7phQhY3+fRZa0H+1WzI6N+/onruwPTBTMvaj7TzgZ0v2TE+N2sdLKxJOfOv9CckDWt5C4HmyQP81xB4dwRKzA==", + "dev": true, + "dependencies": { + "esbuild": "^0.14.47", + "postcss": "^8.4.14", + "resolve": "^1.22.1", + "rollup": "^2.75.6" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": ">=14.18.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + }, + "peerDependencies": { + "less": "*", + "sass": "*", + "stylus": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "stylus": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + } + }, "dependencies": { - "@babel/code-frame": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", - "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", + "@eslint/eslintrc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.0.tgz", + "integrity": "sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw==", "dev": true, "requires": { - "@babel/highlight": "^7.12.13" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.3.2", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" } }, - "@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", + "@humanwhocodes/config-array": { + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.5.tgz", + "integrity": "sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", "dev": true }, - "@babel/highlight": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.10.tgz", - "integrity": "sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==", + "@jridgewell/trace-mapping": { + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz", + "integrity": "sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" } }, - "@polka/url": { - "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true }, - "@rollup/plugin-node-resolve": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.1.3.tgz", - "integrity": "sha512-BdxNk+LtmElRo5d06MGY4zoepyrXX1tkzX2hrnPEZ53k78GuOMWLqmJDGIIOPwVRIFZrLQOo+Yr6KtCuLIA0AQ==", + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "requires": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "builtin-modules": "^3.1.0", - "deepmerge": "^4.2.2", - "is-module": "^1.0.0", - "resolve": "^1.19.0" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@playwright/test": { + "version": "1.23.4", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.23.4.tgz", + "integrity": "sha512-iIsoMJDS/lyuhw82FtcV/B3PXikgVD3hNe5hyvOpRM0uRr1OIpN3LgPeRbBjhzBWmyf6RgRg5fqK5sVcpA03yA==", + "dev": true, + "requires": { + "@types/node": "*", + "playwright-core": "1.23.4" } }, "@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", "dev": true, "requires": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", + "estree-walker": "^2.0.1", "picomatch": "^2.2.2" } }, - "@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true + "@sveltejs/adapter-static": { + "version": "1.0.0-next.37", + "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.37.tgz", + "integrity": "sha512-BDFkx4CGAd6pG4e3+zYjy/eM9UDbhkRgXqavUzCO5oT8xXao5TeprY1AIbdzjMTmFjsWdeSXE9TbIsT0iikpyQ==", + "requires": { + "tiny-glob": "^0.2.9" + } + }, + "@sveltejs/kit": { + "version": "1.0.0-next.377", + "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.377.tgz", + "integrity": "sha512-DH2v2yUBUuDZ7vzjPXUd/yt1AMR3BIkZN0ubLAvS2C+q5Wbvk7ZvAJhfPZ3OYc3ZpQXe4ZGEcptOjvEYvd1lLA==", + "dev": true, + "requires": { + "@sveltejs/vite-plugin-svelte": "^1.0.1", + "chokidar": "^3.5.3", + "sade": "^1.8.1" + } + }, + "@sveltejs/vite-plugin-svelte": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.0.1.tgz", + "integrity": "sha512-PorCgUounn0VXcpeJu+hOweZODKmGuLHsLomwqSj+p26IwjjGffmYQfVHtiTWq+NqaUuuHWWG7vPge6UFw4Aeg==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^4.2.1", + "debug": "^4.3.4", + "deepmerge": "^4.2.2", + "kleur": "^4.1.5", + "magic-string": "^0.26.2", + "svelte-hmr": "^0.14.12" + } }, "@types/node": { - "version": "14.14.41", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.41.tgz", - "integrity": "sha512-dueRKfaJL4RTtSa7bWeTK1M+VH+Gns73oCgzvYfHZywRCoPSd8EkXBL0mZ9unPTveBn+D9phZBaxuzpwjWkW0g==", + "version": "18.0.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.5.tgz", + "integrity": "sha512-En7tneq+j0qAiVwysBD79y86MT3ModuoIJbe7JXp+sb5UAjInSShmK3nXXMioBzfF7rXC12hv12d4IyCVwN4dA==", + "dev": true + }, + "@types/pug": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/pug/-/pug-2.0.6.tgz", + "integrity": "sha512-SnHmG9wN1UVmagJOnyo/qkk0Z7gejYxOYYmaAwr5u2yFYfsupN3sg10kyzN8Hep/2zbHxCnsumxOoRIRMBwKCg==", "dev": true }, - "@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "@types/sass": { + "version": "1.43.1", + "resolved": "https://registry.npmjs.org/@types/sass/-/sass-1.43.1.tgz", + "integrity": "sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==", "dev": true, "requires": { "@types/node": "*" } }, + "@types/unist": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", + "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==", + "dev": true + }, + "acorn": { + "version": "8.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz", + "integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==", + "dev": true + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" } }, "anymatch": { @@ -101,12 +2493,34 @@ "picomatch": "^2.0.4" } }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, "braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", @@ -116,33 +2530,32 @@ "fill-range": "^7.0.1" } }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true }, - "builtin-modules": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.2.0.tgz", - "integrity": "sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==", + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, "chokidar": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", - "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, "requires": { "anymatch": "~3.1.2", @@ -156,50 +2569,443 @@ } }, "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { - "color-name": "1.1.3" + "color-name": "~1.1.4" } }, "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true + }, + "detect-indent": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", + "dev": true + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "es6-promise": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz", + "integrity": "sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==", + "dev": true + }, + "esbuild": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.49.tgz", + "integrity": "sha512-/TlVHhOaq7Yz8N1OJrjqM3Auzo5wjvHFLk+T8pIue+fhnhIMpfAzsG6PLVMbFveVxqD2WOp3QHei+52IMUNmCw==", + "dev": true, + "requires": { + "esbuild-android-64": "0.14.49", + "esbuild-android-arm64": "0.14.49", + "esbuild-darwin-64": "0.14.49", + "esbuild-darwin-arm64": "0.14.49", + "esbuild-freebsd-64": "0.14.49", + "esbuild-freebsd-arm64": "0.14.49", + "esbuild-linux-32": "0.14.49", + "esbuild-linux-64": "0.14.49", + "esbuild-linux-arm": "0.14.49", + "esbuild-linux-arm64": "0.14.49", + "esbuild-linux-mips64le": "0.14.49", + "esbuild-linux-ppc64le": "0.14.49", + "esbuild-linux-riscv64": "0.14.49", + "esbuild-linux-s390x": "0.14.49", + "esbuild-netbsd-64": "0.14.49", + "esbuild-openbsd-64": "0.14.49", + "esbuild-sunos-64": "0.14.49", + "esbuild-windows-32": "0.14.49", + "esbuild-windows-64": "0.14.49", + "esbuild-windows-arm64": "0.14.49" + } + }, + "esbuild-android-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.49.tgz", + "integrity": "sha512-vYsdOTD+yi+kquhBiFWl3tyxnj2qZJsl4tAqwhT90ktUdnyTizgle7TjNx6Ar1bN7wcwWqZ9QInfdk2WVagSww==", + "dev": true, + "optional": true + }, + "esbuild-android-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.49.tgz", + "integrity": "sha512-g2HGr/hjOXCgSsvQZ1nK4nW/ei8JUx04Li74qub9qWrStlysaVmadRyTVuW32FGIpLQyc5sUjjZopj49eGGM2g==", + "dev": true, + "optional": true + }, + "esbuild-darwin-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.49.tgz", + "integrity": "sha512-3rvqnBCtX9ywso5fCHixt2GBCUsogNp9DjGmvbBohh31Ces34BVzFltMSxJpacNki96+WIcX5s/vum+ckXiLYg==", + "dev": true, + "optional": true + }, + "esbuild-darwin-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.49.tgz", + "integrity": "sha512-XMaqDxO846srnGlUSJnwbijV29MTKUATmOLyQSfswbK/2X5Uv28M9tTLUJcKKxzoo9lnkYPsx2o8EJcTYwCs/A==", + "dev": true, + "optional": true + }, + "esbuild-freebsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.49.tgz", + "integrity": "sha512-NJ5Q6AjV879mOHFri+5lZLTp5XsO2hQ+KSJYLbfY9DgCu8s6/Zl2prWXVANYTeCDLlrIlNNYw8y34xqyLDKOmQ==", + "dev": true, + "optional": true + }, + "esbuild-freebsd-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.49.tgz", + "integrity": "sha512-lFLtgXnAc3eXYqj5koPlBZvEbBSOSUbWO3gyY/0+4lBdRqELyz4bAuamHvmvHW5swJYL7kngzIZw6kdu25KGOA==", + "dev": true, + "optional": true + }, + "esbuild-linux-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.49.tgz", + "integrity": "sha512-zTTH4gr2Kb8u4QcOpTDVn7Z8q7QEIvFl/+vHrI3cF6XOJS7iEI1FWslTo3uofB2+mn6sIJEQD9PrNZKoAAMDiA==", + "dev": true, + "optional": true + }, + "esbuild-linux-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.49.tgz", + "integrity": "sha512-hYmzRIDzFfLrB5c1SknkxzM8LdEUOusp6M2TnuQZJLRtxTgyPnZZVtyMeCLki0wKgYPXkFsAVhi8vzo2mBNeTg==", + "dev": true, + "optional": true + }, + "esbuild-linux-arm": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.49.tgz", + "integrity": "sha512-iE3e+ZVv1Qz1Sy0gifIsarJMQ89Rpm9mtLSRtG3AH0FPgAzQ5Z5oU6vYzhc/3gSPi2UxdCOfRhw2onXuFw/0lg==", + "dev": true, + "optional": true + }, + "esbuild-linux-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.49.tgz", + "integrity": "sha512-KLQ+WpeuY+7bxukxLz5VgkAAVQxUv67Ft4DmHIPIW+2w3ObBPQhqNoeQUHxopoW/aiOn3m99NSmSV+bs4BSsdA==", + "dev": true, + "optional": true + }, + "esbuild-linux-mips64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.49.tgz", + "integrity": "sha512-n+rGODfm8RSum5pFIqFQVQpYBw+AztL8s6o9kfx7tjfK0yIGF6tm5HlG6aRjodiiKkH2xAiIM+U4xtQVZYU4rA==", + "dev": true, + "optional": true + }, + "esbuild-linux-ppc64le": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.49.tgz", + "integrity": "sha512-WP9zR4HX6iCBmMFH+XHHng2LmdoIeUmBpL4aL2TR8ruzXyT4dWrJ5BSbT8iNo6THN8lod6GOmYDLq/dgZLalGw==", + "dev": true, + "optional": true + }, + "esbuild-linux-riscv64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.49.tgz", + "integrity": "sha512-h66ORBz+Dg+1KgLvzTVQEA1LX4XBd1SK0Fgbhhw4akpG/YkN8pS6OzYI/7SGENiN6ao5hETRDSkVcvU9NRtkMQ==", + "dev": true, + "optional": true + }, + "esbuild-linux-s390x": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.49.tgz", + "integrity": "sha512-DhrUoFVWD+XmKO1y7e4kNCqQHPs6twz6VV6Uezl/XHYGzM60rBewBF5jlZjG0nCk5W/Xy6y1xWeopkrhFFM0sQ==", + "dev": true, + "optional": true + }, + "esbuild-netbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.49.tgz", + "integrity": "sha512-BXaUwFOfCy2T+hABtiPUIpWjAeWK9P8O41gR4Pg73hpzoygVGnj0nI3YK4SJhe52ELgtdgWP/ckIkbn2XaTxjQ==", + "dev": true, + "optional": true + }, + "esbuild-openbsd-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.49.tgz", + "integrity": "sha512-lP06UQeLDGmVPw9Rg437Btu6J9/BmyhdoefnQ4gDEJTtJvKtQaUcOQrhjTq455ouZN4EHFH1h28WOJVANK41kA==", + "dev": true, + "optional": true + }, + "esbuild-sunos-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.49.tgz", + "integrity": "sha512-4c8Zowp+V3zIWje329BeLbGh6XI9c/rqARNaj5yPHdC61pHI9UNdDxT3rePPJeWcEZVKjkiAS6AP6kiITp7FSw==", + "dev": true, + "optional": true + }, + "esbuild-windows-32": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.49.tgz", + "integrity": "sha512-q7Rb+J9yHTeKr9QTPDYkqfkEj8/kcKz9lOabDuvEXpXuIcosWCJgo5Z7h/L4r7rbtTH4a8U2FGKb6s1eeOHmJA==", + "dev": true, + "optional": true + }, + "esbuild-windows-64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.49.tgz", + "integrity": "sha512-+Cme7Ongv0UIUTniPqfTX6mJ8Deo7VXw9xN0yJEN1lQMHDppTNmKwAM3oGbD/Vqff+07K2gN0WfNkMohmG+dVw==", + "dev": true, + "optional": true + }, + "esbuild-windows-arm64": { + "version": "0.14.49", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.49.tgz", + "integrity": "sha512-v+HYNAXzuANrCbbLFJ5nmO3m5y2PGZWLe3uloAkLt87aXiO2mZr3BTmacZdjwNkNEHuH3bNtN8cak+mzVjVPfA==", + "dev": true, + "optional": true + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.19.0.tgz", + "integrity": "sha512-SXOPj3x9VKvPe81TjjUJCYlV4oJjQw68Uek+AM0X4p+33dj2HY5bpTZOgnQHcG2eAm1mtCU9uNMnJi7exU/kYw==", + "dev": true, + "requires": { + "@eslint/eslintrc": "^1.3.0", + "@humanwhocodes/config-array": "^0.9.2", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.3.2", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + } + } + }, + "eslint-plugin-svelte3": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-svelte3/-/eslint-plugin-svelte3-4.0.0.tgz", + "integrity": "sha512-OIx9lgaNzD02+MDFNLw0GEUbuovNcglg+wnd/UY0fbZmlQSz7GlQiQ1f+yX0XvC07XPcDOnFcichqI3xCwp71g==", + "dev": true, + "requires": {} + }, + "eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } + } + }, + "eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true + }, + "espree": { + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.3.2.tgz", + "integrity": "sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==", + "dev": true, + "requires": { + "acorn": "^8.7.1", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + } + }, + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", "dev": true }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "console-clear": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/console-clear/-/console-clear-1.1.1.tgz", - "integrity": "sha512-pMD+MVR538ipqkG5JXeOEbKWS5um1H4LUUccUQG68qpeqBYbzYy79Gh55jkd2TtPdRfUaLWdv6LPP//5Zt0aPQ==", + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, - "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", - "dev": true + "fast-glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "fastq": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "requires": { + "flat-cache": "^3.0.4" + } + }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -209,6 +3015,28 @@ "to-regex-range": "^5.0.1" } }, + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz", + "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, "fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", @@ -222,12 +3050,26 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha1-3Xzn3hh8Bsi/NTeWrHHgmfCYDrw=", + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", "dev": true }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", @@ -237,6 +3079,31 @@ "is-glob": "^4.0.1" } }, + "globals": { + "version": "13.16.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.16.0.tgz", + "integrity": "sha512-A1lrQfpNF+McdPOnnFqY3kSN0AFTy485bTi1bkLk4mVPODIUEcSfhHgRqA+QdXPksrSTTztYXx37NFV+GpGk3Q==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } + }, + "globalyzer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", + "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==" + }, + "globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -247,9 +3114,55 @@ } }, "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "ignore": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "dev": true + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + } + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "is-binary-path": { @@ -262,9 +3175,9 @@ } }, "is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", + "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", "dev": true, "requires": { "has": "^1.0.3" @@ -273,7 +3186,7 @@ "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true }, "is-glob": { @@ -285,110 +3198,200 @@ "is-extglob": "^2.1.1" } }, - "is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=", - "dev": true - }, "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, - "jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "argparse": "^2.0.1" } }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", "dev": true }, - "livereload": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/livereload/-/livereload-0.9.3.tgz", - "integrity": "sha512-q7Z71n3i4X0R9xthAryBdNGVGAO2R5X+/xXpmKeuPMrteg+W2U8VusTKV3YiJbXZwKsOlFlHe+go6uSNjfxrZw==", + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "requires": { - "chokidar": "^3.5.0", - "livereload-js": "^3.3.1", - "opts": ">= 1.2.0", - "ws": "^7.4.3" + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" } }, - "livereload-js": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-3.3.2.tgz", - "integrity": "sha512-w677WnINxFkuixAoUEXOStewzLYGI76XVag+0JWMMEyjJQKs0ibWZMxkTlB96Lm3EjZ7IeOxVziBEbtxVQqQZA==", + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "local-access": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/local-access/-/local-access-1.1.0.tgz", - "integrity": "sha512-XfegD5pyTAfb+GY6chk283Ox5z8WexG56OvM06RWLpAc/UHozO8X6xAxEkIitZOtsSMM1Yr3DkHgW5W+onLhCw==", + "magic-string": { + "version": "0.26.2", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.26.2.tgz", + "integrity": "sha512-NzzlXpclt5zAbmo6h6jNc8zl2gNRGHvmsZW4IvZhTC4W7k4OlLP+S5YLussa/r3ixNT66KOQfNORlXHSOy/X4A==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.8" + } + }, + "mdsvex": { + "version": "0.10.6", + "resolved": "https://registry.npmjs.org/mdsvex/-/mdsvex-0.10.6.tgz", + "integrity": "sha512-aGRDY0r5jx9+OOgFdyB9Xm3EBr9OUmcrTDPWLB7a7g8VPRxzPy4MOBmcVYgz7ErhAJ7bZ/coUoj6aHio3x/2mA==", + "dev": true, + "requires": { + "@types/unist": "^2.0.3", + "prism-svelte": "^0.4.7", + "prismjs": "^1.17.1", + "vfile-message": "^2.0.4" + } + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true }, - "mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, "mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", "dev": true }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true }, - "opts": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/opts/-/opts-2.0.2.tgz", - "integrity": "sha512-k41FwbcLnlgnFh69f4qdUfvDQ+5vaSDnVPFI/y5XuhKRq97EnVVneO9F1ESVCdiVu4fCS2L8usX3mU331hB7pg==", + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { @@ -397,21 +3400,65 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, "picomatch": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.3.tgz", - "integrity": "sha512-KpELjfwcCDUb9PeigTs2mBJzXUPzAuP2oPcA989He8Rte0+YUAjw1JVedDhuTKPkHjSYzMN3npC9luThGYEKdg==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "playwright-core": { + "version": "1.23.4", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.23.4.tgz", + "integrity": "sha512-h5V2yw7d8xIwotjyNrkLF13nV9RiiZLHdXeHo+nVJIYGVlZ8U2qV0pMxNJKNTvfQVT0N8/A4CW6/4EW2cOcTiA==", + "dev": true + }, + "postcss": { + "version": "8.4.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz", + "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==", "dev": true, "requires": { - "safe-buffer": "^5.1.0" + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" } }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, + "prism-svelte": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/prism-svelte/-/prism-svelte-0.4.7.tgz", + "integrity": "sha512-yABh19CYbM24V7aS7TuPYRNMqthxwbvx6FF/Rw920YbyBWO3tnyPIqRMgHuSVsLmuHkkBS1Akyof463FVdkeDQ==", + "dev": true + }, + "prismjs": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.28.0.tgz", + "integrity": "sha512-8aaXdYvl1F7iC7Xm1spqSaY/OJBpYW3v+KJ+F17iYxvdc8sfjW194COK5wVhMZX45tGteiBQgdvD/nhxcRwylw==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, "readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -421,202 +3468,158 @@ "picomatch": "^2.2.1" } }, - "require-relative": { - "version": "0.8.7", - "resolved": "https://registry.npmjs.org/require-relative/-/require-relative-0.8.7.tgz", - "integrity": "sha1-eZlTn8ngR6N5KPoZb44VY9q9Nt4=", + "regexpp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, "resolve": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, "requires": { - "is-core-module": "^2.8.1", + "is-core-module": "^2.9.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } }, - "rollup": { - "version": "2.66.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.66.0.tgz", - "integrity": "sha512-L6mKOkdyP8HK5kKJXaiWG7KZDumPJjuo1P+cfyHOJPNNTK3Moe7zCH5+fy7v8pVmHXtlxorzaBjvkBMB23s98g==", - "dev": true, - "requires": { - "fsevents": "~2.3.2" - } + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true }, - "rollup-plugin-css-only": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-css-only/-/rollup-plugin-css-only-3.1.0.tgz", - "integrity": "sha512-TYMOE5uoD76vpj+RTkQLzC9cQtbnJNktHPB507FzRWBVaofg7KhIqq1kGbcVOadARSozWF883Ho9KpSPKH8gqA==", + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "requires": { - "@rollup/pluginutils": "4" - }, - "dependencies": { - "@rollup/pluginutils": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.0.tgz", - "integrity": "sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==", - "dev": true, - "requires": { - "estree-walker": "^2.0.1", - "picomatch": "^2.2.2" - } - }, - "estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - } + "glob": "^7.1.3" } }, - "rollup-plugin-livereload": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/rollup-plugin-livereload/-/rollup-plugin-livereload-2.0.5.tgz", - "integrity": "sha512-vqQZ/UQowTW7VoiKEM5ouNW90wE5/GZLfdWuR0ELxyKOJUIaj+uismPZZaICU4DnWPVjnpCDDxEqwU7pcKY/PA==", + "rollup": { + "version": "2.77.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.77.0.tgz", + "integrity": "sha512-vL8xjY4yOQEw79DvyXLijhnhh+R/O9zpF/LEgkCebZFtb6ELeN9H3/2T0r8+mp+fFTBHZ5qGpOpW2ela2zRt3g==", "dev": true, "requires": { - "livereload": "^0.9.1" + "fsevents": "~2.3.2" } }, - "rollup-plugin-svelte": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-svelte/-/rollup-plugin-svelte-6.1.1.tgz", - "integrity": "sha512-ijnm0pH1ScrY4uxwaNXBpNVejVzpL2769hIEbAlnqNUWZrffLspu5/k9/l/Wsj3NrEHLQ6wCKGagVJonyfN7ow==", + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "requires": { - "require-relative": "^0.8.7", - "rollup-pluginutils": "^2.8.2", - "sourcemap-codec": "^1.4.8" + "queue-microtask": "^1.2.2" } }, - "rollup-plugin-terser": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz", - "integrity": "sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==", + "sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", "dev": true, "requires": { - "@babel/code-frame": "^7.10.4", - "jest-worker": "^26.2.1", - "serialize-javascript": "^4.0.0", - "terser": "^5.0.0" + "mri": "^1.1.0" } }, - "rollup-pluginutils": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", - "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", + "sander": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/sander/-/sander-0.5.1.tgz", + "integrity": "sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==", "dev": true, "requires": { - "estree-walker": "^0.6.1" + "es6-promise": "^3.1.2", + "graceful-fs": "^4.1.3", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.2" }, "dependencies": { - "estree-walker": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", - "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", - "dev": true + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } } } }, - "sade": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.7.4.tgz", - "integrity": "sha512-y5yauMD93rX840MwUJr7C1ysLFBgMspsdTo4UVrDg3fXDvtwOyIqykhVAAm6fk/3au77773itJStObgK+LKaiA==", + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "mri": "^1.1.0" + "shebang-regex": "^3.0.0" } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "semiver": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz", - "integrity": "sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==", + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "serialize-javascript": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", - "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "sorcery": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/sorcery/-/sorcery-0.10.0.tgz", + "integrity": "sha512-R5ocFmKZQFfSTstfOtHjJuAwbpGyf9qjQa1egyhvXSbM7emjrtLXtGdZsDJDABC85YBfVvrOiGWKSYXPKdvP1g==", "dev": true, "requires": { - "randombytes": "^2.1.0" + "buffer-crc32": "^0.2.5", + "minimist": "^1.2.0", + "sander": "^0.5.0", + "sourcemap-codec": "^1.3.0" } }, - "sirv": { - "version": "1.0.18", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.18.tgz", - "integrity": "sha512-f2AOPogZmXgJ9Ma2M22ZEhc1dNtRIzcEkiflMFeVTRq+OViOZMvH1IPMVOwrKaxpSaHioBJiDR0SluRqGa7atA==", - "dev": true, - "requires": { - "@polka/url": "^1.0.0-next.20", - "mime": "^2.3.1", - "totalist": "^1.0.0" - } + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true + }, + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true }, - "sirv-cli": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/sirv-cli/-/sirv-cli-1.0.14.tgz", - "integrity": "sha512-yyUTNr984ANKDloqepkYbBSqvx3buwYg2sQKPWjSU+IBia5loaoka2If8N9CMwt8AfP179cdEl7kYJ//iWJHjQ==", + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "requires": { - "console-clear": "^1.1.0", - "get-port": "^3.2.0", - "kleur": "^3.0.0", - "local-access": "^1.0.1", - "sade": "^1.6.0", - "semiver": "^1.0.0", - "sirv": "^1.0.13", - "tinydate": "^1.0.0" + "ansi-regex": "^5.0.1" } }, - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true - }, - "source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "min-indent": "^1.0.0" } }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" } }, "supports-preserve-symlinks-flag": { @@ -626,28 +3629,74 @@ "dev": true }, "svelte": { - "version": "3.46.2", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.46.2.tgz", - "integrity": "sha512-RXSAtYNefe01Sb1lXtZ2I+gzn3t/h/59hoaRNeRrm8IkMIu6BSiAkbpi41xb+C44x54YKnbk9+dtfs3pM4hECA==", + "version": "3.49.0", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.49.0.tgz", + "integrity": "sha512-+lmjic1pApJWDfPCpUUTc1m8azDqYCG1JN9YEngrx/hUyIcFJo6VZhj0A1Ai0wqoHcEIuQy+e9tk+4uDgdtsFA==", "dev": true }, - "terser": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.6.1.tgz", - "integrity": "sha512-yv9YLFQQ+3ZqgWCUk+pvNJwgUTdlIxUk1WTN+RnaFJe2L7ipG2csPT0ra2XRm7Cs8cxN7QXmK1rFzEwYEQkzXw==", + "svelte-check": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-2.8.0.tgz", + "integrity": "sha512-HRL66BxffMAZusqe5I5k26mRWQ+BobGd9Rxm3onh7ZVu0nTk8YTKJ9vu3LVPjUGLU9IX7zS+jmwPVhJYdXJ8vg==", "dev": true, "requires": { - "commander": "^2.20.0", - "source-map": "~0.7.2", - "source-map-support": "~0.5.19" + "@jridgewell/trace-mapping": "^0.3.9", + "chokidar": "^3.4.1", + "fast-glob": "^3.2.7", + "import-fresh": "^3.2.1", + "picocolors": "^1.0.0", + "sade": "^1.7.4", + "svelte-preprocess": "^4.0.0", + "typescript": "*" } }, - "tinydate": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tinydate/-/tinydate-1.3.0.tgz", - "integrity": "sha512-7cR8rLy2QhYHpsBDBVYnnWXm8uRTr38RoZakFSW7Bs7PzfMPNZthuMLkwqZv7MTu8lhQ91cOFYS5a7iFj2oR3w==", + "svelte-hmr": { + "version": "0.14.12", + "resolved": "https://registry.npmjs.org/svelte-hmr/-/svelte-hmr-0.14.12.tgz", + "integrity": "sha512-4QSW/VvXuqVcFZ+RhxiR8/newmwOCTlbYIezvkeN6302YFRE8cXy0naamHcjz8Y9Ce3ITTZtrHrIL0AGfyo61w==", + "dev": true, + "requires": {} + }, + "svelte-preprocess": { + "version": "4.10.7", + "resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-4.10.7.tgz", + "integrity": "sha512-sNPBnqYD6FnmdBrUmBCaqS00RyCsCpj2BG58A1JBswNF7b0OKviwxqVrOL/CKyJrLSClrSeqQv5BXNg2RUbPOw==", + "dev": true, + "requires": { + "@types/pug": "^2.0.4", + "@types/sass": "^1.16.0", + "detect-indent": "^6.0.0", + "magic-string": "^0.25.7", + "sorcery": "^0.10.0", + "strip-indent": "^3.0.0" + }, + "dependencies": { + "magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.8" + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "tiny-glob": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", + "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "requires": { + "globalyzer": "0.1.0", + "globrex": "^0.1.2" + } + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -657,16 +3706,93 @@ "is-number": "^7.0.0" } }, - "totalist": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + }, + "typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true + }, + "unist-util-stringify-position": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz", + "integrity": "sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==", + "dev": true, + "requires": { + "@types/unist": "^2.0.2" + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "vfile-message": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-2.0.4.tgz", + "integrity": "sha512-DjssxRGkMvifUOJre00juHoP9DPWuzjxKuMDrhNbk2TdaYYBNMStsNhEOt3idrtI12VQYM/1+iM0KOzXi4pxwQ==", + "dev": true, + "requires": { + "@types/unist": "^2.0.0", + "unist-util-stringify-position": "^2.0.0" + } + }, + "vite": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-3.0.0.tgz", + "integrity": "sha512-M7phQhY3+fRZa0H+1WzI6N+/onruwPTBTMvaj7TzgZ0v2TE+N2sdLKxJOfOv9CckDWt5C4HmyQP81xB4dwRKzA==", + "dev": true, + "requires": { + "esbuild": "^0.14.47", + "fsevents": "~2.3.2", + "postcss": "^8.4.14", + "resolve": "^1.22.1", + "rollup": "^2.75.6" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, - "ws": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.5.tgz", - "integrity": "sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==", + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true } } diff --git a/package.json b/package.json index e20a11f..61375a9 100644 --- a/package.json +++ b/package.json @@ -1,42 +1,28 @@ { "name": "svelty-picker", - "version": "1.3.0", "description": "Sweet date/time picker written in svelte", - "main": "index.js", - "svelte": "src/SveltyPicker.svelte", + "version": "2.0.0", "scripts": { - "build": "rollup -c", - "dev": "rollup -c -w", - "start": "sirv docs --port 5000", - "start-doc": "sirv . --port 8000 --cors", - "prepublishOnly": "npm run build" + "dev": "vite dev", + "build": "vite build", + "package": "svelte-kit package", + "preview": "vite preview", + "prepare": "svelte-kit sync", + "check": "svelte-check --tsconfig ./jsconfig.json", + "check:watch": "svelte-check --tsconfig ./jsconfig.json --watch", + "test": "playwright test", + "lint": "eslint ." }, "devDependencies": { - "@rollup/plugin-node-resolve": "^13.1.3", - "rollup": "^2.66.0", - "rollup-plugin-css-only": "^3.1.0", - "rollup-plugin-livereload": "^2.0.5", - "rollup-plugin-svelte": "^6.1.1", - "rollup-plugin-terser": "^7.0.0", - "sirv-cli": "^1.0.14", - "svelte": "^3.46.2" + "@sveltejs/kit": "next", + "eslint": "^8.16.0", + "eslint-plugin-svelte3": "^4.0.0", + "svelte": "^3.44.0", + "svelte-check": "^2.7.1", + "typescript": "^4.7.4", + "vite": "^3.0.0", + "mdsvex": "^0.10.6", + "@sveltejs/adapter-static": "^1.0.0-next.37" }, - "repository": { - "type": "git", - "url": "git+https://github.com/mskocik/svelty-picker.git" - }, - "author": "", - "license": "MIT", - "bugs": { - "url": "https://github.com/mskocik/svelty-picker/issues" - }, - "homepage": "https://github.com/mskocik/svelty-picker#readme", - "keywords": [ - "svelte", - "datepicker", - "timepicker", - "datetime", - "calendar" - ], - "dependencies": {} + "type": "module" } diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index e6c5131..0000000 --- a/rollup.config.js +++ /dev/null @@ -1,113 +0,0 @@ -import svelte from 'rollup-plugin-svelte'; -import resolve from '@rollup/plugin-node-resolve'; -import css from 'rollup-plugin-css-only'; -import livereload from 'rollup-plugin-livereload'; -import { terser } from 'rollup-plugin-terser'; - -const isProduction = !process.env.ROLLUP_WATCH; - - -function serve() { - let server; - - function toExit() { - if (server) server.kill(0); - } - - return { - writeBundle() { - if (server) return; - server = require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], { - stdio: ['ignore', 'inherit', 'inherit'], - shell: true - }); - - process.on('SIGTERM', toExit); - process.on('exit', toExit); - } - }; -} - -const module = { - input: 'index.js', - output: [ - { - sourcemap: false, - format: 'es', - file: 'dist/svelty-picker.mjs' - } - ], - plugins: [ - svelte({ - emitCss: true - }), - css({output: 'svelty-picker.css'}), - resolve(), - - isProduction && terser() - ] -} - -const component = { - input: 'component.js', - output: [ - { - sourcemap: false, - format: 'iife', - name: 'SveltyPicker', - file: 'dist/svelty-picker-element.js' - } - ], - plugins: [ - svelte({ - emitCss: true - }), - css({output: false}), - resolve(), - isProduction && terser() - ] -}; - -const componentBundle = { - input: 'component.js', - output: [ - { - sourcemap: false, - format: 'iife', - name: 'SveltyPicker', - file: 'dist/svelty-picker-element-bundle.js' - } - ], - plugins: [ - svelte({ - emitCss: false - }), - resolve(), - isProduction && terser() - ] -}; - -const docs = { - input: 'docs/index.js', - output: [ - { - sourcemap: false, - format: 'iife', - file: 'docs/datepicker.js' - }, - ], - plugins: [ - svelte(), - css({output: 'datepicker.css'}), - resolve(), - - !isProduction && serve(), - !isProduction && livereload(), - - isProduction && terser() - ] -} - -export default isProduction - ? [module, component, componentBundle, docs] - : docs; diff --git a/src/SveltyPicker.svelte b/src/SveltyPicker.svelte deleted file mode 100644 index 2e9d43e..0000000 --- a/src/SveltyPicker.svelte +++ /dev/null @@ -1,341 +0,0 @@ - - - - - { !isFocused && onFocus() }} - on:input - on:change - on:keydown={onKeyDown} -> -{#if visible || isFocused} -
- {#if currentMode === 'date'} - - {#if todayBtn || clearBtn} -
- {#if todayBtn} - - {/if} - {#if clearBtn} - - {/if} -
- {/if} - {:else} - - {/if} -
-{/if} - - - \ No newline at end of file diff --git a/src/app.d.ts b/src/app.d.ts new file mode 100644 index 0000000..b28d840 --- /dev/null +++ b/src/app.d.ts @@ -0,0 +1,11 @@ +/// + +// See https://kit.svelte.dev/docs/types#app +// for information about these interfaces +// and what to do when importing types +declare namespace App { + // interface Locals {} + // interface Platform {} + // interface Session {} + // interface Stuff {} +} diff --git a/src/app.html b/src/app.html new file mode 100644 index 0000000..79171de --- /dev/null +++ b/src/app.html @@ -0,0 +1,26 @@ + + + + + + + + + + %sveltekit.head% + + + Fork me on GitHub +
%sveltekit.body%
+ + diff --git a/src/dateUtils.js b/src/dateUtils.js deleted file mode 100644 index f273262..0000000 --- a/src/dateUtils.js +++ /dev/null @@ -1,372 +0,0 @@ -export const MODE_DECADE = 0; -export const MODE_YEAR = 1; -export const MODE_MONTH = 2; - -export function compute(currentDate, selectedDate, view, locale, weekStart) { - // years 4 x 3 - if (view === MODE_DECADE) { - const nextFrom = 11; - const prevTo = 1; - const todayMark = -1; - const grid = []; - let yearRow = []; - let currYear = currentDate.getUTCFullYear() - (currentDate.getUTCFullYear() % 10) - 1; - for (let i = 0; i < 12; i++) { - yearRow.push(currYear + i); - if (yearRow.length === 4) { - grid.push(yearRow); - yearRow = []; - } - } - let selectionMark = null; - if (!selectedDate) { - selectedDate = new Date(); - } - if (selectedDate.getUTCFullYear() >= currYear) { - selectionMark = selectedDate.getUTCFullYear() % currYear; - } - - return { - grid, todayMark, nextFrom, prevTo, selectionMark - } - } - - // months 4 x 3 - if (view === MODE_YEAR) { - let grid = []; - let monthRow = []; - let prevTo = 12; - let nextFrom = 24; - const ISO = currentDate.toISOString().split('T')[0].substring(0, 8); - const dateNormalized = new Date(ISO + '01 00:00:00'); - const initYear = dateNormalized.getFullYear() - 1; - dateNormalized.setFullYear(initYear); - let todayMark = 0; - for (let y = 0; y < 3; y++) { - for (let i = 0; i < 12; i++) { - dateNormalized.setUTCMonth(i); - monthRow.push(locale.monthsShort[i % 12]); - if (monthRow.length === 4) { - grid.push(monthRow); - monthRow = []; - } - } - dateNormalized.setFullYear(dateNormalized.getFullYear() + 1); - } - let selectionMark = null; - if (!selectedDate) { - selectedDate = new Date(); - } - if (selectedDate.getUTCFullYear() - initYear >= 0 && selectedDate.getUTCFullYear() - initYear <= 2) { - selectionMark = selectedDate.getUTCMonth() + ((selectedDate.getUTCFullYear() - initYear || 0) * 12); - } - return { - grid, todayMark, nextFrom, prevTo, selectionMark - } - } - - // days 7x6 - let d = currentDate || new Date(), // or currently selected date - y = d.getUTCFullYear(), - m = d.getUTCMonth(), - dM = d.getUTCDate(), - h = d.getUTCHours(), - today = new Date(); - let prevMonth = UTCDate(y, m-1, 28, 0, 0, 0, 0), - day = utils.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth()); - prevMonth.setUTCDate(day); - prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - weekStart + 7) % 7); - - let nextMonth = new Date(prevMonth); - nextMonth.setUTCDate(nextMonth.getUTCDate() + 42); - let nextMonthValue = nextMonth.valueOf(); - - let grid = []; - let dayRow = []; - let todayMark = -1; - let selectionMark = null; - let prevTo = 0; - let nextFrom = 42; - - let inc = 0; - while(prevMonth.valueOf() < nextMonthValue) { - inc++; - dayRow.push(new Date(prevMonth)); - if (prevMonth.getUTCFullYear() < y || (prevMonth.getUTCFullYear() === y && prevMonth.getUTCMonth() < m)) { - prevTo = inc; - } else if (nextFrom === 42 && (prevMonth.getUTCFullYear() > y || (prevMonth.getUTCFullYear() === y && prevMonth.getUTCMonth() > m))) { - nextFrom = inc - 1; - } - - prevMonth.setUTCDate(prevMonth.getUTCDate() + 1); - - - if (prevMonth.getUTCFullYear() === today.getUTCFullYear() && - prevMonth.getUTCMonth() === today.getUTCMonth() && - prevMonth.getUTCDate() === today.getUTCDate() - ) { - todayMark = inc; - } - if (!selectionMark && selectedDate - && prevMonth.getUTCFullYear() === selectedDate.getUTCFullYear() - && prevMonth.getUTCMonth() === selectedDate.getUTCMonth() - && prevMonth.getUTCDate() === selectedDate.getUTCDate() - ) { - selectionMark = inc; - } - - if (dayRow.length === 7) { - grid.push(dayRow); - dayRow = []; - } - } - return { grid, todayMark, prevTo, nextFrom, selectionMark }; -} - -export function moveGrid(newPos, view) { - if (view === MODE_MONTH) { - if (newPos < 0) { - newPos = 42 + newPos; - } - return { - x: newPos % 7, - y: Math.floor(newPos / 7) - } - } -} - -const utils = { - isLeapYear: function (year) { - return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0)) - }, - getDaysInMonth: function (year, month) { - return [31, (utils.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month] - }, -} - -export function UTCDate() { - return new Date(Date.UTC.apply(Date, arguments)); -} - -export function parseDate(date, format, i18n, type) { - if (date instanceof Date) { - const dateUTC = new Date(date.valueOf() - date.getTimezoneOffset() * 60000); - dateUTC.setMilliseconds(0); - return dateUTC; - } - if (/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(date)) { - format = formatHelper.parseFormat('yyyy-mm-dd', type); - } else - if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(date)) { - format = formatHelper.parseFormat('yyyy-mm-dd hh:ii', type); - } else - if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(date)) { - format = formatHelper.parseFormat('yyyy-mm-dd hh:ii:ss', type); - } else { - format = formatHelper.parseFormat(format, type); - } - var parts = date && date.toString().match(formatHelper.nonpunctuation) || [], - date = new Date(0, 0, 0, 0, 0, 0, 0), - parsed = {}, - setters_order = ['hh', 'h', 'ii', 'i', 'ss', 's', 'yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'D', 'DD', 'd', 'dd', 'H', 'HH', 'p', 'P', 'z', 'Z'], - setters_map = { - hh: function (d, v) { - return d.setUTCHours(v); - }, - h: function (d, v) { - return d.setUTCHours(v); - }, - HH: function (d, v) { - return d.setUTCHours(v === 12 ? 0 : v); - }, - H: function (d, v) { - return d.setUTCHours(v === 12 ? 0 : v); - }, - ii: function (d, v) { - return d.setUTCMinutes(v); - }, - i: function (d, v) { - return d.setUTCMinutes(v); - }, - ss: function (d, v) { - return d.setUTCSeconds(v); - }, - s: function (d, v) { - return d.setUTCSeconds(v); - }, - yyyy: function (d, v) { - return d.setUTCFullYear(v); - }, - yy: function (d, v) { - return d.setUTCFullYear(2000 + v); - }, - m: function (d, v) { - v -= 1; - while (v < 0) v += 12; - v %= 12; - d.setUTCMonth(v); - while (d.getUTCMonth() !== v) - if (isNaN(d.getUTCMonth())) - return d; - else - d.setUTCDate(d.getUTCDate() - 1); - return d; - }, - d: function (d, v) { - return d.setUTCDate(v); - }, - p: function (d, v) { - return d.setUTCHours(v === 1 ? d.getUTCHours() + 12 : d.getUTCHours()); - } - }, - val, part; - setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m']; - setters_map['dd'] = setters_map['d']; - setters_map['P'] = setters_map['p']; - date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), date.getUTCHours(), date.getUTCMinutes(), date.getSeconds()); - if (parts.length === format.parts.length) { - for (var i = 0, cnt = format.parts.length; i < cnt; i++) { - val = parseInt(parts[i], 10); - part = format.parts[i]; - if (isNaN(val)) { - switch (part) { - case 'MM': - val = i18n.months.indexOf(parts[i]) + 1; - break; - case 'M': - val= i18n.monthsShort.indexOf(parts[i]) + 1; - break; - case 'p': - case 'P': - val = i18n.meridiem.indexOf(parts[i].toLowerCase()); - break; - } - } - parsed[part] = val; - } - for (var i = 0, s; i < setters_order.length; i++) { - s = setters_order[i]; - if (s in parsed && !isNaN(parsed[s])) - setters_map[s](date, parsed[s]) - } - } - return date; -} - -export function formatDate(date, format, i18n, type) { - if (date === null) { - return ''; - } - var val; - if (type === 'standard') { - val = { - t: date.getTime(), - // year - yy: date.getUTCFullYear().toString().substring(2), - yyyy: date.getUTCFullYear(), - // month - m: date.getUTCMonth() + 1, - M: i18n.monthsShort[date.getUTCMonth()], - MM: i18n.months[date.getUTCMonth()], - // day - d: date.getUTCDate(), - D: i18n.daysShort[date.getUTCDay()], - DD: i18n.days[date.getUTCDay()], - p: (i18n.meridiem.length === 2 ? i18n.meridiem[date.getUTCHours() < 12 ? 0 : 1] : ''), - // hour - h: date.getUTCHours(), - // minute - i: date.getUTCMinutes(), - // second - s: date.getUTCSeconds(), - // timezone - z: date.toLocaleDateString(undefined, {day:'2-digit',timeZoneName: 'long' }).substring(4) - }; - - if (i18n.meridiem.length === 2) { - val.H = (val.h % 12 === 0 ? 12 : val.h % 12); - } - else { - val.H = val.h; - } - val.HH = (val.H < 10 ? '0' : '') + val.H; - val.P = val.p.toUpperCase(); - val.Z = val.z; - val.hh = (val.h < 10 ? '0' : '') + val.h; - val.ii = (val.i < 10 ? '0' : '') + val.i; - val.ss = (val.s < 10 ? '0' : '') + val.s; - val.dd = (val.d < 10 ? '0' : '') + val.d; - val.mm = (val.m < 10 ? '0' : '') + val.m; - } else if (type === 'php') { - // php format - val = { - // year - y: date.getUTCFullYear().toString().substring(2), - Y: date.getUTCFullYear(), - // month - F: i18n.months[date.getUTCMonth()], - M: i18n.monthsShort[date.getUTCMonth()], - n: date.getUTCMonth() + 1, - t: utils.getDaysInMonth(date.getUTCFullYear(), date.getUTCMonth()), - // day - j: date.getUTCDate(), - l: i18n.days[date.getUTCDay()], - D: i18n.daysShort[date.getUTCDay()], - w: date.getUTCDay(), // 0 -> 6 - N: (date.getUTCDay() === 0 ? 7 : date.getUTCDay()), // 1 -> 7 - S: (date.getUTCDate() % 10 <= i18n.suffix.length ? i18n.suffix[date.getUTCDate() % 10 - 1] : ''), - // hour - a: (i18n.meridiem.length === 2 ? i18n.meridiem[date.getUTCHours() < 12 ? 0 : 1] : ''), - g: (date.getUTCHours() % 12 === 0 ? 12 : date.getUTCHours() % 12), - G: date.getUTCHours(), - // minute - i: date.getUTCMinutes(), - // second - s: date.getUTCSeconds() - }; - val.m = (val.n < 10 ? '0' : '') + val.n; - val.d = (val.j < 10 ? '0' : '') + val.j; - val.A = val.a.toString().toUpperCase(); - val.h = (val.g < 10 ? '0' : '') + val.g; - val.H = (val.G < 10 ? '0' : '') + val.G; - val.i = (val.i < 10 ? '0' : '') + val.i; - val.s = (val.s < 10 ? '0' : '') + val.s; - } else { - throw new Error('Invalid format type.'); - } - let dateArr = []; - format = formatHelper.parseFormat(format, type); - for (var i = 0, cnt = format.parts.length; i < cnt; i++) { - if (format.separators.length) { - dateArr.push(format.separators.shift()); - } - dateArr.push(val[format.parts[i]]); - } - if (format.separators.length) { - dateArr.push(format.separators.shift()); - } - return dateArr.join(''); -} - -const formatHelper = { - validParts: function (type) { - if (type === 'standard') { - return /t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g; - } else if (type === 'php') { - return /[dDjlNwzFmMnStyYaABgGhHis]/g; - } else { - throw new Error('Invalid format type.'); - } - }, - nonpunctuation: /[^ -\/:-@\[-`{-~\t\n\rTZ]+/g, - parseFormat: function (format, type) { - // IE treats \0 as a string end in inputs (truncating the value), - // so it's a bad format delimiter, anyway - var separators = format.replace(this.validParts(type), '\0').split('\0'), - parts = format.match(this.validParts(type)); - if (!separators || !separators.length || !parts || parts.length === 0) { - throw new Error('Invalid date format.'); - } - return {separators: separators, parts: parts}; - }, -} \ No newline at end of file diff --git a/src/Calendar.svelte b/src/lib/components/Calendar.svelte similarity index 67% rename from src/Calendar.svelte rename to src/lib/components/Calendar.svelte index b9dd989..cd664ac 100644 --- a/src/Calendar.svelte +++ b/src/lib/components/Calendar.svelte @@ -1,43 +1,54 @@ @@ -244,8 +274,8 @@
{#if currentView === MODE_DECADE} - - {#each dataset.grid as row, i} + + {#each dataset.years as row, i} {#each row as year, j(j)} {/each} @@ -267,13 +298,14 @@ class:animate-transition={onMonthTransitionTrigger ? true : false} on:transitionend={() => onMonthTransitionTrigger && onMonthTransitionTrigger()} > - {#each dataset.grid as row, i} + {#each dataset.months as row, i} {#each row as month, j(j)} {/each} @@ -299,9 +331,9 @@ > + >{currDate.getDate()} {/each} diff --git a/src/lib/components/SveltyPicker.svelte b/src/lib/components/SveltyPicker.svelte new file mode 100644 index 0000000..8aa09ca --- /dev/null +++ b/src/lib/components/SveltyPicker.svelte @@ -0,0 +1,446 @@ + + + + + { + !pickerVisible && onInputFocus(); + }} + on:input + on:change + on:keydown={onKeyDown} +/> +{#if pickerVisible && isFocused } +
+ {#if currentMode === "date"} + + {#if todayBtn || clearBtn} +
+ {#if todayBtn} + + {/if} + {#if clearBtn} + + {/if} +
+ {/if} + {:else} +
+{/if} + + diff --git a/src/Time.svelte b/src/lib/components/Time.svelte similarity index 63% rename from src/Time.svelte rename to src/lib/components/Time.svelte index 54dfbf1..aad3674 100644 --- a/src/Time.svelte +++ b/src/lib/components/Time.svelte @@ -1,17 +1,27 @@
+
{#if hasDateComponent} - +
{/if}
-
{ handleMoveMove && onClick(e) }} on:mouseup={onToggleMove} bind:this={clockEl} - class:is-minute-view={isMinuteView} - > + +
{ handleMoveMove && onClick(e) }} on:mouseup={onToggleMove} bind:this={clockEl}>
{#each pos as p, i(p.val)} - {/each} - {#if !showMeridian && !isMinuteView} {#each innerHours as p, i} - - {/each} - {/if} + {/each}
@@ -256,6 +358,7 @@ display: flex; justify-content: center; align-items: center; + margin-bottom: 4px; } .sdt-time-figure { font-size: 1.5rem; @@ -269,10 +372,7 @@ background-color: var(--sdt-clock-bg); border-radius: 50%; transition: background-color 0.3s; - } - .sdt-clock.is-minute-view { - background-color: var(--sdt-clock-bg-minute, var(--sdt-clock-bg)); - box-shadow: var(--sdt-clock-bg-shadow); + overflow: hidden; } .sdt-time-btn { border: 0; @@ -280,7 +380,7 @@ text-align: center; border-radius: 4px; cursor: pointer; - padding: 0.375rem; + padding: 0 0.375rem; color: var(--sdt-color); } .sdt-svg { @@ -296,6 +396,7 @@ position: absolute; top: 0; left: 0; + padding: 0.375rem; opacity: 1 !important; } .sdt-meridian { @@ -355,6 +456,13 @@ line-height: 20px; cursor: pointer; background-color: transparent; + transition: all 0.3s; + } + .sdt-tick[disabled] { + cursor: not-allowed; + } + .sdt-tick.outer-tick { + opacity: 0; } .sdt-tick.is-selected { animation: tick-selection 0s 0.175s ease-out forwards; diff --git a/component.js b/src/lib/custom-element.js similarity index 94% rename from component.js rename to src/lib/custom-element.js index 4b1ea7b..eb2fb00 100644 --- a/component.js +++ b/src/lib/custom-element.js @@ -1,4 +1,5 @@ -import SveltyPicker, { config } from "./src/SveltyPicker.svelte"; +// @ts-nocheck +import SveltyPicker, { config } from "./components/SveltyPicker.svelte"; const OPTION_LIST = [ 'value', 'name', 'placeholder', 'start-date', 'end-date', 'disabled', 'input-classes', diff --git a/src/lib/index.js b/src/lib/index.js new file mode 100644 index 0000000..83fb9df --- /dev/null +++ b/src/lib/index.js @@ -0,0 +1,2 @@ +export { default as default } from './components/SveltyPicker.svelte'; +export { registerElement } from './custom-element'; diff --git a/src/lib/types.d.ts b/src/lib/types.d.ts new file mode 100644 index 0000000..380fa4f --- /dev/null +++ b/src/lib/types.d.ts @@ -0,0 +1,45 @@ +declare global { + export type i18nType = { + days: string[], + daysShort: string[], + daysMin: string[], + months: string[], + monthsShort: string[], + meridiem: string[], + suffix: string[], + todayBtn: string, + clearBtn: string, + timeView: string, + backToDate: string + } + + export type datasetType = { + grid: any[][], + days: Date[][], + months: string[][], + years: number[][], + selectionMark: number, + todayMark: number, + prevTo: number, + nextFrom: number + } + + interface TimeClickEvent extends MouseEvent { + type: string, + target: { + tagName: string, + dataset: { + value: string + } + }, + meridianSwitch?: boolean + } + + export type GridPosition = { + x: number, + y: number + } +} + +export default {} + diff --git a/src/lib/utils/dateUtils.js b/src/lib/utils/dateUtils.js new file mode 100644 index 0000000..e481ccc --- /dev/null +++ b/src/lib/utils/dateUtils.js @@ -0,0 +1,492 @@ +// @ts-nocheck + +export const MODE_DECADE = 0; +export const MODE_YEAR = 1; +export const MODE_MONTH = 2; + +/** + * + * @param {Date} currentDate + * @param {Date|null} selectedDate + * @param {number} view + * @param {i18nType} locale + * @param {number} weekStart + * @returns {datasetType} + */ +export function compute(currentDate, selectedDate, view, locale, weekStart) { + // years 4 x 3 + if (view === MODE_DECADE) { + const nextFrom = 11; + const prevTo = 1; + const todayMark = -1; + const grid = []; + let yearRow = []; + let currYear = currentDate.getFullYear() - (currentDate.getFullYear() % 10) - 1; + for (let i = 0; i < 12; i++) { + yearRow.push(currYear + i); + if (yearRow.length === 4) { + grid.push(yearRow); + yearRow = []; + } + } + let selectionMark = null; + if (!selectedDate) { + selectedDate = new Date(); + } + if (selectedDate.getFullYear() >= currYear) { + selectionMark = selectedDate.getFullYear() % currYear; + } + + return { + years: grid, todayMark, nextFrom, prevTo, selectionMark + } + } + + // months 4 x 3 + if (view === MODE_YEAR) { + let grid = []; + let monthRow = []; + let prevTo = 12; + let nextFrom = 24; + const ISO = currentDate.toISOString().split('T')[0].substring(0, 8); + const dateNormalized = new Date(ISO + '01 00:00:00'); + const initYear = dateNormalized.getFullYear() - 1; + dateNormalized.setFullYear(initYear); + let todayMark = 0; + for (let y = 0; y < 3; y++) { + for (let i = 0; i < 12; i++) { + dateNormalized.setMonth(i); + monthRow.push(locale.monthsShort[i % 12]); + if (monthRow.length === 4) { + grid.push(monthRow); + monthRow = []; + } + } + dateNormalized.setFullYear(dateNormalized.getFullYear() + 1); + } + let selectionMark = null; + if (!selectedDate) { + selectedDate = new Date(); + } + if (selectedDate.getFullYear() - initYear >= 0 && selectedDate.getFullYear() - initYear <= 2) { + selectionMark = selectedDate.getMonth() + ((selectedDate.getFullYear() - initYear || 0) * 12); + } + return { + months: grid, todayMark, nextFrom, prevTo, selectionMark + } + } + + // days 7x6 + let d = currentDate || new Date(), // or currently selected date + y = d.getFullYear(), + m = d.getMonth(), + dM = d.getDate(), + h = d.getHours(), + today = new Date(); + let prevMonth = new Date(y, m-1, 28, 0, 0, 0, 0), + day = utils.getDaysInMonth(prevMonth.getFullYear(), prevMonth.getMonth()); + prevMonth.setDate(day); + prevMonth.setDate(day - (prevMonth.getDay() - weekStart + 7) % 7); + + let nextMonth = new Date(prevMonth); + nextMonth.setDate(nextMonth.getDate() + 42); + let nextMonthValue = nextMonth.valueOf(); + + let grid = []; + let dayRow = []; + let todayMark = -1; + let selectionMark = null; + let prevTo = 0; + let nextFrom = 42; + + let inc = 0; + while(prevMonth.valueOf() < nextMonthValue) { + inc++; + dayRow.push(new Date(prevMonth)); + if (prevMonth.getFullYear() < y || (prevMonth.getFullYear() === y && prevMonth.getMonth() < m)) { + prevTo = inc; + } else if (nextFrom === 42 && (prevMonth.getFullYear() > y || (prevMonth.getFullYear() === y && prevMonth.getMonth() > m))) { + nextFrom = inc - 1; + } + + prevMonth.setDate(prevMonth.getDate() + 1); + + + if (prevMonth.getFullYear() === today.getFullYear() && + prevMonth.getMonth() === today.getMonth() && + prevMonth.getDate() === today.getDate() + ) { + todayMark = inc; + } + if (!selectionMark && selectedDate + && prevMonth.getFullYear() === selectedDate.getFullYear() + && prevMonth.getMonth() === selectedDate.getMonth() + && prevMonth.getDate() === selectedDate.getDate() + ) { + selectionMark = inc; + } + + if (dayRow.length === 7) { + grid.push(dayRow); + dayRow = []; + } + } + return { + grid, todayMark, prevTo, nextFrom, selectionMark + }; +} + +/** + * + * @param {number} newPos + * @param {number} view + * @returns {GridPosition} + */ +export function moveGrid(newPos, view) { + if (newPos < 0) { + newPos = 42 + newPos; + } + return { + x: newPos % 7, + y: Math.floor(newPos / 7) + } +} + +const utils = { + isLeapYear: function (/** @type {number} */ year) { + return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0)) + }, + getDaysInMonth: function (/** @type {number} */year, /** @type {number} */month) { + return [31, (utils.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month] + }, +} +export function isLower(/** @type {Date|string} */ a, /** @type {Date} */b) { + if (!(a instanceof Date)) return false; + return a.getFullYear() < b.getFullYear() + || (a.getMonth() < b.getMonth() || a.getDate() <= b.getDate()); +} + +export function isGreater(/** @type {Date|string} */a, /** @type {Date} */b) { + if (!(a instanceof Date)) return false; + return a.getFullYear() > b.getFullYear() + || (a.getMonth() > b.getMonth() || a.getDate() >= b.getDate()); + +} + +/** + * + * @param {Date|string} date + * @param {string} format + * @param {i18nType} i18n + * @param {string} type + * @returns + */ +export function parseDate(date, format, i18n, type) { + if (date instanceof Date) { + return date; + // const dateUTC = new Date(date.valueOf() + date.getTimezoneOffset() * 60000); + // dateUTC.setMilliseconds(0); + // return dateUTC; + } + const commonFormats = type === 'php' + ? { date: 'Y-m-d', datetime: 'Y-m-d H:i', datetime_s: 'Y-m-d H:i:s' } + : { date: 'yyyy-mm-dd', datetime: 'yyyy-mm-dd hh:ii', datetime_s: 'yyyy-mm-dd hh:ii:ss' }; + /** @var {{ separators: string[], parts: string[]}} */ + let parsedFormat; + if (/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(date)) { + parsedFormat = formatHelper.parseFormat(commonFormats.date, type); + } else + if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(date)) { + parsedFormat = formatHelper.parseFormat(commonFormats.datetime, type); + } else + if (/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(date)) { + parsedFormat = formatHelper.parseFormat(commonFormats.datetime_s, type); + } else { + parsedFormat = formatHelper.parseFormat(format, type); + } + const parts = date && date.toString().match(formatHelper.nonpunctuation) || []; + date = new Date(); // reset date + date.setHours(0,0,0,0); + const parsed = {}; + const { setters_order, setters_map } = formatHelper.setters(type); + let val, part; + if (parts.length !== parsedFormat.parts.length && parsedFormat.parts.includes('S')) { // specific suffix parsing from string like '14th' + const splitSuffix = parts[parsedFormat.parts.indexOf('S') - 1].match(/(\d+)([a-zA-Z]+)/).slice(1,3); + parts.splice(parsedFormat.parts.indexOf('S') - 1, 1, ...splitSuffix); + } + if (parts.length === parsedFormat.parts.length) { + for (var i = 0, cnt = parsedFormat.parts.length; i < cnt; i++) { + val = parseInt(parts[i], 10); + part = parsedFormat.parts[i]; + if (isNaN(val)) { + if (type === 'standard') { + switch (part) { + case 'MM': + val = i18n.months.indexOf(parts[i]) + 1; + break; + case 'M': + val= i18n.monthsShort.indexOf(parts[i]) + 1; + break; + case 'p': + case 'P': + val = i18n.meridiem.indexOf(parts[i].toLowerCase()); + break; + } + } else { + // php + switch (part) { + case 'D': + val = i18n.daysShort.indexOf(parts[i]) + 1; + break; + case 'l': + val = i18n.days.indexOf(parts[i]) + 1; + break; + case 'F': + val = i18n.months.indexOf(parts[i]) + 1; + break; + case 'M': + val= i18n.monthsShort.indexOf(parts[i]) + 1; + break; + case 'a': + case 'A': + val = i18n.meridiem.indexOf(parts[i].toLowerCase()); + break; + } + } + } + parsed[part] = val; + } + for (var i = 0, s; i < setters_order.length; i++) { + s = setters_order[i]; + if (s in parsed && !isNaN(parsed[s])) + setters_map[`${s}`] && setters_map[`${s}`](date, parsed[s]) + } + } + return date; +} + +/** + * @param {Date} date + * @param {string} format + * @param {i18nType} i18n + * @param {string} type + * @returns {string} + */ +export function formatDate(date, format, i18n, type) { + if (date === null) { + return ''; + } + const dateVal = date.getDate(); + let val; + if (type === 'standard') { + val = { + t: date.getTime(), + // year + yy: date.getFullYear().toString().substring(2), + yyyy: date.getFullYear(), + // month + m: date.getMonth() + 1, + M: i18n.monthsShort[date.getMonth()], + MM: i18n.months[date.getMonth()], + // day + d: dateVal, + D: i18n.daysShort[date.getDay()], + DD: i18n.days[date.getDay()], + S: (dateVal % 10 && dateVal % 10 <= i18n.suffix.length ? i18n.suffix[dateVal % 10 - 1] : i18n.suffix[i18n.suffix.length -1 ]), + p: (i18n.meridiem.length === 2 ? i18n.meridiem[date.getHours() < 12 ? 0 : 1] : ''), + // hour + h: date.getHours(), + // minute + i: date.getMinutes(), + // second + s: date.getUTCSeconds() + }; + + if (i18n.meridiem.length === 2) { + val.H = (val.h % 12 === 0 ? 12 : val.h % 12); + } + else { + val.H = val.h; + } + val.HH = (val.H < 10 ? '0' : '') + val.H; + val.P = val.p.toUpperCase(); + val.hh = (val.h < 10 ? '0' : '') + val.h; + val.ii = (val.i < 10 ? '0' : '') + val.i; + val.ss = (val.s < 10 ? '0' : '') + val.s; + val.dd = (val.d < 10 ? '0' : '') + val.d; + val.mm = (val.m < 10 ? '0' : '') + val.m; + } else if (type === 'php') { + // php format + val = { + // year + y: date.getFullYear().toString().substring(2), + Y: date.getFullYear(), + // month + F: i18n.months[date.getMonth()], + M: i18n.monthsShort[date.getMonth()], + n: date.getMonth() + 1, + t: utils.getDaysInMonth(date.getFullYear(), date.getMonth()), + // day + j: date.getDate(), + l: i18n.days[date.getDay()], + D: i18n.daysShort[date.getDay()], + w: date.getDay(), // 0 -> 6 + N: (date.getDay() === 0 ? 7 : date.getDay()), // 1 -> 7 + S: (dateVal % 10 && dateVal % 10 <= i18n.suffix.length ? i18n.suffix[dateVal % 10 - 1] : i18n.suffix[i18n.suffix.length -1 ]), + // hour + a: (i18n.meridiem.length === 2 ? i18n.meridiem[date.getHours() < 12 ? 0 : 1] : ''), + g: (date.getHours() % 12 === 0 ? 12 : date.getHours() % 12), + G: date.getHours(), + // minute + i: date.getMinutes(), + // second + s: date.getSeconds(), + U: Math.floor(date.getTime() / 1000) + }; + val.m = (val.n < 10 ? '0' : '') + val.n; + val.d = (val.j < 10 ? '0' : '') + val.j; + val.A = val.a.toString().toUpperCase(); + val.h = (val.g < 10 ? '0' : '') + val.g; + val.H = (val.G < 10 ? '0' : '') + val.G; + val.i = (val.i < 10 ? '0' : '') + val.i; + val.s = (val.s < 10 ? '0' : '') + val.s; + } else { + throw new Error('Invalid format type.'); + } + let dateArr = []; + format = formatHelper.parseFormat(format, type); + for (var i = 0, cnt = format.parts.length; i < cnt; i++) { + if (format.separators.length) { + dateArr.push(format.separators.shift()); + } + dateArr.push(val[format.parts[i]]); + } + if (format.separators.length) { + dateArr.push(format.separators.shift()); + } + return dateArr.join(''); +} + +const formatHelper = { + validParts: function(/** @type {string} */ type) { + if (type === 'standard') { + return /t|hh?|HH?|p|P|z|ii?|ss?|dd?|DD?|S|mm?|MM?|yy(?:yy)?/g; + } else if (type === 'php') { + return /[dDjlNwzFmMnStyYaABgGhHisU]/g; + } else { + throw new Error('Invalid format type.'); + } + }, + nonpunctuation: /[^ -\/:-@\[-`{-~\t\n\rTZ]+/g, + /** + * + * @param {string} format + * @param {string} type + * @returns {{ separators: string[], parts: string[]} } + */ + parseFormat: function (/** @type {string} */ format, /** @type {string} */ type) { + // IE treats \0 as a string end in inputs (truncating the value), + // so it's a bad format delimiter, anyway + var separators = format.replace(this.validParts(type), '\0').split('\0'), + parts = format.match(this.validParts(type)); + if (!separators || !separators.length || !parts || parts.length === 0) { + // throw new Error('Invalid date format.'); + console.warn('invalid date format', separators, parts); + parts = []; + } + return {separators: separators, parts: parts}; + }, + /** + * @param {string} type + * @returns {{setters_map: object, setters_order: Array}} + */ + setters: function(type) { + let setters_order, setters_map; + if (type === 'standard') { + setters_order = ['hh', 'h', 'HH', 'H', 'ii', 'i', 'ss', 's','d', 'dd', 'D','DD', 'S', 'm', 'mm', 'M', 'MM', 'yyyy', 'yy', 'p', 'P', 't']; + setters_map = { + /** @param {Date} d, @param {number} v */ + hh: (d, v) => d.setHours(v), + /** @param {Date} d, @param {number} v */ + h: (d, v) => d.setHours(v), + /** @param {Date} d, @param {number} v */ + HH: (d, v) => d.setHours(v === 12 ? 0 : v), + /** @param {Date} d, @param {number} v */ + H: (d, v) => d.setHours(v === 12 ? 0 : v), + /** @param {Date} d, @param {number} v */ + i: (d, v) => d.setMinutes(v), + /** @param {Date} d, @param {number} v */ + s: (d, v) => d.setSeconds(v), + /** @param {Date} d, @param {number} v */ + yyyy: (d, v) => d.setFullYear(v), + /** @param {Date} d, @param {number} v */ + yy: (d, v) => d.setFullYear((v < 50 ? 2000 : 1900) + v), + /** @param {Date} d, @param {number} v */ + m: (d, v) => { + v -= 1; + while (v < 0) v += 12; + v %= 12; + d.setMonth(v); + while (d.getMonth() !== v) + if (isNaN(d.getMonth())) + return d; + else + d.setDate(d.getDate() - 1); + return d; + }, + /** @param {Date} d, @param {number} v */ + d: (d, v) => d.setDate(v), + /** @param {Date} d, @param {number} v */ + p: (d, v) => d.setHours(v === 1 ? d.getHours() + 12 : d.getHours()), + /** @param {Date} d, @param {number} v */ + t: (d, v) => d.setTime(v), + mm: ()=>{}, + M: ()=>{}, + MM: ()=>{}, + ii: ()=>{}, + ss: ()=>{}, + dd: ()=>{}, + D: ()=>{}, + DD: ()=>{}, + P: ()=>{} + }; + setters_map.mm = setters_map.M = setters_map.MM = setters_map.m; + setters_map.ii = setters_map.i; + setters_map.ss = setters_map.s; + setters_map.dd = setters_map.D = setters_map.DD = setters_map.d; + setters_map.P = setters_map.p; + } else { + // php + setters_order = ['H','G','h','g','i','s','d','D','j','l','N','S','m','M','F','n','Y','yy','p','P','U']; + setters_map = { + H: (d, v) => d.setHours(v), + G: (d, v) => d.setHours(v), + h: (d, v) => d.setHours(v === 12 ? 0 : v), + g: (d, v) => d.setHours(v === 12 ? 0 : v), + i: (d, v) => d.setMinutes(v), + s: (d, v) => d.setSeconds(v), + Y: (d, v) => d.setFullYear(v), + yy: (d, v) => d.setFullYear((v < 50 ? 2000 : 1900) + v), + m: (d, v) => { + v -= 1; + while (v < 0) v += 12; + v %= 12; + d.setMonth(v); + while (d.getMonth() !== v) + if (isNaN(d.getMonth())) + return d; + else + d.setDate(d.getDate() - 1); + return d; + }, + d: (d, v) => d.setDate(v), + a: (d, v) => d.setHours(v === 1 ? d.getHours() + 12 : d.getHours()), + U: (d, v) => d.setTime(v * 1000) + }; + setters_map.F = setters_map.M = setters_map.m; + setters_map.D = setters_map.j = setters_map.l = setters_map.N = setters_map.d; + setters_map.A = setters_map.a; + } + return { setters_order, setters_map }; + } +} \ No newline at end of file diff --git a/src/i18n.js b/src/lib/utils/i18n.js similarity index 100% rename from src/i18n.js rename to src/lib/utils/i18n.js diff --git a/src/settings.js b/src/lib/utils/settings.js similarity index 86% rename from src/settings.js rename to src/lib/utils/settings.js index 4783a98..4d3be4e 100644 --- a/src/settings.js +++ b/src/lib/utils/settings.js @@ -6,8 +6,7 @@ export default { format: 'yyyy-mm-dd', formatType: 'standard', weekStart: 1, - visible: false, - inputClasses: null, + inputClasses: '', todayBtnClasses: 'sdt-action-btn sdt-today-btn', clearBtnClasses: 'sdt-action-btn sdt-clear-btn', todayBtn: true, diff --git a/src/utils.js b/src/lib/utils/utils.js similarity index 94% rename from src/utils.js rename to src/lib/utils/utils.js index 5585177..2e2f2c4 100644 --- a/src/utils.js +++ b/src/lib/utils/utils.js @@ -31,11 +31,13 @@ export function usePosition(el, { inputEl, visible, inputRect }) { } export function scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, end = 1, opacity = 0 } = {}) { + /* #region */ const style = getComputedStyle(node); const target_opacity = +style.opacity; const transform = style.transform === 'none' ? '' : style.transform; const sd = 1 - start; const od = target_opacity * (1 - opacity); + /* #endregion */ return { delay, duration, diff --git a/src/routes/_README.md b/src/routes/_README.md new file mode 100644 index 0000000..db08e7f --- /dev/null +++ b/src/routes/_README.md @@ -0,0 +1,201 @@ +# 📆 Svelty Picker [![NPM version](http://img.shields.io/npm/v/svelty-picker.svg?style=flat)](https://www.npmjs.org/package/svelty-picker) + +Simple date & time picker implemented in svelte. + +Features: +- datepicker +- timepicker (with meridian support) +- various formatting options +- keyboard navigation +- includes `` element +- easily themable +- restriction by start and end date +- validator action for `` using `svelte-use-forms` (optional) +- custom element + +![screenshot](https://raw.githubusercontent.com/mskocik/svelty-picker/main/docs/screenshot.png) + +## ⚙️ Install + +``` +npm install svelty-picker +``` + +## 👀 Example + +```svelte + + + +``` + +Try yourself in [REPL](https://svelte.dev/repl/98fd362aad6049f4b38606820baff0b0?version=3.44.1). + +## 📓 Options + +| Property | Type | Default | Description | +|-----------------|--------------|---------------| ------------------| +| name | `string` | `date` | html attribute for underlying `` element | +| disabled | `bool` | `false` | html attribute for underlying `` element | +| placeholder | `string` | `null` | html attribute for underlying `` element | +| required | `bool` | `false` | html attribute for underlying `` element | +| value | `string` | `null` | string representation of selected value | +| initialDate | `Date` | `null` | initial date object, if you prefer that to `value` | +| startDate | `string|Date`| `null` | limit minimal selectable date | +| endDate | `string|Date`| `null` | limit maximal selectable date | +| pickerOnly | `bool` | `false` | Picker is always visible and input field is then hidden, but still present | +| theme | `string` | `sdt-calendar-colors` | css class defining [css variables](#css-variables) | +| mode | `string` | `auto` | restrict picker's mode. Possible values: `auto|date|datetime|time`. By default it try to guess the mode from `format` | +| format | `string` | `yyyy-mm-dd` | Format of entered date/time. See [format settings](#format-settings) for available options | +| weekStart | `number` | `1` | number in range `0-6` to select first day of the week. Sunday is `0` | +| inputClasses | `string` | `` | input css class string | +| todayBtnClasses | `string` | `sdt-action-btn sdt-today-btn` | today button css classes | +| clearBtnClasses | `string` | `sdt-action-btn sdt-clear-btn` | clear button css classes | +| todayBtn | `bool` | `true` | Show today button | +| clearBtn | `bool` | `true` | Show clear button | +| clearToggle | `bool` | `true` | Clear current selection by clicking the same date +| autoclose | `bool` | `true` | Hides picker after selection is done. If mode includes _time picker_, it closes automatically only after minute selection | +| i18n | `object` | `en` | localization object, english is by default | +| positionFn | `function` | _`internal`_ | function used to position picker. Used as action. Acceps following object: `{ inputEl, visible}`, where `visible` is `visible` parameter & `inputEl` is underlying `` element | +| validatorAction | `array` | `null` | Bind validator action for inner `` element. Designed to be used with `svelte-use-form`. + +Note: Properties starting by `theme` to `i18n` are configurable globally by overriding it in globally available `config` + +```js +import { config } from 'svelty-picker'; + +// set new locale +config.i18n = { + // my localization object +} +// default for all pickers in the app +config.todayBtn = false; +``` +### Format settings + +Date format can be defined under `formatType` property. It has two options: `standard` and `php`, where +`standard` is the _default_. + +#### `standard` format settings: + +- `d` : day of the month without leading zeros +- `dd` : day of the month, 2 digits with leading zeros +- `D` : short textual representation of a weekday (i18n.daysShort) +- `DD` : long textual representation of a weekday (i18n.days) +- `S` : English ordinal suffix for the day of the month, (i18n.suffix) +- `m` : numeric representation of month without leading zeros +- `mm` : numeric representation of the month, 2 digits with leading zeros +- `M` : short textual representation of a month, three letters (i18n.monthsShort) +- `MM` : full textual representation of a month, such as January or March (i18n.months) +- `yy` : two digit representation of a year +- `yyyy` : full numeric representation of a year, 4 digits +- `h` : hour without leading zeros - 24-hour format +- `hh` : hour, 2 digits with leading zeros - 24-hour format +- `H` : hour without leading zeros - 12-hour format +- `HH` : hour, 2 digits with leading zeros - 12-hour format +- `i` : minutes, 2 digits with leading zeros +- `ii` : alias for `i` +- `s` : seconds, 2 digits with leading zeros +- `ss` : alias for `s` +- `p` : meridian in lower case ('am' or 'pm') - according to locale file (i18n.meridiem) +- `P` : meridian in upper case ('AM' or 'PM') - according to locale file (i18n.meridiem) +- `t` : timestamp in milliseconds (although milliseconds are always 0). For timestamp in seconds use `php` format + +#### `php` format settings: + +- `d` : Day of the month, 2 digits with leading zeros 01 to 31 +- `D` : A textual representation of a day, three letters Mon through Sun +- `j` : Day of the month without leading zeros 1 to 31 +- `l` : A full textual representation of the day of the week Sunday through Saturday +- `N` : ISO 8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday) +- `S` : English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j +- `F` : A full textual representation of a month, such as January or March January through December +- `m` : Numeric representation of a month, with leading zeros 01 through 12 +- `M` : A short textual representation of a month, three letters Jan through Dec +- `n` : Numeric representation of a month, without leading zeros 1 through 12 +- `Y` : A full numeric representation of a year, at least 4 digits, with - for years BCE. Examples: -0055, 0787, 1999, 2003 +- `y` : A two digit representation of a year Examples: 99 or 03 +- `a` : Lowercase Ante meridiem and Post meridiem am or pm +- `A` : Uppercase Ante meridiem and Post meridiem AM or PM +- `g` : 12-hour format of an hour without leading zeros 1 through 12 +- `G` : 24-hour format of an hour without leading zeros 0 through 23 +- `h` : 12-hour format of an hour with leading zeros 01 through 12 +- `H` : 24-hour format of an hour with leading zeros 00 through 23 +- `i` : Minutes with leading zeros 00 to 59 +- `s` : Seconds with leading zeros 00 through 59 +- `U` : timestamp in seconds. For timestamp with miliseconds use `standard` format + +### CSS variables + +```css +/** defaults */ +.sdt-calendar-colors { + --sdt-primary: #286090; + --sdt-color: #000; + --sdt-bg-main: #fff; + --sdt-bg-today: var(--sdt-primary); + --sdt-bg-clear: #dc3545; + --sdt-today-bg: #1e486d; + --sdt-clear-color: #dc3545; + --sdt-btn-bg-hover: #eee; + --sdt-btn-header-bg-hover: #dfdfdf; + --sdt-clock-bg: #eeeded; + --sdt-clock-bg-minute: rgb(238, 237, 237, 0.25); + --sdt-clock-bg-shadow: 0 0 128px 2px #ddd inset; + --sdt-shadow: #ccc; +} +``` + +## 🗯️ Events + +Component emits `input`, `change` and `blur` events. + +- `input` is dispatched on `` element therefore you can get current value like from every native event: +- `change` event is using Svelte's `eventDispatcher`, therefore triggered event contains `detail` property + +```js + + + +``` + +## 🌐 Localization + +Localization file has following structure. + +```js +export const en = { + days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], + daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], + daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'], + months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], + monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + meridiem: ['am', 'pm'], + suffix: ['st', 'nd', 'rd', 'th'], + todayBtn: 'Today', + clearBtn: 'Clear', + timeView: 'Show time view', + backToDate: 'Back to calendar view' +} +``` +PRs for extending built-in localization are welcome 🥳 + +## 🏆 Thanks to: + +- [Bootstrap datepicker](https://github.com/smalot/bootstrap-datetimepicker/blob/master/js/bootstrap-datetimepicker.js) for some internal date and format handling + +## Licence: + +MIT diff --git a/docs/docs.svelte b/src/routes/_examples.svelte similarity index 78% rename from docs/docs.svelte rename to src/routes/_examples.svelte index 6915ab7..7269dce 100644 --- a/docs/docs.svelte +++ b/src/routes/_examples.svelte @@ -1,181 +1,183 @@ - - -
-
-

Simple Date & time picker

- Using bootstrap css for showcase -
- - -
📅 Full example!
- -

- Selected format determines, if time picker will be available based on time part of given format. -

- -
console.log('submit')}> -
-
-
- - Full date-time picker - - -
-
-
- Change format: - -
-
- - -
-
-
- 💡 Limit dates with startDate & endDate properties -
-
- Pick your holiday session: -
- - - -
-
-

- Selected date of From serves as startDate for To date picker and vice versa, where To - serves as endDate for From date picker. -

- -

This example uses Svelty-picker as a custom-element.

-
-
-
- 🕒 Timepicker only. Forced by mode set to time. -
-
- Time picker only: - -
-
-
- -
- 🎨 Easily themable - just override CSS variables -
-
-
-
- Default theme - - -
-
- Custom theme - - -
-
-
- -
- 💬 Event listening: -
- -
-
-
- - Full date-time picker - - -
-
-
- Event log: - -
-
-

Below is README from GitHub repository.

-
-
-
- - + + +
+

🥳 Examples

+ Using bootstrap css for showcase + +
📅 Full example!
+ +

+ Selected format determines, if time picker will be available based on time part of given format. +

+ +
console.log('submit')}> +
+
+
+ + Full date-time picker + + +
+
+
+ Change format: + +
+
+ + +
+
+
+ 💡 Limit dates with startDate & endDate. +
+
+ Pick your holiday session: +
+ + + +
+
+

+ Selected date of From serves as startDate for To date picker and vice versa, where To + serves as endDate for From date picker. +

+ +

This example uses Svelty-picker as a custom-element.

+
+
+
+ 🕒 Timepicker only. Forced by mode set to time. +
+
+ Time picker only: + +
+
+
+ +
+ 🎨 Easily themable - just override CSS variables +
+
+
+
+ Default theme + + +
+
+ Custom theme + + +
+
+
+
+
+ Datepicker as custom element! + +
+
+ +
+ 💬 Event listening: +
+ +
+
+
+ + Full date-time picker + + +
+
+
+ Event log: + +
+
+

Check more details at GitHub repository.

+
+ + diff --git a/src/routes/_index.svx b/src/routes/_index.svx new file mode 100644 index 0000000..6b7574c --- /dev/null +++ b/src/routes/_index.svx @@ -0,0 +1,74 @@ + + +
+
+
+
+ + + + + + +
+
+
+ +
+
+
+
+
{value}
+
+
+
+
+ +
+
+
+ + diff --git a/src/routes/index.svelte b/src/routes/index.svelte new file mode 100644 index 0000000..6757aca --- /dev/null +++ b/src/routes/index.svelte @@ -0,0 +1,35 @@ + + +
+
+ +
+
+
+ +
+
+ +
+
+
+
+
diff --git a/static/.nojekyll b/static/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..825b9e6 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/screenshot.png b/static/screenshot.png new file mode 100644 index 0000000..41a72b3 Binary files /dev/null and b/static/screenshot.png differ diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000..59e6231 --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,31 @@ +import { mdsvex } from "mdsvex"; +import mdsvexConfig from "./mdsvex.config.js"; +import adapter from "@sveltejs/adapter-static"; + +const dev = process.env.NODE_ENV === "development"; + +/** @type {import('@sveltejs/kit').Config} */ +const config = { + extensions: [".svelte", ...mdsvexConfig.extensions], + + kit: { + adapter: adapter({ + pages: "docs", + assets: "docs", + }), + trailingSlash: "never", + prerender: { + default: true, + }, + paths: { + base: dev ? "" : "/svelty-picker", + }, + package: { + emitTypes: false, + }, + }, + + preprocess: [mdsvex(mdsvexConfig)], +}; + +export default config; diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..8747050 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,8 @@ +import { sveltekit } from '@sveltejs/kit/vite'; + +/** @type {import('vite').UserConfig} */ +const config = { + plugins: [sveltekit()] +}; + +export default config;
@@ -253,6 +283,7 @@ class="std-btn" class:not-current={!isBetween(i*4+j)} on:click|preventDefault={() => { onClick(year)}} + disabled={isDisabledDate(new Date(year, activeDate.getMonth(), activeDate.getDate()))} >{year}