diff --git a/docs/404.html b/docs/404.html index 3ab505dab..d119c69ee 100644 --- a/docs/404.html +++ b/docs/404.html @@ -5,10 +5,10 @@ 404 | Vue Datepicker - + - + @@ -18,8 +18,8 @@ -
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

Released under the MIT License.

- +
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/assets/app.BTp4AAR5.js b/docs/assets/app.BTp4AAR5.js new file mode 100644 index 000000000..ec5baca7f --- /dev/null +++ b/docs/assets/app.BTp4AAR5.js @@ -0,0 +1,7 @@ +import{j as o,am as p,an as u,ao as l,ap as c,aq as f,ar as d,as as m,at as h,au as A,av as g,L as v,d as P,u as _,l as w,z as y,aw as R,ax as C,ay as E,ab as b}from"./chunks/framework.DOHaQP0J.js";import{R as T}from"./chunks/theme.BboVNGUh.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(T),S=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=_();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),C(),E(),s.setup&&s.setup(),()=>b(s.Layout)}});async function D(){globalThis.__VITEPRESS__=!0;const e=j(),a=L();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function L(){return h(S)}function j(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(n),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&D().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{D as createApp}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/docs/assets/app.C5fUyrYv.js b/docs/assets/app.C5fUyrYv.js deleted file mode 100644 index 78df6fbb1..000000000 --- a/docs/assets/app.C5fUyrYv.js +++ /dev/null @@ -1,7 +0,0 @@ -import{j as o,am as i,an as u,ao as l,ap as c,aq as f,ar as d,as as m,at as h,au as A,av as g,L as v,d as P,u as w,l as y,z as C,aw as R,ax as _,ay as b,ab as E}from"./chunks/framework.B2SzNmjg.js";import{R as D}from"./chunks/theme.BzdH-DCK.js";function p(e){if(e.extends){const a=p(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=p(D),L=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=w();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&R(),_(),b(),s.setup&&s.setup(),()=>E(s.Layout)}});async function T(){const e=x(),a=j();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function j(){return h(L)}function x(){let e=o,a;return A(t=>{let n=g(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=v(()=>import(n),__vite__mapDeps([]))),o&&(e=!1),r},s.NotFound)}o&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/docs/assets/chunks/VPAlgoliaSearchBox.BbqGHjI_.js b/docs/assets/chunks/VPAlgoliaSearchBox.OR8LPsXr.js similarity index 99% rename from docs/assets/chunks/VPAlgoliaSearchBox.BbqGHjI_.js rename to docs/assets/chunks/VPAlgoliaSearchBox.OR8LPsXr.js index 57a2b5ad7..fa4c798fc 100644 --- a/docs/assets/chunks/VPAlgoliaSearchBox.BbqGHjI_.js +++ b/docs/assets/chunks/VPAlgoliaSearchBox.OR8LPsXr.js @@ -1,4 +1,4 @@ -import{d as so,az as fo,O as mo,l as po,y as vo,W as ho,o as yo,c as go}from"./framework.B2SzNmjg.js";import{u as bo}from"./theme.BzdH-DCK.js";/*! @docsearch/js 3.5.2 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function ur(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function I(t){for(var e=1;e=0||(l[u]=a[u]);return l}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function se(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var i,a,c=[],u=!0,s=!1;try{for(o=o.call(r);!(u=(i=o.next()).done)&&(c.push(i.value),!n||c.length!==n);u=!0);}catch(l){s=!0,a=l}finally{try{u||o.return==null||o.return()}finally{if(s)throw a}}return c}}(t,e)||yn(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +import{d as so,az as fo,O as mo,l as po,y as vo,W as ho,o as yo,c as go}from"./framework.DOHaQP0J.js";import{u as bo}from"./theme.BboVNGUh.js";/*! @docsearch/js 3.5.2 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */function ur(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function I(t){for(var e=1;e=0||(l[u]=a[u]);return l}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function se(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var i,a,c=[],u=!0,s=!1;try{for(o=o.call(r);!(u=(i=o.next()).done)&&(c.push(i.value),!n||c.length!==n);u=!0);}catch(l){s=!0,a=l}finally{try{u||o.return==null||o.return()}finally{if(s)throw a}}return c}}(t,e)||yn(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ft(t){return function(e){if(Array.isArray(e))return Lt(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||yn(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function yn(t,e){if(t){if(typeof t=="string")return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(t,e):void 0}}function Lt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r3)for(r=[r],i=3;i0?Ie(v.type,v.props,v.key,null,v.__v):v)!=null){if(v.__=r,v.__b=r.__b+1,(p=b[l])===null||p&&v.key==p.key&&v.type===p.type)b[l]=void 0;else for(m=0;m<_;m++){if((p=b[m])&&v.key==p.key&&v.type===p.type){b[m]=void 0;break}p=null}Yt(t,v,p=p||mt,o,i,a,c,u,s),d=v.__e,(m=v.ref)&&p.ref!=m&&(y||(y=[]),p.ref&&y.push(p.ref,null,v),y.push(m,v.__c||d,v)),d!=null?(h==null&&(h=d),typeof v.type=="function"&&v.__k!=null&&v.__k===p.__k?v.__d=u=wn(v,u,t):u=jn(t,v,p,b,d,u),s||r.type!=="option"?typeof r.type=="function"&&(r.__d=u):t.value=""):u&&p.__e==u&&u.parentNode!=t&&(u=We(p))}for(r.__e=h,l=_;l--;)b[l]!=null&&(typeof r.type=="function"&&b[l].__e!=null&&b[l].__e==r.__d&&(r.__d=We(n,l+1)),In(b[l],b[l]));if(y)for(l=0;l3)for(r=[r],i=3;i=r.__.length&&r.__.push({}),r.__[t]}function kn(t){return pe=1,An(xn,t)}function An(t,e,r){var n=Je(de++,2);return n.t=t,n.__c||(n.__=[r?r(e):xn(void 0,e),function(o){var i=n.t(n.__[0],o);n.__[0]!==i&&(n.__=[i,n.__[1]],n.__c.setState({}))}],n.__c=q),n.__}function Cn(t,e){var r=Je(de++,3);!w.__s&&Gt(r.__H,e)&&(r.__=t,r.__H=e,q.__H.__h.push(r))}function gr(t,e){var r=Je(de++,4);!w.__s&&Gt(r.__H,e)&&(r.__=t,r.__H=e,q.__h.push(r))}function Pt(t,e){var r=Je(de++,7);return Gt(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function Po(){Ht.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(ut),t.__H.__h.forEach(Ut),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}),Ht=[]}w.__b=function(t){q=null,pr&&pr(t)},w.__r=function(t){vr&&vr(t),de=0;var e=(q=t.__c).__H;e&&(e.__h.forEach(ut),e.__h.forEach(Ut),e.__h=[])},w.diffed=function(t){dr&&dr(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(Ht.push(e)!==1&&mr===w.requestAnimationFrame||((mr=w.requestAnimationFrame)||function(r){var n,o=function(){clearTimeout(i),br&&cancelAnimationFrame(n),setTimeout(r)},i=setTimeout(o,100);br&&(n=requestAnimationFrame(o))})(Po)),q=void 0},w.__c=function(t,e){e.some(function(r){try{r.__h.forEach(ut),r.__h=r.__h.filter(function(n){return!n.__||Ut(n)})}catch(n){e.some(function(o){o.__h&&(o.__h=[])}),e=[],w.__e(n,r.__v)}}),hr&&hr(t,e)},w.unmount=function(t){yr&&yr(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(ut)}catch(r){w.__e(r,e.__v)}};var br=typeof requestAnimationFrame=="function";function ut(t){var e=q;typeof t.__c=="function"&&t.__c(),q=e}function Ut(t){var e=q;t.__c=t.__(),q=e}function Gt(t,e){return!t||t.length!==e.length||e.some(function(r,n){return r!==t[n]})}function xn(t,e){return typeof e=="function"?e(t):e}function Nn(t,e){for(var r in e)t[r]=e[r];return t}function Ft(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Bt(t){this.props=t}(Bt.prototype=new K).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(t,e){return Ft(this.props,t)||Ft(this.state,e)};var _r=w.__b;w.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),_r&&_r(t)};var Io=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Or=function(t,e){return t==null?null:$($(t).map(e))},Do={map:Or,forEach:Or,count:function(t){return t?$(t).length:0},only:function(t){var e=$(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:$},ko=w.__e;function ct(){this.__u=0,this.t=null,this.__b=null}function Tn(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function je(){this.u=null,this.o=null}w.__e=function(t,e,r){if(t.then){for(var n,o=e;o=o.__;)if((n=o.__c)&&n.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),n.__c(t,e)}ko(t,e,r)},(ct.prototype=new K).__c=function(t,e){var r=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=Tn(n.__v),i=!1,a=function(){i||(i=!0,r.componentWillUnmount=r.__c,o?o(c):c())};r.__c=r.componentWillUnmount,r.componentWillUnmount=function(){a(),r.__c&&r.__c()};var c=function(){if(!--n.__u){if(n.state.__e){var s=n.state.__e;n.__v.__k[0]=function m(p,v,d){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(h){return m(h,v,d)}),p.__c&&p.__c.__P===v&&(p.__e&&d.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=d)),p}(s,s.__c.__P,s.__c.__O)}var l;for(n.setState({__e:n.__b=null});l=n.t.pop();)l.forceUpdate()}},u=e.__h===!0;n.__u++||u||n.setState({__e:n.__b=n.__v.__k[0]}),t.then(a,a)},ct.prototype.componentWillUnmount=function(){this.t=[]},ct.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function i(a,c,u){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(s){typeof s.__c=="function"&&s.__c()}),a.__c.__H=null),(a=Nn({},a)).__c!=null&&(a.__c.__P===u&&(a.__c.__P=c),a.__c=null),a.__k=a.__k&&a.__k.map(function(s){return i(s,c,u)})),a}(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__e&&W(X,null,t.fallback);return o&&(o.__h=null),[W(X,null,e.__e?null:t.children),o]};var Sr=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),e.i.removeChild(n)}}),Ke(W(Ao,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Rn(t,e){return W(Co,{__v:t,i:e})}(je.prototype=new K).__e=function(t){var e=this,r=Tn(e.__v),n=e.o.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),Sr(e,t,n)):o()};r?r(i):i()}},je.prototype.render=function(t){this.u=null,this.o=new Map;var e=$(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},je.prototype.componentDidUpdate=je.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){Sr(t,r,e)})};var qn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,No=function(t){return(typeof Symbol<"u"&&Ve(Symbol())=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};function Ln(t,e,r){return e.__k==null&&(e.textContent=""),Ke(t,e),typeof r=="function"&&r(),t?t.__c:null}K.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(K.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var wr=w.event;function To(){}function Ro(){return this.cancelBubble}function qo(){return this.defaultPrevented}w.event=function(t){return wr&&(t=wr(t)),t.persist=To,t.isPropagationStopped=Ro,t.isDefaultPrevented=qo,t.nativeEvent=t};var Mn,jr={configurable:!0,get:function(){return this.class}},Er=w.vnode;w.vnode=function(t){var e=t.type,r=t.props,n=r;if(typeof e=="string"){for(var o in n={},r){var i=r[o];o==="value"&&"defaultValue"in r&&i==null||(o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!No(r.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():xo.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),n[o]=i)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=$(r.children).forEach(function(a){a.props.selected=n.value.indexOf(a.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=$(r.children).forEach(function(a){a.props.selected=n.multiple?n.defaultValue.indexOf(a.props.value)!=-1:n.defaultValue==a.props.value})),t.props=n}e&&r.class!=r.className&&(jr.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",jr)),t.$$typeof=qn,Er&&Er(t)};var Pr=w.__r;w.__r=function(t){Pr&&Pr(t),Mn=t.__c};var Lo={ReactCurrentDispatcher:{current:{readContext:function(t){return Mn.__n[t.__c].props.value}}}};(typeof performance>"u"?"undefined":Ve(performance))=="object"&&typeof performance.now=="function"&&performance.now.bind(performance);function Ir(t){return!!t&&t.$$typeof===qn}var f={useState:kn,useReducer:An,useEffect:Cn,useLayoutEffect:gr,useRef:function(t){return pe=5,Pt(function(){return{current:t}},[])},useImperativeHandle:function(t,e,r){pe=6,gr(function(){typeof t=="function"?t(e()):t&&(t.current=e())},r==null?r:r.concat(t))},useMemo:Pt,useCallback:function(t,e){return pe=8,Pt(function(){return t},e)},useContext:function(t){var e=q.context[t.__c],r=Je(de++,9);return r.__c=t,e?(r.__==null&&(r.__=!0,e.sub(q)),e.props.value):t.__},useDebugValue:function(t,e){w.useDebugValue&&w.useDebugValue(e?e(t):t)},version:"16.8.0",Children:Do,render:Ln,hydrate:function(t,e,r){return Dn(t,e),typeof r=="function"&&r(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(Ke(null,t),!0)},createPortal:Rn,createElement:W,createContext:function(t,e){var r={__c:e="__cC"+bn++,__:t,Consumer:function(n,o){return n.children(o)},Provider:function(n){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(Mt)},this.sub=function(a){o.push(a);var c=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),c&&c.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r},createFactory:function(t){return W.bind(null,t)},cloneElement:function(t){return Ir(t)?Eo.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:X,isValidElement:Ir,findDOMNode:function(t){return t&&(t.base||t.nodeType===1&&t)||null},Component:K,PureComponent:Bt,memo:function(t,e){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!a:Ft(this.props,o)}function n(o){return this.shouldComponentUpdate=r,W(t,o)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n},forwardRef:function(t){function e(r,n){var o=Nn({},r);return delete o.ref,t(o,(n=r.ref||n)&&(Ve(n)!="object"||"current"in n)?n:null)}return e.$$typeof=Io,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:X,Suspense:ct,SuspenseList:je,lazy:function(t){var e,r,n;function o(i){if(e||(e=t()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw e;return W(r,i)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lo};function Mo(){return f.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},f.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function Hn(){return f.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},f.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var Ho=["translations"];function Vt(){return Vt=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0||(l[u]=a[u]);return l}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Bo=f.forwardRef(function(t,e){var r=t.translations,n=r===void 0?{}:r,o=Fo(t,Ho),i=n.buttonText,a=i===void 0?"Search":i,c=n.buttonAriaLabel,u=c===void 0?"Search":c,s=Uo(kn(null),2),l=s[0],m=s[1];return Cn(function(){typeof navigator<"u"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?m("⌘"):m("Ctrl"))},[]),f.createElement("button",Vt({type:"button",className:"DocSearch DocSearch-Button","aria-label":u},o,{ref:e}),f.createElement("span",{className:"DocSearch-Button-Container"},f.createElement(Hn,null),f.createElement("span",{className:"DocSearch-Button-Placeholder"},a)),f.createElement("span",{className:"DocSearch-Button-Keys"},l!==null&&f.createElement(f.Fragment,null,f.createElement("kbd",{className:"DocSearch-Button-Key"},l==="Ctrl"?f.createElement(Mo,null):l),f.createElement("kbd",{className:"DocSearch-Button-Key"},"K"))))});function Un(t,e){var r=void 0;return function(){for(var n=arguments.length,o=new Array(n),i=0;in.has(r.toLowerCase()):r=>n.has(r)}const ee={},_t=[],xe=()=>{},Ri=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nr=e=>e.startsWith("onUpdate:"),ce=Object.assign,Fr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Oi=Object.prototype.hasOwnProperty,Y=(e,t)=>Oi.call(e,t),D=Array.isArray,bt=e=>Xt(e)==="[object Map]",$n=e=>Xt(e)==="[object Set]",os=e=>Xt(e)==="[object Date]",q=e=>typeof e=="function",ne=e=>typeof e=="string",Qe=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",no=e=>(Z(e)||q(e))&&q(e.then)&&q(e.catch),ro=Object.prototype.toString,Xt=e=>ro.call(e),Ii=e=>Xt(e).slice(8,-1),so=e=>Xt(e)==="[object Object]",$r=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vt=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Li=/-(\w)/g,Pe=Hn(e=>e.replace(Li,(t,n)=>n?n.toUpperCase():"")),Mi=/\B([A-Z])/g,dt=Hn(e=>e.replace(Mi,"-$1").toLowerCase()),jn=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),_n=Hn(e=>e?`on${jn(e)}`:""),Ze=(e,t)=>!Object.is(e,t),bn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ut=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pi=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let is;const oo=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(D(e)){const t={};for(let n=0;n{if(n){const r=n.split(Fi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Dn(e){let t="";if(ne(e))t=e;else if(D(e))for(let n=0;nkn(n,t))}const ou=e=>ne(e)?e:e==null?"":D(e)||Z(e)&&(e.toString===ro||!q(e.toString))?JSON.stringify(e,lo,2):String(e),lo=(e,t)=>t&&t.__v_isRef?lo(e,t.value):bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[rr(r,o)+" =>"]=s,n),{})}:$n(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rr(n))}:Qe(t)?rr(t):Z(t)&&!D(t)&&!so(t)?String(t):t,rr=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function Pr(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const ee={},_t=[],xe=()=>{},Ri=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nr=e=>e.startsWith("onUpdate:"),ce=Object.assign,Fr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Oi=Object.prototype.hasOwnProperty,Y=(e,t)=>Oi.call(e,t),D=Array.isArray,bt=e=>Xt(e)==="[object Map]",$n=e=>Xt(e)==="[object Set]",is=e=>Xt(e)==="[object Date]",q=e=>typeof e=="function",ne=e=>typeof e=="string",Qe=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",ro=e=>(Z(e)||q(e))&&q(e.then)&&q(e.catch),so=Object.prototype.toString,Xt=e=>so.call(e),Ii=e=>Xt(e).slice(8,-1),oo=e=>Xt(e)==="[object Object]",$r=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vt=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Li=/-(\w)/g,Pe=Hn(e=>e.replace(Li,(t,n)=>n?n.toUpperCase():"")),Mi=/\B([A-Z])/g,dt=Hn(e=>e.replace(Mi,"-$1").toLowerCase()),jn=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),_n=Hn(e=>e?`on${jn(e)}`:""),Ze=(e,t)=>!Object.is(e,t),bn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ut=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pi=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let ls;const io=()=>ls||(ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vn(e){if(D(e)){const t={};for(let n=0;n{if(n){const r=n.split(Fi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Dn(e){let t="";if(ne(e))t=e;else if(D(e))for(let n=0;nkn(n,t))}const ou=e=>ne(e)?e:e==null?"":D(e)||Z(e)&&(e.toString===so||!q(e.toString))?JSON.stringify(e,co,2):String(e),co=(e,t)=>t&&t.__v_isRef?co(e,t.value):bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[rr(r,o)+" =>"]=s,n),{})}:$n(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rr(n))}:Qe(t)?rr(t):Z(t)&&!D(t)&&!oo(t)?String(t):t,rr=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let be;class Ui{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Xe,n=at;try{return Xe=!0,at=this,this._runnings++,ls(this),this.fn()}finally{cs(this),this._runnings--,at=n,Xe=t}}stop(){var t;this.active&&(ls(this),cs(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Wi(e){return e.value}function ls(e){e._trackId++,e._depsLength=0}function cs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},xn=new WeakMap,ut=Symbol(""),wr=Symbol("");function ye(e,t,n){if(Xe&&at){let r=xn.get(e);r||xn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=po(()=>r.delete(n))),fo(at,s)}}function He(e,t,n,r,s,o){const i=xn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&D(e)){const c=Number(r);i.forEach((u,f)=>{(f==="length"||!Qe(f)&&f>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":D(e)?$r(n)&&l.push(i.get("length")):(l.push(i.get(ut)),bt(e)&&l.push(i.get(wr)));break;case"delete":D(e)||(l.push(i.get(ut)),bt(e)&&l.push(i.get(wr)));break;case"set":bt(e)&&l.push(i.get(ut));break}jr();for(const c of l)c&&ho(c,4);Vr()}function qi(e,t){var n;return(n=xn.get(e))==null?void 0:n.get(t)}const Gi=Pr("__proto__,__v_isRef,__isVue"),go=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe)),as=zi();function zi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=J(this);for(let o=0,i=this.length;o{e[t]=function(...n){ht(),jr();const r=J(this)[t].apply(this,n);return Vr(),pt(),r}}),e}function Xi(e){const t=J(this);return ye(t,"has",e),t.hasOwnProperty(e)}class mo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?cl:vo:o?bo:_o).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=D(t);if(!s){if(i&&Y(as,n))return Reflect.get(as,n,r);if(n==="hasOwnProperty")return Xi}const l=Reflect.get(t,n,r);return(Qe(n)?go.has(n):Gi(n))||(s||ye(t,"get",n),o)?l:he(l)?i&&$r(n)?l:l.value:Z(l)?s?Kn(l):Bn(l):l}}class yo extends mo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=Tt(o);if(!Sn(r)&&!Tt(r)&&(o=J(o),r=J(r)),!D(t)&&he(o)&&!he(r))return c?!1:(o.value=r,!0)}const i=D(t)&&$r(n)?Number(n)e,Un=e=>Reflect.getPrototypeOf(e);function rn(e,t,n=!1,r=!1){e=e.__v_raw;const s=J(e),o=J(t);n||(Ze(t,o)&&ye(s,"get",t),ye(s,"get",o));const{has:i}=Un(s),l=r?Dr:n?Br:Bt;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function sn(e,t=!1){const n=this.__v_raw,r=J(n),s=J(e);return t||(Ze(e,s)&&ye(r,"has",e),ye(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function on(e,t=!1){return e=e.__v_raw,!t&&ye(J(e),"iterate",ut),Reflect.get(e,"size",e)}function us(e){e=J(e);const t=J(this);return Un(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function fs(e,t){t=J(t);const n=J(this),{has:r,get:s}=Un(n);let o=r.call(n,e);o||(e=J(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Ze(t,i)&&He(n,"set",e,t):He(n,"add",e,t),this}function ds(e){const t=J(this),{has:n,get:r}=Un(t);let s=n.call(t,e);s||(e=J(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&He(t,"delete",e,void 0),o}function hs(){const e=J(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function ln(e,t){return function(r,s){const o=this,i=o.__v_raw,l=J(i),c=t?Dr:e?Br:Bt;return!e&&ye(l,"iterate",ut),i.forEach((u,f)=>r.call(s,c(u),c(f),o))}}function cn(e,t,n){return function(...r){const s=this.__v_raw,o=J(s),i=bt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...r),f=n?Dr:t?Br:Bt;return!t&&ye(o,"iterate",c?wr:ut),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ke(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function el(){const e={get(o){return rn(this,o)},get size(){return on(this)},has:sn,add:us,set:fs,delete:ds,clear:hs,forEach:ln(!1,!1)},t={get(o){return rn(this,o,!1,!0)},get size(){return on(this)},has:sn,add:us,set:fs,delete:ds,clear:hs,forEach:ln(!1,!0)},n={get(o){return rn(this,o,!0)},get size(){return on(this,!0)},has(o){return sn.call(this,o,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:ln(!0,!1)},r={get(o){return rn(this,o,!0,!0)},get size(){return on(this,!0)},has(o){return sn.call(this,o,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=cn(o,!1,!1),n[o]=cn(o,!0,!1),t[o]=cn(o,!1,!0),r[o]=cn(o,!0,!0)}),[e,n,t,r]}const[tl,nl,rl,sl]=el();function kr(e,t){const n=t?e?sl:rl:e?nl:tl;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Y(n,s)&&s in r?n:r,s,o)}const ol={get:kr(!1,!1)},il={get:kr(!1,!0)},ll={get:kr(!0,!1)},_o=new WeakMap,bo=new WeakMap,vo=new WeakMap,cl=new WeakMap;function al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ul(e){return e.__v_skip||!Object.isExtensible(e)?0:al(Ii(e))}function Bn(e){return Tt(e)?e:Ur(e,!1,Ji,ol,_o)}function fl(e){return Ur(e,!1,Zi,il,bo)}function Kn(e){return Ur(e,!0,Qi,ll,vo)}function Ur(e,t,n,r,s){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=ul(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function wt(e){return Tt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function Sn(e){return!!(e&&e.__v_isShallow)}function wo(e){return wt(e)||Tt(e)}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Pt(e){return Object.isExtensible(e)&&Cn(e,"__v_skip",!0),e}const Bt=e=>Z(e)?Bn(e):e,Br=e=>Z(e)?Kn(e):e;class Eo{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Hr(()=>t(this._value),()=>Nt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&Ze(t._value,t._value=t.effect.run())&&Nt(t,4),Kr(t),t.effect._dirtyLevel>=2&&Nt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function dl(e,t,n=!1){let r,s;const o=q(e);return o?(r=e,s=xe):(r=e.get,s=e.set),new Eo(r,s,o||!s,n)}function Kr(e){var t;Xe&&at&&(e=J(e),fo(at,(t=e.dep)!=null?t:e.dep=po(()=>e.dep=void 0,e instanceof Eo?e:void 0)))}function Nt(e,t=4,n){e=J(e);const r=e.dep;r&&ho(r,t)}function he(e){return!!(e&&e.__v_isRef===!0)}function ie(e){return xo(e,!1)}function Co(e){return xo(e,!0)}function xo(e,t){return he(e)?e:new hl(e,t)}class hl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:Bt(t)}get value(){return Kr(this),this._value}set value(t){const n=this.__v_isShallow||Sn(t)||Tt(t);t=n?t:J(t),Ze(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Bt(t),Nt(this,4))}}function So(e){return he(e)?e.value:e}const pl={get:(e,t,n)=>So(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function To(e){return wt(e)?e:new Proxy(e,pl)}class gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Kr(this),()=>Nt(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function ml(e){return new gl(e)}class yl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return qi(J(this._object),this._key)}}class _l{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function bl(e,t,n){return he(e)?e:q(e)?new _l(e):Z(e)&&arguments.length>1?vl(e,t,n):ie(e)}function vl(e,t,n){const r=e[t];return he(r)?r:new yl(e,t,n)}/** +**/let be;class Ui{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=be,!t&&be&&(this.index=(be.scopes||(be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Xe,n=at;try{return Xe=!0,at=this,this._runnings++,cs(this),this.fn()}finally{as(this),this._runnings--,at=n,Xe=t}}stop(){var t;this.active&&(cs(this),as(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Wi(e){return e.value}function cs(e){e._trackId++,e._depsLength=0}function as(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},xn=new WeakMap,ut=Symbol(""),wr=Symbol("");function ye(e,t,n){if(Xe&&at){let r=xn.get(e);r||xn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=go(()=>r.delete(n))),ho(at,s)}}function He(e,t,n,r,s,o){const i=xn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&D(e)){const c=Number(r);i.forEach((u,f)=>{(f==="length"||!Qe(f)&&f>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":D(e)?$r(n)&&l.push(i.get("length")):(l.push(i.get(ut)),bt(e)&&l.push(i.get(wr)));break;case"delete":D(e)||(l.push(i.get(ut)),bt(e)&&l.push(i.get(wr)));break;case"set":bt(e)&&l.push(i.get(ut));break}jr();for(const c of l)c&&po(c,4);Vr()}function qi(e,t){var n;return(n=xn.get(e))==null?void 0:n.get(t)}const Gi=Pr("__proto__,__v_isRef,__isVue"),mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe)),us=zi();function zi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=J(this);for(let o=0,i=this.length;o{e[t]=function(...n){ht(),jr();const r=J(this)[t].apply(this,n);return Vr(),pt(),r}}),e}function Xi(e){const t=J(this);return ye(t,"has",e),t.hasOwnProperty(e)}class yo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?cl:wo:o?vo:bo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=D(t);if(!s){if(i&&Y(us,n))return Reflect.get(us,n,r);if(n==="hasOwnProperty")return Xi}const l=Reflect.get(t,n,r);return(Qe(n)?mo.has(n):Gi(n))||(s||ye(t,"get",n),o)?l:he(l)?i&&$r(n)?l:l.value:Z(l)?s?Kn(l):Bn(l):l}}class _o extends yo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=Tt(o);if(!Sn(r)&&!Tt(r)&&(o=J(o),r=J(r)),!D(t)&&he(o)&&!he(r))return c?!1:(o.value=r,!0)}const i=D(t)&&$r(n)?Number(n)e,Un=e=>Reflect.getPrototypeOf(e);function rn(e,t,n=!1,r=!1){e=e.__v_raw;const s=J(e),o=J(t);n||(Ze(t,o)&&ye(s,"get",t),ye(s,"get",o));const{has:i}=Un(s),l=r?Dr:n?Br:Bt;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function sn(e,t=!1){const n=this.__v_raw,r=J(n),s=J(e);return t||(Ze(e,s)&&ye(r,"has",e),ye(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function on(e,t=!1){return e=e.__v_raw,!t&&ye(J(e),"iterate",ut),Reflect.get(e,"size",e)}function fs(e){e=J(e);const t=J(this);return Un(t).has.call(t,e)||(t.add(e),He(t,"add",e,e)),this}function ds(e,t){t=J(t);const n=J(this),{has:r,get:s}=Un(n);let o=r.call(n,e);o||(e=J(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Ze(t,i)&&He(n,"set",e,t):He(n,"add",e,t),this}function hs(e){const t=J(this),{has:n,get:r}=Un(t);let s=n.call(t,e);s||(e=J(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&He(t,"delete",e,void 0),o}function ps(){const e=J(this),t=e.size!==0,n=e.clear();return t&&He(e,"clear",void 0,void 0),n}function ln(e,t){return function(r,s){const o=this,i=o.__v_raw,l=J(i),c=t?Dr:e?Br:Bt;return!e&&ye(l,"iterate",ut),i.forEach((u,f)=>r.call(s,c(u),c(f),o))}}function cn(e,t,n){return function(...r){const s=this.__v_raw,o=J(s),i=bt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...r),f=n?Dr:t?Br:Bt;return!t&&ye(o,"iterate",c?wr:ut),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ke(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function el(){const e={get(o){return rn(this,o)},get size(){return on(this)},has:sn,add:fs,set:ds,delete:hs,clear:ps,forEach:ln(!1,!1)},t={get(o){return rn(this,o,!1,!0)},get size(){return on(this)},has:sn,add:fs,set:ds,delete:hs,clear:ps,forEach:ln(!1,!0)},n={get(o){return rn(this,o,!0)},get size(){return on(this,!0)},has(o){return sn.call(this,o,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:ln(!0,!1)},r={get(o){return rn(this,o,!0,!0)},get size(){return on(this,!0)},has(o){return sn.call(this,o,!0)},add:ke("add"),set:ke("set"),delete:ke("delete"),clear:ke("clear"),forEach:ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=cn(o,!1,!1),n[o]=cn(o,!0,!1),t[o]=cn(o,!1,!0),r[o]=cn(o,!0,!0)}),[e,n,t,r]}const[tl,nl,rl,sl]=el();function kr(e,t){const n=t?e?sl:rl:e?nl:tl;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Y(n,s)&&s in r?n:r,s,o)}const ol={get:kr(!1,!1)},il={get:kr(!1,!0)},ll={get:kr(!0,!1)},bo=new WeakMap,vo=new WeakMap,wo=new WeakMap,cl=new WeakMap;function al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ul(e){return e.__v_skip||!Object.isExtensible(e)?0:al(Ii(e))}function Bn(e){return Tt(e)?e:Ur(e,!1,Ji,ol,bo)}function fl(e){return Ur(e,!1,Zi,il,vo)}function Kn(e){return Ur(e,!0,Qi,ll,wo)}function Ur(e,t,n,r,s){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=ul(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function wt(e){return Tt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function Sn(e){return!!(e&&e.__v_isShallow)}function Eo(e){return wt(e)||Tt(e)}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Pt(e){return Object.isExtensible(e)&&Cn(e,"__v_skip",!0),e}const Bt=e=>Z(e)?Bn(e):e,Br=e=>Z(e)?Kn(e):e;class Co{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Hr(()=>t(this._value),()=>Nt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=J(this);return(!t._cacheable||t.effect.dirty)&&Ze(t._value,t._value=t.effect.run())&&Nt(t,4),Kr(t),t.effect._dirtyLevel>=2&&Nt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function dl(e,t,n=!1){let r,s;const o=q(e);return o?(r=e,s=xe):(r=e.get,s=e.set),new Co(r,s,o||!s,n)}function Kr(e){var t;Xe&&at&&(e=J(e),ho(at,(t=e.dep)!=null?t:e.dep=go(()=>e.dep=void 0,e instanceof Co?e:void 0)))}function Nt(e,t=4,n){e=J(e);const r=e.dep;r&&po(r,t)}function he(e){return!!(e&&e.__v_isRef===!0)}function ie(e){return So(e,!1)}function xo(e){return So(e,!0)}function So(e,t){return he(e)?e:new hl(e,t)}class hl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:J(t),this._value=n?t:Bt(t)}get value(){return Kr(this),this._value}set value(t){const n=this.__v_isShallow||Sn(t)||Tt(t);t=n?t:J(t),Ze(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Bt(t),Nt(this,4))}}function To(e){return he(e)?e.value:e}const pl={get:(e,t,n)=>To(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ao(e){return wt(e)?e:new Proxy(e,pl)}class gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Kr(this),()=>Nt(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function ml(e){return new gl(e)}class yl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return qi(J(this._object),this._key)}}class _l{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function bl(e,t,n){return he(e)?e:q(e)?new _l(e):Z(e)&&arguments.length>1?vl(e,t,n):ie(e)}function vl(e,t,n){const r=e[t];return he(r)?r:new yl(e,t,n)}/** * @vue/runtime-core v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Ye(e,t,n,r){try{return r?e(...r):e()}catch(s){Yt(s,t,n)}}function Se(e,t,n,r){if(q(e)){const o=Ye(e,t,n,r);return o&&no(o)&&o.catch(i=>{Yt(i,t,n)}),o}const s=[];for(let o=0;o>>1,s=de[r],o=Wt(s);oMe&&de.splice(t,1)}function xl(e){D(e)?Et.push(...e):(!We||!We.includes(e,e.allowRecurse?ot+1:ot))&&Et.push(e),Ro()}function ps(e,t,n=Kt?Me+1:0){for(;nWt(n)-Wt(r));if(Et.length=0,We){We.push(...t);return}for(We=t,ot=0;ote.id==null?1/0:e.id,Sl=(e,t)=>{const n=Wt(e)-Wt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Oo(e){Er=!1,Kt=!0,de.sort(Sl);try{for(Me=0;Mene(y)?y.trim():y)),h&&(s=n.map(Ut))}let l,c=r[l=_n(t)]||r[l=_n(Pe(t))];!c&&o&&(c=r[l=_n(dt(t))]),c&&Se(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Se(u,e,6,s)}}function Io(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!q(e)){const c=u=>{const f=Io(u,t,!0);f&&(l=!0,ce(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Z(e)&&r.set(e,null),null):(D(o)?o.forEach(c=>i[c]=null):ce(i,o),Z(e)&&r.set(e,i),i)}function qn(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,dt(t))||Y(e,t))}let le=null,Gn=null;function An(e){const t=le;return le=e,Gn=e&&e.type.__scopeId||null,t}function iu(e){Gn=e}function lu(){Gn=null}function Al(e,t=le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Rs(-1);const o=An(t);let i;try{i=e(...s)}finally{An(o),r._d&&Rs(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function sr(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:l,attrs:c,emit:u,render:f,renderCache:h,data:p,setupState:y,ctx:w,inheritAttrs:M}=e;let F,K;const U=An(e);try{if(n.shapeFlag&4){const _=s||r,P=_;F=Ae(f.call(P,_,h,o,y,p,w)),K=c}else{const _=t;F=Ae(_.length>1?_(o,{attrs:c,slots:l,emit:u}):_(o,null)),K=t.props?c:Rl(c)}}catch(_){Vt.length=0,Yt(_,e,1),F=re(ve)}let g=F;if(K&&M!==!1){const _=Object.keys(K),{shapeFlag:P}=g;_.length&&P&7&&(i&&_.some(Nr)&&(K=Ol(K,i)),g=et(g,K))}return n.dirs&&(g=et(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),F=g,An(U),F}const Rl=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},Ol=(e,t)=>{const n={};for(const r in e)(!Nr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Il(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?gs(r,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function Po(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):xl(e)}const Pl=Symbol.for("v-scx"),Nl=()=>xt(Pl);function No(e,t){return zn(e,null,t)}function uu(e,t){return zn(e,null,{flush:"post"})}const an={};function je(e,t,n){return zn(e,t,n)}function zn(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:l}=ee){if(t&&o){const O=t;t=(...$)=>{O(...$),P()}}const c=ue,u=O=>r===!0?O:ct(O,r===!1?1:void 0);let f,h=!1,p=!1;if(he(e)?(f=()=>e.value,h=Sn(e)):wt(e)?(f=()=>u(e),h=!0):D(e)?(p=!0,h=e.some(O=>wt(O)||Sn(O)),f=()=>e.map(O=>{if(he(O))return O.value;if(wt(O))return u(O);if(q(O))return Ye(O,c,2)})):q(e)?t?f=()=>Ye(e,c,2):f=()=>(y&&y(),Se(e,c,3,[w])):f=xe,t&&r){const O=f;f=()=>ct(O())}let y,w=O=>{y=g.onStop=()=>{Ye(O,c,4),y=g.onStop=void 0}},M;if(en)if(w=xe,t?n&&Se(t,c,3,[f(),p?[]:void 0,w]):f(),s==="sync"){const O=Nl();M=O.__watcherHandles||(O.__watcherHandles=[])}else return xe;let F=p?new Array(e.length).fill(an):an;const K=()=>{if(!(!g.active||!g.dirty))if(t){const O=g.run();(r||h||(p?O.some(($,A)=>Ze($,F[A])):Ze(O,F)))&&(y&&y(),Se(t,c,3,[O,F===an?void 0:p&&F[0]===an?[]:F,w]),F=O)}else g.run()};K.allowRecurse=!!t;let U;s==="sync"?U=K:s==="post"?U=()=>ge(K,c&&c.suspense):(K.pre=!0,c&&(K.id=c.uid),U=()=>Wn(K));const g=new Hr(f,xe,U),_=co(),P=()=>{g.stop(),_&&Fr(_.effects,g)};return t?n?K():F=g.run():s==="post"?ge(g.run.bind(g),c&&c.suspense):g.run(),M&&M.push(P),P}function Fl(e,t,n){const r=this.proxy,s=ne(e)?e.includes(".")?Fo(r,e):()=>r[e]:e.bind(r,r);let o;q(t)?o=t:(o=t.handler,n=t);const i=Zt(this),l=zn(s,o.bind(r),n);return i(),l}function Fo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),he(e))ct(e.value,t,n,r);else if(D(e))for(let s=0;s{ct(s,t,n,r)});else if(so(e))for(const s in e)ct(e[s],t,n,r);return e}function fu(e,t){if(le===null)return e;const n=Zn(le)||le.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Do(()=>{e.isUnmounting=!0}),e}const we=[Function,Array],$o={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},Hl={name:"BaseTransition",props:$o,setup(e,{slots:t}){const n=Qn(),r=$l();return()=>{const s=t.default&&jo(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const p of s)if(p.type!==ve){o=p;break}}const i=J(e),{mode:l}=i;if(r.isLeaving)return or(o);const c=ys(o);if(!c)return or(o);const u=Cr(c,i,r,n);xr(c,u);const f=n.subTree,h=f&&ys(f);if(h&&h.type!==ve&&!it(c,h)){const p=Cr(h,i,r,n);if(xr(h,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},or(o);l==="in-out"&&c.type!==ve&&(p.delayLeave=(y,w,M)=>{const F=Ho(r,h);F[String(h.key)]=h,y[qe]=()=>{w(),y[qe]=void 0,delete u.delayedLeave},u.delayedLeave=M})}return o}}},jl=Hl;function Ho(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:y,onLeaveCancelled:w,onBeforeAppear:M,onAppear:F,onAfterAppear:K,onAppearCancelled:U}=t,g=String(e.key),_=Ho(n,e),P=(A,S)=>{A&&Se(A,r,9,S)},O=(A,S)=>{const T=S[1];P(A,S),D(A)?A.every(B=>B.length<=1)&&T():A.length<=1&&T()},$={mode:o,persisted:i,beforeEnter(A){let S=l;if(!n.isMounted)if(s)S=M||l;else return;A[qe]&&A[qe](!0);const T=_[g];T&&it(e,T)&&T.el[qe]&&T.el[qe](),P(S,[A])},enter(A){let S=c,T=u,B=f;if(!n.isMounted)if(s)S=F||c,T=K||u,B=U||f;else return;let L=!1;const G=A[un]=oe=>{L||(L=!0,oe?P(B,[A]):P(T,[A]),$.delayedLeave&&$.delayedLeave(),A[un]=void 0)};S?O(S,[A,G]):G()},leave(A,S){const T=String(e.key);if(A[un]&&A[un](!0),n.isUnmounting)return S();P(h,[A]);let B=!1;const L=A[qe]=G=>{B||(B=!0,S(),G?P(w,[A]):P(y,[A]),A[qe]=void 0,_[T]===e&&delete _[T])};_[T]=e,p?O(p,[A,L]):L()},clone(A){return Cr(A,t,n,r)}};return $}function or(e){if(Qt(e))return e=et(e),e.children=null,e}function ys(e){return Qt(e)?e.children?e.children[0]:void 0:e}function xr(e,t){e.shapeFlag&6&&e.component?xr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function du(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:i=!0,onError:l}=e;let c=null,u,f=0;const h=()=>(f++,c=null,p()),p=()=>{let y;return c||(y=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),l)return new Promise((M,F)=>{l(w,()=>M(h()),()=>F(w),f+1)});throw w}).then(w=>y!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return Gr({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return u},setup(){const y=ue;if(u)return()=>ir(u,y);const w=U=>{c=null,Yt(U,y,13,!r)};if(i&&y.suspense||en)return p().then(U=>()=>ir(U,y)).catch(U=>(w(U),()=>r?re(r,{error:U}):null));const M=ie(!1),F=ie(),K=ie(!!s);return s&&setTimeout(()=>{K.value=!1},s),o!=null&&setTimeout(()=>{if(!M.value&&!F.value){const U=new Error(`Async component timed out after ${o}ms.`);w(U),F.value=U}},o),p().then(()=>{M.value=!0,y.parent&&Qt(y.parent.vnode)&&(y.parent.effect.dirty=!0,Wn(y.parent.update))}).catch(U=>{w(U),F.value=U}),()=>{if(M.value&&u)return ir(u,y);if(F.value&&r)return re(r,{error:F.value});if(n&&!K.value)return re(n)}}})}function ir(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=re(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Qt=e=>e.type.__isKeepAlive;function Vl(e,t){Vo(e,"a",t)}function Dl(e,t){Vo(e,"da",t)}function Vo(e,t,n=ue){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Xn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Qt(s.parent.vnode)&&kl(r,t,n,s),s=s.parent}}function kl(e,t,n,r){const s=Xn(t,e,r,!0);Yn(()=>{Fr(r[t],s)},n)}function Xn(e,t,n=ue,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ht();const l=Zt(n),c=Se(t,n,e,i);return l(),pt(),c});return r?s.unshift(o):s.push(o),o}}const De=e=>(t,n=ue)=>(!en||e==="sp")&&Xn(e,(...r)=>t(...r),n),Ul=De("bm"),Rt=De("m"),Bl=De("bu"),Kl=De("u"),Do=De("bum"),Yn=De("um"),Wl=De("sp"),ql=De("rtg"),Gl=De("rtc");function zl(e,t=ue){Xn("ec",e,t)}function hu(e,t,n,r){let s;const o=n&&n[r];if(D(e)||ne(e)){s=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;l{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function gu(e,t,n={},r,s){if(le.isCE||le.parent&&Ct(le.parent)&&le.parent.isCE)return t!=="default"&&(n.name=t),re("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),Zo();const i=o&&ko(o(n)),l=ti(me,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function ko(e){return e.some(t=>In(t)?!(t.type===ve||t.type===me&&!ko(t.children)):!0)?e:null}function mu(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:_n(r)]=e[r];return n}const Sr=e=>e?oi(e)?Zn(e)||e.proxy:Sr(e.parent):null,Ft=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Sr(e.parent),$root:e=>Sr(e.root),$emit:e=>e.emit,$options:e=>zr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Wn(e.update)}),$nextTick:e=>e.n||(e.n=Jt.bind(e.proxy)),$watch:e=>Fl.bind(e)}),lr=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),Xl={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(lr(r,t))return i[t]=1,r[t];if(s!==ee&&Y(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&Y(u,t))return i[t]=3,o[t];if(n!==ee&&Y(n,t))return i[t]=4,n[t];Tr&&(i[t]=0)}}const f=Ft[t];let h,p;if(f)return t==="$attrs"&&ye(e,"get",t),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ee&&Y(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return lr(s,t)?(s[t]=n,!0):r!==ee&&Y(r,t)?(r[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==ee&&Y(e,i)||lr(t,i)||(l=o[0])&&Y(l,i)||Y(r,i)||Y(Ft,i)||Y(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yu(){return Yl().slots}function Yl(){const e=Qn();return e.setupContext||(e.setupContext=li(e))}function _s(e){return D(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tr=!0;function Jl(e){const t=zr(e),n=e.proxy,r=e.ctx;Tr=!1,t.beforeCreate&&bs(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:u,created:f,beforeMount:h,mounted:p,beforeUpdate:y,updated:w,activated:M,deactivated:F,beforeDestroy:K,beforeUnmount:U,destroyed:g,unmounted:_,render:P,renderTracked:O,renderTriggered:$,errorCaptured:A,serverPrefetch:S,expose:T,inheritAttrs:B,components:L,directives:G,filters:oe}=t;if(u&&Ql(u,r,null),i)for(const X in i){const j=i[X];q(j)&&(r[X]=j.bind(n))}if(s){const X=s.call(n,n);Z(X)&&(e.data=Bn(X))}if(Tr=!0,o)for(const X in o){const j=o[X],Fe=q(j)?j.bind(n,n):q(j.get)?j.get.bind(n,n):xe,tn=!q(j)&&q(j.set)?j.set.bind(n):xe,tt=se({get:Fe,set:tn});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Oe=>tt.value=Oe})}if(l)for(const X in l)Uo(l[X],r,n,X);if(c){const X=q(c)?c.call(n):c;Reflect.ownKeys(X).forEach(j=>{sc(j,X[j])})}f&&bs(f,e,"c");function V(X,j){D(j)?j.forEach(Fe=>X(Fe.bind(n))):j&&X(j.bind(n))}if(V(Ul,h),V(Rt,p),V(Bl,y),V(Kl,w),V(Vl,M),V(Dl,F),V(zl,A),V(Gl,O),V(ql,$),V(Do,U),V(Yn,_),V(Wl,S),D(T))if(T.length){const X=e.exposed||(e.exposed={});T.forEach(j=>{Object.defineProperty(X,j,{get:()=>n[j],set:Fe=>n[j]=Fe})})}else e.exposed||(e.exposed={});P&&e.render===xe&&(e.render=P),B!=null&&(e.inheritAttrs=B),L&&(e.components=L),G&&(e.directives=G)}function Ql(e,t,n=xe){D(e)&&(e=Ar(e));for(const r in e){const s=e[r];let o;Z(s)?"default"in s?o=xt(s.from||r,s.default,!0):o=xt(s.from||r):o=xt(s),he(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function bs(e,t,n){Se(D(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Uo(e,t,n,r){const s=r.includes(".")?Fo(n,r):()=>n[r];if(ne(e)){const o=t[e];q(o)&&je(s,o)}else if(q(e))je(s,e.bind(n));else if(Z(e))if(D(e))e.forEach(o=>Uo(o,t,n,r));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&je(s,o,e)}}function zr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>Rn(c,u,i,!0)),Rn(c,t,i)),Z(t)&&o.set(t,c),c}function Rn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Rn(e,o,n,!0),s&&s.forEach(i=>Rn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=Zl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Zl={data:vs,props:ws,emits:ws,methods:Mt,computed:Mt,beforeCreate:pe,created:pe,beforeMount:pe,mounted:pe,beforeUpdate:pe,updated:pe,beforeDestroy:pe,beforeUnmount:pe,destroyed:pe,unmounted:pe,activated:pe,deactivated:pe,errorCaptured:pe,serverPrefetch:pe,components:Mt,directives:Mt,watch:tc,provide:vs,inject:ec};function vs(e,t){return t?e?function(){return ce(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function ec(e,t){return Mt(Ar(e),Ar(t))}function Ar(e){if(D(e)){const t={};for(let n=0;n1)return n&&q(t)?t.call(r&&r.proxy):t}}function oc(e,t,n,r=!1){const s={},o={};Cn(o,Jn,1),e.propsDefaults=Object.create(null),Ko(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:fl(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ic(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=J(s),[c]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,y]=Wo(h,t,!0);ce(i,p),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return Z(e)&&r.set(e,_t),_t;if(D(o))for(let f=0;f-1,y[1]=M<0||w-1||Y(y,"default"))&&l.push(h)}}}const u=[i,l];return Z(e)&&r.set(e,u),u}function Es(e){return e[0]!=="$"&&!vt(e)}function Cs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function xs(e,t){return Cs(e)===Cs(t)}function Ss(e,t){return D(t)?t.findIndex(n=>xs(n,e)):q(t)&&xs(t,e)?0:-1}const qo=e=>e[0]==="_"||e==="$stable",Xr=e=>D(e)?e.map(Ae):[Ae(e)],lc=(e,t,n)=>{if(t._n)return t;const r=Al((...s)=>Xr(t(...s)),n);return r._c=!1,r},Go=(e,t,n)=>{const r=e._ctx;for(const s in e){if(qo(s))continue;const o=e[s];if(q(o))t[s]=lc(s,o,r);else if(o!=null){const i=Xr(o);t[s]=()=>i}}},zo=(e,t)=>{const n=Xr(t);e.slots.default=()=>n},cc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=J(t),Cn(t,"_",n)):Go(t,e.slots={})}else e.slots={},t&&zo(e,t);Cn(e.slots,Jn,1)},ac=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ee;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ce(s,t),!n&&l===1&&delete s._):(o=!t.$stable,Go(t,s)),i=t}else t&&(zo(e,t),i={default:1});if(o)for(const l in s)!qo(l)&&i[l]==null&&delete s[l]};function On(e,t,n,r,s=!1){if(D(e)){e.forEach((p,y)=>On(p,t&&(D(t)?t[y]:t),n,r,s));return}if(Ct(r)&&!s)return;const o=r.shapeFlag&4?Zn(r.component)||r.component.proxy:r.el,i=s?null:o,{i:l,r:c}=e,u=t&&t.r,f=l.refs===ee?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(ne(u)?(f[u]=null,Y(h,u)&&(h[u]=null)):he(u)&&(u.value=null)),q(c))Ye(c,l,12,[i,f]);else{const p=ne(c),y=he(c);if(p||y){const w=()=>{if(e.f){const M=p?Y(h,c)?h[c]:f[c]:c.value;s?D(M)&&Fr(M,o):D(M)?M.includes(o)||M.push(o):p?(f[c]=[o],Y(h,c)&&(h[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else p?(f[c]=i,Y(h,c)&&(h[c]=i)):y&&(c.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,ge(w,n)):w()}}}let Ue=!1;const uc=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",fc=e=>e.namespaceURI.includes("MathML"),fn=e=>{if(uc(e))return"svg";if(fc(e))return"mathml"},dn=e=>e.nodeType===8;function dc(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:l,insert:c,createComment:u}}=e,f=(g,_)=>{if(!_.hasChildNodes()){n(null,g,_),Tn(),_._vnode=g;return}Ue=!1,h(_.firstChild,g,null,null,null),Tn(),_._vnode=g,Ue&&console.error("Hydration completed but contains mismatches.")},h=(g,_,P,O,$,A=!1)=>{const S=dn(g)&&g.data==="[",T=()=>M(g,_,P,O,$,S),{type:B,ref:L,shapeFlag:G,patchFlag:oe}=_;let fe=g.nodeType;_.el=g,oe===-2&&(A=!1,_.dynamicChildren=null);let V=null;switch(B){case At:fe!==3?_.children===""?(c(_.el=s(""),i(g),g),V=g):V=T():(g.data!==_.children&&(Ue=!0,g.data=_.children),V=o(g));break;case ve:U(g)?(V=o(g),K(_.el=g.content.firstChild,g,P)):fe!==8||S?V=T():V=o(g);break;case jt:if(S&&(g=o(g),fe=g.nodeType),fe===1||fe===3){V=g;const X=!_.children.length;for(let j=0;j<_.staticCount;j++)X&&(_.children+=V.nodeType===1?V.outerHTML:V.data),j===_.staticCount-1&&(_.anchor=V),V=o(V);return S?o(V):V}else T();break;case me:S?V=w(g,_,P,O,$,A):V=T();break;default:if(G&1)(fe!==1||_.type.toLowerCase()!==g.tagName.toLowerCase())&&!U(g)?V=T():V=p(g,_,P,O,$,A);else if(G&6){_.slotScopeIds=$;const X=i(g);if(S?V=F(g):dn(g)&&g.data==="teleport start"?V=F(g,g.data,"teleport end"):V=o(g),t(_,X,null,P,O,fn(X),A),Ct(_)){let j;S?(j=re(me),j.anchor=V?V.previousSibling:X.lastChild):j=g.nodeType===3?si(""):re("div"),j.el=g,_.component.subTree=j}}else G&64?fe!==8?V=T():V=_.type.hydrate(g,_,P,O,$,A,e,y):G&128&&(V=_.type.hydrate(g,_,P,O,fn(i(g)),$,A,e,h))}return L!=null&&On(L,null,O,_),V},p=(g,_,P,O,$,A)=>{A=A||!!_.dynamicChildren;const{type:S,props:T,patchFlag:B,shapeFlag:L,dirs:G,transition:oe}=_,fe=S==="input"||S==="option";if(fe||B!==-1){G&&Le(_,null,P,"created");let V=!1;if(U(g)){V=Yo(O,oe)&&P&&P.vnode.props&&P.vnode.props.appear;const j=g.content.firstChild;V&&oe.beforeEnter(j),K(j,g,P),_.el=g=j}if(L&16&&!(T&&(T.innerHTML||T.textContent))){let j=y(g.firstChild,_,g,P,O,$,A);for(;j;){Ue=!0;const Fe=j;j=j.nextSibling,l(Fe)}}else L&8&&g.textContent!==_.children&&(Ue=!0,g.textContent=_.children);if(T)if(fe||!A||B&48)for(const j in T)(fe&&(j.endsWith("value")||j==="indeterminate")||zt(j)&&!vt(j)||j[0]===".")&&r(g,j,null,T[j],void 0,void 0,P);else T.onClick&&r(g,"onClick",null,T.onClick,void 0,void 0,P);let X;(X=T&&T.onVnodeBeforeMount)&&Ee(X,P,_),G&&Le(_,null,P,"beforeMount"),((X=T&&T.onVnodeMounted)||G||V)&&Po(()=>{X&&Ee(X,P,_),V&&oe.enter(g),G&&Le(_,null,P,"mounted")},O)}return g.nextSibling},y=(g,_,P,O,$,A,S)=>{S=S||!!_.dynamicChildren;const T=_.children,B=T.length;for(let L=0;L{const{slotScopeIds:S}=_;S&&($=$?$.concat(S):S);const T=i(g),B=y(o(g),_,T,P,O,$,A);return B&&dn(B)&&B.data==="]"?o(_.anchor=B):(Ue=!0,c(_.anchor=u("]"),T,B),B)},M=(g,_,P,O,$,A)=>{if(Ue=!0,_.el=null,A){const B=F(g);for(;;){const L=o(g);if(L&&L!==B)l(L);else break}}const S=o(g),T=i(g);return l(g),n(null,_,T,S,P,O,fn(T),$),S},F=(g,_="[",P="]")=>{let O=0;for(;g;)if(g=o(g),g&&dn(g)&&(g.data===_&&O++,g.data===P)){if(O===0)return o(g);O--}return g},K=(g,_,P)=>{const O=_.parentNode;O&&O.replaceChild(g,_);let $=P;for(;$;)$.vnode.el===_&&($.vnode.el=$.subTree.el=g),$=$.parent},U=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[f,h]}const ge=Po;function hc(e){return Xo(e)}function pc(e){return Xo(e,dc)}function Xo(e,t){const n=oo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:p,setScopeId:y=xe,insertStaticContent:w}=e,M=(a,d,m,b=null,v=null,x=null,I=void 0,C=null,R=!!d.dynamicChildren)=>{if(a===d)return;a&&!it(a,d)&&(b=nn(a),Oe(a,v,x,!0),a=null),d.patchFlag===-2&&(R=!1,d.dynamicChildren=null);const{type:E,ref:N,shapeFlag:k}=d;switch(E){case At:F(a,d,m,b);break;case ve:K(a,d,m,b);break;case jt:a==null&&U(d,m,b,I);break;case me:L(a,d,m,b,v,x,I,C,R);break;default:k&1?P(a,d,m,b,v,x,I,C,R):k&6?G(a,d,m,b,v,x,I,C,R):(k&64||k&128)&&E.process(a,d,m,b,v,x,I,C,R,gt)}N!=null&&v&&On(N,a&&a.ref,x,d||a,!d)},F=(a,d,m,b)=>{if(a==null)r(d.el=l(d.children),m,b);else{const v=d.el=a.el;d.children!==a.children&&u(v,d.children)}},K=(a,d,m,b)=>{a==null?r(d.el=c(d.children||""),m,b):d.el=a.el},U=(a,d,m,b)=>{[a.el,a.anchor]=w(a.children,d,m,b,a.el,a.anchor)},g=({el:a,anchor:d},m,b)=>{let v;for(;a&&a!==d;)v=p(a),r(a,m,b),a=v;r(d,m,b)},_=({el:a,anchor:d})=>{let m;for(;a&&a!==d;)m=p(a),s(a),a=m;s(d)},P=(a,d,m,b,v,x,I,C,R)=>{d.type==="svg"?I="svg":d.type==="math"&&(I="mathml"),a==null?O(d,m,b,v,x,I,C,R):S(a,d,v,x,I,C,R)},O=(a,d,m,b,v,x,I,C)=>{let R,E;const{props:N,shapeFlag:k,transition:H,dirs:W}=a;if(R=a.el=i(a.type,x,N&&N.is,N),k&8?f(R,a.children):k&16&&A(a.children,R,null,b,v,cr(a,x),I,C),W&&Le(a,null,b,"created"),$(R,a,a.scopeId,I,b),N){for(const Q in N)Q!=="value"&&!vt(Q)&&o(R,Q,null,N[Q],x,a.children,b,v,$e);"value"in N&&o(R,"value",null,N.value,x),(E=N.onVnodeBeforeMount)&&Ee(E,b,a)}W&&Le(a,null,b,"beforeMount");const z=Yo(v,H);z&&H.beforeEnter(R),r(R,d,m),((E=N&&N.onVnodeMounted)||z||W)&&ge(()=>{E&&Ee(E,b,a),z&&H.enter(R),W&&Le(a,null,b,"mounted")},v)},$=(a,d,m,b,v)=>{if(m&&y(a,m),b)for(let x=0;x{for(let E=R;E{const C=d.el=a.el;let{patchFlag:R,dynamicChildren:E,dirs:N}=d;R|=a.patchFlag&16;const k=a.props||ee,H=d.props||ee;let W;if(m&&nt(m,!1),(W=H.onVnodeBeforeUpdate)&&Ee(W,m,d,a),N&&Le(d,a,m,"beforeUpdate"),m&&nt(m,!0),E?T(a.dynamicChildren,E,C,m,b,cr(d,v),x):I||j(a,d,C,null,m,b,cr(d,v),x,!1),R>0){if(R&16)B(C,d,k,H,m,b,v);else if(R&2&&k.class!==H.class&&o(C,"class",null,H.class,v),R&4&&o(C,"style",k.style,H.style,v),R&8){const z=d.dynamicProps;for(let Q=0;Q{W&&Ee(W,m,d,a),N&&Le(d,a,m,"updated")},b)},T=(a,d,m,b,v,x,I)=>{for(let C=0;C{if(m!==b){if(m!==ee)for(const C in m)!vt(C)&&!(C in b)&&o(a,C,m[C],null,I,d.children,v,x,$e);for(const C in b){if(vt(C))continue;const R=b[C],E=m[C];R!==E&&C!=="value"&&o(a,C,E,R,I,d.children,v,x,$e)}"value"in b&&o(a,"value",m.value,b.value,I)}},L=(a,d,m,b,v,x,I,C,R)=>{const E=d.el=a?a.el:l(""),N=d.anchor=a?a.anchor:l("");let{patchFlag:k,dynamicChildren:H,slotScopeIds:W}=d;W&&(C=C?C.concat(W):W),a==null?(r(E,m,b),r(N,m,b),A(d.children||[],m,N,v,x,I,C,R)):k>0&&k&64&&H&&a.dynamicChildren?(T(a.dynamicChildren,H,m,v,x,I,C),(d.key!=null||v&&d===v.subTree)&&Yr(a,d,!0)):j(a,d,m,N,v,x,I,C,R)},G=(a,d,m,b,v,x,I,C,R)=>{d.slotScopeIds=C,a==null?d.shapeFlag&512?v.ctx.activate(d,m,b,I,R):oe(d,m,b,v,x,I,R):fe(a,d,R)},oe=(a,d,m,b,v,x,I)=>{const C=a.component=Sc(a,b,v);if(Qt(a)&&(C.ctx.renderer=gt),Tc(C),C.asyncDep){if(v&&v.registerDep(C,V),!a.el){const R=C.subTree=re(ve);K(null,R,d,m)}}else V(C,a,d,m,v,x,I)},fe=(a,d,m)=>{const b=d.component=a.component;if(Il(a,d,m))if(b.asyncDep&&!b.asyncResolved){X(b,d,m);return}else b.next=d,Cl(b.update),b.effect.dirty=!0,b.update();else d.el=a.el,b.vnode=d},V=(a,d,m,b,v,x,I)=>{const C=()=>{if(a.isMounted){let{next:N,bu:k,u:H,parent:W,vnode:z}=a;{const mt=Jo(a);if(mt){N&&(N.el=z.el,X(a,N,I)),mt.asyncDep.then(()=>{a.isUnmounted||C()});return}}let Q=N,te;nt(a,!1),N?(N.el=z.el,X(a,N,I)):N=z,k&&bn(k),(te=N.props&&N.props.onVnodeBeforeUpdate)&&Ee(te,W,N,z),nt(a,!0);const ae=sr(a),Te=a.subTree;a.subTree=ae,M(Te,ae,h(Te.el),nn(Te),a,v,x),N.el=ae.el,Q===null&&Ll(a,ae.el),H&&ge(H,v),(te=N.props&&N.props.onVnodeUpdated)&&ge(()=>Ee(te,W,N,z),v)}else{let N;const{el:k,props:H}=d,{bm:W,m:z,parent:Q}=a,te=Ct(d);if(nt(a,!1),W&&bn(W),!te&&(N=H&&H.onVnodeBeforeMount)&&Ee(N,Q,d),nt(a,!0),k&&nr){const ae=()=>{a.subTree=sr(a),nr(k,a.subTree,a,v,null)};te?d.type.__asyncLoader().then(()=>!a.isUnmounted&&ae()):ae()}else{const ae=a.subTree=sr(a);M(null,ae,m,b,a,v,x),d.el=ae.el}if(z&&ge(z,v),!te&&(N=H&&H.onVnodeMounted)){const ae=d;ge(()=>Ee(N,Q,ae),v)}(d.shapeFlag&256||Q&&Ct(Q.vnode)&&Q.vnode.shapeFlag&256)&&a.a&&ge(a.a,v),a.isMounted=!0,d=m=b=null}},R=a.effect=new Hr(C,xe,()=>Wn(E),a.scope),E=a.update=()=>{R.dirty&&R.run()};E.id=a.uid,nt(a,!0),E()},X=(a,d,m)=>{d.component=a;const b=a.vnode.props;a.vnode=d,a.next=null,ic(a,d.props,b,m),ac(a,d.children,m),ht(),ps(a),pt()},j=(a,d,m,b,v,x,I,C,R=!1)=>{const E=a&&a.children,N=a?a.shapeFlag:0,k=d.children,{patchFlag:H,shapeFlag:W}=d;if(H>0){if(H&128){tn(E,k,m,b,v,x,I,C,R);return}else if(H&256){Fe(E,k,m,b,v,x,I,C,R);return}}W&8?(N&16&&$e(E,v,x),k!==E&&f(m,k)):N&16?W&16?tn(E,k,m,b,v,x,I,C,R):$e(E,v,x,!0):(N&8&&f(m,""),W&16&&A(k,m,b,v,x,I,C,R))},Fe=(a,d,m,b,v,x,I,C,R)=>{a=a||_t,d=d||_t;const E=a.length,N=d.length,k=Math.min(E,N);let H;for(H=0;HN?$e(a,v,x,!0,!1,k):A(d,m,b,v,x,I,C,R,k)},tn=(a,d,m,b,v,x,I,C,R)=>{let E=0;const N=d.length;let k=a.length-1,H=N-1;for(;E<=k&&E<=H;){const W=a[E],z=d[E]=R?Ge(d[E]):Ae(d[E]);if(it(W,z))M(W,z,m,null,v,x,I,C,R);else break;E++}for(;E<=k&&E<=H;){const W=a[k],z=d[H]=R?Ge(d[H]):Ae(d[H]);if(it(W,z))M(W,z,m,null,v,x,I,C,R);else break;k--,H--}if(E>k){if(E<=H){const W=H+1,z=WH)for(;E<=k;)Oe(a[E],v,x,!0),E++;else{const W=E,z=E,Q=new Map;for(E=z;E<=H;E++){const _e=d[E]=R?Ge(d[E]):Ae(d[E]);_e.key!=null&&Q.set(_e.key,E)}let te,ae=0;const Te=H-z+1;let mt=!1,ns=0;const Ot=new Array(Te);for(E=0;E=Te){Oe(_e,v,x,!0);continue}let Ie;if(_e.key!=null)Ie=Q.get(_e.key);else for(te=z;te<=H;te++)if(Ot[te-z]===0&&it(_e,d[te])){Ie=te;break}Ie===void 0?Oe(_e,v,x,!0):(Ot[Ie-z]=E+1,Ie>=ns?ns=Ie:mt=!0,M(_e,d[Ie],m,null,v,x,I,C,R),ae++)}const rs=mt?gc(Ot):_t;for(te=rs.length-1,E=Te-1;E>=0;E--){const _e=z+E,Ie=d[_e],ss=_e+1{const{el:x,type:I,transition:C,children:R,shapeFlag:E}=a;if(E&6){tt(a.component.subTree,d,m,b);return}if(E&128){a.suspense.move(d,m,b);return}if(E&64){I.move(a,d,m,gt);return}if(I===me){r(x,d,m);for(let k=0;kC.enter(x),v);else{const{leave:k,delayLeave:H,afterLeave:W}=C,z=()=>r(x,d,m),Q=()=>{k(x,()=>{z(),W&&W()})};H?H(x,z,Q):Q()}else r(x,d,m)},Oe=(a,d,m,b=!1,v=!1)=>{const{type:x,props:I,ref:C,children:R,dynamicChildren:E,shapeFlag:N,patchFlag:k,dirs:H}=a;if(C!=null&&On(C,null,m,a,!0),N&256){d.ctx.deactivate(a);return}const W=N&1&&H,z=!Ct(a);let Q;if(z&&(Q=I&&I.onVnodeBeforeUnmount)&&Ee(Q,d,a),N&6)Ai(a.component,m,b);else{if(N&128){a.suspense.unmount(m,b);return}W&&Le(a,null,d,"beforeUnmount"),N&64?a.type.remove(a,d,m,v,gt,b):E&&(x!==me||k>0&&k&64)?$e(E,d,m,!1,!0):(x===me&&k&384||!v&&N&16)&&$e(R,d,m),b&&es(a)}(z&&(Q=I&&I.onVnodeUnmounted)||W)&&ge(()=>{Q&&Ee(Q,d,a),W&&Le(a,null,d,"unmounted")},m)},es=a=>{const{type:d,el:m,anchor:b,transition:v}=a;if(d===me){Ti(m,b);return}if(d===jt){_(a);return}const x=()=>{s(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(a.shapeFlag&1&&v&&!v.persisted){const{leave:I,delayLeave:C}=v,R=()=>I(m,x);C?C(a.el,x,R):R()}else x()},Ti=(a,d)=>{let m;for(;a!==d;)m=p(a),s(a),a=m;s(d)},Ai=(a,d,m)=>{const{bum:b,scope:v,update:x,subTree:I,um:C}=a;b&&bn(b),v.stop(),x&&(x.active=!1,Oe(I,a,d,m)),C&&ge(C,d),ge(()=>{a.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},$e=(a,d,m,b=!1,v=!1,x=0)=>{for(let I=x;Ia.shapeFlag&6?nn(a.component.subTree):a.shapeFlag&128?a.suspense.next():p(a.anchor||a.el);let er=!1;const ts=(a,d,m)=>{a==null?d._vnode&&Oe(d._vnode,null,null,!0):M(d._vnode||null,a,d,null,null,null,m),er||(er=!0,ps(),Tn(),er=!1),d._vnode=a},gt={p:M,um:Oe,m:tt,r:es,mt:oe,mc:A,pc:j,pbc:T,n:nn,o:e};let tr,nr;return t&&([tr,nr]=t(gt)),{render:ts,hydrate:tr,createApp:rc(ts,tr)}}function cr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Yo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yr(e,t,n=!1){const r=e.children,s=t.children;if(D(r)&&D(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Jo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jo(t)}const mc=e=>e.__isTeleport,Ht=e=>e&&(e.disabled||e.disabled===""),Ts=e=>typeof SVGElement<"u"&&e instanceof SVGElement,As=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Or=(e,t)=>{const n=e&&e.to;return ne(n)?t?t(n):null:n},yc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,l,c,u){const{mc:f,pc:h,pbc:p,o:{insert:y,querySelector:w,createText:M,createComment:F}}=u,K=Ht(t.props);let{shapeFlag:U,children:g,dynamicChildren:_}=t;if(e==null){const P=t.el=M(""),O=t.anchor=M("");y(P,n,r),y(O,n,r);const $=t.target=Or(t.props,w),A=t.targetAnchor=M("");$&&(y(A,$),i==="svg"||Ts($)?i="svg":(i==="mathml"||As($))&&(i="mathml"));const S=(T,B)=>{U&16&&f(g,T,B,s,o,i,l,c)};K?S(n,O):$&&S($,A)}else{t.el=e.el;const P=t.anchor=e.anchor,O=t.target=e.target,$=t.targetAnchor=e.targetAnchor,A=Ht(e.props),S=A?n:O,T=A?P:$;if(i==="svg"||Ts(O)?i="svg":(i==="mathml"||As(O))&&(i="mathml"),_?(p(e.dynamicChildren,_,S,s,o,i,l),Yr(e,t,!0)):c||h(e,t,S,T,s,o,i,l,!1),K)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hn(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Or(t.props,w);B&&hn(t,B,null,u,0)}else A&&hn(t,O,$,u,1)}Qo(t)},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:l,children:c,anchor:u,targetAnchor:f,target:h,props:p}=e;if(h&&o(f),i&&o(u),l&16){const y=i||!Ht(p);for(let w=0;w0?Re||_t:null,bc(),qt>0&&Re&&Re.push(e),e}function bu(e,t,n,r,s,o){return ei(ri(e,t,n,r,s,o,!0))}function ti(e,t,n,r,s){return ei(re(e,t,n,r,s,!0))}function In(e){return e?e.__v_isVNode===!0:!1}function it(e,t){return e.type===t.type&&e.key===t.key}const Jn="__vInternal",ni=({key:e})=>e??null,vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||he(e)||q(e)?{i:le,r:e,k:t,f:!!n}:e:null);function ri(e,t=null,n=null,r=0,s=null,o=e===me?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&vn(t),scopeId:Gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:le};return l?(Jr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ne(n)?8:16),qt>0&&!i&&Re&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Re.push(c),c}const re=vc;function vc(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Lo)&&(e=ve),In(e)){const l=et(e,t,!0);return n&&Jr(l,n),qt>0&&!o&&Re&&(l.shapeFlag&6?Re[Re.indexOf(e)]=l:Re.push(l)),l.patchFlag|=-2,l}if(Ic(e)&&(e=e.__vccOpts),t){t=wc(t);let{class:l,style:c}=t;l&&!ne(l)&&(t.class=Dn(l)),Z(c)&&(wo(c)&&!D(c)&&(c=ce({},c)),t.style=Vn(c))}const i=ne(e)?1:Ml(e)?128:mc(e)?64:Z(e)?4:q(e)?2:0;return ri(e,t,n,r,s,i,o,!0)}function wc(e){return e?wo(e)||Jn in e?ce({},e):e:null}function et(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,l=t?Ec(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ni(l),ref:t&&t.ref?n&&s?D(s)?s.concat(vn(t)):[s,vn(t)]:vn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&et(e.ssContent),ssFallback:e.ssFallback&&et(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function si(e=" ",t=0){return re(At,null,e,t)}function vu(e,t){const n=re(jt,null,e);return n.staticCount=t,n}function wu(e="",t=!1){return t?(Zo(),ti(ve,null,e)):re(ve,null,e)}function Ae(e){return e==null||typeof e=="boolean"?re(ve):D(e)?re(me,null,e.slice()):typeof e=="object"?Ge(e):re(At,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:et(e)}function Jr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(D(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Jr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Jn in t)?t._ctx=le:s===3&&le&&(le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:le},n=32):(t=String(t),r&64?(n=16,t=[si(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ec(...e){const t={};for(let n=0;nue||le;let Ln,Ir;{const e=oo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>ue=n),Ir=t("__VUE_SSR_SETTERS__",n=>en=n)}const Zt=e=>{const t=ue;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},Os=()=>{ue&&ue.scope.off(),Ln(null)};function oi(e){return e.vnode.shapeFlag&4}let en=!1;function Tc(e,t=!1){t&&Ir(t);const{props:n,children:r}=e.vnode,s=oi(e);oc(e,n,s,t),cc(e,r);const o=s?Ac(e,t):void 0;return t&&Ir(!1),o}function Ac(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Pt(new Proxy(e.ctx,Xl));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?li(e):null,o=Zt(e);ht();const i=Ye(r,e,0,[e.props,s]);if(pt(),o(),no(i)){if(i.then(Os,Os),t)return i.then(l=>{Is(e,l,t)}).catch(l=>{Yt(l,e,0)});e.asyncDep=i}else Is(e,i,t)}else ii(e,t)}function Is(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=To(t)),ii(e,n)}let Ls;function ii(e,t,n){const r=e.type;if(!e.render){if(!t&&Ls&&!r.render){const s=r.template||zr(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=ce(ce({isCustomElement:o,delimiters:l},i),c);r.render=Ls(s,u)}}e.render=r.render||xe}{const s=Zt(e);ht();try{Jl(e)}finally{pt(),s()}}}function Rc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ye(e,"get","$attrs"),t[n]}}))}function li(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Rc(e)},slots:e.slots,emit:e.emit,expose:t}}function Zn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(To(Pt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}}))}function Oc(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Ic(e){return q(e)&&"__vccOpts"in e}const se=(e,t)=>dl(e,t,en);function Lr(e,t,n){const r=arguments.length;return r===2?Z(t)&&!D(t)?In(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&In(n)&&(n=[n]),re(e,t,n))}const Lc="3.4.21";/** +**/function Ye(e,t,n,r){try{return r?e(...r):e()}catch(s){Yt(s,t,n)}}function Se(e,t,n,r){if(q(e)){const o=Ye(e,t,n,r);return o&&ro(o)&&o.catch(i=>{Yt(i,t,n)}),o}const s=[];for(let o=0;o>>1,s=de[r],o=Wt(s);oMe&&de.splice(t,1)}function xl(e){D(e)?Et.push(...e):(!We||!We.includes(e,e.allowRecurse?ot+1:ot))&&Et.push(e),Oo()}function gs(e,t,n=Kt?Me+1:0){for(;nWt(n)-Wt(r));if(Et.length=0,We){We.push(...t);return}for(We=t,ot=0;ote.id==null?1/0:e.id,Sl=(e,t)=>{const n=Wt(e)-Wt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Io(e){Er=!1,Kt=!0,de.sort(Sl);try{for(Me=0;Mene(y)?y.trim():y)),h&&(s=n.map(Ut))}let l,c=r[l=_n(t)]||r[l=_n(Pe(t))];!c&&o&&(c=r[l=_n(dt(t))]),c&&Se(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Se(u,e,6,s)}}function Lo(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!q(e)){const c=u=>{const f=Lo(u,t,!0);f&&(l=!0,ce(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Z(e)&&r.set(e,null),null):(D(o)?o.forEach(c=>i[c]=null):ce(i,o),Z(e)&&r.set(e,i),i)}function qn(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,dt(t))||Y(e,t))}let le=null,Gn=null;function An(e){const t=le;return le=e,Gn=e&&e.type.__scopeId||null,t}function iu(e){Gn=e}function lu(){Gn=null}function Al(e,t=le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Os(-1);const o=An(t);let i;try{i=e(...s)}finally{An(o),r._d&&Os(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function sr(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:l,attrs:c,emit:u,render:f,renderCache:h,data:p,setupState:y,ctx:w,inheritAttrs:M}=e;let F,K;const U=An(e);try{if(n.shapeFlag&4){const _=s||r,P=_;F=Ae(f.call(P,_,h,o,y,p,w)),K=c}else{const _=t;F=Ae(_.length>1?_(o,{attrs:c,slots:l,emit:u}):_(o,null)),K=t.props?c:Rl(c)}}catch(_){Vt.length=0,Yt(_,e,1),F=re(ve)}let g=F;if(K&&M!==!1){const _=Object.keys(K),{shapeFlag:P}=g;_.length&&P&7&&(i&&_.some(Nr)&&(K=Ol(K,i)),g=et(g,K))}return n.dirs&&(g=et(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),F=g,An(U),F}const Rl=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},Ol=(e,t)=>{const n={};for(const r in e)(!Nr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Il(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ms(r,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function No(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):xl(e)}const Pl=Symbol.for("v-scx"),Nl=()=>xt(Pl);function Fo(e,t){return zn(e,null,t)}function uu(e,t){return zn(e,null,{flush:"post"})}const an={};function je(e,t,n){return zn(e,t,n)}function zn(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:l}=ee){if(t&&o){const O=t;t=(...$)=>{O(...$),P()}}const c=ue,u=O=>r===!0?O:ct(O,r===!1?1:void 0);let f,h=!1,p=!1;if(he(e)?(f=()=>e.value,h=Sn(e)):wt(e)?(f=()=>u(e),h=!0):D(e)?(p=!0,h=e.some(O=>wt(O)||Sn(O)),f=()=>e.map(O=>{if(he(O))return O.value;if(wt(O))return u(O);if(q(O))return Ye(O,c,2)})):q(e)?t?f=()=>Ye(e,c,2):f=()=>(y&&y(),Se(e,c,3,[w])):f=xe,t&&r){const O=f;f=()=>ct(O())}let y,w=O=>{y=g.onStop=()=>{Ye(O,c,4),y=g.onStop=void 0}},M;if(en)if(w=xe,t?n&&Se(t,c,3,[f(),p?[]:void 0,w]):f(),s==="sync"){const O=Nl();M=O.__watcherHandles||(O.__watcherHandles=[])}else return xe;let F=p?new Array(e.length).fill(an):an;const K=()=>{if(!(!g.active||!g.dirty))if(t){const O=g.run();(r||h||(p?O.some(($,A)=>Ze($,F[A])):Ze(O,F)))&&(y&&y(),Se(t,c,3,[O,F===an?void 0:p&&F[0]===an?[]:F,w]),F=O)}else g.run()};K.allowRecurse=!!t;let U;s==="sync"?U=K:s==="post"?U=()=>ge(K,c&&c.suspense):(K.pre=!0,c&&(K.id=c.uid),U=()=>Wn(K));const g=new Hr(f,xe,U),_=ao(),P=()=>{g.stop(),_&&Fr(_.effects,g)};return t?n?K():F=g.run():s==="post"?ge(g.run.bind(g),c&&c.suspense):g.run(),M&&M.push(P),P}function Fl(e,t,n){const r=this.proxy,s=ne(e)?e.includes(".")?$o(r,e):()=>r[e]:e.bind(r,r);let o;q(t)?o=t:(o=t.handler,n=t);const i=Zt(this),l=zn(s,o.bind(r),n);return i(),l}function $o(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),he(e))ct(e.value,t,n,r);else if(D(e))for(let s=0;s{ct(s,t,n,r)});else if(oo(e))for(const s in e)ct(e[s],t,n,r);return e}function fu(e,t){if(le===null)return e;const n=Zn(le)||le.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),ko(()=>{e.isUnmounting=!0}),e}const we=[Function,Array],Ho={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},Hl={name:"BaseTransition",props:Ho,setup(e,{slots:t}){const n=Qn(),r=$l();return()=>{const s=t.default&&Vo(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const p of s)if(p.type!==ve){o=p;break}}const i=J(e),{mode:l}=i;if(r.isLeaving)return or(o);const c=_s(o);if(!c)return or(o);const u=Cr(c,i,r,n);xr(c,u);const f=n.subTree,h=f&&_s(f);if(h&&h.type!==ve&&!it(c,h)){const p=Cr(h,i,r,n);if(xr(h,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},or(o);l==="in-out"&&c.type!==ve&&(p.delayLeave=(y,w,M)=>{const F=jo(r,h);F[String(h.key)]=h,y[qe]=()=>{w(),y[qe]=void 0,delete u.delayedLeave},u.delayedLeave=M})}return o}}},jl=Hl;function jo(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Cr(e,t,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:y,onLeaveCancelled:w,onBeforeAppear:M,onAppear:F,onAfterAppear:K,onAppearCancelled:U}=t,g=String(e.key),_=jo(n,e),P=(A,S)=>{A&&Se(A,r,9,S)},O=(A,S)=>{const T=S[1];P(A,S),D(A)?A.every(B=>B.length<=1)&&T():A.length<=1&&T()},$={mode:o,persisted:i,beforeEnter(A){let S=l;if(!n.isMounted)if(s)S=M||l;else return;A[qe]&&A[qe](!0);const T=_[g];T&&it(e,T)&&T.el[qe]&&T.el[qe](),P(S,[A])},enter(A){let S=c,T=u,B=f;if(!n.isMounted)if(s)S=F||c,T=K||u,B=U||f;else return;let L=!1;const G=A[un]=oe=>{L||(L=!0,oe?P(B,[A]):P(T,[A]),$.delayedLeave&&$.delayedLeave(),A[un]=void 0)};S?O(S,[A,G]):G()},leave(A,S){const T=String(e.key);if(A[un]&&A[un](!0),n.isUnmounting)return S();P(h,[A]);let B=!1;const L=A[qe]=G=>{B||(B=!0,S(),G?P(w,[A]):P(y,[A]),A[qe]=void 0,_[T]===e&&delete _[T])};_[T]=e,p?O(p,[A,L]):L()},clone(A){return Cr(A,t,n,r)}};return $}function or(e){if(Qt(e))return e=et(e),e.children=null,e}function _s(e){return Qt(e)?e.children?e.children[0]:void 0:e}function xr(e,t){e.shapeFlag&6&&e.component?xr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vo(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function du(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:i=!0,onError:l}=e;let c=null,u,f=0;const h=()=>(f++,c=null,p()),p=()=>{let y;return c||(y=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),l)return new Promise((M,F)=>{l(w,()=>M(h()),()=>F(w),f+1)});throw w}).then(w=>y!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return Gr({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return u},setup(){const y=ue;if(u)return()=>ir(u,y);const w=U=>{c=null,Yt(U,y,13,!r)};if(i&&y.suspense||en)return p().then(U=>()=>ir(U,y)).catch(U=>(w(U),()=>r?re(r,{error:U}):null));const M=ie(!1),F=ie(),K=ie(!!s);return s&&setTimeout(()=>{K.value=!1},s),o!=null&&setTimeout(()=>{if(!M.value&&!F.value){const U=new Error(`Async component timed out after ${o}ms.`);w(U),F.value=U}},o),p().then(()=>{M.value=!0,y.parent&&Qt(y.parent.vnode)&&(y.parent.effect.dirty=!0,Wn(y.parent.update))}).catch(U=>{w(U),F.value=U}),()=>{if(M.value&&u)return ir(u,y);if(F.value&&r)return re(r,{error:F.value});if(n&&!K.value)return re(n)}}})}function ir(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=re(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Qt=e=>e.type.__isKeepAlive;function Vl(e,t){Do(e,"a",t)}function Dl(e,t){Do(e,"da",t)}function Do(e,t,n=ue){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Xn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Qt(s.parent.vnode)&&kl(r,t,n,s),s=s.parent}}function kl(e,t,n,r){const s=Xn(t,e,r,!0);Yn(()=>{Fr(r[t],s)},n)}function Xn(e,t,n=ue,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ht();const l=Zt(n),c=Se(t,n,e,i);return l(),pt(),c});return r?s.unshift(o):s.push(o),o}}const De=e=>(t,n=ue)=>(!en||e==="sp")&&Xn(e,(...r)=>t(...r),n),Ul=De("bm"),Rt=De("m"),Bl=De("bu"),Kl=De("u"),ko=De("bum"),Yn=De("um"),Wl=De("sp"),ql=De("rtg"),Gl=De("rtc");function zl(e,t=ue){Xn("ec",e,t)}function hu(e,t,n,r){let s;const o=n&&n[r];if(D(e)||ne(e)){s=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;l{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function gu(e,t,n={},r,s){if(le.isCE||le.parent&&Ct(le.parent)&&le.parent.isCE)return t!=="default"&&(n.name=t),re("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),ei();const i=o&&Uo(o(n)),l=ni(me,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Uo(e){return e.some(t=>In(t)?!(t.type===ve||t.type===me&&!Uo(t.children)):!0)?e:null}function mu(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:_n(r)]=e[r];return n}const Sr=e=>e?ii(e)?Zn(e)||e.proxy:Sr(e.parent):null,Ft=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Sr(e.parent),$root:e=>Sr(e.root),$emit:e=>e.emit,$options:e=>zr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Wn(e.update)}),$nextTick:e=>e.n||(e.n=Jt.bind(e.proxy)),$watch:e=>Fl.bind(e)}),lr=(e,t)=>e!==ee&&!e.__isScriptSetup&&Y(e,t),Xl={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(lr(r,t))return i[t]=1,r[t];if(s!==ee&&Y(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&Y(u,t))return i[t]=3,o[t];if(n!==ee&&Y(n,t))return i[t]=4,n[t];Tr&&(i[t]=0)}}const f=Ft[t];let h,p;if(f)return t==="$attrs"&&ye(e,"get",t),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ee&&Y(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return lr(s,t)?(s[t]=n,!0):r!==ee&&Y(r,t)?(r[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==ee&&Y(e,i)||lr(t,i)||(l=o[0])&&Y(l,i)||Y(r,i)||Y(Ft,i)||Y(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yu(){return Yl().slots}function Yl(){const e=Qn();return e.setupContext||(e.setupContext=ci(e))}function bs(e){return D(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tr=!0;function Jl(e){const t=zr(e),n=e.proxy,r=e.ctx;Tr=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:u,created:f,beforeMount:h,mounted:p,beforeUpdate:y,updated:w,activated:M,deactivated:F,beforeDestroy:K,beforeUnmount:U,destroyed:g,unmounted:_,render:P,renderTracked:O,renderTriggered:$,errorCaptured:A,serverPrefetch:S,expose:T,inheritAttrs:B,components:L,directives:G,filters:oe}=t;if(u&&Ql(u,r,null),i)for(const X in i){const j=i[X];q(j)&&(r[X]=j.bind(n))}if(s){const X=s.call(n,n);Z(X)&&(e.data=Bn(X))}if(Tr=!0,o)for(const X in o){const j=o[X],Fe=q(j)?j.bind(n,n):q(j.get)?j.get.bind(n,n):xe,tn=!q(j)&&q(j.set)?j.set.bind(n):xe,tt=se({get:Fe,set:tn});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Oe=>tt.value=Oe})}if(l)for(const X in l)Bo(l[X],r,n,X);if(c){const X=q(c)?c.call(n):c;Reflect.ownKeys(X).forEach(j=>{sc(j,X[j])})}f&&vs(f,e,"c");function V(X,j){D(j)?j.forEach(Fe=>X(Fe.bind(n))):j&&X(j.bind(n))}if(V(Ul,h),V(Rt,p),V(Bl,y),V(Kl,w),V(Vl,M),V(Dl,F),V(zl,A),V(Gl,O),V(ql,$),V(ko,U),V(Yn,_),V(Wl,S),D(T))if(T.length){const X=e.exposed||(e.exposed={});T.forEach(j=>{Object.defineProperty(X,j,{get:()=>n[j],set:Fe=>n[j]=Fe})})}else e.exposed||(e.exposed={});P&&e.render===xe&&(e.render=P),B!=null&&(e.inheritAttrs=B),L&&(e.components=L),G&&(e.directives=G)}function Ql(e,t,n=xe){D(e)&&(e=Ar(e));for(const r in e){const s=e[r];let o;Z(s)?"default"in s?o=xt(s.from||r,s.default,!0):o=xt(s.from||r):o=xt(s),he(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function vs(e,t,n){Se(D(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Bo(e,t,n,r){const s=r.includes(".")?$o(n,r):()=>n[r];if(ne(e)){const o=t[e];q(o)&&je(s,o)}else if(q(e))je(s,e.bind(n));else if(Z(e))if(D(e))e.forEach(o=>Bo(o,t,n,r));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&je(s,o,e)}}function zr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>Rn(c,u,i,!0)),Rn(c,t,i)),Z(t)&&o.set(t,c),c}function Rn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Rn(e,o,n,!0),s&&s.forEach(i=>Rn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=Zl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Zl={data:ws,props:Es,emits:Es,methods:Mt,computed:Mt,beforeCreate:pe,created:pe,beforeMount:pe,mounted:pe,beforeUpdate:pe,updated:pe,beforeDestroy:pe,beforeUnmount:pe,destroyed:pe,unmounted:pe,activated:pe,deactivated:pe,errorCaptured:pe,serverPrefetch:pe,components:Mt,directives:Mt,watch:tc,provide:ws,inject:ec};function ws(e,t){return t?e?function(){return ce(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function ec(e,t){return Mt(Ar(e),Ar(t))}function Ar(e){if(D(e)){const t={};for(let n=0;n1)return n&&q(t)?t.call(r&&r.proxy):t}}function oc(e,t,n,r=!1){const s={},o={};Cn(o,Jn,1),e.propsDefaults=Object.create(null),Wo(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:fl(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ic(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=J(s),[c]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,y]=qo(h,t,!0);ce(i,p),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return Z(e)&&r.set(e,_t),_t;if(D(o))for(let f=0;f-1,y[1]=M<0||w-1||Y(y,"default"))&&l.push(h)}}}const u=[i,l];return Z(e)&&r.set(e,u),u}function Cs(e){return e[0]!=="$"&&!vt(e)}function xs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ss(e,t){return xs(e)===xs(t)}function Ts(e,t){return D(t)?t.findIndex(n=>Ss(n,e)):q(t)&&Ss(t,e)?0:-1}const Go=e=>e[0]==="_"||e==="$stable",Xr=e=>D(e)?e.map(Ae):[Ae(e)],lc=(e,t,n)=>{if(t._n)return t;const r=Al((...s)=>Xr(t(...s)),n);return r._c=!1,r},zo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Go(s))continue;const o=e[s];if(q(o))t[s]=lc(s,o,r);else if(o!=null){const i=Xr(o);t[s]=()=>i}}},Xo=(e,t)=>{const n=Xr(t);e.slots.default=()=>n},cc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=J(t),Cn(t,"_",n)):zo(t,e.slots={})}else e.slots={},t&&Xo(e,t);Cn(e.slots,Jn,1)},ac=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=ee;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ce(s,t),!n&&l===1&&delete s._):(o=!t.$stable,zo(t,s)),i=t}else t&&(Xo(e,t),i={default:1});if(o)for(const l in s)!Go(l)&&i[l]==null&&delete s[l]};function On(e,t,n,r,s=!1){if(D(e)){e.forEach((p,y)=>On(p,t&&(D(t)?t[y]:t),n,r,s));return}if(Ct(r)&&!s)return;const o=r.shapeFlag&4?Zn(r.component)||r.component.proxy:r.el,i=s?null:o,{i:l,r:c}=e,u=t&&t.r,f=l.refs===ee?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(ne(u)?(f[u]=null,Y(h,u)&&(h[u]=null)):he(u)&&(u.value=null)),q(c))Ye(c,l,12,[i,f]);else{const p=ne(c),y=he(c);if(p||y){const w=()=>{if(e.f){const M=p?Y(h,c)?h[c]:f[c]:c.value;s?D(M)&&Fr(M,o):D(M)?M.includes(o)||M.push(o):p?(f[c]=[o],Y(h,c)&&(h[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else p?(f[c]=i,Y(h,c)&&(h[c]=i)):y&&(c.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,ge(w,n)):w()}}}let Ue=!1;const uc=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",fc=e=>e.namespaceURI.includes("MathML"),fn=e=>{if(uc(e))return"svg";if(fc(e))return"mathml"},dn=e=>e.nodeType===8;function dc(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:l,insert:c,createComment:u}}=e,f=(g,_)=>{if(!_.hasChildNodes()){n(null,g,_),Tn(),_._vnode=g;return}Ue=!1,h(_.firstChild,g,null,null,null),Tn(),_._vnode=g,Ue&&console.error("Hydration completed but contains mismatches.")},h=(g,_,P,O,$,A=!1)=>{const S=dn(g)&&g.data==="[",T=()=>M(g,_,P,O,$,S),{type:B,ref:L,shapeFlag:G,patchFlag:oe}=_;let fe=g.nodeType;_.el=g,oe===-2&&(A=!1,_.dynamicChildren=null);let V=null;switch(B){case At:fe!==3?_.children===""?(c(_.el=s(""),i(g),g),V=g):V=T():(g.data!==_.children&&(Ue=!0,g.data=_.children),V=o(g));break;case ve:U(g)?(V=o(g),K(_.el=g.content.firstChild,g,P)):fe!==8||S?V=T():V=o(g);break;case jt:if(S&&(g=o(g),fe=g.nodeType),fe===1||fe===3){V=g;const X=!_.children.length;for(let j=0;j<_.staticCount;j++)X&&(_.children+=V.nodeType===1?V.outerHTML:V.data),j===_.staticCount-1&&(_.anchor=V),V=o(V);return S?o(V):V}else T();break;case me:S?V=w(g,_,P,O,$,A):V=T();break;default:if(G&1)(fe!==1||_.type.toLowerCase()!==g.tagName.toLowerCase())&&!U(g)?V=T():V=p(g,_,P,O,$,A);else if(G&6){_.slotScopeIds=$;const X=i(g);if(S?V=F(g):dn(g)&&g.data==="teleport start"?V=F(g,g.data,"teleport end"):V=o(g),t(_,X,null,P,O,fn(X),A),Ct(_)){let j;S?(j=re(me),j.anchor=V?V.previousSibling:X.lastChild):j=g.nodeType===3?oi(""):re("div"),j.el=g,_.component.subTree=j}}else G&64?fe!==8?V=T():V=_.type.hydrate(g,_,P,O,$,A,e,y):G&128&&(V=_.type.hydrate(g,_,P,O,fn(i(g)),$,A,e,h))}return L!=null&&On(L,null,O,_),V},p=(g,_,P,O,$,A)=>{A=A||!!_.dynamicChildren;const{type:S,props:T,patchFlag:B,shapeFlag:L,dirs:G,transition:oe}=_,fe=S==="input"||S==="option";if(fe||B!==-1){G&&Le(_,null,P,"created");let V=!1;if(U(g)){V=Jo(O,oe)&&P&&P.vnode.props&&P.vnode.props.appear;const j=g.content.firstChild;V&&oe.beforeEnter(j),K(j,g,P),_.el=g=j}if(L&16&&!(T&&(T.innerHTML||T.textContent))){let j=y(g.firstChild,_,g,P,O,$,A);for(;j;){Ue=!0;const Fe=j;j=j.nextSibling,l(Fe)}}else L&8&&g.textContent!==_.children&&(Ue=!0,g.textContent=_.children);if(T)if(fe||!A||B&48)for(const j in T)(fe&&(j.endsWith("value")||j==="indeterminate")||zt(j)&&!vt(j)||j[0]===".")&&r(g,j,null,T[j],void 0,void 0,P);else T.onClick&&r(g,"onClick",null,T.onClick,void 0,void 0,P);let X;(X=T&&T.onVnodeBeforeMount)&&Ee(X,P,_),G&&Le(_,null,P,"beforeMount"),((X=T&&T.onVnodeMounted)||G||V)&&No(()=>{X&&Ee(X,P,_),V&&oe.enter(g),G&&Le(_,null,P,"mounted")},O)}return g.nextSibling},y=(g,_,P,O,$,A,S)=>{S=S||!!_.dynamicChildren;const T=_.children,B=T.length;for(let L=0;L{const{slotScopeIds:S}=_;S&&($=$?$.concat(S):S);const T=i(g),B=y(o(g),_,T,P,O,$,A);return B&&dn(B)&&B.data==="]"?o(_.anchor=B):(Ue=!0,c(_.anchor=u("]"),T,B),B)},M=(g,_,P,O,$,A)=>{if(Ue=!0,_.el=null,A){const B=F(g);for(;;){const L=o(g);if(L&&L!==B)l(L);else break}}const S=o(g),T=i(g);return l(g),n(null,_,T,S,P,O,fn(T),$),S},F=(g,_="[",P="]")=>{let O=0;for(;g;)if(g=o(g),g&&dn(g)&&(g.data===_&&O++,g.data===P)){if(O===0)return o(g);O--}return g},K=(g,_,P)=>{const O=_.parentNode;O&&O.replaceChild(g,_);let $=P;for(;$;)$.vnode.el===_&&($.vnode.el=$.subTree.el=g),$=$.parent},U=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[f,h]}const ge=No;function hc(e){return Yo(e)}function pc(e){return Yo(e,dc)}function Yo(e,t){const n=io();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:p,setScopeId:y=xe,insertStaticContent:w}=e,M=(a,d,m,b=null,v=null,x=null,I=void 0,C=null,R=!!d.dynamicChildren)=>{if(a===d)return;a&&!it(a,d)&&(b=nn(a),Oe(a,v,x,!0),a=null),d.patchFlag===-2&&(R=!1,d.dynamicChildren=null);const{type:E,ref:N,shapeFlag:k}=d;switch(E){case At:F(a,d,m,b);break;case ve:K(a,d,m,b);break;case jt:a==null&&U(d,m,b,I);break;case me:L(a,d,m,b,v,x,I,C,R);break;default:k&1?P(a,d,m,b,v,x,I,C,R):k&6?G(a,d,m,b,v,x,I,C,R):(k&64||k&128)&&E.process(a,d,m,b,v,x,I,C,R,gt)}N!=null&&v&&On(N,a&&a.ref,x,d||a,!d)},F=(a,d,m,b)=>{if(a==null)r(d.el=l(d.children),m,b);else{const v=d.el=a.el;d.children!==a.children&&u(v,d.children)}},K=(a,d,m,b)=>{a==null?r(d.el=c(d.children||""),m,b):d.el=a.el},U=(a,d,m,b)=>{[a.el,a.anchor]=w(a.children,d,m,b,a.el,a.anchor)},g=({el:a,anchor:d},m,b)=>{let v;for(;a&&a!==d;)v=p(a),r(a,m,b),a=v;r(d,m,b)},_=({el:a,anchor:d})=>{let m;for(;a&&a!==d;)m=p(a),s(a),a=m;s(d)},P=(a,d,m,b,v,x,I,C,R)=>{d.type==="svg"?I="svg":d.type==="math"&&(I="mathml"),a==null?O(d,m,b,v,x,I,C,R):S(a,d,v,x,I,C,R)},O=(a,d,m,b,v,x,I,C)=>{let R,E;const{props:N,shapeFlag:k,transition:H,dirs:W}=a;if(R=a.el=i(a.type,x,N&&N.is,N),k&8?f(R,a.children):k&16&&A(a.children,R,null,b,v,cr(a,x),I,C),W&&Le(a,null,b,"created"),$(R,a,a.scopeId,I,b),N){for(const Q in N)Q!=="value"&&!vt(Q)&&o(R,Q,null,N[Q],x,a.children,b,v,$e);"value"in N&&o(R,"value",null,N.value,x),(E=N.onVnodeBeforeMount)&&Ee(E,b,a)}W&&Le(a,null,b,"beforeMount");const z=Jo(v,H);z&&H.beforeEnter(R),r(R,d,m),((E=N&&N.onVnodeMounted)||z||W)&&ge(()=>{E&&Ee(E,b,a),z&&H.enter(R),W&&Le(a,null,b,"mounted")},v)},$=(a,d,m,b,v)=>{if(m&&y(a,m),b)for(let x=0;x{for(let E=R;E{const C=d.el=a.el;let{patchFlag:R,dynamicChildren:E,dirs:N}=d;R|=a.patchFlag&16;const k=a.props||ee,H=d.props||ee;let W;if(m&&nt(m,!1),(W=H.onVnodeBeforeUpdate)&&Ee(W,m,d,a),N&&Le(d,a,m,"beforeUpdate"),m&&nt(m,!0),E?T(a.dynamicChildren,E,C,m,b,cr(d,v),x):I||j(a,d,C,null,m,b,cr(d,v),x,!1),R>0){if(R&16)B(C,d,k,H,m,b,v);else if(R&2&&k.class!==H.class&&o(C,"class",null,H.class,v),R&4&&o(C,"style",k.style,H.style,v),R&8){const z=d.dynamicProps;for(let Q=0;Q{W&&Ee(W,m,d,a),N&&Le(d,a,m,"updated")},b)},T=(a,d,m,b,v,x,I)=>{for(let C=0;C{if(m!==b){if(m!==ee)for(const C in m)!vt(C)&&!(C in b)&&o(a,C,m[C],null,I,d.children,v,x,$e);for(const C in b){if(vt(C))continue;const R=b[C],E=m[C];R!==E&&C!=="value"&&o(a,C,E,R,I,d.children,v,x,$e)}"value"in b&&o(a,"value",m.value,b.value,I)}},L=(a,d,m,b,v,x,I,C,R)=>{const E=d.el=a?a.el:l(""),N=d.anchor=a?a.anchor:l("");let{patchFlag:k,dynamicChildren:H,slotScopeIds:W}=d;W&&(C=C?C.concat(W):W),a==null?(r(E,m,b),r(N,m,b),A(d.children||[],m,N,v,x,I,C,R)):k>0&&k&64&&H&&a.dynamicChildren?(T(a.dynamicChildren,H,m,v,x,I,C),(d.key!=null||v&&d===v.subTree)&&Yr(a,d,!0)):j(a,d,m,N,v,x,I,C,R)},G=(a,d,m,b,v,x,I,C,R)=>{d.slotScopeIds=C,a==null?d.shapeFlag&512?v.ctx.activate(d,m,b,I,R):oe(d,m,b,v,x,I,R):fe(a,d,R)},oe=(a,d,m,b,v,x,I)=>{const C=a.component=Sc(a,b,v);if(Qt(a)&&(C.ctx.renderer=gt),Tc(C),C.asyncDep){if(v&&v.registerDep(C,V),!a.el){const R=C.subTree=re(ve);K(null,R,d,m)}}else V(C,a,d,m,v,x,I)},fe=(a,d,m)=>{const b=d.component=a.component;if(Il(a,d,m))if(b.asyncDep&&!b.asyncResolved){X(b,d,m);return}else b.next=d,Cl(b.update),b.effect.dirty=!0,b.update();else d.el=a.el,b.vnode=d},V=(a,d,m,b,v,x,I)=>{const C=()=>{if(a.isMounted){let{next:N,bu:k,u:H,parent:W,vnode:z}=a;{const mt=Qo(a);if(mt){N&&(N.el=z.el,X(a,N,I)),mt.asyncDep.then(()=>{a.isUnmounted||C()});return}}let Q=N,te;nt(a,!1),N?(N.el=z.el,X(a,N,I)):N=z,k&&bn(k),(te=N.props&&N.props.onVnodeBeforeUpdate)&&Ee(te,W,N,z),nt(a,!0);const ae=sr(a),Te=a.subTree;a.subTree=ae,M(Te,ae,h(Te.el),nn(Te),a,v,x),N.el=ae.el,Q===null&&Ll(a,ae.el),H&&ge(H,v),(te=N.props&&N.props.onVnodeUpdated)&&ge(()=>Ee(te,W,N,z),v)}else{let N;const{el:k,props:H}=d,{bm:W,m:z,parent:Q}=a,te=Ct(d);if(nt(a,!1),W&&bn(W),!te&&(N=H&&H.onVnodeBeforeMount)&&Ee(N,Q,d),nt(a,!0),k&&nr){const ae=()=>{a.subTree=sr(a),nr(k,a.subTree,a,v,null)};te?d.type.__asyncLoader().then(()=>!a.isUnmounted&&ae()):ae()}else{const ae=a.subTree=sr(a);M(null,ae,m,b,a,v,x),d.el=ae.el}if(z&&ge(z,v),!te&&(N=H&&H.onVnodeMounted)){const ae=d;ge(()=>Ee(N,Q,ae),v)}(d.shapeFlag&256||Q&&Ct(Q.vnode)&&Q.vnode.shapeFlag&256)&&a.a&&ge(a.a,v),a.isMounted=!0,d=m=b=null}},R=a.effect=new Hr(C,xe,()=>Wn(E),a.scope),E=a.update=()=>{R.dirty&&R.run()};E.id=a.uid,nt(a,!0),E()},X=(a,d,m)=>{d.component=a;const b=a.vnode.props;a.vnode=d,a.next=null,ic(a,d.props,b,m),ac(a,d.children,m),ht(),gs(a),pt()},j=(a,d,m,b,v,x,I,C,R=!1)=>{const E=a&&a.children,N=a?a.shapeFlag:0,k=d.children,{patchFlag:H,shapeFlag:W}=d;if(H>0){if(H&128){tn(E,k,m,b,v,x,I,C,R);return}else if(H&256){Fe(E,k,m,b,v,x,I,C,R);return}}W&8?(N&16&&$e(E,v,x),k!==E&&f(m,k)):N&16?W&16?tn(E,k,m,b,v,x,I,C,R):$e(E,v,x,!0):(N&8&&f(m,""),W&16&&A(k,m,b,v,x,I,C,R))},Fe=(a,d,m,b,v,x,I,C,R)=>{a=a||_t,d=d||_t;const E=a.length,N=d.length,k=Math.min(E,N);let H;for(H=0;HN?$e(a,v,x,!0,!1,k):A(d,m,b,v,x,I,C,R,k)},tn=(a,d,m,b,v,x,I,C,R)=>{let E=0;const N=d.length;let k=a.length-1,H=N-1;for(;E<=k&&E<=H;){const W=a[E],z=d[E]=R?Ge(d[E]):Ae(d[E]);if(it(W,z))M(W,z,m,null,v,x,I,C,R);else break;E++}for(;E<=k&&E<=H;){const W=a[k],z=d[H]=R?Ge(d[H]):Ae(d[H]);if(it(W,z))M(W,z,m,null,v,x,I,C,R);else break;k--,H--}if(E>k){if(E<=H){const W=H+1,z=WH)for(;E<=k;)Oe(a[E],v,x,!0),E++;else{const W=E,z=E,Q=new Map;for(E=z;E<=H;E++){const _e=d[E]=R?Ge(d[E]):Ae(d[E]);_e.key!=null&&Q.set(_e.key,E)}let te,ae=0;const Te=H-z+1;let mt=!1,rs=0;const Ot=new Array(Te);for(E=0;E=Te){Oe(_e,v,x,!0);continue}let Ie;if(_e.key!=null)Ie=Q.get(_e.key);else for(te=z;te<=H;te++)if(Ot[te-z]===0&&it(_e,d[te])){Ie=te;break}Ie===void 0?Oe(_e,v,x,!0):(Ot[Ie-z]=E+1,Ie>=rs?rs=Ie:mt=!0,M(_e,d[Ie],m,null,v,x,I,C,R),ae++)}const ss=mt?gc(Ot):_t;for(te=ss.length-1,E=Te-1;E>=0;E--){const _e=z+E,Ie=d[_e],os=_e+1{const{el:x,type:I,transition:C,children:R,shapeFlag:E}=a;if(E&6){tt(a.component.subTree,d,m,b);return}if(E&128){a.suspense.move(d,m,b);return}if(E&64){I.move(a,d,m,gt);return}if(I===me){r(x,d,m);for(let k=0;kC.enter(x),v);else{const{leave:k,delayLeave:H,afterLeave:W}=C,z=()=>r(x,d,m),Q=()=>{k(x,()=>{z(),W&&W()})};H?H(x,z,Q):Q()}else r(x,d,m)},Oe=(a,d,m,b=!1,v=!1)=>{const{type:x,props:I,ref:C,children:R,dynamicChildren:E,shapeFlag:N,patchFlag:k,dirs:H}=a;if(C!=null&&On(C,null,m,a,!0),N&256){d.ctx.deactivate(a);return}const W=N&1&&H,z=!Ct(a);let Q;if(z&&(Q=I&&I.onVnodeBeforeUnmount)&&Ee(Q,d,a),N&6)Ai(a.component,m,b);else{if(N&128){a.suspense.unmount(m,b);return}W&&Le(a,null,d,"beforeUnmount"),N&64?a.type.remove(a,d,m,v,gt,b):E&&(x!==me||k>0&&k&64)?$e(E,d,m,!1,!0):(x===me&&k&384||!v&&N&16)&&$e(R,d,m),b&&ts(a)}(z&&(Q=I&&I.onVnodeUnmounted)||W)&&ge(()=>{Q&&Ee(Q,d,a),W&&Le(a,null,d,"unmounted")},m)},ts=a=>{const{type:d,el:m,anchor:b,transition:v}=a;if(d===me){Ti(m,b);return}if(d===jt){_(a);return}const x=()=>{s(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(a.shapeFlag&1&&v&&!v.persisted){const{leave:I,delayLeave:C}=v,R=()=>I(m,x);C?C(a.el,x,R):R()}else x()},Ti=(a,d)=>{let m;for(;a!==d;)m=p(a),s(a),a=m;s(d)},Ai=(a,d,m)=>{const{bum:b,scope:v,update:x,subTree:I,um:C}=a;b&&bn(b),v.stop(),x&&(x.active=!1,Oe(I,a,d,m)),C&&ge(C,d),ge(()=>{a.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},$e=(a,d,m,b=!1,v=!1,x=0)=>{for(let I=x;Ia.shapeFlag&6?nn(a.component.subTree):a.shapeFlag&128?a.suspense.next():p(a.anchor||a.el);let er=!1;const ns=(a,d,m)=>{a==null?d._vnode&&Oe(d._vnode,null,null,!0):M(d._vnode||null,a,d,null,null,null,m),er||(er=!0,gs(),Tn(),er=!1),d._vnode=a},gt={p:M,um:Oe,m:tt,r:ts,mt:oe,mc:A,pc:j,pbc:T,n:nn,o:e};let tr,nr;return t&&([tr,nr]=t(gt)),{render:ns,hydrate:tr,createApp:rc(ns,tr)}}function cr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Jo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yr(e,t,n=!1){const r=e.children,s=t.children;if(D(r)&&D(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Qo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qo(t)}const mc=e=>e.__isTeleport,Ht=e=>e&&(e.disabled||e.disabled===""),As=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Rs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Or=(e,t)=>{const n=e&&e.to;return ne(n)?t?t(n):null:n},yc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,l,c,u){const{mc:f,pc:h,pbc:p,o:{insert:y,querySelector:w,createText:M,createComment:F}}=u,K=Ht(t.props);let{shapeFlag:U,children:g,dynamicChildren:_}=t;if(e==null){const P=t.el=M(""),O=t.anchor=M("");y(P,n,r),y(O,n,r);const $=t.target=Or(t.props,w),A=t.targetAnchor=M("");$&&(y(A,$),i==="svg"||As($)?i="svg":(i==="mathml"||Rs($))&&(i="mathml"));const S=(T,B)=>{U&16&&f(g,T,B,s,o,i,l,c)};K?S(n,O):$&&S($,A)}else{t.el=e.el;const P=t.anchor=e.anchor,O=t.target=e.target,$=t.targetAnchor=e.targetAnchor,A=Ht(e.props),S=A?n:O,T=A?P:$;if(i==="svg"||As(O)?i="svg":(i==="mathml"||Rs(O))&&(i="mathml"),_?(p(e.dynamicChildren,_,S,s,o,i,l),Yr(e,t,!0)):c||h(e,t,S,T,s,o,i,l,!1),K)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):hn(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Or(t.props,w);B&&hn(t,B,null,u,0)}else A&&hn(t,O,$,u,1)}Zo(t)},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:l,children:c,anchor:u,targetAnchor:f,target:h,props:p}=e;if(h&&o(f),i&&o(u),l&16){const y=i||!Ht(p);for(let w=0;w0?Re||_t:null,bc(),qt>0&&Re&&Re.push(e),e}function bu(e,t,n,r,s,o){return ti(si(e,t,n,r,s,o,!0))}function ni(e,t,n,r,s){return ti(re(e,t,n,r,s,!0))}function In(e){return e?e.__v_isVNode===!0:!1}function it(e,t){return e.type===t.type&&e.key===t.key}const Jn="__vInternal",ri=({key:e})=>e??null,vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||he(e)||q(e)?{i:le,r:e,k:t,f:!!n}:e:null);function si(e,t=null,n=null,r=0,s=null,o=e===me?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ri(t),ref:t&&vn(t),scopeId:Gn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:le};return l?(Jr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ne(n)?8:16),qt>0&&!i&&Re&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Re.push(c),c}const re=vc;function vc(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Mo)&&(e=ve),In(e)){const l=et(e,t,!0);return n&&Jr(l,n),qt>0&&!o&&Re&&(l.shapeFlag&6?Re[Re.indexOf(e)]=l:Re.push(l)),l.patchFlag|=-2,l}if(Ic(e)&&(e=e.__vccOpts),t){t=wc(t);let{class:l,style:c}=t;l&&!ne(l)&&(t.class=Dn(l)),Z(c)&&(Eo(c)&&!D(c)&&(c=ce({},c)),t.style=Vn(c))}const i=ne(e)?1:Ml(e)?128:mc(e)?64:Z(e)?4:q(e)?2:0;return si(e,t,n,r,s,i,o,!0)}function wc(e){return e?Eo(e)||Jn in e?ce({},e):e:null}function et(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,l=t?Ec(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ri(l),ref:t&&t.ref?n&&s?D(s)?s.concat(vn(t)):[s,vn(t)]:vn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&et(e.ssContent),ssFallback:e.ssFallback&&et(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function oi(e=" ",t=0){return re(At,null,e,t)}function vu(e,t){const n=re(jt,null,e);return n.staticCount=t,n}function wu(e="",t=!1){return t?(ei(),ni(ve,null,e)):re(ve,null,e)}function Ae(e){return e==null||typeof e=="boolean"?re(ve):D(e)?re(me,null,e.slice()):typeof e=="object"?Ge(e):re(At,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:et(e)}function Jr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(D(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Jr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Jn in t)?t._ctx=le:s===3&&le&&(le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:le},n=32):(t=String(t),r&64?(n=16,t=[oi(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ec(...e){const t={};for(let n=0;nue||le;let Ln,Ir;{const e=io(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>ue=n),Ir=t("__VUE_SSR_SETTERS__",n=>en=n)}const Zt=e=>{const t=ue;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},Is=()=>{ue&&ue.scope.off(),Ln(null)};function ii(e){return e.vnode.shapeFlag&4}let en=!1;function Tc(e,t=!1){t&&Ir(t);const{props:n,children:r}=e.vnode,s=ii(e);oc(e,n,s,t),cc(e,r);const o=s?Ac(e,t):void 0;return t&&Ir(!1),o}function Ac(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Pt(new Proxy(e.ctx,Xl));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?ci(e):null,o=Zt(e);ht();const i=Ye(r,e,0,[e.props,s]);if(pt(),o(),ro(i)){if(i.then(Is,Is),t)return i.then(l=>{Ls(e,l,t)}).catch(l=>{Yt(l,e,0)});e.asyncDep=i}else Ls(e,i,t)}else li(e,t)}function Ls(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Ao(t)),li(e,n)}let Ms;function li(e,t,n){const r=e.type;if(!e.render){if(!t&&Ms&&!r.render){const s=r.template||zr(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=ce(ce({isCustomElement:o,delimiters:l},i),c);r.render=Ms(s,u)}}e.render=r.render||xe}{const s=Zt(e);ht();try{Jl(e)}finally{pt(),s()}}}function Rc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ye(e,"get","$attrs"),t[n]}}))}function ci(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Rc(e)},slots:e.slots,emit:e.emit,expose:t}}function Zn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ao(Pt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}}))}function Oc(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Ic(e){return q(e)&&"__vccOpts"in e}const se=(e,t)=>dl(e,t,en);function Lr(e,t,n){const r=arguments.length;return r===2?Z(t)&&!D(t)?In(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&In(n)&&(n=[n]),re(e,t,n))}const Lc="3.4.21";/** * @vue/runtime-dom v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Mc="http://www.w3.org/2000/svg",Pc="http://www.w3.org/1998/Math/MathML",ze=typeof document<"u"?document:null,Ms=ze&&ze.createElement("template"),Nc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?ze.createElementNS(Mc,e):t==="mathml"?ze.createElementNS(Pc,e):ze.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ze.createTextNode(e),createComment:e=>ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ms.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=Ms.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Be="transition",It="animation",Gt=Symbol("_vtc"),ci=(e,{slots:t})=>Lr(jl,Fc(e),t);ci.displayName="Transition";const ai={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ci.props=ce({},$o,ai);const rt=(e,t=[])=>{D(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ps=e=>e?D(e)?e.some(t=>t.length>1):e.length>1:!1;function Fc(e){const t={};for(const L in e)L in ai||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,w=$c(s),M=w&&w[0],F=w&&w[1],{onBeforeEnter:K,onEnter:U,onEnterCancelled:g,onLeave:_,onLeaveCancelled:P,onBeforeAppear:O=K,onAppear:$=U,onAppearCancelled:A=g}=t,S=(L,G,oe)=>{st(L,G?f:l),st(L,G?u:i),oe&&oe()},T=(L,G)=>{L._isLeaving=!1,st(L,h),st(L,y),st(L,p),G&&G()},B=L=>(G,oe)=>{const fe=L?$:U,V=()=>S(G,L,oe);rt(fe,[G,V]),Ns(()=>{st(G,L?c:o),Ke(G,L?f:l),Ps(fe)||Fs(G,r,M,V)})};return ce(t,{onBeforeEnter(L){rt(K,[L]),Ke(L,o),Ke(L,i)},onBeforeAppear(L){rt(O,[L]),Ke(L,c),Ke(L,u)},onEnter:B(!1),onAppear:B(!0),onLeave(L,G){L._isLeaving=!0;const oe=()=>T(L,G);Ke(L,h),Vc(),Ke(L,p),Ns(()=>{L._isLeaving&&(st(L,h),Ke(L,y),Ps(_)||Fs(L,r,F,oe))}),rt(_,[L,oe])},onEnterCancelled(L){S(L,!1),rt(g,[L])},onAppearCancelled(L){S(L,!0),rt(A,[L])},onLeaveCancelled(L){T(L),rt(P,[L])}})}function $c(e){if(e==null)return null;if(Z(e))return[ar(e.enter),ar(e.leave)];{const t=ar(e);return[t,t]}}function ar(e){return Pi(e)}function Ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Gt]||(e[Gt]=new Set)).add(t)}function st(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Gt];n&&(n.delete(t),n.size||(e[Gt]=void 0))}function Ns(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hc=0;function Fs(e,t,n,r){const s=e._endId=++Hc,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=jc(e,t);if(!i)return r();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,p),o()},p=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[w]||"").split(", "),s=r(`${Be}Delay`),o=r(`${Be}Duration`),i=$s(s,o),l=r(`${It}Delay`),c=r(`${It}Duration`),u=$s(l,c);let f=null,h=0,p=0;t===Be?i>0&&(f=Be,h=i,p=o.length):t===It?u>0&&(f=It,h=u,p=c.length):(h=Math.max(i,u),f=h>0?i>u?Be:It:null,p=f?f===Be?o.length:c.length:0);const y=f===Be&&/\b(transform|all)(,|$)/.test(r(`${Be}Property`).toString());return{type:f,timeout:h,propCount:p,hasTransform:y}}function $s(e,t){for(;e.lengthHs(n)+Hs(e[r])))}function Hs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Vc(){return document.body.offsetHeight}function Dc(e,t,n){const r=e[Gt];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Mn=Symbol("_vod"),ui=Symbol("_vsh"),Eu={beforeMount(e,{value:t},{transition:n}){e[Mn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lt(e,!0),r.enter(e)):r.leave(e,()=>{Lt(e,!1)}):Lt(e,t))},beforeUnmount(e,{value:t}){Lt(e,t)}};function Lt(e,t){e.style.display=t?e[Mn]:"none",e[ui]=!t}const kc=Symbol(""),Uc=/(^|;)\s*display\s*:/;function Bc(e,t,n){const r=e.style,s=ne(n);let o=!1;if(n&&!s){if(t)if(ne(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&wn(r,l,"")}else for(const i in t)n[i]==null&&wn(r,i,"");for(const i in n)i==="display"&&(o=!0),wn(r,i,n[i])}else if(s){if(t!==n){const i=r[kc];i&&(n+=";"+i),r.cssText=n,o=Uc.test(n)}}else t&&e.removeAttribute("style");Mn in e&&(e[Mn]=o?r.display:"",e[ui]&&(r.display="none"))}const js=/\s*!important$/;function wn(e,t,n){if(D(n))n.forEach(r=>wn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Kc(e,t);js.test(n)?e.setProperty(dt(r),n.replace(js,""),"important"):e[r]=n}}const Vs=["Webkit","Moz","ms"],ur={};function Kc(e,t){const n=ur[t];if(n)return n;let r=Pe(t);if(r!=="filter"&&r in e)return ur[t]=r;r=jn(r);for(let s=0;sfr||(Yc.then(()=>fr=0),fr=Date.now());function Qc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Se(Zc(r,n.value),t,5,[r])};return n.value=e,n.attached=Jc(),n}function Zc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ea=(e,t,n,r,s,o,i,l,c)=>{const u=s==="svg";t==="class"?Dc(e,r,u):t==="style"?Bc(e,n,r):zt(t)?Nr(t)||zc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ta(e,t,r,u))?qc(e,t,r,o,i,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Wc(e,t,r,u))};function ta(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bs(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Bs(t)&&ne(n)?!1:t in e}const Pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>bn(t,n):t};function na(e){e.target.composing=!0}function Ks(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const St=Symbol("_assign"),Cu={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[St]=Pn(s);const o=r||s.props&&s.props.type==="number";lt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Ut(l)),e[St](l)}),n&<(e,"change",()=>{e.value=e.value.trim()}),t||(lt(e,"compositionstart",na),lt(e,"compositionend",Ks),lt(e,"change",Ks))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e[St]=Pn(o),e.composing)return;const i=s||e.type==="number"?Ut(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===l)||(e.value=l))}},xu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=$n(t);lt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Ut(Nn(i)):Nn(i));e[St](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Jt(()=>{e._assigning=!1})}),e[St]=Pn(r)},mounted(e,{value:t,modifiers:{number:n}}){Ws(e,t,n)},beforeUpdate(e,t,n){e[St]=Pn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ws(e,t,n)}};function Ws(e,t,n){const r=e.multiple,s=D(t);if(!(r&&!s&&!$n(t))){for(let o=0,i=e.options.length;o-1}else l.selected=t.has(c);else if(kn(Nn(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nn(e){return"_value"in e?e._value:e.value}const ra=["ctrl","shift","alt","meta"],sa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ra.some(n=>e[`${n}Key`]&&!t.includes(n))},Su=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=dt(s.key);if(t.some(i=>i===o||oa[i]===o))return e(s)})},fi=ce({patchProp:ea},Nc);let Dt,qs=!1;function ia(){return Dt||(Dt=hc(fi))}function la(){return Dt=qs?Dt:pc(fi),qs=!0,Dt}const Au=(...e)=>{ia().render(...e)},Ru=(...e)=>{const t=la().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=aa(r);if(s)return n(s,!0,ca(s))},t};function ca(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function aa(e){return ne(e)?document.querySelector(e):e}const Ou=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ua="modulepreload",fa=function(e){return"/"+e},Gs={},Iu=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");s=Promise.all(n.map(i=>{if(i=fa(i),i in Gs)return;Gs[i]=!0;const l=i.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(!!r)for(let h=o.length-1;h>=0;h--){const p=o[h];if(p.href===i&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":ua,l||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),l)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},da=window.__VP_SITE_DATA__;function Qr(e){return co()?(Ki(e),!0):!1}function Je(e){return typeof e=="function"?e():So(e)}const di=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ha=Object.prototype.toString,pa=e=>ha.call(e)==="[object Object]",kt=()=>{},Mr=ga();function ga(){var e,t;return di&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ma(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const hi=e=>e();function ya(e=hi){const t=ie(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Kn(t),pause:n,resume:r,eventFilter:s}}function _a(e){return e||Qn()}function pi(...e){if(e.length!==1)return bl(...e);const t=e[0];return typeof t=="function"?Kn(ml(()=>({get:t,set:kt}))):ie(t)}function ba(e,t,n={}){const{eventFilter:r=hi,...s}=n;return je(e,ma(r,t),s)}function va(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=ya(r);return{stop:ba(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:c}}function Zr(e,t=!0,n){_a()?Rt(e,n):t?e():Jt(e)}function yt(e){var t;const n=Je(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ne=di?window:void 0;function Ve(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Ne):[t,n,r,s]=e,!t)return kt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(f=>f()),o.length=0},l=(f,h,p,y)=>(f.addEventListener(h,p,y),()=>f.removeEventListener(h,p,y)),c=je(()=>[yt(t),Je(s)],([f,h])=>{if(i(),!f)return;const p=pa(h)?{...h}:h;o.push(...n.flatMap(y=>r.map(w=>l(f,y,w,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Qr(u),u}let zs=!1;function Lu(e,t,n={}){const{window:r=Ne,ignore:s=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return kt;Mr&&!zs&&(zs=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",kt)),r.document.documentElement.addEventListener("click",kt));let l=!0;const c=p=>s.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(w=>w===p.target||p.composedPath().includes(w));{const w=yt(y);return w&&(p.target===w||p.composedPath().includes(w))}}),f=[Ve(r,"click",p=>{const y=yt(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),Ve(r,"pointerdown",p=>{const y=yt(e);l=!c(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),i&&Ve(r,"blur",p=>{setTimeout(()=>{var y;const w=yt(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w!=null&&w.contains(r.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>f.forEach(p=>p())}function wa(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Mu(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Ne,eventName:o="keydown",passive:i=!1,dedupe:l=!1}=r,c=wa(t);return Ve(s,o,f=>{f.repeat&&Je(l)||c(f)&&n(f)},i)}function Ea(){const e=ie(!1);return Qn()&&Rt(()=>{e.value=!0}),e}function Ca(e){const t=Ea();return se(()=>(t.value,!!e()))}function gi(e,t={}){const{window:n=Ne}=t,r=Ca(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=ie(!1),i=u=>{o.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},c=No(()=>{r.value&&(l(),s=n.matchMedia(Je(e)),"addEventListener"in s?s.addEventListener("change",i):s.addListener(i),o.value=s.matches)});return Qr(()=>{c(),l(),s=void 0}),o}const pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gn="__vueuse_ssr_handlers__",xa=Sa();function Sa(){return gn in pn||(pn[gn]=pn[gn]||{}),pn[gn]}function mi(e,t){return xa[e]||t}function Ta(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Aa={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Xs="vueuse-storage";function Ra(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:f,window:h=Ne,eventFilter:p,onError:y=S=>{console.error(S)},initOnMounted:w}=r,M=(f?Co:ie)(typeof t=="function"?t():t);if(!n)try{n=mi("getDefaultStorage",()=>{var S;return(S=Ne)==null?void 0:S.localStorage})()}catch(S){y(S)}if(!n)return M;const F=Je(t),K=Ta(F),U=(s=r.serializer)!=null?s:Aa[K],{pause:g,resume:_}=va(M,()=>P(M.value),{flush:o,deep:i,eventFilter:p});return h&&l&&Zr(()=>{Ve(h,"storage",A),Ve(h,Xs,$),w&&A()}),w||A(),M;function P(S){try{if(S==null)n.removeItem(e);else{const T=U.write(S),B=n.getItem(e);B!==T&&(n.setItem(e,T),h&&h.dispatchEvent(new CustomEvent(Xs,{detail:{key:e,oldValue:B,newValue:T,storageArea:n}})))}}catch(T){y(T)}}function O(S){const T=S?S.newValue:n.getItem(e);if(T==null)return c&&F!=null&&n.setItem(e,U.write(F)),F;if(!S&&u){const B=U.read(T);return typeof u=="function"?u(B,F):K==="object"&&!Array.isArray(B)?{...F,...B}:B}else return typeof T!="string"?T:U.read(T)}function $(S){A(S.detail)}function A(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){M.value=F;return}if(!(S&&S.key!==e)){g();try{(S==null?void 0:S.newValue)!==U.write(M.value)&&(M.value=O(S))}catch(T){y(T)}finally{S?Jt(_):_()}}}}}function yi(e){return gi("(prefers-color-scheme: dark)",e)}function Oa(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=Ne,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},p=yi({window:s}),y=se(()=>p.value?"dark":"light"),w=c||(i==null?pi(r):Ra(i,r,o,{window:s,listenToStorageChanges:l})),M=se(()=>w.value==="auto"?y.value:w.value),F=mi("updateHTMLAttrs",(_,P,O)=>{const $=typeof _=="string"?s==null?void 0:s.document.querySelector(_):yt(_);if(!$)return;let A;if(f&&(A=s.document.createElement("style"),A.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(A)),P==="class"){const S=O.split(/\s/g);Object.values(h).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{S.includes(T)?$.classList.add(T):$.classList.remove(T)})}else $.setAttribute(P,O);f&&(s.getComputedStyle(A).opacity,document.head.removeChild(A))});function K(_){var P;F(t,n,(P=h[_])!=null?P:_)}function U(_){e.onChanged?e.onChanged(_,K):K(_)}je(M,U,{flush:"post",immediate:!0}),Zr(()=>U(M.value));const g=se({get(){return u?w.value:M.value},set(_){w.value=_}});try{return Object.assign(g,{store:w,system:y,state:M})}catch{return g}}function Ia(e={}){const{valueDark:t="dark",valueLight:n="",window:r=Ne}=e,s=Oa({...e,onChanged:(l,c)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=se(()=>s.system?s.system.value:yi({window:r}).value?"dark":"light");return se({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?s.value="auto":s.value=c}})}function dr(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function _i(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const mn=new WeakMap;function Pu(e,t=!1){const n=ie(t);let r=null,s;je(pi(e),l=>{const c=dr(Je(l));if(c){const u=c;mn.get(u)||mn.set(u,s),n.value&&(u.style.overflow="hidden")}},{immediate:!0});const o=()=>{const l=dr(Je(e));!l||n.value||(Mr&&(r=Ve(l,"touchmove",c=>{La(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{var l;const c=dr(Je(e));!c||!n.value||(Mr&&(r==null||r()),c.style.overflow=(l=mn.get(c))!=null?l:"",mn.delete(c),n.value=!1)};return Qr(i),se({get(){return n.value},set(l){l?o():i()}})}function Nu(e={}){const{window:t=Ne,behavior:n="auto"}=e;if(!t)return{x:ie(0),y:ie(0)};const r=ie(t.scrollX),s=ie(t.scrollY),o=se({get(){return r.value},set(l){scrollTo({left:l,behavior:n})}}),i=se({get(){return s.value},set(l){scrollTo({top:l,behavior:n})}});return Ve(t,"scroll",()=>{r.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:o,y:i}}function Fu(e={}){const{window:t=Ne,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=e,i=ie(n),l=ie(r),c=()=>{t&&(o?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),Zr(c),Ve("resize",c,{passive:!0}),s){const u=gi("(orientation: portrait)");je(u,()=>c())}return{width:i,height:l}}var hr={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},pr={};const bi=/^(?:[a-z]+:|\/\/)/i,Ma="vitepress-theme-appearance",Pa=/#.*$/,Na=/[?#].*$/,Fa=/(?:(^|\/)index)?\.(?:md|html)$/,Ce=typeof document<"u",vi={relativePath:"",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function $a(e,t,n=!1){if(t===void 0)return!1;if(e=Ys(`/${e}`),n)return new RegExp(t).test(e);if(Ys(t)!==e)return!1;const r=t.match(Pa);return r?(Ce?location.hash:"")===r[0]:!0}function Ys(e){return decodeURI(e).replace(Na,"").replace(Fa,"$1")}function Ha(e){return bi.test(e)}function ja(e,t){var r,s,o,i,l,c,u;const n=Object.keys(e.locales).find(f=>f!=="root"&&!Ha(f)&&$a(t,`/${f}/`,!0))||"root";return Object.assign({},e,{localeIndex:n,lang:((r=e.locales[n])==null?void 0:r.lang)??e.lang,dir:((s=e.locales[n])==null?void 0:s.dir)??e.dir,title:((o=e.locales[n])==null?void 0:o.title)??e.title,titleTemplate:((i=e.locales[n])==null?void 0:i.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:Ei(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(u=e.locales[n])==null?void 0:u.themeConfig}})}function wi(e,t){const n=t.title||e.title,r=t.titleTemplate??e.titleTemplate;if(typeof r=="string"&&r.includes(":title"))return r.replace(/:title/g,n);const s=Va(e.title,r);return n===s.slice(3)?n:`${n}${s}`}function Va(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Da(e,t){const[n,r]=t;if(n!=="meta")return!1;const s=Object.entries(r)[0];return s==null?!1:e.some(([o,i])=>o===n&&i[s[0]]===s[1])}function Ei(e,t){return[...e.filter(n=>!Da(t,n)),...t]}const ka=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,Ua=/^[a-z]:/i;function Js(e){const t=Ua.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(ka,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const gr=new Set;function Ba(e){if(gr.size===0){const n=typeof process=="object"&&(pr==null?void 0:pr.VITE_EXTRA_EXTENSIONS)||(hr==null?void 0:hr.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(r=>gr.add(r))}const t=e.split(".").pop();return t==null||!gr.has(t.toLowerCase())}const Ka=Symbol(),ft=Co(da);function $u(e){const t=se(()=>ja(ft.value,e.data.relativePath)),n=t.value.appearance,r=n==="force-dark"?ie(!0):n?Ia({storageKey:Ma,initialValue:()=>typeof n=="string"?n:"auto",...typeof n=="object"?n:{}}):ie(!1);return{site:t,theme:se(()=>t.value.themeConfig),page:se(()=>e.data),frontmatter:se(()=>e.data.frontmatter),params:se(()=>e.data.params),lang:se(()=>t.value.lang),dir:se(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:se(()=>t.value.localeIndex||"root"),title:se(()=>wi(t.value,e.data)),description:se(()=>e.data.description||t.value.description),isDark:r}}function Wa(){const e=xt(Ka);if(!e)throw new Error("vitepress data not properly injected in app");return e}function qa(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Qs(e){return bi.test(e)||!e.startsWith("/")?e:qa(ft.value.base,e)}function Ga(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),Ce){const n="/";t=Js(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let r=__VP_HASH_MAP__[t.toLowerCase()];if(r||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",r=__VP_HASH_MAP__[t.toLowerCase()]),!r)return null;t=`${n}assets/${t}.${r}.js`}else t=`./${Js(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let En=[];function Hu(e){En.push(e),Yn(()=>{En=En.filter(t=>t!==e)})}function za(){let e=ft.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=Zs(e,n);else if(Array.isArray(e))for(const r of e){const s=Zs(r,n);if(s){t=s;break}}return t}function Zs(e,t){const n=document.querySelector(e);if(!n)return 0;const r=n.getBoundingClientRect().bottom;return r<0?0:r+t}const Xa=Symbol(),Ci="http://a.com",Ya=()=>({path:"/",component:null,data:vi});function ju(e,t){const n=Bn(Ya()),r={route:n,go:s};async function s(l=Ce?location.href:"/"){var c,u;l=Fn(l),await((c=r.onBeforeRouteChange)==null?void 0:c.call(r,l))!==!1&&(to(l),await i(l),await((u=r.onAfterRouteChanged)==null?void 0:u.call(r,l)))}let o=null;async function i(l,c=0,u=!1){var p;if(await((p=r.onBeforePageLoad)==null?void 0:p.call(r,l))===!1)return;const f=new URL(l,Ci),h=o=f.pathname;try{let y=await e(h);if(!y)throw new Error(`Page not found: ${h}`);if(o===h){o=null;const{default:w,__pageData:M}=y;if(!w)throw new Error(`Invalid route component: ${w}`);n.path=Ce?h:Qs(h),n.component=Pt(w),n.data=Pt(M),Ce&&Jt(()=>{let F=ft.value.base+M.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!ft.value.cleanUrls&&!F.endsWith("/")&&(F+=".html"),F!==f.pathname&&(f.pathname=F,l=F+f.search+f.hash,history.replaceState(null,"",l)),f.hash&&!c){let K=null;try{K=document.getElementById(decodeURIComponent(f.hash).slice(1))}catch(U){console.warn(U)}if(K){eo(K,f.hash);return}}window.scrollTo(0,c)})}}catch(y){if(!/fetch|Page not found/.test(y.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(y),!u)try{const w=await fetch(ft.value.base+"hashmap.json");window.__VP_HASH_MAP__=await w.json(),await i(l,c,!0);return}catch{}o===h&&(o=null,n.path=Ce?h:Qs(h),n.component=t?Pt(t):null,n.data=vi)}}return Ce&&(window.addEventListener("click",l=>{if(l.target.closest("button"))return;const u=l.target.closest("a");if(u&&!u.closest(".vp-raw")&&(u instanceof SVGElement||!u.download)){const{target:f}=u,{href:h,origin:p,pathname:y,hash:w,search:M}=new URL(u.href instanceof SVGAnimatedString?u.href.animVal:u.href,u.baseURI),F=window.location;!l.ctrlKey&&!l.shiftKey&&!l.altKey&&!l.metaKey&&!f&&p===F.origin&&Ba(y)&&(l.preventDefault(),y===F.pathname&&M===F.search?(w!==F.hash&&(history.pushState(null,"",w),window.dispatchEvent(new Event("hashchange"))),w?eo(u,w,u.classList.contains("header-anchor")):(to(h),window.scrollTo(0,0))):s(h))}},{capture:!0}),window.addEventListener("popstate",async l=>{var c;await i(Fn(location.href),l.state&&l.state.scrollPosition||0),(c=r.onAfterRouteChanged)==null||c.call(r,location.href)}),window.addEventListener("hashchange",l=>{l.preventDefault()})),r}function Ja(){const e=xt(Xa);if(!e)throw new Error("useRouter() is called without provider.");return e}function xi(){return Ja().route}function eo(e,t,n=!1){let r=null;try{r=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(s){console.warn(s)}if(r){let s=function(){!n||Math.abs(i-window.scrollY)>window.innerHeight?window.scrollTo(0,i):window.scrollTo({left:0,top:i,behavior:"smooth"})};const o=parseInt(window.getComputedStyle(r).paddingTop,10),i=window.scrollY+r.getBoundingClientRect().top-za()+o;requestAnimationFrame(s)}}function to(e){Ce&&Fn(e)!==Fn(location.href)&&(history.replaceState({scrollPosition:window.scrollY},document.title),history.pushState(null,"",e))}function Fn(e){const t=new URL(e,Ci);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),ft.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const mr=()=>En.forEach(e=>e()),Vu=Gr({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=xi(),{site:n}=Wa();return()=>Lr(e.as,n.value.contentProps??{style:{position:"relative"}},[t.component?Lr(t.component,{onVnodeMounted:mr,onVnodeUpdated:mr,onVnodeUnmounted:mr}):"404 Page Not Found"])}}),Du="/logo.png",ku=Gr({setup(e,{slots:t}){const n=ie(!1);return Rt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function Uu(){Ce&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement;if(!r)return;const s=Array.from(r.querySelectorAll("input")).indexOf(t);if(s<0)return;const o=r.querySelector(".blocks");if(!o)return;const i=Array.from(o.children).find(u=>u.classList.contains("active"));if(!i)return;const l=o.children[s];if(!l||i===l)return;i.classList.remove("active"),l.classList.add("active");const c=r==null?void 0:r.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function Bu(){if(Ce){const e=new WeakMap;window.addEventListener("click",t=>{var r;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const s=n.parentElement,o=(r=n.nextElementSibling)==null?void 0:r.nextElementSibling;if(!s||!o)return;const i=/language-(shellscript|shell|bash|sh|zsh)/.test(s.className),l=[".vp-copy-ignore",".diff.remove"],c=o.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(f=>f.remove());let u=c.textContent||"";i&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),Qa(u).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const f=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,f)})}})}}async function Qa(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const r=document.getSelection(),s=r?r.rangeCount>0&&r.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),s&&(r.removeAllRanges(),r.addRange(s)),n&&n.focus()}}function Ku(e,t){let n=!0,r=[];const s=o=>{if(n){n=!1,o.forEach(l=>{const c=yr(l);for(const u of document.head.children)if(u.isEqualNode(c)){r.push(u);return}});return}const i=o.map(yr);r.forEach((l,c)=>{const u=i.findIndex(f=>f==null?void 0:f.isEqualNode(l??null));u!==-1?delete i[u]:(l==null||l.remove(),delete r[c])}),i.forEach(l=>l&&document.head.appendChild(l)),r=[...r,...i].filter(Boolean)};No(()=>{const o=e.data,i=t.value,l=o&&o.description,c=o&&o.frontmatter.head||[],u=wi(i,o);u!==document.title&&(document.title=u);const f=l||i.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==f&&h.setAttribute("content",f):yr(["meta",{name:"description",content:f}]),s(Ei(i.head,eu(c)))})}function yr([e,t,n]){const r=document.createElement(e);for(const s in t)r.setAttribute(s,t[s]);return n&&(r.innerHTML=n),e==="script"&&!t.async&&(r.async=!1),r}function Za(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function eu(e){return e.filter(t=>!Za(t))}const _r=new Set,Si=()=>document.createElement("link"),tu=e=>{const t=Si();t.rel="prefetch",t.href=e,document.head.appendChild(t)},nu=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let yn;const ru=Ce&&(yn=Si())&&yn.relList&&yn.relList.supports&&yn.relList.supports("prefetch")?tu:nu;function Wu(){if(!Ce||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const r=()=>{n&&n.disconnect(),n=new IntersectionObserver(o=>{o.forEach(i=>{if(i.isIntersecting){const l=i.target;n.unobserve(l);const{pathname:c}=l;if(!_r.has(c)){_r.add(c);const u=Ga(c);u&&ru(u)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(o=>{const{hostname:i,pathname:l}=new URL(o.href instanceof SVGAnimatedString?o.href.animVal:o.href,o.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||o.target!=="_blank"&&i===location.hostname&&(l!==location.pathname?n.observe(o):_r.add(l))})})};Rt(r);const s=xi();je(()=>s.path,r),Yn(()=>{n&&n.disconnect()})}export{sc as $,Yn as A,uu as B,Kl as C,za as D,cu as E,me as F,hu as G,Co as H,Hu as I,re as J,du as K,Iu as L,au as M,bi as N,xi as O,Ec as P,xt as Q,Fu as R,Vn as S,ci as T,Lu as U,Mu as V,Jt as W,Nu as X,Kn as Y,Pu as Z,Ou as _,si as a,Tu as a0,mu as a1,Su as a2,yu as a3,Bn as a4,bl as a5,pu as a6,su as a7,wc as a8,he as a9,_u as aa,Lr as ab,Au as ac,Bl as ad,fu as ae,Eu as af,co as ag,Ki as ah,Du as ai,xu as aj,Cu as ak,vu as al,Ku as am,Xa as an,$u as ao,Ka as ap,Vu as aq,ku as ar,ft as as,Ru as at,ju as au,Ga as av,Wu as aw,Bu as ax,Uu as ay,Ja as az,ti as b,bu as c,Gr as d,wu as e,Ba as f,Qs as g,ie as h,Ha as i,Ce as j,se as k,Rt as l,ri as m,Dn as n,Zo as o,So as p,iu as q,gu as r,lu as s,ou as t,Wa as u,$a as v,Al as w,gi as x,je as y,No as z}; +**/const Mc="http://www.w3.org/2000/svg",Pc="http://www.w3.org/1998/Math/MathML",ze=typeof document<"u"?document:null,Ps=ze&&ze.createElement("template"),Nc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?ze.createElementNS(Mc,e):t==="mathml"?ze.createElementNS(Pc,e):ze.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ze.createTextNode(e),createComment:e=>ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ps.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=Ps.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Be="transition",It="animation",Gt=Symbol("_vtc"),ai=(e,{slots:t})=>Lr(jl,Fc(e),t);ai.displayName="Transition";const ui={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ai.props=ce({},Ho,ui);const rt=(e,t=[])=>{D(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ns=e=>e?D(e)?e.some(t=>t.length>1):e.length>1:!1;function Fc(e){const t={};for(const L in e)L in ui||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,w=$c(s),M=w&&w[0],F=w&&w[1],{onBeforeEnter:K,onEnter:U,onEnterCancelled:g,onLeave:_,onLeaveCancelled:P,onBeforeAppear:O=K,onAppear:$=U,onAppearCancelled:A=g}=t,S=(L,G,oe)=>{st(L,G?f:l),st(L,G?u:i),oe&&oe()},T=(L,G)=>{L._isLeaving=!1,st(L,h),st(L,y),st(L,p),G&&G()},B=L=>(G,oe)=>{const fe=L?$:U,V=()=>S(G,L,oe);rt(fe,[G,V]),Fs(()=>{st(G,L?c:o),Ke(G,L?f:l),Ns(fe)||$s(G,r,M,V)})};return ce(t,{onBeforeEnter(L){rt(K,[L]),Ke(L,o),Ke(L,i)},onBeforeAppear(L){rt(O,[L]),Ke(L,c),Ke(L,u)},onEnter:B(!1),onAppear:B(!0),onLeave(L,G){L._isLeaving=!0;const oe=()=>T(L,G);Ke(L,h),Vc(),Ke(L,p),Fs(()=>{L._isLeaving&&(st(L,h),Ke(L,y),Ns(_)||$s(L,r,F,oe))}),rt(_,[L,oe])},onEnterCancelled(L){S(L,!1),rt(g,[L])},onAppearCancelled(L){S(L,!0),rt(A,[L])},onLeaveCancelled(L){T(L),rt(P,[L])}})}function $c(e){if(e==null)return null;if(Z(e))return[ar(e.enter),ar(e.leave)];{const t=ar(e);return[t,t]}}function ar(e){return Pi(e)}function Ke(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Gt]||(e[Gt]=new Set)).add(t)}function st(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Gt];n&&(n.delete(t),n.size||(e[Gt]=void 0))}function Fs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hc=0;function $s(e,t,n,r){const s=e._endId=++Hc,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:c}=jc(e,t);if(!i)return r();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,p),o()},p=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[w]||"").split(", "),s=r(`${Be}Delay`),o=r(`${Be}Duration`),i=Hs(s,o),l=r(`${It}Delay`),c=r(`${It}Duration`),u=Hs(l,c);let f=null,h=0,p=0;t===Be?i>0&&(f=Be,h=i,p=o.length):t===It?u>0&&(f=It,h=u,p=c.length):(h=Math.max(i,u),f=h>0?i>u?Be:It:null,p=f?f===Be?o.length:c.length:0);const y=f===Be&&/\b(transform|all)(,|$)/.test(r(`${Be}Property`).toString());return{type:f,timeout:h,propCount:p,hasTransform:y}}function Hs(e,t){for(;e.lengthjs(n)+js(e[r])))}function js(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Vc(){return document.body.offsetHeight}function Dc(e,t,n){const r=e[Gt];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Mn=Symbol("_vod"),fi=Symbol("_vsh"),Eu={beforeMount(e,{value:t},{transition:n}){e[Mn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lt(e,!0),r.enter(e)):r.leave(e,()=>{Lt(e,!1)}):Lt(e,t))},beforeUnmount(e,{value:t}){Lt(e,t)}};function Lt(e,t){e.style.display=t?e[Mn]:"none",e[fi]=!t}const kc=Symbol(""),Uc=/(^|;)\s*display\s*:/;function Bc(e,t,n){const r=e.style,s=ne(n);let o=!1;if(n&&!s){if(t)if(ne(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&wn(r,l,"")}else for(const i in t)n[i]==null&&wn(r,i,"");for(const i in n)i==="display"&&(o=!0),wn(r,i,n[i])}else if(s){if(t!==n){const i=r[kc];i&&(n+=";"+i),r.cssText=n,o=Uc.test(n)}}else t&&e.removeAttribute("style");Mn in e&&(e[Mn]=o?r.display:"",e[fi]&&(r.display="none"))}const Vs=/\s*!important$/;function wn(e,t,n){if(D(n))n.forEach(r=>wn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Kc(e,t);Vs.test(n)?e.setProperty(dt(r),n.replace(Vs,""),"important"):e[r]=n}}const Ds=["Webkit","Moz","ms"],ur={};function Kc(e,t){const n=ur[t];if(n)return n;let r=Pe(t);if(r!=="filter"&&r in e)return ur[t]=r;r=jn(r);for(let s=0;sfr||(Yc.then(()=>fr=0),fr=Date.now());function Qc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Se(Zc(r,n.value),t,5,[r])};return n.value=e,n.attached=Jc(),n}function Zc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ea=(e,t,n,r,s,o,i,l,c)=>{const u=s==="svg";t==="class"?Dc(e,r,u):t==="style"?Bc(e,n,r):zt(t)?Nr(t)||zc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ta(e,t,r,u))?qc(e,t,r,o,i,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Wc(e,t,r,u))};function ta(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ks(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ks(t)&&ne(n)?!1:t in e}const Pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>bn(t,n):t};function na(e){e.target.composing=!0}function Ws(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const St=Symbol("_assign"),Cu={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[St]=Pn(s);const o=r||s.props&&s.props.type==="number";lt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Ut(l)),e[St](l)}),n&<(e,"change",()=>{e.value=e.value.trim()}),t||(lt(e,"compositionstart",na),lt(e,"compositionend",Ws),lt(e,"change",Ws))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e[St]=Pn(o),e.composing)return;const i=s||e.type==="number"?Ut(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===l)||(e.value=l))}},xu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=$n(t);lt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Ut(Nn(i)):Nn(i));e[St](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Jt(()=>{e._assigning=!1})}),e[St]=Pn(r)},mounted(e,{value:t,modifiers:{number:n}}){qs(e,t,n)},beforeUpdate(e,t,n){e[St]=Pn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||qs(e,t,n)}};function qs(e,t,n){const r=e.multiple,s=D(t);if(!(r&&!s&&!$n(t))){for(let o=0,i=e.options.length;o-1}else l.selected=t.has(c);else if(kn(Nn(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nn(e){return"_value"in e?e._value:e.value}const ra=["ctrl","shift","alt","meta"],sa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ra.some(n=>e[`${n}Key`]&&!t.includes(n))},Su=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=dt(s.key);if(t.some(i=>i===o||oa[i]===o))return e(s)})},di=ce({patchProp:ea},Nc);let Dt,Gs=!1;function ia(){return Dt||(Dt=hc(di))}function la(){return Dt=Gs?Dt:pc(di),Gs=!0,Dt}const Au=(...e)=>{ia().render(...e)},Ru=(...e)=>{const t=la().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=aa(r);if(s)return n(s,!0,ca(s))},t};function ca(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function aa(e){return ne(e)?document.querySelector(e):e}const Ou=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},ua="modulepreload",fa=function(e){return"/"+e},zs={},Iu=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");s=Promise.all(n.map(i=>{if(i=fa(i),i in zs)return;zs[i]=!0;const l=i.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(!!r)for(let h=o.length-1;h>=0;h--){const p=o[h];if(p.href===i&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":ua,l||(f.as="script",f.crossOrigin=""),f.href=i,document.head.appendChild(f),l)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},da=window.__VP_SITE_DATA__;function Qr(e){return ao()?(Ki(e),!0):!1}function Je(e){return typeof e=="function"?e():To(e)}const hi=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ha=Object.prototype.toString,pa=e=>ha.call(e)==="[object Object]",kt=()=>{},Mr=ga();function ga(){var e,t;return hi&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ma(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const pi=e=>e();function ya(e=pi){const t=ie(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Kn(t),pause:n,resume:r,eventFilter:s}}function _a(e){return e||Qn()}function gi(...e){if(e.length!==1)return bl(...e);const t=e[0];return typeof t=="function"?Kn(ml(()=>({get:t,set:kt}))):ie(t)}function ba(e,t,n={}){const{eventFilter:r=pi,...s}=n;return je(e,ma(r,t),s)}function va(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=ya(r);return{stop:ba(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:c}}function Zr(e,t=!0,n){_a()?Rt(e,n):t?e():Jt(e)}function yt(e){var t;const n=Je(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ne=hi?window:void 0;function Ve(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Ne):[t,n,r,s]=e,!t)return kt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(f=>f()),o.length=0},l=(f,h,p,y)=>(f.addEventListener(h,p,y),()=>f.removeEventListener(h,p,y)),c=je(()=>[yt(t),Je(s)],([f,h])=>{if(i(),!f)return;const p=pa(h)?{...h}:h;o.push(...n.flatMap(y=>r.map(w=>l(f,y,w,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Qr(u),u}let Xs=!1;function Lu(e,t,n={}){const{window:r=Ne,ignore:s=[],capture:o=!0,detectIframe:i=!1}=n;if(!r)return kt;Mr&&!Xs&&(Xs=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",kt)),r.document.documentElement.addEventListener("click",kt));let l=!0;const c=p=>s.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(w=>w===p.target||p.composedPath().includes(w));{const w=yt(y);return w&&(p.target===w||p.composedPath().includes(w))}}),f=[Ve(r,"click",p=>{const y=yt(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),Ve(r,"pointerdown",p=>{const y=yt(e);l=!c(p)&&!!(y&&!p.composedPath().includes(y))},{passive:!0}),i&&Ve(r,"blur",p=>{setTimeout(()=>{var y;const w=yt(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(w!=null&&w.contains(r.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>f.forEach(p=>p())}function wa(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Mu(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Ne,eventName:o="keydown",passive:i=!1,dedupe:l=!1}=r,c=wa(t);return Ve(s,o,f=>{f.repeat&&Je(l)||c(f)&&n(f)},i)}function Ea(){const e=ie(!1);return Qn()&&Rt(()=>{e.value=!0}),e}function Ca(e){const t=Ea();return se(()=>(t.value,!!e()))}function mi(e,t={}){const{window:n=Ne}=t,r=Ca(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=ie(!1),i=u=>{o.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},c=Fo(()=>{r.value&&(l(),s=n.matchMedia(Je(e)),"addEventListener"in s?s.addEventListener("change",i):s.addListener(i),o.value=s.matches)});return Qr(()=>{c(),l(),s=void 0}),o}const pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gn="__vueuse_ssr_handlers__",xa=Sa();function Sa(){return gn in pn||(pn[gn]=pn[gn]||{}),pn[gn]}function yi(e,t){return xa[e]||t}function Ta(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Aa={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ys="vueuse-storage";function Ra(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:u=!1,shallow:f,window:h=Ne,eventFilter:p,onError:y=S=>{console.error(S)},initOnMounted:w}=r,M=(f?xo:ie)(typeof t=="function"?t():t);if(!n)try{n=yi("getDefaultStorage",()=>{var S;return(S=Ne)==null?void 0:S.localStorage})()}catch(S){y(S)}if(!n)return M;const F=Je(t),K=Ta(F),U=(s=r.serializer)!=null?s:Aa[K],{pause:g,resume:_}=va(M,()=>P(M.value),{flush:o,deep:i,eventFilter:p});return h&&l&&Zr(()=>{Ve(h,"storage",A),Ve(h,Ys,$),w&&A()}),w||A(),M;function P(S){try{if(S==null)n.removeItem(e);else{const T=U.write(S),B=n.getItem(e);B!==T&&(n.setItem(e,T),h&&h.dispatchEvent(new CustomEvent(Ys,{detail:{key:e,oldValue:B,newValue:T,storageArea:n}})))}}catch(T){y(T)}}function O(S){const T=S?S.newValue:n.getItem(e);if(T==null)return c&&F!=null&&n.setItem(e,U.write(F)),F;if(!S&&u){const B=U.read(T);return typeof u=="function"?u(B,F):K==="object"&&!Array.isArray(B)?{...F,...B}:B}else return typeof T!="string"?T:U.read(T)}function $(S){A(S.detail)}function A(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){M.value=F;return}if(!(S&&S.key!==e)){g();try{(S==null?void 0:S.newValue)!==U.write(M.value)&&(M.value=O(S))}catch(T){y(T)}finally{S?Jt(_):_()}}}}}function _i(e){return mi("(prefers-color-scheme: dark)",e)}function Oa(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=Ne,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:u,disableTransition:f=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},p=_i({window:s}),y=se(()=>p.value?"dark":"light"),w=c||(i==null?gi(r):Ra(i,r,o,{window:s,listenToStorageChanges:l})),M=se(()=>w.value==="auto"?y.value:w.value),F=yi("updateHTMLAttrs",(_,P,O)=>{const $=typeof _=="string"?s==null?void 0:s.document.querySelector(_):yt(_);if(!$)return;let A;if(f&&(A=s.document.createElement("style"),A.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),s.document.head.appendChild(A)),P==="class"){const S=O.split(/\s/g);Object.values(h).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{S.includes(T)?$.classList.add(T):$.classList.remove(T)})}else $.setAttribute(P,O);f&&(s.getComputedStyle(A).opacity,document.head.removeChild(A))});function K(_){var P;F(t,n,(P=h[_])!=null?P:_)}function U(_){e.onChanged?e.onChanged(_,K):K(_)}je(M,U,{flush:"post",immediate:!0}),Zr(()=>U(M.value));const g=se({get(){return u?w.value:M.value},set(_){w.value=_}});try{return Object.assign(g,{store:w,system:y,state:M})}catch{return g}}function Ia(e={}){const{valueDark:t="dark",valueLight:n="",window:r=Ne}=e,s=Oa({...e,onChanged:(l,c)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=se(()=>s.system?s.system.value:_i({window:r}).value?"dark":"light");return se({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?s.value="auto":s.value=c}})}function dr(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function bi(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const mn=new WeakMap;function Pu(e,t=!1){const n=ie(t);let r=null,s;je(gi(e),l=>{const c=dr(Je(l));if(c){const u=c;mn.get(u)||mn.set(u,s),n.value&&(u.style.overflow="hidden")}},{immediate:!0});const o=()=>{const l=dr(Je(e));!l||n.value||(Mr&&(r=Ve(l,"touchmove",c=>{La(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},i=()=>{var l;const c=dr(Je(e));!c||!n.value||(Mr&&(r==null||r()),c.style.overflow=(l=mn.get(c))!=null?l:"",mn.delete(c),n.value=!1)};return Qr(i),se({get(){return n.value},set(l){l?o():i()}})}function Nu(e={}){const{window:t=Ne,behavior:n="auto"}=e;if(!t)return{x:ie(0),y:ie(0)};const r=ie(t.scrollX),s=ie(t.scrollY),o=se({get(){return r.value},set(l){scrollTo({left:l,behavior:n})}}),i=se({get(){return s.value},set(l){scrollTo({top:l,behavior:n})}});return Ve(t,"scroll",()=>{r.value=t.scrollX,s.value=t.scrollY},{capture:!1,passive:!0}),{x:o,y:i}}function Fu(e={}){const{window:t=Ne,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=e,i=ie(n),l=ie(r),c=()=>{t&&(o?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),Zr(c),Ve("resize",c,{passive:!0}),s){const u=mi("(orientation: portrait)");je(u,()=>c())}return{width:i,height:l}}var hr={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},pr={};const vi=/^(?:[a-z]+:|\/\/)/i,Ma="vitepress-theme-appearance",Pa=/#.*$/,Na=/[?#].*$/,Fa=/(?:(^|\/)index)?\.(?:md|html)$/,Ce=typeof document<"u",wi={relativePath:"",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function $a(e,t,n=!1){if(t===void 0)return!1;if(e=Js(`/${e}`),n)return new RegExp(t).test(e);if(Js(t)!==e)return!1;const r=t.match(Pa);return r?(Ce?location.hash:"")===r[0]:!0}function Js(e){return decodeURI(e).replace(Na,"").replace(Fa,"$1")}function Ha(e){return vi.test(e)}function ja(e,t){var r,s,o,i,l,c,u;const n=Object.keys(e.locales).find(f=>f!=="root"&&!Ha(f)&&$a(t,`/${f}/`,!0))||"root";return Object.assign({},e,{localeIndex:n,lang:((r=e.locales[n])==null?void 0:r.lang)??e.lang,dir:((s=e.locales[n])==null?void 0:s.dir)??e.dir,title:((o=e.locales[n])==null?void 0:o.title)??e.title,titleTemplate:((i=e.locales[n])==null?void 0:i.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:Ci(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(u=e.locales[n])==null?void 0:u.themeConfig}})}function Ei(e,t){const n=t.title||e.title,r=t.titleTemplate??e.titleTemplate;if(typeof r=="string"&&r.includes(":title"))return r.replace(/:title/g,n);const s=Va(e.title,r);return n===s.slice(3)?n:`${n}${s}`}function Va(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function Da(e,t){const[n,r]=t;if(n!=="meta")return!1;const s=Object.entries(r)[0];return s==null?!1:e.some(([o,i])=>o===n&&i[s[0]]===s[1])}function Ci(e,t){return[...e.filter(n=>!Da(t,n)),...t]}const ka=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,Ua=/^[a-z]:/i;function Qs(e){const t=Ua.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(ka,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const gr=new Set;function Ba(e){if(gr.size===0){const n=typeof process=="object"&&(pr==null?void 0:pr.VITE_EXTRA_EXTENSIONS)||(hr==null?void 0:hr.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(r=>gr.add(r))}const t=e.split(".").pop();return t==null||!gr.has(t.toLowerCase())}const Ka=Symbol(),ft=xo(da);function $u(e){const t=se(()=>ja(ft.value,e.data.relativePath)),n=t.value.appearance,r=n==="force-dark"?ie(!0):n?Ia({storageKey:Ma,initialValue:()=>typeof n=="string"?n:"auto",...typeof n=="object"?n:{}}):ie(!1);return{site:t,theme:se(()=>t.value.themeConfig),page:se(()=>e.data),frontmatter:se(()=>e.data.frontmatter),params:se(()=>e.data.params),lang:se(()=>t.value.lang),dir:se(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:se(()=>t.value.localeIndex||"root"),title:se(()=>Ei(t.value,e.data)),description:se(()=>e.data.description||t.value.description),isDark:r}}function Wa(){const e=xt(Ka);if(!e)throw new Error("vitepress data not properly injected in app");return e}function qa(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function Zs(e){return vi.test(e)||!e.startsWith("/")?e:qa(ft.value.base,e)}function Ga(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),Ce){const n="/";t=Qs(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let r=__VP_HASH_MAP__[t.toLowerCase()];if(r||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",r=__VP_HASH_MAP__[t.toLowerCase()]),!r)return null;t=`${n}assets/${t}.${r}.js`}else t=`./${Qs(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let En=[];function Hu(e){En.push(e),Yn(()=>{En=En.filter(t=>t!==e)})}function za(){let e=ft.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=eo(e,n);else if(Array.isArray(e))for(const r of e){const s=eo(r,n);if(s){t=s;break}}return t}function eo(e,t){const n=document.querySelector(e);if(!n)return 0;const r=n.getBoundingClientRect().bottom;return r<0?0:r+t}const Xa=Symbol(),es="http://a.com",Ya=()=>({path:"/",component:null,data:wi});function ju(e,t){const n=Bn(Ya()),r={route:n,go:s};async function s(l=Ce?location.href:"/"){var c,u;l=Fn(l),await((c=r.onBeforeRouteChange)==null?void 0:c.call(r,l))!==!1&&(no(l),await i(l),await((u=r.onAfterRouteChanged)==null?void 0:u.call(r,l)))}let o=null;async function i(l,c=0,u=!1){var p;if(await((p=r.onBeforePageLoad)==null?void 0:p.call(r,l))===!1)return;const f=new URL(l,es),h=o=f.pathname;try{let y=await e(h);if(!y)throw new Error(`Page not found: ${h}`);if(o===h){o=null;const{default:w,__pageData:M}=y;if(!w)throw new Error(`Invalid route component: ${w}`);n.path=Ce?h:Zs(h),n.component=Pt(w),n.data=Pt(M),Ce&&Jt(()=>{let F=ft.value.base+M.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!ft.value.cleanUrls&&!F.endsWith("/")&&(F+=".html"),F!==f.pathname&&(f.pathname=F,l=F+f.search+f.hash,history.replaceState(null,"",l)),f.hash&&!c){let K=null;try{K=document.getElementById(decodeURIComponent(f.hash).slice(1))}catch(U){console.warn(U)}if(K){to(K,f.hash);return}}window.scrollTo(0,c)})}}catch(y){if(!/fetch|Page not found/.test(y.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(y),!u)try{const w=await fetch(ft.value.base+"hashmap.json");window.__VP_HASH_MAP__=await w.json(),await i(l,c,!0);return}catch{}o===h&&(o=null,n.path=Ce?h:Zs(h),n.component=t?Pt(t):null,n.data=wi)}}return Ce&&(window.addEventListener("click",l=>{if(l.target.closest("button"))return;const u=l.target.closest("a");if(u&&!u.closest(".vp-raw")&&(u instanceof SVGElement||!u.download)){const{target:f}=u,{href:h,origin:p,pathname:y,hash:w,search:M}=new URL(u.href instanceof SVGAnimatedString?u.href.animVal:u.href,u.baseURI),F=new URL(window.location.href);!l.ctrlKey&&!l.shiftKey&&!l.altKey&&!l.metaKey&&!f&&p===F.origin&&Ba(y)&&(l.preventDefault(),y===F.pathname&&M===F.search?(w!==F.hash&&(history.pushState(null,"",w),window.dispatchEvent(new Event("hashchange"))),w?to(u,w,u.classList.contains("header-anchor")):(no(h,!1),window.scrollTo(0,0))):s(h))}},{capture:!0}),window.addEventListener("popstate",async l=>{var c;await i(Fn(location.href),l.state&&l.state.scrollPosition||0),(c=r.onAfterRouteChanged)==null||c.call(r,location.href)}),window.addEventListener("hashchange",l=>{l.preventDefault()})),r}function Ja(){const e=xt(Xa);if(!e)throw new Error("useRouter() is called without provider.");return e}function xi(){return Ja().route}function to(e,t,n=!1){let r=null;try{r=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(s){console.warn(s)}if(r){let s=function(){!n||Math.abs(i-window.scrollY)>window.innerHeight?window.scrollTo(0,i):window.scrollTo({left:0,top:i,behavior:"smooth"})};const o=parseInt(window.getComputedStyle(r).paddingTop,10),i=window.scrollY+r.getBoundingClientRect().top-za()+o;requestAnimationFrame(s)}}function no(e,t=!0){if(Ce&&Fn(e)!==Fn(location.href)){const n=location.hash;history.replaceState({scrollPosition:window.scrollY},document.title),history.pushState(null,"",e),t&&new URL(e,es).hash!==n&&window.dispatchEvent(new Event("hashchange"))}}function Fn(e){const t=new URL(e,es);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),ft.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const mr=()=>En.forEach(e=>e()),Vu=Gr({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=xi(),{site:n}=Wa();return()=>Lr(e.as,n.value.contentProps??{style:{position:"relative"}},[t.component?Lr(t.component,{onVnodeMounted:mr,onVnodeUpdated:mr,onVnodeUnmounted:mr}):"404 Page Not Found"])}}),Du="/logo.png",ku=Gr({setup(e,{slots:t}){const n=ie(!1);return Rt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function Uu(){Ce&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const r=(n=t.parentElement)==null?void 0:n.parentElement;if(!r)return;const s=Array.from(r.querySelectorAll("input")).indexOf(t);if(s<0)return;const o=r.querySelector(".blocks");if(!o)return;const i=Array.from(o.children).find(u=>u.classList.contains("active"));if(!i)return;const l=o.children[s];if(!l||i===l)return;i.classList.remove("active"),l.classList.add("active");const c=r==null?void 0:r.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function Bu(){if(Ce){const e=new WeakMap;window.addEventListener("click",t=>{var r;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const s=n.parentElement,o=(r=n.nextElementSibling)==null?void 0:r.nextElementSibling;if(!s||!o)return;const i=/language-(shellscript|shell|bash|sh|zsh)/.test(s.className),l=[".vp-copy-ignore",".diff.remove"],c=o.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(f=>f.remove());let u=c.textContent||"";i&&(u=u.replace(/^ *(\$|>) /gm,"").trim()),Qa(u).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const f=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,f)})}})}}async function Qa(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const r=document.getSelection(),s=r?r.rangeCount>0&&r.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),s&&(r.removeAllRanges(),r.addRange(s)),n&&n.focus()}}function Ku(e,t){let n=!0,r=[];const s=o=>{if(n){n=!1,o.forEach(l=>{const c=yr(l);for(const u of document.head.children)if(u.isEqualNode(c)){r.push(u);return}});return}const i=o.map(yr);r.forEach((l,c)=>{const u=i.findIndex(f=>f==null?void 0:f.isEqualNode(l??null));u!==-1?delete i[u]:(l==null||l.remove(),delete r[c])}),i.forEach(l=>l&&document.head.appendChild(l)),r=[...r,...i].filter(Boolean)};Fo(()=>{const o=e.data,i=t.value,l=o&&o.description,c=o&&o.frontmatter.head||[],u=Ei(i,o);u!==document.title&&(document.title=u);const f=l||i.description;let h=document.querySelector("meta[name=description]");h?h.getAttribute("content")!==f&&h.setAttribute("content",f):yr(["meta",{name:"description",content:f}]),s(Ci(i.head,eu(c)))})}function yr([e,t,n]){const r=document.createElement(e);for(const s in t)r.setAttribute(s,t[s]);return n&&(r.innerHTML=n),e==="script"&&!t.async&&(r.async=!1),r}function Za(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function eu(e){return e.filter(t=>!Za(t))}const _r=new Set,Si=()=>document.createElement("link"),tu=e=>{const t=Si();t.rel="prefetch",t.href=e,document.head.appendChild(t)},nu=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let yn;const ru=Ce&&(yn=Si())&&yn.relList&&yn.relList.supports&&yn.relList.supports("prefetch")?tu:nu;function Wu(){if(!Ce||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const r=()=>{n&&n.disconnect(),n=new IntersectionObserver(o=>{o.forEach(i=>{if(i.isIntersecting){const l=i.target;n.unobserve(l);const{pathname:c}=l;if(!_r.has(c)){_r.add(c);const u=Ga(c);u&&ru(u)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(o=>{const{hostname:i,pathname:l}=new URL(o.href instanceof SVGAnimatedString?o.href.animVal:o.href,o.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||o.target!=="_blank"&&i===location.hostname&&(l!==location.pathname?n.observe(o):_r.add(l))})})};Rt(r);const s=xi();je(()=>s.path,r),Yn(()=>{n&&n.disconnect()})}export{sc as $,Yn as A,uu as B,Kl as C,za as D,cu as E,me as F,hu as G,xo as H,Hu as I,re as J,du as K,Iu as L,au as M,vi as N,xi as O,Ec as P,xt as Q,Fu as R,Vn as S,ai as T,Lu as U,Mu as V,Jt as W,Nu as X,Kn as Y,Pu as Z,Ou as _,oi as a,Tu as a0,mu as a1,Su as a2,yu as a3,Bn as a4,bl as a5,pu as a6,su as a7,wc as a8,he as a9,_u as aa,Lr as ab,Au as ac,Bl as ad,fu as ae,Eu as af,ao as ag,Ki as ah,Du as ai,xu as aj,Cu as ak,vu as al,Ku as am,Xa as an,$u as ao,Ka as ap,Vu as aq,ku as ar,ft as as,Ru as at,ju as au,Ga as av,Wu as aw,Bu as ax,Uu as ay,Ja as az,ni as b,bu as c,Gr as d,wu as e,Ba as f,Zs as g,ie as h,Ha as i,Ce as j,se as k,Rt as l,si as m,Dn as n,ei as o,To as p,iu as q,gu as r,lu as s,ou as t,Wa as u,$a as v,Al as w,mi as x,je as y,Fo as z}; diff --git a/docs/assets/chunks/theme.BboVNGUh.js b/docs/assets/chunks/theme.BboVNGUh.js new file mode 100644 index 000000000..f1f184a76 --- /dev/null +++ b/docs/assets/chunks/theme.BboVNGUh.js @@ -0,0 +1,7 @@ +var Vr=Object.defineProperty;var Or=(e,a,t)=>a in e?Vr(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var ce=(e,a,t)=>(Or(e,typeof a!="symbol"?a+"":a,t),t);import{d as j,o as u,c as v,r as $,n as ve,a as Oe,t as re,b as le,w as D,T as Et,e as S,_ as pe,u as Ce,i as Nr,f as Rr,g as Mn,h as C,j as ya,k as M,l as je,m as _,p as s,q as Ze,s as et,v as ra,x as yn,y as ut,z as Fa,A as Gt,B as Do,C as Ir,D as Lr,E as la,F as ue,G as _e,H as Po,I as Wa,J as U,K as Mo,L as To,M as Tt,N as So,O as za,P as Ne,Q as qa,R as Yr,S as dt,U as Er,V as Br,W as At,X as xo,Y as Hr,Z as Ao,$ as Co,a0 as De,a1 as Fr,a2 as Le,a3 as Ut,a4 as Ta,a5 as La,a6 as rt,a7 as Je,a8 as it,a9 as to,aa as Wr,ab as zr,ac as ao,ad as qr,ae as ca,af as Ra,ag as jr,ah as Qr,ai as Vt,aj as Gr,ak as Ur}from"./framework.DOHaQP0J.js";const Kr=j({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(a,t)=>(u(),v("span",{class:ve(["VPBadge",a.type])},[$(a.$slots,"default",{},()=>[Oe(re(a.text),1)])],2))}}),Xr={key:0,class:"VPBackdrop"},Jr=j({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(a,t)=>(u(),le(Et,{name:"fade"},{default:D(()=>[a.show?(u(),v("div",Xr)):S("",!0)]),_:1}))}}),Zr=pe(Jr,[["__scopeId","data-v-c79a1216"]]),Se=Ce;function el(e,a){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(e,a):(e(),(n=!0)&&setTimeout(()=>n=!1,a))}}function gn(e){return/^\//.test(e)?e:`/${e}`}function Tn(e){const{pathname:a,search:t,hash:n,protocol:o}=new URL(e,"http://a.com");if(Nr(e)||e.startsWith("#")||!o.startsWith("http")||!Rr(a))return e;const{site:r}=Se(),l=a.endsWith("/")||a.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${a.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return Mn(l)}const Sn=C(ya?location.hash:"");ya&&window.addEventListener("hashchange",()=>{Sn.value=location.hash});function Sa({removeCurrent:e=!0,correspondingLink:a=!1}={}){const{site:t,localeIndex:n,page:o,theme:r}=Se(),l=M(()=>{var c,g;return{label:(c=t.value.locales[n.value])==null?void 0:c.label,link:((g=t.value.locales[n.value])==null?void 0:g.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:M(()=>Object.entries(t.value.locales).flatMap(([c,g])=>e&&l.value.label===g.label?[]:{text:g.label,link:tl(g.link||(c==="root"?"/":`/${c}/`),r.value.i18nRouting!==!1&&a,o.value.relativePath.slice(l.value.link.length-1),!t.value.cleanUrls)+Sn.value})),currentLang:l}}function tl(e,a,t,n){return a?e.replace(/\/$/,"")+gn(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):e}const al=e=>(Ze("data-v-f87ff6e4"),e=e(),et(),e),nl={class:"NotFound"},ol={class:"code"},rl={class:"title"},ll=al(()=>_("div",{class:"divider"},null,-1)),sl={class:"quote"},il={class:"action"},ul=["href","aria-label"],dl=j({__name:"NotFound",setup(e){const{site:a,theme:t}=Se(),{localeLinks:n}=Sa({removeCurrent:!1}),o=C("/");return je(()=>{var l;const r=window.location.pathname.replace(a.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(o.value=((l=n.value.find(({link:i})=>i.startsWith(r)))==null?void 0:l.link)||n.value[0].link)}),(r,l)=>{var i,c,g,y,p;return u(),v("div",nl,[_("p",ol,re(((i=s(t).notFound)==null?void 0:i.code)??"404"),1),_("h1",rl,re(((c=s(t).notFound)==null?void 0:c.title)??"PAGE NOT FOUND"),1),ll,_("blockquote",sl,re(((g=s(t).notFound)==null?void 0:g.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),_("div",il,[_("a",{class:"link",href:s(Mn)(o.value),"aria-label":((y=s(t).notFound)==null?void 0:y.linkLabel)??"go to home"},re(((p=s(t).notFound)==null?void 0:p.linkText)??"Take me home"),9,ul)])])}}}),cl=pe(dl,[["__scopeId","data-v-f87ff6e4"]]);function Vo(e,a){if(Array.isArray(e))return Ia(e);if(e==null)return[];a=gn(a);const t=Object.keys(e).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>a.startsWith(gn(o))),n=t?e[t]:[];return Array.isArray(n)?Ia(n):Ia(n.items,n.base)}function ml(e){const a=[];let t=0;for(const n in e){const o=e[n];if(o.items){t=a.push(o);continue}a[t]||a.push({items:[]}),a[t].items.push(o)}return a}function vl(e){const a=[];function t(n){for(const o of n)o.text&&o.link&&a.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(e),a}function _n(e,a){return Array.isArray(a)?a.some(t=>_n(e,t)):ra(e,a.link)?!0:a.items?_n(e,a.items):!1}function Ia(e,a){return[...e].map(t=>{const n={...t},o=n.base||a;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=Ia(n.items,o)),n})}function Bt(){const{frontmatter:e,page:a,theme:t}=Se(),n=yn("(min-width: 960px)"),o=C(!1),r=M(()=>{const T=t.value.sidebar,R=a.value.relativePath;return T?Vo(T,R):[]}),l=C(r.value);ut(r,(T,R)=>{JSON.stringify(T)!==JSON.stringify(R)&&(l.value=r.value)});const i=M(()=>e.value.sidebar!==!1&&l.value.length>0&&e.value.layout!=="home"),c=M(()=>g?e.value.aside==null?t.value.aside==="left":e.value.aside==="left":!1),g=M(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:t.value.aside!==!1),y=M(()=>i.value&&n.value),p=M(()=>i.value?ml(l.value):[]);function f(){o.value=!0}function b(){o.value=!1}function k(){o.value?b():f()}return{isOpen:o,sidebar:l,sidebarGroups:p,hasSidebar:i,hasAside:g,leftAside:c,isSidebarEnabled:y,open:f,close:b,toggle:k}}function pl(e,a){let t;Fa(()=>{t=e.value?document.activeElement:void 0}),je(()=>{window.addEventListener("keyup",n)}),Gt(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&e.value&&(a(),t==null||t.focus())}}function fl(e){const{page:a}=Se(),t=C(!1),n=M(()=>e.value.collapsed!=null),o=M(()=>!!e.value.link),r=C(!1),l=()=>{r.value=ra(a.value.relativePath,e.value.link)};ut([a,e,Sn],l),je(l);const i=M(()=>r.value?!0:e.value.items?_n(a.value.relativePath,e.value.items):!1),c=M(()=>!!(e.value.items&&e.value.items.length));Fa(()=>{t.value=!!(n.value&&e.value.collapsed)}),Do(()=>{(r.value||i.value)&&(t.value=!1)});function g(){n.value&&(t.value=!t.value)}return{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:i,hasChildren:c,toggle:g}}function hl(){const{hasSidebar:e}=Bt(),a=yn("(min-width: 960px)"),t=yn("(min-width: 1280px)");return{isAsideEnabled:M(()=>!t.value&&!a.value?!1:e.value?t.value:a.value)}}const bn=[];function Oo(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function xn(e){const a=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:yl(t),link:"#"+t.id,level:n}});return gl(a,e)}function yl(e){let a="";for(const t of e.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;a+=t.textContent}else t.nodeType===3&&(a+=t.textContent);return a.trim()}function gl(e,a){if(a===!1)return[];const t=(typeof a=="object"&&!Array.isArray(a)?a.level:a)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;e=e.filter(l=>l.level>=n&&l.level<=o),bn.length=0;for(const{element:l,link:i}of e)bn.push({element:l,link:i});const r=[];e:for(let l=0;l=0;c--){const g=e[c];if(g.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Ir(()=>{l(location.hash)}),Gt(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const i=window.scrollY,c=window.innerHeight,g=document.body.offsetHeight,y=Math.abs(i+c-g)<1,p=bn.map(({element:b,link:k})=>({link:k,top:bl(b)})).filter(({top:b})=>!Number.isNaN(b)).sort((b,k)=>b.top-k.top);if(!p.length){l(null);return}if(i<1){l(null);return}if(y){l(p[p.length-1].link);return}let f=null;for(const{link:b,top:k}of p){if(k>i+Lr()+4)break;f=b}l(f)}function l(i){o&&o.classList.remove("active"),i==null?o=null:o=e.value.querySelector(`a[href="${decodeURIComponent(i)}"]`);const c=o;c?(c.classList.add("active"),a.value.style.top=c.offsetTop+39+"px",a.value.style.opacity="1"):(a.value.style.top="33px",a.value.style.opacity="0")}}function bl(e){let a=0;for(;e!==document.body;){if(e===null)return NaN;a+=e.offsetTop,e=e.offsetParent}return a}const wl=["href","title"],kl=j({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(e){function a({target:t}){const n=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(n));o==null||o.focus({preventScroll:!0})}return(t,n)=>{const o=la("VPDocOutlineItem",!0);return u(),v("ul",{class:ve(["VPDocOutlineItem",t.root?"root":"nested"])},[(u(!0),v(ue,null,_e(t.headers,({children:r,link:l,title:i})=>(u(),v("li",null,[_("a",{class:"outline-link",href:l,onClick:a,title:i},re(i),9,wl),r!=null&&r.length?(u(),le(o,{key:0,headers:r},null,8,["headers"])):S("",!0)]))),256))],2)}}}),No=pe(kl,[["__scopeId","data-v-b933a997"]]),$l=e=>(Ze("data-v-935f8a84"),e=e(),et(),e),Dl={class:"content"},Pl={class:"outline-title",role:"heading","aria-level":"2"},Ml={"aria-labelledby":"doc-outline-aria-label"},Tl=$l(()=>_("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Sl=j({__name:"VPDocAsideOutline",setup(e){const{frontmatter:a,theme:t}=Se(),n=Po([]);Wa(()=>{n.value=xn(a.value.outline??t.value.outline)});const o=C(),r=C();return _l(o,r),(l,i)=>(u(),v("div",{class:ve(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o,role:"navigation"},[_("div",Dl,[_("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),_("div",Pl,re(s(Oo)(s(t))),1),_("nav",Ml,[Tl,U(No,{headers:n.value,root:!0},null,8,["headers"])])])],2))}}),xl=pe(Sl,[["__scopeId","data-v-935f8a84"]]),Al={class:"VPDocAsideCarbonAds"},Cl=j({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(e){const a=Mo(()=>To(()=>import("./ui-custom.DI_I2doF.js"),__vite__mapDeps([0,1])));return(t,n)=>(u(),v("div",Al,[U(s(a),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Vl=e=>(Ze("data-v-3f215769"),e=e(),et(),e),Ol={class:"VPDocAside"},Nl=Vl(()=>_("div",{class:"spacer"},null,-1)),Rl=j({__name:"VPDocAside",setup(e){const{theme:a}=Se();return(t,n)=>(u(),v("div",Ol,[$(t.$slots,"aside-top",{},void 0,!0),$(t.$slots,"aside-outline-before",{},void 0,!0),U(xl),$(t.$slots,"aside-outline-after",{},void 0,!0),Nl,$(t.$slots,"aside-ads-before",{},void 0,!0),s(a).carbonAds?(u(),le(Cl,{key:0,"carbon-ads":s(a).carbonAds},null,8,["carbon-ads"])):S("",!0),$(t.$slots,"aside-ads-after",{},void 0,!0),$(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Il=pe(Rl,[["__scopeId","data-v-3f215769"]]);function Ll(){const{theme:e,page:a}=Se();return M(()=>{const{text:t="Edit this page",pattern:n=""}=e.value.editLink||{};let o;return typeof n=="function"?o=n(a.value):o=n.replace(/:path/g,a.value.filePath),{url:o,text:t}})}function Yl(){const{page:e,theme:a,frontmatter:t}=Se();return M(()=>{var c,g,y,p,f,b,k,T;const n=Vo(a.value.sidebar,e.value.relativePath),o=vl(n),r=o.findIndex(R=>ra(e.value.relativePath,R.link)),l=((c=a.value.docFooter)==null?void 0:c.prev)===!1&&!t.value.prev||t.value.prev===!1,i=((g=a.value.docFooter)==null?void 0:g.next)===!1&&!t.value.next||t.value.next===!1;return{prev:l?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((y=o[r-1])==null?void 0:y.docFooterText)??((p=o[r-1])==null?void 0:p.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((f=o[r-1])==null?void 0:f.link)},next:i?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((b=o[r+1])==null?void 0:b.docFooterText)??((k=o[r+1])==null?void 0:k.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((T=o[r+1])==null?void 0:T.link)}}})}const St=j({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(e){const a=e,t=M(()=>a.tag??(a.href?"a":"span")),n=M(()=>a.href&&So.test(a.href));return(o,r)=>(u(),le(Tt(t.value),{class:ve(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?s(Tn)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:D(()=>[$(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),El={class:"VPLastUpdated"},Bl=["datetime"],Hl=j({__name:"VPDocFooterLastUpdated",setup(e){const{theme:a,page:t,frontmatter:n,lang:o}=Se(),r=M(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),l=M(()=>r.value.toISOString()),i=C("");return je(()=>{Fa(()=>{var c,g,y;i.value=new Intl.DateTimeFormat((g=(c=a.value.lastUpdated)==null?void 0:c.formatOptions)!=null&&g.forceLocale?o.value:void 0,((y=a.value.lastUpdated)==null?void 0:y.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(c,g)=>{var y;return u(),v("p",El,[Oe(re(((y=s(a).lastUpdated)==null?void 0:y.text)||s(a).lastUpdatedText||"Last updated")+": ",1),_("time",{datetime:l.value},re(i.value),9,Bl)])}}}),Fl=pe(Hl,[["__scopeId","data-v-7e05ebdb"]]),Wl=e=>(Ze("data-v-09de1c0f"),e=e(),et(),e),zl={key:0,class:"VPDocFooter"},ql={key:0,class:"edit-info"},jl={key:0,class:"edit-link"},Ql=Wl(()=>_("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),Gl={key:1,class:"last-updated"},Ul={key:1,class:"prev-next"},Kl={class:"pager"},Xl=["innerHTML"],Jl=["innerHTML"],Zl={class:"pager"},es=["innerHTML"],ts=["innerHTML"],as=j({__name:"VPDocFooter",setup(e){const{theme:a,page:t,frontmatter:n}=Se(),o=Ll(),r=Yl(),l=M(()=>a.value.editLink&&n.value.editLink!==!1),i=M(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),c=M(()=>l.value||i.value||r.value.prev||r.value.next);return(g,y)=>{var p,f,b,k;return c.value?(u(),v("footer",zl,[$(g.$slots,"doc-footer-before",{},void 0,!0),l.value||i.value?(u(),v("div",ql,[l.value?(u(),v("div",jl,[U(St,{class:"edit-link-button",href:s(o).url,"no-icon":!0},{default:D(()=>[Ql,Oe(" "+re(s(o).text),1)]),_:1},8,["href"])])):S("",!0),i.value?(u(),v("div",Gl,[U(Fl)])):S("",!0)])):S("",!0),(p=s(r).prev)!=null&&p.link||(f=s(r).next)!=null&&f.link?(u(),v("nav",Ul,[_("div",Kl,[(b=s(r).prev)!=null&&b.link?(u(),le(St,{key:0,class:"pager-link prev",href:s(r).prev.link},{default:D(()=>{var T;return[_("span",{class:"desc",innerHTML:((T=s(a).docFooter)==null?void 0:T.prev)||"Previous page"},null,8,Xl),_("span",{class:"title",innerHTML:s(r).prev.text},null,8,Jl)]}),_:1},8,["href"])):S("",!0)]),_("div",Zl,[(k=s(r).next)!=null&&k.link?(u(),le(St,{key:0,class:"pager-link next",href:s(r).next.link},{default:D(()=>{var T;return[_("span",{class:"desc",innerHTML:((T=s(a).docFooter)==null?void 0:T.next)||"Next page"},null,8,es),_("span",{class:"title",innerHTML:s(r).next.text},null,8,ts)]}),_:1},8,["href"])):S("",!0)])])):S("",!0)])):S("",!0)}}}),ns=pe(as,[["__scopeId","data-v-09de1c0f"]]),os=e=>(Ze("data-v-39a288b8"),e=e(),et(),e),rs={class:"container"},ls=os(()=>_("div",{class:"aside-curtain"},null,-1)),ss={class:"aside-container"},is={class:"aside-content"},us={class:"content"},ds={class:"content-container"},cs={class:"main"},ms=j({__name:"VPDoc",setup(e){const{theme:a}=Se(),t=za(),{hasSidebar:n,hasAside:o,leftAside:r}=Bt(),l=M(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(i,c)=>{const g=la("Content");return u(),v("div",{class:ve(["VPDoc",{"has-sidebar":s(n),"has-aside":s(o)}])},[$(i.$slots,"doc-top",{},void 0,!0),_("div",rs,[s(o)?(u(),v("div",{key:0,class:ve(["aside",{"left-aside":s(r)}])},[ls,_("div",ss,[_("div",is,[U(Il,null,{"aside-top":D(()=>[$(i.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":D(()=>[$(i.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":D(()=>[$(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":D(()=>[$(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":D(()=>[$(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":D(()=>[$(i.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):S("",!0),_("div",us,[_("div",ds,[$(i.$slots,"doc-before",{},void 0,!0),_("main",cs,[U(g,{class:ve(["vp-doc",[l.value,s(a).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),U(ns,null,{"doc-footer-before":D(()=>[$(i.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),$(i.$slots,"doc-after",{},void 0,!0)])])]),$(i.$slots,"doc-bottom",{},void 0,!0)],2)}}}),vs=pe(ms,[["__scopeId","data-v-39a288b8"]]),ps=j({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(e){const a=e,t=M(()=>a.href&&So.test(a.href)),n=M(()=>a.tag||a.href?"a":"button");return(o,r)=>(u(),le(Tt(n.value),{class:ve(["VPButton",[o.size,o.theme]]),href:o.href?s(Tn)(o.href):void 0,target:a.target??(t.value?"_blank":void 0),rel:a.rel??(t.value?"noreferrer":void 0)},{default:D(()=>[Oe(re(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),fs=pe(ps,[["__scopeId","data-v-cad61b99"]]),hs=["src","alt"],ys=j({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(e){return(a,t)=>{const n=la("VPImage",!0);return a.image?(u(),v(ue,{key:0},[typeof a.image=="string"||"src"in a.image?(u(),v("img",Ne({key:0,class:"VPImage"},typeof a.image=="string"?a.$attrs:{...a.image,...a.$attrs},{src:s(Mn)(typeof a.image=="string"?a.image:a.image.src),alt:a.alt??(typeof a.image=="string"?"":a.image.alt||"")}),null,16,hs)):(u(),v(ue,{key:1},[U(n,Ne({class:"dark",image:a.image.dark,alt:a.image.alt},a.$attrs),null,16,["image","alt"]),U(n,Ne({class:"light",image:a.image.light,alt:a.image.alt},a.$attrs),null,16,["image","alt"])],64))],64)):S("",!0)}}}),Ya=pe(ys,[["__scopeId","data-v-8426fc1a"]]),gs=e=>(Ze("data-v-303bb580"),e=e(),et(),e),_s={class:"container"},bs={class:"main"},ws={key:0,class:"name"},ks=["innerHTML"],$s=["innerHTML"],Ds=["innerHTML"],Ps={key:0,class:"actions"},Ms={key:0,class:"image"},Ts={class:"image-container"},Ss=gs(()=>_("div",{class:"image-bg"},null,-1)),xs=j({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(e){const a=qa("hero-image-slot-exists");return(t,n)=>(u(),v("div",{class:ve(["VPHero",{"has-image":t.image||s(a)}])},[_("div",_s,[_("div",bs,[$(t.$slots,"home-hero-info-before",{},void 0,!0),$(t.$slots,"home-hero-info",{},()=>[t.name?(u(),v("h1",ws,[_("span",{innerHTML:t.name,class:"clip"},null,8,ks)])):S("",!0),t.text?(u(),v("p",{key:1,innerHTML:t.text,class:"text"},null,8,$s)):S("",!0),t.tagline?(u(),v("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,Ds)):S("",!0)],!0),$(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(u(),v("div",Ps,[(u(!0),v(ue,null,_e(t.actions,o=>(u(),v("div",{key:o.link,class:"action"},[U(fs,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):S("",!0),$(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||s(a)?(u(),v("div",Ms,[_("div",Ts,[Ss,$(t.$slots,"home-hero-image",{},()=>[t.image?(u(),le(Ya,{key:0,class:"image-src",image:t.image},null,8,["image"])):S("",!0)],!0)])])):S("",!0)])],2))}}),As=pe(xs,[["__scopeId","data-v-303bb580"]]),Cs=j({__name:"VPHomeHero",setup(e){const{frontmatter:a}=Se();return(t,n)=>s(a).hero?(u(),le(As,{key:0,class:"VPHomeHero",name:s(a).hero.name,text:s(a).hero.text,tagline:s(a).hero.tagline,image:s(a).hero.image,actions:s(a).hero.actions},{"home-hero-info-before":D(()=>[$(t.$slots,"home-hero-info-before")]),"home-hero-info":D(()=>[$(t.$slots,"home-hero-info")]),"home-hero-info-after":D(()=>[$(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":D(()=>[$(t.$slots,"home-hero-actions-after")]),"home-hero-image":D(()=>[$(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):S("",!0)}}),Vs=e=>(Ze("data-v-a3976bdc"),e=e(),et(),e),Os={class:"box"},Ns={key:0,class:"icon"},Rs=["innerHTML"],Is=["innerHTML"],Ls=["innerHTML"],Ys={key:4,class:"link-text"},Es={class:"link-text-value"},Bs=Vs(()=>_("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Hs=j({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(e){return(a,t)=>(u(),le(St,{class:"VPFeature",href:a.link,rel:a.rel,target:a.target,"no-icon":!0,tag:a.link?"a":"div"},{default:D(()=>[_("article",Os,[typeof a.icon=="object"&&a.icon.wrap?(u(),v("div",Ns,[U(Ya,{image:a.icon,alt:a.icon.alt,height:a.icon.height||48,width:a.icon.width||48},null,8,["image","alt","height","width"])])):typeof a.icon=="object"?(u(),le(Ya,{key:1,image:a.icon,alt:a.icon.alt,height:a.icon.height||48,width:a.icon.width||48},null,8,["image","alt","height","width"])):a.icon?(u(),v("div",{key:2,class:"icon",innerHTML:a.icon},null,8,Rs)):S("",!0),_("h2",{class:"title",innerHTML:a.title},null,8,Is),a.details?(u(),v("p",{key:3,class:"details",innerHTML:a.details},null,8,Ls)):S("",!0),a.linkText?(u(),v("div",Ys,[_("p",Es,[Oe(re(a.linkText)+" ",1),Bs])])):S("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Fs=pe(Hs,[["__scopeId","data-v-a3976bdc"]]),Ws={key:0,class:"VPFeatures"},zs={class:"container"},qs={class:"items"},js=j({__name:"VPFeatures",props:{features:{}},setup(e){const a=e,t=M(()=>{const n=a.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(u(),v("div",Ws,[_("div",zs,[_("div",qs,[(u(!0),v(ue,null,_e(n.features,r=>(u(),v("div",{key:r.title,class:ve(["item",[t.value]])},[U(Fs,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):S("",!0)}}),Qs=pe(js,[["__scopeId","data-v-a6181336"]]),Gs=j({__name:"VPHomeFeatures",setup(e){const{frontmatter:a}=Se();return(t,n)=>s(a).features?(u(),le(Qs,{key:0,class:"VPHomeFeatures",features:s(a).features},null,8,["features"])):S("",!0)}}),Us=j({__name:"VPHomeContent",setup(e){const{width:a}=Yr({includeScrollbar:!1});return(t,n)=>(u(),v("div",{class:"vp-doc container",style:dt(s(a)?{"--vp-offset":`calc(50% - ${s(a)/2}px)`}:{})},[$(t.$slots,"default",{},void 0,!0)],4))}}),Ks=pe(Us,[["__scopeId","data-v-82d4af08"]]),Xs={class:"VPHome"},Js=j({__name:"VPHome",setup(e){const{frontmatter:a}=Se();return(t,n)=>{const o=la("Content");return u(),v("div",Xs,[$(t.$slots,"home-hero-before",{},void 0,!0),U(Cs,null,{"home-hero-info-before":D(()=>[$(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":D(()=>[$(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":D(()=>[$(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":D(()=>[$(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":D(()=>[$(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),$(t.$slots,"home-hero-after",{},void 0,!0),$(t.$slots,"home-features-before",{},void 0,!0),U(Gs),$(t.$slots,"home-features-after",{},void 0,!0),s(a).markdownStyles!==!1?(u(),le(Ks,{key:0},{default:D(()=>[U(o)]),_:1})):(u(),le(o,{key:1}))])}}}),Zs=pe(Js,[["__scopeId","data-v-686f80a6"]]),ei={},ti={class:"VPPage"};function ai(e,a){const t=la("Content");return u(),v("div",ti,[$(e.$slots,"page-top"),U(t),$(e.$slots,"page-bottom")])}const ni=pe(ei,[["render",ai]]),oi=j({__name:"VPContent",setup(e){const{page:a,frontmatter:t}=Se(),{hasSidebar:n}=Bt();return(o,r)=>(u(),v("div",{class:ve(["VPContent",{"has-sidebar":s(n),"is-home":s(t).layout==="home"}]),id:"VPContent"},[s(a).isNotFound?$(o.$slots,"not-found",{key:0},()=>[U(cl)],!0):s(t).layout==="page"?(u(),le(ni,{key:1},{"page-top":D(()=>[$(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":D(()=>[$(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):s(t).layout==="home"?(u(),le(Zs,{key:2},{"home-hero-before":D(()=>[$(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":D(()=>[$(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":D(()=>[$(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":D(()=>[$(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":D(()=>[$(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":D(()=>[$(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":D(()=>[$(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":D(()=>[$(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":D(()=>[$(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):s(t).layout&&s(t).layout!=="doc"?(u(),le(Tt(s(t).layout),{key:3})):(u(),le(vs,{key:4},{"doc-top":D(()=>[$(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":D(()=>[$(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":D(()=>[$(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":D(()=>[$(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":D(()=>[$(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":D(()=>[$(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":D(()=>[$(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":D(()=>[$(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":D(()=>[$(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":D(()=>[$(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":D(()=>[$(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ri=pe(oi,[["__scopeId","data-v-1428d186"]]),li={class:"container"},si=["innerHTML"],ii=["innerHTML"],ui=j({__name:"VPFooter",setup(e){const{theme:a,frontmatter:t}=Se(),{hasSidebar:n}=Bt();return(o,r)=>s(a).footer&&s(t).footer!==!1?(u(),v("footer",{key:0,class:ve(["VPFooter",{"has-sidebar":s(n)}])},[_("div",li,[s(a).footer.message?(u(),v("p",{key:0,class:"message",innerHTML:s(a).footer.message},null,8,si)):S("",!0),s(a).footer.copyright?(u(),v("p",{key:1,class:"copyright",innerHTML:s(a).footer.copyright},null,8,ii)):S("",!0)])],2)):S("",!0)}}),di=pe(ui,[["__scopeId","data-v-e315a0ad"]]);function Ro(){const{theme:e,frontmatter:a}=Se(),t=Po([]),n=M(()=>t.value.length>0);return Wa(()=>{t.value=xn(a.value.outline??e.value.outline)}),{headers:t,hasLocalNav:n}}const ci=e=>(Ze("data-v-d2ecc192"),e=e(),et(),e),mi=ci(()=>_("span",{class:"vpi-chevron-right icon"},null,-1)),vi={class:"header"},pi={class:"outline"},fi=j({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(e){const a=e,{theme:t}=Se(),n=C(!1),o=C(0),r=C(),l=C();Er(r,()=>{n.value=!1}),Br("Escape",()=>{n.value=!1}),Wa(()=>{n.value=!1});function i(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-a.navHeight,0)}function c(y){y.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),At(()=>{n.value=!1}))}function g(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(y,p)=>(u(),v("div",{class:"VPLocalNavOutlineDropdown",style:dt({"--vp-vh":o.value+"px"}),ref_key:"main",ref:r},[y.headers.length>0?(u(),v("button",{key:0,onClick:i,class:ve({open:n.value})},[Oe(re(s(Oo)(s(t)))+" ",1),mi],2)):(u(),v("button",{key:1,onClick:g},re(s(t).returnToTopLabel||"Return to top"),1)),U(Et,{name:"flyout"},{default:D(()=>[n.value?(u(),v("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:c},[_("div",vi,[_("a",{class:"top-link",href:"#",onClick:g},re(s(t).returnToTopLabel||"Return to top"),1)]),_("div",pi,[U(No,{headers:y.headers},null,8,["headers"])])],512)):S("",!0)]),_:1})],4))}}),hi=pe(fi,[["__scopeId","data-v-d2ecc192"]]),yi=e=>(Ze("data-v-a6f0e41e"),e=e(),et(),e),gi={class:"container"},_i=["aria-expanded"],bi=yi(()=>_("span",{class:"vpi-align-left menu-icon"},null,-1)),wi={class:"menu-text"},ki=j({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:a,frontmatter:t}=Se(),{hasSidebar:n}=Bt(),{headers:o}=Ro(),{y:r}=xo(),l=C(0);je(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),Wa(()=>{o.value=xn(t.value.outline??a.value.outline)});const i=M(()=>o.value.length===0),c=M(()=>i.value&&!n.value),g=M(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:i.value,fixed:c.value}));return(y,p)=>s(t).layout!=="home"&&(!c.value||s(r)>=l.value)?(u(),v("div",{key:0,class:ve(g.value)},[_("div",gi,[s(n)?(u(),v("button",{key:0,class:"menu","aria-expanded":y.open,"aria-controls":"VPSidebarNav",onClick:p[0]||(p[0]=f=>y.$emit("open-menu"))},[bi,_("span",wi,re(s(a).sidebarMenuLabel||"Menu"),1)],8,_i)):S("",!0),U(hi,{headers:s(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):S("",!0)}}),$i=pe(ki,[["__scopeId","data-v-a6f0e41e"]]);function Di(){const e=C(!1);function a(){e.value=!0,window.addEventListener("resize",o)}function t(){e.value=!1,window.removeEventListener("resize",o)}function n(){e.value?t():a()}function o(){window.outerWidth>=768&&t()}const r=za();return ut(()=>r.path,t),{isScreenOpen:e,openScreen:a,closeScreen:t,toggleScreen:n}}const Pi={},Mi={class:"VPSwitch",type:"button",role:"switch"},Ti={class:"check"},Si={key:0,class:"icon"};function xi(e,a){return u(),v("button",Mi,[_("span",Ti,[e.$slots.default?(u(),v("span",Si,[$(e.$slots,"default",{},void 0,!0)])):S("",!0)])])}const Ai=pe(Pi,[["render",xi],["__scopeId","data-v-1d5665e3"]]),Io=e=>(Ze("data-v-d1f28634"),e=e(),et(),e),Ci=Io(()=>_("span",{class:"vpi-sun sun"},null,-1)),Vi=Io(()=>_("span",{class:"vpi-moon moon"},null,-1)),Oi=j({__name:"VPSwitchAppearance",setup(e){const{isDark:a,theme:t}=Se(),n=qa("toggle-appearance",()=>{a.value=!a.value}),o=M(()=>a.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(r,l)=>(u(),le(Ai,{title:o.value,class:"VPSwitchAppearance","aria-checked":s(a),onClick:s(n)},{default:D(()=>[Ci,Vi]),_:1},8,["title","aria-checked","onClick"]))}}),An=pe(Oi,[["__scopeId","data-v-d1f28634"]]),Ni={key:0,class:"VPNavBarAppearance"},Ri=j({__name:"VPNavBarAppearance",setup(e){const{site:a}=Se();return(t,n)=>s(a).appearance&&s(a).appearance!=="force-dark"?(u(),v("div",Ni,[U(An)])):S("",!0)}}),Ii=pe(Ri,[["__scopeId","data-v-e6aabb21"]]),Cn=C();let Lo=!1,on=0;function Li(e){const a=C(!1);if(ya){!Lo&&Yi(),on++;const t=ut(Cn,n=>{var o,r,l;n===e.el.value||(o=e.el.value)!=null&&o.contains(n)?(a.value=!0,(r=e.onFocus)==null||r.call(e)):(a.value=!1,(l=e.onBlur)==null||l.call(e))});Gt(()=>{t(),on--,on||Ei()})}return Hr(a)}function Yi(){document.addEventListener("focusin",Yo),Lo=!0,Cn.value=document.activeElement}function Ei(){document.removeEventListener("focusin",Yo)}function Yo(){Cn.value=document.activeElement}const Bi={class:"VPMenuLink"},Hi=j({__name:"VPMenuLink",props:{item:{}},setup(e){const{page:a}=Se();return(t,n)=>(u(),v("div",Bi,[U(St,{class:ve({active:s(ra)(s(a).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:D(()=>[Oe(re(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),ja=pe(Hi,[["__scopeId","data-v-43f1e123"]]),Fi={class:"VPMenuGroup"},Wi={key:0,class:"title"},zi=j({__name:"VPMenuGroup",props:{text:{},items:{}},setup(e){return(a,t)=>(u(),v("div",Fi,[a.text?(u(),v("p",Wi,re(a.text),1)):S("",!0),(u(!0),v(ue,null,_e(a.items,n=>(u(),v(ue,null,["link"in n?(u(),le(ja,{key:0,item:n},null,8,["item"])):S("",!0)],64))),256))]))}}),qi=pe(zi,[["__scopeId","data-v-69e747b5"]]),ji={class:"VPMenu"},Qi={key:0,class:"items"},Gi=j({__name:"VPMenu",props:{items:{}},setup(e){return(a,t)=>(u(),v("div",ji,[a.items?(u(),v("div",Qi,[(u(!0),v(ue,null,_e(a.items,n=>(u(),v(ue,{key:n.text},["link"in n?(u(),le(ja,{key:0,item:n},null,8,["item"])):(u(),le(qi,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):S("",!0),$(a.$slots,"default",{},void 0,!0)]))}}),Ui=pe(Gi,[["__scopeId","data-v-e7ea1737"]]),Ki=e=>(Ze("data-v-b6c34ac9"),e=e(),et(),e),Xi=["aria-expanded","aria-label"],Ji={key:0,class:"text"},Zi=["innerHTML"],eu=Ki(()=>_("span",{class:"vpi-chevron-down text-icon"},null,-1)),tu={key:1,class:"vpi-more-horizontal icon"},au={class:"menu"},nu=j({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(e){const a=C(!1),t=C();Li({el:t,onBlur:n});function n(){a.value=!1}return(o,r)=>(u(),v("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=l=>a.value=!0),onMouseleave:r[2]||(r[2]=l=>a.value=!1)},[_("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":a.value,"aria-label":o.label,onClick:r[0]||(r[0]=l=>a.value=!a.value)},[o.button||o.icon?(u(),v("span",Ji,[o.icon?(u(),v("span",{key:0,class:ve([o.icon,"option-icon"])},null,2)):S("",!0),o.button?(u(),v("span",{key:1,innerHTML:o.button},null,8,Zi)):S("",!0),eu])):(u(),v("span",tu))],8,Xi),_("div",au,[U(Ui,{items:o.items},{default:D(()=>[$(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Vn=pe(nu,[["__scopeId","data-v-b6c34ac9"]]),ou=["href","aria-label","innerHTML"],ru=j({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(e){const a=e,t=M(()=>typeof a.icon=="object"?a.icon.svg:``);return(n,o)=>(u(),v("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,ou))}}),lu=pe(ru,[["__scopeId","data-v-eee4e7cb"]]),su={class:"VPSocialLinks"},iu=j({__name:"VPSocialLinks",props:{links:{}},setup(e){return(a,t)=>(u(),v("div",su,[(u(!0),v(ue,null,_e(a.links,({link:n,icon:o,ariaLabel:r})=>(u(),le(lu,{key:n,icon:o,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),On=pe(iu,[["__scopeId","data-v-7bc22406"]]),uu={key:0,class:"group translations"},du={class:"trans-title"},cu={key:1,class:"group"},mu={class:"item appearance"},vu={class:"label"},pu={class:"appearance-action"},fu={key:2,class:"group"},hu={class:"item social-links"},yu=j({__name:"VPNavBarExtra",setup(e){const{site:a,theme:t}=Se(),{localeLinks:n,currentLang:o}=Sa({correspondingLink:!0}),r=M(()=>n.value.length&&o.value.label||a.value.appearance||t.value.socialLinks);return(l,i)=>r.value?(u(),le(Vn,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:D(()=>[s(n).length&&s(o).label?(u(),v("div",uu,[_("p",du,re(s(o).label),1),(u(!0),v(ue,null,_e(s(n),c=>(u(),le(ja,{key:c.link,item:c},null,8,["item"]))),128))])):S("",!0),s(a).appearance&&s(a).appearance!=="force-dark"?(u(),v("div",cu,[_("div",mu,[_("p",vu,re(s(t).darkModeSwitchLabel||"Appearance"),1),_("div",pu,[U(An)])])])):S("",!0),s(t).socialLinks?(u(),v("div",fu,[_("div",hu,[U(On,{class:"social-links-list",links:s(t).socialLinks},null,8,["links"])])])):S("",!0)]),_:1})):S("",!0)}}),gu=pe(yu,[["__scopeId","data-v-d0bd9dde"]]),_u=e=>(Ze("data-v-e5dd9c1c"),e=e(),et(),e),bu=["aria-expanded"],wu=_u(()=>_("span",{class:"container"},[_("span",{class:"top"}),_("span",{class:"middle"}),_("span",{class:"bottom"})],-1)),ku=[wu],$u=j({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(a,t)=>(u(),v("button",{type:"button",class:ve(["VPNavBarHamburger",{active:a.active}]),"aria-label":"mobile navigation","aria-expanded":a.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>a.$emit("click"))},ku,10,bu))}}),Du=pe($u,[["__scopeId","data-v-e5dd9c1c"]]),Pu=["innerHTML"],Mu=j({__name:"VPNavBarMenuLink",props:{item:{}},setup(e){const{page:a}=Se();return(t,n)=>(u(),le(St,{class:ve({VPNavBarMenuLink:!0,active:s(ra)(s(a).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:D(()=>[_("span",{innerHTML:t.item.text},null,8,Pu)]),_:1},8,["class","href","target","rel"]))}}),Tu=pe(Mu,[["__scopeId","data-v-42ef59de"]]),Su=j({__name:"VPNavBarMenuGroup",props:{item:{}},setup(e){const a=e,{page:t}=Se(),n=r=>"link"in r?ra(t.value.relativePath,r.link,!!a.item.activeMatch):r.items.some(n),o=M(()=>n(a.item));return(r,l)=>(u(),le(Vn,{class:ve({VPNavBarMenuGroup:!0,active:s(ra)(s(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),xu=e=>(Ze("data-v-7f418b0f"),e=e(),et(),e),Au={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Cu=xu(()=>_("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Vu=j({__name:"VPNavBarMenu",setup(e){const{theme:a}=Se();return(t,n)=>s(a).nav?(u(),v("nav",Au,[Cu,(u(!0),v(ue,null,_e(s(a).nav,o=>(u(),v(ue,{key:o.text},["link"in o?(u(),le(Tu,{key:0,item:o},null,8,["item"])):(u(),le(Su,{key:1,item:o},null,8,["item"]))],64))),128))])):S("",!0)}}),Ou=pe(Vu,[["__scopeId","data-v-7f418b0f"]]);function Nu(e){const{localeIndex:a,theme:t}=Se();function n(o){var k,T,R;const r=o.split("."),l=(k=t.value.search)==null?void 0:k.options,i=l&&typeof l=="object",c=i&&((R=(T=l.locales)==null?void 0:T[a.value])==null?void 0:R.translations)||null,g=i&&l.translations||null;let y=c,p=g,f=e;const b=r.pop();for(const Z of r){let q=null;const x=f==null?void 0:f[Z];x&&(q=f=x);const Y=p==null?void 0:p[Z];Y&&(q=p=Y);const K=y==null?void 0:y[Z];K&&(q=y=K),x||(f=q),Y||(p=q),K||(y=q)}return(y==null?void 0:y[b])??(p==null?void 0:p[b])??(f==null?void 0:f[b])??""}return n}const Ru=["aria-label"],Iu={class:"DocSearch-Button-Container"},Lu=_("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Yu={class:"DocSearch-Button-Placeholder"},Eu=_("span",{class:"DocSearch-Button-Keys"},[_("kbd",{class:"DocSearch-Button-Key"}),_("kbd",{class:"DocSearch-Button-Key"},"K")],-1),no=j({__name:"VPNavBarSearchButton",setup(e){const t=Nu({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,o)=>(u(),v("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":s(t)("button.buttonAriaLabel")},[_("span",Iu,[Lu,_("span",Yu,re(s(t)("button.buttonText")),1)]),Eu],8,Ru))}}),Bu={class:"VPNavBarSearch"},Hu={id:"local-search"},Fu={key:1,id:"docsearch"},Wu=j({__name:"VPNavBarSearch",setup(e){const a=()=>null,t=Mo(()=>To(()=>import("./VPAlgoliaSearchBox.OR8LPsXr.js"),__vite__mapDeps([2,1]))),{theme:n}=Se(),o=C(!1),r=C(!1),l=()=>{const f="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var T;const k=document.createElement("link");k.id=f,k.rel="preconnect",k.href=`https://${(((T=n.value.search)==null?void 0:T.options)??n.value.algolia).appId}-dsn.algolia.net`,k.crossOrigin="",document.head.appendChild(k)})};je(()=>{l();const f=k=>{(k.key.toLowerCase()==="k"&&(k.metaKey||k.ctrlKey)||!g(k)&&k.key==="/")&&(k.preventDefault(),i(),b())},b=()=>{window.removeEventListener("keydown",f)};window.addEventListener("keydown",f),Gt(b)});function i(){o.value||(o.value=!0,setTimeout(c,16))}function c(){const f=new Event("keydown");f.key="k",f.metaKey=!0,window.dispatchEvent(f),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||c()},16)}function g(f){const b=f.target,k=b.tagName;return b.isContentEditable||k==="INPUT"||k==="SELECT"||k==="TEXTAREA"}const y=C(!1),p="algolia";return(f,b)=>{var k;return u(),v("div",Bu,[s(p)==="local"?(u(),v(ue,{key:0},[y.value?(u(),le(s(a),{key:0,onClose:b[0]||(b[0]=T=>y.value=!1)})):S("",!0),_("div",Hu,[U(no,{onClick:b[1]||(b[1]=T=>y.value=!0)})])],64)):s(p)==="algolia"?(u(),v(ue,{key:1},[o.value?(u(),le(s(t),{key:0,algolia:((k=s(n).search)==null?void 0:k.options)??s(n).algolia,onVnodeBeforeMount:b[2]||(b[2]=T=>r.value=!0)},null,8,["algolia"])):S("",!0),r.value?S("",!0):(u(),v("div",Fu,[U(no,{onClick:i})]))],64)):S("",!0)])}}}),zu=j({__name:"VPNavBarSocialLinks",setup(e){const{theme:a}=Se();return(t,n)=>s(a).socialLinks?(u(),le(On,{key:0,class:"VPNavBarSocialLinks",links:s(a).socialLinks},null,8,["links"])):S("",!0)}}),qu=pe(zu,[["__scopeId","data-v-0394ad82"]]),ju=["href","rel","target"],Qu={key:1},Gu={key:2},Uu=j({__name:"VPNavBarTitle",setup(e){const{site:a,theme:t}=Se(),{hasSidebar:n}=Bt(),{currentLang:o}=Sa(),r=M(()=>{var c;return typeof t.value.logoLink=="string"?t.value.logoLink:(c=t.value.logoLink)==null?void 0:c.link}),l=M(()=>{var c;return typeof t.value.logoLink=="string"||(c=t.value.logoLink)==null?void 0:c.rel}),i=M(()=>{var c;return typeof t.value.logoLink=="string"||(c=t.value.logoLink)==null?void 0:c.target});return(c,g)=>(u(),v("div",{class:ve(["VPNavBarTitle",{"has-sidebar":s(n)}])},[_("a",{class:"title",href:r.value??s(Tn)(s(o).link),rel:l.value,target:i.value},[$(c.$slots,"nav-bar-title-before",{},void 0,!0),s(t).logo?(u(),le(Ya,{key:0,class:"logo",image:s(t).logo},null,8,["image"])):S("",!0),s(t).siteTitle?(u(),v("span",Qu,re(s(t).siteTitle),1)):s(t).siteTitle===void 0?(u(),v("span",Gu,re(s(a).title),1)):S("",!0),$(c.$slots,"nav-bar-title-after",{},void 0,!0)],8,ju)],2))}}),Ku=pe(Uu,[["__scopeId","data-v-ab179fa1"]]),Xu={class:"items"},Ju={class:"title"},Zu=j({__name:"VPNavBarTranslations",setup(e){const{theme:a}=Se(),{localeLinks:t,currentLang:n}=Sa({correspondingLink:!0});return(o,r)=>s(t).length&&s(n).label?(u(),le(Vn,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:s(a).langMenuLabel||"Change language"},{default:D(()=>[_("div",Xu,[_("p",Ju,re(s(n).label),1),(u(!0),v(ue,null,_e(s(t),l=>(u(),le(ja,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):S("",!0)}}),ed=pe(Zu,[["__scopeId","data-v-88af2de4"]]),td=e=>(Ze("data-v-19c990f1"),e=e(),et(),e),ad={class:"wrapper"},nd={class:"container"},od={class:"title"},rd={class:"content"},ld={class:"content-body"},sd=td(()=>_("div",{class:"divider"},[_("div",{class:"divider-line"})],-1)),id=j({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:a}=xo(),{hasSidebar:t}=Bt(),{hasLocalNav:n}=Ro(),{frontmatter:o}=Se(),r=C({});return Do(()=>{r.value={"has-sidebar":t.value,"has-local-nav":n.value,top:o.value.layout==="home"&&a.value===0}}),(l,i)=>(u(),v("div",{class:ve(["VPNavBar",r.value])},[_("div",ad,[_("div",nd,[_("div",od,[U(Ku,null,{"nav-bar-title-before":D(()=>[$(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":D(()=>[$(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),_("div",rd,[_("div",ld,[$(l.$slots,"nav-bar-content-before",{},void 0,!0),U(Wu,{class:"search"}),U(Ou,{class:"menu"}),U(ed,{class:"translations"}),U(Ii,{class:"appearance"}),U(qu,{class:"social-links"}),U(gu,{class:"extra"}),$(l.$slots,"nav-bar-content-after",{},void 0,!0),U(Du,{class:"hamburger",active:l.isScreenOpen,onClick:i[0]||(i[0]=c=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),sd],2))}}),ud=pe(id,[["__scopeId","data-v-19c990f1"]]),dd={key:0,class:"VPNavScreenAppearance"},cd={class:"text"},md=j({__name:"VPNavScreenAppearance",setup(e){const{site:a,theme:t}=Se();return(n,o)=>s(a).appearance&&s(a).appearance!=="force-dark"?(u(),v("div",dd,[_("p",cd,re(s(t).darkModeSwitchLabel||"Appearance"),1),U(An)])):S("",!0)}}),vd=pe(md,[["__scopeId","data-v-2d7af913"]]),pd=j({__name:"VPNavScreenMenuLink",props:{item:{}},setup(e){const a=qa("close-screen");return(t,n)=>(u(),le(St,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:s(a)},{default:D(()=>[Oe(re(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),fd=pe(pd,[["__scopeId","data-v-05f27b2a"]]),hd=j({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(e){const a=qa("close-screen");return(t,n)=>(u(),le(St,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:s(a)},{default:D(()=>[Oe(re(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Eo=pe(hd,[["__scopeId","data-v-19976ae1"]]),yd={class:"VPNavScreenMenuGroupSection"},gd={key:0,class:"title"},_d=j({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(e){return(a,t)=>(u(),v("div",yd,[a.text?(u(),v("p",gd,re(a.text),1)):S("",!0),(u(!0),v(ue,null,_e(a.items,n=>(u(),le(Eo,{key:n.text,item:n},null,8,["item"]))),128))]))}}),bd=pe(_d,[["__scopeId","data-v-8133b170"]]),wd=e=>(Ze("data-v-ff6087d4"),e=e(),et(),e),kd=["aria-controls","aria-expanded"],$d=["innerHTML"],Dd=wd(()=>_("span",{class:"vpi-plus button-icon"},null,-1)),Pd=["id"],Md={key:1,class:"group"},Td=j({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(e){const a=e,t=C(!1),n=M(()=>`NavScreenGroup-${a.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,l)=>(u(),v("div",{class:ve(["VPNavScreenMenuGroup",{open:t.value}])},[_("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[_("span",{class:"button-text",innerHTML:r.text},null,8,$d),Dd],8,kd),_("div",{id:n.value,class:"items"},[(u(!0),v(ue,null,_e(r.items,i=>(u(),v(ue,{key:i.text},["link"in i?(u(),v("div",{key:i.text,class:"item"},[U(Eo,{item:i},null,8,["item"])])):(u(),v("div",Md,[U(bd,{text:i.text,items:i.items},null,8,["text","items"])]))],64))),128))],8,Pd)],2))}}),Sd=pe(Td,[["__scopeId","data-v-ff6087d4"]]),xd={key:0,class:"VPNavScreenMenu"},Ad=j({__name:"VPNavScreenMenu",setup(e){const{theme:a}=Se();return(t,n)=>s(a).nav?(u(),v("nav",xd,[(u(!0),v(ue,null,_e(s(a).nav,o=>(u(),v(ue,{key:o.text},["link"in o?(u(),le(fd,{key:0,item:o},null,8,["item"])):(u(),le(Sd,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):S("",!0)}}),Cd=j({__name:"VPNavScreenSocialLinks",setup(e){const{theme:a}=Se();return(t,n)=>s(a).socialLinks?(u(),le(On,{key:0,class:"VPNavScreenSocialLinks",links:s(a).socialLinks},null,8,["links"])):S("",!0)}}),Bo=e=>(Ze("data-v-858fe1a4"),e=e(),et(),e),Vd=Bo(()=>_("span",{class:"vpi-languages icon lang"},null,-1)),Od=Bo(()=>_("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Nd={class:"list"},Rd=j({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:a,currentLang:t}=Sa({correspondingLink:!0}),n=C(!1);function o(){n.value=!n.value}return(r,l)=>s(a).length&&s(t).label?(u(),v("div",{key:0,class:ve(["VPNavScreenTranslations",{open:n.value}])},[_("button",{class:"title",onClick:o},[Vd,Oe(" "+re(s(t).label)+" ",1),Od]),_("ul",Nd,[(u(!0),v(ue,null,_e(s(a),i=>(u(),v("li",{key:i.link,class:"item"},[U(St,{class:"link",href:i.link},{default:D(()=>[Oe(re(i.text),1)]),_:2},1032,["href"])]))),128))])],2)):S("",!0)}}),Id=pe(Rd,[["__scopeId","data-v-858fe1a4"]]),Ld={class:"container"},Yd=j({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const a=C(null),t=Ao(ya?document.body:null);return(n,o)=>(u(),le(Et,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:D(()=>[n.open?(u(),v("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:a,id:"VPNavScreen"},[_("div",Ld,[$(n.$slots,"nav-screen-content-before",{},void 0,!0),U(Ad,{class:"menu"}),U(Id,{class:"translations"}),U(vd,{class:"appearance"}),U(Cd,{class:"social-links"}),$(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):S("",!0)]),_:3}))}}),Ed=pe(Yd,[["__scopeId","data-v-cc5739dd"]]),Bd={key:0,class:"VPNav"},Hd=j({__name:"VPNav",setup(e){const{isScreenOpen:a,closeScreen:t,toggleScreen:n}=Di(),{frontmatter:o}=Se(),r=M(()=>o.value.navbar!==!1);return Co("close-screen",t),Fa(()=>{ya&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(l,i)=>r.value?(u(),v("header",Bd,[U(ud,{"is-screen-open":s(a),onToggleScreen:s(n)},{"nav-bar-title-before":D(()=>[$(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":D(()=>[$(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":D(()=>[$(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":D(()=>[$(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),U(Ed,{open:s(a)},{"nav-screen-content-before":D(()=>[$(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":D(()=>[$(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):S("",!0)}}),Fd=pe(Hd,[["__scopeId","data-v-ae24b3ad"]]),Ho=e=>(Ze("data-v-93e7e794"),e=e(),et(),e),Wd=["role","tabindex"],zd=Ho(()=>_("div",{class:"indicator"},null,-1)),qd=Ho(()=>_("span",{class:"vpi-chevron-right caret-icon"},null,-1)),jd=[qd],Qd={key:1,class:"items"},Gd=j({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(e){const a=e,{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:l,hasChildren:i,toggle:c}=fl(M(()=>a.item)),g=M(()=>i.value?"section":"div"),y=M(()=>o.value?"a":"div"),p=M(()=>i.value?a.depth+2===7?"p":`h${a.depth+2}`:"p"),f=M(()=>o.value?void 0:"button"),b=M(()=>[[`level-${a.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":l.value}]);function k(R){"key"in R&&R.key!=="Enter"||!a.item.link&&c()}function T(){a.item.link&&c()}return(R,Z)=>{const q=la("VPSidebarItem",!0);return u(),le(Tt(g.value),{class:ve(["VPSidebarItem",b.value])},{default:D(()=>[R.item.text?(u(),v("div",Ne({key:0,class:"item",role:f.value},Fr(R.item.items?{click:k,keydown:k}:{},!0),{tabindex:R.item.items&&0}),[zd,R.item.link?(u(),le(St,{key:0,tag:y.value,class:"link",href:R.item.link,rel:R.item.rel,target:R.item.target},{default:D(()=>[(u(),le(Tt(p.value),{class:"text",innerHTML:R.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(u(),le(Tt(p.value),{key:1,class:"text",innerHTML:R.item.text},null,8,["innerHTML"])),R.item.collapsed!=null?(u(),v("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:T,onKeydown:De(T,["enter"]),tabindex:"0"},jd,32)):S("",!0)],16,Wd)):S("",!0),R.item.items&&R.item.items.length?(u(),v("div",Qd,[R.depth<5?(u(!0),v(ue,{key:0},_e(R.item.items,x=>(u(),le(q,{key:x.text,item:x,depth:R.depth+1},null,8,["item","depth"]))),128)):S("",!0)])):S("",!0)]),_:1},8,["class"])}}}),Ud=pe(Gd,[["__scopeId","data-v-93e7e794"]]),Fo=e=>(Ze("data-v-575e6a36"),e=e(),et(),e),Kd=Fo(()=>_("div",{class:"curtain"},null,-1)),Xd={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Jd=Fo(()=>_("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Zd=j({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const{sidebarGroups:a,hasSidebar:t}=Bt(),n=e,o=C(null),r=Ao(ya?document.body:null);return ut([n,o],()=>{var l;n.open?(r.value=!0,(l=o.value)==null||l.focus()):r.value=!1},{immediate:!0,flush:"post"}),(l,i)=>s(t)?(u(),v("aside",{key:0,class:ve(["VPSidebar",{open:l.open}]),ref_key:"navEl",ref:o,onClick:i[0]||(i[0]=Le(()=>{},["stop"]))},[Kd,_("nav",Xd,[Jd,$(l.$slots,"sidebar-nav-before",{},void 0,!0),(u(!0),v(ue,null,_e(s(a),c=>(u(),v("div",{key:c.text,class:"group"},[U(Ud,{item:c,depth:0},null,8,["item"])]))),128)),$(l.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):S("",!0)}}),ec=pe(Zd,[["__scopeId","data-v-575e6a36"]]),tc=j({__name:"VPSkipLink",setup(e){const a=za(),t=C();ut(()=>a.path,()=>t.value.focus());function n({target:o}){const r=document.getElementById(decodeURIComponent(o.hash).slice(1));if(r){const l=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",l)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",l),r.focus(),window.scrollTo(0,0)}}return(o,r)=>(u(),v(ue,null,[_("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),_("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),ac=pe(tc,[["__scopeId","data-v-0f60ec36"]]),nc=j({__name:"Layout",setup(e){const{isOpen:a,open:t,close:n}=Bt(),o=za();ut(()=>o.path,n),pl(a,n);const{frontmatter:r}=Se(),l=Ut(),i=M(()=>!!l["home-hero-image"]);return Co("hero-image-slot-exists",i),(c,g)=>{const y=la("Content");return s(r).layout!==!1?(u(),v("div",{key:0,class:ve(["Layout",s(r).pageClass])},[$(c.$slots,"layout-top",{},void 0,!0),U(ac),U(Zr,{class:"backdrop",show:s(a),onClick:s(n)},null,8,["show","onClick"]),U(Fd,null,{"nav-bar-title-before":D(()=>[$(c.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":D(()=>[$(c.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":D(()=>[$(c.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":D(()=>[$(c.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":D(()=>[$(c.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":D(()=>[$(c.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),U($i,{open:s(a),onOpenMenu:s(t)},null,8,["open","onOpenMenu"]),U(ec,{open:s(a)},{"sidebar-nav-before":D(()=>[$(c.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":D(()=>[$(c.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),U(ri,null,{"page-top":D(()=>[$(c.$slots,"page-top",{},void 0,!0)]),"page-bottom":D(()=>[$(c.$slots,"page-bottom",{},void 0,!0)]),"not-found":D(()=>[$(c.$slots,"not-found",{},void 0,!0)]),"home-hero-before":D(()=>[$(c.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":D(()=>[$(c.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":D(()=>[$(c.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":D(()=>[$(c.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":D(()=>[$(c.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":D(()=>[$(c.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":D(()=>[$(c.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":D(()=>[$(c.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":D(()=>[$(c.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":D(()=>[$(c.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":D(()=>[$(c.$slots,"doc-before",{},void 0,!0)]),"doc-after":D(()=>[$(c.$slots,"doc-after",{},void 0,!0)]),"doc-top":D(()=>[$(c.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":D(()=>[$(c.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":D(()=>[$(c.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":D(()=>[$(c.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":D(()=>[$(c.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":D(()=>[$(c.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":D(()=>[$(c.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":D(()=>[$(c.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),U(di),$(c.$slots,"layout-bottom",{},void 0,!0)],2)):(u(),le(y,{key:1}))}}}),oc=pe(nc,[["__scopeId","data-v-5d98c3a5"]]),rc={Layout:oc,enhanceApp:({app:e})=>{e.component("Badge",Kr)}},lc={},sc={class:"star-and-sponsor"},ic=_("p",null,[Oe(" ⭐ If you like the component, give it a star on "),_("a",{class:"home-link",href:"https://github.com/Vuepic/vue-datepicker",target:"_blank"},"GitHub"),Oe(" and consider "),_("a",{class:"home-link",href:"https://github.com/sponsors/Vuepic",target:"_blank"},"sponsoring"),Oe(" its development! ⭐ ")],-1),uc=[ic];function dc(e,a){return u(),v("div",sc,uc)}const cc=pe(lc,[["render",dc]]);function fe(e){const a=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&a==="[object Date]"?new e.constructor(+e):typeof e=="number"||a==="[object Number]"||typeof e=="string"||a==="[object String]"?new Date(e):new Date(NaN)}function Re(e,a){return e instanceof Date?new e.constructor(a):new Date(a)}function Ue(e,a){const t=fe(e);return isNaN(a)?Re(e,NaN):(a&&t.setDate(t.getDate()+a),t)}function mt(e,a){const t=fe(e);if(isNaN(a))return Re(e,NaN);if(!a)return t;const n=t.getDate(),o=Re(e,t.getTime());o.setMonth(t.getMonth()+a+1,0);const r=o.getDate();return n>=r?o:(t.setFullYear(o.getFullYear(),o.getMonth(),n),t)}function Wo(e,a){const{years:t=0,months:n=0,weeks:o=0,days:r=0,hours:l=0,minutes:i=0,seconds:c=0}=a,g=fe(e),y=n||t?mt(g,n+t*12):g,p=r||o?Ue(y,r+o*7):y,f=i+l*60,k=(c+f*60)*1e3;return Re(e,p.getTime()+k)}function mc(e,a){const t=+fe(e);return Re(e,t+a)}const zo=6048e5,vc=864e5,pc=6e4,qo=36e5,fc=1e3;function hc(e,a){return mc(e,a*qo)}let yc={};function sa(){return yc}function Ct(e,a){var i,c,g,y;const t=sa(),n=(a==null?void 0:a.weekStartsOn)??((c=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((y=(g=t.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,o=fe(e),r=o.getDay(),l=(r=o.getTime()?t+1:a.getTime()>=l.getTime()?t:t-1}function oo(e){const a=fe(e);return a.setHours(0,0,0,0),a}function Ea(e){const a=fe(e),t=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return t.setUTCFullYear(a.getFullYear()),+e-+t}function Qo(e,a){const t=oo(e),n=oo(a),o=+t-Ea(t),r=+n-Ea(n);return Math.round((o-r)/vc)}function gc(e){const a=jo(e),t=Re(e,0);return t.setFullYear(a,0,4),t.setHours(0,0,0,0),va(t)}function _c(e,a){const t=a*3;return mt(e,t)}function Nn(e,a){return mt(e,a*12)}function Go(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ka(e){if(!Go(e)&&typeof e!="number")return!1;const a=fe(e);return!isNaN(Number(a))}function ro(e){const a=fe(e);return Math.trunc(a.getMonth()/3)+1}function lo(e){const a=fe(e),t=a.getMonth();return a.setFullYear(a.getFullYear(),t+1,0),a.setHours(23,59,59,999),a}function Uo(e,a){const t=fe(e.start),n=fe(e.end);let o=+t>+n;const r=o?+t:+n,l=o?n:t;l.setHours(0,0,0,0);let i=(a==null?void 0:a.step)??1;if(!i)return[];i<0&&(i=-i,o=!o);const c=[];for(;+l<=r;)c.push(fe(l)),l.setDate(l.getDate()+i),l.setHours(0,0,0,0);return o?c.reverse():c}function zt(e){const a=fe(e),t=a.getMonth(),n=t-t%3;return a.setMonth(n,1),a.setHours(0,0,0,0),a}function bc(e,a){const t=fe(e.start),n=fe(e.end);let o=+t>+n;const r=o?+zt(t):+zt(n);let l=zt(o?n:t),i=(a==null?void 0:a.step)??1;if(!i)return[];i<0&&(i=-i,o=!o);const c=[];for(;+l<=r;)c.push(fe(l)),l=_c(l,i);return o?c.reverse():c}function so(e){const a=fe(e);return a.setDate(1),a.setHours(0,0,0,0),a}function Ko(e){const a=fe(e),t=a.getFullYear();return a.setFullYear(t+1,0,0),a.setHours(23,59,59,999),a}function Rn(e){const a=fe(e),t=Re(e,0);return t.setFullYear(a.getFullYear(),0,1),t.setHours(0,0,0,0),t}function wc(e,a){var i,c,g,y;const t=sa(),n=(a==null?void 0:a.weekStartsOn)??((c=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((y=(g=t.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,o=fe(e),r=o.getDay(),l=(r{let n;const o=kc[e];return typeof o=="string"?n=o:a===1?n=o.one:n=o.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function ma(e){return(a={})=>{const t=a.width?String(a.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const Dc={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tc={date:ma({formats:Dc,defaultWidth:"full"}),time:ma({formats:Pc,defaultWidth:"full"}),dateTime:ma({formats:Mc,defaultWidth:"full"})},Sc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xc=(e,a,t,n)=>Sc[e];function kt(e){return(a,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):l;o=e.formattingValues[i]||e.formattingValues[l]}else{const l=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[l]}const r=e.argumentCallback?e.argumentCallback(a):a;return o[r]}}const Ac={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vc={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Oc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Nc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Rc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ic=(e,a)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Lc={ordinalNumber:Ic,era:kt({values:Ac,defaultWidth:"wide"}),quarter:kt({values:Cc,defaultWidth:"wide",argumentCallback:e=>e-1}),month:kt({values:Vc,defaultWidth:"wide"}),day:kt({values:Oc,defaultWidth:"wide"}),dayPeriod:kt({values:Nc,defaultWidth:"wide",formattingValues:Rc,defaultFormattingWidth:"wide"})};function $t(e){return(a,t={})=>{const n=t.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],r=a.match(o);if(!r)return null;const l=r[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(i)?Ec(i,p=>p.test(l)):Yc(i,p=>p.test(l));let g;g=e.valueCallback?e.valueCallback(c):c,g=t.valueCallback?t.valueCallback(g):g;const y=a.slice(l.length);return{value:g,rest:y}}}function Yc(e,a){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&a(e[t]))return t}function Ec(e,a){for(let t=0;t{const n=a.match(e.matchPattern);if(!n)return null;const o=n[0],r=a.match(e.parsePattern);if(!r)return null;let l=e.valueCallback?e.valueCallback(r[0]):r[0];l=t.valueCallback?t.valueCallback(l):l;const i=a.slice(o.length);return{value:l,rest:i}}}const Bc=/^(\d+)(th|st|nd|rd)?/i,Hc=/\d+/i,Fc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wc={any:[/^b/i,/^(a|c)/i]},zc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qc={any:[/1/i,/2/i,/3/i,/4/i]},jc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Qc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Uc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Jc={ordinalNumber:Xo({matchPattern:Bc,parsePattern:Hc,valueCallback:e=>parseInt(e,10)}),era:$t({matchPatterns:Fc,defaultMatchWidth:"wide",parsePatterns:Wc,defaultParseWidth:"any"}),quarter:$t({matchPatterns:zc,defaultMatchWidth:"wide",parsePatterns:qc,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:jc,defaultMatchWidth:"wide",parsePatterns:Qc,defaultParseWidth:"any"}),day:$t({matchPatterns:Gc,defaultMatchWidth:"wide",parsePatterns:Uc,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:Kc,defaultMatchWidth:"any",parsePatterns:Xc,defaultParseWidth:"any"})},Jo={code:"en-US",formatDistance:$c,formatLong:Tc,formatRelative:xc,localize:Lc,match:Jc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zc(e){const a=fe(e);return Qo(a,Rn(a))+1}function In(e){const a=fe(e),t=+va(a)-+gc(a);return Math.round(t/zo)+1}function Ln(e,a){var y,p,f,b;const t=fe(e),n=t.getFullYear(),o=sa(),r=(a==null?void 0:a.firstWeekContainsDate)??((p=(y=a==null?void 0:a.locale)==null?void 0:y.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((b=(f=o.locale)==null?void 0:f.options)==null?void 0:b.firstWeekContainsDate)??1,l=Re(e,0);l.setFullYear(n+1,0,r),l.setHours(0,0,0,0);const i=Ct(l,a),c=Re(e,0);c.setFullYear(n,0,r),c.setHours(0,0,0,0);const g=Ct(c,a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=g.getTime()?n:n-1}function em(e,a){var i,c,g,y;const t=sa(),n=(a==null?void 0:a.firstWeekContainsDate)??((c=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((y=(g=t.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,o=Ln(e,a),r=Re(e,0);return r.setFullYear(o,0,n),r.setHours(0,0,0,0),Ct(r,a)}function Yn(e,a){const t=fe(e),n=+Ct(t,a)-+em(t,a);return Math.round(n/zo)+1}function Ee(e,a){const t=e<0?"-":"",n=Math.abs(e).toString().padStart(a,"0");return t+n}const Ft={y(e,a){const t=e.getFullYear(),n=t>0?t:1-t;return Ee(a==="yy"?n%100:n,a.length)},M(e,a){const t=e.getMonth();return a==="M"?String(t+1):Ee(t+1,2)},d(e,a){return Ee(e.getDate(),a.length)},a(e,a){const t=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,a){return Ee(e.getHours()%12||12,a.length)},H(e,a){return Ee(e.getHours(),a.length)},m(e,a){return Ee(e.getMinutes(),a.length)},s(e,a){return Ee(e.getSeconds(),a.length)},S(e,a){const t=a.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,t-3));return Ee(o,a.length)}},ia={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},uo={G:function(e,a,t){const n=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,a,t){if(a==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return t.ordinalNumber(o,{unit:"year"})}return Ft.y(e,a)},Y:function(e,a,t,n){const o=Ln(e,n),r=o>0?o:1-o;if(a==="YY"){const l=r%100;return Ee(l,2)}return a==="Yo"?t.ordinalNumber(r,{unit:"year"}):Ee(r,a.length)},R:function(e,a){const t=jo(e);return Ee(t,a.length)},u:function(e,a){const t=e.getFullYear();return Ee(t,a.length)},Q:function(e,a,t){const n=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(n);case"QQ":return Ee(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,a,t){const n=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(n);case"qq":return Ee(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,a,t){const n=e.getMonth();switch(a){case"M":case"MM":return Ft.M(e,a);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,a,t){const n=e.getMonth();switch(a){case"L":return String(n+1);case"LL":return Ee(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,a,t,n){const o=Yn(e,n);return a==="wo"?t.ordinalNumber(o,{unit:"week"}):Ee(o,a.length)},I:function(e,a,t){const n=In(e);return a==="Io"?t.ordinalNumber(n,{unit:"week"}):Ee(n,a.length)},d:function(e,a,t){return a==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Ft.d(e,a)},D:function(e,a,t){const n=Zc(e);return a==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):Ee(n,a.length)},E:function(e,a,t){const n=e.getDay();switch(a){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,a,t,n){const o=e.getDay(),r=(o-n.weekStartsOn+8)%7||7;switch(a){case"e":return String(r);case"ee":return Ee(r,2);case"eo":return t.ordinalNumber(r,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,t,n){const o=e.getDay(),r=(o-n.weekStartsOn+8)%7||7;switch(a){case"c":return String(r);case"cc":return Ee(r,a.length);case"co":return t.ordinalNumber(r,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,t){const n=e.getDay(),o=n===0?7:n;switch(a){case"i":return String(o);case"ii":return Ee(o,a.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,a,t){const o=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,t){const n=e.getHours();let o;switch(n===12?o=ia.noon:n===0?o=ia.midnight:o=n/12>=1?"pm":"am",a){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,t){const n=e.getHours();let o;switch(n>=17?o=ia.evening:n>=12?o=ia.afternoon:n>=4?o=ia.morning:o=ia.night,a){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,t){if(a==="ho"){let n=e.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Ft.h(e,a)},H:function(e,a,t){return a==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Ft.H(e,a)},K:function(e,a,t){const n=e.getHours()%12;return a==="Ko"?t.ordinalNumber(n,{unit:"hour"}):Ee(n,a.length)},k:function(e,a,t){let n=e.getHours();return n===0&&(n=24),a==="ko"?t.ordinalNumber(n,{unit:"hour"}):Ee(n,a.length)},m:function(e,a,t){return a==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ft.m(e,a)},s:function(e,a,t){return a==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Ft.s(e,a)},S:function(e,a){return Ft.S(e,a)},X:function(e,a,t){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(a){case"X":return mo(n);case"XXXX":case"XX":return ea(n);case"XXXXX":case"XXX":default:return ea(n,":")}},x:function(e,a,t){const n=e.getTimezoneOffset();switch(a){case"x":return mo(n);case"xxxx":case"xx":return ea(n);case"xxxxx":case"xxx":default:return ea(n,":")}},O:function(e,a,t){const n=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+co(n,":");case"OOOO":default:return"GMT"+ea(n,":")}},z:function(e,a,t){const n=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+co(n,":");case"zzzz":default:return"GMT"+ea(n,":")}},t:function(e,a,t){const n=Math.trunc(e.getTime()/1e3);return Ee(n,a.length)},T:function(e,a,t){const n=e.getTime();return Ee(n,a.length)}};function co(e,a=""){const t=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),r=n%60;return r===0?t+String(o):t+String(o)+a+Ee(r,2)}function mo(e,a){return e%60===0?(e>0?"-":"+")+Ee(Math.abs(e)/60,2):ea(e,a)}function ea(e,a=""){const t=e>0?"-":"+",n=Math.abs(e),o=Ee(Math.trunc(n/60),2),r=Ee(n%60,2);return t+o+a+r}const vo=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Zo=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},tm=(e,a)=>{const t=e.match(/(P+)(p+)?/)||[],n=t[1],o=t[2];if(!o)return vo(e,a);let r;switch(n){case"P":r=a.dateTime({width:"short"});break;case"PP":r=a.dateTime({width:"medium"});break;case"PPP":r=a.dateTime({width:"long"});break;case"PPPP":default:r=a.dateTime({width:"full"});break}return r.replace("{{date}}",vo(n,a)).replace("{{time}}",Zo(o,a))},wn={p:Zo,P:tm},am=/^D+$/,nm=/^Y+$/,om=["D","DD","YY","YYYY"];function er(e){return am.test(e)}function tr(e){return nm.test(e)}function kn(e,a,t){const n=rm(e,a,t);if(console.warn(n),om.includes(e))throw new RangeError(n)}function rm(e,a,t){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const lm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,im=/^'([^]*?)'?$/,um=/''/g,dm=/[a-zA-Z]/;function ft(e,a,t){var y,p,f,b,k,T,R,Z;const n=sa(),o=(t==null?void 0:t.locale)??n.locale??Jo,r=(t==null?void 0:t.firstWeekContainsDate)??((p=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((b=(f=n.locale)==null?void 0:f.options)==null?void 0:b.firstWeekContainsDate)??1,l=(t==null?void 0:t.weekStartsOn)??((T=(k=t==null?void 0:t.locale)==null?void 0:k.options)==null?void 0:T.weekStartsOn)??n.weekStartsOn??((Z=(R=n.locale)==null?void 0:R.options)==null?void 0:Z.weekStartsOn)??0,i=fe(e);if(!ka(i))throw new RangeError("Invalid time value");let c=a.match(sm).map(q=>{const x=q[0];if(x==="p"||x==="P"){const Y=wn[x];return Y(q,o.formatLong)}return q}).join("").match(lm).map(q=>{if(q==="''")return{isToken:!1,value:"'"};const x=q[0];if(x==="'")return{isToken:!1,value:cm(q)};if(uo[x])return{isToken:!0,value:q};if(x.match(dm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:q}});o.localize.preprocessor&&(c=o.localize.preprocessor(i,c));const g={firstWeekContainsDate:r,weekStartsOn:l,locale:o};return c.map(q=>{if(!q.isToken)return q.value;const x=q.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&tr(x)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&er(x))&&kn(x,a,String(e));const Y=uo[x[0]];return Y(i,x,o.localize,g)}).join("")}function cm(e){const a=e.match(im);return a?a[1].replace(um,"'"):e}function mm(e){return fe(e).getDay()}function vm(e){const a=fe(e),t=a.getFullYear(),n=a.getMonth(),o=Re(e,0);return o.setFullYear(t,n+1,0),o.setHours(0,0,0,0),o.getDate()}function pm(){return Object.assign({},sa())}function gt(e){return fe(e).getHours()}function fm(e){let t=fe(e).getDay();return t===0&&(t=7),t}function xt(e){return fe(e).getMinutes()}function Me(e){return fe(e).getMonth()}function pa(e){return fe(e).getSeconds()}function $e(e){return fe(e).getFullYear()}function Da(e,a){const t=fe(e),n=fe(a);return t.getTime()>n.getTime()}function Pa(e,a){const t=fe(e),n=fe(a);return+t<+n}function aa(e,a){const t=fe(e),n=fe(a);return+t==+n}function hm(e,a){const t=a instanceof Date?Re(a,0):new a(0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}const ym=10;class ar{constructor(){ce(this,"subPriority",0)}validate(a,t){return!0}}class gm extends ar{constructor(a,t,n,o,r){super(),this.value=a,this.validateValue=t,this.setValue=n,this.priority=o,r&&(this.subPriority=r)}validate(a,t){return this.validateValue(a,this.value,t)}set(a,t,n){return this.setValue(a,t,this.value,n)}}class _m extends ar{constructor(){super(...arguments);ce(this,"priority",ym);ce(this,"subPriority",-1)}set(t,n){return n.timestampIsSet?t:Re(t,hm(t,Date))}}class Ie{run(a,t,n,o){const r=this.parse(a,t,n,o);return r?{setter:new gm(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(a,t,n){return!0}}class bm extends Ie{constructor(){super(...arguments);ce(this,"priority",140);ce(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,o){switch(n){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,n,o){return n.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const Ke={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Dt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Xe(e,a){return e&&{value:a(e.value),rest:e.rest}}function Fe(e,a){const t=a.match(e);return t?{value:parseInt(t[0],10),rest:a.slice(t[0].length)}:null}function Pt(e,a){const t=a.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:a.slice(1)};const n=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,r=t[3]?parseInt(t[3],10):0,l=t[5]?parseInt(t[5],10):0;return{value:n*(o*qo+r*pc+l*fc),rest:a.slice(t[0].length)}}function nr(e){return Fe(Ke.anyDigitsSigned,e)}function qe(e,a){switch(e){case 1:return Fe(Ke.singleDigit,a);case 2:return Fe(Ke.twoDigits,a);case 3:return Fe(Ke.threeDigits,a);case 4:return Fe(Ke.fourDigits,a);default:return Fe(new RegExp("^\\d{1,"+e+"}"),a)}}function Ba(e,a){switch(e){case 1:return Fe(Ke.singleDigitSigned,a);case 2:return Fe(Ke.twoDigitsSigned,a);case 3:return Fe(Ke.threeDigitsSigned,a);case 4:return Fe(Ke.fourDigitsSigned,a);default:return Fe(new RegExp("^-?\\d{1,"+e+"}"),a)}}function En(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function or(e,a){const t=a>0,n=t?a:1-a;let o;if(n<=50)o=e||100;else{const r=n+50,l=Math.trunc(r/100)*100,i=e>=r%100;o=e+l-(i?100:0)}return t?o:1-o}function rr(e){return e%400===0||e%4===0&&e%100!==0}class wm extends Ie{constructor(){super(...arguments);ce(this,"priority",130);ce(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,o){const r=l=>({year:l,isTwoDigitYear:n==="yy"});switch(n){case"y":return Xe(qe(4,t),r);case"yo":return Xe(o.ordinalNumber(t,{unit:"year"}),r);default:return Xe(qe(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o){const r=t.getFullYear();if(o.isTwoDigitYear){const i=or(o.year,r);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}const l=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(l,0,1),t.setHours(0,0,0,0),t}}class km extends Ie{constructor(){super(...arguments);ce(this,"priority",130);ce(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,o){const r=l=>({year:l,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Xe(qe(4,t),r);case"Yo":return Xe(o.ordinalNumber(t,{unit:"year"}),r);default:return Xe(qe(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o,r){const l=Ln(t,r);if(o.isTwoDigitYear){const c=or(o.year,l);return t.setFullYear(c,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),Ct(t,r)}const i=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(i,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),Ct(t,r)}}class $m extends Ie{constructor(){super(...arguments);ce(this,"priority",130);ce(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Ba(n==="R"?4:n.length,t)}set(t,n,o){const r=Re(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),va(r)}}class Dm extends Ie{constructor(){super(...arguments);ce(this,"priority",130);ce(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Ba(n==="u"?4:n.length,t)}set(t,n,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class Pm extends Ie{constructor(){super(...arguments);ce(this,"priority",120);ce(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"Q":case"QQ":return qe(n.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class Mm extends Ie{constructor(){super(...arguments);ce(this,"priority",120);ce(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"q":case"qq":return qe(n.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class Tm extends Ie{constructor(){super(...arguments);ce(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ce(this,"priority",110)}parse(t,n,o){const r=l=>l-1;switch(n){case"M":return Xe(Fe(Ke.month,t),r);case"MM":return Xe(qe(2,t),r);case"Mo":return Xe(o.ordinalNumber(t,{unit:"month"}),r);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class Sm extends Ie{constructor(){super(...arguments);ce(this,"priority",110);ce(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,o){const r=l=>l-1;switch(n){case"L":return Xe(Fe(Ke.month,t),r);case"LL":return Xe(qe(2,t),r);case"Lo":return Xe(o.ordinalNumber(t,{unit:"month"}),r);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function xm(e,a,t){const n=fe(e),o=Yn(n,t)-a;return n.setDate(n.getDate()-o*7),n}class Am extends Ie{constructor(){super(...arguments);ce(this,"priority",100);ce(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,o){switch(n){case"w":return Fe(Ke.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o,r){return Ct(xm(t,o,r),r)}}function Cm(e,a){const t=fe(e),n=In(t)-a;return t.setDate(t.getDate()-n*7),t}class Vm extends Ie{constructor(){super(...arguments);ce(this,"priority",100);ce(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,o){switch(n){case"I":return Fe(Ke.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o){return va(Cm(t,o))}}const Om=[31,28,31,30,31,30,31,31,30,31,30,31],Nm=[31,29,31,30,31,30,31,31,30,31,30,31];class Rm extends Ie{constructor(){super(...arguments);ce(this,"priority",90);ce(this,"subPriority",1);ce(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"d":return Fe(Ke.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return qe(n.length,t)}}validate(t,n){const o=t.getFullYear(),r=rr(o),l=t.getMonth();return r?n>=1&&n<=Nm[l]:n>=1&&n<=Om[l]}set(t,n,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class Im extends Ie{constructor(){super(...arguments);ce(this,"priority",90);ce(this,"subpriority",1);ce(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,o){switch(n){case"D":case"DD":return Fe(Ke.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return qe(n.length,t)}}validate(t,n){const o=t.getFullYear();return rr(o)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function Bn(e,a,t){var p,f,b,k;const n=sa(),o=(t==null?void 0:t.weekStartsOn)??((f=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((k=(b=n.locale)==null?void 0:b.options)==null?void 0:k.weekStartsOn)??0,r=fe(e),l=r.getDay(),c=(a%7+7)%7,g=7-o,y=a<0||a>6?a-(l+g)%7:(c+g)%7-(l+g)%7;return Ue(r,y)}class Lm extends Ie{constructor(){super(...arguments);ce(this,"priority",90);ce(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=Bn(t,o,r),t.setHours(0,0,0,0),t}}class Ym extends Ie{constructor(){super(...arguments);ce(this,"priority",90);ce(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,o,r){const l=i=>{const c=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+c};switch(n){case"e":case"ee":return Xe(qe(n.length,t),l);case"eo":return Xe(o.ordinalNumber(t,{unit:"day"}),l);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=Bn(t,o,r),t.setHours(0,0,0,0),t}}class Em extends Ie{constructor(){super(...arguments);ce(this,"priority",90);ce(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,o,r){const l=i=>{const c=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+c};switch(n){case"c":case"cc":return Xe(qe(n.length,t),l);case"co":return Xe(o.ordinalNumber(t,{unit:"day"}),l);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=Bn(t,o,r),t.setHours(0,0,0,0),t}}function Bm(e,a){const t=fe(e),n=fm(t),o=a-n;return Ue(t,o)}class Hm extends Ie{constructor(){super(...arguments);ce(this,"priority",90);ce(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,o){const r=l=>l===0?7:l;switch(n){case"i":case"ii":return qe(n.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return Xe(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return Xe(o.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Xe(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Xe(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,n){return n>=1&&n<=7}set(t,n,o){return t=Bm(t,o),t.setHours(0,0,0,0),t}}class Fm extends Ie{constructor(){super(...arguments);ce(this,"priority",80);ce(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,o){switch(n){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(En(o),0,0,0),t}}class Wm extends Ie{constructor(){super(...arguments);ce(this,"priority",80);ce(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,o){switch(n){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(En(o),0,0,0),t}}class zm extends Ie{constructor(){super(...arguments);ce(this,"priority",80);ce(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,o){switch(n){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(En(o),0,0,0),t}}class qm extends Ie{constructor(){super(...arguments);ce(this,"priority",70);ce(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,o){switch(n){case"h":return Fe(Ke.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,o){const r=t.getHours()>=12;return r&&o<12?t.setHours(o+12,0,0,0):!r&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}}class jm extends Ie{constructor(){super(...arguments);ce(this,"priority",70);ce(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,o){switch(n){case"H":return Fe(Ke.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,o){return t.setHours(o,0,0,0),t}}class Qm extends Ie{constructor(){super(...arguments);ce(this,"priority",70);ce(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,o){switch(n){case"K":return Fe(Ke.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}}class Gm extends Ie{constructor(){super(...arguments);ce(this,"priority",70);ce(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,o){switch(n){case"k":return Fe(Ke.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,o){const r=o<=24?o%24:o;return t.setHours(r,0,0,0),t}}class Um extends Ie{constructor(){super(...arguments);ce(this,"priority",60);ce(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"m":return Fe(Ke.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setMinutes(o,0,0),t}}class Km extends Ie{constructor(){super(...arguments);ce(this,"priority",50);ce(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"s":return Fe(Ke.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setSeconds(o,0),t}}class Xm extends Ie{constructor(){super(...arguments);ce(this,"priority",30);ce(this,"incompatibleTokens",["t","T"])}parse(t,n){const o=r=>Math.trunc(r*Math.pow(10,-n.length+3));return Xe(qe(n.length,t),o)}set(t,n,o){return t.setMilliseconds(o),t}}class Jm extends Ie{constructor(){super(...arguments);ce(this,"priority",10);ce(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return Pt(Dt.basicOptionalMinutes,t);case"XX":return Pt(Dt.basic,t);case"XXXX":return Pt(Dt.basicOptionalSeconds,t);case"XXXXX":return Pt(Dt.extendedOptionalSeconds,t);case"XXX":default:return Pt(Dt.extended,t)}}set(t,n,o){return n.timestampIsSet?t:Re(t,t.getTime()-Ea(t)-o)}}class Zm extends Ie{constructor(){super(...arguments);ce(this,"priority",10);ce(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return Pt(Dt.basicOptionalMinutes,t);case"xx":return Pt(Dt.basic,t);case"xxxx":return Pt(Dt.basicOptionalSeconds,t);case"xxxxx":return Pt(Dt.extendedOptionalSeconds,t);case"xxx":default:return Pt(Dt.extended,t)}}set(t,n,o){return n.timestampIsSet?t:Re(t,t.getTime()-Ea(t)-o)}}class ev extends Ie{constructor(){super(...arguments);ce(this,"priority",40);ce(this,"incompatibleTokens","*")}parse(t){return nr(t)}set(t,n,o){return[Re(t,o*1e3),{timestampIsSet:!0}]}}class tv extends Ie{constructor(){super(...arguments);ce(this,"priority",20);ce(this,"incompatibleTokens","*")}parse(t){return nr(t)}set(t,n,o){return[Re(t,o),{timestampIsSet:!0}]}}const av={G:new bm,y:new wm,Y:new km,R:new $m,u:new Dm,Q:new Pm,q:new Mm,M:new Tm,L:new Sm,w:new Am,I:new Vm,d:new Rm,D:new Im,E:new Lm,e:new Ym,c:new Em,i:new Hm,a:new Fm,b:new Wm,B:new zm,h:new qm,H:new jm,K:new Qm,k:new Gm,m:new Um,s:new Km,S:new Xm,X:new Jm,x:new Zm,t:new ev,T:new tv},nv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ov=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rv=/^'([^]*?)'?$/,lv=/''/g,sv=/\S/,iv=/[a-zA-Z]/;function $n(e,a,t,n){var T,R,Z,q,x,Y,K,W;const o=pm(),r=(n==null?void 0:n.locale)??o.locale??Jo,l=(n==null?void 0:n.firstWeekContainsDate)??((R=(T=n==null?void 0:n.locale)==null?void 0:T.options)==null?void 0:R.firstWeekContainsDate)??o.firstWeekContainsDate??((q=(Z=o.locale)==null?void 0:Z.options)==null?void 0:q.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((Y=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:Y.weekStartsOn)??o.weekStartsOn??((W=(K=o.locale)==null?void 0:K.options)==null?void 0:W.weekStartsOn)??0;if(a==="")return e===""?fe(t):Re(t,NaN);const c={firstWeekContainsDate:l,weekStartsOn:i,locale:r},g=[new _m],y=a.match(ov).map(N=>{const z=N[0];if(z in wn){const ae=wn[z];return ae(N,r.formatLong)}return N}).join("").match(nv),p=[];for(let N of y){!(n!=null&&n.useAdditionalWeekYearTokens)&&tr(N)&&kn(N,a,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&er(N)&&kn(N,a,e);const z=N[0],ae=av[z];if(ae){const{incompatibleTokens:ie}=ae;if(Array.isArray(ie)){const B=p.find(Q=>ie.includes(Q.token)||Q.token===z);if(B)throw new RangeError(`The format string mustn't contain \`${B.fullToken}\` and \`${N}\` at the same time`)}else if(ae.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${N}\` and any other token at the same time`);p.push({token:z,fullToken:N});const me=ae.run(e,N,r.match,c);if(!me)return Re(t,NaN);g.push(me.setter),e=me.rest}else{if(z.match(iv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");if(N==="''"?N="'":z==="'"&&(N=uv(N)),e.indexOf(N)===0)e=e.slice(N.length);else return Re(t,NaN)}}if(e.length>0&&sv.test(e))return Re(t,NaN);const f=g.map(N=>N.priority).sort((N,z)=>z-N).filter((N,z,ae)=>ae.indexOf(N)===z).map(N=>g.filter(z=>z.priority===N).sort((z,ae)=>ae.subPriority-z.subPriority)).map(N=>N[0]);let b=fe(t);if(isNaN(b.getTime()))return Re(t,NaN);const k={};for(const N of f){if(!N.validate(b,c))return Re(t,NaN);const z=N.set(b,k,c);Array.isArray(z)?(b=z[0],Object.assign(k,z[1])):b=z}return Re(t,b)}function uv(e){return e.match(rv)[1].replace(lv,"'")}function po(e,a){const t=zt(e),n=zt(a);return+t==+n}function Hn(e,a){return Ue(e,-a)}function lr(e,a){const t=fe(e),n=t.getFullYear(),o=t.getDate(),r=Re(e,0);r.setFullYear(n,a,15),r.setHours(0,0,0,0);const l=vm(r);return t.setMonth(a,Math.min(o,l)),t}function Be(e,a){let t=fe(e);return isNaN(+t)?Re(e,NaN):(a.year!=null&&t.setFullYear(a.year),a.month!=null&&(t=lr(t,a.month)),a.date!=null&&t.setDate(a.date),a.hours!=null&&t.setHours(a.hours),a.minutes!=null&&t.setMinutes(a.minutes),a.seconds!=null&&t.setSeconds(a.seconds),a.milliseconds!=null&&t.setMilliseconds(a.milliseconds),t)}function sr(e,a){const t=fe(e);return t.setHours(a),t}function Fn(e,a){const t=fe(e);return t.setMilliseconds(a),t}function ir(e,a){const t=fe(e);return t.setMinutes(a),t}function Wn(e,a){const t=fe(e);return t.setSeconds(a),t}function Mt(e,a){const t=fe(e);return isNaN(+t)?Re(e,NaN):(t.setFullYear(a),t)}function Yt(e,a){return mt(e,-a)}function dv(e,a){const{years:t=0,months:n=0,weeks:o=0,days:r=0,hours:l=0,minutes:i=0,seconds:c=0}=a,g=Yt(e,n+t*12),y=Hn(g,r+o*7),p=i+l*60,b=(c+p*60)*1e3;return Re(e,y.getTime()-b)}function ur(e,a){return Nn(e,-a)}function ga(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),_("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),_("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),_("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}ga.compatConfig={MODE:3};function dr(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),_("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}dr.compatConfig={MODE:3};function zn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}zn.compatConfig={MODE:3};function qn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}qn.compatConfig={MODE:3};function jn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),_("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}jn.compatConfig={MODE:3};function Qn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Qn.compatConfig={MODE:3};function Gn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[_("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Gn.compatConfig={MODE:3};function fo(e){return a=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)}function cv(e){return a=>ft(new Date(`2017-01-0${a}T00:00:00+00:00`),"EEEEEE",{locale:e})}const mv=(e,a,t)=>{const n=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=n.map(cv(e))}catch{o=n.map(fo(a))}else o=n.map(fo(a));const r=o.slice(0,t),l=o.slice(t+1,o.length);return[o[t]].concat(...l).concat(...r)},Un=(e,a,t)=>{const n=[];for(let o=+e[0];o<=+e[1];o++)n.push({value:+o,text:pr(o,a)});return t?n.reverse():n},cr=(e,a,t)=>{const n=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const l=r<10?`0${r}`:r;return new Date(`2017-${l}-01T00:00:00+00:00`)});if(e!==null)try{const r=t==="long"?"MMMM":"MMM";return n.map((l,i)=>{const c=ft(l,r,{locale:e});return{text:c.charAt(0).toUpperCase()+c.substring(1),value:i}})}catch{}const o=new Intl.DateTimeFormat(a,{month:t,timeZone:"UTC"});return n.map((r,l)=>{const i=o.format(r);return{text:i.charAt(0).toUpperCase()+i.substring(1),value:l}})},vv=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],at=e=>{const a=s(e);return a!=null&&a.$el?a==null?void 0:a.$el:a},pv=e=>({type:"dot",...e??{}}),mr=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,Kn={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},ot=e=>e,ho=e=>e===0?e:!e||isNaN(+e)?null:+e,yo=e=>e===null,vr=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},fv=e=>{const a=[],t=n=>n.filter(o=>o);for(let n=0;n{const n=t!=null,o=a!=null;if(!n&&!o)return!1;const r=+t,l=+a;return n&&o?+e>r||+er:o?+efv(e).map(t=>t.map(n=>{const{active:o,disabled:r,isBetween:l,highlighted:i}=a(n);return{...n,active:o,disabled:r,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&o,dp__cell_in_between:l,"dp--highlighted":i}}})),jt=(e,a,t=!1)=>{e&&a.allowStopPropagation&&(t&&e.stopImmediatePropagation(),e.stopPropagation())},hv=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function yv(e,a){let t=[...document.querySelectorAll(hv())];t=t.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const n=t.indexOf(e);if(n>=0&&(a?n-1>=0:n+1<=t.length))return t[n+(a?-1:1)]}const gv=(e,a)=>e==null?void 0:e.querySelector(`[data-dp-element="${a}"]`),pr=(e,a)=>new Intl.NumberFormat(a,{useGrouping:!1,style:"decimal"}).format(e),Xn=e=>ft(e,"dd-MM-yyyy"),rn=e=>Array.isArray(e),Ha=(e,a)=>a.get(Xn(e)),_v=(e,a)=>e?a?a instanceof Map?!!Ha(e,a):a(G(e)):!1:!0,go=(e,a,t,n,o,r)=>{const l=$n(e,a.slice(0,e.length),new Date,{locale:r});return ka(l)&&Go(l)?n||o?l:Be(l,{hours:+t.hours,minutes:+(t==null?void 0:t.minutes),seconds:+(t==null?void 0:t.seconds),milliseconds:0}):null},bv=(e,a,t,n,o,r)=>{const l=Array.isArray(t)?t[0]:t;if(typeof a=="string")return go(e,a,l,n,o,r);if(Array.isArray(a)){let i=null;for(const c of a)if(i=go(e,c,l,n,o,r),i)break;return i}return typeof a=="function"?a(e):null},G=e=>e?new Date(e):new Date,wv=(e,a,t)=>{if(a){const o=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),l=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),c=t?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${r}T${l}:${i}:${c}.000Z`}const n=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(n).toISOString()},vt=e=>{let a=G(JSON.parse(JSON.stringify(e)));return a=sr(a,0),a=ir(a,0),a=Wn(a,0),a=Fn(a,0),a},Qt=(e,a,t,n)=>{let o=e?G(e):G();return(a||a===0)&&(o=sr(o,+a)),(t||t===0)&&(o=ir(o,+t)),(n||n===0)&&(o=Wn(o,+n)),Fn(o,0)},ze=(e,a)=>!e||!a?!1:Pa(vt(e),vt(a)),Ve=(e,a)=>!e||!a?!1:aa(vt(e),vt(a)),Ge=(e,a)=>!e||!a?!1:Da(vt(e),vt(a)),Qa=(e,a,t)=>e!=null&&e[0]&&e!=null&&e[1]?Ge(t,e[0])&&ze(t,e[1]):e!=null&&e[0]&&a?Ge(t,e[0])&&ze(t,a)||ze(t,e[0])&&Ge(t,a):!1,yt=e=>{const a=Be(new Date(e),{date:1});return vt(a)},ln=(e,a,t)=>a&&(t||t===0)?Object.fromEntries(["hours","minutes","seconds"].map(n=>n===a?[n,t]:[n,isNaN(+e[n])?void 0:+e[n]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},na=e=>({hours:gt(e),minutes:xt(e),seconds:pa(e)}),fr=(e,a)=>{if(a){const t=$e(G(a));if(t>e)return 12;if(t===e)return Me(G(a))}},hr=(e,a)=>{if(a){const t=$e(G(a));return t{if(e)return $e(G(e))},yr=(e,a)=>{const t=Ge(e,a)?a:e,n=Ge(a,e)?a:e;return Uo({start:t,end:n})},kv=e=>{const a=mt(e,1);return{month:Me(a),year:$e(a)}},Rt=(e,a)=>{const t=Ct(e,{weekStartsOn:+a}),n=wc(e,{weekStartsOn:+a});return[t,n]},gr=(e,a)=>{const t={hours:gt(G()),minutes:xt(G()),seconds:a?pa(G()):0};return Object.assign(t,e)},qt=(e,a,t)=>[Be(G(e),{date:1}),Be(G(),{month:a,year:t,date:1})],It=(e,a,t)=>{let n=e?G(e):G();return(a||a===0)&&(n=lr(n,a)),t&&(n=Mt(n,t)),n},_r=(e,a,t,n,o)=>{if(!n||o&&!a||!o&&!t)return!1;const r=o?mt(e,1):Yt(e,1),l=[Me(r),$e(r)];return o?!Dv(...l,a):!$v(...l,t)},$v=(e,a,t)=>ze(...qt(t,e,a))||Ve(...qt(t,e,a)),Dv=(e,a,t)=>Ge(...qt(t,e,a))||Ve(...qt(t,e,a)),br=(e,a,t,n,o,r,l)=>{if(typeof a=="function"&&!l)return a(e);const i=t?{locale:t}:void 0;return Array.isArray(e)?`${ft(e[0],r,i)}${o&&!e[1]?"":n}${e[1]?ft(e[1],r,i):""}`:ft(e,r,i)},ua=e=>{if(e)return null;throw new Error(Kn.prop("partial-range"))},Oa=(e,a)=>{if(a)return e();throw new Error(Kn.prop("range"))},Dn=e=>Array.isArray(e)?ka(e[0])&&(e[1]?ka(e[1]):!0):e?ka(e):!1,Pv=(e,a)=>Be(a??G(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),sn=(e,a,t,n)=>{if(!e)return!0;if(n){const o=t==="max"?Pa(e,a):Da(e,a),r={seconds:0,milliseconds:0};return o||aa(Be(e,r),Be(a,r))}return t==="max"?e.getTime()<=a.getTime():e.getTime()>=a.getTime()},un=(e,a,t)=>e?Pv(e,a):G(t??a),_o=(e,a,t,n,o)=>{if(Array.isArray(n)){const l=un(e,n[0],a),i=un(e,n[1],a);return sn(n[0],l,t,!!a)&&sn(n[1],i,t,!!a)&&o}const r=un(e,n,a);return sn(n,r,t,!!a)&&o},dn=e=>Be(G(),na(e)),Mv=(e,a)=>e instanceof Map?Array.from(e.values()).filter(t=>$e(G(t))===a).map(t=>Me(t)):[],wr=(e,a,t)=>typeof e=="function"?e({month:a,year:t}):!!e.months.find(n=>n.month===a&&n.year===t),Jn=(e,a)=>typeof e=="function"?e(a):e.years.includes(a),wa=Ta({menuFocused:!1,shiftKeyInMenu:!1}),kr=()=>{const e=t=>{wa.menuFocused=t},a=t=>{wa.shiftKeyInMenu!==t&&(wa.shiftKeyInMenu=t)};return{control:M(()=>({shiftKeyInMenu:wa.shiftKeyInMenu,menuFocused:wa.menuFocused})),setMenuFocused:e,setShiftKey:a}},He=Ta({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),cn=C(null),Na=C(!1),mn=C(!1),vn=C(!1),pn=C(!1),lt=C(0),Qe=C(0),Kt=()=>{const e=M(()=>Na.value?[...He.selectionGrid,He.actionRow].filter(p=>p.length):mn.value?[...He.timePicker[0],...He.timePicker[1],pn.value?[]:[cn.value],He.actionRow].filter(p=>p.length):vn.value?[...He.monthPicker,He.actionRow]:[He.monthYear,...He.calendar,He.time,He.actionRow].filter(p=>p.length)),a=p=>{lt.value=p?lt.value+1:lt.value-1;let f=null;e.value[Qe.value]&&(f=e.value[Qe.value][lt.value]),!f&&e.value[Qe.value+(p?1:-1)]?(Qe.value=Qe.value+(p?1:-1),lt.value=p?0:e.value[Qe.value].length-1):f||(lt.value=p?lt.value-1:lt.value+1)},t=p=>{Qe.value===0&&!p||Qe.value===e.value.length&&p||(Qe.value=p?Qe.value+1:Qe.value-1,e.value[Qe.value]?e.value[Qe.value]&&!e.value[Qe.value][lt.value]&<.value!==0&&(lt.value=e.value[Qe.value].length-1):Qe.value=p?Qe.value-1:Qe.value+1)},n=p=>{let f=null;e.value[Qe.value]&&(f=e.value[Qe.value][lt.value]),f?f.focus({preventScroll:!Na.value}):lt.value=p?lt.value-1:lt.value+1},o=()=>{a(!0),n(!0)},r=()=>{a(!1),n(!1)},l=()=>{t(!1),n(!0)},i=()=>{t(!0),n(!0)},c=(p,f)=>{He[f]=p},g=(p,f)=>{He[f]=p},y=()=>{lt.value=0,Qe.value=0};return{buildMatrix:c,buildMultiLevelMatrix:g,setTimePickerBackRef:p=>{cn.value=p},setSelectionGrid:p=>{Na.value=p,y(),p||(He.selectionGrid=[])},setTimePicker:(p,f=!1)=>{mn.value=p,pn.value=f,y(),p||(He.timePicker[0]=[],He.timePicker[1]=[])},setTimePickerElements:(p,f=0)=>{He.timePicker[f]=p},arrowRight:o,arrowLeft:r,arrowUp:l,arrowDown:i,clearArrowNav:()=>{He.monthYear=[],He.calendar=[],He.time=[],He.actionRow=[],He.selectionGrid=[],He.timePicker[0]=[],He.timePicker[1]=[],Na.value=!1,mn.value=!1,pn.value=!1,vn.value=!1,y(),cn.value=null},setMonthPicker:p=>{vn.value=p,y()},refSets:He}},Lt=(e,a)=>a?new Date(e.toLocaleString("en-US",{timeZone:a})):new Date(e),$r=(e,a)=>Pn(e,a)||G(),Tv=(e,a)=>a.dateInTz?Lt(new Date(e),a.dateInTz):G(e),Pn=(e,a)=>{if(!e)return null;if(!a)return G(e);const t=G(e);return a.exactMatch?Tv(e,a):Lt(t,a.timezone)},Sv=e=>{if(!e)return 0;const a=new Date,t=new Date(a.toLocaleString("en-US",{timeZone:"UTC"})),n=new Date(a.toLocaleString("en-US",{timeZone:e})),o=n.getTimezoneOffset()/60;return(+t-+n)/(1e3*60*60)-o},bo=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),xv=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:a=>`Increment ${a}`,decrementValue:a=>`Decrement ${a}`,openTpOverlay:a=>`Open ${a} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),wo=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,Av=e=>{const a=typeof e=="object"&&e,t={static:!0,solo:!1};if(!e)return{...t,count:wo(!1)};const n=a?e:{},o=a?n.count??!0:e,r=wo(o);return Object.assign(t,n,{count:r})},Cv=(e,a,t)=>e||(typeof t=="string"?t:a),Vv=e=>typeof e=="boolean"?e?bo({}):!1:bo(e),Ov=e=>{const a={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...a,...e??{},enabled:!0}:{...a,enabled:e}},Nv=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),Rv=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),Iv=e=>{const a={input:!1};return typeof e=="object"?{...a,...e??{},enabled:!0}:{enabled:e,...a}},Lv=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,...e??{}}),Yv=e=>{const a={dates:Array.isArray(e)?e.map(t=>G(t)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...a,...e??{}}},Ev=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},Bv=(e,a)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:a.noDisabledRange,showLastInRange:a.showLastInRange,minMaxRawRange:a.minMaxRawRange,partialRange:a.partialRange,disableTimeRangeValidation:a.disableTimeRangeValidation,maxRange:a.maxRange,minRange:a.minRange,autoRange:a.autoRange,fixedStart:a.fixedStart,fixedEnd:a.fixedEnd},Hv=(e,a)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:a,convertModel:!0}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:a??e.emitTimezone,convertModel:e.convertModel??!0}:{timezone:void 0,exactMatch:!1,emitTimezone:a},fn=(e,a)=>new Map(e.map(t=>{const n=$r(t,a);return[Xn(n),n]})),Fv=(e,a)=>e.length?new Map(e.map(t=>{const n=$r(t.date,a);return[Xn(n),t]})):null,Wv=(e,a,t,n,o,r,l)=>({minDate:Pn(e,l),maxDate:Pn(a,l),disabledDates:rn(t)?fn(t,l):t,allowedDates:rn(n)?fn(n,l):null,highlight:typeof o=="object"&&rn(o==null?void 0:o.dates)?fn(o.dates,l):o,markers:Fv(r,l)}),zv=(e,a)=>typeof e=="boolean"?{enabled:e,dragSelect:!0,limit:+a}:{enabled:!!e,limit:e.limit?+e.limit:null,dragSelect:e.dragSelect??!0},We=e=>{const a=()=>{const K=e.enableSeconds?":ss":"";return e.is24?`HH:mm${K}`:`hh:mm${K} aa`},t=()=>{var K;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?a():e.weekPicker?`${((K=R.value)==null?void 0:K.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${a()}`:"MM/dd/yyyy"},n=K=>gr(K,e.enableSeconds),o=()=>Y.value.enabled?e.startTime&&Array.isArray(e.startTime)?[n(e.startTime[0]),n(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?n(e.startTime):null,r=M(()=>Av(e.multiCalendars)),l=M(()=>o()),i=M(()=>xv(e.ariaLabels)),c=M(()=>Nv(e.filters)),g=M(()=>Vv(e.transitions)),y=M(()=>Rv(e.actionRow)),p=M(()=>Cv(e.previewFormat,e.format,t())),f=M(()=>Ov(e.textInput)),b=M(()=>Iv(e.inline)),k=M(()=>Lv(e.config)),T=M(()=>Yv(e.highlight)),R=M(()=>Ev(e.weekNumbers)),Z=M(()=>Hv(e.timezone,e.emitTimezone)),q=M(()=>zv(e.multiDates,e.multiDatesLimit)),x=M(()=>Wv(e.minDate,e.maxDate,e.disabledDates,e.allowedDates,T.value,e.markers,Z.value)),Y=M(()=>Bv(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd}));return{defaultedTransitions:g,defaultedMultiCalendars:r,defaultedStartTime:l,defaultedAriaLabels:i,defaultedFilters:c,defaultedActionRow:y,defaultedPreviewFormat:p,defaultedTextInput:f,defaultedInline:b,defaultedConfig:k,defaultedHighlight:T,defaultedWeekNumbers:R,defaultedRange:Y,propDates:x,defaultedTz:Z,defaultedMultiDates:q,getDefaultPattern:t,getDefaultStartTime:o}},qv=(e,a,t)=>{const n=C(),{defaultedTextInput:o,defaultedRange:r,defaultedTz:l,defaultedMultiDates:i,getDefaultPattern:c}=We(a),g=C(""),y=La(a,"format");ut(n,()=>{e("internal-model-change",n.value)},{deep:!0}),ut(y,()=>{E()});const p=m=>l.value.timezone&&l.value.convertModel?Lt(m,l.value.timezone):m,f=m=>{if(l.value.timezone&&l.value.convertModel){const L=Sv(l.value.timezone);return hc(m,L)}return m},b=(m,L,H=!1)=>br(m,a.format,a.formatLocale,o.value.rangeSeparator,a.modelAuto,L??c(),H),k=m=>m?a.modelType?de(m):{hours:gt(m),minutes:xt(m),seconds:a.enableSeconds?pa(m):0}:null,T=m=>a.modelType?de(m):{month:Me(m),year:$e(m)},R=m=>Array.isArray(m)?i.value.enabled?m.map(L=>Z(L,Mt(G(),L))):Oa(()=>[Mt(G(),m[0]),m[1]?Mt(G(),m[1]):ua(r.value.partialRange)],r.value.enabled):Mt(G(),+m),Z=(m,L)=>(typeof m=="string"||typeof m=="number")&&a.modelType?te(m):L,q=m=>Array.isArray(m)?[Z(m[0],Qt(null,+m[0].hours,+m[0].minutes,m[0].seconds)),Z(m[1],Qt(null,+m[1].hours,+m[1].minutes,m[1].seconds))]:Z(m,Qt(null,m.hours,m.minutes,m.seconds)),x=m=>{const L=Be(G(),{date:1});return Array.isArray(m)?i.value.enabled?m.map(H=>Z(H,It(L,+H.month,+H.year))):Oa(()=>[Z(m[0],It(L,+m[0].month,+m[0].year)),Z(m[1],m[1]?It(L,+m[1].month,+m[1].year):ua(r.value.partialRange))],r.value.enabled):Z(m,It(L,+m.month,+m.year))},Y=m=>{if(Array.isArray(m))return m.map(L=>te(L));throw new Error(Kn.dateArr("multi-dates"))},K=m=>{if(Array.isArray(m)&&r.value.enabled){const L=m[0],H=m[1];return[G(Array.isArray(L)?L[0]:null),G(Array.isArray(H)?H[0]:null)]}return G(m[0])},W=m=>a.modelAuto?Array.isArray(m)?[te(m[0]),te(m[1])]:a.autoApply?[te(m)]:[te(m),null]:Array.isArray(m)?Oa(()=>m[1]?[te(m[0]),m[1]?te(m[1]):ua(r.value.partialRange)]:[te(m[0])],r.value.enabled):te(m),N=()=>{Array.isArray(n.value)&&r.value.enabled&&n.value.length===1&&n.value.push(ua(r.value.partialRange))},z=()=>{const m=n.value;return[de(m[0]),m[1]?de(m[1]):ua(r.value.partialRange)]},ae=()=>n.value[1]?z():de(ot(n.value[0])),ie=()=>(n.value||[]).map(m=>de(m)),me=()=>(N(),a.modelAuto?ae():i.value.enabled?ie():Array.isArray(n.value)?Oa(()=>z(),r.value.enabled):de(ot(n.value))),B=m=>!m||Array.isArray(m)&&!m.length?null:a.timePicker?q(ot(m)):a.monthPicker?x(ot(m)):a.yearPicker?R(ot(m)):i.value.enabled?Y(ot(m)):a.weekPicker?K(ot(m)):W(ot(m)),Q=m=>{const L=B(m);Dn(ot(L))?(n.value=ot(L),E()):(n.value=null,g.value="")},se=()=>{const m=L=>ft(L,o.value.format);return`${m(n.value[0])} ${o.value.rangeSeparator} ${n.value[1]?m(n.value[1]):""}`},w=()=>t.value&&n.value?Array.isArray(n.value)?se():ft(n.value,o.value.format):b(n.value),h=()=>n.value?i.value.enabled?n.value.map(m=>b(m)).join("; "):o.value.enabled&&typeof o.value.format=="string"?w():b(n.value):"",E=()=>{!a.format||typeof a.format=="string"||o.value.enabled&&typeof o.value.format=="string"?g.value=h():g.value=a.format(n.value)},te=m=>{if(a.utc){const L=new Date(m);return a.utc==="preserve"?new Date(L.getTime()+L.getTimezoneOffset()*6e4):L}return a.modelType?a.modelType==="date"||a.modelType==="timestamp"?p(new Date(m)):a.modelType==="format"&&(typeof a.format=="string"||!a.format)?p($n(m,c(),new Date)):p($n(m,a.modelType,new Date)):p(new Date(m))},de=m=>m?a.utc?wv(m,a.utc==="preserve",a.enableSeconds):a.modelType?a.modelType==="timestamp"?+f(m):a.modelType==="format"&&(typeof a.format=="string"||!a.format)?b(f(m)):b(f(m),a.modelType,!0):f(m):"",ee=(m,L=!1)=>{if(e("update:model-value",m),l.value.emitTimezone&&L){const H=Array.isArray(m)?m.map(xe=>Lt(ot(xe),l.value.emitTimezone)):Lt(ot(m),l.value.emitTimezone);e("update:model-timezone-value",H)}},A=m=>Array.isArray(n.value)?i.value.enabled?n.value.map(L=>m(L)):[m(n.value[0]),n.value[1]?m(n.value[1]):ua(r.value.partialRange)]:m(ot(n.value)),I=()=>{if(Array.isArray(n.value)){const m=Rt(n.value[0],a.weekStart),L=n.value[1]?Rt(n.value[1],a.weekStart):[];return[m.map(H=>G(H)),L.map(H=>G(H))]}return Rt(n.value,a.weekStart).map(m=>G(m))},d=m=>ee(ot(A(m)));return{inputValue:g,internalModelValue:n,checkBeforeEmit:()=>n.value?r.value.enabled?r.value.partialRange?n.value.length>=1:n.value.length===2:!!n.value:!1,parseExternalModelValue:Q,formatInputValue:E,emitModelValue:()=>(E(),a.monthPicker?d(T):a.timePicker?d(k):a.yearPicker?d($e):a.weekPicker?e("update:model-value",I()):ee(me(),!0))}},jv=(e,a)=>{const{defaultedFilters:t,propDates:n}=We(e),{validateMonthYearInRange:o}=Xt(e),r=(y,p)=>{let f=y;return t.value.months.includes(Me(f))?(f=p?mt(y,1):Yt(y,1),r(f,p)):f},l=(y,p)=>{let f=y;return t.value.years.includes($e(f))?(f=p?Nn(y,1):ur(y,1),l(f,p)):f},i=(y,p=!1)=>{const f=Be(G(),{month:e.month,year:e.year});let b=y?mt(f,1):Yt(f,1);e.disableYearSelect&&(b=Mt(b,e.year));let k=Me(b),T=$e(b);t.value.months.includes(k)&&(b=r(b,y),k=Me(b),T=$e(b)),t.value.years.includes(T)&&(b=l(b,y),T=$e(b)),o(k,T,y,e.preventMinMaxNavigation)&&c(k,T,p)},c=(y,p,f)=>{a("update-month-year",{month:y,year:p,fromNav:f})},g=M(()=>y=>_r(Be(G(),{month:e.month,year:e.year}),n.value.maxDate,n.value.minDate,e.preventMinMaxNavigation,y));return{handleMonthYearChange:i,isDisabled:g,updateMonthYear:c}};var da=(e=>(e.center="center",e.left="left",e.right="right",e))(da||{}),ht=(e=>(e.month="month",e.year="year",e))(ht||{}),ta=(e=>(e.top="top",e.bottom="bottom",e))(ta||{}),oa=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(oa||{}),wt=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(wt||{});const Qv=({menuRef:e,menuRefInner:a,inputRef:t,pickerWrapperRef:n,inline:o,emit:r,props:l,slots:i})=>{const c=C({}),g=C(!1),y=C({top:"0",left:"0"}),p=C(!1),f=La(l,"teleportCenter");ut(f,()=>{y.value=JSON.parse(JSON.stringify({})),Y()});const b=w=>{if(l.teleport){const h=w.getBoundingClientRect();return{left:h.left+window.scrollX,top:h.top+window.scrollY}}return{top:0,left:0}},k=(w,h)=>{y.value.left=`${w+h-c.value.width}px`},T=w=>{y.value.left=`${w}px`},R=(w,h)=>{l.position===da.left&&T(w),l.position===da.right&&k(w,h),l.position===da.center&&(y.value.left=`${w+h/2-c.value.width/2}px`)},Z=w=>{const{width:h,height:E}=w.getBoundingClientRect(),{top:te,left:de}=l.altPosition?l.altPosition(w):b(w);return{top:+te,left:+de,width:h,height:E}},q=()=>{y.value.left="50%",y.value.top="50%",y.value.transform="translate(-50%, -50%)",y.value.position="fixed",delete y.value.opacity},x=()=>{const w=at(t),{top:h,left:E,transform:te}=l.altPosition(w);y.value={top:`${h}px`,left:`${E}px`,transform:te??""}},Y=(w=!0)=>{var h;if(!o.value.enabled){if(f.value)return q();if(l.altPosition!==null)return x();if(w){const E=l.teleport?(h=a.value)==null?void 0:h.$el:e.value;E&&(c.value=E.getBoundingClientRect()),r("recalculate-position")}return me()}},K=({inputEl:w,left:h,width:E})=>{window.screen.width>768&&!g.value&&R(h,E),z(w)},W=w=>{const{top:h,left:E,height:te,width:de}=Z(w);y.value.top=`${te+h+ +l.offset}px`,p.value=!1,g.value||(y.value.left=`${E+de/2-c.value.width/2}px`),K({inputEl:w,left:E,width:de})},N=w=>{const{top:h,left:E,width:te}=Z(w);y.value.top=`${h-+l.offset-c.value.height}px`,p.value=!0,K({inputEl:w,left:E,width:te})},z=w=>{if(l.autoPosition){const{left:h,width:E}=Z(w),{left:te,right:de}=c.value;if(!g.value){if(Math.abs(te)!==Math.abs(de)){if(te<=0)return g.value=!0,T(h);if(de>=document.documentElement.clientWidth)return g.value=!0,k(h,E)}return R(h,E)}}},ae=()=>{const w=at(t);if(w){const{height:h}=c.value,{top:E,height:te}=w.getBoundingClientRect(),de=window.innerHeight-E-te,ee=E;return h<=de?ta.bottom:h>de&&h<=ee?ta.top:de>=ee?ta.bottom:ta.top}return ta.bottom},ie=w=>ae()===ta.bottom?W(w):N(w),me=()=>{const w=at(t);if(w)return l.autoPosition?ie(w):W(w)},B=function(w){if(w){const h=w.scrollHeight>w.clientHeight,E=window.getComputedStyle(w).overflowY.indexOf("hidden")!==-1;return h&&!E}return!0},Q=function(w){return!w||w===document.body||w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:B(w)?w:Q(w.parentNode)},se=w=>{if(w)switch(l.position){case da.left:return{left:0,transform:"translateX(0)"};case da.right:return{left:`${w.width}px`,transform:"translateX(-100%)"};default:return{left:`${w.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:y,xCorrect:g,setMenuPosition:Y,getScrollableParent:Q,shadowRender:(w,h)=>{var E,te,de;const ee=document.createElement("div"),A=(E=at(t))==null?void 0:E.getBoundingClientRect();ee.setAttribute("id","dp--temp-container");const I=(te=n.value)!=null&&te.clientWidth?n.value:document.body;I.append(ee);const d=se(A),m=zr(w,{...h,shadow:!0,style:{opacity:0,position:"absolute",...d}},Object.fromEntries(Object.keys(i).filter(L=>["right-sidebar","left-sidebar"].includes(L)).map(L=>[L,i[L]])));ao(m,ee),c.value=(de=m.el)==null?void 0:de.getBoundingClientRect(),ao(null,ee),I.removeChild(ee)}}},Wt=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]}],Gv=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],Uv={all:()=>Wt,monthYear:()=>Wt.filter(e=>e.use.includes("month-year")),input:()=>Gv,timePicker:()=>Wt.filter(e=>e.use.includes("time")),action:()=>Wt.filter(e=>e.use.includes("action")),calendar:()=>Wt.filter(e=>e.use.includes("calendar")),menu:()=>Wt.filter(e=>e.use.includes("menu")),shared:()=>Wt.filter(e=>e.use.includes("shared")),yearMode:()=>Wt.filter(e=>e.use.includes("year-mode"))},ct=(e,a,t)=>{const n=[];return Uv[a]().forEach(o=>{e[o.name]&&n.push(o.name)}),t!=null&&t.length&&t.forEach(o=>{o.slot&&n.push(o.slot)}),n},xa=e=>{const a=M(()=>n=>e.value?n?e.value.open:e.value.close:""),t=M(()=>n=>e.value?n?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:a,showTransition:!!e.value,menuTransition:t}},Aa=(e,a)=>{const{defaultedRange:t,defaultedTz:n}=We(e),o=G(Lt(G(),n.value.timezone)),r=C([{month:Me(o),year:$e(o)}]),l=Ta({hours:t.value.enabled?[gt(o),gt(o)]:gt(o),minutes:t.value.enabled?[xt(o),xt(o)]:xt(o),seconds:t.value.enabled?[0,0]:0}),i=M({get:()=>e.internalModelValue,set:y=>{!e.readonly&&!e.disabled&&a("update:internal-model-value",y)}}),c=M(()=>y=>r.value[y]?r.value[y].month:0),g=M(()=>y=>r.value[y]?r.value[y].year:0);return{calendars:r,time:l,modelValue:i,month:c,year:g}},Kv=(e,a)=>{const{defaultedMultiCalendars:t,defaultedMultiDates:n,defaultedHighlight:o,defaultedTz:r,propDates:l,defaultedRange:i}=We(a),{isDisabled:c}=Xt(a),g=C(null),y=C(Lt(new Date,r.value.timezone)),p=d=>{!d.current&&a.hideOffsetDates||(g.value=d.value)},f=()=>{g.value=null},b=d=>Array.isArray(e.value)&&i.value.enabled&&e.value[0]&&g.value?d?Ge(g.value,e.value[0]):ze(g.value,e.value[0]):!0,k=(d,m)=>{const L=()=>e.value?m?e.value[0]||null:e.value[1]:null,H=e.value&&Array.isArray(e.value)?L():null;return Ve(G(d.value),H)},T=d=>{const m=Array.isArray(e.value)?e.value[0]:null;return d?!ze(g.value??null,m):!0},R=(d,m=!0)=>(i.value.enabled||a.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?a.hideOffsetDates&&!d.current?!1:Ve(G(d.value),e.value[m?0:1]):i.value.enabled?k(d,m)&&T(m)||Ve(d.value,Array.isArray(e.value)?e.value[0]:null)&&b(m):!1,Z=(d,m,L)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?d?!1:L?Ge(e.value[0],m.value):ze(e.value[0],m.value):!1,q=d=>!e.value||a.hideOffsetDates&&!d.current?!1:i.value.enabled?a.modelAuto&&Array.isArray(e.value)?Ve(d.value,e.value[0]?e.value[0]:y.value):!1:n.value.enabled&&Array.isArray(e.value)?e.value.some(m=>Ve(m,d.value)):Ve(d.value,e.value?e.value:y.value),x=d=>{if(i.value.autoRange||a.weekPicker){if(g.value){if(a.hideOffsetDates&&!d.current)return!1;const m=Ue(g.value,+i.value.autoRange),L=Rt(G(g.value),a.weekStart);return a.weekPicker?Ve(L[1],G(d.value)):Ve(m,G(d.value))}return!1}return!1},Y=d=>{if(i.value.autoRange||a.weekPicker){if(g.value){const m=Ue(g.value,+i.value.autoRange);if(a.hideOffsetDates&&!d.current)return!1;const L=Rt(G(g.value),a.weekStart);return a.weekPicker?Ge(d.value,L[0])&&ze(d.value,L[1]):Ge(d.value,g.value)&&ze(d.value,m)}return!1}return!1},K=d=>{if(i.value.autoRange||a.weekPicker){if(g.value){if(a.hideOffsetDates&&!d.current)return!1;const m=Rt(G(g.value),a.weekStart);return a.weekPicker?Ve(m[0],d.value):Ve(g.value,d.value)}return!1}return!1},W=d=>Qa(e.value,g.value,d.value),N=()=>a.modelAuto&&Array.isArray(a.internalModelValue)?!!a.internalModelValue[0]:!1,z=()=>a.modelAuto?mr(a.internalModelValue):!0,ae=d=>{if(a.weekPicker)return!1;const m=i.value.enabled?!R(d)&&!R(d,!1):!0;return!c(d.value)&&!q(d)&&!(!d.current&&a.hideOffsetDates)&&m},ie=d=>i.value.enabled?a.modelAuto?N()&&q(d):!1:q(d),me=d=>o.value?_v(d.value,l.value.highlight):!1,B=d=>{const m=c(d.value);return m&&(typeof o.value=="function"?!o.value(d.value,m):!o.value.options.highlightDisabled)},Q=d=>{var m;return typeof o.value=="function"?o.value(d.value):(m=o.value.weekdays)==null?void 0:m.includes(d.value.getDay())},se=d=>(i.value.enabled||a.weekPicker)&&(!(t.value.count>0)||d.current)&&z()&&!(!d.current&&a.hideOffsetDates)&&!q(d)?W(d):!1,w=d=>{const{isRangeStart:m,isRangeEnd:L}=de(d),H=i.value.enabled?m||L:!1;return{dp__cell_offset:!d.current,dp__pointer:!a.disabled&&!(!d.current&&a.hideOffsetDates)&&!c(d.value),dp__cell_disabled:c(d.value),dp__cell_highlight:!B(d)&&(me(d)||Q(d))&&!ie(d)&&!H&&!K(d)&&!(se(d)&&a.weekPicker)&&!L,dp__cell_highlight_active:!B(d)&&(me(d)||Q(d))&&ie(d),dp__today:!a.noToday&&Ve(d.value,y.value)&&d.current,"dp--past":ze(d.value,y.value),"dp--future":Ge(d.value,y.value)}},h=d=>({dp__active_date:ie(d),dp__date_hover:ae(d)}),E=d=>{if(e.value&&!Array.isArray(e.value)){const m=Rt(e.value,a.weekStart);return{...A(d),dp__range_start:Ve(m[0],d.value),dp__range_end:Ve(m[1],d.value),dp__range_between_week:Ge(d.value,m[0])&&ze(d.value,m[1])}}return{...A(d)}},te=d=>{if(e.value&&Array.isArray(e.value)){const m=Rt(e.value[0],a.weekStart),L=e.value[1]?Rt(e.value[1],a.weekStart):[];return{...A(d),dp__range_start:Ve(m[0],d.value)||Ve(L[0],d.value),dp__range_end:Ve(m[1],d.value)||Ve(L[1],d.value),dp__range_between_week:Ge(d.value,m[0])&&ze(d.value,m[1])||Ge(d.value,L[0])&&ze(d.value,L[1]),dp__range_between:Ge(d.value,m[1])&&ze(d.value,L[0])}}return{...A(d)}},de=d=>{const m=t.value.count>0?d.current&&R(d)&&z():R(d)&&z(),L=t.value.count>0?d.current&&R(d,!1)&&z():R(d,!1)&&z();return{isRangeStart:m,isRangeEnd:L}},ee=d=>{const{isRangeStart:m,isRangeEnd:L}=de(d);return{dp__range_start:m,dp__range_end:L,dp__range_between:se(d),dp__date_hover:ae(d),dp__date_hover_start:Z(ae(d),d,!0),dp__date_hover_end:Z(ae(d),d,!1)}},A=d=>({...ee(d),dp__cell_auto_range:Y(d),dp__cell_auto_range_start:K(d),dp__cell_auto_range_end:x(d)}),I=d=>i.value.enabled?i.value.autoRange?A(d):a.modelAuto?{...h(d),...ee(d)}:a.weekPicker?te(d):ee(d):a.weekPicker?E(d):h(d);return{setHoverDate:p,clearHoverDate:f,getDayClassData:d=>a.hideOffsetDates&&!d.current?{}:{...w(d),...I(d),[a.dayClass?a.dayClass(d.value):""]:!0,[a.calendarCellClassName]:!!a.calendarCellClassName}}},Xt=e=>{const{defaultedFilters:a,defaultedRange:t,propDates:n,defaultedMultiDates:o}=We(e),r=B=>n.value.disabledDates?typeof n.value.disabledDates=="function"?n.value.disabledDates(G(B)):!!Ha(B,n.value.disabledDates):!1,l=B=>{const Q=n.value.maxDate?Ge(B,n.value.maxDate):!1,se=n.value.minDate?ze(B,n.value.minDate):!1,w=r(B),h=a.value.months.map(A=>+A).includes(Me(B)),E=e.disabledWeekDays.length?e.disabledWeekDays.some(A=>+A===mm(B)):!1,te=p(B),de=$e(B),ee=de<+e.yearRange[0]||de>+e.yearRange[1];return!(Q||se||w||h||ee||E||te)},i=(B,Q)=>ze(...qt(n.value.minDate,B,Q))||Ve(...qt(n.value.minDate,B,Q)),c=(B,Q)=>Ge(...qt(n.value.maxDate,B,Q))||Ve(...qt(n.value.maxDate,B,Q)),g=(B,Q,se)=>{let w=!1;return n.value.maxDate&&se&&c(B,Q)&&(w=!0),n.value.minDate&&!se&&i(B,Q)&&(w=!0),w},y=(B,Q,se,w)=>{let h=!1;return w?n.value.minDate&&n.value.maxDate?h=g(B,Q,se):(n.value.minDate&&i(B,Q)||n.value.maxDate&&c(B,Q))&&(h=!0):h=!0,h},p=B=>Array.isArray(n.value.allowedDates)&&!n.value.allowedDates.length?!0:n.value.allowedDates?!Ha(B,n.value.allowedDates):!1,f=B=>!l(B),b=B=>t.value.noDisabledRange?!Uo({start:B[0],end:B[1]}).some(Q=>f(Q)):!0,k=B=>{if(B){const Q=$e(B);return Q>=+e.yearRange[0]&&Q<=e.yearRange[1]}return!0},T=(B,Q)=>!!(Array.isArray(B)&&B[Q]&&(t.value.maxRange||t.value.minRange)&&k(B[Q])),R=(B,Q,se=0)=>{if(T(Q,se)&&k(B)){const w=Qo(B,Q[se]),h=yr(Q[se],B),E=h.length===1?0:h.filter(de=>f(de)).length,te=Math.abs(w)-(t.value.minMaxRawRange?0:E);if(t.value.minRange&&t.value.maxRange)return te>=+t.value.minRange&&te<=+t.value.maxRange;if(t.value.minRange)return te>=+t.value.minRange;if(t.value.maxRange)return te<=+t.value.maxRange}return!0},Z=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,q=B=>Array.isArray(B)?[B[0]?dn(B[0]):null,B[1]?dn(B[1]):null]:dn(B),x=(B,Q,se)=>B.find(w=>+w.hours===gt(Q)&&w.minutes==="*"?!0:+w.minutes===xt(Q)&&+w.hours===gt(Q))&&se,Y=(B,Q,se)=>{const[w,h]=B,[E,te]=Q;return!x(w,E,se)&&!x(h,te,se)&&se},K=(B,Q)=>{const se=Array.isArray(Q)?Q:[Q];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?Y(e.disabledTimes,se,B):!se.some(w=>x(e.disabledTimes,w,B)):B},W=(B,Q)=>{const se=Array.isArray(Q)?[na(Q[0]),Q[1]?na(Q[1]):void 0]:na(Q),w=!e.disabledTimes(se);return B&&w},N=(B,Q)=>e.disabledTimes?Array.isArray(e.disabledTimes)?K(Q,B):W(Q,B):Q,z=B=>{let Q=!0;if(!B||Z())return!0;const se=!n.value.minDate&&!n.value.maxDate?q(B):B;return(e.maxTime||n.value.maxDate)&&(Q=_o(e.maxTime,n.value.maxDate,"max",ot(se),Q)),(e.minTime||n.value.minDate)&&(Q=_o(e.minTime,n.value.minDate,"min",ot(se),Q)),N(B,Q)},ae=B=>{if(!e.monthPicker)return!0;let Q=!0;const se=G(yt(B));if(n.value.minDate&&n.value.maxDate){const w=G(yt(n.value.minDate)),h=G(yt(n.value.maxDate));return Ge(se,w)&&ze(se,h)||Ve(se,w)||Ve(se,h)}if(n.value.minDate){const w=G(yt(n.value.minDate));Q=Ge(se,w)||Ve(se,w)}if(n.value.maxDate){const w=G(yt(n.value.maxDate));Q=ze(se,w)||Ve(se,w)}return Q},ie=M(()=>B=>!e.enableTimePicker||e.ignoreTimeValidation?!0:z(B)),me=M(()=>B=>e.monthPicker?Array.isArray(B)&&(t.value.enabled||o.value.enabled)?!B.filter(Q=>!ae(Q)).length:ae(B):!0);return{isDisabled:f,validateDate:l,validateMonthYearInRange:y,isDateRangeAllowed:b,checkMinMaxRange:R,isValidTime:z,isTimeValid:ie,isMonthValid:me}},Ga=()=>{const e=M(()=>(n,o)=>n==null?void 0:n.includes(o)),a=M(()=>(n,o)=>n.count?n.solo?!0:o===0:!0),t=M(()=>(n,o)=>n.count?n.solo?!0:o===n.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:a,showRightIcon:t}},Xv=(e,a,t)=>{const n=C(0),o=Ta({[oa.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[oa.calendar]:!1,[oa.header]:!1}),r=M(()=>e.monthPicker),l=p=>{var f;if((f=e.flow)!=null&&f.length){if(!p&&r.value)return y();o[p]=!0,Object.keys(o).filter(b=>!o[b]).length||y()}},i=()=>{var p;(p=e.flow)!=null&&p.length&&n.value!==-1&&(n.value+=1,a("flow-step",n.value),y())},c=()=>{n.value=-1},g=(p,f,...b)=>{var k,T;e.flow[n.value]===p&&t.value&&((T=(k=t.value)[f])==null||T.call(k,...b))},y=()=>{g(wt.month,"toggleMonthPicker",!0),g(wt.year,"toggleYearPicker",!0),g(wt.calendar,"toggleTimePicker",!1,!0),g(wt.time,"toggleTimePicker",!0,!0);const p=e.flow[n.value];(p===wt.hours||p===wt.minutes||p===wt.seconds)&&g(p,"toggleTimePicker",!0,!0,p)};return{childMount:l,updateFlowStep:i,resetFlow:c,flowStep:n}},Ua={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[String,Boolean,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:[Object,Boolean],default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},_t={...Ua,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null}},Jv={key:1,class:"dp__input_wrap"},Zv=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],ep={key:2,class:"dp__clear_icon"},tp=j({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Ua},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:a,emit:t}){const n=t,o=e,{defaultedTextInput:r,defaultedAriaLabels:l,defaultedInline:i,defaultedConfig:c,defaultedRange:g,defaultedMultiDates:y,getDefaultPattern:p,getDefaultStartTime:f}=We(o),{checkMinMaxRange:b}=Xt(o),k=C(),T=C(null),R=C(!1),Z=C(!1),q=M(()=>({dp__pointer:!o.disabled&&!o.readonly&&!r.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:!!o.state,dp__input_invalid:o.state===!1,dp__input_focus:R.value||o.isMenuOpen,dp__input_reg:!r.value.enabled,[o.inputClassName]:!!o.inputClassName})),x=()=>{n("set-input-date",null),o.autoApply&&(n("set-empty-date"),k.value=null)},Y=h=>{const E=f();return bv(h,r.value.format??p(),E??gr({},o.enableSeconds),o.inputValue,Z.value,o.formatLocale)},K=h=>{const{rangeSeparator:E}=r.value,[te,de]=h.split(`${E}`);if(te){const ee=Y(te.trim()),A=de?Y(de.trim()):null,I=ee&&A?[ee,A]:[ee];b(A,I,0)&&(k.value=ee?I:null)}},W=()=>{Z.value=!0},N=h=>{if(g.value.enabled)K(h);else if(y.value.enabled){const E=h.split(";");k.value=E.map(te=>Y(te.trim())).filter(te=>te)}else k.value=Y(h)},z=h=>{var E;const te=typeof h=="string"?h:(E=h.target)==null?void 0:E.value;te!==""?(r.value.openMenu&&!o.isMenuOpen&&n("open"),N(te),n("set-input-date",k.value)):x(),Z.value=!1,n("update:input-value",te)},ae=h=>{r.value.enabled?(N(h.target.value),r.value.enterSubmit&&Dn(k.value)&&o.inputValue!==""?(n("set-input-date",k.value,!0),k.value=null):r.value.enterSubmit&&o.inputValue===""&&(k.value=null,n("clear"))):B(h)},ie=h=>{r.value.enabled&&r.value.tabSubmit&&N(h.target.value),r.value.tabSubmit&&Dn(k.value)&&o.inputValue!==""?(n("set-input-date",k.value,!0,!0),k.value=null):r.value.tabSubmit&&o.inputValue===""&&(k.value=null,n("clear",!0))},me=()=>{R.value=!0,n("focus"),At().then(()=>{var h;r.value.enabled&&r.value.selectOnFocus&&((h=T.value)==null||h.select())})},B=h=>{h.preventDefault(),jt(h,c.value,!0),r.value.enabled&&r.value.openMenu&&!i.value.input&&!o.isMenuOpen?n("open"):r.value.enabled||n("toggle")},Q=()=>{n("real-blur"),R.value=!1,(!o.isMenuOpen||i.value.enabled&&i.value.input)&&n("blur"),o.autoApply&&r.value.enabled&&k.value&&!o.isMenuOpen&&(n("set-input-date",k.value),n("select-date"),k.value=null)},se=h=>{jt(h,c.value,!0),n("clear")},w=h=>{if(!r.value.enabled){if(h.code==="Tab")return;h.preventDefault()}};return a({focusInput:()=>{var h;(h=T.value)==null||h.focus({preventScroll:!0})},setParsedDate:h=>{k.value=h}}),(h,E)=>{var te;return u(),v("div",{onClick:B},[h.$slots.trigger&&!h.$slots["dp-input"]&&!s(i).enabled?$(h.$slots,"trigger",{key:0}):S("",!0),!h.$slots.trigger&&(!s(i).enabled||s(i).input)?(u(),v("div",Jv,[h.$slots["dp-input"]&&!h.$slots.trigger&&(!s(i).enabled||s(i).enabled&&s(i).input)?$(h.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:z,onEnter:ae,onTab:ie,onClear:se,onBlur:Q,onKeypress:w,onPaste:W,openMenu:()=>h.$emit("open"),closeMenu:()=>h.$emit("close"),toggleMenu:()=>h.$emit("toggle")}):S("",!0),h.$slots["dp-input"]?S("",!0):(u(),v("input",{key:1,id:h.uid?`dp-input-${h.uid}`:void 0,ref_key:"inputRef",ref:T,name:h.name,class:ve(q.value),inputmode:s(r).enabled?"text":"none",placeholder:h.placeholder,disabled:h.disabled,readonly:h.readonly,required:h.required,value:e.inputValue,autocomplete:h.autocomplete,"aria-label":(te=s(l))==null?void 0:te.input,"aria-disabled":h.disabled||void 0,"aria-invalid":h.state===!1?!0:void 0,onInput:z,onKeydown:[De(ae,["enter"]),De(ie,["tab"]),w],onBlur:Q,onFocus:me,onKeypress:w,onPaste:W},null,42,Zv)),_("div",{onClick:E[2]||(E[2]=de=>n("toggle"))},[h.$slots["input-icon"]&&!h.hideInputIcon?(u(),v("span",{key:0,class:"dp__input_icon",onClick:E[0]||(E[0]=de=>n("toggle"))},[$(h.$slots,"input-icon")])):S("",!0),!h.$slots["input-icon"]&&!h.hideInputIcon&&!h.$slots["dp-input"]?(u(),le(s(ga),{key:1,class:"dp__input_icon dp__input_icons",onClick:E[1]||(E[1]=de=>n("toggle"))})):S("",!0)]),h.$slots["clear-icon"]&&e.inputValue&&h.clearable&&!h.disabled&&!h.readonly?(u(),v("span",ep,[$(h.$slots,"clear-icon",{clear:se})])):S("",!0),h.clearable&&!h.$slots["clear-icon"]&&e.inputValue&&!h.disabled&&!h.readonly?(u(),le(s(dr),{key:3,class:"dp__clear_icon dp__input_icons",onClick:E[3]||(E[3]=Le(de=>se(de),["prevent"]))})):S("",!0)])):S("",!0)])}}}),ap=["title"],np=["disabled"],op=j({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},..._t},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:a}){const t=a,n=e,{defaultedActionRow:o,defaultedPreviewFormat:r,defaultedMultiCalendars:l,defaultedTextInput:i,defaultedInline:c,defaultedRange:g,defaultedMultiDates:y,getDefaultPattern:p}=We(n),{isTimeValid:f,isMonthValid:b}=Xt(n),{buildMatrix:k}=Kt(),T=C(null),R=C(null),Z=C(!1),q=C({}),x=C(null),Y=C(null);je(()=>{n.arrowNavigation&&k([at(T),at(R)],"actionRow"),K(),window.addEventListener("resize",K)}),Gt(()=>{window.removeEventListener("resize",K)});const K=()=>{Z.value=!1,setTimeout(()=>{var w,h;const E=(w=x.value)==null?void 0:w.getBoundingClientRect(),te=(h=Y.value)==null?void 0:h.getBoundingClientRect();E&&te&&(q.value.maxWidth=`${te.width-E.width-20}px`),Z.value=!0},0)},W=M(()=>g.value.enabled&&!g.value.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),N=M(()=>!f.value(n.internalModelValue)||!b.value(n.internalModelValue)||!W.value),z=()=>{const w=r.value;return n.timePicker||n.monthPicker,w(ot(n.internalModelValue))},ae=()=>{const w=n.internalModelValue;return l.value.count>0?`${ie(w[0])} - ${ie(w[1])}`:[ie(w[0]),ie(w[1])]},ie=w=>br(w,r.value,n.formatLocale,i.value.rangeSeparator,n.modelAuto,p()),me=M(()=>!n.internalModelValue||!n.menuMount?"":typeof r.value=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?ae():y.value.enabled?n.internalModelValue.map(w=>`${ie(w)}`):n.modelAuto?`${ie(n.internalModelValue[0])}`:`${ie(n.internalModelValue[0])} -`:ie(n.internalModelValue):z()),B=()=>y.value.enabled?"; ":" - ",Q=M(()=>Array.isArray(me.value)?me.value.join(B()):me.value),se=()=>{f.value(n.internalModelValue)&&b.value(n.internalModelValue)&&W.value?t("select-date"):t("invalid-select")};return(w,h)=>(u(),v("div",{ref_key:"actionRowRef",ref:Y,class:"dp__action_row"},[w.$slots["action-row"]?$(w.$slots,"action-row",Je(Ne({key:0},{internalModelValue:w.internalModelValue,disabled:N.value,selectDate:()=>w.$emit("select-date"),closePicker:()=>w.$emit("close-picker")}))):(u(),v(ue,{key:1},[s(o).showPreview?(u(),v("div",{key:0,class:"dp__selection_preview",title:Q.value,style:dt(q.value)},[w.$slots["action-preview"]&&Z.value?$(w.$slots,"action-preview",{key:0,value:w.internalModelValue}):S("",!0),!w.$slots["action-preview"]&&Z.value?(u(),v(ue,{key:1},[Oe(re(Q.value),1)],64)):S("",!0)],12,ap)):S("",!0),_("div",{ref_key:"actionBtnContainer",ref:x,class:"dp__action_buttons","data-dp-element":"action-row"},[w.$slots["action-buttons"]?$(w.$slots,"action-buttons",{key:0,value:w.internalModelValue}):S("",!0),w.$slots["action-buttons"]?S("",!0):(u(),v(ue,{key:1},[!s(c).enabled&&s(o).showCancel?(u(),v("button",{key:0,ref_key:"cancelButtonRef",ref:T,type:"button",class:"dp__action_button dp__action_cancel",onClick:h[0]||(h[0]=E=>w.$emit("close-picker")),onKeydown:[h[1]||(h[1]=De(E=>w.$emit("close-picker"),["enter"])),h[2]||(h[2]=De(E=>w.$emit("close-picker"),["space"]))]},re(w.cancelText),545)):S("",!0),s(o).showNow?(u(),v("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:h[3]||(h[3]=E=>w.$emit("select-now")),onKeydown:[h[4]||(h[4]=De(E=>w.$emit("select-now"),["enter"])),h[5]||(h[5]=De(E=>w.$emit("select-now"),["space"]))]},re(w.nowButtonLabel),33)):S("",!0),s(o).showSelect?(u(),v("button",{key:2,ref_key:"selectButtonRef",ref:R,type:"button",class:"dp__action_button dp__action_select",disabled:N.value,onKeydown:[De(se,["enter"]),De(se,["space"])],onClick:se},re(w.selectText),41,np)):S("",!0)],64))],512)],64))],512))}}),rp=["onKeydown"],lp={class:"dp__selection_grid_header"},sp=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],ip=["aria-label"],Ca=j({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:a,emit:t}){const{setSelectionGrid:n,buildMultiLevelMatrix:o,setMonthPicker:r}=Kt(),l=t,i=e,{defaultedAriaLabels:c,defaultedTextInput:g,defaultedConfig:y}=We(i),{hideNavigationButtons:p}=Ga(),f=C(!1),b=C(null),k=C(null),T=C([]),R=C(),Z=C(null),q=C(0),x=C(null);qr(()=>{b.value=null}),je(()=>{At().then(()=>me()),i.noOverlayFocus||K(),Y(!0)}),Gt(()=>Y(!1));const Y=ee=>{var A;i.arrowNavigation&&((A=i.headerRefs)!=null&&A.length?r(ee):n(ee))},K=()=>{var ee;const A=at(k);A&&(g.value.enabled||(b.value?(ee=b.value)==null||ee.focus({preventScroll:!0}):A.focus({preventScroll:!0})),f.value=A.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!i.useRelative,"dp--overlay-relative":i.useRelative})),N=M(()=>i.useRelative?{height:`${i.height}px`,width:"260px"}:void 0),z=M(()=>({dp__overlay_col:!0})),ae=M(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:f.value,dp__button_bottom:i.isLast})),ie=M(()=>{var ee,A;return{dp__overlay_container:!0,dp__container_flex:((ee=i.items)==null?void 0:ee.length)<=6,dp__container_block:((A=i.items)==null?void 0:A.length)>6}});ut(()=>i.items,()=>me(!1),{deep:!0});const me=(ee=!0)=>{At().then(()=>{const A=at(b),I=at(k),d=at(Z),m=at(x),L=d?d.getBoundingClientRect().height:0;I&&(I.getBoundingClientRect().height?q.value=I.getBoundingClientRect().height-L:q.value=y.value.modeHeight-L),A&&m&&ee&&(m.scrollTop=A.offsetTop-m.offsetTop-(q.value/2-A.getBoundingClientRect().height)-L)})},B=ee=>{ee.disabled||l("selected",ee.value)},Q=()=>{l("toggle"),l("reset-flow")},se=()=>{i.escClose&&Q()},w=(ee,A,I,d)=>{ee&&((A.active||A.value===i.focusValue)&&(b.value=ee),i.arrowNavigation&&(Array.isArray(T.value[I])?T.value[I][d]=ee:T.value[I]=[ee],h()))},h=()=>{var ee,A;const I=(ee=i.headerRefs)!=null&&ee.length?[i.headerRefs].concat(T.value):T.value.concat([i.skipButtonRef?[]:[Z.value]]);o(ot(I),(A=i.headerRefs)!=null&&A.length?"monthPicker":"selectionGrid")},E=ee=>{i.arrowNavigation||jt(ee,y.value,!0)},te=ee=>{R.value=ee,l("hover-value",ee)},de=()=>{if(Q(),!i.isLast){const ee=gv(i.menuWrapRef??null,"action-row");if(ee){const A=vr(ee);A==null||A.focus()}}};return a({focusGrid:K}),(ee,A)=>{var I;return u(),v("div",{ref_key:"gridWrapRef",ref:k,class:ve(W.value),style:dt(N.value),role:"dialog",tabindex:"0",onKeydown:[De(Le(se,["prevent"]),["esc"]),A[0]||(A[0]=De(Le(d=>E(d),["prevent"]),["left"])),A[1]||(A[1]=De(Le(d=>E(d),["prevent"]),["up"])),A[2]||(A[2]=De(Le(d=>E(d),["prevent"]),["down"])),A[3]||(A[3]=De(Le(d=>E(d),["prevent"]),["right"]))]},[_("div",{ref_key:"containerRef",ref:x,class:ve(ie.value),role:"grid",style:dt({height:`${q.value}px`})},[_("div",lp,[$(ee.$slots,"header")]),ee.$slots.overlay?$(ee.$slots,"overlay",{key:0}):(u(!0),v(ue,{key:1},_e(ee.items,(d,m)=>(u(),v("div",{key:m,class:ve(["dp__overlay_row",{dp__flex_row:ee.items.length>=3}]),role:"row"},[(u(!0),v(ue,null,_e(d,(L,H)=>(u(),v("div",{key:L.value,ref_for:!0,ref:xe=>w(xe,L,m,H),role:"gridcell",class:ve(z.value),"aria-selected":L.active||void 0,"aria-disabled":L.disabled||void 0,tabindex:"0",onClick:xe=>B(L),onKeydown:[De(Le(xe=>B(L),["prevent"]),["enter"]),De(Le(xe=>B(L),["prevent"]),["space"])],onMouseover:xe=>te(L.value)},[_("div",{class:ve(L.className)},[ee.$slots.item?$(ee.$slots,"item",{key:0,item:L}):S("",!0),ee.$slots.item?S("",!0):(u(),v(ue,{key:1},[Oe(re(L.text),1)],64))],2)],42,sp))),128))],2))),128))],6),ee.$slots["button-icon"]?ca((u(),v("button",{key:0,ref_key:"toggleButton",ref:Z,type:"button","aria-label":(I=s(c))==null?void 0:I.toggleOverlay,class:ve(ae.value),tabindex:"0",onClick:Q,onKeydown:[De(Q,["enter"]),De(de,["tab"])]},[$(ee.$slots,"button-icon")],42,ip)),[[Ra,!s(p)(ee.hideNavigation,ee.type)]]):S("",!0)],46,rp)}}}),Ka=j({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const a=e,t=M(()=>a.multiCalendars>0?[...Array(a.multiCalendars).keys()]:[0]),n=M(()=>({dp__instance_calendar:a.multiCalendars>0}));return(o,r)=>(u(),v("div",{class:ve({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse})},[(u(!0),v(ue,null,_e(t.value,(l,i)=>(u(),v("div",{key:l,class:ve(n.value)},[$(o.$slots,"default",{instance:l,index:i})],2))),128))],2))}}),up=["aria-label","aria-disabled"],$a=j({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:a}){const t=a,n=C(null);return je(()=>t("set-ref",n)),(o,r)=>(u(),v("button",{ref_key:"elRef",ref:n,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:r[0]||(r[0]=l=>o.$emit("activate")),onKeydown:[r[1]||(r[1]=De(Le(l=>o.$emit("activate"),["prevent"]),["enter"])),r[2]||(r[2]=De(Le(l=>o.$emit("activate"),["prevent"]),["space"]))]},[_("span",{class:ve(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[$(o.$slots,"default")],2)],40,up))}}),dp={class:"dp--year-mode-picker"},cp=["aria-label"],Dr=j({__name:"YearModePicker",props:{..._t,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:a}){const t=a,n=e,{showRightIcon:o,showLeftIcon:r}=Ga(),{defaultedConfig:l,defaultedMultiCalendars:i,defaultedAriaLabels:c,defaultedTransitions:g}=We(n),{showTransition:y,transitionName:p}=xa(g),f=(T=!1,R)=>{t("toggle-year-picker",{flow:T,show:R})},b=T=>{t("year-select",T)},k=(T=!1)=>{t("handle-year",T)};return(T,R)=>{var Z,q,x;return u(),v("div",dp,[s(r)(s(i),e.instance)?(u(),le($a,{key:0,ref:"mpPrevIconRef","aria-label":(Z=s(c))==null?void 0:Z.prevYear,disabled:e.isDisabled(!1),onActivate:R[0]||(R[0]=Y=>k(!1))},{default:D(()=>[T.$slots["arrow-left"]?$(T.$slots,"arrow-left",{key:0}):S("",!0),T.$slots["arrow-left"]?S("",!0):(u(),le(s(zn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),_("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(q=s(c))==null?void 0:q.openYearsOverlay,onClick:R[1]||(R[1]=()=>f(!1)),onKeydown:R[2]||(R[2]=De(()=>f(!1),["enter"]))},[T.$slots.year?$(T.$slots,"year",{key:0,year:e.year}):S("",!0),T.$slots.year?S("",!0):(u(),v(ue,{key:1},[Oe(re(e.year),1)],64))],40,cp),s(o)(s(i),e.instance)?(u(),le($a,{key:1,ref:"mpNextIconRef","aria-label":(x=s(c))==null?void 0:x.nextYear,disabled:e.isDisabled(!0),onActivate:R[3]||(R[3]=Y=>k(!0))},{default:D(()=>[T.$slots["arrow-right"]?$(T.$slots,"arrow-right",{key:0}):S("",!0),T.$slots["arrow-right"]?S("",!0):(u(),le(s(qn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),U(Et,{name:s(p)(e.showYearPicker),css:s(y)},{default:D(()=>[e.showYearPicker?(u(),le(Ca,{key:0,items:e.items,"text-input":T.textInput,"esc-close":T.escClose,config:T.config,"is-last":T.autoApply&&!s(l).keepActionRow,"hide-navigation":T.hideNavigation,"aria-labels":T.ariaLabels,type:"year",onToggle:f,onSelected:R[4]||(R[4]=Y=>b(Y))},rt({"button-icon":D(()=>[T.$slots["calendar-icon"]?$(T.$slots,"calendar-icon",{key:0}):S("",!0),T.$slots["calendar-icon"]?S("",!0):(u(),le(s(ga),{key:1}))]),_:2},[T.$slots["year-overlay-value"]?{name:"item",fn:D(({item:Y})=>[$(T.$slots,"year-overlay-value",{text:Y.text,value:Y.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):S("",!0)]),_:3},8,["name","css"])])}}}),Zn=(e,a,t)=>{if(a.value&&Array.isArray(a.value))if(a.value.some(n=>Ve(e,n))){const n=a.value.filter(o=>!Ve(o,e));a.value=n.length?n:null}else(t&&+t>a.value.length||!t)&&a.value.push(e);else a.value=[e]},eo=(e,a,t)=>{let n=e.value?e.value.slice():[];return n.length===2&&n[1]!==null&&(n=[]),n.length?ze(a,n[0])?(n.unshift(a),t("range-start",n[0]),t("range-start",n[1])):(n[1]=a,t("range-end",a)):(n=[a],t("range-start",a)),n},Xa=(e,a,t,n)=>{e&&(e[0]&&e[1]&&t&&a("auto-apply"),e[0]&&!e[1]&&n&&t&&a("auto-apply"))},Pr=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(a=>Lt(G(a),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=Lt(G(e.value),e.timezone))},Mr=(e,a,t,n)=>Array.isArray(a.value)&&(a.value.length===2||a.value.length===1&&n.value.partialRange)?n.value.fixedStart&&(Ge(e,a.value[0])||Ve(e,a.value[0]))?[a.value[0],e]:n.value.fixedEnd&&(ze(e,a.value[1])||Ve(e,a.value[1]))?[e,a.value[1]]:(t("invalid-fixed-range",e),a.value):[],Tr=({multiCalendars:e,highlight:a,propDates:t,calendars:n,modelValue:o,props:r,filters:l,year:i,month:c,emit:g})=>{const y=M(()=>Un(r.yearRange,r.locale,r.reverseYears)),p=C([!1]),f=M(()=>(W,N)=>{const z=Be(yt(new Date),{month:c.value(W),year:i.value(W)});return _r(z,t.value.maxDate,t.value.minDate,r.preventMinMaxNavigation,N)}),b=()=>{for(let W=0;W{if(!W)return b();const N=Be(G(),n.value[W]);return n.value[0].year=$e(ur(N,e.value.count-1)),b()},T=W=>r.focusStartDate?W[0]:W[1]?W[1]:W[0],R=()=>{if(o.value){const W=Array.isArray(o.value)?T(o.value):o.value;n.value[0]={month:Me(W),year:$e(W)}}};je(()=>{R(),e.value.count&&b()});const Z=(W,N)=>{n.value[N].year=W,e.value.count&&!e.value.solo&&k(N)},q=M(()=>W=>fa(y.value,N=>{var z;const ae=i.value(W)===N.value,ie=Ma(N.value,ha(t.value.minDate),ha(t.value.maxDate))||((z=l.value.years)==null?void 0:z.includes(i.value(W))),me=Jn(a.value,N.value);return{active:ae,disabled:ie,highlighted:me}})),x=(W,N)=>{Z(W,N),K(N)},Y=(W,N=!1)=>{if(!f.value(W,N)){const z=N?i.value(W)+1:i.value(W)-1;Z(z,W)}},K=(W,N=!1,z)=>{N||g("reset-flow"),z!==void 0?p.value[W]=z:p.value[W]=!p.value[W],p.value||g("overlay-closed")};return{isDisabled:f,groupedYears:q,showYearPicker:p,selectYear:Z,toggleYearPicker:K,handleYearSelect:x,handleYear:Y}},mp=(e,a)=>{const{defaultedMultiCalendars:t,defaultedAriaLabels:n,defaultedTransitions:o,defaultedConfig:r,defaultedRange:l,defaultedHighlight:i,propDates:c,defaultedTz:g,defaultedFilters:y,defaultedMultiDates:p}=We(e),{modelValue:f,year:b,month:k,calendars:T}=Aa(e,a),R=M(()=>cr(e.formatLocale,e.locale,e.monthNameFormat)),Z=C(null),{checkMinMaxRange:q}=Xt(e),{selectYear:x,groupedYears:Y,showYearPicker:K,toggleYearPicker:W,handleYearSelect:N,handleYear:z,isDisabled:ae}=Tr({modelValue:f,multiCalendars:t,highlight:i,calendars:T,year:b,propDates:c,month:k,filters:y,props:e,emit:a});je(()=>{e.startDate&&(f.value&&e.focusStartDate||!f.value)&&x($e(G(e.startDate)),0)});const ie=d=>d?{month:Me(d),year:$e(d)}:{month:null,year:null},me=()=>f.value?Array.isArray(f.value)?f.value.map(d=>ie(d)):ie(f.value):ie(),B=(d,m)=>{const L=T.value[d],H=me();return Array.isArray(H)?H.some(xe=>xe.year===(L==null?void 0:L.year)&&xe.month===m):(L==null?void 0:L.year)===H.year&&m===H.month},Q=(d,m,L)=>{var H,xe;const Ye=me();return Array.isArray(Ye)?b.value(m)===((H=Ye[L])==null?void 0:H.year)&&d===((xe=Ye[L])==null?void 0:xe.month):!1},se=(d,m)=>{if(l.value.enabled){const L=me();if(Array.isArray(f.value)&&Array.isArray(L)){const H=Q(d,m,0)||Q(d,m,1),xe=It(yt(G()),d,b.value(m));return Qa(f.value,Z.value,xe)&&!H}return!1}return!1},w=M(()=>d=>fa(R.value,m=>{var L;const H=B(d,m.value),xe=Ma(m.value,fr(b.value(d),c.value.minDate),hr(b.value(d),c.value.maxDate))||Mv(c.value.disabledDates,b.value(d)).includes(m.value)||((L=y.value.months)==null?void 0:L.includes(m.value)),Ye=se(m.value,d),V=wr(i.value,m.value,b.value(d));return{active:H,disabled:xe,isBetween:Ye,highlighted:V}})),h=(d,m)=>It(yt(G()),d,b.value(m)),E=(d,m)=>{const L=f.value?f.value:yt(new Date);f.value=It(L,d,b.value(m)),a("auto-apply"),a("update-flow-step")},te=(d,m)=>{const L=h(d,m);l.value.fixedEnd||l.value.fixedStart?f.value=Mr(L,f,a,l):f.value?q(L,f.value)&&(f.value=eo(f,h(d,m),a)):f.value=[h(d,m)],Xa(f.value,a,e.autoApply,e.modelAuto)},de=(d,m)=>{Zn(h(d,m),f,p.value.limit),a("auto-apply",!0)},ee=(d,m)=>(T.value[m].month=d,I(m,T.value[m].year,d),p.value.enabled?de(d,m):l.value.enabled?te(d,m):E(d,m)),A=(d,m)=>{x(d,m),I(m,d,null)},I=(d,m,L)=>{let H=L;if(!H&&H!==0){const xe=me();H=Array.isArray(xe)?xe[d].month:xe.month}a("update-month-year",{instance:d,year:m,month:H})};return{groupedMonths:w,groupedYears:Y,year:b,isDisabled:ae,defaultedMultiCalendars:t,defaultedAriaLabels:n,defaultedTransitions:o,defaultedConfig:r,showYearPicker:K,modelValue:f,presetDate:(d,m)=>{Pr({value:d,modelValue:f,range:l.value.enabled,timezone:m?void 0:g.value.timezone}),a("auto-apply")},setHoverDate:(d,m)=>{Z.value=h(d,m)},selectMonth:ee,selectYear:A,toggleYearPicker:W,handleYearSelect:N,handleYear:z,getModelMonthYear:me}},vp=j({compatConfig:{MODE:3},__name:"MonthPicker",props:{..._t},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range"],setup(e,{expose:a,emit:t}){const n=t,o=Ut(),r=ct(o,"yearMode"),l=e;je(()=>{l.shadow||n("mount",null)});const{groupedMonths:i,groupedYears:c,year:g,isDisabled:y,defaultedMultiCalendars:p,defaultedConfig:f,showYearPicker:b,modelValue:k,presetDate:T,setHoverDate:R,selectMonth:Z,selectYear:q,toggleYearPicker:x,handleYearSelect:Y,handleYear:K,getModelMonthYear:W}=mp(l,n);return a({getSidebarProps:()=>({modelValue:k,year:g,getModelMonthYear:W,selectMonth:Z,selectYear:q,handleYear:K}),presetDate:T,toggleYearPicker:N=>x(0,N)}),(N,z)=>(u(),le(Ka,{"multi-calendars":s(p).count,collapse:N.collapse,stretch:""},{default:D(({instance:ae})=>[N.$slots["month-year"]?$(N.$slots,"month-year",Je(Ne({key:0},{year:s(g),months:s(i)(ae),years:s(c)(ae),selectMonth:s(Z),selectYear:s(q),instance:ae}))):(u(),le(Ca,{key:1,items:s(i)(ae),"arrow-navigation":N.arrowNavigation,"is-last":N.autoApply&&!s(f).keepActionRow,"esc-close":N.escClose,height:s(f).modeHeight,config:N.config,"no-overlay-focus":!!(N.noOverlayFocus||N.textInput),"use-relative":"",type:"month",onSelected:ie=>s(Z)(ie,ae),onHoverValue:ie=>s(R)(ie,ae)},{header:D(()=>[U(Dr,Ne(N.$props,{items:s(c)(ae),instance:ae,"show-year-picker":s(b)[ae],year:s(g)(ae),"is-disabled":ie=>s(y)(ae,ie),onHandleYear:ie=>s(K)(ae,ie),onYearSelect:ie=>s(Y)(ie,ae),onToggleYearPicker:ie=>s(x)(ae,ie==null?void 0:ie.flow,ie==null?void 0:ie.show)}),rt({_:2},[_e(s(r),(ie,me)=>({name:ie,fn:D(B=>[$(N.$slots,ie,Je(it(B)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),pp=(e,a)=>{const{modelValue:t}=Aa(e,a),n=C(null),{defaultedHighlight:o,defaultedMultiDates:r,defaultedFilters:l,defaultedRange:i,propDates:c}=We(e),g=C();je(()=>{e.startDate&&(t.value&&e.focusStartDate||!t.value)&&(g.value=$e(G(e.startDate)))});const y=k=>Array.isArray(t.value)?t.value.some(T=>$e(T)===k):t.value?$e(t.value)===k:!1,p=k=>i.value.enabled&&Array.isArray(t.value)?Qa(t.value,n.value,b(k)):!1,f=M(()=>fa(Un(e.yearRange,e.locale,e.reverseYears),k=>{const T=y(k.value),R=Ma(k.value,ha(c.value.minDate),ha(c.value.maxDate))||l.value.years.includes(k.value),Z=p(k.value)&&!T,q=Jn(o.value,k.value);return{active:T,disabled:R,isBetween:Z,highlighted:q}})),b=k=>Mt(yt(new Date),k);return{groupedYears:f,modelValue:t,focusYear:g,setHoverValue:k=>{n.value=Mt(yt(new Date),k)},selectYear:k=>{var T;if(a("update-month-year",{instance:0,year:k}),r.value.enabled)return t.value?Array.isArray(t.value)&&(((T=t.value)==null?void 0:T.map(R=>$e(R))).includes(k)?t.value=t.value.filter(R=>$e(R)!==k):t.value.push(Mt(vt(G()),k))):t.value=[Mt(vt(G()),k)],a("auto-apply",!0);if(i.value.enabled)return t.value=eo(t,b(k),a),Xa(t.value,a,e.autoApply,e.modelAuto);t.value=b(k),a("auto-apply")}}},fp=j({compatConfig:{MODE:3},__name:"YearPicker",props:{..._t},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:a,emit:t}){const n=t,o=e,{groupedYears:r,modelValue:l,focusYear:i,selectYear:c,setHoverValue:g}=pp(o,n),{defaultedConfig:y}=We(o);return a({getSidebarProps:()=>({modelValue:l,selectYear:c})}),(p,f)=>(u(),v("div",null,[p.$slots["month-year"]?$(p.$slots,"month-year",Je(Ne({key:0},{years:s(r),selectYear:s(c)}))):(u(),le(Ca,{key:1,items:s(r),"is-last":p.autoApply&&!s(y).keepActionRow,height:s(y).modeHeight,config:p.config,"no-overlay-focus":!!(p.noOverlayFocus||p.textInput),"focus-value":s(i),type:"year","use-relative":"",onSelected:s(c),onHoverValue:s(g)},rt({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:D(({item:b})=>[$(p.$slots,"year-overlay-value",{text:b.text,value:b.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),hp={key:0,class:"dp__time_input"},yp=["aria-label","onKeydown","onClick"],gp=_("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),_p=_("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),bp=["aria-label","disabled","onKeydown","onClick"],wp=["aria-label","onKeydown","onClick"],kp=_("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),$p=_("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),Dp={key:0},Pp=["aria-label","onKeydown"],Mp=j({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},..._t},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:a,emit:t}){const n=t,o=e,{setTimePickerElements:r,setTimePickerBackRef:l}=Kt(),{defaultedAriaLabels:i,defaultedTransitions:c,defaultedFilters:g,defaultedConfig:y,defaultedRange:p}=We(o),{transitionName:f,showTransition:b}=xa(c),k=Ta({hours:!1,minutes:!1,seconds:!1}),T=C("AM"),R=C(null),Z=C([]);je(()=>{n("mounted")});const q=V=>Be(new Date,{hours:V.hours,minutes:V.minutes,seconds:o.enableSeconds?V.seconds:0,milliseconds:0}),x=M(()=>V=>w(V,o[V])||K(V,o[V])),Y=M(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),K=(V,F)=>p.value.enabled&&!p.value.disableTimeRangeValidation?!o.validateTime(V,F):!1,W=(V,F)=>{if(p.value.enabled&&!p.value.disableTimeRangeValidation){const be=F?+o[`${V}Increment`]:-+o[`${V}Increment`],P=o[V]+be;return!o.validateTime(V,P)}return!1},N=M(()=>V=>!de(+o[V]+ +o[`${V}Increment`],V)||W(V,!0)),z=M(()=>V=>!de(+o[V]-+o[`${V}Increment`],V)||W(V,!1)),ae=(V,F)=>Wo(Be(G(),V),F),ie=(V,F)=>dv(Be(G(),V),F),me=M(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),B=M(()=>{const V=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return o.enableSeconds?V.concat([{type:"",separator:!0},{type:"seconds"}]):V}),Q=M(()=>B.value.filter(V=>!V.separator)),se=M(()=>V=>{if(V==="hours"){const F=m(+o.hours);return{text:F<10?`0${F}`:`${F}`,value:F}}return{text:o[V]<10?`0${o[V]}`:`${o[V]}`,value:o[V]}}),w=(V,F)=>{var be;if(!o.disabledTimesConfig)return!1;const P=o.disabledTimesConfig(o.order,V==="hours"?F:void 0);return P[V]?!!((be=P[V])!=null&&be.includes(F)):!0},h=V=>{const F=o.is24?24:12,be=V==="hours"?F:60,P=+o[`${V}GridIncrement`],X=V==="hours"&&!o.is24?P:0,ge=[];for(let Pe=X;Pe({active:!1,disabled:g.value.times[V].includes(Pe.value)||!de(Pe.value,V)||w(V,Pe.value)||K(V,Pe.value)}))},E=V=>V>=0?V:59,te=V=>V>=0?V:23,de=(V,F)=>{const be=o.minTime?q(ln(o.minTime)):null,P=o.maxTime?q(ln(o.maxTime)):null,X=q(ln(Y.value,F,F==="minutes"||F==="seconds"?E(V):te(V)));return be&&P?(Pa(X,P)||aa(X,P))&&(Da(X,be)||aa(X,be)):be?Da(X,be)||aa(X,be):P?Pa(X,P)||aa(X,P):!0},ee=V=>o[`no${V[0].toUpperCase()+V.slice(1)}Overlay`],A=V=>{ee(V)||(k[V]=!k[V],k[V]||n("overlay-closed"))},I=V=>V==="hours"?gt:V==="minutes"?xt:pa,d=(V,F=!0)=>{const be=F?ae:ie,P=F?+o[`${V}Increment`]:-+o[`${V}Increment`];de(+o[V]+P,V)&&n(`update:${V}`,I(V)(be({[V]:+o[V]},{[V]:+o[`${V}Increment`]})))},m=V=>o.is24?V:(V>=12?T.value="PM":T.value="AM",vv(V)),L=()=>{T.value==="PM"?(T.value="AM",n("update:hours",o.hours-12)):(T.value="PM",n("update:hours",o.hours+12)),n("am-pm-change",T.value)},H=V=>{k[V]=!0},xe=(V,F,be)=>{if(V&&o.arrowNavigation){Array.isArray(Z.value[F])?Z.value[F][be]=V:Z.value[F]=[V];const P=Z.value.reduce((X,ge)=>ge.map((Pe,he)=>[...X[he]||[],ge[he]]),[]);l(o.closeTimePickerBtn),R.value&&(P[1]=P[1].concat(R.value)),r(P,o.order)}},Ye=(V,F)=>(A(V),V==="hours"&&!o.is24?n(`update:${V}`,T.value==="PM"?F+12:F):n(`update:${V}`,F));return a({openChildCmp:H}),(V,F)=>{var be;return V.disabled?S("",!0):(u(),v("div",hp,[(u(!0),v(ue,null,_e(B.value,(P,X)=>{var ge,Pe,he;return u(),v("div",{key:X,class:ve(me.value)},[P.separator?(u(),v(ue,{key:0},[Oe(" : ")],64)):(u(),v(ue,{key:1},[_("button",{ref_for:!0,ref:oe=>xe(oe,X,0),type:"button",class:ve({dp__btn:!0,dp__inc_dec_button:!V.timePickerInline,dp__inc_dec_button_inline:V.timePickerInline,dp__tp_inline_btn_top:V.timePickerInline,dp__inc_dec_button_disabled:N.value(P.type)}),"aria-label":(ge=s(i))==null?void 0:ge.incrementValue(P.type),tabindex:"0",onKeydown:[De(Le(oe=>d(P.type),["prevent"]),["enter"]),De(Le(oe=>d(P.type),["prevent"]),["space"])],onClick:oe=>d(P.type)},[o.timePickerInline?(u(),v(ue,{key:1},[gp,_p],64)):(u(),v(ue,{key:0},[V.$slots["arrow-up"]?$(V.$slots,"arrow-up",{key:0}):S("",!0),V.$slots["arrow-up"]?S("",!0):(u(),le(s(Qn),{key:1}))],64))],42,yp),_("button",{ref_for:!0,ref:oe=>xe(oe,X,1),type:"button","aria-label":(Pe=s(i))==null?void 0:Pe.openTpOverlay(P.type),class:ve({dp__time_display:!0,dp__time_display_block:!V.timePickerInline,dp__time_display_inline:V.timePickerInline,"dp--time-invalid":x.value(P.type),"dp--time-overlay-btn":!x.value(P.type)}),disabled:ee(P.type),tabindex:"0",onKeydown:[De(Le(oe=>A(P.type),["prevent"]),["enter"]),De(Le(oe=>A(P.type),["prevent"]),["space"])],onClick:oe=>A(P.type)},[V.$slots[P.type]?$(V.$slots,P.type,{key:0,text:se.value(P.type).text,value:se.value(P.type).value}):S("",!0),V.$slots[P.type]?S("",!0):(u(),v(ue,{key:1},[Oe(re(se.value(P.type).text),1)],64))],42,bp),_("button",{ref_for:!0,ref:oe=>xe(oe,X,2),type:"button",class:ve({dp__btn:!0,dp__inc_dec_button:!V.timePickerInline,dp__inc_dec_button_inline:V.timePickerInline,dp__tp_inline_btn_bottom:V.timePickerInline,dp__inc_dec_button_disabled:z.value(P.type)}),"aria-label":(he=s(i))==null?void 0:he.decrementValue(P.type),tabindex:"0",onKeydown:[De(Le(oe=>d(P.type,!1),["prevent"]),["enter"]),De(Le(oe=>d(P.type,!1),["prevent"]),["space"])],onClick:oe=>d(P.type,!1)},[o.timePickerInline?(u(),v(ue,{key:1},[kp,$p],64)):(u(),v(ue,{key:0},[V.$slots["arrow-down"]?$(V.$slots,"arrow-down",{key:0}):S("",!0),V.$slots["arrow-down"]?S("",!0):(u(),le(s(Gn),{key:1}))],64))],42,wp)],64))],2)}),128)),V.is24?S("",!0):(u(),v("div",Dp,[V.$slots["am-pm-button"]?$(V.$slots,"am-pm-button",{key:0,toggle:L,value:T.value}):S("",!0),V.$slots["am-pm-button"]?S("",!0):(u(),v("button",{key:1,ref_key:"amPmButton",ref:R,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(be=s(i))==null?void 0:be.amPmButton,tabindex:"0",onClick:L,onKeydown:[De(Le(L,["prevent"]),["enter"]),De(Le(L,["prevent"]),["space"])]},re(T.value),41,Pp))])),(u(!0),v(ue,null,_e(Q.value,(P,X)=>(u(),le(Et,{key:X,name:s(f)(k[P.type]),css:s(b)},{default:D(()=>[k[P.type]?(u(),le(Ca,{key:0,items:h(P.type),"is-last":V.autoApply&&!s(y).keepActionRow,"esc-close":V.escClose,type:P.type,"text-input":V.textInput,config:V.config,"arrow-navigation":V.arrowNavigation,"aria-labels":V.ariaLabels,onSelected:ge=>Ye(P.type,ge),onToggle:ge=>A(P.type),onResetFlow:F[0]||(F[0]=ge=>V.$emit("reset-flow"))},rt({"button-icon":D(()=>[V.$slots["clock-icon"]?$(V.$slots,"clock-icon",{key:0}):S("",!0),V.$slots["clock-icon"]?S("",!0):(u(),le(Tt(V.timePickerInline?s(ga):s(jn)),{key:1}))]),_:2},[V.$slots[`${P.type}-overlay-value`]?{name:"item",fn:D(({item:ge})=>[$(V.$slots,`${P.type}-overlay-value`,{text:ge.text,value:ge.value})]),key:"0"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):S("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),Tp={class:"dp--tp-wrap"},Sp=["aria-label","tabindex"],xp=["tabindex"],Ap=["aria-label"],Sr=j({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},..._t},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:a,emit:t}){const n=t,o=e,{buildMatrix:r,setTimePicker:l}=Kt(),i=Ut(),{defaultedTransitions:c,defaultedAriaLabels:g,defaultedTextInput:y,defaultedConfig:p,defaultedRange:f}=We(o),{transitionName:b,showTransition:k}=xa(c),{hideNavigationButtons:T}=Ga(),R=C(null),Z=C(null),q=C([]),x=C(null);je(()=>{n("mount"),!o.timePicker&&o.arrowNavigation?r([at(R.value)],"time"):l(!0,o.timePicker)});const Y=M(()=>f.value.enabled&&o.modelAuto?mr(o.internalModelValue):!0),K=C(!1),W=h=>({hours:Array.isArray(o.hours)?o.hours[h]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[h]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[h]:o.seconds}),N=M(()=>{const h=[];if(f.value.enabled)for(let E=0;E<2;E++)h.push(W(E));else h.push(W(0));return h}),z=(h,E=!1,te="")=>{E||n("reset-flow"),K.value=h,n(h?"overlay-opened":"overlay-closed"),o.arrowNavigation&&l(h),At(()=>{te!==""&&q.value[0]&&q.value[0].openChildCmp(te)})},ae=M(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!p.value.keepActionRow})),ie=ct(i,"timePicker"),me=(h,E,te)=>f.value.enabled?E===0?[h,N.value[1][te]]:[N.value[0][te],h]:h,B=h=>{n("update:hours",h)},Q=h=>{n("update:minutes",h)},se=h=>{n("update:seconds",h)},w=()=>{if(x.value&&!y.value.enabled&&!o.noOverlayFocus){const h=vr(x.value);h&&h.focus({preventScroll:!0})}};return a({toggleTimePicker:z}),(h,E)=>{var te;return u(),v("div",Tp,[!h.timePicker&&!h.timePickerInline?ca((u(),v("button",{key:0,ref_key:"openTimePickerBtn",ref:R,type:"button",class:ve(ae.value),"aria-label":(te=s(g))==null?void 0:te.openTimePicker,tabindex:h.noOverlayFocus?void 0:0,onKeydown:[E[0]||(E[0]=De(de=>z(!0),["enter"])),E[1]||(E[1]=De(de=>z(!0),["space"]))],onClick:E[2]||(E[2]=de=>z(!0))},[h.$slots["clock-icon"]?$(h.$slots,"clock-icon",{key:0}):S("",!0),h.$slots["clock-icon"]?S("",!0):(u(),le(s(jn),{key:1}))],42,Sp)),[[Ra,!s(T)(h.hideNavigation,"time")]]):S("",!0),U(Et,{name:s(b)(K.value),css:s(k)&&!h.timePickerInline},{default:D(()=>{var de;return[K.value||h.timePicker||h.timePickerInline?(u(),v("div",{key:0,ref_key:"overlayRef",ref:x,class:ve({dp__overlay:!h.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!h.timePickerInline,"dp--overlay-relative":o.timePicker}),style:dt(h.timePicker?{height:`${s(p).modeHeight}px`}:void 0),tabindex:h.timePickerInline?void 0:0},[_("div",{class:ve(h.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[h.$slots["time-picker-overlay"]?$(h.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:B,setMinutes:Q,setSeconds:se}):S("",!0),h.$slots["time-picker-overlay"]?S("",!0):(u(),v("div",{key:1,class:ve(h.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(u(!0),v(ue,null,_e(N.value,(ee,A)=>ca((u(),le(Mp,Ne({key:A},{...h.$props,order:A,hours:ee.hours,minutes:ee.minutes,seconds:ee.seconds,closeTimePickerBtn:Z.value,disabledTimesConfig:e.disabledTimesConfig,disabled:A===0?h.fixedStart:h.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:q,"validate-time":(I,d)=>e.validateTime(I,me(d,A,I)),"onUpdate:hours":I=>B(me(I,A,"hours")),"onUpdate:minutes":I=>Q(me(I,A,"minutes")),"onUpdate:seconds":I=>se(me(I,A,"seconds")),onMounted:w,onOverlayClosed:w,onAmPmChange:E[3]||(E[3]=I=>h.$emit("am-pm-change",I))}),rt({_:2},[_e(s(ie),(I,d)=>({name:I,fn:D(m=>[$(h.$slots,I,Je(it(m)))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[Ra,A===0?!0:Y.value]])),128))],2)),!h.timePicker&&!h.timePickerInline?ca((u(),v("button",{key:2,ref_key:"closeTimePickerBtn",ref:Z,type:"button",class:ve(ae.value),"aria-label":(de=s(g))==null?void 0:de.closeTimePicker,tabindex:"0",onKeydown:[E[4]||(E[4]=De(ee=>z(!1),["enter"])),E[5]||(E[5]=De(ee=>z(!1),["space"]))],onClick:E[6]||(E[6]=ee=>z(!1))},[h.$slots["calendar-icon"]?$(h.$slots,"calendar-icon",{key:0}):S("",!0),h.$slots["calendar-icon"]?S("",!0):(u(),le(s(ga),{key:1}))],42,Ap)),[[Ra,!s(T)(h.hideNavigation,"time")]]):S("",!0)],2)],14,xp)):S("",!0)]}),_:3},8,["name","css"])])}}}),xr=(e,a,t,n)=>{const{defaultedRange:o}=We(e),r=(x,Y)=>Array.isArray(a[x])?a[x][Y]:a[x],l=x=>e.enableSeconds?Array.isArray(a.seconds)?a.seconds[x]:a.seconds:0,i=(x,Y)=>x?Y!==void 0?Qt(x,r("hours",Y),r("minutes",Y),l(Y)):Qt(x,a.hours,a.minutes,l()):Wn(G(),l(Y)),c=(x,Y)=>{a[x]=Y},g=M(()=>e.modelAuto&&o.value.enabled?Array.isArray(t.value)?t.value.length>1:!1:o.value.enabled),y=(x,Y)=>{const K=Object.fromEntries(Object.keys(a).map(W=>W===x?[W,Y]:[W,a[W]].slice()));if(g.value&&!o.value.disableTimeRangeValidation){const W=z=>t.value?Qt(t.value[z],K.hours[z],K.minutes[z],K.seconds[z]):null,N=z=>Fn(t.value[z],0);return!(Ve(W(0),W(1))&&(Da(W(0),N(1))||Pa(W(1),N(0))))}return!0},p=(x,Y)=>{y(x,Y)&&(c(x,Y),n&&n())},f=x=>{p("hours",x)},b=x=>{p("minutes",x)},k=x=>{p("seconds",x)},T=(x,Y,K,W)=>{Y&&f(x),!Y&&!K&&b(x),K&&k(x),t.value&&W(t.value)},R=x=>{if(x){const Y=Array.isArray(x),K=Y?[+x[0].hours,+x[1].hours]:+x.hours,W=Y?[+x[0].minutes,+x[1].minutes]:+x.minutes,N=Y?[+x[0].seconds,+x[1].seconds]:+x.seconds;c("hours",K),c("minutes",W),e.enableSeconds&&c("seconds",N)}},Z=(x,Y)=>{const K={hours:Array.isArray(a.hours)?a.hours[x]:a.hours,disabledArr:[]};return(Y||Y===0)&&(K.hours=Y),Array.isArray(e.disabledTimes)&&(K.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[x])?e.disabledTimes[x]:e.disabledTimes),K},q=M(()=>(x,Y)=>{var K;if(Array.isArray(e.disabledTimes)){const{disabledArr:W,hours:N}=Z(x,Y),z=W.filter(ae=>+ae.hours===N);return((K=z[0])==null?void 0:K.minutes)==="*"?{hours:[N],minutes:void 0,seconds:void 0}:{hours:[],minutes:(z==null?void 0:z.map(ae=>+ae.minutes))??[],seconds:(z==null?void 0:z.map(ae=>ae.seconds?+ae.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:c,updateHours:f,updateMinutes:b,updateSeconds:k,getSetDateTime:i,updateTimeValues:T,getSecondsValue:l,assignStartTime:R,validateTime:y,disabledTimesConfig:q}},Cp=(e,a)=>{const{modelValue:t,time:n}=Aa(e,a),{defaultedStartTime:o,defaultedRange:r}=We(e),{updateTimeValues:l,getSetDateTime:i,setTime:c,assignStartTime:g,disabledTimesConfig:y,validateTime:p}=xr(e,n,t),f=x=>{const{hours:Y,minutes:K,seconds:W}=x;return{hours:+Y,minutes:+K,seconds:W?+W:0}},b=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const Y=f(e.startTime[0]),K=f(e.startTime[1]);return[Be(G(),Y),Be(G(),K)]}const x=f(e.startTime);return Be(G(),x)}return r.value.enabled?[null,null]:null},k=()=>{if(r.value.enabled){const[x,Y]=b();t.value=[i(x,0),i(Y,1)]}else t.value=i(b())},T=x=>Array.isArray(x)?[na(G(x[0])),na(G(x[1]))]:[na(x??G())],R=(x,Y,K)=>{c("hours",x),c("minutes",Y),c("seconds",e.enableSeconds?K:0)},Z=()=>{const[x,Y]=T(t.value);return r.value.enabled?R([x.hours,Y.hours],[x.minutes,Y.minutes],[x.seconds,Y.seconds]):R(x.hours,x.minutes,x.seconds)};je(()=>{if(!e.shadow)return g(o.value),t.value?Z():k()});const q=()=>{Array.isArray(t.value)?t.value=t.value.map((x,Y)=>x&&i(x,Y)):t.value=i(t.value),a("time-update")};return{modelValue:t,time:n,disabledTimesConfig:y,updateTime:(x,Y=!0,K=!1)=>{l(x,Y,K,q)},validateTime:p}},Vp=j({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{..._t},emits:["update:internal-model-value","time-update","am-pm-change"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=Ut(),l=ct(r,"timePicker"),{time:i,modelValue:c,disabledTimesConfig:g,updateTime:y,validateTime:p}=Cp(o,n);return a({getSidebarProps:()=>({modelValue:c,time:i,updateTime:y})}),(f,b)=>(u(),le(Ka,{"multi-calendars":0,stretch:""},{default:D(()=>[U(Sr,Ne(f.$props,{hours:s(i).hours,minutes:s(i).minutes,seconds:s(i).seconds,"internal-model-value":f.internalModelValue,"disabled-times-config":s(g),"validate-time":s(p),"onUpdate:hours":b[0]||(b[0]=k=>s(y)(k)),"onUpdate:minutes":b[1]||(b[1]=k=>s(y)(k,!1)),"onUpdate:seconds":b[2]||(b[2]=k=>s(y)(k,!1,!0)),onAmPmChange:b[3]||(b[3]=k=>f.$emit("am-pm-change",k))}),rt({_:2},[_e(s(l),(k,T)=>({name:k,fn:D(R=>[$(f.$slots,k,Je(it(R)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),Op={class:"dp__month_year_row"},Np=["aria-label","onClick","onKeydown"],Rp=j({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},..._t},emits:["update-month-year","mount","reset-flow","overlay-closed"],setup(e,{expose:a,emit:t}){const n=t,o=e,{defaultedTransitions:r,defaultedAriaLabels:l,defaultedMultiCalendars:i,defaultedFilters:c,defaultedConfig:g,defaultedHighlight:y,propDates:p}=We(o),{transitionName:f,showTransition:b}=xa(r),{buildMatrix:k}=Kt(),{handleMonthYearChange:T,isDisabled:R,updateMonthYear:Z}=jv(o,n),{showLeftIcon:q,showRightIcon:x}=Ga(),Y=C(!1),K=C(!1),W=C([null,null,null,null]);je(()=>{n("mount")});const N=A=>({get:()=>o[A],set:I=>{const d=A===ht.month?ht.year:ht.month;n("update-month-year",{[A]:I,[d]:o[d]}),A===ht.month?w(!0):h(!0)}}),z=M(N(ht.month)),ae=M(N(ht.year)),ie=M(()=>A=>({month:o.month,year:o.year,items:A===ht.month?o.months:o.years,instance:o.instance,updateMonthYear:Z,toggle:A===ht.month?w:h})),me=M(()=>o.months.find(I=>I.value===o.month)||{text:"",value:0}),B=M(()=>fa(o.months,A=>{const I=o.month===A.value,d=Ma(A.value,fr(o.year,p.value.minDate),hr(o.year,p.value.maxDate))||c.value.months.includes(A.value),m=wr(y.value,A.value,o.year);return{active:I,disabled:d,highlighted:m}})),Q=M(()=>fa(o.years,A=>{const I=o.year===A.value,d=Ma(A.value,ha(p.value.minDate),ha(p.value.maxDate))||c.value.years.includes(A.value),m=Jn(y.value,A.value);return{active:I,disabled:d,highlighted:m}})),se=(A,I)=>{I!==void 0?A.value=I:A.value=!A.value,A.value||n("overlay-closed")},w=(A=!1,I)=>{E(A),se(Y,I)},h=(A=!1,I)=>{E(A),se(K,I)},E=A=>{A||n("reset-flow")},te=(A,I)=>{o.arrowNavigation&&(W.value[I]=at(A),k(W.value,"monthYear"))},de=M(()=>{var A,I;return[{type:ht.month,index:1,toggle:w,modelValue:z.value,updateModelValue:d=>z.value=d,text:me.value.text,showSelectionGrid:Y.value,items:B.value,ariaLabel:(A=l.value)==null?void 0:A.openMonthsOverlay},{type:ht.year,index:2,toggle:h,modelValue:ae.value,updateModelValue:d=>ae.value=d,text:pr(o.year,o.locale),showSelectionGrid:K.value,items:Q.value,ariaLabel:(I=l.value)==null?void 0:I.openYearsOverlay}]}),ee=M(()=>o.disableYearSelect?[de.value[0]]:o.yearFirst?[...de.value].reverse():de.value);return a({toggleMonthPicker:w,toggleYearPicker:h,handleMonthYearChange:T}),(A,I)=>{var d,m,L;return u(),v("div",Op,[A.$slots["month-year"]?$(A.$slots,"month-year",Je(Ne({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:s(Z),handleMonthYearChange:s(T),instance:e.instance}))):(u(),v(ue,{key:1},[s(q)(s(i),e.instance)&&!A.vertical?(u(),le($a,{key:0,"aria-label":(d=s(l))==null?void 0:d.prevMonth,disabled:s(R)(!1),onActivate:I[0]||(I[0]=H=>s(T)(!1,!0)),onSetRef:I[1]||(I[1]=H=>te(H,0))},{default:D(()=>[A.$slots["arrow-left"]?$(A.$slots,"arrow-left",{key:0}):S("",!0),A.$slots["arrow-left"]?S("",!0):(u(),le(s(zn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),_("div",{class:ve(["dp__month_year_wrap",{dp__year_disable_select:A.disableYearSelect}])},[(u(!0),v(ue,null,_e(ee.value,(H,xe)=>(u(),v(ue,{key:H.type},[_("button",{ref_for:!0,ref:Ye=>te(Ye,xe+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":H.ariaLabel,onClick:H.toggle,onKeydown:[De(Le(H.toggle,["prevent"]),["enter"]),De(Le(H.toggle,["prevent"]),["space"])]},[A.$slots[H.type]?$(A.$slots,H.type,{key:0,text:H.text,value:o[H.type]}):S("",!0),A.$slots[H.type]?S("",!0):(u(),v(ue,{key:1},[Oe(re(H.text),1)],64))],40,Np),U(Et,{name:s(f)(H.showSelectionGrid),css:s(b)},{default:D(()=>[H.showSelectionGrid?(u(),le(Ca,{key:0,items:H.items,"arrow-navigation":A.arrowNavigation,"hide-navigation":A.hideNavigation,"is-last":A.autoApply&&!s(g).keepActionRow,"skip-button-ref":!1,config:A.config,type:H.type,"header-refs":[],"esc-close":A.escClose,"menu-wrap-ref":A.menuWrapRef,"text-input":A.textInput,"aria-labels":A.ariaLabels,onSelected:H.updateModelValue,onToggle:H.toggle},rt({"button-icon":D(()=>[A.$slots["calendar-icon"]?$(A.$slots,"calendar-icon",{key:0}):S("",!0),A.$slots["calendar-icon"]?S("",!0):(u(),le(s(ga),{key:1}))]),_:2},[A.$slots[`${H.type}-overlay-value`]?{name:"item",fn:D(({item:Ye})=>[$(A.$slots,`${H.type}-overlay-value`,{text:Ye.text,value:Ye.value})]),key:"0"}:void 0,A.$slots[`${H.type}-overlay`]?{name:"overlay",fn:D(()=>[$(A.$slots,`${H.type}-overlay`,Je(it(ie.value(H.type))))]),key:"1"}:void 0,A.$slots[`${H.type}-overlay-header`]?{name:"header",fn:D(()=>[$(A.$slots,`${H.type}-overlay-header`,{toggle:H.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):S("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s(q)(s(i),e.instance)&&A.vertical?(u(),le($a,{key:1,"aria-label":(m=s(l))==null?void 0:m.prevMonth,disabled:s(R)(!1),onActivate:I[2]||(I[2]=H=>s(T)(!1,!0))},{default:D(()=>[A.$slots["arrow-up"]?$(A.$slots,"arrow-up",{key:0}):S("",!0),A.$slots["arrow-up"]?S("",!0):(u(),le(s(Qn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),s(x)(s(i),e.instance)?(u(),le($a,{key:2,ref:"rightIcon",disabled:s(R)(!0),"aria-label":(L=s(l))==null?void 0:L.nextMonth,onActivate:I[3]||(I[3]=H=>s(T)(!0,!0)),onSetRef:I[4]||(I[4]=H=>te(H,A.disableYearSelect?2:3))},{default:D(()=>[A.$slots[A.vertical?"arrow-down":"arrow-right"]?$(A.$slots,A.vertical?"arrow-down":"arrow-right",{key:0}):S("",!0),A.$slots[A.vertical?"arrow-down":"arrow-right"]?S("",!0):(u(),le(Tt(A.vertical?s(Gn):s(qn)),{key:1}))]),_:3},8,["disabled","aria-label"])):S("",!0)],64))])}}}),Ip=["aria-label"],Lp={class:"dp__calendar_header",role:"row"},Yp={key:0,class:"dp__calendar_header_item",role:"gridcell"},Ep=["aria-label"],Bp=_("div",{class:"dp__calendar_header_separator"},null,-1),Hp=["aria-label"],Fp={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},Wp={class:"dp__cell_inner"},zp=["id","aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave","onMousedown"],qp=j({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},..._t},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:a,emit:t}){const n=t,o=e,{buildMultiLevelMatrix:r}=Kt(),{defaultedTransitions:l,defaultedConfig:i,defaultedAriaLabels:c,defaultedMultiCalendars:g,defaultedWeekNumbers:y,defaultedMultiDates:p}=We(o),f=C(null),b=C({bottom:"",left:"",transform:""}),k=C([]),T=C(null),R=C(!0),Z=C(""),q=C({startX:0,endX:0,startY:0,endY:0}),x=C([]),Y=C({left:"50%"}),K=C(!1),W=M(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),N=M(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):mv(o.formatLocale,o.locale,+o.weekStart));je(()=>{n("mount",{cmp:"calendar",refs:k}),i.value.noSwipe||T.value&&(T.value.addEventListener("touchstart",de,{passive:!1}),T.value.addEventListener("touchend",ee,{passive:!1}),T.value.addEventListener("touchmove",A,{passive:!1})),o.monthChangeOnScroll&&T.value&&T.value.addEventListener("wheel",m,{passive:!1})});const z=F=>F?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",ae=(F,be)=>{if(o.transitions){const P=vt(It(G(),o.month,o.year));Z.value=Ge(vt(It(G(),F,be)),P)?l.value[z(!0)]:l.value[z(!1)],R.value=!1,At(()=>{R.value=!0})}},ie=M(()=>({[o.calendarClassName]:!!o.calendarClassName})),me=M(()=>F=>{const be=pv(F);return{dp__marker_dot:be.type==="dot",dp__marker_line:be.type==="line"}}),B=M(()=>F=>Ve(F,f.value)),Q=M(()=>({dp__calendar:!0,dp__calendar_next:g.value.count>0&&o.instance!==0})),se=M(()=>F=>o.hideOffsetDates?F.current:!0),w=F=>ft(F,"yyyy-MM-dd"),h=async(F,be,P)=>{const X=at(k.value[be][P]);if(X){const{width:ge,height:Pe}=X.getBoundingClientRect();f.value=F.value;let he={left:`${ge/2}px`},oe=-50;if(await At(),x.value[0]){const{left:st,width:nt}=x.value[0].getBoundingClientRect();st<0&&(he={left:"0"},oe=0,Y.value.left=`${ge/2}px`),window.innerWidth{var X,ge;if(K.value&&p.value.enabled&&p.value.dragSelect)return n("select-date",F);n("set-hover-date",F),(ge=(X=F.marker)==null?void 0:X.tooltip)!=null&&ge.length&&await h(F,be,P)},te=F=>{f.value&&(f.value=null,b.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",F.marker))},de=F=>{q.value.startX=F.changedTouches[0].screenX,q.value.startY=F.changedTouches[0].screenY},ee=F=>{q.value.endX=F.changedTouches[0].screenX,q.value.endY=F.changedTouches[0].screenY,I()},A=F=>{o.vertical&&!o.inline&&F.preventDefault()},I=()=>{const F=o.vertical?"Y":"X";Math.abs(q.value[`start${F}`]-q.value[`end${F}`])>10&&n("handle-swipe",q.value[`start${F}`]>q.value[`end${F}`]?"right":"left")},d=(F,be,P)=>{F&&(Array.isArray(k.value[be])?k.value[be][P]=F:k.value[be]=[F]),o.arrowNavigation&&r(k.value,"calendar")},m=F=>{o.monthChangeOnScroll&&(F.preventDefault(),n("handle-scroll",F))},L=F=>y.value.type==="local"?Yn(F.value,{weekStartsOn:+o.weekStart}):y.value.type==="iso"?In(F.value):typeof y.value.type=="function"?y.value.type(F.value):"",H=F=>{const be=F[0];return y.value.hideOnOffsetDates?F.some(P=>P.current)?L(be):"":L(be)},xe=(F,be)=>{p.value.enabled||(jt(F,i.value),n("select-date",be))},Ye=F=>{jt(F,i.value)},V=F=>{p.value.enabled&&p.value.dragSelect&&(K.value=!0),n("select-date",F)};return a({triggerTransition:ae}),(F,be)=>{var P;return u(),v("div",{class:ve(Q.value)},[_("div",{ref_key:"calendarWrapRef",ref:T,role:"grid",class:ve(ie.value),"aria-label":(P=s(c))==null?void 0:P.calendarWrap},[_("div",Lp,[F.weekNumbers?(u(),v("div",Yp,re(F.weekNumName),1)):S("",!0),(u(!0),v(ue,null,_e(N.value,(X,ge)=>{var Pe,he;return u(),v("div",{key:ge,class:"dp__calendar_header_item",role:"gridcell","aria-label":(he=(Pe=s(c))==null?void 0:Pe.weekDay)==null?void 0:he.call(Pe,ge)},[F.$slots["calendar-header"]?$(F.$slots,"calendar-header",{key:0,day:X,index:ge}):S("",!0),F.$slots["calendar-header"]?S("",!0):(u(),v(ue,{key:1},[Oe(re(X),1)],64))],8,Ep)}),128))]),Bp,U(Et,{name:Z.value,css:!!F.transitions},{default:D(()=>{var X;return[R.value?(u(),v("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((X=s(c))==null?void 0:X.calendarDays)||void 0,onMouseleave:be[1]||(be[1]=ge=>K.value=!1)},[(u(!0),v(ue,null,_e(W.value,(ge,Pe)=>(u(),v("div",{key:Pe,class:"dp__calendar_row",role:"row"},[F.weekNumbers?(u(),v("div",Fp,[_("div",Wp,re(H(ge.days)),1)])):S("",!0),(u(!0),v(ue,null,_e(ge.days,(he,oe)=>{var st,nt,Ot;return u(),v("div",{id:w(he.value),ref_for:!0,ref:tt=>d(tt,Pe,oe),key:oe+Pe,role:"gridcell",class:"dp__calendar_item","aria-selected":(he.classData.dp__active_date||he.classData.dp__range_start||he.classData.dp__range_start)??void 0,"aria-disabled":he.classData.dp__cell_disabled||void 0,"aria-label":(nt=(st=s(c))==null?void 0:st.day)==null?void 0:nt.call(st,he),tabindex:"0",onClick:Le(tt=>xe(tt,he),["prevent"]),onKeydown:[De(tt=>F.$emit("select-date",he),["enter"]),De(tt=>F.$emit("handle-space",he),["space"])],onMouseenter:tt=>E(he,Pe,oe),onMouseleave:tt=>te(he),onMousedown:tt=>V(he),onMouseup:be[0]||(be[0]=tt=>K.value=!1)},[_("div",{class:ve(["dp__cell_inner",he.classData])},[F.$slots.day&&se.value(he)?$(F.$slots,"day",{key:0,day:+he.text,date:he.value}):S("",!0),F.$slots.day?S("",!0):(u(),v(ue,{key:1},[Oe(re(he.text),1)],64)),he.marker&&se.value(he)?(u(),v(ue,{key:2},[F.$slots.marker?$(F.$slots,"marker",{key:0,marker:he.marker,day:+he.text,date:he.value}):(u(),v("div",{key:1,class:ve(me.value(he.marker)),style:dt(he.marker.color?{backgroundColor:he.marker.color}:{})},null,6))],64)):S("",!0),B.value(he.value)?(u(),v("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:x,class:"dp__marker_tooltip",style:dt(b.value)},[(Ot=he.marker)!=null&&Ot.tooltip?(u(),v("div",{key:0,class:"dp__tooltip_content",onClick:Ye},[(u(!0),v(ue,null,_e(he.marker.tooltip,(tt,Jt)=>(u(),v("div",{key:Jt,class:"dp__tooltip_text"},[F.$slots["marker-tooltip"]?$(F.$slots,"marker-tooltip",{key:0,tooltip:tt,day:he.value}):S("",!0),F.$slots["marker-tooltip"]?S("",!0):(u(),v(ue,{key:1},[_("div",{class:"dp__tooltip_mark",style:dt(tt.color?{backgroundColor:tt.color}:{})},null,4),_("div",null,re(tt.text),1)],64))]))),128)),_("div",{class:"dp__arrow_bottom_tp",style:dt(Y.value)},null,4)])):S("",!0)],4)):S("",!0)],2)],40,zp)}),128))]))),128))],40,Hp)):S("",!0)]}),_:3},8,["name","css"])],10,Ip)],2)}}}),ko=e=>Array.isArray(e),jp=(e,a,t,n)=>{const o=C([]),r=C(new Date),{modelValue:l,calendars:i,time:c}=Aa(e,a),{defaultedMultiCalendars:g,defaultedStartTime:y,defaultedRange:p,defaultedTz:f,propDates:b,defaultedMultiDates:k}=We(e),{validateMonthYearInRange:T,isDisabled:R,isDateRangeAllowed:Z,checkMinMaxRange:q}=Xt(e),{updateTimeValues:x,getSetDateTime:Y,setTime:K,assignStartTime:W,validateTime:N,disabledTimesConfig:z}=xr(e,c,l,n),ae=M(()=>O=>i.value[O]?i.value[O].month:0),ie=M(()=>O=>i.value[O]?i.value[O].year:0),me=(O,ne,ye)=>{var Te,J;i.value[O]||(i.value[O]={month:0,year:0}),i.value[O].month=yo(ne)?(Te=i.value[O])==null?void 0:Te.month:ne,i.value[O].year=yo(ye)?(J=i.value[O])==null?void 0:J.year:ye},B=()=>{e.autoApply&&a("select-date")};ut(l,(O,ne)=>{JSON.stringify(O)!==JSON.stringify(ne)&&w()},{deep:!0}),je(()=>{e.shadow||(l.value||(H(),y.value&&W(y.value)),w(!0),e.focusStartDate&&e.startDate&&H())});const Q=M(()=>{var O;return(O=e.flow)!=null&&O.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),se=()=>{e.autoApply&&Q.value&&a("auto-apply")},w=(O=!1)=>{if(l.value)return Array.isArray(l.value)?(o.value=l.value,I(O)):te(l.value,O);if(g.value.count&&O&&!e.startDate)return E(G(),O)},h=()=>Array.isArray(l.value)&&p.value.enabled?Me(l.value[0])===Me(l.value[1]??l.value[0]):!1,E=(O,ne=!1)=>{if((!g.value.count||!g.value.static||ne)&&me(0,Me(O),$e(O)),g.value.count&&(!g.value.solo||!l.value||h()))for(let ye=1;ye{E(O),K("hours",gt(O)),K("minutes",xt(O)),K("seconds",pa(O)),g.value.count&&ne&&L()},de=O=>{if(g.value.count){if(g.value.solo)return 0;const ne=Me(O[0]),ye=Me(O[1]);return Math.abs(ye-ne){O[1]&&p.value.showLastInRange?E(O[de(O)],ne):E(O[0],ne);const ye=(Te,J)=>[Te(O[0]),O[1]?Te(O[1]):c[J][1]];K("hours",ye(gt,"hours")),K("minutes",ye(xt,"minutes")),K("seconds",ye(pa,"seconds"))},A=(O,ne)=>{if((p.value.enabled||e.weekPicker)&&!k.value.enabled)return ee(O,ne);if(k.value.enabled&&ne){const ye=O[O.length-1];return te(ye,ne)}},I=O=>{const ne=l.value;A(ne,O),g.value.count&&g.value.solo&&L()},d=(O,ne)=>{const ye=Be(G(),{month:ae.value(ne),year:ie.value(ne)}),Te=O<0?mt(ye,1):Yt(ye,1);T(Me(Te),$e(Te),O<0,e.preventMinMaxNavigation)&&(me(ne,Me(Te),$e(Te)),a("update-month-year",{instance:ne,month:Me(Te),year:$e(Te)}),g.value.count&&!g.value.solo&&m(ne),t())},m=O=>{for(let ne=O-1;ne>=0;ne--){const ye=Yt(Be(G(),{month:ae.value(ne+1),year:ie.value(ne+1)}),1);me(ne,Me(ye),$e(ye))}for(let ne=O+1;ne<=g.value.count-1;ne++){const ye=mt(Be(G(),{month:ae.value(ne-1),year:ie.value(ne-1)}),1);me(ne,Me(ye),$e(ye))}},L=()=>{if(Array.isArray(l.value)&&l.value.length===2){const O=G(G(l.value[1]?l.value[1]:mt(l.value[0],1))),[ne,ye]=[Me(l.value[0]),$e(l.value[0])],[Te,J]=[Me(l.value[1]),$e(l.value[1])];(ne!==Te||ne===Te&&ye!==J)&&g.value.solo&&me(1,Me(O),$e(O))}else l.value&&!Array.isArray(l.value)&&(me(0,Me(l.value),$e(l.value)),E(G()))},H=()=>{e.startDate&&(me(0,Me(G(e.startDate)),$e(G(e.startDate))),g.value.count&&m(0))},xe=(O,ne)=>{if(e.monthChangeOnScroll){const ye=new Date().getTime()-r.value.getTime(),Te=Math.abs(O.deltaY);let J=500;Te>1&&(J=100),Te>100&&(J=0),ye>J&&(r.value=new Date,d(e.monthChangeOnScroll!=="inverse"?-O.deltaY:O.deltaY,ne))}},Ye=(O,ne,ye=!1)=>{e.monthChangeOnArrows&&e.vertical===ye&&V(O,ne)},V=(O,ne)=>{d(O==="right"?-1:1,ne)},F=O=>{if(b.value.markers)return Ha(O.value,b.value.markers)},be=(O,ne)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[O==0,!0];case"fair":return[O==0||ne>O,!0];case"append":return[!1,!1];default:return[!1,!1]}},P=(O,ne,ye,Te)=>{if(e.sixWeeks&&O.length<6){const J=6-O.length,we=(ne.getDay()+7-Te)%7,ke=6-(ye.getDay()+7-Te)%7,[Nt,bt]=be(we,ke);for(let Zt=1;Zt<=J;Zt++)if(bt?!!(Zt%2)==Nt:Nt){const Ht=O[0].days[0],nn=X(Ue(Ht.value,-7),Me(ne));O.unshift({days:nn})}else{const Ht=O[O.length-1],nn=Ht.days[Ht.days.length-1],Cr=X(Ue(nn.value,1),Me(ne));O.push({days:Cr})}}return O},X=(O,ne)=>{const ye=G(O),Te=[];for(let J=0;J<7;J++){const we=Ue(ye,J),ke=Me(we)!==ne;Te.push({text:e.hideOffsetDates&&ke?"":we.getDate(),value:we,current:!ke,classData:{}})}return Te},ge=(O,ne)=>{const ye=[],Te=new Date(ne,O),J=new Date(ne,O+1,0),we=e.weekStart,ke=Ct(Te,{weekStartsOn:we}),Nt=bt=>{const Zt=X(bt,O);if(ye.push({days:Zt}),!ye[ye.length-1].days.some(Ht=>Ve(vt(Ht.value),vt(J)))){const Ht=Ue(bt,7);Nt(Ht)}};return Nt(ke),P(ye,Te,J,we)},Pe=O=>{const ne=Qt(G(O.value),c.hours,c.minutes,Jt());a("date-update",ne),k.value.enabled?Zn(ne,l,k.value.limit):l.value=ne,n(),At().then(()=>{se()})},he=O=>p.value.noDisabledRange?yr(o.value[0],O).some(ne=>R(ne)):!1,oe=()=>{o.value=l.value?l.value.slice():[],o.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(o.value=[])},st=(O,ne)=>{const ye=[G(O.value),Ue(G(O.value),+p.value.autoRange)];Z(ye)?(ne&&nt(O.value),o.value=ye):a("invalid-date",O.value)},nt=O=>{const ne=Me(G(O)),ye=$e(G(O));if(me(0,ne,ye),g.value.count>0)for(let Te=1;Te{if(he(O.value)||!q(O.value,l.value,p.value.fixedStart?0:1))return a("invalid-date",O.value);o.value=Mr(G(O.value),l,a,p)},tt=(O,ne)=>{if(oe(),p.value.autoRange)return st(O,ne);if(p.value.fixedStart||p.value.fixedEnd)return Ot(O);o.value[0]?q(G(O.value),l.value)&&!he(O.value)?ze(G(O.value),G(o.value[0]))?(o.value.unshift(G(O.value)),a("range-end",o.value[0])):(o.value[1]=G(O.value),a("range-end",o.value[1])):(e.autoApply&&a("auto-apply-invalid",O.value),a("invalid-date",O.value)):(o.value[0]=G(O.value),a("range-start",o.value[0]))},Jt=(O=!0)=>e.enableSeconds?Array.isArray(c.seconds)?O?c.seconds[0]:c.seconds[1]:c.seconds:0,_a=O=>{o.value[O]=Qt(o.value[O],c.hours[O],c.minutes[O],Jt(O!==1))},ba=()=>{var O,ne;o.value[0]&&o.value[1]&&+((O=o.value)==null?void 0:O[0])>+((ne=o.value)==null?void 0:ne[1])&&(o.value.reverse(),a("range-start",o.value[0]),a("range-end",o.value[1]))},pt=()=>{o.value.length&&(o.value[0]&&!o.value[1]?_a(0):(_a(0),_a(1),n()),ba(),l.value=o.value.slice(),Xa(o.value,a,e.autoApply,e.modelAuto))},Ja=(O,ne=!1)=>{if(R(O.value)||!O.current&&e.hideOffsetDates)return a("invalid-date",O.value);if(!p.value.enabled)return Pe(O);ko(c.hours)&&ko(c.minutes)&&!k.value.enabled&&(tt(O,ne),pt())},Za=(O,ne)=>{var ye;me(O,ne.month,ne.year),g.value.count&&!g.value.solo&&m(O),a("update-month-year",{instance:O,month:ne.month,year:ne.year}),t(g.value.solo?O:void 0);const Te=(ye=e.flow)!=null&&ye.length?e.flow[e.flowStep]:void 0;!ne.fromNav&&(Te===wt.month||Te===wt.year)&&n()},Va=(O,ne)=>{Pr({value:O,modelValue:l,range:p.value.enabled,timezone:ne?void 0:f.value.timezone}),B(),e.multiCalendars&&At().then(()=>w(!0))},en=()=>{p.value.enabled?l.value&&Array.isArray(l.value)&&l.value[0]?l.value=ze(G(),l.value[0])?[G(),l.value[0]]:[l.value[0],G()]:l.value=[G()]:l.value=G(),B()},tn=()=>{if(Array.isArray(l.value))if(k.value.enabled){const O=an();l.value[l.value.length-1]=Y(O)}else l.value=l.value.map((O,ne)=>O&&Y(O,ne));else l.value=Y(l.value);a("time-update")},an=()=>Array.isArray(l.value)&&l.value.length?l.value[l.value.length-1]:null;return{calendars:i,modelValue:l,month:ae,year:ie,time:c,disabledTimesConfig:z,validateTime:N,getCalendarDays:ge,getMarker:F,handleScroll:xe,handleSwipe:V,handleArrow:Ye,selectDate:Ja,updateMonthYear:Za,presetDate:Va,selectCurrentDate:en,updateTime:(O,ne=!0,ye=!1)=>{x(O,ne,ye,tn)}}},Qp={key:0},Gp=j({__name:"DatePicker",props:{..._t},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date"],setup(e,{expose:a,emit:t}){const n=t,o=e,{calendars:r,month:l,year:i,modelValue:c,time:g,disabledTimesConfig:y,validateTime:p,getCalendarDays:f,getMarker:b,handleArrow:k,handleScroll:T,handleSwipe:R,selectDate:Z,updateMonthYear:q,presetDate:x,selectCurrentDate:Y,updateTime:K}=jp(o,n,de,ee),W=Ut(),{setHoverDate:N,getDayClassData:z,clearHoverDate:ae}=Kv(c,o),{defaultedMultiCalendars:ie}=We(o),me=C([]),B=C([]),Q=C(null),se=ct(W,"calendar"),w=ct(W,"monthYear"),h=ct(W,"timePicker"),E=I=>{o.shadow||n("mount",I)};ut(r,()=>{o.shadow||setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const te=M(()=>I=>f(l.value(I),i.value(I)).map(d=>({...d,days:d.days.map(m=>(m.marker=b(m),m.classData=z(m),m))})));function de(I){var d;I||I===0?(d=B.value[I])==null||d.triggerTransition(l.value(I),i.value(I)):B.value.forEach((m,L)=>m.triggerTransition(l.value(L),i.value(L)))}function ee(){n("update-flow-step")}const A=(I,d=!1)=>{Z(I,d),o.spaceConfirm&&n("select-date")};return a({clearHoverDate:ae,presetDate:x,selectCurrentDate:Y,toggleMonthPicker:(I,d,m=0)=>{var L;(L=me.value[m])==null||L.toggleMonthPicker(I,d)},toggleYearPicker:(I,d,m=0)=>{var L;(L=me.value[m])==null||L.toggleYearPicker(I,d)},toggleTimePicker:(I,d,m)=>{var L;(L=Q.value)==null||L.toggleTimePicker(I,d,m)},handleArrow:k,updateMonthYear:q,getSidebarProps:()=>({modelValue:c,month:l,year:i,time:g,updateTime:K,updateMonthYear:q,selectDate:Z,presetDate:x})}),(I,d)=>(u(),v(ue,null,[U(Ka,{"multi-calendars":s(ie).count,collapse:I.collapse},{default:D(({instance:m,index:L})=>[I.disableMonthYearSelect?S("",!0):(u(),le(Rp,Ne({key:0,ref:H=>{H&&(me.value[L]=H)},months:s(cr)(I.formatLocale,I.locale,I.monthNameFormat),years:s(Un)(I.yearRange,I.locale,I.reverseYears),month:s(l)(m),year:s(i)(m),instance:m},I.$props,{onMount:d[0]||(d[0]=H=>E(s(oa).header)),onResetFlow:d[1]||(d[1]=H=>I.$emit("reset-flow")),onUpdateMonthYear:H=>s(q)(m,H),onOverlayClosed:d[2]||(d[2]=H=>I.$emit("focus-menu"))}),rt({_:2},[_e(s(w),(H,xe)=>({name:H,fn:D(Ye=>[$(I.$slots,H,Je(it(Ye)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),U(qp,Ne({ref:H=>{H&&(B.value[L]=H)},"mapped-dates":te.value(m),month:s(l)(m),year:s(i)(m),instance:m},I.$props,{onSelectDate:H=>s(Z)(H,m!==1),onHandleSpace:H=>A(H,m!==1),onSetHoverDate:d[3]||(d[3]=H=>s(N)(H)),onHandleScroll:H=>s(T)(H,m),onHandleSwipe:H=>s(R)(H,m),onMount:d[4]||(d[4]=H=>E(s(oa).calendar)),onResetFlow:d[5]||(d[5]=H=>I.$emit("reset-flow")),onTooltipOpen:d[6]||(d[6]=H=>I.$emit("tooltip-open",H)),onTooltipClose:d[7]||(d[7]=H=>I.$emit("tooltip-close",H))}),rt({_:2},[_e(s(se),(H,xe)=>({name:H,fn:D(Ye=>[$(I.$slots,H,Je(it({...Ye})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),I.enableTimePicker?(u(),v("div",Qp,[I.$slots["time-picker"]?$(I.$slots,"time-picker",Je(Ne({key:0},{time:s(g),updateTime:s(K)}))):(u(),le(Sr,Ne({key:1,ref_key:"timePickerRef",ref:Q},I.$props,{hours:s(g).hours,minutes:s(g).minutes,seconds:s(g).seconds,"internal-model-value":I.internalModelValue,"disabled-times-config":s(y),"validate-time":s(p),onMount:d[8]||(d[8]=m=>E(s(oa).timePicker)),"onUpdate:hours":d[9]||(d[9]=m=>s(K)(m)),"onUpdate:minutes":d[10]||(d[10]=m=>s(K)(m,!1)),"onUpdate:seconds":d[11]||(d[11]=m=>s(K)(m,!1,!0)),onResetFlow:d[12]||(d[12]=m=>I.$emit("reset-flow")),onOverlayClosed:d[13]||(d[13]=m=>I.$emit("time-picker-close")),onOverlayOpened:d[14]||(d[14]=m=>I.$emit("time-picker-open",m)),onAmPmChange:d[15]||(d[15]=m=>I.$emit("am-pm-change",m))}),rt({_:2},[_e(s(h),(m,L)=>({name:m,fn:D(H=>[$(I.$slots,m,Je(it(H)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):S("",!0)],64))}}),Up=(e,a)=>{const t=C(),{defaultedMultiCalendars:n,defaultedConfig:o,defaultedHighlight:r,defaultedRange:l,propDates:i,defaultedFilters:c,defaultedMultiDates:g}=We(e),{modelValue:y,year:p,month:f,calendars:b}=Aa(e,a),{isDisabled:k}=Xt(e),{selectYear:T,groupedYears:R,showYearPicker:Z,isDisabled:q,toggleYearPicker:x,handleYearSelect:Y,handleYear:K}=Tr({modelValue:y,multiCalendars:n,highlight:r,calendars:b,propDates:i,month:f,year:p,filters:c,props:e,emit:a}),W=(w,h)=>[w,h].map(E=>ft(E,"MMMM",{locale:e.formatLocale})).join("-"),N=M(()=>w=>y.value?Array.isArray(y.value)?y.value.some(h=>po(w,h)):po(y.value,w):!1),z=w=>{if(l.value.enabled){if(Array.isArray(y.value)){const h=Ve(w,y.value[0])||Ve(w,y.value[1]);return Qa(y.value,t.value,w)&&!h}return!1}return!1},ae=(w,h)=>w.quarter===ro(h)&&w.year===$e(h),ie=w=>typeof r.value=="function"?r.value({quarter:ro(w),year:$e(w)}):!!r.value.quarters.find(h=>ae(h,w)),me=M(()=>w=>{const h=Be(new Date,{year:p.value(w)});return bc({start:Rn(h),end:Ko(h)}).map(E=>{const te=zt(E),de=io(E),ee=k(E),A=z(te),I=ie(te);return{text:W(te,de),value:te,active:N.value(te),highlighted:I,disabled:ee,isBetween:A}})}),B=w=>{Zn(w,y,g.value.limit),a("auto-apply",!0)},Q=w=>{y.value=eo(y,w,a),Xa(y.value,a,e.autoApply,e.modelAuto)},se=w=>{y.value=w,a("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:n,groupedYears:R,year:p,isDisabled:q,quarters:me,showYearPicker:Z,modelValue:y,setHoverDate:w=>{t.value=w},selectYear:T,selectQuarter:(w,h,E)=>{if(!E)return b.value[h].month=Me(io(w)),g.value.enabled?B(w):l.value.enabled?Q(w):se(w)},toggleYearPicker:x,handleYearSelect:Y,handleYear:K}},Kp={class:"dp--quarter-items"},Xp=["disabled","onClick","onMouseover"],Jp=j({compatConfig:{MODE:3},__name:"QuarterPicker",props:{..._t},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=Ut(),l=ct(r,"yearMode"),{defaultedMultiCalendars:i,defaultedConfig:c,groupedYears:g,year:y,isDisabled:p,quarters:f,modelValue:b,showYearPicker:k,setHoverDate:T,selectQuarter:R,toggleYearPicker:Z,handleYearSelect:q,handleYear:x}=Up(o,n);return a({getSidebarProps:()=>({modelValue:b,year:y,selectQuarter:R,handleYearSelect:q,handleYear:x})}),(Y,K)=>(u(),le(Ka,{"multi-calendars":s(i).count,collapse:Y.collapse,stretch:""},{default:D(({instance:W})=>[_("div",{class:"dp-quarter-picker-wrap",style:dt({minHeight:`${s(c).modeHeight}px`})},[_("div",null,[U(Dr,Ne(Y.$props,{items:s(g)(W),instance:W,"show-year-picker":s(k)[W],year:s(y)(W),"is-disabled":N=>s(p)(W,N),onHandleYear:N=>s(x)(W,N),onYearSelect:N=>s(q)(N,W),onToggleYearPicker:N=>s(Z)(W,N==null?void 0:N.flow,N==null?void 0:N.show)}),rt({_:2},[_e(s(l),(N,z)=>({name:N,fn:D(ae=>[$(Y.$slots,N,Je(it(ae)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_("div",Kp,[(u(!0),v(ue,null,_e(s(f)(W),(N,z)=>(u(),v("div",{key:z},[_("button",{type:"button",class:ve(["dp--qr-btn",{"dp--qr-btn-active":N.active,"dp--qr-btn-between":N.isBetween,"dp--qr-btn-disabled":N.disabled,"dp--highlighted":N.highlighted}]),disabled:N.disabled,onClick:ae=>s(R)(N.value,W,N.disabled),onMouseover:ae=>s(T)(N.value)},[Y.$slots.quarter?$(Y.$slots,"quarter",{key:0,value:N.value,text:N.text}):(u(),v(ue,{key:1},[Oe(re(N.text),1)],64))],42,Xp)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),Zp=["id","aria-label"],ef={key:0,class:"dp--menu-load-container"},tf=_("span",{class:"dp--menu-loader"},null,-1),af=[tf],nf={key:0,class:"dp__sidebar_left"},of=["onClick","onKeydown"],rf={key:2,class:"dp__sidebar_right"},lf={key:3,class:"dp__action_extra"},$o=j({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Ua,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=C(null),l=M(()=>{const{openOnTop:P,...X}=o;return{...X,flowStep:z.value,collapse:o.collapse,noOverlayFocus:o.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:i,setShiftKey:c,control:g}=kr(),y=Ut(),{defaultedTextInput:p,defaultedInline:f,defaultedConfig:b}=We(o),k=C(null),T=C(0),R=C(null),Z=C(!1),q=C(null);je(()=>{if(!o.shadow){Z.value=!0,x(),window.addEventListener("resize",x);const P=at(r);if(P&&!p.value.enabled&&!f.value.enabled&&(i(!0),Q()),P){const X=ge=>{b.value.allowPreventDefault&&ge.preventDefault(),jt(ge,b.value,!0)};P.addEventListener("pointerdown",X),P.addEventListener("mousedown",X)}}}),Gt(()=>{window.removeEventListener("resize",x)});const x=()=>{const P=at(R);P&&(T.value=P.getBoundingClientRect().width)},{arrowRight:Y,arrowLeft:K,arrowDown:W,arrowUp:N}=Kt(),{flowStep:z,updateFlowStep:ae,childMount:ie,resetFlow:me}=Xv(o,n,q),B=M(()=>o.monthPicker?vp:o.yearPicker?fp:o.timePicker?Vp:o.quarterPicker?Jp:Gp),Q=()=>{const P=at(r);P&&P.focus({preventScroll:!0})},se=M(()=>{var P;return((P=q.value)==null?void 0:P.getSidebarProps())||{}}),w=()=>{o.openOnTop&&n("recalculate-position")},h=ct(y,"action"),E=M(()=>o.monthPicker||o.yearPicker?ct(y,"monthYear"):o.timePicker?ct(y,"timePicker"):ct(y,"shared")),te=M(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),de=M(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),ee=M(()=>({dp__menu:!0,dp__menu_index:!f.value.enabled,dp__relative:f.value.enabled,[o.menuClassName]:!!o.menuClassName})),A=P=>{jt(P,b.value,!0)},I=()=>{o.escClose&&n("close-picker")},d=P=>{if(o.arrowNavigation){if(P==="up")return N();if(P==="down")return W();if(P==="left")return K();if(P==="right")return Y()}else P==="left"||P==="up"?Ye("handleArrow","left",0,P==="up"):Ye("handleArrow","right",0,P==="down")},m=P=>{c(P.shiftKey),!o.disableMonthYearSelect&&P.code==="Tab"&&P.target.classList.contains("dp__menu")&&g.value.shiftKeyInMenu&&(P.preventDefault(),jt(P,b.value,!0),n("close-picker"))},L=()=>{Q(),n("time-picker-close")},H=P=>{var X,ge,Pe;(X=q.value)==null||X.toggleTimePicker(!1,!1),(ge=q.value)==null||ge.toggleMonthPicker(!1,!1,P),(Pe=q.value)==null||Pe.toggleYearPicker(!1,!1,P)},xe=(P,X=0)=>{var ge,Pe,he;return P==="month"?(ge=q.value)==null?void 0:ge.toggleMonthPicker(!1,!0,X):P==="year"?(Pe=q.value)==null?void 0:Pe.toggleYearPicker(!1,!0,X):P==="time"?(he=q.value)==null?void 0:he.toggleTimePicker(!0,!1):H(X)},Ye=(P,...X)=>{var ge,Pe;(ge=q.value)!=null&&ge[P]&&((Pe=q.value)==null||Pe[P](...X))},V=()=>{Ye("selectCurrentDate")},F=(P,X)=>{Ye("presetDate",P,X)},be=()=>{Ye("clearHoverDate")};return a({updateMonthYear:(P,X)=>{Ye("updateMonthYear",P,X)},switchView:xe}),(P,X)=>{var ge,Pe,he;return u(),v("div",{id:P.uid?`dp-menu-${P.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:"0",role:"dialog","aria-label":(ge=P.ariaLabels)==null?void 0:ge.menu,class:ve(ee.value),onMouseleave:be,onClick:A,onKeydown:[De(I,["esc"]),X[18]||(X[18]=De(Le(oe=>d("left"),["prevent"]),["left"])),X[19]||(X[19]=De(Le(oe=>d("up"),["prevent"]),["up"])),X[20]||(X[20]=De(Le(oe=>d("down"),["prevent"]),["down"])),X[21]||(X[21]=De(Le(oe=>d("right"),["prevent"]),["right"])),m]},[(P.disabled||P.readonly)&&s(f).enabled||P.loading?(u(),v("div",{key:0,class:ve(de.value)},[P.loading?(u(),v("div",ef,af)):S("",!0)],2)):S("",!0),!s(f).enabled&&!P.teleportCenter?(u(),v("div",{key:1,class:ve(te.value)},null,2)):S("",!0),_("div",{ref_key:"innerMenuRef",ref:R,class:ve({dp__menu_content_wrapper:((Pe=P.presetDates)==null?void 0:Pe.length)||!!P.$slots["left-sidebar"]||!!P.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&((he=P.presetDates)==null?void 0:he.length)||!!P.$slots["left-sidebar"]||!!P.$slots["right-sidebar"]}),style:dt({"--dp-menu-width":`${T.value}px`})},[P.$slots["left-sidebar"]?(u(),v("div",nf,[$(P.$slots,"left-sidebar",Je(it(se.value)))])):S("",!0),P.presetDates.length?(u(),v("div",{key:1,class:ve({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(u(!0),v(ue,null,_e(P.presetDates,(oe,st)=>(u(),v(ue,{key:st},[oe.slot?$(P.$slots,oe.slot,{key:0,presetDate:F,label:oe.label,value:oe.value}):(u(),v("button",{key:1,type:"button",style:dt(oe.style||{}),class:ve(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),onClick:Le(nt=>F(oe.value,oe.noTz),["prevent"]),onKeydown:[De(Le(nt=>F(oe.value,oe.noTz),["prevent"]),["enter"]),De(Le(nt=>F(oe.value,oe.noTz),["prevent"]),["space"])]},re(oe.label),47,of))],64))),128))],2)):S("",!0),_("div",{ref_key:"calendarWrapperRef",ref:k,class:"dp__instance_calendar",role:"document"},[(u(),le(Tt(B.value),Ne({ref_key:"dynCmpRef",ref:q},l.value,{"flow-step":s(z),onMount:s(ie),onUpdateFlowStep:s(ae),onResetFlow:s(me),onFocusMenu:Q,onSelectDate:X[0]||(X[0]=oe=>P.$emit("select-date")),onDateUpdate:X[1]||(X[1]=oe=>P.$emit("date-update",oe)),onTooltipOpen:X[2]||(X[2]=oe=>P.$emit("tooltip-open",oe)),onTooltipClose:X[3]||(X[3]=oe=>P.$emit("tooltip-close",oe)),onAutoApply:X[4]||(X[4]=oe=>P.$emit("auto-apply",oe)),onRangeStart:X[5]||(X[5]=oe=>P.$emit("range-start",oe)),onRangeEnd:X[6]||(X[6]=oe=>P.$emit("range-end",oe)),onInvalidFixedRange:X[7]||(X[7]=oe=>P.$emit("invalid-fixed-range",oe)),onTimeUpdate:X[8]||(X[8]=oe=>P.$emit("time-update")),onAmPmChange:X[9]||(X[9]=oe=>P.$emit("am-pm-change",oe)),onTimePickerOpen:X[10]||(X[10]=oe=>P.$emit("time-picker-open",oe)),onTimePickerClose:L,onRecalculatePosition:w,onUpdateMonthYear:X[11]||(X[11]=oe=>P.$emit("update-month-year",oe)),onAutoApplyInvalid:X[12]||(X[12]=oe=>P.$emit("auto-apply-invalid",oe)),onInvalidDate:X[13]||(X[13]=oe=>P.$emit("invalid-date",oe)),"onUpdate:internalModelValue":X[14]||(X[14]=oe=>P.$emit("update:internal-model-value",oe))}),rt({_:2},[_e(E.value,(oe,st)=>({name:oe,fn:D(nt=>[$(P.$slots,oe,Je(it({...nt})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),P.$slots["right-sidebar"]?(u(),v("div",rf,[$(P.$slots,"right-sidebar",Je(it(se.value)))])):S("",!0),P.$slots["action-extra"]?(u(),v("div",lf,[P.$slots["action-extra"]?$(P.$slots,"action-extra",{key:0,selectCurrentDate:V}):S("",!0)])):S("",!0)],6),!P.autoApply||s(b).keepActionRow?(u(),le(op,Ne({key:2,"menu-mount":Z.value},l.value,{"calendar-width":T.value,onClosePicker:X[15]||(X[15]=oe=>P.$emit("close-picker")),onSelectDate:X[16]||(X[16]=oe=>P.$emit("select-date")),onInvalidSelect:X[17]||(X[17]=oe=>P.$emit("invalid-select")),onSelectNow:V}),rt({_:2},[_e(s(h),(oe,st)=>({name:oe,fn:D(nt=>[$(P.$slots,oe,Je(it({...nt})))])}))]),1040,["menu-mount","calendar-width"])):S("",!0)],42,Zp)}}}),sf=typeof window<"u"?window:void 0,hn=()=>{},uf=e=>jr()?(Qr(e),!0):!1,df=(e,a,t,n)=>{if(!e)return hn;let o=hn;const r=ut(()=>s(e),i=>{o(),i&&(i.addEventListener(a,t,n),o=()=>{i.removeEventListener(a,t,n),o=hn})},{immediate:!0,flush:"post"}),l=()=>{r(),o()};return uf(l),l},cf=(e,a,t,n={})=>{const{window:o=sf,event:r="pointerdown"}=n;return o?df(o,r,l=>{const i=at(e),c=at(a);!i||!c||i===l.target||l.composedPath().includes(i)||l.composedPath().includes(c)||t(l)},{passive:!0}):void 0},mf=j({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Ua},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=Ut(),l=C(!1),i=La(o,"modelValue"),c=La(o,"timezone"),g=C(null),y=C(null),p=C(null),f=C(!1),b=C(null),k=C(!1),T=C(!1),R=C(!1),{setMenuFocused:Z,setShiftKey:q}=kr(),{clearArrowNav:x}=Kt(),{validateDate:Y,isValidTime:K}=Xt(o),{defaultedTransitions:W,defaultedTextInput:N,defaultedInline:z,defaultedConfig:ae,defaultedRange:ie,defaultedMultiDates:me}=We(o),{menuTransition:B,showTransition:Q}=xa(W);je(()=>{m(o.modelValue),At().then(()=>{if(!z.value.enabled){const J=ee(b.value);J==null||J.addEventListener("scroll",X),window==null||window.addEventListener("resize",ge)}}),z.value.enabled&&(l.value=!0),window==null||window.addEventListener("keyup",Pe),window==null||window.addEventListener("keydown",he)}),Gt(()=>{if(!z.value.enabled){const J=ee(b.value);J==null||J.removeEventListener("scroll",X),window==null||window.removeEventListener("resize",ge)}window==null||window.removeEventListener("keyup",Pe),window==null||window.removeEventListener("keydown",he)});const se=ct(r,"all",o.presetDates),w=ct(r,"input");ut([i,c],()=>{m(i.value)},{deep:!0});const{openOnTop:h,menuStyle:E,xCorrect:te,setMenuPosition:de,getScrollableParent:ee,shadowRender:A}=Qv({menuRef:g,menuRefInner:y,inputRef:p,pickerWrapperRef:b,inline:z,emit:n,props:o,slots:r}),{inputValue:I,internalModelValue:d,parseExternalModelValue:m,emitModelValue:L,formatInputValue:H,checkBeforeEmit:xe}=qv(n,o,f),Ye=M(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:z.value.enabled,"dp--flex-display-collapsed":R.value,dp__flex_display_with_input:z.value.input})),V=M(()=>o.dark?"dp__theme_dark":"dp__theme_light"),F=M(()=>({to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||z.value.enabled})),be=M(()=>({class:"dp__outer_menu_wrap"})),P=M(()=>z.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),X=()=>{l.value&&(ae.value.closeOnScroll?pt():de())},ge=()=>{var J;l.value&&de();const we=(J=y.value)==null?void 0:J.$el.getBoundingClientRect().width;R.value=document.body.offsetWidth<=we},Pe=J=>{J.key==="Tab"&&!z.value.enabled&&!o.teleport&&ae.value.tabOutClosesMenu&&(b.value.contains(document.activeElement)||pt()),T.value=J.shiftKey},he=J=>{T.value=J.shiftKey},oe=()=>{!o.disabled&&!o.readonly&&(A($o,o),de(!1),l.value=!0,l.value&&n("open"),l.value||ba(),m(o.modelValue))},st=()=>{var J;I.value="",ba(),(J=p.value)==null||J.setParsedDate(null),n("update:model-value",null),n("update:model-timezone-value",null),n("cleared"),ae.value.closeOnClearValue&&pt()},nt=()=>{const J=d.value;return!J||!Array.isArray(J)&&Y(J)?!0:Array.isArray(J)?me.value.enabled||J.length===2&&Y(J[0])&&Y(J[1])?!0:ie.value.partialRange&&!o.timePicker?Y(J[0]):!1:!1},Ot=()=>{xe()&&nt()?(L(),pt()):n("invalid-select",d.value)},tt=J=>{Jt(),L(),ae.value.closeOnAutoApply&&!J&&pt()},Jt=()=>{p.value&&N.value.enabled&&p.value.setParsedDate(d.value)},_a=(J=!1)=>{o.autoApply&&K(d.value)&&nt()&&(ie.value.enabled&&Array.isArray(d.value)?(ie.value.partialRange||d.value.length===2)&&tt(J):tt(J))},ba=()=>{N.value.enabled||(d.value=null)},pt=()=>{z.value.enabled||(l.value&&(l.value=!1,te.value=!1,Z(!1),q(!1),x(),n("closed"),I.value&&m(i.value)),ba(),n("blur"))},Ja=(J,we,ke=!1)=>{if(!J){d.value=null;return}const Nt=Array.isArray(J)?!J.some(Zt=>!Y(Zt)):Y(J),bt=K(J);Nt&&bt&&(d.value=J,we&&(k.value=ke,Ot(),n("text-submit")))},Za=()=>{o.autoApply&&K(d.value)&&L(),Jt()},Va=()=>l.value?pt():oe(),en=J=>{d.value=J},tn=()=>{N.value.enabled&&(f.value=!0,H()),n("focus")},an=()=>{if(N.value.enabled&&(f.value=!1,m(o.modelValue),k.value)){const J=yv(b.value,T.value);J==null||J.focus()}n("blur")},O=J=>{y.value&&y.value.updateMonthYear(0,{month:ho(J.month),year:ho(J.year)})},ne=J=>{m(J??o.modelValue)},ye=(J,we)=>{var ke;(ke=y.value)==null||ke.switchView(J,we)},Te=J=>ae.value.onClickOutside?ae.value.onClickOutside(J):pt();return cf(g,p,()=>Te(nt)),a({closeMenu:pt,selectDate:Ot,clearValue:st,openMenu:oe,onScroll:X,formatInputValue:H,updateInternalModelValue:en,setMonthYear:O,parseModel:ne,switchView:ye,toggleMenu:Va}),(J,we)=>(u(),v("div",{ref_key:"pickerWrapperRef",ref:b,class:ve(Ye.value),"data-datepicker-instance":""},[U(tp,Ne({ref_key:"inputRef",ref:p,"input-value":s(I),"onUpdate:inputValue":we[0]||(we[0]=ke=>to(I)?I.value=ke:null),"is-menu-open":l.value},J.$props,{onClear:st,onOpen:oe,onSetInputDate:Ja,onSetEmptyDate:s(L),onSelectDate:Ot,onToggle:Va,onClose:pt,onFocus:tn,onBlur:an,onRealBlur:we[1]||(we[1]=ke=>f.value=!1)}),rt({_:2},[_e(s(w),(ke,Nt)=>({name:ke,fn:D(bt=>[$(J.$slots,ke,Je(it(bt)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(u(),le(Tt(J.teleport?Wr:"div"),Je(it(F.value)),{default:D(()=>[U(Et,{name:s(B)(s(h)),css:s(Q)&&!s(z).enabled},{default:D(()=>[l.value?(u(),v("div",Ne({key:0,ref_key:"dpWrapMenuRef",ref:g},be.value,{class:{"dp--menu-wrapper":!s(z).enabled},style:s(z).enabled?void 0:s(E)}),[U($o,Ne({ref_key:"dpMenuRef",ref:y},J.$props,{"internal-model-value":s(d),"onUpdate:internalModelValue":we[2]||(we[2]=ke=>to(d)?d.value=ke:null),class:{[V.value]:!0,"dp--menu-wrapper":J.teleport},"open-on-top":s(h),"no-overlay-focus":P.value,collapse:R.value,onClosePicker:pt,onSelectDate:Ot,onAutoApply:_a,onTimeUpdate:Za,onFlowStep:we[3]||(we[3]=ke=>J.$emit("flow-step",ke)),onUpdateMonthYear:we[4]||(we[4]=ke=>J.$emit("update-month-year",ke)),onInvalidSelect:we[5]||(we[5]=ke=>J.$emit("invalid-select",s(d))),onAutoApplyInvalid:we[6]||(we[6]=ke=>J.$emit("invalid-select",ke)),onInvalidFixedRange:we[7]||(we[7]=ke=>J.$emit("invalid-fixed-range",ke)),onRecalculatePosition:s(de),onTooltipOpen:we[8]||(we[8]=ke=>J.$emit("tooltip-open",ke)),onTooltipClose:we[9]||(we[9]=ke=>J.$emit("tooltip-close",ke)),onTimePickerOpen:we[10]||(we[10]=ke=>J.$emit("time-picker-open",ke)),onTimePickerClose:we[11]||(we[11]=ke=>J.$emit("time-picker-close",ke)),onAmPmChange:we[12]||(we[12]=ke=>J.$emit("am-pm-change",ke)),onRangeStart:we[13]||(we[13]=ke=>J.$emit("range-start",ke)),onRangeEnd:we[14]||(we[14]=ke=>J.$emit("range-end",ke)),onDateUpdate:we[15]||(we[15]=ke=>J.$emit("date-update",ke)),onInvalidDate:we[16]||(we[16]=ke=>J.$emit("invalid-date",ke))}),rt({_:2},[_e(s(se),(ke,Nt)=>({name:ke,fn:D(bt=>[$(J.$slots,ke,Je(it({...bt})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","onRecalculatePosition"])],16)):S("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),Ae=(()=>{const e=mf;return e.install=a=>{a.component("Vue3DatePicker",e)},e})(),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ae},Symbol.toStringTag,{value:"Module"}));Object.entries(vf).forEach(([e,a])=>{e!=="default"&&(Ae[e]=a)});const pf={class:"demo-wrap"},ff={class:"action-row"},hf={class:"current-selection"},yf=["onClick"],gf=j({__name:"ActionRowSlotDemo",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=o=>ft(o,"dd.MM.yyyy, HH:mm");return(o,r)=>(u(),v("div",pf,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t)},{"action-row":D(({internalModelValue:l,selectDate:i})=>[_("div",ff,[_("p",hf,re(n(l)),1),_("button",{class:"select-button",onClick:i},"Select Date",8,yf)])]),_:1},8,["modelValue","dark"])]))}}),_f={class:"demo-wrap"},bf=j({__name:"CustomCalendarDemo",props:{},setup(e){const{isDark:a}=Ce(),t=C(),n=o=>o.filter(r=>r.days.some(l=>l.text===15)).map(r=>({...r,days:r.days.map(l=>(l.classData["custom-class"]=!0,l))}));return(o,r)=>(u(),v("div",_f,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l)},o.$props,{dark:s(a),calendar:n,placeholder:"Select Date"}),null,16,["modelValue","dark"])]))}}),wf={class:"demo-wrap"},kf=j({__name:"DarkDemo",props:["placeholder"],setup(e){const a=C(new Date);return(t,n)=>(u(),v("div",wf,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),placeholder:e.placeholder,dark:""},null,8,["modelValue","placeholder"])]))}}),$f={class:"demo-wrap"},Df=j({__name:"DemoDayClass",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=o=>aa(o,Ue(Be(new Date,{hours:0,minutes:0,seconds:0,milliseconds:0}),1))?"marked-cell":"";return(o,r)=>(u(),v("div",$f,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),"day-class":n},null,8,["modelValue","dark"])]))}}),Pf={class:"demo-wrap"},Mf=j({__name:"DemoHighlight",props:["disabled"],setup(e){const a=C(new Date),{isDark:t}=Ce(),n=e,o=M(()=>[Ue(new Date,1),Ue(new Date,2),Ue(new Date,3)]),r=M(()=>n.disabled?o.value:[]),l=M(()=>({dates:n.disabled?r.value:o.value,options:{highlightDisabled:!0}}));return(i,c)=>(u(),v("div",Pf,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=g=>a.value=g),dark:s(t),highlight:l.value,"disabled-dates":r.value},null,8,["modelValue","dark","highlight","disabled-dates"])]))}}),Tf={class:"demo-wrap"},Sf=_("span",{class:"custom-marker"},null,-1),xf=j({__name:"DemoMarkers",props:["useMarkerTooltipSlot","useMarkerSlot"],setup(e){const a=C(new Date),{isDark:t}=Ce(),n=M(()=>[{date:Ue(new Date,1),type:"dot",tooltip:[{text:"Dot with tooltip",color:"green"}]},{date:Ue(new Date,2),type:"line",tooltip:[{text:"First tooltip",color:"blue"},{text:"Second tooltip",color:"yellow"}]},{date:Ue(new Date,3),type:"dot",color:"yellow"}]);return(o,r)=>(u(),v("div",Tf,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),markers:n.value},rt({_:2},[e.useMarkerTooltipSlot?{name:"marker-tooltip",fn:D(({day:l})=>[_("div",null,"Custom content on "+re(l),1)]),key:"0"}:void 0,e.useMarkerSlot?{name:"marker",fn:D(({day:l})=>[Sf]),key:"1"}:void 0]),1032,["modelValue","dark","markers"])]))}}),Af=_("p",{class:"clickable-text"},"This is some custom clickable text that will open datepicker",-1),Cf=["value"],Vf=_("img",{class:"input-slot-image",src:Vt},null,-1),Of=["onClick"],Nf=_("img",{class:"slot-icon",src:Vt},null,-1),Rf=_("img",{class:"slot-icon",src:Vt},null,-1),If=_("img",{class:"slot-icon",src:Vt},null,-1),Lf=_("img",{class:"slot-icon-m",src:Vt},null,-1),Yf=_("img",{class:"slot-icon-m",src:Vt},null,-1),Ef=_("img",{class:"slot-icon",src:Vt},null,-1),Bf={key:0,class:"slot-icon",src:Vt},Hf=["onClick"],Ff=_("img",{class:"slot-icon centered",src:Vt},null,-1),Wf=[Ff],zf=["onClick"],qf={class:"time-picker-overlay"},jf=["value","onChange"],Qf=["value"],Gf=["value","onChange"],Uf=["value"],Kf=_("div",{class:"dp-sidebar"},"Custom content",-1),Xf=_("div",{class:"dp-sidebar"},"Custom content",-1),Jf={class:"overlay-header"},Zf=["onClick"],eh={class:"overlay-header"},th=["onClick"],ah=j({__name:"DemoSlots",props:["placeholder","useTriggerSlot","position","useInputIconSlot","useClearIconSlot","useClockIconSlot","useArrowLeftSlot","useArrowRightSlot","useArrowUpSlot","useArrowDownSlot","useCalendarIconSlot","useDaySlot","useActionButtonSlot","useActionPreviewSlot","useHoursSlot","useMinutesSlot","useMonthSlot","useYearSlot","useHoursOverlaySlot","useMinutesOverlaySlot","useMonthOverlaySlot","useYearOverlaySlot","useDpInputSlot","useCalendarHeaderSlot","useActionExtraSlot","is24","useAmPmButtonSlot","useTimePickerOverlay","useLeftSidebarSlot","useRightSidebarSlot","useMonthOverlayHeaderSlot","useYearOverlayHeaderSlot","useQuarterSlot"],setup(e){const a=C(new Date),{isDark:t}=Ce(),n=C(null),o=M(()=>new Date().getDate()+1),r=M(()=>y=>`Selected ${new Date(y).getDate()}`),l=M(()=>{const y=[];for(let p=0;p<24;p++)y.push({text:p<10?`0${p}`:p,value:p});return y}),i=M(()=>{const y=[];for(let p=0;p<60;p++)y.push({text:p<10?`0${p}`:p,value:p});return y}),c=()=>{n.value&&n.value.selectDate()},g=y=>ft(y,"QQQ");return(y,p)=>(u(),v("div",{class:ve(["demo-wrap",e.useDpInputSlot||e.useTriggerSlot?"demo-wrap-inline":""])},[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=f=>a.value=f),placeholder:e.placeholder,dark:s(t),position:e.position,"quarter-picker":e.useQuarterSlot,is24:e.is24,ref_key:"dpSlotDemo",ref:n},rt({_:2},[e.useTriggerSlot?{name:"trigger",fn:D(()=>[Af]),key:"0"}:void 0,e.useDpInputSlot?{name:"dp-input",fn:D(({value:f})=>[_("input",{class:"input-class",type:"text",value:f},null,8,Cf)]),key:"1"}:void 0,e.useInputIconSlot?{name:"input-icon",fn:D(()=>[Vf]),key:"2"}:void 0,e.useClearIconSlot?{name:"clear-icon",fn:D(({clear:f})=>[_("img",{class:"input-slot-image-clear",src:Vt,onClick:f},null,8,Of)]),key:"3"}:void 0,e.useClockIconSlot?{name:"clock-icon",fn:D(()=>[Nf]),key:"4"}:void 0,e.useArrowLeftSlot?{name:"arrow-left",fn:D(()=>[Rf]),key:"5"}:void 0,e.useArrowRightSlot?{name:"arrow-right",fn:D(()=>[If]),key:"6"}:void 0,e.useArrowUpSlot?{name:"arrow-up",fn:D(()=>[Lf]),key:"7"}:void 0,e.useArrowDownSlot?{name:"arrow-down",fn:D(()=>[Yf]),key:"8"}:void 0,e.useCalendarIconSlot?{name:"calendar-icon",fn:D(()=>[Ef]),key:"9"}:void 0,e.useDaySlot?{name:"day",fn:D(({day:f})=>[f===o.value?(u(),v("img",Bf)):(u(),v(ue,{key:1},[Oe(re(f),1)],64))]),key:"10"}:void 0,e.useActionButtonSlot?{name:"action-buttons",fn:D(()=>[_("p",{class:"custom-select",onClick:c},"Select")]),key:"11"}:void 0,e.useActionPreviewSlot?{name:"action-preview",fn:D(({value:f})=>[Oe(re(r.value(f)),1)]),key:"12"}:void 0,e.useHoursSlot?{name:"hours",fn:D(({value:f})=>[Oe(re(f),1)]),key:"13"}:void 0,e.useMinutesSlot?{name:"minutes",fn:D(({value:f})=>[Oe(re(f),1)]),key:"14"}:void 0,e.useMonthSlot?{name:"month",fn:D(({value:f})=>[Oe(re(f),1)]),key:"15"}:void 0,e.useYearSlot?{name:"year",fn:D(({value:f})=>[Oe(re(f),1)]),key:"16"}:void 0,e.useHoursOverlaySlot?{name:"hours-overlay-value",fn:D(({value:f})=>[Oe(re(f),1)]),key:"17"}:void 0,e.useMinutesOverlaySlot?{name:"minutes-overlay-value",fn:D(({value:f})=>[Oe(re(f),1)]),key:"18"}:void 0,e.useMonthOverlaySlot?{name:"month-overlay-value",fn:D(({value:f})=>[Oe(re(f),1)]),key:"19"}:void 0,e.useYearOverlaySlot?{name:"year-overlay-value",fn:D(({value:f})=>[Oe(re(f),1)]),key:"20"}:void 0,e.useCalendarHeaderSlot?{name:"calendar-header",fn:D(({index:f,day:b})=>[_("div",{class:ve(f===5||f===6?"red-color":"")},re(b),3)]),key:"21"}:void 0,e.useActionExtraSlot?{name:"action-extra",fn:D(({selectCurrentDate:f})=>[_("span",{onClick:b=>f(),title:"Select current date",class:"pointer"},Wf,8,Hf)]),key:"22"}:void 0,e.useAmPmButtonSlot?{name:"am-pm-button",fn:D(({toggle:f,value:b})=>[_("button",{onClick:f},re(b),9,zf)]),key:"23"}:void 0,e.useTimePickerOverlay?{name:"time-picker-overlay",fn:D(({hours:f,minutes:b,setHours:k,setMinutes:T})=>[_("div",qf,[_("select",{class:"select-input",value:f,onChange:R=>k(+R.target.value)},[(u(!0),v(ue,null,_e(l.value,R=>(u(),v("option",{key:R.value,value:R.value},re(R.text),9,Qf))),128))],40,jf),_("select",{class:"select-input",value:b,onChange:R=>T(+R.target.value)},[(u(!0),v(ue,null,_e(i.value,R=>(u(),v("option",{key:R.value,value:R.value},re(R.text),9,Uf))),128))],40,Gf)])]),key:"24"}:void 0,e.useLeftSidebarSlot?{name:"left-sidebar",fn:D(()=>[Kf]),key:"25"}:void 0,e.useRightSidebarSlot?{name:"right-sidebar",fn:D(()=>[Xf]),key:"26"}:void 0,e.useMonthOverlayHeaderSlot?{name:"month-overlay-header",fn:D(({toggle:f})=>[_("div",Jf,[_("span",{onClick:f,class:"pointer"},re("< Go back"),8,Zf)])]),key:"27"}:void 0,e.useYearOverlayHeaderSlot?{name:"year-overlay-header",fn:D(({toggle:f})=>[_("div",eh,[_("span",{onClick:f,class:"pointer"},re("< Go back"),8,th)])]),key:"28"}:void 0,e.useQuarterSlot?{name:"quarter",fn:D(({value:f})=>[_("span",null,re(g(f)),1)]),key:"29"}:void 0]),1032,["modelValue","placeholder","dark","position","quarter-picker","is24"])],2))}}),nh={class:"demo-wrap"},oh=j({__name:"DisabledDatesDemo",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=M(()=>{const o=new Date,r=new Date(o);r.setDate(r.getDate()+1);const l=new Date(r);return l.setDate(r.getDate()+1),[r,l]});return(o,r)=>(u(),v("div",nh,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),"disabled-dates":n.value},null,8,["modelValue","dark","disabled-dates"])]))}}),rh={class:"demo-wrap"},lh=j({__name:"DisabledRangeDateDemo",props:{},setup(e){const{isDark:a}=Ce(),t=C([]),n=[Hn(new Date,1),new Date,Ue(new Date,1)];return(o,r)=>(u(),v("div",rh,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l)},o.$props,{dark:s(a),range:{noDisabledRange:!0},"disabled-dates":n,placeholder:"Select range"}),null,16,["modelValue","dark"])]))}}),sh={class:"demo-wrap"},ih={class:"buttons-wrap"},uh=["onClick"],dh=j({__name:"DisabledTimesDemo",props:{},setup(e){const{isDark:a}=Ce(),t=C(null),n=["single","range"],o=C("single"),r=M(()=>o.value==="range"),l=[{hours:15,minutes:"*"},{hours:16,minutes:15},{hours:16,minutes:20},{hours:17,minutes:30}],i=[[{hours:12,minutes:"*"},{hours:9,minutes:10}],l],c=g=>{t.value=null,o.value=g};return(g,y)=>(u(),v("div",sh,[_("div",ih,[(u(),v(ue,null,_e(n,(p,f)=>_("button",{class:ve(["change-btn",{"btn-active":p===o.value}]),key:f,onClick:b=>c(p)},re(p),11,uh)),64))]),U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=p=>t.value=p),placeholder:"Select date"},g.$props,{dark:s(a),"disabled-times":r.value?i:l,range:r.value}),null,16,["modelValue","dark","disabled-times","range"])]))}}),ch=pe(dh,[["__scopeId","data-v-2a3dee5c"]]),mh={class:"demo-wrap"},vh={key:0},ph=j({__name:"DisplayModelDemo",props:["modelType","modelAuto","range"],setup(e){const a=C(),{isDark:t}=Ce();return(n,o)=>(u(),v("div",mh,[U(s(Ae),Ne({modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t)},n.$props,{placeholder:"Select Date"}),null,16,["modelValue","dark"]),a.value?(u(),v("p",vh,"Selected date: "+re(a.value),1)):S("",!0)]))}}),fh={class:"demo-wrap"},hh=j({__name:"EmitTimezone",setup(e){const{isDark:a}=Ce(),t=C(),n=C(),o=r=>{n.value=r};return(r,l)=>(u(),v("div",fh,[t.value&&n.value?(u(),v(ue,{key:0},[_("div",null,"Local timezone date: "+re(t.value),1),_("div",null,"UTC date: "+re(n.value),1)],64)):S("",!0),U(s(Ae),{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value=i),placeholder:"Select date","emit-timezone":"UTC",dark:s(a),"onUpdate:modelTimezoneValue":o},null,8,["modelValue","dark"])]))}}),yh={class:"demo-wrap"},gh=j({__name:"EmptyDemo",props:["placeholder","noToday","minTime","maxTime","startDate","startTime","disabledWeekDays","allowedDates","actionRow","nowButtonLabel","multiDates","flow","partialFlow","range","multiDatesLimit","weekPicker","monthPicker","timePicker","disableTimeRangeValidation","maxDate","ignoreTimeValidation","autoApply"],setup(e){const a=e,t=C(),{isDark:n}=Ce(),o=M(()=>{if(a.allowedDates)return[new Date,new Date(new Date().setDate(new Date().getDate()+1))]});return(r,l)=>(u(),v("div",yh,[U(s(Ae),{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value=i),placeholder:e.placeholder,dark:s(n),"no-today":e.noToday,"min-time":e.minTime,"max-time":e.maxTime,"start-date":e.startDate,"start-time":e.startTime,"disabled-week-days":e.disabledWeekDays,"allowed-dates":o.value,"action-row":e.actionRow,"now-button-label":e.nowButtonLabel,"multi-dates":e.multiDates,range:e.range,flow:e.flow,"multi-dates-limit":e.multiDatesLimit,"week-picker":e.weekPicker,"month-picker":e.monthPicker,"time-picker":e.timePicker,"disable-time-range-validation":e.disableTimeRangeValidation,"max-date":e.maxDate,"ignore-time-validation":e.ignoreTimeValidation,"partial-flow":e.partialFlow,"auto-apply":e.autoApply},null,8,["modelValue","placeholder","dark","no-today","min-time","max-time","start-date","start-time","disabled-week-days","allowed-dates","action-row","now-button-label","multi-dates","range","flow","multi-dates-limit","week-picker","month-picker","time-picker","disable-time-range-validation","max-date","ignore-time-validation","partial-flow","auto-apply"])]))}}),_h={class:"demo-wrap"},bh=j({__name:"FiltersDemo",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=M(()=>{const o=new Date;return{months:Array.from(Array(3).keys()).map(r=>Me(mt(o,r+1)))}});return(o,r)=>(u(),v("div",_h,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),placeholder:"Select Date",filters:n.value},null,8,["modelValue","dark","filters"])]))}}),wh={class:"demo-wrap"},kh=j({__name:"FormatDemo",props:["placeholder"],setup(e){const a=C(new Date),{isDark:t}=Ce(),n=o=>{const r=o.getDate(),l=o.getMonth()+1,i=o.getFullYear();return`Selected date is ${r}/${l}/${i}`};return(o,r)=>(u(),v("div",wh,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),placeholder:e.placeholder,format:n,dark:s(t)},null,8,["modelValue","placeholder","dark"])]))}}),$h={class:"demo-wrap"},Dh=j({__name:"GlobalDemo",props:["uid","is24","enableTimePicker","locale","cancelText","selectText","range","position","weekNumbers","placeholder","hoursIncrement","minutesIncrement","hoursGridIncrement","minutesGridIncrement","minDate","maxDate","minTime","maxTime","weekStart","disabled","readonly","inputClassName","menuClassName","hideInputIcon","state","clearable","closeOnScroll","autoApply","filters","disableMonthYearSelect","yearRange","disabledDates","inline","weekNumName","autoPosition","monthPicker","timePicker","closeOnAutoApply","calendarClassName","calendarCellClassName","teleport","startDate","startTime","monthNameFormat","autoRange","hideOffsetDates","noHoursOverlay","noMinutesOverlay","altPosition","multiCalendars","multiCalendarsSolo","partialRange","monthChangeOnScroll","transitions","modeHeight","enableSeconds","secondsIncrement","secondsGridIncrement","noSecondsOverlay","openMenuOnFocus","escClose","spaceConfirm","monthChangeOnArrows","inlineWithInput","name","autocomplete","preventMinMaxNavigation","fixedEnd","fixedStart","reverseYears","vertical","arrowNavigation","textInput","yearPicker","multiStatic","disableTimeRangeValidation","dayNames","offset","teleportCenter","hideNavigation","sixWeeks","actionRow","disableYearSelect","focusStartDate","timePickerInline","yearFirst","loading"],setup(e){const a=e,t=C(null),n=C(!1),{isDark:o}=Ce(),r=M({get:()=>{if(n.value||a.maxTime||a.minTime||a.startDate&&!a.focusStartDate||a.startTime)return null;if(t.value)return t.value;if(a.monthPicker)return{month:new Date().getMonth(),year:new Date().getFullYear()};if(a.yearPicker)return new Date().getFullYear();if(a.timePicker){const l=new Date;return{hours:l.getHours(),minutes:l.getMinutes()}}if(a.range){const l=new Date,i=new Date(new Date().setDate(l.getDate()+7));return[l,i]}return new Date},set:l=>{n.value=!l,t.value=l}});return(l,i)=>(u(),v("div",$h,[U(s(Ae),Ne({modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=c=>r.value=c)},l.$props,{dark:s(o)}),null,16,["modelValue","dark"])]))}}),Ph={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Mh=(e,a,t)=>{t=t||{};let n;const o=Ph[e];return typeof o=="string"?n=o:a===1?t.addSuffix&&o.oneWithSuffix?n=o.oneWithSuffix:n=o.one:t.addSuffix&&o.otherWithSuffix?n=o.otherWithSuffix.replace("{{count}}",String(a)):n=o.other.replace("{{count}}",String(a)),t.addSuffix?t.comparison&&t.comparison>0?n+"後":n+"前":n},Th={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},Sh={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},xh={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ah={date:ma({formats:Th,defaultWidth:"full"}),time:ma({formats:Sh,defaultWidth:"full"}),dateTime:ma({formats:xh,defaultWidth:"full"})},Ch={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Vh=(e,a,t,n)=>Ch[e],Oh={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Nh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Rh={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Ih={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Lh={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Yh={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Eh=(e,a)=>{const t=Number(e);switch(String(a==null?void 0:a.unit)){case"year":return`${t}年`;case"quarter":return`第${t}四半期`;case"month":return`${t}月`;case"week":return`第${t}週`;case"date":return`${t}日`;case"hour":return`${t}時`;case"minute":return`${t}分`;case"second":return`${t}秒`;default:return`${t}`}},Bh={ordinalNumber:Eh,era:kt({values:Oh,defaultWidth:"wide"}),quarter:kt({values:Nh,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:kt({values:Rh,defaultWidth:"wide"}),day:kt({values:Ih,defaultWidth:"wide"}),dayPeriod:kt({values:Lh,defaultWidth:"wide",formattingValues:Yh,defaultFormattingWidth:"wide"})},Hh=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,Fh=/\d+/i,Wh={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},zh={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},qh={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},jh={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Qh={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Gh={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Uh={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},Kh={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},Xh={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},Jh={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Zh={ordinalNumber:Xo({matchPattern:Hh,parsePattern:Fh,valueCallback:function(e){return parseInt(e,10)}}),era:$t({matchPatterns:Wh,defaultMatchWidth:"wide",parsePatterns:zh,defaultParseWidth:"any"}),quarter:$t({matchPatterns:qh,defaultMatchWidth:"wide",parsePatterns:jh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$t({matchPatterns:Qh,defaultMatchWidth:"wide",parsePatterns:Gh,defaultParseWidth:"any"}),day:$t({matchPatterns:Uh,defaultMatchWidth:"wide",parsePatterns:Kh,defaultParseWidth:"any"}),dayPeriod:$t({matchPatterns:Xh,defaultMatchWidth:"any",parsePatterns:Jh,defaultParseWidth:"any"})},e0={code:"ja",formatDistance:Mh,formatLong:Ah,formatRelative:Vh,localize:Bh,match:Zh,options:{weekStartsOn:0,firstWeekContainsDate:1}},t0={class:"demo-wrap"},a0=j({__name:"LocalizedOutput",setup(e){const a=C(new Date),{isDark:t}=Ce();return(n,o)=>(u(),v("div",t0,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t),placeholder:"Select Date","format-locale":s(e0),format:"E"},null,8,["modelValue","dark","format-locale"])]))}}),n0={class:"demo-wrap"},o0=j({__name:"MinMaxDemo",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=M(()=>Yt(new Date($e(new Date),Me(new Date)),2)),o=M(()=>mt(new Date($e(new Date),Me(new Date)),2));return(r,l)=>(u(),v("div",n0,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),placeholder:"Select Date",dark:s(t),"min-date":n.value,"max-date":o.value,"prevent-min-max-navigation":""},null,8,["modelValue","dark","min-date","max-date"])]))}}),r0={class:"demo-wrap"},l0=j({__name:"MonthPickerDemo",props:{autoApplyMonth:{type:Boolean,default:!0}},setup(e){const{isDark:a}=Ce(),t=C({month:new Date().getMonth(),year:new Date().getFullYear()});return(n,o)=>(u(),v("div",r0,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"month-picker":""}),null,16,["modelValue","dark"])]))}}),s0={},i0={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},u0=_("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1),d0=[u0];function c0(e,a){return u(),v("svg",i0,d0)}const m0=pe(s0,[["render",c0]]),v0={},p0={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},f0=_("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"},null,-1),h0=[f0];function y0(e,a){return u(),v("svg",p0,h0)}const g0=pe(v0,[["render",y0]]),_0={class:"demo-wrap"},b0={class:"custom-month-year-component"},w0=["value","onChange"],k0=["value"],$0=["value","onChange"],D0=["value"],P0={class:"icons"},M0=["onClick"],T0=["onClick"],S0={class:"custom-month-year-component"},x0=["value","onChange"],A0=["value"],C0=["onClick"],V0={class:"year-overlay"},O0=["value","onChange"],N0=["value"],R0=["onClick"],I0=j({__name:"MonthYearSlotDemo",props:["defaultSlot","monthOverlaySlot","yearOverlaySlot"],setup(e){const a=C(new Date),{isDark:t}=Ce(),n=(r,l,i,c)=>{l(+r.target.value,i),c&&c()},o=(r,l,i,c)=>{l(i,+r.target.value),c&&c()};return(r,l)=>(u(),v("div",_0,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),dark:s(t)},rt({_:2},[e.defaultSlot?{name:"month-year",fn:D(({month:i,year:c,months:g,years:y,updateMonthYear:p,handleMonthYearChange:f})=>[_("div",b0,[_("select",{class:"select-input",value:i,onChange:b=>n(b,p,c)},[(u(!0),v(ue,null,_e(g,b=>(u(),v("option",{key:b.value,value:b.value},re(b.text),9,k0))),128))],40,w0),_("select",{class:"select-input",value:c,onChange:b=>o(b,p,i)},[(u(!0),v(ue,null,_e(y,b=>(u(),v("option",{key:b.value,value:b.value},re(b.text),9,D0))),128))],40,$0)]),_("div",P0,[_("span",{class:"custom-icon",onClick:b=>f(!1)},[U(m0)],8,M0),_("span",{class:"custom-icon",onClick:b=>f(!0)},[U(g0)],8,T0)])]),key:"0"}:void 0,e.monthOverlaySlot?{name:"month-overlay",fn:D(({month:i,year:c,items:g,updateMonthYear:y,toggle:p})=>[_("div",S0,[_("select",{class:"select-input",value:i,onChange:f=>n(f,y,c,p)},[(u(!0),v(ue,null,_e(g,f=>(u(),v("option",{key:f.value,value:f.value},re(f.text),9,A0))),128))],40,x0)]),_("button",{onClick:p},"Close",8,C0)]),key:"1"}:void 0,e.yearOverlaySlot?{name:"year-overlay",fn:D(({month:i,year:c,items:g,updateMonthYear:y,toggle:p})=>[_("div",V0,[_("div",null,[_("select",{class:"select-input",value:c,onChange:f=>o(f,y,i,p)},[(u(!0),v(ue,null,_e(g,f=>(u(),v("option",{key:f.value,value:f.value},re(f.text),9,N0))),128))],40,O0)]),_("button",{onClick:p},"Close",8,R0)])]),key:"2"}:void 0]),1032,["modelValue","dark"])]))}}),L0={class:"demo-wrap"},Y0=["onClick"],E0=j({__name:"PresetRange",setup(e){const a=C(),{isDark:t}=Ce(),n=C([{label:"Today",value:[new Date,new Date]},{label:"Today (Slot)",value:[new Date,new Date],slot:"preset-date-range-button"},{label:"This month",value:[so(new Date),lo(new Date)]},{label:"Last month",value:[so(Yt(new Date,1)),lo(Yt(new Date,1))]},{label:"This year",value:[Rn(new Date),Ko(new Date)]}]);return(o,r)=>(u(),v("div",L0,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),placeholder:"Select Date",dark:s(t),range:"","preset-dates":n.value},{"preset-date-range-button":D(({label:l,value:i,presetDate:c})=>[_("span",{role:"button",tabindex:0,onClick:g=>c(i)},re(l),9,Y0)]),_:1},8,["modelValue","dark","preset-dates"])]))}}),B0={class:"demo-wrap"},H0=j({__name:"PreviewFormatDemo",props:["placeholder"],setup(e){const a=C(new Date),{isDark:t}=Ce(),n=o=>{const r=o.getDate(),l=o.getMonth()+1,i=o.getFullYear();return`Selected date is ${r}/${l}/${i}`};return(o,r)=>(u(),v("div",B0,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),placeholder:e.placeholder,"preview-format":n,dark:s(t)},null,8,["modelValue","placeholder","dark"])]))}}),F0={class:"demo-wrap"},W0=j({__name:"QuarterPickerDemo",setup(e){const{isDark:a}=Ce(),t=C(zt(new Date));return(n,o)=>(u(),v("div",F0,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"quarter-picker":""}),null,16,["modelValue","dark"])]))}}),z0={class:"demo-wrap"},q0=j({__name:"RangeDemo",props:{range:{type:[Boolean,Object],default:!0},clearable:{type:Boolean,default:!0},timePicker:{type:Boolean,default:!1},placeholder:{type:String,default:"Select Range"},multiCalendars:{type:[Number,String,Boolean,Object],default:null},disabledWeekDays:{type:Array,default:()=>[]}},setup(e){const a=e,{isDark:t}=Ce(),n=M(()=>{var r,l,i;return typeof a.range=="object"?((r=a.range)==null?void 0:r.autoRange)||((l=a.range)==null?void 0:l.maxRange)||((i=a.range)==null?void 0:i.minRange):!1}),o=C(n.value?null:[new Date,new Date(new Date().setDate(new Date().getDate()+7))]);return(r,l)=>(u(),v("div",z0,[U(s(Ae),Ne({modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=i=>o.value=i)},r.$props,{dark:s(t),rang:e.range,placeholder:e.placeholder}),null,16,["modelValue","dark","rang","placeholder"])]))}}),j0={class:"demo-wrap"},Q0=j({__name:"RangeDemoDeprecated",props:{autoRange:{type:[Number,String],default:null},multiCalendars:{type:[Number,String,Boolean,Object],default:null},partialRange:{type:Boolean,default:!0},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showLastInRange:{type:Boolean,default:!0},placeholder:{type:String,default:"Select Range"},minRange:{type:Number,default:null},maxRange:{type:Number,default:null},noVModel:{type:Boolean,default:!1}},setup(e){const a=e,{isDark:t}=Ce(),n=C(a.autoRange||a.noVModel?null:[new Date,new Date(new Date().setDate(new Date().getDate()+7))]);return(o,r)=>(u(),v("div",j0,[U(s(Ae),Ne({modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l)},o.$props,{dark:s(t),range:"",placeholder:e.placeholder}),null,16,["modelValue","dark","placeholder"])]))}}),G0={class:"demo-wrap"},U0=j({__name:"DisabledRangeDateDemoDeprecated",props:{},setup(e){const{isDark:a}=Ce(),t=C([]),n=[Hn(new Date,1),new Date,Ue(new Date,1)];return(o,r)=>(u(),v("div",G0,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l)},o.$props,{dark:s(a),range:"","no-disabled-range":"","disabled-dates":n,placeholder:"Select range"}),null,16,["modelValue","dark"])]))}}),K0={class:"demo-wrap"},X0=_("button",{class:"submit-btn",type:"submit"},"Submit form",-1),J0=j({__name:"RequiredDemo",setup(e){const a=C(),{isDark:t}=Ce(),n=()=>{alert("Form submitted")};return(o,r)=>(u(),v("div",K0,[_("form",{onSubmit:Le(n,["prevent"])},[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),placeholder:"Select Date",required:""},null,8,["modelValue","dark"]),X0],32)]))}}),Z0={class:"demo-wrap"},ey={class:"buttons-wrap"},ty=["onClick"],ay=j({__name:"SixWeeksDemo",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=[!0,"append","prepend","center","fair"],o=C(!0);return(r,l)=>(u(),v("div",Z0,[_("div",ey,[(u(),v(ue,null,_e(n,(i,c)=>_("button",{class:ve(["change-btn",{"btn-active":i===o.value}]),key:c,onClick:g=>o.value=i},re(i),11,ty)),64))]),U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),dark:s(t),"six-weeks":o.value},null,8,["modelValue","dark","six-weeks"])]))}}),ny=pe(ay,[["__scopeId","data-v-e3f2bf69"]]),oy={class:"demo-wrap"},ry=j({__name:"TextInputDemo",props:["textInput","placeholder","minDate","maxDate"],setup(e){const a=C(new Date),{isDark:t}=Ce();return(n,o)=>(u(),v("div",oy,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t),"text-input":e.textInput,placeholder:e.placeholder,"min-date":e.minDate,"max-date":e.maxDate},null,8,["modelValue","dark","text-input","placeholder","min-date","max-date"])]))}}),ly={class:"demo-wrap"},sy=j({__name:"TimePickerDemo",props:["modeHeight"],setup(e){const{isDark:a}=Ce(),t=C({hours:new Date().getHours(),minutes:new Date().getMinutes()});return(n,o)=>(u(),v("div",ly,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"time-picker":""}),null,16,["modelValue","dark"])]))}}),iy={class:"demo-wrap"},uy={class:"custom-time-picker-component"},dy=["value","onChange"],cy=["value"],my=["value","onChange"],vy=["value"],py=j({__name:"TimePickerSlotDemo",setup(e){const a=C(new Date),{isDark:t}=Ce(),n=M(()=>{const r=[];for(let l=0;l<24;l++)r.push({text:l<10?`0${l}`:l,value:l});return r}),o=M(()=>{const r=[];for(let l=0;l<60;l++)r.push({text:l<10?`0${l}`:l,value:l});return r});return(r,l)=>(u(),v("div",iy,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),dark:s(t)},{"time-picker":D(({time:i,updateTime:c})=>[_("div",uy,[_("select",{class:"select-input",value:i.hours,onChange:g=>c(+g.target.value)},[(u(!0),v(ue,null,_e(n.value,g=>(u(),v("option",{key:g.value,value:g.value},re(g.text),9,cy))),128))],40,dy),_("select",{class:"select-input",value:i.minutes,onChange:g=>c(+g.target.value,!1)},[(u(!0),v(ue,null,_e(o.value,g=>(u(),v("option",{key:g.value,value:g.value},re(g.text),9,vy))),128))],40,my)])]),_:1},8,["modelValue","dark"])]))}}),fy={class:"demo-wrap"},hy={key:0},yy=j({__name:"TimezoneDemo",setup(e){const a=C(),{isDark:t}=Ce();return(n,o)=>(u(),v("div",fy,[U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t),utc:"",placeholder:"Select Date"},null,8,["modelValue","dark"]),a.value?(u(),v("p",hy,"Selected date in UTC format: "+re(a.value),1)):S("",!0)]))}}),gy=e=>(Ze("data-v-323b52ea"),e=e(),et(),e),_y={class:"demo-wrap"},by=gy(()=>_("option",{value:void 0},"Select timezone",-1)),wy=["value"],ky=j({__name:"TimezonePropDemo",setup(e){const a=C([new Date,Ue(new Date,5)]),{isDark:t}=Ce(),n=C(void 0),o=["Pacific/Midway","America/Adak","Pacific/Gambier","America/Los_Angeles","America/Denver","America/Chicago","America/New_York","America/Santiago","America/Sao_Paulo","America/Noronha","Atlantic/Cape_Verde","UTC","Europe/Brussels","Africa/Cairo","Europe/Minsk","Europe/Moscow","Asia/Tashkent","Asia/Dhaka","Asia/Novosibirsk","Australia/Perth","Asia/Tokyo","Australia/Hobart","Asia/Vladivostok","Pacific/Auckland"];return(r,l)=>(u(),v("div",_y,[_("div",null,[ca(_("select",{class:"custom-select",name:"timezone-select",id:"timezone-select","onUpdate:modelValue":l[0]||(l[0]=i=>n.value=i)},[by,(u(),v(ue,null,_e(o,i=>_("option",{value:i,key:i},re(i),9,wy)),64))],512),[[Gr,n.value]])]),U(s(Ae),{modelValue:a.value,"onUpdate:modelValue":l[1]||(l[1]=i=>a.value=i),dark:s(t),"multi-calendars":"",timezone:n.value,range:"","partial-range":!1},null,8,["modelValue","dark","timezone"])]))}}),$y=pe(ky,[["__scopeId","data-v-323b52ea"]]),Dy={class:"demo-wrap"},Py=j({__name:"YearPickerDemo",props:{},setup(e){const{isDark:a}=Ce(),t=C(new Date().getFullYear());return(n,o)=>(u(),v("div",Dy,[U(s(Ae),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"year-picker":""}),null,16,["modelValue","dark"])]))}}),Ar=e=>(Ze("data-v-938a3203"),e=e(),et(),e),My={class:"tz-demo-wrap"},Ty={class:"dp-container-wrap"},Sy={class:"tz-range-slider-wrap"},xy=Ar(()=>_("br",null,null,-1)),Ay=Ar(()=>_("br",null,null,-1)),Cy={key:0},Vy=j({__name:"TimezoneNewDemo",props:{timezone:{type:Object,default:void 0},emitVal:{type:Boolean,default:!1}},setup(e){const{isDark:a}=Ce(),t=e,n=C(),o=C(11),r=C(),l=M(()=>{var f,b;if(t.emitVal)return;const p=Me(new Date)+1>9?Me(new Date)+1:`0${Me(new Date)+1}`;return(f=t.timezone)!=null&&f.exactMatch?new Date:(b=t.timezone)!=null&&b.dateInTz?`${$e(new Date)}-${p}-15T01:00:00Z`:`${$e(new Date)}-${p}-15T01:00:00Z`}),i=[{tz:"Pacific/Midway",offset:-11},{tz:"America/Adak",offset:-10},{tz:"Pacific/Gambier",offset:-9},{tz:"America/Los_Angeles",offset:-8},{tz:"America/Denver",offset:-7},{tz:"America/Chicago",offset:-6},{tz:"America/New_York",offset:-5},{tz:"America/Santiago",offset:-4},{tz:"America/Sao_Paulo",offset:-3},{tz:"America/Noronha",offset:-2},{tz:"Atlantic/Cape_Verde",offset:-1},{tz:"UTC",offset:0},{tz:"Europe/Brussels",offset:1},{tz:"Africa/Cairo",offset:2},{tz:"Europe/Minsk",offset:3},{tz:"Europe/Moscow",offset:4},{tz:"Asia/Tashkent",offset:5},{tz:"Asia/Dhaka",offset:6},{tz:"Asia/Novosibirsk",offset:7},{tz:"Australia/Perth",offset:8},{tz:"Asia/Tokyo",offset:9},{tz:"Australia/Hobart",offset:10},{tz:"Asia/Vladivostok",offset:11},{tz:"Pacific/Auckland",offset:12}],c=M(()=>i[o.value]),g=M(()=>{const p=t.emitVal?{emitTimezone:c.value.tz}:{timezone:c.value.tz};return t.timezone?{...t.timezone,...p}:p}),y=p=>{r.value=p.toISOString()};return(p,f)=>(u(),v("div",My,[_("div",Ty,[U(s(Ae),{modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=b=>n.value=b),dark:s(a),timezone:g.value,inline:"","auto-apply":"","max-date":l.value,"onUpdate:modelTimezoneValue":y},null,8,["modelValue","dark","timezone","max-date"])]),_("div",Sy,[_("div",null,[_("span",null,"Timezone: "+re(c.value.tz),1),xy,_("span",null,"Offset: "+re(c.value.offset>0?`+${c.value.offset}`:c.value.offset),1),Ay,r.value?(u(),v("span",Cy,"Zoned date: "+re(r.value),1)):S("",!0)]),_("div",null,[ca(_("input",{class:"tz-range-slider",type:"range","onUpdate:modelValue":f[1]||(f[1]=b=>o.value=b),min:"0",max:"22"},null,512),[[Ur,o.value]])])])]))}}),Oy=pe(Vy,[["__scopeId","data-v-938a3203"]]),Iy={extends:rc,enhanceApp({app:e}){e.component("StarAndSponsor",cc),e.component("ActionRowSlotDemo",gf),e.component("CustomCalendarDemo",bf),e.component("DarkDemo",kf),e.component("DemoDayClass",Df),e.component("DemoHighlight",Mf),e.component("DemoMarkers",xf),e.component("DemoSlots",ah),e.component("DisabledDatesDemo",oh),e.component("DisabledRangeDateDemo",lh),e.component("DisabledTimesDemo",ch),e.component("DisplayModelDemo",ph),e.component("EmitTimezone",hh),e.component("EmptyDemo",gh),e.component("FiltersDemo",bh),e.component("FormatDemo",kh),e.component("GlobalDemo",Dh),e.component("LocalizedOutput",a0),e.component("MinMaxDemo",o0),e.component("MonthPickerDemo",l0),e.component("MonthYearSlotDemo",I0),e.component("PresetRange",E0),e.component("PreviewFormatDemo",H0),e.component("QuarterPickerDemo",W0),e.component("RangeDemo",q0),e.component("RequiredDemo",J0),e.component("SixWeeksDemo",ny),e.component("TextInputDemo",ry),e.component("TimePickerDemo",sy),e.component("TimePickerSlotDemo",py),e.component("TimezoneDemo",yy),e.component("TimezonePropDemo",$y),e.component("YearPickerDemo",Py),e.component("RangeDemoDeprecated",Q0),e.component("DisabledRangeDateDemoDeprecated",U0),e.component("TimezoneNewDemo",Oy)}};export{Iy as R,hl as a,Se as u}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/chunks/ui-custom.DI_I2doF.js","assets/chunks/framework.DOHaQP0J.js","assets/chunks/VPAlgoliaSearchBox.OR8LPsXr.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/docs/assets/chunks/theme.BzdH-DCK.js b/docs/assets/chunks/theme.BzdH-DCK.js deleted file mode 100644 index f88d3473d..000000000 --- a/docs/assets/chunks/theme.BzdH-DCK.js +++ /dev/null @@ -1,7 +0,0 @@ -var Sr=Object.defineProperty;var Ar=(e,a,t)=>a in e?Sr(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var ue=(e,a,t)=>(Ar(e,typeof a!="symbol"?a+"":a,t),t);import{d as W,o as u,c as v,r as $,n as de,a as Oe,t as oe,b as re,w as D,T as Lt,e as S,_ as ve,u as Ae,i as Cr,f as Vr,g as Pn,h as C,j as pa,k as M,l as Ue,m as g,p as s,q as Je,s as Ze,v as aa,x as hn,y as lt,z as Ha,A as Ut,B as $o,C as Or,D as Nr,E as na,F as le,G as ye,H as Do,I as Fa,J as G,K as Po,L as Mo,M as Mt,N as xo,O as Wa,P as Ne,Q as za,R as Rr,S as it,U as Lr,V as Yr,W as Nt,X as To,Y as Ir,Z as So,$ as Ao,a0 as we,a1 as Br,a2 as Le,a3 as Qt,a4 as Pa,a5 as La,a6 as at,a7 as Ke,a8 as rt,a9 as eo,aa as Er,ab as Hr,ac as to,ad as Fr,ae as ia,af as Na,ag as Wr,ah as zr,ai as At,aj as qr,ak as Ur}from"./framework.B2SzNmjg.js";const Qr=W({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(a,t)=>(u(),v("span",{class:de(["VPBadge",a.type])},[$(a.$slots,"default",{},()=>[Oe(oe(a.text),1)])],2))}}),Gr={key:0,class:"VPBackdrop"},jr=W({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(a,t)=>(u(),re(Lt,{name:"fade"},{default:D(()=>[a.show?(u(),v("div",Gr)):S("",!0)]),_:1}))}}),Xr=ve(jr,[["__scopeId","data-v-c79a1216"]]),xe=Ae;function Kr(e,a){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(e,a):(e(),(n=!0)&&setTimeout(()=>n=!1,a))}}function yn(e){return/^\//.test(e)?e:`/${e}`}function Mn(e){const{pathname:a,search:t,hash:n,protocol:o}=new URL(e,"http://a.com");if(Cr(e)||e.startsWith("#")||!o.startsWith("http")||!Vr(a))return e;const{site:r}=xe(),l=a.endsWith("/")||a.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${a.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return Pn(l)}const xn=C(pa?location.hash:"");pa&&window.addEventListener("hashchange",()=>{xn.value=location.hash});function Ma({removeCurrent:e=!0,correspondingLink:a=!1}={}){const{site:t,localeIndex:n,page:o,theme:r}=xe(),l=M(()=>{var d,_;return{label:(d=t.value.locales[n.value])==null?void 0:d.label,link:((_=t.value.locales[n.value])==null?void 0:_.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:M(()=>Object.entries(t.value.locales).flatMap(([d,_])=>e&&l.value.label===_.label?[]:{text:_.label,link:Jr(_.link||(d==="root"?"/":`/${d}/`),r.value.i18nRouting!==!1&&a,o.value.relativePath.slice(l.value.link.length-1),!t.value.cleanUrls)+xn.value})),currentLang:l}}function Jr(e,a,t,n){return a?e.replace(/\/$/,"")+yn(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):e}const Zr=e=>(Je("data-v-f87ff6e4"),e=e(),Ze(),e),el={class:"NotFound"},tl={class:"code"},al={class:"title"},nl=Zr(()=>g("div",{class:"divider"},null,-1)),ol={class:"quote"},rl={class:"action"},ll=["href","aria-label"],sl=W({__name:"NotFound",setup(e){const{site:a,theme:t}=xe(),{localeLinks:n}=Ma({removeCurrent:!1}),o=C("/");return Ue(()=>{var l;const r=window.location.pathname.replace(a.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(o.value=((l=n.value.find(({link:i})=>i.startsWith(r)))==null?void 0:l.link)||n.value[0].link)}),(r,l)=>{var i,d,_,f,p;return u(),v("div",el,[g("p",tl,oe(((i=s(t).notFound)==null?void 0:i.code)??"404"),1),g("h1",al,oe(((d=s(t).notFound)==null?void 0:d.title)??"PAGE NOT FOUND"),1),nl,g("blockquote",ol,oe(((_=s(t).notFound)==null?void 0:_.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),g("div",rl,[g("a",{class:"link",href:s(Pn)(o.value),"aria-label":((f=s(t).notFound)==null?void 0:f.linkLabel)??"go to home"},oe(((p=s(t).notFound)==null?void 0:p.linkText)??"Take me home"),9,ll)])])}}}),il=ve(sl,[["__scopeId","data-v-f87ff6e4"]]);function Co(e,a){if(Array.isArray(e))return Ra(e);if(e==null)return[];a=yn(a);const t=Object.keys(e).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>a.startsWith(yn(o))),n=t?e[t]:[];return Array.isArray(n)?Ra(n):Ra(n.items,n.base)}function ul(e){const a=[];let t=0;for(const n in e){const o=e[n];if(o.items){t=a.push(o);continue}a[t]||a.push({items:[]}),a[t].items.push(o)}return a}function cl(e){const a=[];function t(n){for(const o of n)o.text&&o.link&&a.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&t(o.items)}return t(e),a}function gn(e,a){return Array.isArray(a)?a.some(t=>gn(e,t)):aa(e,a.link)?!0:a.items?gn(e,a.items):!1}function Ra(e,a){return[...e].map(t=>{const n={...t},o=n.base||a;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=Ra(n.items,o)),n})}function Yt(){const{frontmatter:e,page:a,theme:t}=xe(),n=hn("(min-width: 960px)"),o=C(!1),r=M(()=>{const x=t.value.sidebar,Y=a.value.relativePath;return x?Co(x,Y):[]}),l=C(r.value);lt(r,(x,Y)=>{JSON.stringify(x)!==JSON.stringify(Y)&&(l.value=r.value)});const i=M(()=>e.value.sidebar!==!1&&l.value.length>0&&e.value.layout!=="home"),d=M(()=>_?e.value.aside==null?t.value.aside==="left":e.value.aside==="left":!1),_=M(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:t.value.aside!==!1),f=M(()=>i.value&&n.value),p=M(()=>i.value?ul(l.value):[]);function h(){o.value=!0}function y(){o.value=!1}function A(){o.value?y():h()}return{isOpen:o,sidebar:l,sidebarGroups:p,hasSidebar:i,hasAside:_,leftAside:d,isSidebarEnabled:f,open:h,close:y,toggle:A}}function dl(e,a){let t;Ha(()=>{t=e.value?document.activeElement:void 0}),Ue(()=>{window.addEventListener("keyup",n)}),Ut(()=>{window.removeEventListener("keyup",n)});function n(o){o.key==="Escape"&&e.value&&(a(),t==null||t.focus())}}function ml(e){const{page:a}=xe(),t=C(!1),n=M(()=>e.value.collapsed!=null),o=M(()=>!!e.value.link),r=C(!1),l=()=>{r.value=aa(a.value.relativePath,e.value.link)};lt([a,e,xn],l),Ue(l);const i=M(()=>r.value?!0:e.value.items?gn(a.value.relativePath,e.value.items):!1),d=M(()=>!!(e.value.items&&e.value.items.length));Ha(()=>{t.value=!!(n.value&&e.value.collapsed)}),$o(()=>{(r.value||i.value)&&(t.value=!1)});function _(){n.value&&(t.value=!t.value)}return{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:i,hasChildren:d,toggle:_}}function vl(){const{hasSidebar:e}=Yt(),a=hn("(min-width: 960px)"),t=hn("(min-width: 1280px)");return{isAsideEnabled:M(()=>!t.value&&!a.value?!1:e.value?t.value:a.value)}}const _n=[];function Vo(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function Tn(e){const a=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:pl(t),link:"#"+t.id,level:n}});return fl(a,e)}function pl(e){let a="";for(const t of e.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;a+=t.textContent}else t.nodeType===3&&(a+=t.textContent);return a.trim()}function fl(e,a){if(a===!1)return[];const t=(typeof a=="object"&&!Array.isArray(a)?a.level:a)||2,[n,o]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;e=e.filter(l=>l.level>=n&&l.level<=o),_n.length=0;for(const{element:l,link:i}of e)_n.push({element:l,link:i});const r=[];e:for(let l=0;l=0;d--){const _=e[d];if(_.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Or(()=>{l(location.hash)}),Ut(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const i=window.scrollY,d=window.innerHeight,_=document.body.offsetHeight,f=Math.abs(i+d-_)<1,p=_n.map(({element:y,link:A})=>({link:A,top:yl(y)})).filter(({top:y})=>!Number.isNaN(y)).sort((y,A)=>y.top-A.top);if(!p.length){l(null);return}if(i<1){l(null);return}if(f){l(p[p.length-1].link);return}let h=null;for(const{link:y,top:A}of p){if(A>i+Nr()+4)break;h=y}l(h)}function l(i){o&&o.classList.remove("active"),i==null?o=null:o=e.value.querySelector(`a[href="${decodeURIComponent(i)}"]`);const d=o;d?(d.classList.add("active"),a.value.style.top=d.offsetTop+39+"px",a.value.style.opacity="1"):(a.value.style.top="33px",a.value.style.opacity="0")}}function yl(e){let a=0;for(;e!==document.body;){if(e===null)return NaN;a+=e.offsetTop,e=e.offsetParent}return a}const gl=["href","title"],_l=W({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(e){function a({target:t}){const n=t.href.split("#")[1],o=document.getElementById(decodeURIComponent(n));o==null||o.focus({preventScroll:!0})}return(t,n)=>{const o=na("VPDocOutlineItem",!0);return u(),v("ul",{class:de(["VPDocOutlineItem",t.root?"root":"nested"])},[(u(!0),v(le,null,ye(t.headers,({children:r,link:l,title:i})=>(u(),v("li",null,[g("a",{class:"outline-link",href:l,onClick:a,title:i},oe(i),9,gl),r!=null&&r.length?(u(),re(o,{key:0,headers:r},null,8,["headers"])):S("",!0)]))),256))],2)}}}),Oo=ve(_l,[["__scopeId","data-v-b933a997"]]),bl=e=>(Je("data-v-935f8a84"),e=e(),Ze(),e),kl={class:"content"},wl={class:"outline-title",role:"heading","aria-level":"2"},$l={"aria-labelledby":"doc-outline-aria-label"},Dl=bl(()=>g("span",{class:"visually-hidden",id:"doc-outline-aria-label"}," Table of Contents for current page ",-1)),Pl=W({__name:"VPDocAsideOutline",setup(e){const{frontmatter:a,theme:t}=xe(),n=Do([]);Fa(()=>{n.value=Tn(a.value.outline??t.value.outline)});const o=C(),r=C();return hl(o,r),(l,i)=>(u(),v("div",{class:de(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:o,role:"navigation"},[g("div",kl,[g("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),g("div",wl,oe(s(Vo)(s(t))),1),g("nav",$l,[Dl,G(Oo,{headers:n.value,root:!0},null,8,["headers"])])])],2))}}),Ml=ve(Pl,[["__scopeId","data-v-935f8a84"]]),xl={class:"VPDocAsideCarbonAds"},Tl=W({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(e){const a=Po(()=>Mo(()=>import("./ui-custom.B9nMYVHF.js"),__vite__mapDeps([0,1])));return(t,n)=>(u(),v("div",xl,[G(s(a),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Sl=e=>(Je("data-v-3f215769"),e=e(),Ze(),e),Al={class:"VPDocAside"},Cl=Sl(()=>g("div",{class:"spacer"},null,-1)),Vl=W({__name:"VPDocAside",setup(e){const{theme:a}=xe();return(t,n)=>(u(),v("div",Al,[$(t.$slots,"aside-top",{},void 0,!0),$(t.$slots,"aside-outline-before",{},void 0,!0),G(Ml),$(t.$slots,"aside-outline-after",{},void 0,!0),Cl,$(t.$slots,"aside-ads-before",{},void 0,!0),s(a).carbonAds?(u(),re(Tl,{key:0,"carbon-ads":s(a).carbonAds},null,8,["carbon-ads"])):S("",!0),$(t.$slots,"aside-ads-after",{},void 0,!0),$(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Ol=ve(Vl,[["__scopeId","data-v-3f215769"]]);function Nl(){const{theme:e,page:a}=xe();return M(()=>{const{text:t="Edit this page",pattern:n=""}=e.value.editLink||{};let o;return typeof n=="function"?o=n(a.value):o=n.replace(/:path/g,a.value.filePath),{url:o,text:t}})}function Rl(){const{page:e,theme:a,frontmatter:t}=xe();return M(()=>{var d,_,f,p,h,y,A,x;const n=Co(a.value.sidebar,e.value.relativePath),o=cl(n),r=o.findIndex(Y=>aa(e.value.relativePath,Y.link)),l=((d=a.value.docFooter)==null?void 0:d.prev)===!1&&!t.value.prev||t.value.prev===!1,i=((_=a.value.docFooter)==null?void 0:_.next)===!1&&!t.value.next||t.value.next===!1;return{prev:l?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((f=o[r-1])==null?void 0:f.docFooterText)??((p=o[r-1])==null?void 0:p.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((h=o[r-1])==null?void 0:h.link)},next:i?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((y=o[r+1])==null?void 0:y.docFooterText)??((A=o[r+1])==null?void 0:A.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((x=o[r+1])==null?void 0:x.link)}}})}const xt=W({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(e){const a=e,t=M(()=>a.tag??(a.href?"a":"span")),n=M(()=>a.href&&xo.test(a.href));return(o,r)=>(u(),re(Mt(t.value),{class:de(["VPLink",{link:o.href,"vp-external-link-icon":n.value,"no-icon":o.noIcon}]),href:o.href?s(Mn)(o.href):void 0,target:o.target??(n.value?"_blank":void 0),rel:o.rel??(n.value?"noreferrer":void 0)},{default:D(()=>[$(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Ll={class:"VPLastUpdated"},Yl=["datetime"],Il=W({__name:"VPDocFooterLastUpdated",setup(e){const{theme:a,page:t,frontmatter:n,lang:o}=xe(),r=M(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),l=M(()=>r.value.toISOString()),i=C("");return Ue(()=>{Ha(()=>{var d,_,f;i.value=new Intl.DateTimeFormat((_=(d=a.value.lastUpdated)==null?void 0:d.formatOptions)!=null&&_.forceLocale?o.value:void 0,((f=a.value.lastUpdated)==null?void 0:f.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(d,_)=>{var f;return u(),v("p",Ll,[Oe(oe(((f=s(a).lastUpdated)==null?void 0:f.text)||s(a).lastUpdatedText||"Last updated")+": ",1),g("time",{datetime:l.value},oe(i.value),9,Yl)])}}}),Bl=ve(Il,[["__scopeId","data-v-7e05ebdb"]]),El=e=>(Je("data-v-09de1c0f"),e=e(),Ze(),e),Hl={key:0,class:"VPDocFooter"},Fl={key:0,class:"edit-info"},Wl={key:0,class:"edit-link"},zl=El(()=>g("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),ql={key:1,class:"last-updated"},Ul={key:1,class:"prev-next"},Ql={class:"pager"},Gl=["innerHTML"],jl=["innerHTML"],Xl={class:"pager"},Kl=["innerHTML"],Jl=["innerHTML"],Zl=W({__name:"VPDocFooter",setup(e){const{theme:a,page:t,frontmatter:n}=xe(),o=Nl(),r=Rl(),l=M(()=>a.value.editLink&&n.value.editLink!==!1),i=M(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),d=M(()=>l.value||i.value||r.value.prev||r.value.next);return(_,f)=>{var p,h,y,A;return d.value?(u(),v("footer",Hl,[$(_.$slots,"doc-footer-before",{},void 0,!0),l.value||i.value?(u(),v("div",Fl,[l.value?(u(),v("div",Wl,[G(xt,{class:"edit-link-button",href:s(o).url,"no-icon":!0},{default:D(()=>[zl,Oe(" "+oe(s(o).text),1)]),_:1},8,["href"])])):S("",!0),i.value?(u(),v("div",ql,[G(Bl)])):S("",!0)])):S("",!0),(p=s(r).prev)!=null&&p.link||(h=s(r).next)!=null&&h.link?(u(),v("nav",Ul,[g("div",Ql,[(y=s(r).prev)!=null&&y.link?(u(),re(xt,{key:0,class:"pager-link prev",href:s(r).prev.link},{default:D(()=>{var x;return[g("span",{class:"desc",innerHTML:((x=s(a).docFooter)==null?void 0:x.prev)||"Previous page"},null,8,Gl),g("span",{class:"title",innerHTML:s(r).prev.text},null,8,jl)]}),_:1},8,["href"])):S("",!0)]),g("div",Xl,[(A=s(r).next)!=null&&A.link?(u(),re(xt,{key:0,class:"pager-link next",href:s(r).next.link},{default:D(()=>{var x;return[g("span",{class:"desc",innerHTML:((x=s(a).docFooter)==null?void 0:x.next)||"Next page"},null,8,Kl),g("span",{class:"title",innerHTML:s(r).next.text},null,8,Jl)]}),_:1},8,["href"])):S("",!0)])])):S("",!0)])):S("",!0)}}}),es=ve(Zl,[["__scopeId","data-v-09de1c0f"]]),ts=e=>(Je("data-v-39a288b8"),e=e(),Ze(),e),as={class:"container"},ns=ts(()=>g("div",{class:"aside-curtain"},null,-1)),os={class:"aside-container"},rs={class:"aside-content"},ls={class:"content"},ss={class:"content-container"},is={class:"main"},us=W({__name:"VPDoc",setup(e){const{theme:a}=xe(),t=Wa(),{hasSidebar:n,hasAside:o,leftAside:r}=Yt(),l=M(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(i,d)=>{const _=na("Content");return u(),v("div",{class:de(["VPDoc",{"has-sidebar":s(n),"has-aside":s(o)}])},[$(i.$slots,"doc-top",{},void 0,!0),g("div",as,[s(o)?(u(),v("div",{key:0,class:de(["aside",{"left-aside":s(r)}])},[ns,g("div",os,[g("div",rs,[G(Ol,null,{"aside-top":D(()=>[$(i.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":D(()=>[$(i.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":D(()=>[$(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":D(()=>[$(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":D(()=>[$(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":D(()=>[$(i.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):S("",!0),g("div",ls,[g("div",ss,[$(i.$slots,"doc-before",{},void 0,!0),g("main",is,[G(_,{class:de(["vp-doc",[l.value,s(a).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),G(es,null,{"doc-footer-before":D(()=>[$(i.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),$(i.$slots,"doc-after",{},void 0,!0)])])]),$(i.$slots,"doc-bottom",{},void 0,!0)],2)}}}),cs=ve(us,[["__scopeId","data-v-39a288b8"]]),ds=W({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(e){const a=e,t=M(()=>a.href&&xo.test(a.href)),n=M(()=>a.tag||a.href?"a":"button");return(o,r)=>(u(),re(Mt(n.value),{class:de(["VPButton",[o.size,o.theme]]),href:o.href?s(Mn)(o.href):void 0,target:a.target??(t.value?"_blank":void 0),rel:a.rel??(t.value?"noreferrer":void 0)},{default:D(()=>[Oe(oe(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),ms=ve(ds,[["__scopeId","data-v-cad61b99"]]),vs=["src","alt"],ps=W({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(e){return(a,t)=>{const n=na("VPImage",!0);return a.image?(u(),v(le,{key:0},[typeof a.image=="string"||"src"in a.image?(u(),v("img",Ne({key:0,class:"VPImage"},typeof a.image=="string"?a.$attrs:{...a.image,...a.$attrs},{src:s(Pn)(typeof a.image=="string"?a.image:a.image.src),alt:a.alt??(typeof a.image=="string"?"":a.image.alt||"")}),null,16,vs)):(u(),v(le,{key:1},[G(n,Ne({class:"dark",image:a.image.dark,alt:a.image.alt},a.$attrs),null,16,["image","alt"]),G(n,Ne({class:"light",image:a.image.light,alt:a.image.alt},a.$attrs),null,16,["image","alt"])],64))],64)):S("",!0)}}}),Ya=ve(ps,[["__scopeId","data-v-8426fc1a"]]),fs=e=>(Je("data-v-303bb580"),e=e(),Ze(),e),hs={class:"container"},ys={class:"main"},gs={key:0,class:"name"},_s=["innerHTML"],bs=["innerHTML"],ks=["innerHTML"],ws={key:0,class:"actions"},$s={key:0,class:"image"},Ds={class:"image-container"},Ps=fs(()=>g("div",{class:"image-bg"},null,-1)),Ms=W({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(e){const a=za("hero-image-slot-exists");return(t,n)=>(u(),v("div",{class:de(["VPHero",{"has-image":t.image||s(a)}])},[g("div",hs,[g("div",ys,[$(t.$slots,"home-hero-info-before",{},void 0,!0),$(t.$slots,"home-hero-info",{},()=>[t.name?(u(),v("h1",gs,[g("span",{innerHTML:t.name,class:"clip"},null,8,_s)])):S("",!0),t.text?(u(),v("p",{key:1,innerHTML:t.text,class:"text"},null,8,bs)):S("",!0),t.tagline?(u(),v("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,ks)):S("",!0)],!0),$(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(u(),v("div",ws,[(u(!0),v(le,null,ye(t.actions,o=>(u(),v("div",{key:o.link,class:"action"},[G(ms,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):S("",!0),$(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||s(a)?(u(),v("div",$s,[g("div",Ds,[Ps,$(t.$slots,"home-hero-image",{},()=>[t.image?(u(),re(Ya,{key:0,class:"image-src",image:t.image},null,8,["image"])):S("",!0)],!0)])])):S("",!0)])],2))}}),xs=ve(Ms,[["__scopeId","data-v-303bb580"]]),Ts=W({__name:"VPHomeHero",setup(e){const{frontmatter:a}=xe();return(t,n)=>s(a).hero?(u(),re(xs,{key:0,class:"VPHomeHero",name:s(a).hero.name,text:s(a).hero.text,tagline:s(a).hero.tagline,image:s(a).hero.image,actions:s(a).hero.actions},{"home-hero-info-before":D(()=>[$(t.$slots,"home-hero-info-before")]),"home-hero-info":D(()=>[$(t.$slots,"home-hero-info")]),"home-hero-info-after":D(()=>[$(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":D(()=>[$(t.$slots,"home-hero-actions-after")]),"home-hero-image":D(()=>[$(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):S("",!0)}}),Ss=e=>(Je("data-v-a3976bdc"),e=e(),Ze(),e),As={class:"box"},Cs={key:0,class:"icon"},Vs=["innerHTML"],Os=["innerHTML"],Ns=["innerHTML"],Rs={key:4,class:"link-text"},Ls={class:"link-text-value"},Ys=Ss(()=>g("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Is=W({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(e){return(a,t)=>(u(),re(xt,{class:"VPFeature",href:a.link,rel:a.rel,target:a.target,"no-icon":!0,tag:a.link?"a":"div"},{default:D(()=>[g("article",As,[typeof a.icon=="object"&&a.icon.wrap?(u(),v("div",Cs,[G(Ya,{image:a.icon,alt:a.icon.alt,height:a.icon.height||48,width:a.icon.width||48},null,8,["image","alt","height","width"])])):typeof a.icon=="object"?(u(),re(Ya,{key:1,image:a.icon,alt:a.icon.alt,height:a.icon.height||48,width:a.icon.width||48},null,8,["image","alt","height","width"])):a.icon?(u(),v("div",{key:2,class:"icon",innerHTML:a.icon},null,8,Vs)):S("",!0),g("h2",{class:"title",innerHTML:a.title},null,8,Os),a.details?(u(),v("p",{key:3,class:"details",innerHTML:a.details},null,8,Ns)):S("",!0),a.linkText?(u(),v("div",Rs,[g("p",Ls,[Oe(oe(a.linkText)+" ",1),Ys])])):S("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Bs=ve(Is,[["__scopeId","data-v-a3976bdc"]]),Es={key:0,class:"VPFeatures"},Hs={class:"container"},Fs={class:"items"},Ws=W({__name:"VPFeatures",props:{features:{}},setup(e){const a=e,t=M(()=>{const n=a.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,o)=>n.features?(u(),v("div",Es,[g("div",Hs,[g("div",Fs,[(u(!0),v(le,null,ye(n.features,r=>(u(),v("div",{key:r.title,class:de(["item",[t.value]])},[G(Bs,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):S("",!0)}}),zs=ve(Ws,[["__scopeId","data-v-a6181336"]]),qs=W({__name:"VPHomeFeatures",setup(e){const{frontmatter:a}=xe();return(t,n)=>s(a).features?(u(),re(zs,{key:0,class:"VPHomeFeatures",features:s(a).features},null,8,["features"])):S("",!0)}}),Us=W({__name:"VPHomeContent",setup(e){const{width:a}=Rr({includeScrollbar:!1});return(t,n)=>(u(),v("div",{class:"vp-doc container",style:it(s(a)?{"--vp-offset":`calc(50% - ${s(a)/2}px)`}:{})},[$(t.$slots,"default",{},void 0,!0)],4))}}),Qs=ve(Us,[["__scopeId","data-v-82d4af08"]]),Gs={class:"VPHome"},js=W({__name:"VPHome",setup(e){const{frontmatter:a}=xe();return(t,n)=>{const o=na("Content");return u(),v("div",Gs,[$(t.$slots,"home-hero-before",{},void 0,!0),G(Ts,null,{"home-hero-info-before":D(()=>[$(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":D(()=>[$(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":D(()=>[$(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":D(()=>[$(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":D(()=>[$(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),$(t.$slots,"home-hero-after",{},void 0,!0),$(t.$slots,"home-features-before",{},void 0,!0),G(qs),$(t.$slots,"home-features-after",{},void 0,!0),s(a).markdownStyles!==!1?(u(),re(Qs,{key:0},{default:D(()=>[G(o)]),_:1})):(u(),re(o,{key:1}))])}}}),Xs=ve(js,[["__scopeId","data-v-686f80a6"]]),Ks={},Js={class:"VPPage"};function Zs(e,a){const t=na("Content");return u(),v("div",Js,[$(e.$slots,"page-top"),G(t),$(e.$slots,"page-bottom")])}const ei=ve(Ks,[["render",Zs]]),ti=W({__name:"VPContent",setup(e){const{page:a,frontmatter:t}=xe(),{hasSidebar:n}=Yt();return(o,r)=>(u(),v("div",{class:de(["VPContent",{"has-sidebar":s(n),"is-home":s(t).layout==="home"}]),id:"VPContent"},[s(a).isNotFound?$(o.$slots,"not-found",{key:0},()=>[G(il)],!0):s(t).layout==="page"?(u(),re(ei,{key:1},{"page-top":D(()=>[$(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":D(()=>[$(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):s(t).layout==="home"?(u(),re(Xs,{key:2},{"home-hero-before":D(()=>[$(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":D(()=>[$(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":D(()=>[$(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":D(()=>[$(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":D(()=>[$(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":D(()=>[$(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":D(()=>[$(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":D(()=>[$(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":D(()=>[$(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):s(t).layout&&s(t).layout!=="doc"?(u(),re(Mt(s(t).layout),{key:3})):(u(),re(cs,{key:4},{"doc-top":D(()=>[$(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":D(()=>[$(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":D(()=>[$(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":D(()=>[$(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":D(()=>[$(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":D(()=>[$(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":D(()=>[$(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":D(()=>[$(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":D(()=>[$(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":D(()=>[$(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":D(()=>[$(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ai=ve(ti,[["__scopeId","data-v-1428d186"]]),ni={class:"container"},oi=["innerHTML"],ri=["innerHTML"],li=W({__name:"VPFooter",setup(e){const{theme:a,frontmatter:t}=xe(),{hasSidebar:n}=Yt();return(o,r)=>s(a).footer&&s(t).footer!==!1?(u(),v("footer",{key:0,class:de(["VPFooter",{"has-sidebar":s(n)}])},[g("div",ni,[s(a).footer.message?(u(),v("p",{key:0,class:"message",innerHTML:s(a).footer.message},null,8,oi)):S("",!0),s(a).footer.copyright?(u(),v("p",{key:1,class:"copyright",innerHTML:s(a).footer.copyright},null,8,ri)):S("",!0)])],2)):S("",!0)}}),si=ve(li,[["__scopeId","data-v-e315a0ad"]]);function No(){const{theme:e,frontmatter:a}=xe(),t=Do([]),n=M(()=>t.value.length>0);return Fa(()=>{t.value=Tn(a.value.outline??e.value.outline)}),{headers:t,hasLocalNav:n}}const ii=e=>(Je("data-v-d2ecc192"),e=e(),Ze(),e),ui=ii(()=>g("span",{class:"vpi-chevron-right icon"},null,-1)),ci={class:"header"},di={class:"outline"},mi=W({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(e){const a=e,{theme:t}=xe(),n=C(!1),o=C(0),r=C(),l=C();Lr(r,()=>{n.value=!1}),Yr("Escape",()=>{n.value=!1}),Fa(()=>{n.value=!1});function i(){n.value=!n.value,o.value=window.innerHeight+Math.min(window.scrollY-a.navHeight,0)}function d(f){f.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),Nt(()=>{n.value=!1}))}function _(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(f,p)=>(u(),v("div",{class:"VPLocalNavOutlineDropdown",style:it({"--vp-vh":o.value+"px"}),ref_key:"main",ref:r},[f.headers.length>0?(u(),v("button",{key:0,onClick:i,class:de({open:n.value})},[Oe(oe(s(Vo)(s(t)))+" ",1),ui],2)):(u(),v("button",{key:1,onClick:_},oe(s(t).returnToTopLabel||"Return to top"),1)),G(Lt,{name:"flyout"},{default:D(()=>[n.value?(u(),v("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:d},[g("div",ci,[g("a",{class:"top-link",href:"#",onClick:_},oe(s(t).returnToTopLabel||"Return to top"),1)]),g("div",di,[G(Oo,{headers:f.headers},null,8,["headers"])])],512)):S("",!0)]),_:1})],4))}}),vi=ve(mi,[["__scopeId","data-v-d2ecc192"]]),pi=e=>(Je("data-v-a6f0e41e"),e=e(),Ze(),e),fi={class:"container"},hi=["aria-expanded"],yi=pi(()=>g("span",{class:"vpi-align-left menu-icon"},null,-1)),gi={class:"menu-text"},_i=W({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:a,frontmatter:t}=xe(),{hasSidebar:n}=Yt(),{headers:o}=No(),{y:r}=To(),l=C(0);Ue(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),Fa(()=>{o.value=Tn(t.value.outline??a.value.outline)});const i=M(()=>o.value.length===0),d=M(()=>i.value&&!n.value),_=M(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:i.value,fixed:d.value}));return(f,p)=>s(t).layout!=="home"&&(!d.value||s(r)>=l.value)?(u(),v("div",{key:0,class:de(_.value)},[g("div",fi,[s(n)?(u(),v("button",{key:0,class:"menu","aria-expanded":f.open,"aria-controls":"VPSidebarNav",onClick:p[0]||(p[0]=h=>f.$emit("open-menu"))},[yi,g("span",gi,oe(s(a).sidebarMenuLabel||"Menu"),1)],8,hi)):S("",!0),G(vi,{headers:s(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):S("",!0)}}),bi=ve(_i,[["__scopeId","data-v-a6f0e41e"]]);function ki(){const e=C(!1);function a(){e.value=!0,window.addEventListener("resize",o)}function t(){e.value=!1,window.removeEventListener("resize",o)}function n(){e.value?t():a()}function o(){window.outerWidth>=768&&t()}const r=Wa();return lt(()=>r.path,t),{isScreenOpen:e,openScreen:a,closeScreen:t,toggleScreen:n}}const wi={},$i={class:"VPSwitch",type:"button",role:"switch"},Di={class:"check"},Pi={key:0,class:"icon"};function Mi(e,a){return u(),v("button",$i,[g("span",Di,[e.$slots.default?(u(),v("span",Pi,[$(e.$slots,"default",{},void 0,!0)])):S("",!0)])])}const xi=ve(wi,[["render",Mi],["__scopeId","data-v-1d5665e3"]]),Ro=e=>(Je("data-v-d1f28634"),e=e(),Ze(),e),Ti=Ro(()=>g("span",{class:"vpi-sun sun"},null,-1)),Si=Ro(()=>g("span",{class:"vpi-moon moon"},null,-1)),Ai=W({__name:"VPSwitchAppearance",setup(e){const{isDark:a,theme:t}=xe(),n=za("toggle-appearance",()=>{a.value=!a.value}),o=M(()=>a.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(r,l)=>(u(),re(xi,{title:o.value,class:"VPSwitchAppearance","aria-checked":s(a),onClick:s(n)},{default:D(()=>[Ti,Si]),_:1},8,["title","aria-checked","onClick"]))}}),Sn=ve(Ai,[["__scopeId","data-v-d1f28634"]]),Ci={key:0,class:"VPNavBarAppearance"},Vi=W({__name:"VPNavBarAppearance",setup(e){const{site:a}=xe();return(t,n)=>s(a).appearance&&s(a).appearance!=="force-dark"?(u(),v("div",Ci,[G(Sn)])):S("",!0)}}),Oi=ve(Vi,[["__scopeId","data-v-e6aabb21"]]),An=C();let Lo=!1,nn=0;function Ni(e){const a=C(!1);if(pa){!Lo&&Ri(),nn++;const t=lt(An,n=>{var o,r,l;n===e.el.value||(o=e.el.value)!=null&&o.contains(n)?(a.value=!0,(r=e.onFocus)==null||r.call(e)):(a.value=!1,(l=e.onBlur)==null||l.call(e))});Ut(()=>{t(),nn--,nn||Li()})}return Ir(a)}function Ri(){document.addEventListener("focusin",Yo),Lo=!0,An.value=document.activeElement}function Li(){document.removeEventListener("focusin",Yo)}function Yo(){An.value=document.activeElement}const Yi={class:"VPMenuLink"},Ii=W({__name:"VPMenuLink",props:{item:{}},setup(e){const{page:a}=xe();return(t,n)=>(u(),v("div",Yi,[G(xt,{class:de({active:s(aa)(s(a).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:D(()=>[Oe(oe(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),qa=ve(Ii,[["__scopeId","data-v-43f1e123"]]),Bi={class:"VPMenuGroup"},Ei={key:0,class:"title"},Hi=W({__name:"VPMenuGroup",props:{text:{},items:{}},setup(e){return(a,t)=>(u(),v("div",Bi,[a.text?(u(),v("p",Ei,oe(a.text),1)):S("",!0),(u(!0),v(le,null,ye(a.items,n=>(u(),v(le,null,["link"in n?(u(),re(qa,{key:0,item:n},null,8,["item"])):S("",!0)],64))),256))]))}}),Fi=ve(Hi,[["__scopeId","data-v-69e747b5"]]),Wi={class:"VPMenu"},zi={key:0,class:"items"},qi=W({__name:"VPMenu",props:{items:{}},setup(e){return(a,t)=>(u(),v("div",Wi,[a.items?(u(),v("div",zi,[(u(!0),v(le,null,ye(a.items,n=>(u(),v(le,{key:n.text},["link"in n?(u(),re(qa,{key:0,item:n},null,8,["item"])):(u(),re(Fi,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):S("",!0),$(a.$slots,"default",{},void 0,!0)]))}}),Ui=ve(qi,[["__scopeId","data-v-e7ea1737"]]),Qi=e=>(Je("data-v-b6c34ac9"),e=e(),Ze(),e),Gi=["aria-expanded","aria-label"],ji={key:0,class:"text"},Xi=["innerHTML"],Ki=Qi(()=>g("span",{class:"vpi-chevron-down text-icon"},null,-1)),Ji={key:1,class:"vpi-more-horizontal icon"},Zi={class:"menu"},eu=W({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(e){const a=C(!1),t=C();Ni({el:t,onBlur:n});function n(){a.value=!1}return(o,r)=>(u(),v("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=l=>a.value=!0),onMouseleave:r[2]||(r[2]=l=>a.value=!1)},[g("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":a.value,"aria-label":o.label,onClick:r[0]||(r[0]=l=>a.value=!a.value)},[o.button||o.icon?(u(),v("span",ji,[o.icon?(u(),v("span",{key:0,class:de([o.icon,"option-icon"])},null,2)):S("",!0),o.button?(u(),v("span",{key:1,innerHTML:o.button},null,8,Xi)):S("",!0),Ki])):(u(),v("span",Ji))],8,Gi),g("div",Zi,[G(Ui,{items:o.items},{default:D(()=>[$(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Cn=ve(eu,[["__scopeId","data-v-b6c34ac9"]]),tu=["href","aria-label","innerHTML"],au=W({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(e){const a=e,t=M(()=>typeof a.icon=="object"?a.icon.svg:``);return(n,o)=>(u(),v("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,tu))}}),nu=ve(au,[["__scopeId","data-v-eee4e7cb"]]),ou={class:"VPSocialLinks"},ru=W({__name:"VPSocialLinks",props:{links:{}},setup(e){return(a,t)=>(u(),v("div",ou,[(u(!0),v(le,null,ye(a.links,({link:n,icon:o,ariaLabel:r})=>(u(),re(nu,{key:n,icon:o,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),Vn=ve(ru,[["__scopeId","data-v-7bc22406"]]),lu={key:0,class:"group translations"},su={class:"trans-title"},iu={key:1,class:"group"},uu={class:"item appearance"},cu={class:"label"},du={class:"appearance-action"},mu={key:2,class:"group"},vu={class:"item social-links"},pu=W({__name:"VPNavBarExtra",setup(e){const{site:a,theme:t}=xe(),{localeLinks:n,currentLang:o}=Ma({correspondingLink:!0}),r=M(()=>n.value.length&&o.value.label||a.value.appearance||t.value.socialLinks);return(l,i)=>r.value?(u(),re(Cn,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:D(()=>[s(n).length&&s(o).label?(u(),v("div",lu,[g("p",su,oe(s(o).label),1),(u(!0),v(le,null,ye(s(n),d=>(u(),re(qa,{key:d.link,item:d},null,8,["item"]))),128))])):S("",!0),s(a).appearance&&s(a).appearance!=="force-dark"?(u(),v("div",iu,[g("div",uu,[g("p",cu,oe(s(t).darkModeSwitchLabel||"Appearance"),1),g("div",du,[G(Sn)])])])):S("",!0),s(t).socialLinks?(u(),v("div",mu,[g("div",vu,[G(Vn,{class:"social-links-list",links:s(t).socialLinks},null,8,["links"])])])):S("",!0)]),_:1})):S("",!0)}}),fu=ve(pu,[["__scopeId","data-v-d0bd9dde"]]),hu=e=>(Je("data-v-e5dd9c1c"),e=e(),Ze(),e),yu=["aria-expanded"],gu=hu(()=>g("span",{class:"container"},[g("span",{class:"top"}),g("span",{class:"middle"}),g("span",{class:"bottom"})],-1)),_u=[gu],bu=W({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(a,t)=>(u(),v("button",{type:"button",class:de(["VPNavBarHamburger",{active:a.active}]),"aria-label":"mobile navigation","aria-expanded":a.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>a.$emit("click"))},_u,10,yu))}}),ku=ve(bu,[["__scopeId","data-v-e5dd9c1c"]]),wu=["innerHTML"],$u=W({__name:"VPNavBarMenuLink",props:{item:{}},setup(e){const{page:a}=xe();return(t,n)=>(u(),re(xt,{class:de({VPNavBarMenuLink:!0,active:s(aa)(s(a).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:D(()=>[g("span",{innerHTML:t.item.text},null,8,wu)]),_:1},8,["class","href","target","rel"]))}}),Du=ve($u,[["__scopeId","data-v-42ef59de"]]),Pu=W({__name:"VPNavBarMenuGroup",props:{item:{}},setup(e){const a=e,{page:t}=xe(),n=r=>"link"in r?aa(t.value.relativePath,r.link,!!a.item.activeMatch):r.items.some(n),o=M(()=>n(a.item));return(r,l)=>(u(),re(Cn,{class:de({VPNavBarMenuGroup:!0,active:s(aa)(s(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||o.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Mu=e=>(Je("data-v-7f418b0f"),e=e(),Ze(),e),xu={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Tu=Mu(()=>g("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),Su=W({__name:"VPNavBarMenu",setup(e){const{theme:a}=xe();return(t,n)=>s(a).nav?(u(),v("nav",xu,[Tu,(u(!0),v(le,null,ye(s(a).nav,o=>(u(),v(le,{key:o.text},["link"in o?(u(),re(Du,{key:0,item:o},null,8,["item"])):(u(),re(Pu,{key:1,item:o},null,8,["item"]))],64))),128))])):S("",!0)}}),Au=ve(Su,[["__scopeId","data-v-7f418b0f"]]);function Cu(e){const{localeIndex:a,theme:t}=xe();function n(o){var A,x,Y;const r=o.split("."),l=(A=t.value.search)==null?void 0:A.options,i=l&&typeof l=="object",d=i&&((Y=(x=l.locales)==null?void 0:x[a.value])==null?void 0:Y.translations)||null,_=i&&l.translations||null;let f=d,p=_,h=e;const y=r.pop();for(const te of r){let j=null;const T=h==null?void 0:h[te];T&&(j=h=T);const L=p==null?void 0:p[te];L&&(j=p=L);const E=f==null?void 0:f[te];E&&(j=f=E),T||(h=j),L||(p=j),E||(f=j)}return(f==null?void 0:f[y])??(p==null?void 0:p[y])??(h==null?void 0:h[y])??""}return n}const Vu=["aria-label"],Ou={class:"DocSearch-Button-Container"},Nu=g("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Ru={class:"DocSearch-Button-Placeholder"},Lu=g("span",{class:"DocSearch-Button-Keys"},[g("kbd",{class:"DocSearch-Button-Key"}),g("kbd",{class:"DocSearch-Button-Key"},"K")],-1),ao=W({__name:"VPNavBarSearchButton",setup(e){const t=Cu({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,o)=>(u(),v("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":s(t)("button.buttonAriaLabel")},[g("span",Ou,[Nu,g("span",Ru,oe(s(t)("button.buttonText")),1)]),Lu],8,Vu))}}),Yu={class:"VPNavBarSearch"},Iu={id:"local-search"},Bu={key:1,id:"docsearch"},Eu=W({__name:"VPNavBarSearch",setup(e){const a=()=>null,t=Po(()=>Mo(()=>import("./VPAlgoliaSearchBox.BbqGHjI_.js"),__vite__mapDeps([2,1]))),{theme:n}=xe(),o=C(!1),r=C(!1),l=()=>{const h="VPAlgoliaPreconnect";(window.requestIdleCallback||setTimeout)(()=>{var x;const A=document.createElement("link");A.id=h,A.rel="preconnect",A.href=`https://${(((x=n.value.search)==null?void 0:x.options)??n.value.algolia).appId}-dsn.algolia.net`,A.crossOrigin="",document.head.appendChild(A)})};Ue(()=>{l();const h=A=>{(A.key.toLowerCase()==="k"&&(A.metaKey||A.ctrlKey)||!_(A)&&A.key==="/")&&(A.preventDefault(),i(),y())},y=()=>{window.removeEventListener("keydown",h)};window.addEventListener("keydown",h),Ut(y)});function i(){o.value||(o.value=!0,setTimeout(d,16))}function d(){const h=new Event("keydown");h.key="k",h.metaKey=!0,window.dispatchEvent(h),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||d()},16)}function _(h){const y=h.target,A=y.tagName;return y.isContentEditable||A==="INPUT"||A==="SELECT"||A==="TEXTAREA"}const f=C(!1),p="algolia";return(h,y)=>{var A;return u(),v("div",Yu,[s(p)==="local"?(u(),v(le,{key:0},[f.value?(u(),re(s(a),{key:0,onClose:y[0]||(y[0]=x=>f.value=!1)})):S("",!0),g("div",Iu,[G(ao,{onClick:y[1]||(y[1]=x=>f.value=!0)})])],64)):s(p)==="algolia"?(u(),v(le,{key:1},[o.value?(u(),re(s(t),{key:0,algolia:((A=s(n).search)==null?void 0:A.options)??s(n).algolia,onVnodeBeforeMount:y[2]||(y[2]=x=>r.value=!0)},null,8,["algolia"])):S("",!0),r.value?S("",!0):(u(),v("div",Bu,[G(ao,{onClick:i})]))],64)):S("",!0)])}}}),Hu=W({__name:"VPNavBarSocialLinks",setup(e){const{theme:a}=xe();return(t,n)=>s(a).socialLinks?(u(),re(Vn,{key:0,class:"VPNavBarSocialLinks",links:s(a).socialLinks},null,8,["links"])):S("",!0)}}),Fu=ve(Hu,[["__scopeId","data-v-0394ad82"]]),Wu=["href","rel","target"],zu={key:1},qu={key:2},Uu=W({__name:"VPNavBarTitle",setup(e){const{site:a,theme:t}=xe(),{hasSidebar:n}=Yt(),{currentLang:o}=Ma(),r=M(()=>{var d;return typeof t.value.logoLink=="string"?t.value.logoLink:(d=t.value.logoLink)==null?void 0:d.link}),l=M(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.rel}),i=M(()=>{var d;return typeof t.value.logoLink=="string"||(d=t.value.logoLink)==null?void 0:d.target});return(d,_)=>(u(),v("div",{class:de(["VPNavBarTitle",{"has-sidebar":s(n)}])},[g("a",{class:"title",href:r.value??s(Mn)(s(o).link),rel:l.value,target:i.value},[$(d.$slots,"nav-bar-title-before",{},void 0,!0),s(t).logo?(u(),re(Ya,{key:0,class:"logo",image:s(t).logo},null,8,["image"])):S("",!0),s(t).siteTitle?(u(),v("span",zu,oe(s(t).siteTitle),1)):s(t).siteTitle===void 0?(u(),v("span",qu,oe(s(a).title),1)):S("",!0),$(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,Wu)],2))}}),Qu=ve(Uu,[["__scopeId","data-v-ab179fa1"]]),Gu={class:"items"},ju={class:"title"},Xu=W({__name:"VPNavBarTranslations",setup(e){const{theme:a}=xe(),{localeLinks:t,currentLang:n}=Ma({correspondingLink:!0});return(o,r)=>s(t).length&&s(n).label?(u(),re(Cn,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:s(a).langMenuLabel||"Change language"},{default:D(()=>[g("div",Gu,[g("p",ju,oe(s(n).label),1),(u(!0),v(le,null,ye(s(t),l=>(u(),re(qa,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):S("",!0)}}),Ku=ve(Xu,[["__scopeId","data-v-88af2de4"]]),Ju=e=>(Je("data-v-19c990f1"),e=e(),Ze(),e),Zu={class:"wrapper"},ec={class:"container"},tc={class:"title"},ac={class:"content"},nc={class:"content-body"},oc=Ju(()=>g("div",{class:"divider"},[g("div",{class:"divider-line"})],-1)),rc=W({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const{y:a}=To(),{hasSidebar:t}=Yt(),{hasLocalNav:n}=No(),{frontmatter:o}=xe(),r=C({});return $o(()=>{r.value={"has-sidebar":t.value,"has-local-nav":n.value,top:o.value.layout==="home"&&a.value===0}}),(l,i)=>(u(),v("div",{class:de(["VPNavBar",r.value])},[g("div",Zu,[g("div",ec,[g("div",tc,[G(Qu,null,{"nav-bar-title-before":D(()=>[$(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":D(()=>[$(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),g("div",ac,[g("div",nc,[$(l.$slots,"nav-bar-content-before",{},void 0,!0),G(Eu,{class:"search"}),G(Au,{class:"menu"}),G(Ku,{class:"translations"}),G(Oi,{class:"appearance"}),G(Fu,{class:"social-links"}),G(fu,{class:"extra"}),$(l.$slots,"nav-bar-content-after",{},void 0,!0),G(ku,{class:"hamburger",active:l.isScreenOpen,onClick:i[0]||(i[0]=d=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),oc],2))}}),lc=ve(rc,[["__scopeId","data-v-19c990f1"]]),sc={key:0,class:"VPNavScreenAppearance"},ic={class:"text"},uc=W({__name:"VPNavScreenAppearance",setup(e){const{site:a,theme:t}=xe();return(n,o)=>s(a).appearance&&s(a).appearance!=="force-dark"?(u(),v("div",sc,[g("p",ic,oe(s(t).darkModeSwitchLabel||"Appearance"),1),G(Sn)])):S("",!0)}}),cc=ve(uc,[["__scopeId","data-v-2d7af913"]]),dc=W({__name:"VPNavScreenMenuLink",props:{item:{}},setup(e){const a=za("close-screen");return(t,n)=>(u(),re(xt,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:s(a)},{default:D(()=>[Oe(oe(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),mc=ve(dc,[["__scopeId","data-v-05f27b2a"]]),vc=W({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(e){const a=za("close-screen");return(t,n)=>(u(),re(xt,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:s(a)},{default:D(()=>[Oe(oe(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),Io=ve(vc,[["__scopeId","data-v-19976ae1"]]),pc={class:"VPNavScreenMenuGroupSection"},fc={key:0,class:"title"},hc=W({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(e){return(a,t)=>(u(),v("div",pc,[a.text?(u(),v("p",fc,oe(a.text),1)):S("",!0),(u(!0),v(le,null,ye(a.items,n=>(u(),re(Io,{key:n.text,item:n},null,8,["item"]))),128))]))}}),yc=ve(hc,[["__scopeId","data-v-8133b170"]]),gc=e=>(Je("data-v-ff6087d4"),e=e(),Ze(),e),_c=["aria-controls","aria-expanded"],bc=["innerHTML"],kc=gc(()=>g("span",{class:"vpi-plus button-icon"},null,-1)),wc=["id"],$c={key:1,class:"group"},Dc=W({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(e){const a=e,t=C(!1),n=M(()=>`NavScreenGroup-${a.text.replace(" ","-").toLowerCase()}`);function o(){t.value=!t.value}return(r,l)=>(u(),v("div",{class:de(["VPNavScreenMenuGroup",{open:t.value}])},[g("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:o},[g("span",{class:"button-text",innerHTML:r.text},null,8,bc),kc],8,_c),g("div",{id:n.value,class:"items"},[(u(!0),v(le,null,ye(r.items,i=>(u(),v(le,{key:i.text},["link"in i?(u(),v("div",{key:i.text,class:"item"},[G(Io,{item:i},null,8,["item"])])):(u(),v("div",$c,[G(yc,{text:i.text,items:i.items},null,8,["text","items"])]))],64))),128))],8,wc)],2))}}),Pc=ve(Dc,[["__scopeId","data-v-ff6087d4"]]),Mc={key:0,class:"VPNavScreenMenu"},xc=W({__name:"VPNavScreenMenu",setup(e){const{theme:a}=xe();return(t,n)=>s(a).nav?(u(),v("nav",Mc,[(u(!0),v(le,null,ye(s(a).nav,o=>(u(),v(le,{key:o.text},["link"in o?(u(),re(mc,{key:0,item:o},null,8,["item"])):(u(),re(Pc,{key:1,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):S("",!0)}}),Tc=W({__name:"VPNavScreenSocialLinks",setup(e){const{theme:a}=xe();return(t,n)=>s(a).socialLinks?(u(),re(Vn,{key:0,class:"VPNavScreenSocialLinks",links:s(a).socialLinks},null,8,["links"])):S("",!0)}}),Bo=e=>(Je("data-v-858fe1a4"),e=e(),Ze(),e),Sc=Bo(()=>g("span",{class:"vpi-languages icon lang"},null,-1)),Ac=Bo(()=>g("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Cc={class:"list"},Vc=W({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:a,currentLang:t}=Ma({correspondingLink:!0}),n=C(!1);function o(){n.value=!n.value}return(r,l)=>s(a).length&&s(t).label?(u(),v("div",{key:0,class:de(["VPNavScreenTranslations",{open:n.value}])},[g("button",{class:"title",onClick:o},[Sc,Oe(" "+oe(s(t).label)+" ",1),Ac]),g("ul",Cc,[(u(!0),v(le,null,ye(s(a),i=>(u(),v("li",{key:i.link,class:"item"},[G(xt,{class:"link",href:i.link},{default:D(()=>[Oe(oe(i.text),1)]),_:2},1032,["href"])]))),128))])],2)):S("",!0)}}),Oc=ve(Vc,[["__scopeId","data-v-858fe1a4"]]),Nc={class:"container"},Rc=W({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const a=C(null),t=So(pa?document.body:null);return(n,o)=>(u(),re(Lt,{name:"fade",onEnter:o[0]||(o[0]=r=>t.value=!0),onAfterLeave:o[1]||(o[1]=r=>t.value=!1)},{default:D(()=>[n.open?(u(),v("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:a,id:"VPNavScreen"},[g("div",Nc,[$(n.$slots,"nav-screen-content-before",{},void 0,!0),G(xc,{class:"menu"}),G(Oc,{class:"translations"}),G(cc,{class:"appearance"}),G(Tc,{class:"social-links"}),$(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):S("",!0)]),_:3}))}}),Lc=ve(Rc,[["__scopeId","data-v-cc5739dd"]]),Yc={key:0,class:"VPNav"},Ic=W({__name:"VPNav",setup(e){const{isScreenOpen:a,closeScreen:t,toggleScreen:n}=ki(),{frontmatter:o}=xe(),r=M(()=>o.value.navbar!==!1);return Ao("close-screen",t),Ha(()=>{pa&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(l,i)=>r.value?(u(),v("header",Yc,[G(lc,{"is-screen-open":s(a),onToggleScreen:s(n)},{"nav-bar-title-before":D(()=>[$(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":D(()=>[$(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":D(()=>[$(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":D(()=>[$(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),G(Lc,{open:s(a)},{"nav-screen-content-before":D(()=>[$(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":D(()=>[$(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):S("",!0)}}),Bc=ve(Ic,[["__scopeId","data-v-ae24b3ad"]]),Eo=e=>(Je("data-v-93e7e794"),e=e(),Ze(),e),Ec=["role","tabindex"],Hc=Eo(()=>g("div",{class:"indicator"},null,-1)),Fc=Eo(()=>g("span",{class:"vpi-chevron-right caret-icon"},null,-1)),Wc=[Fc],zc={key:1,class:"items"},qc=W({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(e){const a=e,{collapsed:t,collapsible:n,isLink:o,isActiveLink:r,hasActiveLink:l,hasChildren:i,toggle:d}=ml(M(()=>a.item)),_=M(()=>i.value?"section":"div"),f=M(()=>o.value?"a":"div"),p=M(()=>i.value?a.depth+2===7?"p":`h${a.depth+2}`:"p"),h=M(()=>o.value?void 0:"button"),y=M(()=>[[`level-${a.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":o.value},{"is-active":r.value},{"has-active":l.value}]);function A(Y){"key"in Y&&Y.key!=="Enter"||!a.item.link&&d()}function x(){a.item.link&&d()}return(Y,te)=>{const j=na("VPSidebarItem",!0);return u(),re(Mt(_.value),{class:de(["VPSidebarItem",y.value])},{default:D(()=>[Y.item.text?(u(),v("div",Ne({key:0,class:"item",role:h.value},Br(Y.item.items?{click:A,keydown:A}:{},!0),{tabindex:Y.item.items&&0}),[Hc,Y.item.link?(u(),re(xt,{key:0,tag:f.value,class:"link",href:Y.item.link,rel:Y.item.rel,target:Y.item.target},{default:D(()=>[(u(),re(Mt(p.value),{class:"text",innerHTML:Y.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(u(),re(Mt(p.value),{key:1,class:"text",innerHTML:Y.item.text},null,8,["innerHTML"])),Y.item.collapsed!=null?(u(),v("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:x,onKeydown:we(x,["enter"]),tabindex:"0"},Wc,32)):S("",!0)],16,Ec)):S("",!0),Y.item.items&&Y.item.items.length?(u(),v("div",zc,[Y.depth<5?(u(!0),v(le,{key:0},ye(Y.item.items,T=>(u(),re(j,{key:T.text,item:T,depth:Y.depth+1},null,8,["item","depth"]))),128)):S("",!0)])):S("",!0)]),_:1},8,["class"])}}}),Uc=ve(qc,[["__scopeId","data-v-93e7e794"]]),Ho=e=>(Je("data-v-575e6a36"),e=e(),Ze(),e),Qc=Ho(()=>g("div",{class:"curtain"},null,-1)),Gc={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},jc=Ho(()=>g("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),Xc=W({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const{sidebarGroups:a,hasSidebar:t}=Yt(),n=e,o=C(null),r=So(pa?document.body:null);return lt([n,o],()=>{var l;n.open?(r.value=!0,(l=o.value)==null||l.focus()):r.value=!1},{immediate:!0,flush:"post"}),(l,i)=>s(t)?(u(),v("aside",{key:0,class:de(["VPSidebar",{open:l.open}]),ref_key:"navEl",ref:o,onClick:i[0]||(i[0]=Le(()=>{},["stop"]))},[Qc,g("nav",Gc,[jc,$(l.$slots,"sidebar-nav-before",{},void 0,!0),(u(!0),v(le,null,ye(s(a),d=>(u(),v("div",{key:d.text,class:"group"},[G(Uc,{item:d,depth:0},null,8,["item"])]))),128)),$(l.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):S("",!0)}}),Kc=ve(Xc,[["__scopeId","data-v-575e6a36"]]),Jc=W({__name:"VPSkipLink",setup(e){const a=Wa(),t=C();lt(()=>a.path,()=>t.value.focus());function n({target:o}){const r=document.getElementById(decodeURIComponent(o.hash).slice(1));if(r){const l=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",l)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",l),r.focus(),window.scrollTo(0,0)}}return(o,r)=>(u(),v(le,null,[g("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),g("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),Zc=ve(Jc,[["__scopeId","data-v-0f60ec36"]]),ed=W({__name:"Layout",setup(e){const{isOpen:a,open:t,close:n}=Yt(),o=Wa();lt(()=>o.path,n),dl(a,n);const{frontmatter:r}=xe(),l=Qt(),i=M(()=>!!l["home-hero-image"]);return Ao("hero-image-slot-exists",i),(d,_)=>{const f=na("Content");return s(r).layout!==!1?(u(),v("div",{key:0,class:de(["Layout",s(r).pageClass])},[$(d.$slots,"layout-top",{},void 0,!0),G(Zc),G(Xr,{class:"backdrop",show:s(a),onClick:s(n)},null,8,["show","onClick"]),G(Bc,null,{"nav-bar-title-before":D(()=>[$(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":D(()=>[$(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":D(()=>[$(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":D(()=>[$(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":D(()=>[$(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":D(()=>[$(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),G(bi,{open:s(a),onOpenMenu:s(t)},null,8,["open","onOpenMenu"]),G(Kc,{open:s(a)},{"sidebar-nav-before":D(()=>[$(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":D(()=>[$(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),G(ai,null,{"page-top":D(()=>[$(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":D(()=>[$(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":D(()=>[$(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":D(()=>[$(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":D(()=>[$(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":D(()=>[$(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":D(()=>[$(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":D(()=>[$(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":D(()=>[$(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":D(()=>[$(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":D(()=>[$(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":D(()=>[$(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":D(()=>[$(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":D(()=>[$(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":D(()=>[$(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":D(()=>[$(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":D(()=>[$(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":D(()=>[$(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":D(()=>[$(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":D(()=>[$(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":D(()=>[$(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":D(()=>[$(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":D(()=>[$(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),G(si),$(d.$slots,"layout-bottom",{},void 0,!0)],2)):(u(),re(f,{key:1}))}}}),td=ve(ed,[["__scopeId","data-v-5d98c3a5"]]),ad={Layout:td,enhanceApp:({app:e})=>{e.component("Badge",Qr)}},nd={},od={class:"star-and-sponsor"},rd=g("p",null,[Oe(" ⭐ If you like the component, give it a star on "),g("a",{class:"home-link",href:"https://github.com/Vuepic/vue-datepicker",target:"_blank"},"GitHub"),Oe(" and consider "),g("a",{class:"home-link",href:"https://github.com/sponsors/Vuepic",target:"_blank"},"sponsoring"),Oe(" its development! ⭐ ")],-1),ld=[rd];function sd(e,a){return u(),v("div",od,ld)}const id=ve(nd,[["render",sd]]);function fe(e){const a=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&a==="[object Date]"?new e.constructor(+e):typeof e=="number"||a==="[object Number]"||typeof e=="string"||a==="[object String]"?new Date(e):new Date(NaN)}function Ye(e,a){return e instanceof Date?new e.constructor(a):new Date(a)}function Ge(e,a){const t=fe(e);return isNaN(a)?Ye(e,NaN):(a&&t.setDate(t.getDate()+a),t)}function ct(e,a){const t=fe(e);if(isNaN(a))return Ye(e,NaN);if(!a)return t;const n=t.getDate(),o=Ye(e,t.getTime());o.setMonth(t.getMonth()+a+1,0);const r=o.getDate();return n>=r?o:(t.setFullYear(o.getFullYear(),o.getMonth(),n),t)}function Fo(e,a){const{years:t=0,months:n=0,weeks:o=0,days:r=0,hours:l=0,minutes:i=0,seconds:d=0}=a,_=fe(e),f=n||t?ct(_,n+t*12):_,p=r||o?Ge(f,r+o*7):f,h=i+l*60,A=(d+h*60)*1e3;return Ye(e,p.getTime()+A)}const Wo=6048e5,ud=864e5,cd=6e4,dd=36e5,md=1e3;let vd={};function oa(){return vd}function St(e,a){var i,d,_,f;const t=oa(),n=(a==null?void 0:a.weekStartsOn)??((d=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:d.weekStartsOn)??t.weekStartsOn??((f=(_=t.locale)==null?void 0:_.options)==null?void 0:f.weekStartsOn)??0,o=fe(e),r=o.getDay(),l=(r=o.getTime()?t+1:a.getTime()>=l.getTime()?t:t-1}function no(e){const a=fe(e);return a.setHours(0,0,0,0),a}function Ia(e){const a=fe(e),t=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return t.setUTCFullYear(a.getFullYear()),+e-+t}function qo(e,a){const t=no(e),n=no(a),o=+t-Ia(t),r=+n-Ia(n);return Math.round((o-r)/ud)}function pd(e){const a=zo(e),t=Ye(e,0);return t.setFullYear(a,0,4),t.setHours(0,0,0,0),ca(t)}function fd(e,a){const t=a*3;return ct(e,t)}function On(e,a){return ct(e,a*12)}function Uo(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ba(e){if(!Uo(e)&&typeof e!="number")return!1;const a=fe(e);return!isNaN(Number(a))}function oo(e){const a=fe(e);return Math.trunc(a.getMonth()/3)+1}function ro(e){const a=fe(e),t=a.getMonth();return a.setFullYear(a.getFullYear(),t+1,0),a.setHours(23,59,59,999),a}function Qo(e,a){const t=fe(e.start),n=fe(e.end);let o=+t>+n;const r=o?+t:+n,l=o?n:t;l.setHours(0,0,0,0);let i=(a==null?void 0:a.step)??1;if(!i)return[];i<0&&(i=-i,o=!o);const d=[];for(;+l<=r;)d.push(fe(l)),l.setDate(l.getDate()+i),l.setHours(0,0,0,0);return o?d.reverse():d}function Ht(e){const a=fe(e),t=a.getMonth(),n=t-t%3;return a.setMonth(n,1),a.setHours(0,0,0,0),a}function hd(e,a){const t=fe(e.start),n=fe(e.end);let o=+t>+n;const r=o?+Ht(t):+Ht(n);let l=Ht(o?n:t),i=(a==null?void 0:a.step)??1;if(!i)return[];i<0&&(i=-i,o=!o);const d=[];for(;+l<=r;)d.push(fe(l)),l=fd(l,i);return o?d.reverse():d}function lo(e){const a=fe(e);return a.setDate(1),a.setHours(0,0,0,0),a}function Go(e){const a=fe(e),t=a.getFullYear();return a.setFullYear(t+1,0,0),a.setHours(23,59,59,999),a}function Nn(e){const a=fe(e),t=Ye(e,0);return t.setFullYear(a.getFullYear(),0,1),t.setHours(0,0,0,0),t}function yd(e,a){var i,d,_,f;const t=oa(),n=(a==null?void 0:a.weekStartsOn)??((d=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:d.weekStartsOn)??t.weekStartsOn??((f=(_=t.locale)==null?void 0:_.options)==null?void 0:f.weekStartsOn)??0,o=fe(e),r=o.getDay(),l=(r{let n;const o=gd[e];return typeof o=="string"?n=o:a===1?n=o.one:n=o.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function ua(e){return(a={})=>{const t=a.width?String(a.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const bd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$d={date:ua({formats:bd,defaultWidth:"full"}),time:ua({formats:kd,defaultWidth:"full"}),dateTime:ua({formats:wd,defaultWidth:"full"})},Dd={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pd=(e,a,t,n)=>Dd[e];function kt(e){return(a,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):l;o=e.formattingValues[i]||e.formattingValues[l]}else{const l=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[l]}const r=e.argumentCallback?e.argumentCallback(a):a;return o[r]}}const Md={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Td={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Sd={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ad={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vd=(e,a)=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Od={ordinalNumber:Vd,era:kt({values:Md,defaultWidth:"wide"}),quarter:kt({values:xd,defaultWidth:"wide",argumentCallback:e=>e-1}),month:kt({values:Td,defaultWidth:"wide"}),day:kt({values:Sd,defaultWidth:"wide"}),dayPeriod:kt({values:Ad,defaultWidth:"wide",formattingValues:Cd,defaultFormattingWidth:"wide"})};function wt(e){return(a,t={})=>{const n=t.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],r=a.match(o);if(!r)return null;const l=r[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(i)?Rd(i,p=>p.test(l)):Nd(i,p=>p.test(l));let _;_=e.valueCallback?e.valueCallback(d):d,_=t.valueCallback?t.valueCallback(_):_;const f=a.slice(l.length);return{value:_,rest:f}}}function Nd(e,a){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&a(e[t]))return t}function Rd(e,a){for(let t=0;t{const n=a.match(e.matchPattern);if(!n)return null;const o=n[0],r=a.match(e.parsePattern);if(!r)return null;let l=e.valueCallback?e.valueCallback(r[0]):r[0];l=t.valueCallback?t.valueCallback(l):l;const i=a.slice(o.length);return{value:l,rest:i}}}const Ld=/^(\d+)(th|st|nd|rd)?/i,Yd=/\d+/i,Id={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Bd={any:[/^b/i,/^(a|c)/i]},Ed={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hd={any:[/1/i,/2/i,/3/i,/4/i]},Fd={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wd={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},qd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ud={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Qd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Gd={ordinalNumber:jo({matchPattern:Ld,parsePattern:Yd,valueCallback:e=>parseInt(e,10)}),era:wt({matchPatterns:Id,defaultMatchWidth:"wide",parsePatterns:Bd,defaultParseWidth:"any"}),quarter:wt({matchPatterns:Ed,defaultMatchWidth:"wide",parsePatterns:Hd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wt({matchPatterns:Fd,defaultMatchWidth:"wide",parsePatterns:Wd,defaultParseWidth:"any"}),day:wt({matchPatterns:zd,defaultMatchWidth:"wide",parsePatterns:qd,defaultParseWidth:"any"}),dayPeriod:wt({matchPatterns:Ud,defaultMatchWidth:"any",parsePatterns:Qd,defaultParseWidth:"any"})},Xo={code:"en-US",formatDistance:_d,formatLong:$d,formatRelative:Pd,localize:Od,match:Gd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function jd(e){const a=fe(e);return qo(a,Nn(a))+1}function Rn(e){const a=fe(e),t=+ca(a)-+pd(a);return Math.round(t/Wo)+1}function Ln(e,a){var f,p,h,y;const t=fe(e),n=t.getFullYear(),o=oa(),r=(a==null?void 0:a.firstWeekContainsDate)??((p=(f=a==null?void 0:a.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??o.firstWeekContainsDate??((y=(h=o.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,l=Ye(e,0);l.setFullYear(n+1,0,r),l.setHours(0,0,0,0);const i=St(l,a),d=Ye(e,0);d.setFullYear(n,0,r),d.setHours(0,0,0,0);const _=St(d,a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=_.getTime()?n:n-1}function Xd(e,a){var i,d,_,f;const t=oa(),n=(a==null?void 0:a.firstWeekContainsDate)??((d=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:d.firstWeekContainsDate)??t.firstWeekContainsDate??((f=(_=t.locale)==null?void 0:_.options)==null?void 0:f.firstWeekContainsDate)??1,o=Ln(e,a),r=Ye(e,0);return r.setFullYear(o,0,n),r.setHours(0,0,0,0),St(r,a)}function Yn(e,a){const t=fe(e),n=+St(t,a)-+Xd(t,a);return Math.round(n/Wo)+1}function Ie(e,a){const t=e<0?"-":"",n=Math.abs(e).toString().padStart(a,"0");return t+n}const Bt={y(e,a){const t=e.getFullYear(),n=t>0?t:1-t;return Ie(a==="yy"?n%100:n,a.length)},M(e,a){const t=e.getMonth();return a==="M"?String(t+1):Ie(t+1,2)},d(e,a){return Ie(e.getDate(),a.length)},a(e,a){const t=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,a){return Ie(e.getHours()%12||12,a.length)},H(e,a){return Ie(e.getHours(),a.length)},m(e,a){return Ie(e.getMinutes(),a.length)},s(e,a){return Ie(e.getSeconds(),a.length)},S(e,a){const t=a.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,t-3));return Ie(o,a.length)}},ra={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},io={G:function(e,a,t){const n=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,a,t){if(a==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return t.ordinalNumber(o,{unit:"year"})}return Bt.y(e,a)},Y:function(e,a,t,n){const o=Ln(e,n),r=o>0?o:1-o;if(a==="YY"){const l=r%100;return Ie(l,2)}return a==="Yo"?t.ordinalNumber(r,{unit:"year"}):Ie(r,a.length)},R:function(e,a){const t=zo(e);return Ie(t,a.length)},u:function(e,a){const t=e.getFullYear();return Ie(t,a.length)},Q:function(e,a,t){const n=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(n);case"QQ":return Ie(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,a,t){const n=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(n);case"qq":return Ie(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,a,t){const n=e.getMonth();switch(a){case"M":case"MM":return Bt.M(e,a);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,a,t){const n=e.getMonth();switch(a){case"L":return String(n+1);case"LL":return Ie(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,a,t,n){const o=Yn(e,n);return a==="wo"?t.ordinalNumber(o,{unit:"week"}):Ie(o,a.length)},I:function(e,a,t){const n=Rn(e);return a==="Io"?t.ordinalNumber(n,{unit:"week"}):Ie(n,a.length)},d:function(e,a,t){return a==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Bt.d(e,a)},D:function(e,a,t){const n=jd(e);return a==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):Ie(n,a.length)},E:function(e,a,t){const n=e.getDay();switch(a){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,a,t,n){const o=e.getDay(),r=(o-n.weekStartsOn+8)%7||7;switch(a){case"e":return String(r);case"ee":return Ie(r,2);case"eo":return t.ordinalNumber(r,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,a,t,n){const o=e.getDay(),r=(o-n.weekStartsOn+8)%7||7;switch(a){case"c":return String(r);case"cc":return Ie(r,a.length);case"co":return t.ordinalNumber(r,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,a,t){const n=e.getDay(),o=n===0?7:n;switch(a){case"i":return String(o);case"ii":return Ie(o,a.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,a,t){const o=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,a,t){const n=e.getHours();let o;switch(n===12?o=ra.noon:n===0?o=ra.midnight:o=n/12>=1?"pm":"am",a){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,a,t){const n=e.getHours();let o;switch(n>=17?o=ra.evening:n>=12?o=ra.afternoon:n>=4?o=ra.morning:o=ra.night,a){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,a,t){if(a==="ho"){let n=e.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Bt.h(e,a)},H:function(e,a,t){return a==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Bt.H(e,a)},K:function(e,a,t){const n=e.getHours()%12;return a==="Ko"?t.ordinalNumber(n,{unit:"hour"}):Ie(n,a.length)},k:function(e,a,t){let n=e.getHours();return n===0&&(n=24),a==="ko"?t.ordinalNumber(n,{unit:"hour"}):Ie(n,a.length)},m:function(e,a,t){return a==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bt.m(e,a)},s:function(e,a,t){return a==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Bt.s(e,a)},S:function(e,a){return Bt.S(e,a)},X:function(e,a,t){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(a){case"X":return co(n);case"XXXX":case"XX":return Kt(n);case"XXXXX":case"XXX":default:return Kt(n,":")}},x:function(e,a,t){const n=e.getTimezoneOffset();switch(a){case"x":return co(n);case"xxxx":case"xx":return Kt(n);case"xxxxx":case"xxx":default:return Kt(n,":")}},O:function(e,a,t){const n=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+uo(n,":");case"OOOO":default:return"GMT"+Kt(n,":")}},z:function(e,a,t){const n=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+uo(n,":");case"zzzz":default:return"GMT"+Kt(n,":")}},t:function(e,a,t){const n=Math.trunc(e.getTime()/1e3);return Ie(n,a.length)},T:function(e,a,t){const n=e.getTime();return Ie(n,a.length)}};function uo(e,a=""){const t=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),r=n%60;return r===0?t+String(o):t+String(o)+a+Ie(r,2)}function co(e,a){return e%60===0?(e>0?"-":"+")+Ie(Math.abs(e)/60,2):Kt(e,a)}function Kt(e,a=""){const t=e>0?"-":"+",n=Math.abs(e),o=Ie(Math.trunc(n/60),2),r=Ie(n%60,2);return t+o+a+r}const mo=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Ko=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},Kd=(e,a)=>{const t=e.match(/(P+)(p+)?/)||[],n=t[1],o=t[2];if(!o)return mo(e,a);let r;switch(n){case"P":r=a.dateTime({width:"short"});break;case"PP":r=a.dateTime({width:"medium"});break;case"PPP":r=a.dateTime({width:"long"});break;case"PPPP":default:r=a.dateTime({width:"full"});break}return r.replace("{{date}}",mo(n,a)).replace("{{time}}",Ko(o,a))},bn={p:Ko,P:Kd},Jd=/^D+$/,Zd=/^Y+$/,em=["D","DD","YY","YYYY"];function Jo(e){return Jd.test(e)}function Zo(e){return Zd.test(e)}function kn(e,a,t){const n=tm(e,a,t);if(console.warn(n),em.includes(e))throw new RangeError(n)}function tm(e,a,t){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const am=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,om=/^'([^]*?)'?$/,rm=/''/g,lm=/[a-zA-Z]/;function vt(e,a,t){var f,p,h,y,A,x,Y,te;const n=oa(),o=(t==null?void 0:t.locale)??n.locale??Xo,r=(t==null?void 0:t.firstWeekContainsDate)??((p=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((y=(h=n.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,l=(t==null?void 0:t.weekStartsOn)??((x=(A=t==null?void 0:t.locale)==null?void 0:A.options)==null?void 0:x.weekStartsOn)??n.weekStartsOn??((te=(Y=n.locale)==null?void 0:Y.options)==null?void 0:te.weekStartsOn)??0,i=fe(e);if(!ba(i))throw new RangeError("Invalid time value");let d=a.match(nm).map(j=>{const T=j[0];if(T==="p"||T==="P"){const L=bn[T];return L(j,o.formatLong)}return j}).join("").match(am).map(j=>{if(j==="''")return{isToken:!1,value:"'"};const T=j[0];if(T==="'")return{isToken:!1,value:sm(j)};if(io[T])return{isToken:!0,value:j};if(T.match(lm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:j}});o.localize.preprocessor&&(d=o.localize.preprocessor(i,d));const _={firstWeekContainsDate:r,weekStartsOn:l,locale:o};return d.map(j=>{if(!j.isToken)return j.value;const T=j.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Zo(T)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Jo(T))&&kn(T,a,String(e));const L=io[T[0]];return L(i,T,o.localize,_)}).join("")}function sm(e){const a=e.match(om);return a?a[1].replace(rm,"'"):e}function im(e){return fe(e).getDay()}function um(e){const a=fe(e),t=a.getFullYear(),n=a.getMonth(),o=Ye(e,0);return o.setFullYear(t,n+1,0),o.setHours(0,0,0,0),o.getDate()}function cm(){return Object.assign({},oa())}function yt(e){return fe(e).getHours()}function dm(e){let t=fe(e).getDay();return t===0&&(t=7),t}function Tt(e){return fe(e).getMinutes()}function $e(e){return fe(e).getMonth()}function da(e){return fe(e).getSeconds()}function ke(e){return fe(e).getFullYear()}function wa(e,a){const t=fe(e),n=fe(a);return t.getTime()>n.getTime()}function $a(e,a){const t=fe(e),n=fe(a);return+t<+n}function Zt(e,a){const t=fe(e),n=fe(a);return+t==+n}function mm(e,a){const t=a instanceof Date?Ye(a,0):new a(0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}const vm=10;class er{constructor(){ue(this,"subPriority",0)}validate(a,t){return!0}}class pm extends er{constructor(a,t,n,o,r){super(),this.value=a,this.validateValue=t,this.setValue=n,this.priority=o,r&&(this.subPriority=r)}validate(a,t){return this.validateValue(a,this.value,t)}set(a,t,n){return this.setValue(a,t,this.value,n)}}class fm extends er{constructor(){super(...arguments);ue(this,"priority",vm);ue(this,"subPriority",-1)}set(t,n){return n.timestampIsSet?t:Ye(t,mm(t,Date))}}class Re{run(a,t,n,o){const r=this.parse(a,t,n,o);return r?{setter:new pm(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(a,t,n){return!0}}class hm extends Re{constructor(){super(...arguments);ue(this,"priority",140);ue(this,"incompatibleTokens",["R","u","t","T"])}parse(t,n,o){switch(n){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,n,o){return n.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}const je={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},$t={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Xe(e,a){return e&&{value:a(e.value),rest:e.rest}}function Fe(e,a){const t=a.match(e);return t?{value:parseInt(t[0],10),rest:a.slice(t[0].length)}:null}function Dt(e,a){const t=a.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:a.slice(1)};const n=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,r=t[3]?parseInt(t[3],10):0,l=t[5]?parseInt(t[5],10):0;return{value:n*(o*dd+r*cd+l*md),rest:a.slice(t[0].length)}}function tr(e){return Fe(je.anyDigitsSigned,e)}function qe(e,a){switch(e){case 1:return Fe(je.singleDigit,a);case 2:return Fe(je.twoDigits,a);case 3:return Fe(je.threeDigits,a);case 4:return Fe(je.fourDigits,a);default:return Fe(new RegExp("^\\d{1,"+e+"}"),a)}}function Ba(e,a){switch(e){case 1:return Fe(je.singleDigitSigned,a);case 2:return Fe(je.twoDigitsSigned,a);case 3:return Fe(je.threeDigitsSigned,a);case 4:return Fe(je.fourDigitsSigned,a);default:return Fe(new RegExp("^-?\\d{1,"+e+"}"),a)}}function In(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ar(e,a){const t=a>0,n=t?a:1-a;let o;if(n<=50)o=e||100;else{const r=n+50,l=Math.trunc(r/100)*100,i=e>=r%100;o=e+l-(i?100:0)}return t?o:1-o}function nr(e){return e%400===0||e%4===0&&e%100!==0}class ym extends Re{constructor(){super(...arguments);ue(this,"priority",130);ue(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,n,o){const r=l=>({year:l,isTwoDigitYear:n==="yy"});switch(n){case"y":return Xe(qe(4,t),r);case"yo":return Xe(o.ordinalNumber(t,{unit:"year"}),r);default:return Xe(qe(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o){const r=t.getFullYear();if(o.isTwoDigitYear){const i=ar(o.year,r);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}const l=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(l,0,1),t.setHours(0,0,0,0),t}}class gm extends Re{constructor(){super(...arguments);ue(this,"priority",130);ue(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,n,o){const r=l=>({year:l,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Xe(qe(4,t),r);case"Yo":return Xe(o.ordinalNumber(t,{unit:"year"}),r);default:return Xe(qe(n.length,t),r)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,o,r){const l=Ln(t,r);if(o.isTwoDigitYear){const d=ar(o.year,l);return t.setFullYear(d,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),St(t,r)}const i=!("era"in n)||n.era===1?o.year:1-o.year;return t.setFullYear(i,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),St(t,r)}}class _m extends Re{constructor(){super(...arguments);ue(this,"priority",130);ue(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,n){return Ba(n==="R"?4:n.length,t)}set(t,n,o){const r=Ye(t,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),ca(r)}}class bm extends Re{constructor(){super(...arguments);ue(this,"priority",130);ue(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,n){return Ba(n==="u"?4:n.length,t)}set(t,n,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}class km extends Re{constructor(){super(...arguments);ue(this,"priority",120);ue(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"Q":case"QQ":return qe(n.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class wm extends Re{constructor(){super(...arguments);ue(this,"priority",120);ue(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"q":case"qq":return qe(n.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}}class $m extends Re{constructor(){super(...arguments);ue(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ue(this,"priority",110)}parse(t,n,o){const r=l=>l-1;switch(n){case"M":return Xe(Fe(je.month,t),r);case"MM":return Xe(qe(2,t),r);case"Mo":return Xe(o.ordinalNumber(t,{unit:"month"}),r);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}class Dm extends Re{constructor(){super(...arguments);ue(this,"priority",110);ue(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,n,o){const r=l=>l-1;switch(n){case"L":return Xe(Fe(je.month,t),r);case"LL":return Xe(qe(2,t),r);case"Lo":return Xe(o.ordinalNumber(t,{unit:"month"}),r);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}}function Pm(e,a,t){const n=fe(e),o=Yn(n,t)-a;return n.setDate(n.getDate()-o*7),n}class Mm extends Re{constructor(){super(...arguments);ue(this,"priority",100);ue(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,n,o){switch(n){case"w":return Fe(je.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o,r){return St(Pm(t,o,r),r)}}function xm(e,a){const t=fe(e),n=Rn(t)-a;return t.setDate(t.getDate()-n*7),t}class Tm extends Re{constructor(){super(...arguments);ue(this,"priority",100);ue(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,n,o){switch(n){case"I":return Fe(je.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,o){return ca(xm(t,o))}}const Sm=[31,28,31,30,31,30,31,31,30,31,30,31],Am=[31,29,31,30,31,30,31,31,30,31,30,31];class Cm extends Re{constructor(){super(...arguments);ue(this,"priority",90);ue(this,"subPriority",1);ue(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"d":return Fe(je.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return qe(n.length,t)}}validate(t,n){const o=t.getFullYear(),r=nr(o),l=t.getMonth();return r?n>=1&&n<=Am[l]:n>=1&&n<=Sm[l]}set(t,n,o){return t.setDate(o),t.setHours(0,0,0,0),t}}class Vm extends Re{constructor(){super(...arguments);ue(this,"priority",90);ue(this,"subpriority",1);ue(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,n,o){switch(n){case"D":case"DD":return Fe(je.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return qe(n.length,t)}}validate(t,n){const o=t.getFullYear();return nr(o)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}}function Bn(e,a,t){var p,h,y,A;const n=oa(),o=(t==null?void 0:t.weekStartsOn)??((h=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??n.weekStartsOn??((A=(y=n.locale)==null?void 0:y.options)==null?void 0:A.weekStartsOn)??0,r=fe(e),l=r.getDay(),d=(a%7+7)%7,_=7-o,f=a<0||a>6?a-(l+_)%7:(d+_)%7-(l+_)%7;return Ge(r,f)}class Om extends Re{constructor(){super(...arguments);ue(this,"priority",90);ue(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,n,o){switch(n){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=Bn(t,o,r),t.setHours(0,0,0,0),t}}class Nm extends Re{constructor(){super(...arguments);ue(this,"priority",90);ue(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,n,o,r){const l=i=>{const d=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+d};switch(n){case"e":case"ee":return Xe(qe(n.length,t),l);case"eo":return Xe(o.ordinalNumber(t,{unit:"day"}),l);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=Bn(t,o,r),t.setHours(0,0,0,0),t}}class Rm extends Re{constructor(){super(...arguments);ue(this,"priority",90);ue(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,n,o,r){const l=i=>{const d=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+d};switch(n){case"c":case"cc":return Xe(qe(n.length,t),l);case"co":return Xe(o.ordinalNumber(t,{unit:"day"}),l);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,o,r){return t=Bn(t,o,r),t.setHours(0,0,0,0),t}}function Lm(e,a){const t=fe(e),n=dm(t),o=a-n;return Ge(t,o)}class Ym extends Re{constructor(){super(...arguments);ue(this,"priority",90);ue(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,n,o){const r=l=>l===0?7:l;switch(n){case"i":case"ii":return qe(n.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return Xe(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return Xe(o.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Xe(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Xe(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,n){return n>=1&&n<=7}set(t,n,o){return t=Lm(t,o),t.setHours(0,0,0,0),t}}class Im extends Re{constructor(){super(...arguments);ue(this,"priority",80);ue(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,n,o){switch(n){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(In(o),0,0,0),t}}class Bm extends Re{constructor(){super(...arguments);ue(this,"priority",80);ue(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,n,o){switch(n){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(In(o),0,0,0),t}}class Em extends Re{constructor(){super(...arguments);ue(this,"priority",80);ue(this,"incompatibleTokens",["a","b","t","T"])}parse(t,n,o){switch(n){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,o){return t.setHours(In(o),0,0,0),t}}class Hm extends Re{constructor(){super(...arguments);ue(this,"priority",70);ue(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,n,o){switch(n){case"h":return Fe(je.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,o){const r=t.getHours()>=12;return r&&o<12?t.setHours(o+12,0,0,0):!r&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}}class Fm extends Re{constructor(){super(...arguments);ue(this,"priority",70);ue(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,n,o){switch(n){case"H":return Fe(je.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,o){return t.setHours(o,0,0,0),t}}class Wm extends Re{constructor(){super(...arguments);ue(this,"priority",70);ue(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,n,o){switch(n){case"K":return Fe(je.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}}class zm extends Re{constructor(){super(...arguments);ue(this,"priority",70);ue(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,n,o){switch(n){case"k":return Fe(je.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return qe(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,o){const r=o<=24?o%24:o;return t.setHours(r,0,0,0),t}}class qm extends Re{constructor(){super(...arguments);ue(this,"priority",60);ue(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"m":return Fe(je.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setMinutes(o,0,0),t}}class Um extends Re{constructor(){super(...arguments);ue(this,"priority",50);ue(this,"incompatibleTokens",["t","T"])}parse(t,n,o){switch(n){case"s":return Fe(je.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return qe(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,o){return t.setSeconds(o,0),t}}class Qm extends Re{constructor(){super(...arguments);ue(this,"priority",30);ue(this,"incompatibleTokens",["t","T"])}parse(t,n){const o=r=>Math.trunc(r*Math.pow(10,-n.length+3));return Xe(qe(n.length,t),o)}set(t,n,o){return t.setMilliseconds(o),t}}class Gm extends Re{constructor(){super(...arguments);ue(this,"priority",10);ue(this,"incompatibleTokens",["t","T","x"])}parse(t,n){switch(n){case"X":return Dt($t.basicOptionalMinutes,t);case"XX":return Dt($t.basic,t);case"XXXX":return Dt($t.basicOptionalSeconds,t);case"XXXXX":return Dt($t.extendedOptionalSeconds,t);case"XXX":default:return Dt($t.extended,t)}}set(t,n,o){return n.timestampIsSet?t:Ye(t,t.getTime()-Ia(t)-o)}}class jm extends Re{constructor(){super(...arguments);ue(this,"priority",10);ue(this,"incompatibleTokens",["t","T","X"])}parse(t,n){switch(n){case"x":return Dt($t.basicOptionalMinutes,t);case"xx":return Dt($t.basic,t);case"xxxx":return Dt($t.basicOptionalSeconds,t);case"xxxxx":return Dt($t.extendedOptionalSeconds,t);case"xxx":default:return Dt($t.extended,t)}}set(t,n,o){return n.timestampIsSet?t:Ye(t,t.getTime()-Ia(t)-o)}}class Xm extends Re{constructor(){super(...arguments);ue(this,"priority",40);ue(this,"incompatibleTokens","*")}parse(t){return tr(t)}set(t,n,o){return[Ye(t,o*1e3),{timestampIsSet:!0}]}}class Km extends Re{constructor(){super(...arguments);ue(this,"priority",20);ue(this,"incompatibleTokens","*")}parse(t){return tr(t)}set(t,n,o){return[Ye(t,o),{timestampIsSet:!0}]}}const Jm={G:new hm,y:new ym,Y:new gm,R:new _m,u:new bm,Q:new km,q:new wm,M:new $m,L:new Dm,w:new Mm,I:new Tm,d:new Cm,D:new Vm,E:new Om,e:new Nm,c:new Rm,i:new Ym,a:new Im,b:new Bm,B:new Em,h:new Hm,H:new Fm,K:new Wm,k:new zm,m:new qm,s:new Um,S:new Qm,X:new Gm,x:new jm,t:new Xm,T:new Km},Zm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ev=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tv=/^'([^]*?)'?$/,av=/''/g,nv=/\S/,ov=/[a-zA-Z]/;function wn(e,a,t,n){var x,Y,te,j,T,L,E,X;const o=cm(),r=(n==null?void 0:n.locale)??o.locale??Xo,l=(n==null?void 0:n.firstWeekContainsDate)??((Y=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:Y.firstWeekContainsDate)??o.firstWeekContainsDate??((j=(te=o.locale)==null?void 0:te.options)==null?void 0:j.firstWeekContainsDate)??1,i=(n==null?void 0:n.weekStartsOn)??((L=(T=n==null?void 0:n.locale)==null?void 0:T.options)==null?void 0:L.weekStartsOn)??o.weekStartsOn??((X=(E=o.locale)==null?void 0:E.options)==null?void 0:X.weekStartsOn)??0;if(a==="")return e===""?fe(t):Ye(t,NaN);const d={firstWeekContainsDate:l,weekStartsOn:i,locale:r},_=[new fm],f=a.match(ev).map(R=>{const z=R[0];if(z in bn){const K=bn[z];return K(R,r.formatLong)}return R}).join("").match(Zm),p=[];for(let R of f){!(n!=null&&n.useAdditionalWeekYearTokens)&&Zo(R)&&kn(R,a,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Jo(R)&&kn(R,a,e);const z=R[0],K=Jm[z];if(K){const{incompatibleTokens:ie}=K;if(Array.isArray(ie)){const q=p.find(F=>ie.includes(F.token)||F.token===z);if(q)throw new RangeError(`The format string mustn't contain \`${q.fullToken}\` and \`${R}\` at the same time`)}else if(K.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${R}\` and any other token at the same time`);p.push({token:z,fullToken:R});const B=K.run(e,R,r.match,d);if(!B)return Ye(t,NaN);_.push(B.setter),e=B.rest}else{if(z.match(ov))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");if(R==="''"?R="'":z==="'"&&(R=rv(R)),e.indexOf(R)===0)e=e.slice(R.length);else return Ye(t,NaN)}}if(e.length>0&&nv.test(e))return Ye(t,NaN);const h=_.map(R=>R.priority).sort((R,z)=>z-R).filter((R,z,K)=>K.indexOf(R)===z).map(R=>_.filter(z=>z.priority===R).sort((z,K)=>K.subPriority-z.subPriority)).map(R=>R[0]);let y=fe(t);if(isNaN(y.getTime()))return Ye(t,NaN);const A={};for(const R of h){if(!R.validate(y,d))return Ye(t,NaN);const z=R.set(y,A,d);Array.isArray(z)?(y=z[0],Object.assign(A,z[1])):y=z}return Ye(t,y)}function rv(e){return e.match(tv)[1].replace(av,"'")}function vo(e,a){const t=Ht(e),n=Ht(a);return+t==+n}function En(e,a){return Ge(e,-a)}function or(e,a){const t=fe(e),n=t.getFullYear(),o=t.getDate(),r=Ye(e,0);r.setFullYear(n,a,15),r.setHours(0,0,0,0);const l=um(r);return t.setMonth(a,Math.min(o,l)),t}function Be(e,a){let t=fe(e);return isNaN(+t)?Ye(e,NaN):(a.year!=null&&t.setFullYear(a.year),a.month!=null&&(t=or(t,a.month)),a.date!=null&&t.setDate(a.date),a.hours!=null&&t.setHours(a.hours),a.minutes!=null&&t.setMinutes(a.minutes),a.seconds!=null&&t.setSeconds(a.seconds),a.milliseconds!=null&&t.setMilliseconds(a.milliseconds),t)}function rr(e,a){const t=fe(e);return t.setHours(a),t}function Hn(e,a){const t=fe(e);return t.setMilliseconds(a),t}function lr(e,a){const t=fe(e);return t.setMinutes(a),t}function Fn(e,a){const t=fe(e);return t.setSeconds(a),t}function Pt(e,a){const t=fe(e);return isNaN(+t)?Ye(e,NaN):(t.setFullYear(a),t)}function Rt(e,a){return ct(e,-a)}function lv(e,a){const{years:t=0,months:n=0,weeks:o=0,days:r=0,hours:l=0,minutes:i=0,seconds:d=0}=a,_=Rt(e,n+t*12),f=En(_,r+o*7),p=i+l*60,y=(d+p*60)*1e3;return Ye(e,f.getTime()-y)}function sr(e,a){return On(e,-a)}function fa(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),g("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),g("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),g("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}fa.compatConfig={MODE:3};function ir(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),g("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}ir.compatConfig={MODE:3};function Wn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Wn.compatConfig={MODE:3};function zn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}zn.compatConfig={MODE:3};function qn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),g("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}qn.compatConfig={MODE:3};function Un(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}Un.compatConfig={MODE:3};function Qn(){return u(),v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon"},[g("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}Qn.compatConfig={MODE:3};function po(e){return a=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)}function sv(e){return a=>vt(new Date(`2017-01-0${a}T00:00:00+00:00`),"EEEEEE",{locale:e})}const iv=(e,a,t)=>{const n=[1,2,3,4,5,6,7];let o;if(e!==null)try{o=n.map(sv(e))}catch{o=n.map(po(a))}else o=n.map(po(a));const r=o.slice(0,t),l=o.slice(t+1,o.length);return[o[t]].concat(...l).concat(...r)},Gn=(e,a)=>{const t=[];for(let n=+e[0];n<=+e[1];n++)t.push({value:+n,text:`${n}`});return a?t.reverse():t},ur=(e,a,t)=>{const n=[1,2,3,4,5,6,7,8,9,10,11,12].map(r=>{const l=r<10?`0${r}`:r;return new Date(`2017-${l}-01T00:00:00+00:00`)});if(e!==null)try{const r=t==="long"?"MMMM":"MMM";return n.map((l,i)=>{const d=vt(l,r,{locale:e});return{text:d.charAt(0).toUpperCase()+d.substring(1),value:i}})}catch{}const o=new Intl.DateTimeFormat(a,{month:t,timeZone:"UTC"});return n.map((r,l)=>{const i=o.format(r);return{text:i.charAt(0).toUpperCase()+i.substring(1),value:l}})},uv=e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],et=e=>{const a=s(e);return a!=null&&a.$el?a==null?void 0:a.$el:a},cv=e=>({type:"dot",...e??{}}),cr=e=>Array.isArray(e)?!!e[0]&&!!e[1]:!1,jn={prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`},tt=e=>e,fo=e=>e===0?e:!e||isNaN(+e)?null:+e,ho=e=>e===null,dr=e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},dv=e=>{const a=[],t=n=>n.filter(o=>o);for(let n=0;n{const n=t!=null,o=a!=null;if(!n&&!o)return!1;const r=+t,l=+a;return n&&o?+e>r||+er:o?+edv(e).map(t=>t.map(n=>{const{active:o,disabled:r,isBetween:l,highlighted:i}=a(n);return{...n,active:o,disabled:r,className:{dp__overlay_cell_active:o,dp__overlay_cell:!o,dp__overlay_cell_disabled:r,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:r&&o,dp__cell_in_between:l,"dp--highlighted":i}}})),Wt=(e,a,t=!1)=>{e&&a.allowStopPropagation&&(t&&e.stopImmediatePropagation(),e.stopPropagation())},mv=()=>["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", ");function vv(e,a){let t=[...document.querySelectorAll(mv())];t=t.filter(o=>!e.contains(o)||o.hasAttribute("data-datepicker-instance"));const n=t.indexOf(e);if(n>=0&&(a?n-1>=0:n+1<=t.length))return t[n+(a?-1:1)]}const pv=(e,a)=>e==null?void 0:e.querySelector(`[data-dp-element="${a}"]`),Xn=e=>vt(e,"dd-MM-yyyy"),on=e=>Array.isArray(e),Ea=(e,a)=>a.get(Xn(e)),fv=(e,a)=>e?a?a instanceof Map?!!Ea(e,a):a(Q(e)):!1:!0,yo=(e,a,t,n,o)=>{const r=wn(e,a.slice(0,e.length),new Date);return ba(r)&&Uo(r)?n||o?r:Be(r,{hours:+t.hours,minutes:+(t==null?void 0:t.minutes),seconds:+(t==null?void 0:t.seconds),milliseconds:0}):null},hv=(e,a,t,n,o)=>{const r=Array.isArray(t)?t[0]:t;if(typeof a=="string")return yo(e,a,r,n,o);if(Array.isArray(a)){let l=null;for(const i of a)if(l=yo(e,i,r,n,o),l)break;return l}return typeof a=="function"?a(e):null},Q=e=>e?new Date(e):new Date,yv=(e,a,t)=>{if(a){const o=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),l=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),d=t?e.getSeconds().toString().padStart(2,"0"):"00";return`${e.getFullYear()}-${o}-${r}T${l}:${i}:${d}.000Z`}const n=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds());return new Date(n).toISOString()},dt=e=>{let a=Q(JSON.parse(JSON.stringify(e)));return a=rr(a,0),a=lr(a,0),a=Fn(a,0),a=Hn(a,0),a},zt=(e,a,t,n)=>{let o=e?Q(e):Q();return(a||a===0)&&(o=rr(o,+a)),(t||t===0)&&(o=lr(o,+t)),(n||n===0)&&(o=Fn(o,+n)),Hn(o,0)},ze=(e,a)=>!e||!a?!1:$a(dt(e),dt(a)),Ce=(e,a)=>!e||!a?!1:Zt(dt(e),dt(a)),Qe=(e,a)=>!e||!a?!1:wa(dt(e),dt(a)),Ua=(e,a,t)=>e!=null&&e[0]&&e!=null&&e[1]?Qe(t,e[0])&&ze(t,e[1]):e!=null&&e[0]&&a?Qe(t,e[0])&&ze(t,a)||ze(t,e[0])&&Qe(t,a):!1,ht=e=>{const a=Be(new Date(e),{date:1});return dt(a)},rn=(e,a,t)=>a&&(t||t===0)?Object.fromEntries(["hours","minutes","seconds"].map(n=>n===a?[n,t]:[n,isNaN(+e[n])?void 0:+e[n]])):{hours:isNaN(+e.hours)?void 0:+e.hours,minutes:isNaN(+e.minutes)?void 0:+e.minutes,seconds:isNaN(+e.seconds)?void 0:+e.seconds},ea=e=>({hours:yt(e),minutes:Tt(e),seconds:da(e)}),mr=(e,a)=>{if(a){const t=ke(Q(a));if(t>e)return 12;if(t===e)return $e(Q(a))}},vr=(e,a)=>{if(a){const t=ke(Q(a));return t{if(e)return ke(Q(e))},pr=(e,a)=>{const t=Qe(e,a)?a:e,n=Qe(a,e)?a:e;return Qo({start:t,end:n})},gv=e=>{const a=ct(e,1);return{month:$e(a),year:ke(a)}},Vt=(e,a)=>{const t=St(e,{weekStartsOn:+a}),n=yd(e,{weekStartsOn:+a});return[t,n]},fr=(e,a)=>{const t={hours:yt(Q()),minutes:Tt(Q()),seconds:a?da(Q()):0};return Object.assign(t,e)},Ft=(e,a,t)=>[Be(Q(e),{date:1}),Be(Q(),{month:a,year:t,date:1})],Ot=(e,a,t)=>{let n=e?Q(e):Q();return(a||a===0)&&(n=or(n,a)),t&&(n=Pt(n,t)),n},hr=(e,a,t,n,o)=>{if(!n||o&&!a||!o&&!t)return!1;const r=o?ct(e,1):Rt(e,1),l=[$e(r),ke(r)];return o?!bv(...l,a):!_v(...l,t)},_v=(e,a,t)=>ze(...Ft(t,e,a))||Ce(...Ft(t,e,a)),bv=(e,a,t)=>Qe(...Ft(t,e,a))||Ce(...Ft(t,e,a)),yr=(e,a,t,n,o,r,l)=>{if(typeof a=="function"&&!l)return a(e);const i=t?{locale:t}:void 0;return Array.isArray(e)?`${vt(e[0],r,i)}${o&&!e[1]?"":n}${e[1]?vt(e[1],r,i):""}`:vt(e,r,i)},la=e=>{if(e)return null;throw new Error(jn.prop("partial-range"))},Va=(e,a)=>{if(a)return e();throw new Error(jn.prop("range"))},$n=e=>Array.isArray(e)?ba(e[0])&&(e[1]?ba(e[1]):!0):e?ba(e):!1,kv=(e,a)=>Be(a??Q(),{hours:+e.hours||0,minutes:+e.minutes||0,seconds:+e.seconds||0}),ln=(e,a,t,n)=>{if(!e)return!0;if(n){const o=t==="max"?$a(e,a):wa(e,a),r={seconds:0,milliseconds:0};return o||Zt(Be(e,r),Be(a,r))}return t==="max"?e.getTime()<=a.getTime():e.getTime()>=a.getTime()},sn=(e,a,t)=>e?kv(e,a):Q(t??a),go=(e,a,t,n,o)=>{if(Array.isArray(n)){const l=sn(e,n[0],a),i=sn(e,n[1],a);return ln(n[0],l,t,!!a)&&ln(n[1],i,t,!!a)&&o}const r=sn(e,n,a);return ln(n,r,t,!!a)&&o},un=e=>Be(Q(),ea(e)),wv=(e,a)=>e instanceof Map?Array.from(e.values()).filter(t=>ke(Q(t))===a).map(t=>$e(t)):[],gr=(e,a,t)=>typeof e=="function"?e({month:a,year:t}):!!e.months.find(n=>n.month===a&&n.year===t),Kn=(e,a)=>typeof e=="function"?e(a):e.years.includes(a),_a=Pa({menuFocused:!1,shiftKeyInMenu:!1}),_r=()=>{const e=t=>{_a.menuFocused=t},a=t=>{_a.shiftKeyInMenu!==t&&(_a.shiftKeyInMenu=t)};return{control:M(()=>({shiftKeyInMenu:_a.shiftKeyInMenu,menuFocused:_a.menuFocused})),setMenuFocused:e,setShiftKey:a}},Ee=Pa({monthYear:[],calendar:[],time:[],actionRow:[],selectionGrid:[],timePicker:{0:[],1:[]},monthPicker:[]}),cn=C(null),Oa=C(!1),dn=C(!1),mn=C(!1),vn=C(!1),ot=C(0),nt=C(0),Gt=()=>{const e=M(()=>Oa.value?[...Ee.selectionGrid,Ee.actionRow].filter(p=>p.length):dn.value?[...Ee.timePicker[0],...Ee.timePicker[1],vn.value?[]:[cn.value],Ee.actionRow].filter(p=>p.length):mn.value?[...Ee.monthPicker,Ee.actionRow]:[Ee.monthYear,...Ee.calendar,Ee.time,Ee.actionRow].filter(p=>p.length)),a=p=>{ot.value=p?ot.value+1:ot.value-1;let h=null;e.value[nt.value]&&(h=e.value[nt.value][ot.value]),h||(ot.value=p?ot.value-1:ot.value+1)},t=p=>{nt.value===0&&!p||nt.value===e.value.length&&p||(nt.value=p?nt.value+1:nt.value-1,e.value[nt.value]?e.value[nt.value]&&!e.value[nt.value][ot.value]&&ot.value!==0&&(ot.value=e.value[nt.value].length-1):nt.value=p?nt.value-1:nt.value+1)},n=p=>{let h=null;e.value[nt.value]&&(h=e.value[nt.value][ot.value]),h?h.focus({preventScroll:!Oa.value}):ot.value=p?ot.value-1:ot.value+1},o=()=>{a(!0),n(!0)},r=()=>{a(!1),n(!1)},l=()=>{t(!1),n(!0)},i=()=>{t(!0),n(!0)},d=(p,h)=>{Ee[h]=p},_=(p,h)=>{Ee[h]=p},f=()=>{ot.value=0,nt.value=0};return{buildMatrix:d,buildMultiLevelMatrix:_,setTimePickerBackRef:p=>{cn.value=p},setSelectionGrid:p=>{Oa.value=p,f(),p||(Ee.selectionGrid=[])},setTimePicker:(p,h=!1)=>{dn.value=p,vn.value=h,f(),p||(Ee.timePicker[0]=[],Ee.timePicker[1]=[])},setTimePickerElements:(p,h=0)=>{Ee.timePicker[h]=p},arrowRight:o,arrowLeft:r,arrowUp:l,arrowDown:i,clearArrowNav:()=>{Ee.monthYear=[],Ee.calendar=[],Ee.time=[],Ee.actionRow=[],Ee.selectionGrid=[],Ee.timePicker[0]=[],Ee.timePicker[1]=[],Oa.value=!1,dn.value=!1,vn.value=!1,mn.value=!1,f(),cn.value=null},setMonthPicker:p=>{mn.value=p,f()},refSets:Ee}},qt=(e,a)=>a?new Date(e.toLocaleString("en-US",{timeZone:a})):new Date(e),br=(e,a)=>Dn(e,a)||Q(),$v=(e,a)=>a.dateInTz?qt(new Date(e),a.dateInTz):Q(e),Dn=(e,a)=>{if(!e)return null;if(!a)return Q(e);const t=Q(e);return a.exactMatch?$v(e,a):qt(t,a.timezone)},_o=e=>({menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down",...e??{}}),Dv=e=>({toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",calendarWrap:"Calendar wrapper",calendarDays:"Calendar days",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:a=>`Increment ${a}`,decrementValue:a=>`Decrement ${a}`,openTpOverlay:a=>`Open ${a} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,...e??{}}),bo=e=>e?typeof e=="boolean"?e?2:0:+e>=2?+e:2:0,Pv=e=>{const a=typeof e=="object"&&e,t={static:!0,solo:!1};if(!e)return{...t,count:bo(!1)};const n=a?e:{},o=a?n.count??!0:e,r=bo(o);return Object.assign(t,n,{count:r})},Mv=(e,a,t)=>e||(typeof t=="string"?t:a),xv=e=>typeof e=="boolean"?e?_o({}):!1:_o(e),Tv=e=>{const a={enterSubmit:!0,tabSubmit:!0,openMenu:!0,selectOnFocus:!1,rangeSeparator:" - "};return typeof e=="object"?{...a,...e??{},enabled:!0}:{...a,enabled:e}},Sv=e=>({months:[],years:[],times:{hours:[],minutes:[],seconds:[]},...e??{}}),Av=e=>({showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,...e??{}}),Cv=e=>{const a={input:!1};return typeof e=="object"?{...a,...e??{},enabled:!0}:{enabled:e,...a}},Vv=e=>({allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,...e??{}}),Ov=e=>{const a={dates:Array.isArray(e)?e.map(t=>Q(t)):[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}};return typeof e=="function"?e:{...a,...e??{}}},Nv=e=>typeof e=="object"?{type:(e==null?void 0:e.type)??"local",hideOnOffsetDates:(e==null?void 0:e.hideOnOffsetDates)??!1}:{type:e,hideOnOffsetDates:!1},Rv=(e,a)=>typeof e=="object"?{enabled:!0,...{noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1},...e}:{enabled:e,noDisabledRange:a.noDisabledRange,showLastInRange:a.showLastInRange,minMaxRawRange:a.minMaxRawRange,partialRange:a.partialRange,disableTimeRangeValidation:a.disableTimeRangeValidation,maxRange:a.maxRange,minRange:a.minRange,autoRange:a.autoRange,fixedStart:a.fixedStart,fixedEnd:a.fixedEnd},Lv=(e,a)=>e?typeof e=="string"?{timezone:e,exactMatch:!1,dateInTz:void 0,emitTimezone:a}:{timezone:e.timezone,exactMatch:e.exactMatch??!1,dateInTz:e.dateInTz??void 0,emitTimezone:a??e.emitTimezone}:{timezone:void 0,exactMatch:!1,emitTimezone:a},pn=(e,a)=>new Map(e.map(t=>{const n=br(t,a);return[Xn(n),n]})),Yv=(e,a)=>e.length?new Map(e.map(t=>{const n=br(t.date,a);return[Xn(n),t]})):null,Iv=(e,a,t,n,o,r,l)=>({minDate:Dn(e,l),maxDate:Dn(a,l),disabledDates:on(t)?pn(t,l):t,allowedDates:on(n)?pn(n,l):null,highlight:typeof o=="object"&&on(o==null?void 0:o.dates)?pn(o.dates,l):o,markers:Yv(r,l)}),We=e=>{const a=()=>{const L=e.enableSeconds?":ss":"";return e.is24?`HH:mm${L}`:`hh:mm${L} aa`},t=()=>{var L;return e.format?e.format:e.monthPicker?"MM/yyyy":e.timePicker?a():e.weekPicker?`${((L=Y.value)==null?void 0:L.type)==="iso"?"RR":"ww"}-yyyy`:e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":e.enableTimePicker?`MM/dd/yyyy, ${a()}`:"MM/dd/yyyy"},n=L=>fr(L,e.enableSeconds),o=()=>T.value.enabled?e.startTime&&Array.isArray(e.startTime)?[n(e.startTime[0]),n(e.startTime[1])]:null:e.startTime&&!Array.isArray(e.startTime)?n(e.startTime):null,r=M(()=>Pv(e.multiCalendars)),l=M(()=>o()),i=M(()=>Dv(e.ariaLabels)),d=M(()=>Sv(e.filters)),_=M(()=>xv(e.transitions)),f=M(()=>Av(e.actionRow)),p=M(()=>Mv(e.previewFormat,e.format,t())),h=M(()=>Tv(e.textInput)),y=M(()=>Cv(e.inline)),A=M(()=>Vv(e.config)),x=M(()=>Ov(e.highlight)),Y=M(()=>Nv(e.weekNumbers)),te=M(()=>Lv(e.timezone,e.emitTimezone)),j=M(()=>Iv(e.minDate,e.maxDate,e.disabledDates,e.allowedDates,x.value,e.markers,te.value)),T=M(()=>Rv(e.range,{minMaxRawRange:!1,maxRange:e.maxRange,minRange:e.minRange,noDisabledRange:e.noDisabledRange,showLastInRange:e.showLastInRange,partialRange:e.partialRange,disableTimeRangeValidation:e.disableTimeRangeValidation,autoRange:e.autoRange,fixedStart:e.fixedStart,fixedEnd:e.fixedEnd}));return{defaultedTransitions:_,defaultedMultiCalendars:r,defaultedStartTime:l,defaultedAriaLabels:i,defaultedFilters:d,defaultedActionRow:f,defaultedPreviewFormat:p,defaultedTextInput:h,defaultedInline:y,defaultedConfig:A,defaultedHighlight:x,defaultedWeekNumbers:Y,defaultedRange:T,propDates:j,defaultedTz:te,getDefaultPattern:t,getDefaultStartTime:o}},Bv=(e,a,t)=>{const n=C(),{defaultedTextInput:o,defaultedRange:r,defaultedTz:l,getDefaultPattern:i}=We(a),d=C(""),_=La(a,"format");lt(n,()=>{e("internal-model-change",n.value)},{deep:!0}),lt(_,()=>{I()});const f=(m,c,w=!1)=>yr(m,a.format,a.formatLocale,o.value.rangeSeparator,a.modelAuto,c??i(),w),p=m=>m?a.modelType?P(m):{hours:yt(m),minutes:Tt(m),seconds:a.enableSeconds?da(m):0}:null,h=m=>a.modelType?P(m):{month:$e(m),year:ke(m)},y=m=>Array.isArray(m)?a.multiDates?m.map(c=>A(c,Pt(Q(),c))):Va(()=>[Pt(Q(),m[0]),m[1]?Pt(Q(),m[1]):la(r.value.partialRange)],r.value.enabled):Pt(Q(),+m),A=(m,c)=>(typeof m=="string"||typeof m=="number")&&a.modelType?b(m):c,x=m=>Array.isArray(m)?[A(m[0],zt(null,+m[0].hours,+m[0].minutes,m[0].seconds)),A(m[1],zt(null,+m[1].hours,+m[1].minutes,m[1].seconds))]:A(m,zt(null,m.hours,m.minutes,m.seconds)),Y=m=>{const c=Be(Q(),{date:1});return Array.isArray(m)?a.multiDates?m.map(w=>A(w,Ot(c,+w.month,+w.year))):Va(()=>[A(m[0],Ot(c,+m[0].month,+m[0].year)),A(m[1],m[1]?Ot(c,+m[1].month,+m[1].year):la(r.value.partialRange))],r.value.enabled):A(m,Ot(c,+m.month,+m.year))},te=m=>{if(Array.isArray(m))return m.map(c=>b(c));throw new Error(jn.dateArr("multi-dates"))},j=m=>{if(Array.isArray(m)&&r.value.enabled){const c=m[0],w=m[1];return[Q(Array.isArray(c)?c[0]:null),Q(Array.isArray(w)?w[0]:null)]}return Q(m[0])},T=m=>a.modelAuto?Array.isArray(m)?[b(m[0]),b(m[1])]:a.autoApply?[b(m)]:[b(m),null]:Array.isArray(m)?Va(()=>m[1]?[b(m[0]),m[1]?b(m[1]):la(r.value.partialRange)]:[b(m[0])],r.value.enabled):b(m),L=()=>{Array.isArray(n.value)&&r.value.enabled&&n.value.length===1&&n.value.push(la(r.value.partialRange))},E=()=>{const m=n.value;return[P(m[0]),m[1]?P(m[1]):la(r.value.partialRange)]},X=()=>n.value[1]?E():P(tt(n.value[0])),R=()=>(n.value||[]).map(m=>P(m)),z=()=>(L(),a.modelAuto?X():a.multiDates?R():Array.isArray(n.value)?Va(()=>E(),r.value.enabled):P(tt(n.value))),K=m=>!m||Array.isArray(m)&&!m.length?null:a.timePicker?x(tt(m)):a.monthPicker?Y(tt(m)):a.yearPicker?y(tt(m)):a.multiDates?te(tt(m)):a.weekPicker?j(tt(m)):T(tt(m)),ie=m=>{const c=K(m);$n(tt(c))?(n.value=tt(c),I()):(n.value=null,d.value="")},B=()=>{const m=c=>vt(c,o.value.format);return`${m(n.value[0])} ${o.value.rangeSeparator} ${n.value[1]?m(n.value[1]):""}`},q=()=>t.value&&n.value?Array.isArray(n.value)?B():vt(n.value,o.value.format):f(n.value),F=()=>n.value?a.multiDates?n.value.map(m=>f(m)).join("; "):o.value.enabled&&typeof o.value.format=="string"?q():f(n.value):"",I=()=>{!a.format||typeof a.format=="string"||o.value.enabled&&typeof o.value.format=="string"?d.value=F():d.value=a.format(n.value)},b=m=>{if(a.utc){const c=new Date(m);return a.utc==="preserve"?new Date(c.getTime()+c.getTimezoneOffset()*6e4):c}return a.modelType?a.modelType==="date"||a.modelType==="timestamp"?new Date(m):a.modelType==="format"&&(typeof a.format=="string"||!a.format)?wn(m,i(),new Date):wn(m,a.modelType,new Date):new Date(m)},P=m=>m?a.utc?yv(m,a.utc==="preserve",a.enableSeconds):a.modelType?a.modelType==="timestamp"?+m:a.modelType==="format"&&(typeof a.format=="string"||!a.format)?f(m):f(m,a.modelType,!0):m:"",U=(m,c=!1)=>{if(e("update:model-value",m),l.value.emitTimezone&&c){const w=Array.isArray(m)?m.map(H=>qt(tt(H),l.value.emitTimezone)):qt(tt(m),l.value.emitTimezone);e("update:model-timezone-value",w)}},ce=m=>Array.isArray(n.value)?a.multiDates?n.value.map(c=>m(c)):[m(n.value[0]),n.value[1]?m(n.value[1]):la(r.value.partialRange)]:m(tt(n.value)),me=()=>{if(Array.isArray(n.value)){const m=Vt(n.value[0],a.weekStart),c=n.value[1]?Vt(n.value[1],a.weekStart):[];return[m.map(w=>Q(w)),c.map(w=>Q(w))]}return Vt(n.value,a.weekStart).map(m=>Q(m))},Z=m=>U(tt(ce(m)));return{inputValue:d,internalModelValue:n,checkBeforeEmit:()=>n.value?r.value.enabled?r.value.partialRange?n.value.length>=1:n.value.length===2:!!n.value:!1,parseExternalModelValue:ie,formatInputValue:I,emitModelValue:()=>(I(),a.monthPicker?Z(h):a.timePicker?Z(p):a.yearPicker?Z(ke):a.weekPicker?e("update:model-value",me()):U(z(),!0))}},Ev=(e,a)=>{const{defaultedFilters:t,propDates:n}=We(e),{validateMonthYearInRange:o}=jt(e),r=(f,p)=>{let h=f;return t.value.months.includes($e(h))?(h=p?ct(f,1):Rt(f,1),r(h,p)):h},l=(f,p)=>{let h=f;return t.value.years.includes(ke(h))?(h=p?On(f,1):sr(f,1),l(h,p)):h},i=(f,p=!1)=>{const h=Be(Q(),{month:e.month,year:e.year});let y=f?ct(h,1):Rt(h,1);e.disableYearSelect&&(y=Pt(y,e.year));let A=$e(y),x=ke(y);t.value.months.includes(A)&&(y=r(y,f),A=$e(y),x=ke(y)),t.value.years.includes(x)&&(y=l(y,f),x=ke(y)),o(A,x,f,e.preventMinMaxNavigation)&&d(A,x,p)},d=(f,p,h)=>{a("update-month-year",{month:f,year:p,fromNav:h})},_=M(()=>f=>hr(Be(Q(),{month:e.month,year:e.year}),n.value.maxDate,n.value.minDate,e.preventMinMaxNavigation,f));return{handleMonthYearChange:i,isDisabled:_,updateMonthYear:d}};var sa=(e=>(e.center="center",e.left="left",e.right="right",e))(sa||{}),ft=(e=>(e.month="month",e.year="year",e))(ft||{}),Jt=(e=>(e.top="top",e.bottom="bottom",e))(Jt||{}),ta=(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(ta||{}),bt=(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(bt||{});const Hv=({menuRef:e,menuRefInner:a,inputRef:t,pickerWrapperRef:n,inline:o,emit:r,props:l,slots:i})=>{const d=C({}),_=C(!1),f=C({top:"0",left:"0"}),p=C(!1),h=La(l,"teleportCenter");lt(h,()=>{f.value=JSON.parse(JSON.stringify({})),L()});const y=b=>{if(l.teleport){const P=b.getBoundingClientRect();return{left:P.left+window.scrollX,top:P.top+window.scrollY}}return{top:0,left:0}},A=(b,P)=>{f.value.left=`${b+P-d.value.width}px`},x=b=>{f.value.left=`${b}px`},Y=(b,P)=>{l.position===sa.left&&x(b),l.position===sa.right&&A(b,P),l.position===sa.center&&(f.value.left=`${b+P/2-d.value.width/2}px`)},te=b=>{const{width:P,height:U}=b.getBoundingClientRect(),{top:ce,left:me}=l.altPosition?l.altPosition(b):y(b);return{top:+ce,left:+me,width:P,height:U}},j=()=>{f.value.left="50%",f.value.top="50%",f.value.transform="translate(-50%, -50%)",f.value.position="fixed",delete f.value.opacity},T=()=>{const b=et(t),{top:P,left:U,transform:ce}=l.altPosition(b);f.value={top:`${P}px`,left:`${U}px`,transform:ce??""}},L=(b=!0)=>{var P;if(!o.value.enabled){if(h.value)return j();if(l.altPosition!==null)return T();if(b){const U=l.teleport?(P=a.value)==null?void 0:P.$el:e.value;U&&(d.value=U.getBoundingClientRect()),r("recalculate-position")}return B()}},E=({inputEl:b,left:P,width:U})=>{window.screen.width>768&&!_.value&&Y(P,U),z(b)},X=b=>{const{top:P,left:U,height:ce,width:me}=te(b);f.value.top=`${ce+P+ +l.offset}px`,p.value=!1,_.value||(f.value.left=`${U+me/2-d.value.width/2}px`),E({inputEl:b,left:U,width:me})},R=b=>{const{top:P,left:U,width:ce}=te(b);f.value.top=`${P-+l.offset-d.value.height}px`,p.value=!0,E({inputEl:b,left:U,width:ce})},z=b=>{if(l.autoPosition){const{left:P,width:U}=te(b),{left:ce,right:me}=d.value;if(!_.value){if(Math.abs(ce)!==Math.abs(me)){if(ce<=0)return _.value=!0,x(P);if(me>=document.documentElement.clientWidth)return _.value=!0,A(P,U)}return Y(P,U)}}},K=()=>{const b=et(t);if(b){const{height:P}=d.value,{top:U,height:ce}=b.getBoundingClientRect(),me=window.innerHeight-U-ce,Z=U;return P<=me?Jt.bottom:P>me&&P<=Z?Jt.top:me>=Z?Jt.bottom:Jt.top}return Jt.bottom},ie=b=>K()===Jt.bottom?X(b):R(b),B=()=>{const b=et(t);if(b)return l.autoPosition?ie(b):X(b)},q=function(b){if(b){const P=b.scrollHeight>b.clientHeight,U=window.getComputedStyle(b).overflowY.indexOf("hidden")!==-1;return P&&!U}return!0},F=function(b){return!b||b===document.body||b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?window:q(b)?b:F(b.parentNode)},I=b=>{if(b)switch(l.position){case sa.left:return{left:0,transform:"translateX(0)"};case sa.right:return{left:`${b.width}px`,transform:"translateX(-100%)"};default:return{left:`${b.width/2}px`,transform:"translateX(-50%)"}}return{}};return{openOnTop:p,menuStyle:f,xCorrect:_,setMenuPosition:L,getScrollableParent:F,shadowRender:(b,P)=>{var U,ce,me;const Z=document.createElement("div"),m=(U=et(t))==null?void 0:U.getBoundingClientRect();Z.setAttribute("id","dp--temp-container");const c=(ce=n.value)!=null&&ce.clientWidth?n.value:document.body;c.append(Z);const w=I(m),H=Hr(b,{...P,shadow:!0,style:{opacity:0,position:"absolute",...w}},Object.fromEntries(Object.keys(i).filter(se=>["right-sidebar","left-sidebar"].includes(se)).map(se=>[se,i[se]])));to(H,Z),d.value=(me=H.el)==null?void 0:me.getBoundingClientRect(),to(null,Z),c.removeChild(Z)}}},Et=[{name:"clock-icon",use:["time","calendar","shared"]},{name:"arrow-left",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-right",use:["month-year","calendar","shared","year-mode"]},{name:"arrow-up",use:["time","calendar","month-year","shared"]},{name:"arrow-down",use:["time","calendar","month-year","shared"]},{name:"calendar-icon",use:["month-year","time","calendar","shared","year-mode"]},{name:"day",use:["calendar","shared"]},{name:"month-overlay-value",use:["calendar","month-year","shared"]},{name:"year-overlay-value",use:["calendar","month-year","shared","year-mode"]},{name:"year-overlay",use:["month-year","shared"]},{name:"month-overlay",use:["month-year","shared"]},{name:"month-overlay-header",use:["month-year","shared"]},{name:"year-overlay-header",use:["month-year","shared"]},{name:"hours-overlay-value",use:["calendar","time","shared"]},{name:"minutes-overlay-value",use:["calendar","time","shared"]},{name:"seconds-overlay-value",use:["calendar","time","shared"]},{name:"hours",use:["calendar","time","shared"]},{name:"minutes",use:["calendar","time","shared"]},{name:"month",use:["calendar","month-year","shared"]},{name:"year",use:["calendar","month-year","shared","year-mode"]},{name:"action-buttons",use:["action"]},{name:"action-preview",use:["action"]},{name:"calendar-header",use:["calendar","shared"]},{name:"marker-tooltip",use:["calendar","shared"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["calendar","time","shared"]},{name:"am-pm-button",use:["calendar","time","shared"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["month-year","shared"]},{name:"time-picker",use:["menu","shared"]},{name:"action-row",use:["action"]},{name:"marker",use:["calendar","shared"]},{name:"quarter",use:["shared"]}],Fv=[{name:"trigger"},{name:"input-icon"},{name:"clear-icon"},{name:"dp-input"}],Wv={all:()=>Et,monthYear:()=>Et.filter(e=>e.use.includes("month-year")),input:()=>Fv,timePicker:()=>Et.filter(e=>e.use.includes("time")),action:()=>Et.filter(e=>e.use.includes("action")),calendar:()=>Et.filter(e=>e.use.includes("calendar")),menu:()=>Et.filter(e=>e.use.includes("menu")),shared:()=>Et.filter(e=>e.use.includes("shared")),yearMode:()=>Et.filter(e=>e.use.includes("year-mode"))},ut=(e,a,t)=>{const n=[];return Wv[a]().forEach(o=>{e[o.name]&&n.push(o.name)}),t!=null&&t.length&&t.forEach(o=>{o.slot&&n.push(o.slot)}),n},xa=e=>{const a=M(()=>n=>e.value?n?e.value.open:e.value.close:""),t=M(()=>n=>e.value?n?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:a,showTransition:!!e.value,menuTransition:t}},Ta=(e,a)=>{const{defaultedRange:t,defaultedTz:n}=We(e),o=Q(qt(Q(),n.value.timezone)),r=C([{month:$e(o),year:ke(o)}]),l=Pa({hours:t.value.enabled?[yt(o),yt(o)]:yt(o),minutes:t.value.enabled?[Tt(o),Tt(o)]:Tt(o),seconds:t.value.enabled?[0,0]:0}),i=M({get:()=>e.internalModelValue,set:f=>{!e.readonly&&!e.disabled&&a("update:internal-model-value",f)}}),d=M(()=>f=>r.value[f]?r.value[f].month:0),_=M(()=>f=>r.value[f]?r.value[f].year:0);return{calendars:r,time:l,modelValue:i,month:d,year:_}},zv=(e,a)=>{const{defaultedMultiCalendars:t,defaultedHighlight:n,defaultedTz:o,propDates:r,defaultedRange:l}=We(a),{isDisabled:i}=jt(a),d=C(null),_=C(qt(new Date,o.value.timezone)),f=c=>{!c.current&&a.hideOffsetDates||(d.value=c.value)},p=()=>{d.value=null},h=c=>Array.isArray(e.value)&&l.value.enabled&&e.value[0]&&d.value?c?Qe(d.value,e.value[0]):ze(d.value,e.value[0]):!0,y=(c,w)=>{const H=()=>e.value?w?e.value[0]||null:e.value[1]:null,se=e.value&&Array.isArray(e.value)?H():null;return Ce(Q(c.value),se)},A=c=>{const w=Array.isArray(e.value)?e.value[0]:null;return c?!ze(d.value??null,w):!0},x=(c,w=!0)=>(l.value.enabled||a.weekPicker)&&Array.isArray(e.value)&&e.value.length===2?a.hideOffsetDates&&!c.current?!1:Ce(Q(c.value),e.value[w?0:1]):l.value.enabled?y(c,w)&&A(w)||Ce(c.value,Array.isArray(e.value)?e.value[0]:null)&&h(w):!1,Y=(c,w,H)=>Array.isArray(e.value)&&e.value[0]&&e.value.length===1?c?!1:H?Qe(e.value[0],w.value):ze(e.value[0],w.value):!1,te=c=>!e.value||a.hideOffsetDates&&!c.current?!1:l.value.enabled?a.modelAuto&&Array.isArray(e.value)?Ce(c.value,e.value[0]?e.value[0]:_.value):!1:a.multiDates&&Array.isArray(e.value)?e.value.some(w=>Ce(w,c.value)):Ce(c.value,e.value?e.value:_.value),j=c=>{if(l.value.autoRange||a.weekPicker){if(d.value){if(a.hideOffsetDates&&!c.current)return!1;const w=Ge(d.value,+l.value.autoRange),H=Vt(Q(d.value),a.weekStart);return a.weekPicker?Ce(H[1],Q(c.value)):Ce(w,Q(c.value))}return!1}return!1},T=c=>{if(l.value.autoRange||a.weekPicker){if(d.value){const w=Ge(d.value,+l.value.autoRange);if(a.hideOffsetDates&&!c.current)return!1;const H=Vt(Q(d.value),a.weekStart);return a.weekPicker?Qe(c.value,H[0])&&ze(c.value,H[1]):Qe(c.value,d.value)&&ze(c.value,w)}return!1}return!1},L=c=>{if(l.value.autoRange||a.weekPicker){if(d.value){if(a.hideOffsetDates&&!c.current)return!1;const w=Vt(Q(d.value),a.weekStart);return a.weekPicker?Ce(w[0],c.value):Ce(d.value,c.value)}return!1}return!1},E=c=>Ua(e.value,d.value,c.value),X=()=>a.modelAuto&&Array.isArray(a.internalModelValue)?!!a.internalModelValue[0]:!1,R=()=>a.modelAuto?cr(a.internalModelValue):!0,z=c=>{if(Array.isArray(e.value)&&e.value.length||a.weekPicker)return!1;const w=l.value.enabled?!x(c)&&!x(c,!1):!0;return!i(c.value)&&!te(c)&&!(!c.current&&a.hideOffsetDates)&&w},K=c=>l.value.enabled?a.modelAuto?X()&&te(c):!1:te(c),ie=c=>n.value?fv(c.value,r.value.highlight):!1,B=c=>{const w=i(c.value);return w&&(typeof n.value=="function"?!n.value(c.value,w):!n.value.options.highlightDisabled)},q=c=>{var w;return typeof n.value=="function"?n.value(c.value):(w=n.value.weekdays)==null?void 0:w.includes(c.value.getDay())},F=c=>(l.value.enabled||a.weekPicker)&&(!(t.value.count>0)||c.current)&&R()&&!(!c.current&&a.hideOffsetDates)&&!te(c)?E(c):!1,I=c=>{const{isRangeStart:w,isRangeEnd:H}=ce(c),se=l.value.enabled?w||H:!1;return{dp__cell_offset:!c.current,dp__pointer:!a.disabled&&!(!c.current&&a.hideOffsetDates)&&!i(c.value),dp__cell_disabled:i(c.value),dp__cell_highlight:!B(c)&&(ie(c)||q(c))&&!K(c)&&!se&&!L(c)&&!(F(c)&&a.weekPicker)&&!H,dp__cell_highlight_active:!B(c)&&(ie(c)||q(c))&&K(c),dp__today:!a.noToday&&Ce(c.value,_.value)&&c.current,"dp--past":ze(c.value,_.value),"dp--future":Qe(c.value,_.value)}},b=c=>({dp__active_date:K(c),dp__date_hover:z(c)}),P=c=>{if(e.value&&!Array.isArray(e.value)){const w=Vt(e.value,a.weekStart);return{...Z(c),dp__range_start:Ce(w[0],c.value),dp__range_end:Ce(w[1],c.value),dp__range_between_week:Qe(c.value,w[0])&&ze(c.value,w[1])}}return{...Z(c)}},U=c=>{if(e.value&&Array.isArray(e.value)){const w=Vt(e.value[0],a.weekStart),H=e.value[1]?Vt(e.value[1],a.weekStart):[];return{...Z(c),dp__range_start:Ce(w[0],c.value)||Ce(H[0],c.value),dp__range_end:Ce(w[1],c.value)||Ce(H[1],c.value),dp__range_between_week:Qe(c.value,w[0])&&ze(c.value,w[1])||Qe(c.value,H[0])&&ze(c.value,H[1]),dp__range_between:Qe(c.value,w[1])&&ze(c.value,H[0])}}return{...Z(c)}},ce=c=>{const w=t.value.count>0?c.current&&x(c)&&R():x(c)&&R(),H=t.value.count>0?c.current&&x(c,!1)&&R():x(c,!1)&&R();return{isRangeStart:w,isRangeEnd:H}},me=c=>{const{isRangeStart:w,isRangeEnd:H}=ce(c);return{dp__range_start:w,dp__range_end:H,dp__range_between:F(c),dp__date_hover_start:Y(z(c),c,!0),dp__date_hover_end:Y(z(c),c,!1)}},Z=c=>({...me(c),dp__cell_auto_range:T(c),dp__cell_auto_range_start:L(c),dp__cell_auto_range_end:j(c)}),m=c=>l.value.enabled?l.value.autoRange?Z(c):a.modelAuto?{...b(c),...me(c)}:a.weekPicker?U(c):me(c):a.weekPicker?P(c):b(c);return{setHoverDate:f,clearHoverDate:p,getDayClassData:c=>a.hideOffsetDates&&!c.current?{}:{...I(c),...m(c),[a.dayClass?a.dayClass(c.value):""]:!0,[a.calendarCellClassName]:!!a.calendarCellClassName}}},jt=e=>{const{defaultedFilters:a,defaultedRange:t,propDates:n}=We(e),o=B=>n.value.disabledDates?typeof n.value.disabledDates=="function"?n.value.disabledDates(Q(B)):!!Ea(B,n.value.disabledDates):!1,r=B=>{const q=n.value.maxDate?Qe(B,n.value.maxDate):!1,F=n.value.minDate?ze(B,n.value.minDate):!1,I=o(B),b=a.value.months.map(Z=>+Z).includes($e(B)),P=e.disabledWeekDays.length?e.disabledWeekDays.some(Z=>+Z===im(B)):!1,U=f(B),ce=ke(B),me=ce<+e.yearRange[0]||ce>+e.yearRange[1];return!(q||F||I||b||me||P||U)},l=(B,q)=>ze(...Ft(n.value.minDate,B,q))||Ce(...Ft(n.value.minDate,B,q)),i=(B,q)=>Qe(...Ft(n.value.maxDate,B,q))||Ce(...Ft(n.value.maxDate,B,q)),d=(B,q,F)=>{let I=!1;return n.value.maxDate&&F&&i(B,q)&&(I=!0),n.value.minDate&&!F&&l(B,q)&&(I=!0),I},_=(B,q,F,I)=>{let b=!1;return I?n.value.minDate&&n.value.maxDate?b=d(B,q,F):(n.value.minDate&&l(B,q)||n.value.maxDate&&i(B,q))&&(b=!0):b=!0,b},f=B=>Array.isArray(n.value.allowedDates)&&!n.value.allowedDates.length?!0:n.value.allowedDates?!Ea(B,n.value.allowedDates):!1,p=B=>!r(B),h=B=>t.value.noDisabledRange?!Qo({start:B[0],end:B[1]}).some(q=>p(q)):!0,y=B=>{if(B){const q=ke(B);return q>=+e.yearRange[0]&&q<=e.yearRange[1]}return!0},A=(B,q)=>!!(Array.isArray(B)&&B[q]&&(t.value.maxRange||t.value.minRange)&&y(B[q])),x=(B,q,F=0)=>{if(A(q,F)&&y(B)){const I=qo(B,q[F]),b=pr(q[F],B),P=b.length===1?0:b.filter(ce=>p(ce)).length,U=Math.abs(I)-(t.value.minMaxRawRange?0:P);if(t.value.minRange&&t.value.maxRange)return U>=+t.value.minRange&&U<=+t.value.maxRange;if(t.value.minRange)return U>=+t.value.minRange;if(t.value.maxRange)return U<=+t.value.maxRange}return!0},Y=()=>!e.enableTimePicker||e.monthPicker||e.yearPicker||e.ignoreTimeValidation,te=B=>Array.isArray(B)?[B[0]?un(B[0]):null,B[1]?un(B[1]):null]:un(B),j=(B,q,F)=>B.find(I=>+I.hours===yt(q)&&I.minutes==="*"?!0:+I.minutes===Tt(q)&&+I.hours===yt(q))&&F,T=(B,q,F)=>{const[I,b]=B,[P,U]=q;return!j(I,P,F)&&!j(b,U,F)&&F},L=(B,q)=>{const F=Array.isArray(q)?q:[q];return Array.isArray(e.disabledTimes)?Array.isArray(e.disabledTimes[0])?T(e.disabledTimes,F,B):!F.some(I=>j(e.disabledTimes,I,B)):B},E=(B,q)=>{const F=Array.isArray(q)?[ea(q[0]),q[1]?ea(q[1]):void 0]:ea(q),I=!e.disabledTimes(F);return B&&I},X=(B,q)=>e.disabledTimes?Array.isArray(e.disabledTimes)?L(q,B):E(q,B):q,R=B=>{let q=!0;if(!B||Y())return!0;const F=!n.value.minDate&&!n.value.maxDate?te(B):B;return(e.maxTime||n.value.maxDate)&&(q=go(e.maxTime,n.value.maxDate,"max",tt(F),q)),(e.minTime||n.value.minDate)&&(q=go(e.minTime,n.value.minDate,"min",tt(F),q)),X(B,q)},z=B=>{if(!e.monthPicker)return!0;let q=!0;const F=Q(ht(B));if(n.value.minDate&&n.value.maxDate){const I=Q(ht(n.value.minDate)),b=Q(ht(n.value.maxDate));return Qe(F,I)&&ze(F,b)||Ce(F,I)||Ce(F,b)}if(n.value.minDate){const I=Q(ht(n.value.minDate));q=Qe(F,I)||Ce(F,I)}if(n.value.maxDate){const I=Q(ht(n.value.maxDate));q=ze(F,I)||Ce(F,I)}return q},K=M(()=>B=>!e.enableTimePicker||e.ignoreTimeValidation?!0:R(B)),ie=M(()=>B=>e.monthPicker?Array.isArray(B)&&(t.value.enabled||e.multiDates)?!B.filter(q=>!z(q)).length:z(B):!0);return{isDisabled:p,validateDate:r,validateMonthYearInRange:_,isDateRangeAllowed:h,checkMinMaxRange:x,isValidTime:R,isTimeValid:K,isMonthValid:ie}},Qa=()=>{const e=M(()=>(n,o)=>n==null?void 0:n.includes(o)),a=M(()=>(n,o)=>n.count?n.solo?!0:o===0:!0),t=M(()=>(n,o)=>n.count?n.solo?!0:o===n.count-1:!0);return{hideNavigationButtons:e,showLeftIcon:a,showRightIcon:t}},qv=(e,a,t)=>{const n=C(0),o=Pa({[ta.timePicker]:!e.enableTimePicker||e.timePicker||e.monthPicker,[ta.calendar]:!1,[ta.header]:!1}),r=M(()=>e.monthPicker),l=p=>{var h;if((h=e.flow)!=null&&h.length){if(!p&&r.value)return f();o[p]=!0,Object.keys(o).filter(y=>!o[y]).length||f()}},i=()=>{var p;(p=e.flow)!=null&&p.length&&n.value!==-1&&(n.value+=1,a("flow-step",n.value),f())},d=()=>{n.value=-1},_=(p,h,...y)=>{var A,x;e.flow[n.value]===p&&t.value&&((x=(A=t.value)[h])==null||x.call(A,...y))},f=()=>{_(bt.month,"toggleMonthPicker",!0),_(bt.year,"toggleYearPicker",!0),_(bt.calendar,"toggleTimePicker",!1,!0),_(bt.time,"toggleTimePicker",!0,!0);const p=e.flow[n.value];(p===bt.hours||p===bt.minutes||p===bt.seconds)&&_(p,"toggleTimePicker",!0,!0,p)};return{childMount:l,updateFlowStep:i,resetFlow:d,flowStep:n}},Ga={multiCalendars:{type:[Boolean,Number,String,Object],default:void 0},modelValue:{type:[String,Date,Array,Object,Number],default:null},modelType:{type:String,default:null},position:{type:String,default:"center"},dark:{type:Boolean,default:!1},format:{type:[String,Function],default:()=>null},autoPosition:{type:Boolean,default:!0},altPosition:{type:Function,default:null},transitions:{type:[Boolean,Object],default:!0},formatLocale:{type:Object,default:null},utc:{type:[Boolean,String],default:!1},ariaLabels:{type:Object,default:()=>({})},offset:{type:[Number,String],default:10},hideNavigation:{type:Array,default:()=>[]},timezone:{type:[String,Object],default:null},emitTimezone:{type:String,default:null},vertical:{type:Boolean,default:!1},disableMonthYearSelect:{type:Boolean,default:!1},disableYearSelect:{type:Boolean,default:!1},menuClassName:{type:String,default:null},dayClass:{type:Function,default:null},yearRange:{type:Array,default:()=>[1900,2100]},calendarCellClassName:{type:String,default:null},enableTimePicker:{type:Boolean,default:!0},autoApply:{type:Boolean,default:!1},disabledDates:{type:[Array,Function],default:()=>[]},monthNameFormat:{type:String,default:"short"},startDate:{type:[Date,String],default:null},startTime:{type:[Object,Array],default:null},hideOffsetDates:{type:Boolean,default:!1},autoRange:{type:[Number,String],default:null},noToday:{type:Boolean,default:!1},disabledWeekDays:{type:Array,default:()=>[]},allowedDates:{type:Array,default:null},nowButtonLabel:{type:String,default:"Now"},markers:{type:Array,default:()=>[]},escClose:{type:Boolean,default:!0},spaceConfirm:{type:Boolean,default:!0},monthChangeOnArrows:{type:Boolean,default:!0},presetDates:{type:Array,default:()=>[]},flow:{type:Array,default:()=>[]},partialFlow:{type:Boolean,default:!1},preventMinMaxNavigation:{type:Boolean,default:!1},minRange:{type:[Number,String],default:null},maxRange:{type:[Number,String],default:null},multiDatesLimit:{type:[Number,String],default:null},reverseYears:{type:Boolean,default:!1},weekPicker:{type:Boolean,default:!1},filters:{type:Object,default:()=>({})},arrowNavigation:{type:Boolean,default:!1},disableTimeRangeValidation:{type:Boolean,default:!1},highlight:{type:[Function,Object],default:null},teleport:{type:[String,Boolean,Object],default:null},teleportCenter:{type:Boolean,default:!1},locale:{type:String,default:"en-Us"},weekNumName:{type:String,default:"W"},weekStart:{type:[Number,String],default:1},weekNumbers:{type:[String,Function,Object],default:null},calendarClassName:{type:String,default:null},monthChangeOnScroll:{type:[Boolean,String],default:!0},dayNames:{type:[Function,Array],default:null},monthPicker:{type:Boolean,default:!1},customProps:{type:Object,default:null},yearPicker:{type:Boolean,default:!1},modelAuto:{type:Boolean,default:!1},selectText:{type:String,default:"Select"},cancelText:{type:String,default:"Cancel"},previewFormat:{type:[String,Function],default:()=>""},multiDates:{type:Boolean,default:!1},partialRange:{type:Boolean,default:!0},ignoreTimeValidation:{type:Boolean,default:!1},minDate:{type:[Date,String],default:null},maxDate:{type:[Date,String],default:null},minTime:{type:Object,default:null},maxTime:{type:Object,default:null},name:{type:String,default:null},placeholder:{type:String,default:""},hideInputIcon:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},state:{type:Boolean,default:null},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},inputClassName:{type:String,default:null},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},timePicker:{type:Boolean,default:!1},enableSeconds:{type:Boolean,default:!1},is24:{type:Boolean,default:!0},noHoursOverlay:{type:Boolean,default:!1},noMinutesOverlay:{type:Boolean,default:!1},noSecondsOverlay:{type:Boolean,default:!1},hoursGridIncrement:{type:[String,Number],default:1},minutesGridIncrement:{type:[String,Number],default:5},secondsGridIncrement:{type:[String,Number],default:5},hoursIncrement:{type:[Number,String],default:1},minutesIncrement:{type:[Number,String],default:1},secondsIncrement:{type:[Number,String],default:1},range:{type:[Boolean,Object],default:!1},uid:{type:String,default:null},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inline:{type:[Boolean,Object],default:!1},textInput:{type:[Boolean,Object],default:!1},noDisabledRange:{type:Boolean,default:!1},sixWeeks:{type:[Boolean,String],default:!1},actionRow:{type:Object,default:()=>({})},focusStartDate:{type:Boolean,default:!1},disabledTimes:{type:[Function,Array],default:void 0},showLastInRange:{type:Boolean,default:!0},timePickerInline:{type:Boolean,default:!1},calendar:{type:Function,default:null},config:{type:Object,default:void 0},quarterPicker:{type:Boolean,default:!1},yearFirst:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},gt={...Ga,shadow:{type:Boolean,default:!1},flowStep:{type:Number,default:0},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1},menuWrapRef:{type:Object,default:null}},Uv={key:1,class:"dp__input_wrap"},Qv=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],Gv={key:2,class:"dp__clear_icon"},jv=W({compatConfig:{MODE:3},__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1},inputValue:{type:String,default:""},...Ga},emits:["clear","open","update:input-value","set-input-date","close","select-date","set-empty-date","toggle","focus-prev","focus","blur","real-blur"],setup(e,{expose:a,emit:t}){const n=t,o=e,{defaultedTextInput:r,defaultedAriaLabels:l,defaultedInline:i,defaultedConfig:d,defaultedRange:_,getDefaultPattern:f,getDefaultStartTime:p}=We(o),{checkMinMaxRange:h}=jt(o),y=C(),A=C(null),x=C(!1),Y=C(!1),te=M(()=>({dp__pointer:!o.disabled&&!o.readonly&&!r.value.enabled,dp__disabled:o.disabled,dp__input_readonly:!r.value.enabled,dp__input:!0,dp__input_icon_pad:!o.hideInputIcon,dp__input_valid:!!o.state,dp__input_invalid:o.state===!1,dp__input_focus:x.value||o.isMenuOpen,dp__input_reg:!r.value.enabled,[o.inputClassName]:!!o.inputClassName})),j=()=>{n("set-input-date",null),o.autoApply&&(n("set-empty-date"),y.value=null)},T=b=>{const P=p();return hv(b,r.value.format??f(),P??fr({},o.enableSeconds),o.inputValue,Y.value)},L=b=>{const{rangeSeparator:P}=r.value,[U,ce]=b.split(`${P}`);if(U){const me=T(U.trim()),Z=ce?T(ce.trim()):null,m=me&&Z?[me,Z]:[me];h(Z,m,0)&&(y.value=me?m:null)}},E=()=>{Y.value=!0},X=b=>{if(_.value.enabled)L(b);else if(o.multiDates){const P=b.split(";");y.value=P.map(U=>T(U.trim())).filter(U=>U)}else y.value=T(b)},R=b=>{var P;const U=typeof b=="string"?b:(P=b.target)==null?void 0:P.value;U!==""?(r.value.openMenu&&!o.isMenuOpen&&n("open"),X(U),n("set-input-date",y.value)):j(),Y.value=!1,n("update:input-value",U)},z=b=>{r.value.enabled?(X(b.target.value),r.value.enterSubmit&&$n(y.value)&&o.inputValue!==""?(n("set-input-date",y.value,!0),y.value=null):r.value.enterSubmit&&o.inputValue===""&&(y.value=null,n("clear"))):B(b)},K=b=>{r.value.enabled&&r.value.tabSubmit&&X(b.target.value),r.value.tabSubmit&&$n(y.value)&&o.inputValue!==""?(n("set-input-date",y.value,!0,!0),y.value=null):r.value.tabSubmit&&o.inputValue===""&&(y.value=null,n("clear",!0))},ie=()=>{var b;x.value=!0,n("focus"),r.value.enabled&&r.value.selectOnFocus&&((b=A.value)==null||b.select())},B=b=>{b.preventDefault(),Wt(b,d.value,!0),r.value.enabled&&r.value.openMenu&&!i.value.input&&!o.isMenuOpen?n("open"):r.value.enabled||n("toggle")},q=()=>{n("real-blur"),x.value=!1,(!o.isMenuOpen||i.value.enabled&&i.value.input)&&n("blur"),o.autoApply&&r.value.enabled&&y.value&&!o.isMenuOpen&&(n("set-input-date",y.value),n("select-date"),y.value=null)},F=b=>{Wt(b,d.value,!0),n("clear")},I=b=>{if(!r.value.enabled){if(b.code==="Tab")return;b.preventDefault()}};return a({focusInput:()=>{var b;(b=A.value)==null||b.focus({preventScroll:!0})},setParsedDate:b=>{y.value=b}}),(b,P)=>{var U;return u(),v("div",{onClick:B},[b.$slots.trigger&&!b.$slots["dp-input"]&&!s(i).enabled?$(b.$slots,"trigger",{key:0}):S("",!0),!b.$slots.trigger&&(!s(i).enabled||s(i).input)?(u(),v("div",Uv,[b.$slots["dp-input"]&&!b.$slots.trigger&&(!s(i).enabled||s(i).enabled&&s(i).input)?$(b.$slots,"dp-input",{key:0,value:e.inputValue,isMenuOpen:e.isMenuOpen,onInput:R,onEnter:z,onTab:K,onClear:F,onBlur:q,onKeypress:I,onPaste:E,openMenu:()=>b.$emit("open"),closeMenu:()=>b.$emit("close"),toggleMenu:()=>b.$emit("toggle")}):S("",!0),b.$slots["dp-input"]?S("",!0):(u(),v("input",{key:1,id:b.uid?`dp-input-${b.uid}`:void 0,ref_key:"inputRef",ref:A,name:b.name,class:de(te.value),inputmode:s(r).enabled?"text":"none",placeholder:b.placeholder,disabled:b.disabled,readonly:b.readonly,required:b.required,value:e.inputValue,autocomplete:b.autocomplete,"aria-label":(U=s(l))==null?void 0:U.input,"aria-disabled":b.disabled||void 0,"aria-invalid":b.state===!1?!0:void 0,onInput:R,onKeydown:[we(z,["enter"]),we(K,["tab"]),I],onBlur:q,onFocus:ie,onKeypress:I,onPaste:E},null,42,Qv)),g("div",{onClick:P[2]||(P[2]=ce=>n("toggle"))},[b.$slots["input-icon"]&&!b.hideInputIcon?(u(),v("span",{key:0,class:"dp__input_icon",onClick:P[0]||(P[0]=ce=>n("toggle"))},[$(b.$slots,"input-icon")])):S("",!0),!b.$slots["input-icon"]&&!b.hideInputIcon&&!b.$slots["dp-input"]?(u(),re(s(fa),{key:1,class:"dp__input_icon dp__input_icons",onClick:P[1]||(P[1]=ce=>n("toggle"))})):S("",!0)]),b.$slots["clear-icon"]&&e.inputValue&&b.clearable&&!b.disabled&&!b.readonly?(u(),v("span",Gv,[$(b.$slots,"clear-icon",{clear:F})])):S("",!0),b.clearable&&!b.$slots["clear-icon"]&&e.inputValue&&!b.disabled&&!b.readonly?(u(),re(s(ir),{key:3,class:"dp__clear_icon dp__input_icons",onClick:P[3]||(P[3]=Le(ce=>F(ce),["prevent"]))})):S("",!0)])):S("",!0)])}}}),Xv=["title"],Kv=["disabled"],Jv=W({compatConfig:{MODE:3},__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{type:Number,default:0},...gt},emits:["close-picker","select-date","select-now","invalid-select"],setup(e,{emit:a}){const t=a,n=e,{defaultedActionRow:o,defaultedPreviewFormat:r,defaultedMultiCalendars:l,defaultedTextInput:i,defaultedInline:d,defaultedRange:_,getDefaultPattern:f}=We(n),{isTimeValid:p,isMonthValid:h}=jt(n),{buildMatrix:y}=Gt(),A=C(null),x=C(null),Y=C(!1),te=C({}),j=C(null),T=C(null);Ue(()=>{n.arrowNavigation&&y([et(A),et(x)],"actionRow"),L(),window.addEventListener("resize",L)}),Ut(()=>{window.removeEventListener("resize",L)});const L=()=>{Y.value=!1,setTimeout(()=>{var I,b;const P=(I=j.value)==null?void 0:I.getBoundingClientRect(),U=(b=T.value)==null?void 0:b.getBoundingClientRect();P&&U&&(te.value.maxWidth=`${U.width-P.width-20}px`),Y.value=!0},0)},E=M(()=>_.value.enabled&&!_.value.partialRange&&n.internalModelValue?n.internalModelValue.length===2:!0),X=M(()=>!p.value(n.internalModelValue)||!h.value(n.internalModelValue)||!E.value),R=()=>{const I=r.value;return n.timePicker||n.monthPicker,I(tt(n.internalModelValue))},z=()=>{const I=n.internalModelValue;return l.value.count>0?`${K(I[0])} - ${K(I[1])}`:[K(I[0]),K(I[1])]},K=I=>yr(I,r.value,n.formatLocale,i.value.rangeSeparator,n.modelAuto,f()),ie=M(()=>!n.internalModelValue||!n.menuMount?"":typeof r.value=="string"?Array.isArray(n.internalModelValue)?n.internalModelValue.length===2&&n.internalModelValue[1]?z():n.multiDates?n.internalModelValue.map(I=>`${K(I)}`):n.modelAuto?`${K(n.internalModelValue[0])}`:`${K(n.internalModelValue[0])} -`:K(n.internalModelValue):R()),B=()=>n.multiDates?"; ":" - ",q=M(()=>Array.isArray(ie.value)?ie.value.join(B()):ie.value),F=()=>{p.value(n.internalModelValue)&&h.value(n.internalModelValue)&&E.value?t("select-date"):t("invalid-select")};return(I,b)=>(u(),v("div",{ref_key:"actionRowRef",ref:T,class:"dp__action_row"},[I.$slots["action-row"]?$(I.$slots,"action-row",Ke(Ne({key:0},{internalModelValue:I.internalModelValue,disabled:X.value,selectDate:()=>I.$emit("select-date"),closePicker:()=>I.$emit("close-picker")}))):(u(),v(le,{key:1},[s(o).showPreview?(u(),v("div",{key:0,class:"dp__selection_preview",title:q.value,style:it(te.value)},[I.$slots["action-preview"]&&Y.value?$(I.$slots,"action-preview",{key:0,value:I.internalModelValue}):S("",!0),!I.$slots["action-preview"]&&Y.value?(u(),v(le,{key:1},[Oe(oe(q.value),1)],64)):S("",!0)],12,Xv)):S("",!0),g("div",{ref_key:"actionBtnContainer",ref:j,class:"dp__action_buttons","data-dp-element":"action-row"},[I.$slots["action-buttons"]?$(I.$slots,"action-buttons",{key:0,value:I.internalModelValue}):S("",!0),I.$slots["action-buttons"]?S("",!0):(u(),v(le,{key:1},[!s(d).enabled&&s(o).showCancel?(u(),v("button",{key:0,ref_key:"cancelButtonRef",ref:A,type:"button",class:"dp__action_button dp__action_cancel",onClick:b[0]||(b[0]=P=>I.$emit("close-picker")),onKeydown:[b[1]||(b[1]=we(P=>I.$emit("close-picker"),["enter"])),b[2]||(b[2]=we(P=>I.$emit("close-picker"),["space"]))]},oe(I.cancelText),545)):S("",!0),s(o).showNow?(u(),v("button",{key:1,type:"button",class:"dp__action_button dp__action_cancel",onClick:b[3]||(b[3]=P=>I.$emit("select-now")),onKeydown:[b[4]||(b[4]=we(P=>I.$emit("select-now"),["enter"])),b[5]||(b[5]=we(P=>I.$emit("select-now"),["space"]))]},oe(I.nowButtonLabel),33)):S("",!0),s(o).showSelect?(u(),v("button",{key:2,ref_key:"selectButtonRef",ref:x,type:"button",class:"dp__action_button dp__action_select",disabled:X.value,onKeydown:[we(F,["enter"]),we(F,["space"])],onClick:F},oe(I.selectText),41,Kv)):S("",!0)],64))],512)],64))],512))}}),Zv=["onKeydown"],ep={class:"dp__selection_grid_header"},tp=["aria-selected","aria-disabled","onClick","onKeydown","onMouseover"],ap=["aria-label"],Sa=W({__name:"SelectionOverlay",props:{items:{},type:{},isLast:{type:Boolean},arrowNavigation:{type:Boolean},skipButtonRef:{type:Boolean},headerRefs:{},hideNavigation:{},escClose:{type:Boolean},useRelative:{type:Boolean},height:{},textInput:{type:[Boolean,Object]},config:{},noOverlayFocus:{type:Boolean},focusValue:{},menuWrapRef:{},ariaLabels:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{expose:a,emit:t}){const{setSelectionGrid:n,buildMultiLevelMatrix:o,setMonthPicker:r}=Gt(),l=t,i=e,{defaultedAriaLabels:d,defaultedTextInput:_,defaultedConfig:f}=We(i),{hideNavigationButtons:p}=Qa(),h=C(!1),y=C(null),A=C(null),x=C([]),Y=C(),te=C(null),j=C(0),T=C(null);Fr(()=>{y.value=null}),Ue(()=>{Nt().then(()=>B()),i.noOverlayFocus||E(),L(!0)}),Ut(()=>L(!1));const L=Z=>{var m;i.arrowNavigation&&((m=i.headerRefs)!=null&&m.length?r(Z):n(Z))},E=()=>{var Z;const m=et(A);m&&(_.value.enabled||(y.value?(Z=y.value)==null||Z.focus({preventScroll:!0}):m.focus({preventScroll:!0})),h.value=m.clientHeight({dp__overlay:!0,"dp--overlay-absolute":!i.useRelative,"dp--overlay-relative":i.useRelative})),R=M(()=>i.useRelative?{height:`${i.height}px`,width:"260px"}:void 0),z=M(()=>({dp__overlay_col:!0})),K=M(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:h.value,dp__button_bottom:i.isLast})),ie=M(()=>{var Z,m;return{dp__overlay_container:!0,dp__container_flex:((Z=i.items)==null?void 0:Z.length)<=6,dp__container_block:((m=i.items)==null?void 0:m.length)>6}});lt(()=>i.items,()=>B(!1),{deep:!0});const B=(Z=!0)=>{Nt().then(()=>{const m=et(y),c=et(A),w=et(te),H=et(T),se=w?w.getBoundingClientRect().height:0;c&&(c.getBoundingClientRect().height?j.value=c.getBoundingClientRect().height-se:j.value=f.value.modeHeight-se),m&&H&&Z&&(H.scrollTop=m.offsetTop-H.offsetTop-(j.value/2-m.getBoundingClientRect().height)-se)})},q=Z=>{Z.disabled||l("selected",Z.value)},F=()=>{l("toggle"),l("reset-flow")},I=()=>{i.escClose&&F()},b=(Z,m,c,w)=>{Z&&((m.active||m.value===i.focusValue)&&(y.value=Z),i.arrowNavigation&&(Array.isArray(x.value[c])?x.value[c][w]=Z:x.value[c]=[Z],P()))},P=()=>{var Z,m;const c=(Z=i.headerRefs)!=null&&Z.length?[i.headerRefs].concat(x.value):x.value.concat([i.skipButtonRef?[]:[te.value]]);o(tt(c),(m=i.headerRefs)!=null&&m.length?"monthPicker":"selectionGrid")},U=Z=>{i.arrowNavigation||Wt(Z,f.value,!0)},ce=Z=>{Y.value=Z,l("hover-value",Z)},me=()=>{if(F(),!i.isLast){const Z=pv(i.menuWrapRef??null,"action-row");if(Z){const m=dr(Z);m==null||m.focus()}}};return a({focusGrid:E}),(Z,m)=>{var c;return u(),v("div",{ref_key:"gridWrapRef",ref:A,class:de(X.value),style:it(R.value),role:"dialog",tabindex:"0",onKeydown:[we(Le(I,["prevent"]),["esc"]),m[0]||(m[0]=we(Le(w=>U(w),["prevent"]),["left"])),m[1]||(m[1]=we(Le(w=>U(w),["prevent"]),["up"])),m[2]||(m[2]=we(Le(w=>U(w),["prevent"]),["down"])),m[3]||(m[3]=we(Le(w=>U(w),["prevent"]),["right"]))]},[g("div",{ref_key:"containerRef",ref:T,class:de(ie.value),role:"grid",style:it({height:`${j.value}px`})},[g("div",ep,[$(Z.$slots,"header")]),Z.$slots.overlay?$(Z.$slots,"overlay",{key:0}):(u(!0),v(le,{key:1},ye(Z.items,(w,H)=>(u(),v("div",{key:H,class:de(["dp__overlay_row",{dp__flex_row:Z.items.length>=3}]),role:"row"},[(u(!0),v(le,null,ye(w,(se,V)=>(u(),v("div",{key:se.value,ref_for:!0,ref:Se=>b(Se,se,H,V),role:"gridcell",class:de(z.value),"aria-selected":se.active||void 0,"aria-disabled":se.disabled||void 0,tabindex:"0",onClick:Se=>q(se),onKeydown:[we(Le(Se=>q(se),["prevent"]),["enter"]),we(Le(Se=>q(se),["prevent"]),["space"])],onMouseover:Se=>ce(se.value)},[g("div",{class:de(se.className)},[Z.$slots.item?$(Z.$slots,"item",{key:0,item:se}):S("",!0),Z.$slots.item?S("",!0):(u(),v(le,{key:1},[Oe(oe(se.text),1)],64))],2)],42,tp))),128))],2))),128))],6),Z.$slots["button-icon"]?ia((u(),v("button",{key:0,ref_key:"toggleButton",ref:te,type:"button","aria-label":(c=s(d))==null?void 0:c.toggleOverlay,class:de(K.value),tabindex:"0",onClick:F,onKeydown:[we(F,["enter"]),we(me,["tab"])]},[$(Z.$slots,"button-icon")],42,ap)),[[Na,!s(p)(Z.hideNavigation,Z.type)]]):S("",!0)],46,Zv)}}}),ja=W({__name:"InstanceWrap",props:{multiCalendars:{},stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const a=e,t=M(()=>a.multiCalendars>0?[...Array(a.multiCalendars).keys()]:[0]),n=M(()=>({dp__instance_calendar:a.multiCalendars>0}));return(o,r)=>(u(),v("div",{class:de({dp__menu_inner:!o.stretch,"dp--menu--inner-stretched":o.stretch,dp__flex_display:o.multiCalendars>0,"dp--flex-display-collapsed":o.collapse})},[(u(!0),v(le,null,ye(t.value,(l,i)=>(u(),v("div",{key:l,class:de(n.value)},[$(o.$slots,"default",{instance:l,index:i})],2))),128))],2))}}),np=["aria-label","aria-disabled"],ka=W({compatConfig:{MODE:3},__name:"ArrowBtn",props:{ariaLabel:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:a}){const t=a,n=C(null);return Ue(()=>t("set-ref",n)),(o,r)=>(u(),v("button",{ref_key:"elRef",ref:n,type:"button",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":o.ariaLabel,"aria-disabled":o.disabled||void 0,onClick:r[0]||(r[0]=l=>o.$emit("activate")),onKeydown:[r[1]||(r[1]=we(Le(l=>o.$emit("activate"),["prevent"]),["enter"])),r[2]||(r[2]=we(Le(l=>o.$emit("activate"),["prevent"]),["space"]))]},[g("span",{class:de(["dp__inner_nav",{dp__inner_nav_disabled:o.disabled}])},[$(o.$slots,"default")],2)],40,np))}}),op={class:"dp--year-mode-picker"},rp=["aria-label"],kr=W({__name:"YearModePicker",props:{...gt,showYearPicker:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},instance:{type:Number,default:0},year:{type:Number,default:0},isDisabled:{type:Function,default:()=>!1}},emits:["toggle-year-picker","year-select","handle-year"],setup(e,{emit:a}){const t=a,n=e,{showRightIcon:o,showLeftIcon:r}=Qa(),{defaultedConfig:l,defaultedMultiCalendars:i,defaultedAriaLabels:d,defaultedTransitions:_}=We(n),{showTransition:f,transitionName:p}=xa(_),h=(x=!1,Y)=>{t("toggle-year-picker",{flow:x,show:Y})},y=x=>{t("year-select",x)},A=(x=!1)=>{t("handle-year",x)};return(x,Y)=>{var te,j,T;return u(),v("div",op,[s(r)(s(i),e.instance)?(u(),re(ka,{key:0,ref:"mpPrevIconRef","aria-label":(te=s(d))==null?void 0:te.prevYear,disabled:e.isDisabled(!1),onActivate:Y[0]||(Y[0]=L=>A(!1))},{default:D(()=>[x.$slots["arrow-left"]?$(x.$slots,"arrow-left",{key:0}):S("",!0),x.$slots["arrow-left"]?S("",!0):(u(),re(s(Wn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),g("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":(j=s(d))==null?void 0:j.openYearsOverlay,onClick:Y[1]||(Y[1]=()=>h(!1)),onKeydown:Y[2]||(Y[2]=we(()=>h(!1),["enter"]))},[x.$slots.year?$(x.$slots,"year",{key:0,year:e.year}):S("",!0),x.$slots.year?S("",!0):(u(),v(le,{key:1},[Oe(oe(e.year),1)],64))],40,rp),s(o)(s(i),e.instance)?(u(),re(ka,{key:1,ref:"mpNextIconRef","aria-label":(T=s(d))==null?void 0:T.nextYear,disabled:e.isDisabled(!0),onActivate:Y[3]||(Y[3]=L=>A(!0))},{default:D(()=>[x.$slots["arrow-right"]?$(x.$slots,"arrow-right",{key:0}):S("",!0),x.$slots["arrow-right"]?S("",!0):(u(),re(s(zn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),G(Lt,{name:s(p)(e.showYearPicker),css:s(f)},{default:D(()=>[e.showYearPicker?(u(),re(Sa,{key:0,items:e.items,"text-input":x.textInput,"esc-close":x.escClose,config:x.config,"is-last":x.autoApply&&!s(l).keepActionRow,"hide-navigation":x.hideNavigation,"aria-labels":x.ariaLabels,type:"year",onToggle:h,onSelected:Y[4]||(Y[4]=L=>y(L))},at({"button-icon":D(()=>[x.$slots["calendar-icon"]?$(x.$slots,"calendar-icon",{key:0}):S("",!0),x.$slots["calendar-icon"]?S("",!0):(u(),re(s(fa),{key:1}))]),_:2},[x.$slots["year-overlay-value"]?{name:"item",fn:D(({item:L})=>[$(x.$slots,"year-overlay-value",{text:L.text,value:L.value})]),key:"0"}:void 0]),1032,["items","text-input","esc-close","config","is-last","hide-navigation","aria-labels"])):S("",!0)]),_:3},8,["name","css"])])}}}),Jn=(e,a,t)=>{if(a.value&&Array.isArray(a.value))if(a.value.some(n=>Ce(e,n))){const n=a.value.filter(o=>!Ce(o,e));a.value=n.length?n:null}else(t&&+t>a.value.length||!t)&&a.value.push(e);else a.value=[e]},Zn=(e,a,t)=>{let n=e.value?e.value.slice():[];return n.length===2&&n[1]!==null&&(n=[]),n.length?ze(a,n[0])?(n.unshift(a),t("range-start",n[0]),t("range-start",n[1])):(n[1]=a,t("range-end",a)):(n=[a],t("range-start",a)),n},Xa=(e,a,t,n)=>{e&&(e[0]&&e[1]&&t&&a("auto-apply"),e[0]&&!e[1]&&n&&t&&a("auto-apply"))},wr=e=>{Array.isArray(e.value)&&e.value.length<=2&&e.range?e.modelValue.value=e.value.map(a=>qt(Q(a),e.timezone)):Array.isArray(e.value)||(e.modelValue.value=qt(Q(e.value),e.timezone))},$r=(e,a,t,n)=>Array.isArray(a.value)&&a.value.length===2?n.value.fixedStart&&(Qe(e,a.value[0])||Ce(e,a.value[0]))?[a.value[0],e]:n.value.fixedEnd&&(ze(e,a.value[1])||Ce(e,a.value[1]))?[e,a.value[1]]:(t("invalid-fixed-range",e),a.value):[],Dr=({multiCalendars:e,highlight:a,propDates:t,calendars:n,modelValue:o,props:r,year:l,month:i,emit:d})=>{const _=M(()=>Gn(r.yearRange,r.reverseYears)),f=C([!1]),p=M(()=>(E,X)=>{const R=Be(ht(new Date),{month:i.value(E),year:l.value(E)});return hr(R,t.value.maxDate,t.value.minDate,r.preventMinMaxNavigation,X)}),h=()=>{for(let E=0;E{if(!E)return h();const X=Be(Q(),n.value[E]);return n.value[0].year=ke(sr(X,e.value.count-1)),h()},A=E=>r.focusStartDate?E[0]:E[1]?E[1]:E[0],x=()=>{if(o.value){const E=Array.isArray(o.value)?A(o.value):o.value;n.value[0]={month:$e(E),year:ke(E)}}};Ue(()=>{x(),e.value.count&&h()});const Y=(E,X)=>{n.value[X].year=E,e.value.count&&!e.value.solo&&y(X)},te=M(()=>E=>ma(_.value,X=>{const R=l.value(E)===X.value,z=Da(X.value,va(t.value.minDate),va(t.value.maxDate)),K=Kn(a.value,X.value);return{active:R,disabled:z,highlighted:K}})),j=(E,X)=>{Y(E,X),L(X)},T=(E,X=!1)=>{if(!p.value(E,X)){const R=X?l.value(E)+1:l.value(E)-1;Y(R,E)}},L=(E,X=!1,R)=>{X||d("reset-flow"),R!==void 0?f.value[E]=R:f.value[E]=!f.value[E],f.value||d("overlay-closed")};return{isDisabled:p,groupedYears:te,showYearPicker:f,selectYear:Y,toggleYearPicker:L,handleYearSelect:j,handleYear:T}},lp=(e,a)=>{const{defaultedMultiCalendars:t,defaultedAriaLabels:n,defaultedTransitions:o,defaultedConfig:r,defaultedRange:l,defaultedHighlight:i,propDates:d,defaultedTz:_}=We(e),{modelValue:f,year:p,month:h,calendars:y}=Ta(e,a),A=M(()=>ur(e.formatLocale,e.locale,e.monthNameFormat)),x=C(null),{checkMinMaxRange:Y}=jt(e),{selectYear:te,groupedYears:j,showYearPicker:T,toggleYearPicker:L,handleYearSelect:E,handleYear:X,isDisabled:R}=Dr({modelValue:f,multiCalendars:t,highlight:i,calendars:y,year:p,propDates:d,month:h,props:e,emit:a});Ue(()=>{e.startDate&&(f.value&&e.focusStartDate||!f.value)&&te(ke(Q(e.startDate)),0)});const z=m=>m?{month:$e(m),year:ke(m)}:{month:null,year:null},K=()=>f.value?Array.isArray(f.value)?f.value.map(m=>z(m)):z(f.value):z(),ie=(m,c)=>{const w=y.value[m],H=K();return Array.isArray(H)?H.some(se=>se.year===(w==null?void 0:w.year)&&se.month===c):(w==null?void 0:w.year)===H.year&&c===H.month},B=(m,c,w)=>{var H,se;const V=K();return Array.isArray(V)?p.value(c)===((H=V[w])==null?void 0:H.year)&&m===((se=V[w])==null?void 0:se.month):!1},q=(m,c)=>{if(l.value.enabled){const w=K();if(Array.isArray(f.value)&&Array.isArray(w)){const H=B(m,c,0)||B(m,c,1),se=Ot(ht(Q()),m,p.value(c));return Ua(f.value,x.value,se)&&!H}return!1}return!1},F=M(()=>m=>ma(A.value,c=>{const w=ie(m,c.value),H=Da(c.value,mr(p.value(m),d.value.minDate),vr(p.value(m),d.value.maxDate))||wv(d.value.disabledDates,p.value(m)).includes(c.value),se=q(c.value,m),V=gr(i.value,c.value,p.value(m));return{active:w,disabled:H,isBetween:se,highlighted:V}})),I=(m,c)=>Ot(ht(Q()),m,p.value(c)),b=(m,c)=>{const w=f.value?f.value:ht(new Date);f.value=Ot(w,m,p.value(c)),a("auto-apply"),a("update-flow-step")},P=(m,c)=>{const w=I(m,c);l.value.fixedEnd||l.value.fixedStart?f.value=$r(w,f,a,l):f.value?Y(w,f.value)&&(f.value=Zn(f,I(m,c),a)):f.value=[I(m,c)],Xa(f.value,a,e.autoApply,e.modelAuto)},U=(m,c)=>{Jn(I(m,c),f,e.multiDatesLimit),a("auto-apply",!0)},ce=(m,c)=>(y.value[c].month=m,Z(c,y.value[c].year,m),e.multiDates?U(m,c):l.value.enabled?P(m,c):b(m,c)),me=(m,c)=>{te(m,c),Z(c,m,null)},Z=(m,c,w)=>{let H=w;if(!H&&H!==0){const se=K();H=Array.isArray(se)?se[m].month:se.month}a("update-month-year",{instance:m,year:c,month:H})};return{groupedMonths:F,groupedYears:j,year:p,isDisabled:R,defaultedMultiCalendars:t,defaultedAriaLabels:n,defaultedTransitions:o,defaultedConfig:r,showYearPicker:T,modelValue:f,presetDate:(m,c)=>{wr({value:m,modelValue:f,range:l.value.enabled,timezone:c?void 0:_.value.timezone}),a("auto-apply")},setHoverDate:(m,c)=>{x.value=I(m,c)},selectMonth:ce,selectYear:me,toggleYearPicker:L,handleYearSelect:E,handleYear:X,getModelMonthYear:K}},sp=W({compatConfig:{MODE:3},__name:"MonthPicker",props:{...gt},emits:["update:internal-model-value","overlay-closed","reset-flow","range-start","range-end","auto-apply","update-month-year","update-flow-step","mount","invalid-fixed-range"],setup(e,{expose:a,emit:t}){const n=t,o=Qt(),r=ut(o,"yearMode"),l=e;Ue(()=>{l.shadow||n("mount",null)});const{groupedMonths:i,groupedYears:d,year:_,isDisabled:f,defaultedMultiCalendars:p,defaultedConfig:h,showYearPicker:y,modelValue:A,presetDate:x,setHoverDate:Y,selectMonth:te,selectYear:j,toggleYearPicker:T,handleYearSelect:L,handleYear:E,getModelMonthYear:X}=lp(l,n);return a({getSidebarProps:()=>({modelValue:A,year:_,getModelMonthYear:X,selectMonth:te,selectYear:j,handleYear:E}),presetDate:x,toggleYearPicker:R=>T(0,R)}),(R,z)=>(u(),re(ja,{"multi-calendars":s(p).count,collapse:R.collapse,stretch:""},{default:D(({instance:K})=>[R.$slots["month-year"]?$(R.$slots,"month-year",Ke(Ne({key:0},{year:s(_),months:s(i)(K),years:s(d)(K),selectMonth:s(te),selectYear:s(j),instance:K}))):(u(),re(Sa,{key:1,items:s(i)(K),"arrow-navigation":R.arrowNavigation,"is-last":R.autoApply&&!s(h).keepActionRow,"esc-close":R.escClose,height:s(h).modeHeight,config:R.config,"no-overlay-focus":!!(R.noOverlayFocus||R.textInput),"use-relative":"",type:"month",onSelected:ie=>s(te)(ie,K),onHoverValue:ie=>s(Y)(ie,K)},{header:D(()=>[G(kr,Ne(R.$props,{items:s(d)(K),instance:K,"show-year-picker":s(y)[K],year:s(_)(K),"is-disabled":ie=>s(f)(K,ie),onHandleYear:ie=>s(E)(K,ie),onYearSelect:ie=>s(L)(ie,K),onToggleYearPicker:ie=>s(T)(K,ie==null?void 0:ie.flow,ie==null?void 0:ie.show)}),at({_:2},[ye(s(r),(ie,B)=>({name:ie,fn:D(q=>[$(R.$slots,ie,Ke(rt(q)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},1032,["items","arrow-navigation","is-last","esc-close","height","config","no-overlay-focus","onSelected","onHoverValue"]))]),_:3},8,["multi-calendars","collapse"]))}}),ip=(e,a)=>{const{modelValue:t}=Ta(e,a),n=C(null),{defaultedHighlight:o,defaultedFilters:r,defaultedRange:l,propDates:i}=We(e),d=C();Ue(()=>{e.startDate&&(t.value&&e.focusStartDate||!t.value)&&(d.value=ke(Q(e.startDate)))});const _=y=>Array.isArray(t.value)?t.value.some(A=>ke(A)===y):t.value?ke(t.value)===y:!1,f=y=>l.value.enabled&&Array.isArray(t.value)?Ua(t.value,n.value,h(y)):!1,p=M(()=>ma(Gn(e.yearRange,e.reverseYears),y=>{const A=_(y.value),x=Da(y.value,va(i.value.minDate),va(i.value.maxDate))||r.value.years.includes(y.value),Y=f(y.value)&&!A,te=Kn(o.value,y.value);return{active:A,disabled:x,isBetween:Y,highlighted:te}})),h=y=>Pt(ht(new Date),y);return{groupedYears:p,modelValue:t,focusYear:d,setHoverValue:y=>{n.value=Pt(ht(new Date),y)},selectYear:y=>{var A;if(a("update-month-year",{instance:0,year:y}),e.multiDates)return t.value?Array.isArray(t.value)&&(((A=t.value)==null?void 0:A.map(x=>ke(x))).includes(y)?t.value=t.value.filter(x=>ke(x)!==y):t.value.push(Pt(dt(Q()),y))):t.value=[Pt(dt(Q()),y)],a("auto-apply",!0);if(l.value.enabled)return t.value=Zn(t,h(y),a),Xa(t.value,a,e.autoApply,e.modelAuto);t.value=h(y),a("auto-apply")}}},up=W({compatConfig:{MODE:3},__name:"YearPicker",props:{...gt},emits:["update:internal-model-value","reset-flow","range-start","range-end","auto-apply","update-month-year"],setup(e,{expose:a,emit:t}){const n=t,o=e,{groupedYears:r,modelValue:l,focusYear:i,selectYear:d,setHoverValue:_}=ip(o,n),{defaultedConfig:f}=We(o);return a({getSidebarProps:()=>({modelValue:l,selectYear:d})}),(p,h)=>(u(),v("div",null,[p.$slots["month-year"]?$(p.$slots,"month-year",Ke(Ne({key:0},{years:s(r),selectYear:s(d)}))):(u(),re(Sa,{key:1,items:s(r),"is-last":p.autoApply&&!s(f).keepActionRow,height:s(f).modeHeight,config:p.config,"no-overlay-focus":!!(p.noOverlayFocus||p.textInput),"focus-value":s(i),type:"year","use-relative":"",onSelected:s(d),onHoverValue:s(_)},at({_:2},[p.$slots["year-overlay-value"]?{name:"item",fn:D(({item:y})=>[$(p.$slots,"year-overlay-value",{text:y.text,value:y.value})]),key:"0"}:void 0]),1032,["items","is-last","height","config","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),cp={key:0,class:"dp__time_input"},dp=["aria-label","onKeydown","onClick"],mp=g("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),vp=g("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),pp=["aria-label","disabled","onKeydown","onClick"],fp=["aria-label","onKeydown","onClick"],hp=g("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1),yp=g("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1),gp={key:0},_p=["aria-label","onKeydown"],bp=W({compatConfig:{MODE:3},__name:"TimeInput",props:{hours:{type:Number,default:0},minutes:{type:Number,default:0},seconds:{type:Number,default:0},closeTimePickerBtn:{type:Object,default:null},order:{type:Number,default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...gt},emits:["set-hours","set-minutes","update:hours","update:minutes","update:seconds","reset-flow","mounted","overlay-closed","am-pm-change"],setup(e,{expose:a,emit:t}){const n=t,o=e,{setTimePickerElements:r,setTimePickerBackRef:l}=Gt(),{defaultedAriaLabels:i,defaultedTransitions:d,defaultedFilters:_,defaultedConfig:f,defaultedRange:p}=We(o),{transitionName:h,showTransition:y}=xa(d),A=Pa({hours:!1,minutes:!1,seconds:!1}),x=C("AM"),Y=C(null),te=C([]);Ue(()=>{n("mounted")});const j=O=>Be(new Date,{hours:O.hours,minutes:O.minutes,seconds:o.enableSeconds?O.seconds:0,milliseconds:0}),T=M(()=>O=>b(O,o[O])||E(O,o[O])),L=M(()=>({hours:o.hours,minutes:o.minutes,seconds:o.seconds})),E=(O,pe)=>p.value.enabled&&!p.value.disableTimeRangeValidation?!o.validateTime(O,pe):!1,X=(O,pe)=>{if(p.value.enabled&&!p.value.disableTimeRangeValidation){const Me=pe?+o[`${O}Increment`]:-+o[`${O}Increment`],k=o[O]+Me;return!o.validateTime(O,k)}return!1},R=M(()=>O=>!me(+o[O]+ +o[`${O}Increment`],O)||X(O,!0)),z=M(()=>O=>!me(+o[O]-+o[`${O}Increment`],O)||X(O,!1)),K=(O,pe)=>Fo(Be(Q(),O),pe),ie=(O,pe)=>lv(Be(Q(),O),pe),B=M(()=>({dp__time_col:!0,dp__time_col_block:!o.timePickerInline,dp__time_col_reg_block:!o.enableSeconds&&o.is24&&!o.timePickerInline,dp__time_col_reg_inline:!o.enableSeconds&&o.is24&&o.timePickerInline,dp__time_col_reg_with_button:!o.enableSeconds&&!o.is24,dp__time_col_sec:o.enableSeconds&&o.is24,dp__time_col_sec_with_button:o.enableSeconds&&!o.is24})),q=M(()=>{const O=[{type:"hours"},{type:"",separator:!0},{type:"minutes"}];return o.enableSeconds?O.concat([{type:"",separator:!0},{type:"seconds"}]):O}),F=M(()=>q.value.filter(O=>!O.separator)),I=M(()=>O=>{if(O==="hours"){const pe=H(+o.hours);return{text:pe<10?`0${pe}`:`${pe}`,value:pe}}return{text:o[O]<10?`0${o[O]}`:`${o[O]}`,value:o[O]}}),b=(O,pe)=>{var Me;if(!o.disabledTimesConfig)return!1;const k=o.disabledTimesConfig(o.order,O==="hours"?pe:void 0);return k[O]?!!((Me=k[O])!=null&&Me.includes(pe)):!0},P=O=>{const pe=o.is24?24:12,Me=O==="hours"?pe:60,k=+o[`${O}GridIncrement`],ee=O==="hours"&&!o.is24?k:0,be=[];for(let De=ee;De({active:!1,disabled:_.value.times[O].includes(De.value)||!me(De.value,O)||b(O,De.value)||E(O,De.value)}))},U=O=>O>=0?O:59,ce=O=>O>=0?O:23,me=(O,pe)=>{const Me=o.minTime?j(rn(o.minTime)):null,k=o.maxTime?j(rn(o.maxTime)):null,ee=j(rn(L.value,pe,pe==="minutes"||pe==="seconds"?U(O):ce(O)));return Me&&k?($a(ee,k)||Zt(ee,k))&&(wa(ee,Me)||Zt(ee,Me)):Me?wa(ee,Me)||Zt(ee,Me):k?$a(ee,k)||Zt(ee,k):!0},Z=O=>o[`no${O[0].toUpperCase()+O.slice(1)}Overlay`],m=O=>{Z(O)||(A[O]=!A[O],A[O]||n("overlay-closed"))},c=O=>O==="hours"?yt:O==="minutes"?Tt:da,w=(O,pe=!0)=>{const Me=pe?K:ie,k=pe?+o[`${O}Increment`]:-+o[`${O}Increment`];me(+o[O]+k,O)&&n(`update:${O}`,c(O)(Me({[O]:+o[O]},{[O]:+o[`${O}Increment`]})))},H=O=>o.is24?O:(O>=12?x.value="PM":x.value="AM",uv(O)),se=()=>{x.value==="PM"?(x.value="AM",n("update:hours",o.hours-12)):(x.value="PM",n("update:hours",o.hours+12)),n("am-pm-change",x.value)},V=O=>{A[O]=!0},Se=(O,pe,Me)=>{if(O&&o.arrowNavigation){Array.isArray(te.value[pe])?te.value[pe][Me]=O:te.value[pe]=[O];const k=te.value.reduce((ee,be)=>be.map((De,He)=>[...ee[He]||[],be[He]]),[]);l(o.closeTimePickerBtn),Y.value&&(k[1]=k[1].concat(Y.value)),r(k,o.order)}},Ve=(O,pe)=>(m(O),O==="hours"&&!o.is24?n(`update:${O}`,x.value==="PM"?pe+12:pe):n(`update:${O}`,pe));return a({openChildCmp:V}),(O,pe)=>{var Me;return O.disabled?S("",!0):(u(),v("div",cp,[(u(!0),v(le,null,ye(q.value,(k,ee)=>{var be,De,He;return u(),v("div",{key:ee,class:de(B.value)},[k.separator?(u(),v(le,{key:0},[Oe(" : ")],64)):(u(),v(le,{key:1},[g("button",{ref_for:!0,ref:ae=>Se(ae,ee,0),type:"button",class:de({dp__btn:!0,dp__inc_dec_button:!O.timePickerInline,dp__inc_dec_button_inline:O.timePickerInline,dp__tp_inline_btn_top:O.timePickerInline,dp__inc_dec_button_disabled:R.value(k.type)}),"aria-label":(be=s(i))==null?void 0:be.incrementValue(k.type),tabindex:"0",onKeydown:[we(Le(ae=>w(k.type),["prevent"]),["enter"]),we(Le(ae=>w(k.type),["prevent"]),["space"])],onClick:ae=>w(k.type)},[o.timePickerInline?(u(),v(le,{key:1},[mp,vp],64)):(u(),v(le,{key:0},[O.$slots["arrow-up"]?$(O.$slots,"arrow-up",{key:0}):S("",!0),O.$slots["arrow-up"]?S("",!0):(u(),re(s(Un),{key:1}))],64))],42,dp),g("button",{ref_for:!0,ref:ae=>Se(ae,ee,1),type:"button","aria-label":(De=s(i))==null?void 0:De.openTpOverlay(k.type),class:de({dp__time_display:!0,dp__time_display_block:!O.timePickerInline,dp__time_display_inline:O.timePickerInline,"dp--time-invalid":T.value(k.type),"dp--time-overlay-btn":!T.value(k.type)}),disabled:Z(k.type),tabindex:"0",onKeydown:[we(Le(ae=>m(k.type),["prevent"]),["enter"]),we(Le(ae=>m(k.type),["prevent"]),["space"])],onClick:ae=>m(k.type)},[O.$slots[k.type]?$(O.$slots,k.type,{key:0,text:I.value(k.type).text,value:I.value(k.type).value}):S("",!0),O.$slots[k.type]?S("",!0):(u(),v(le,{key:1},[Oe(oe(I.value(k.type).text),1)],64))],42,pp),g("button",{ref_for:!0,ref:ae=>Se(ae,ee,2),type:"button",class:de({dp__btn:!0,dp__inc_dec_button:!O.timePickerInline,dp__inc_dec_button_inline:O.timePickerInline,dp__tp_inline_btn_bottom:O.timePickerInline,dp__inc_dec_button_disabled:z.value(k.type)}),"aria-label":(He=s(i))==null?void 0:He.decrementValue(k.type),tabindex:"0",onKeydown:[we(Le(ae=>w(k.type,!1),["prevent"]),["enter"]),we(Le(ae=>w(k.type,!1),["prevent"]),["space"])],onClick:ae=>w(k.type,!1)},[o.timePickerInline?(u(),v(le,{key:1},[hp,yp],64)):(u(),v(le,{key:0},[O.$slots["arrow-down"]?$(O.$slots,"arrow-down",{key:0}):S("",!0),O.$slots["arrow-down"]?S("",!0):(u(),re(s(Qn),{key:1}))],64))],42,fp)],64))],2)}),128)),O.is24?S("",!0):(u(),v("div",gp,[O.$slots["am-pm-button"]?$(O.$slots,"am-pm-button",{key:0,toggle:se,value:x.value}):S("",!0),O.$slots["am-pm-button"]?S("",!0):(u(),v("button",{key:1,ref_key:"amPmButton",ref:Y,type:"button",class:"dp__pm_am_button",role:"button","aria-label":(Me=s(i))==null?void 0:Me.amPmButton,tabindex:"0",onClick:se,onKeydown:[we(Le(se,["prevent"]),["enter"]),we(Le(se,["prevent"]),["space"])]},oe(x.value),41,_p))])),(u(!0),v(le,null,ye(F.value,(k,ee)=>(u(),re(Lt,{key:ee,name:s(h)(A[k.type]),css:s(y)},{default:D(()=>[A[k.type]?(u(),re(Sa,{key:0,items:P(k.type),"is-last":O.autoApply&&!s(f).keepActionRow,"esc-close":O.escClose,type:k.type,"text-input":O.textInput,config:O.config,"arrow-navigation":O.arrowNavigation,"aria-labels":O.ariaLabels,onSelected:be=>Ve(k.type,be),onToggle:be=>m(k.type),onResetFlow:pe[0]||(pe[0]=be=>O.$emit("reset-flow"))},at({"button-icon":D(()=>[O.$slots["clock-icon"]?$(O.$slots,"clock-icon",{key:0}):S("",!0),O.$slots["clock-icon"]?S("",!0):(u(),re(Mt(O.timePickerInline?s(fa):s(qn)),{key:1}))]),_:2},[O.$slots[`${k.type}-overlay-value`]?{name:"item",fn:D(({item:be})=>[$(O.$slots,`${k.type}-overlay-value`,{text:be.text,value:be.value})]),key:"0"}:void 0]),1032,["items","is-last","esc-close","type","text-input","config","arrow-navigation","aria-labels","onSelected","onToggle"])):S("",!0)]),_:2},1032,["name","css"]))),128))]))}}}),kp={class:"dp--tp-wrap"},wp=["aria-label","tabindex"],$p=["tabindex"],Dp=["aria-label"],Pr=W({compatConfig:{MODE:3},__name:"TimePicker",props:{hours:{type:[Number,Array],default:0},minutes:{type:[Number,Array],default:0},seconds:{type:[Number,Array],default:0},disabledTimesConfig:{type:Function,default:null},validateTime:{type:Function,default:()=>!1},...gt},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow","overlay-opened","overlay-closed","am-pm-change"],setup(e,{expose:a,emit:t}){const n=t,o=e,{buildMatrix:r,setTimePicker:l}=Gt(),i=Qt(),{defaultedTransitions:d,defaultedAriaLabels:_,defaultedTextInput:f,defaultedConfig:p,defaultedRange:h}=We(o),{transitionName:y,showTransition:A}=xa(d),{hideNavigationButtons:x}=Qa(),Y=C(null),te=C(null),j=C([]),T=C(null);Ue(()=>{n("mount"),!o.timePicker&&o.arrowNavigation?r([et(Y.value)],"time"):l(!0,o.timePicker)});const L=M(()=>h.value.enabled&&o.modelAuto?cr(o.internalModelValue):!0),E=C(!1),X=P=>({hours:Array.isArray(o.hours)?o.hours[P]:o.hours,minutes:Array.isArray(o.minutes)?o.minutes[P]:o.minutes,seconds:Array.isArray(o.seconds)?o.seconds[P]:o.seconds}),R=M(()=>{const P=[];if(h.value.enabled)for(let U=0;U<2;U++)P.push(X(U));else P.push(X(0));return P}),z=(P,U=!1,ce="")=>{U||n("reset-flow"),E.value=P,n(P?"overlay-opened":"overlay-closed"),o.arrowNavigation&&l(P),Nt(()=>{ce!==""&&j.value[0]&&j.value[0].openChildCmp(ce)})},K=M(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:o.autoApply&&!p.value.keepActionRow})),ie=ut(i,"timePicker"),B=(P,U,ce)=>h.value.enabled?U===0?[P,R.value[1][ce]]:[R.value[0][ce],P]:P,q=P=>{n("update:hours",P)},F=P=>{n("update:minutes",P)},I=P=>{n("update:seconds",P)},b=()=>{if(T.value&&!f.value.enabled&&!o.noOverlayFocus){const P=dr(T.value);P&&P.focus({preventScroll:!0})}};return a({toggleTimePicker:z}),(P,U)=>{var ce;return u(),v("div",kp,[!P.timePicker&&!P.timePickerInline?ia((u(),v("button",{key:0,ref_key:"openTimePickerBtn",ref:Y,type:"button",class:de(K.value),"aria-label":(ce=s(_))==null?void 0:ce.openTimePicker,tabindex:P.noOverlayFocus?void 0:0,onKeydown:[U[0]||(U[0]=we(me=>z(!0),["enter"])),U[1]||(U[1]=we(me=>z(!0),["space"]))],onClick:U[2]||(U[2]=me=>z(!0))},[P.$slots["clock-icon"]?$(P.$slots,"clock-icon",{key:0}):S("",!0),P.$slots["clock-icon"]?S("",!0):(u(),re(s(qn),{key:1}))],42,wp)),[[Na,!s(x)(P.hideNavigation,"time")]]):S("",!0),G(Lt,{name:s(y)(E.value),css:s(A)&&!P.timePickerInline},{default:D(()=>{var me;return[E.value||P.timePicker||P.timePickerInline?(u(),v("div",{key:0,ref_key:"overlayRef",ref:T,class:de({dp__overlay:!P.timePickerInline,"dp--overlay-absolute":!o.timePicker&&!P.timePickerInline,"dp--overlay-relative":o.timePicker}),style:it(P.timePicker?{height:`${s(p).modeHeight}px`}:void 0),tabindex:P.timePickerInline?void 0:0},[g("div",{class:de(P.timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[P.$slots["time-picker-overlay"]?$(P.$slots,"time-picker-overlay",{key:0,hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:q,setMinutes:F,setSeconds:I}):S("",!0),P.$slots["time-picker-overlay"]?S("",!0):(u(),v("div",{key:1,class:de(P.timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(u(!0),v(le,null,ye(R.value,(Z,m)=>ia((u(),re(bp,Ne({key:m},{...P.$props,order:m,hours:Z.hours,minutes:Z.minutes,seconds:Z.seconds,closeTimePickerBtn:te.value,disabledTimesConfig:e.disabledTimesConfig,disabled:m===0?P.fixedStart:P.fixedEnd},{ref_for:!0,ref_key:"timeInputRefs",ref:j,"validate-time":(c,w)=>e.validateTime(c,B(w,m,c)),"onUpdate:hours":c=>q(B(c,m,"hours")),"onUpdate:minutes":c=>F(B(c,m,"minutes")),"onUpdate:seconds":c=>I(B(c,m,"seconds")),onMounted:b,onOverlayClosed:b,onAmPmChange:U[3]||(U[3]=c=>P.$emit("am-pm-change",c))}),at({_:2},[ye(s(ie),(c,w)=>({name:c,fn:D(H=>[$(P.$slots,c,Ke(rt(H)))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[Na,m===0?!0:L.value]])),128))],2)),!P.timePicker&&!P.timePickerInline?ia((u(),v("button",{key:2,ref_key:"closeTimePickerBtn",ref:te,type:"button",class:de(K.value),"aria-label":(me=s(_))==null?void 0:me.closeTimePicker,tabindex:"0",onKeydown:[U[4]||(U[4]=we(Z=>z(!1),["enter"])),U[5]||(U[5]=we(Z=>z(!1),["space"]))],onClick:U[6]||(U[6]=Z=>z(!1))},[P.$slots["calendar-icon"]?$(P.$slots,"calendar-icon",{key:0}):S("",!0),P.$slots["calendar-icon"]?S("",!0):(u(),re(s(fa),{key:1}))],42,Dp)),[[Na,!s(x)(P.hideNavigation,"time")]]):S("",!0)],2)],14,$p)):S("",!0)]}),_:3},8,["name","css"])])}}}),Mr=(e,a,t,n)=>{const{defaultedRange:o}=We(e),r=(T,L)=>Array.isArray(a[T])?a[T][L]:a[T],l=T=>e.enableSeconds?Array.isArray(a.seconds)?a.seconds[T]:a.seconds:0,i=(T,L)=>T?L!==void 0?zt(T,r("hours",L),r("minutes",L),l(L)):zt(T,a.hours,a.minutes,l()):Fn(Q(),l(L)),d=(T,L)=>{a[T]=L},_=M(()=>e.modelAuto&&o.value.enabled?Array.isArray(t.value)?t.value.length>1:!1:o.value.enabled),f=(T,L)=>{const E=Object.fromEntries(Object.keys(a).map(X=>X===T?[X,L]:[X,a[X]].slice()));if(_.value&&!o.value.disableTimeRangeValidation){const X=z=>t.value?zt(t.value[z],E.hours[z],E.minutes[z],E.seconds[z]):null,R=z=>Hn(t.value[z],0);return!(Ce(X(0),X(1))&&(wa(X(0),R(1))||$a(X(1),R(0))))}return!0},p=(T,L)=>{f(T,L)&&(d(T,L),n&&n())},h=T=>{p("hours",T)},y=T=>{p("minutes",T)},A=T=>{p("seconds",T)},x=(T,L,E,X)=>{L&&h(T),!L&&!E&&y(T),E&&A(T),t.value&&X(t.value)},Y=T=>{if(T){const L=Array.isArray(T),E=L?[+T[0].hours,+T[1].hours]:+T.hours,X=L?[+T[0].minutes,+T[1].minutes]:+T.minutes,R=L?[+T[0].seconds,+T[1].seconds]:+T.seconds;d("hours",E),d("minutes",X),e.enableSeconds&&d("seconds",R)}},te=(T,L)=>{const E={hours:Array.isArray(a.hours)?a.hours[T]:a.hours,disabledArr:[]};return(L||L===0)&&(E.hours=L),Array.isArray(e.disabledTimes)&&(E.disabledArr=o.value.enabled&&Array.isArray(e.disabledTimes[T])?e.disabledTimes[T]:e.disabledTimes),E},j=M(()=>(T,L)=>{var E;if(Array.isArray(e.disabledTimes)){const{disabledArr:X,hours:R}=te(T,L),z=X.filter(K=>+K.hours===R);return((E=z[0])==null?void 0:E.minutes)==="*"?{hours:[R],minutes:void 0,seconds:void 0}:{hours:[],minutes:(z==null?void 0:z.map(K=>+K.minutes))??[],seconds:(z==null?void 0:z.map(K=>K.seconds?+K.seconds:void 0))??[]}}return{hours:[],minutes:[],seconds:[]}});return{setTime:d,updateHours:h,updateMinutes:y,updateSeconds:A,getSetDateTime:i,updateTimeValues:x,getSecondsValue:l,assignStartTime:Y,validateTime:f,disabledTimesConfig:j}},Pp=(e,a)=>{const{modelValue:t,time:n}=Ta(e,a),{defaultedStartTime:o,defaultedRange:r}=We(e),{updateTimeValues:l,getSetDateTime:i,setTime:d,assignStartTime:_,disabledTimesConfig:f,validateTime:p}=Mr(e,n,t),h=T=>{const{hours:L,minutes:E,seconds:X}=T;return{hours:+L,minutes:+E,seconds:X?+X:0}},y=()=>{if(e.startTime){if(Array.isArray(e.startTime)){const L=h(e.startTime[0]),E=h(e.startTime[1]);return[Be(Q(),L),Be(Q(),E)]}const T=h(e.startTime);return Be(Q(),T)}return r.value.enabled?[null,null]:null},A=()=>{if(r.value.enabled){const[T,L]=y();t.value=[i(T,0),i(L,1)]}else t.value=i(y())},x=T=>Array.isArray(T)?[ea(Q(T[0])),ea(Q(T[1]))]:[ea(T??Q())],Y=(T,L,E)=>{d("hours",T),d("minutes",L),d("seconds",e.enableSeconds?E:0)},te=()=>{const[T,L]=x(t.value);return r.value.enabled?Y([T.hours,L.hours],[T.minutes,L.minutes],[T.seconds,L.seconds]):Y(T.hours,T.minutes,T.seconds)};Ue(()=>{if(!e.shadow)return _(o.value),t.value?te():A()});const j=()=>{Array.isArray(t.value)?t.value=t.value.map((T,L)=>T&&i(T,L)):t.value=i(t.value),a("time-update")};return{modelValue:t,time:n,disabledTimesConfig:f,updateTime:(T,L=!0,E=!1)=>{l(T,L,E,j)},validateTime:p}},Mp=W({compatConfig:{MODE:3},__name:"TimePickerSolo",props:{...gt},emits:["update:internal-model-value","time-update","am-pm-change"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=Qt(),l=ut(r,"timePicker"),{time:i,modelValue:d,disabledTimesConfig:_,updateTime:f,validateTime:p}=Pp(o,n);return a({getSidebarProps:()=>({modelValue:d,time:i,updateTime:f})}),(h,y)=>(u(),re(ja,{"multi-calendars":0,stretch:""},{default:D(()=>[G(Pr,Ne(h.$props,{hours:s(i).hours,minutes:s(i).minutes,seconds:s(i).seconds,"internal-model-value":h.internalModelValue,"disabled-times-config":s(_),"validate-time":s(p),"onUpdate:hours":y[0]||(y[0]=A=>s(f)(A)),"onUpdate:minutes":y[1]||(y[1]=A=>s(f)(A,!1)),"onUpdate:seconds":y[2]||(y[2]=A=>s(f)(A,!1,!0)),onAmPmChange:y[3]||(y[3]=A=>h.$emit("am-pm-change",A))}),at({_:2},[ye(s(l),(A,x)=>({name:A,fn:D(Y=>[$(h.$slots,A,Ke(rt(Y)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"])]),_:3}))}}),xp={class:"dp__month_year_row"},Tp=["aria-label","onClick","onKeydown"],Sp=W({compatConfig:{MODE:3},__name:"DpHeader",props:{month:{type:Number,default:0},year:{type:Number,default:0},instance:{type:Number,default:0},years:{type:Array,default:()=>[]},months:{type:Array,default:()=>[]},...gt},emits:["update-month-year","mount","reset-flow","overlay-closed"],setup(e,{expose:a,emit:t}){const n=t,o=e,{defaultedTransitions:r,defaultedAriaLabels:l,defaultedMultiCalendars:i,defaultedFilters:d,defaultedConfig:_,defaultedHighlight:f,propDates:p}=We(o),{transitionName:h,showTransition:y}=xa(r),{buildMatrix:A}=Gt(),{handleMonthYearChange:x,isDisabled:Y,updateMonthYear:te}=Ev(o,n),{showLeftIcon:j,showRightIcon:T}=Qa(),L=C(!1),E=C(!1),X=C([null,null,null,null]);Ue(()=>{n("mount")});const R=m=>({get:()=>o[m],set:c=>{const w=m===ft.month?ft.year:ft.month;n("update-month-year",{[m]:c,[w]:o[w]}),m===ft.month?b(!0):P(!0)}}),z=M(R(ft.month)),K=M(R(ft.year)),ie=M(()=>m=>({month:o.month,year:o.year,items:m===ft.month?o.months:o.years,instance:o.instance,updateMonthYear:te,toggle:m===ft.month?b:P})),B=M(()=>o.months.find(c=>c.value===o.month)||{text:"",value:0}),q=M(()=>ma(o.months,m=>{const c=o.month===m.value,w=Da(m.value,mr(o.year,p.value.minDate),vr(o.year,p.value.maxDate))||d.value.months.includes(m.value),H=gr(f.value,m.value,o.year);return{active:c,disabled:w,highlighted:H}})),F=M(()=>ma(o.years,m=>{const c=o.year===m.value,w=Da(m.value,va(p.value.minDate),va(p.value.maxDate))||d.value.years.includes(m.value),H=Kn(f.value,m.value);return{active:c,disabled:w,highlighted:H}})),I=(m,c)=>{c!==void 0?m.value=c:m.value=!m.value,m.value||n("overlay-closed")},b=(m=!1,c)=>{U(m),I(L,c)},P=(m=!1,c)=>{U(m),I(E,c)},U=m=>{m||n("reset-flow")},ce=(m,c)=>{o.arrowNavigation&&(X.value[c]=et(m),A(X.value,"monthYear"))},me=M(()=>{var m,c;return[{type:ft.month,index:1,toggle:b,modelValue:z.value,updateModelValue:w=>z.value=w,text:B.value.text,showSelectionGrid:L.value,items:q.value,ariaLabel:(m=l.value)==null?void 0:m.openMonthsOverlay},{type:ft.year,index:2,toggle:P,modelValue:K.value,updateModelValue:w=>K.value=w,text:o.year,showSelectionGrid:E.value,items:F.value,ariaLabel:(c=l.value)==null?void 0:c.openYearsOverlay}]}),Z=M(()=>o.disableYearSelect?[me.value[0]]:o.yearFirst?[...me.value].reverse():me.value);return a({toggleMonthPicker:b,toggleYearPicker:P,handleMonthYearChange:x}),(m,c)=>{var w,H,se;return u(),v("div",xp,[m.$slots["month-year"]?$(m.$slots,"month-year",Ke(Ne({key:0},{month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:s(te),handleMonthYearChange:s(x),instance:e.instance}))):(u(),v(le,{key:1},[s(j)(s(i),e.instance)&&!m.vertical?(u(),re(ka,{key:0,"aria-label":(w=s(l))==null?void 0:w.prevMonth,disabled:s(Y)(!1),onActivate:c[0]||(c[0]=V=>s(x)(!1,!0)),onSetRef:c[1]||(c[1]=V=>ce(V,0))},{default:D(()=>[m.$slots["arrow-left"]?$(m.$slots,"arrow-left",{key:0}):S("",!0),m.$slots["arrow-left"]?S("",!0):(u(),re(s(Wn),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),g("div",{class:de(["dp__month_year_wrap",{dp__year_disable_select:m.disableYearSelect}])},[(u(!0),v(le,null,ye(Z.value,(V,Se)=>(u(),v(le,{key:V.type},[g("button",{ref_for:!0,ref:Ve=>ce(Ve,Se+1),type:"button",class:"dp__btn dp__month_year_select",tabindex:"0","aria-label":V.ariaLabel,onClick:V.toggle,onKeydown:[we(Le(V.toggle,["prevent"]),["enter"]),we(Le(V.toggle,["prevent"]),["space"])]},[m.$slots[V.type]?$(m.$slots,V.type,{key:0,text:V.text,value:o[V.type]}):S("",!0),m.$slots[V.type]?S("",!0):(u(),v(le,{key:1},[Oe(oe(V.text),1)],64))],40,Tp),G(Lt,{name:s(h)(V.showSelectionGrid),css:s(y)},{default:D(()=>[V.showSelectionGrid?(u(),re(Sa,{key:0,items:V.items,"arrow-navigation":m.arrowNavigation,"hide-navigation":m.hideNavigation,"is-last":m.autoApply&&!s(_).keepActionRow,"skip-button-ref":!1,config:m.config,type:V.type,"header-refs":[],"esc-close":m.escClose,"menu-wrap-ref":m.menuWrapRef,"text-input":m.textInput,"aria-labels":m.ariaLabels,onSelected:V.updateModelValue,onToggle:V.toggle},at({"button-icon":D(()=>[m.$slots["calendar-icon"]?$(m.$slots,"calendar-icon",{key:0}):S("",!0),m.$slots["calendar-icon"]?S("",!0):(u(),re(s(fa),{key:1}))]),_:2},[m.$slots[`${V.type}-overlay-value`]?{name:"item",fn:D(({item:Ve})=>[$(m.$slots,`${V.type}-overlay-value`,{text:Ve.text,value:Ve.value})]),key:"0"}:void 0,m.$slots[`${V.type}-overlay`]?{name:"overlay",fn:D(()=>[$(m.$slots,`${V.type}-overlay`,Ke(rt(ie.value(V.type))))]),key:"1"}:void 0,m.$slots[`${V.type}-overlay-header`]?{name:"header",fn:D(()=>[$(m.$slots,`${V.type}-overlay-header`,{toggle:V.toggle})]),key:"2"}:void 0]),1032,["items","arrow-navigation","hide-navigation","is-last","config","type","esc-close","menu-wrap-ref","text-input","aria-labels","onSelected","onToggle"])):S("",!0)]),_:2},1032,["name","css"])],64))),128))],2),s(j)(s(i),e.instance)&&m.vertical?(u(),re(ka,{key:1,"aria-label":(H=s(l))==null?void 0:H.prevMonth,disabled:s(Y)(!1),onActivate:c[2]||(c[2]=V=>s(x)(!1,!0))},{default:D(()=>[m.$slots["arrow-up"]?$(m.$slots,"arrow-up",{key:0}):S("",!0),m.$slots["arrow-up"]?S("",!0):(u(),re(s(Un),{key:1}))]),_:3},8,["aria-label","disabled"])):S("",!0),s(T)(s(i),e.instance)?(u(),re(ka,{key:2,ref:"rightIcon",disabled:s(Y)(!0),"aria-label":(se=s(l))==null?void 0:se.nextMonth,onActivate:c[3]||(c[3]=V=>s(x)(!0,!0)),onSetRef:c[4]||(c[4]=V=>ce(V,m.disableYearSelect?2:3))},{default:D(()=>[m.$slots[m.vertical?"arrow-down":"arrow-right"]?$(m.$slots,m.vertical?"arrow-down":"arrow-right",{key:0}):S("",!0),m.$slots[m.vertical?"arrow-down":"arrow-right"]?S("",!0):(u(),re(Mt(m.vertical?s(Qn):s(zn)),{key:1}))]),_:3},8,["disabled","aria-label"])):S("",!0)],64))])}}}),Ap=["aria-label"],Cp={class:"dp__calendar_header",role:"row"},Vp={key:0,class:"dp__calendar_header_item",role:"gridcell"},Op=["aria-label"],Np=g("div",{class:"dp__calendar_header_separator"},null,-1),Rp=["aria-label"],Lp={key:0,role:"gridcell",class:"dp__calendar_item dp__week_num"},Yp={class:"dp__cell_inner"},Ip=["id","aria-selected","aria-disabled","aria-label","onClick","onKeydown","onMouseenter","onMouseleave"],Bp=W({compatConfig:{MODE:3},__name:"DpCalendar",props:{mappedDates:{type:Array,default:()=>[]},instance:{type:Number,default:0},month:{type:Number,default:0},year:{type:Number,default:0},...gt},emits:["select-date","set-hover-date","handle-scroll","mount","handle-swipe","handle-space","tooltip-open","tooltip-close"],setup(e,{expose:a,emit:t}){const n=t,o=e,{buildMultiLevelMatrix:r}=Gt(),{defaultedTransitions:l,defaultedConfig:i,defaultedAriaLabels:d,defaultedMultiCalendars:_,defaultedWeekNumbers:f}=We(o),p=C(null),h=C({bottom:"",left:"",transform:""}),y=C([]),A=C(null),x=C(!0),Y=C(""),te=C({startX:0,endX:0,startY:0,endY:0}),j=C([]),T=C({left:"50%"}),L=M(()=>o.calendar?o.calendar(o.mappedDates):o.mappedDates),E=M(()=>o.dayNames?Array.isArray(o.dayNames)?o.dayNames:o.dayNames(o.locale,+o.weekStart):iv(o.formatLocale,o.locale,+o.weekStart));Ue(()=>{n("mount",{cmp:"calendar",refs:y}),i.value.noSwipe||A.value&&(A.value.addEventListener("touchstart",P,{passive:!1}),A.value.addEventListener("touchend",U,{passive:!1}),A.value.addEventListener("touchmove",ce,{passive:!1})),o.monthChangeOnScroll&&A.value&&A.value.addEventListener("wheel",m,{passive:!1})});const X=V=>V?o.vertical?"vNext":"next":o.vertical?"vPrevious":"previous",R=(V,Se)=>{if(o.transitions){const Ve=dt(Ot(Q(),o.month,o.year));Y.value=Qe(dt(Ot(Q(),V,Se)),Ve)?l.value[X(!0)]:l.value[X(!1)],x.value=!1,Nt(()=>{x.value=!0})}},z=M(()=>({[o.calendarClassName]:!!o.calendarClassName})),K=M(()=>V=>{const Se=cv(V);return{dp__marker_dot:Se.type==="dot",dp__marker_line:Se.type==="line"}}),ie=M(()=>V=>Ce(V,p.value)),B=M(()=>({dp__calendar:!0,dp__calendar_next:_.value.count>0&&o.instance!==0})),q=M(()=>V=>o.hideOffsetDates?V.current:!0),F=V=>vt(V,"yyyy-MM-dd"),I=async(V,Se,Ve)=>{var O,pe;if(n("set-hover-date",V),(pe=(O=V.marker)==null?void 0:O.tooltip)!=null&&pe.length){const Me=et(y.value[Se][Ve]);if(Me){const{width:k,height:ee}=Me.getBoundingClientRect();p.value=V.value;let be={left:`${k/2}px`},De=-50;if(await Nt(),j.value[0]){const{left:He,width:ae}=j.value[0].getBoundingClientRect();He<0&&(be={left:"0"},De=0,T.value.left=`${k/2}px`),window.innerWidth{p.value&&(p.value=null,h.value=JSON.parse(JSON.stringify({bottom:"",left:"",transform:""})),n("tooltip-close",V.marker))},P=V=>{te.value.startX=V.changedTouches[0].screenX,te.value.startY=V.changedTouches[0].screenY},U=V=>{te.value.endX=V.changedTouches[0].screenX,te.value.endY=V.changedTouches[0].screenY,me()},ce=V=>{o.vertical&&!o.inline&&V.preventDefault()},me=()=>{const V=o.vertical?"Y":"X";Math.abs(te.value[`start${V}`]-te.value[`end${V}`])>10&&n("handle-swipe",te.value[`start${V}`]>te.value[`end${V}`]?"right":"left")},Z=(V,Se,Ve)=>{V&&(Array.isArray(y.value[Se])?y.value[Se][Ve]=V:y.value[Se]=[V]),o.arrowNavigation&&r(y.value,"calendar")},m=V=>{o.monthChangeOnScroll&&(V.preventDefault(),n("handle-scroll",V))},c=V=>f.value.type==="local"?Yn(V.value,{weekStartsOn:+o.weekStart}):f.value.type==="iso"?Rn(V.value):typeof f.value.type=="function"?f.value.type(V.value):"",w=V=>{const Se=V[0];return f.value.hideOnOffsetDates?V.some(Ve=>Ve.current)?c(Se):"":c(Se)},H=(V,Se)=>{Wt(V,i.value),n("select-date",Se)},se=V=>{Wt(V,i.value)};return a({triggerTransition:R}),(V,Se)=>{var Ve;return u(),v("div",{class:de(B.value)},[g("div",{ref_key:"calendarWrapRef",ref:A,role:"grid",class:de(z.value),"aria-label":(Ve=s(d))==null?void 0:Ve.calendarWrap},[g("div",Cp,[V.weekNumbers?(u(),v("div",Vp,oe(V.weekNumName),1)):S("",!0),(u(!0),v(le,null,ye(E.value,(O,pe)=>{var Me,k;return u(),v("div",{key:pe,class:"dp__calendar_header_item",role:"gridcell","aria-label":(k=(Me=s(d))==null?void 0:Me.weekDay)==null?void 0:k.call(Me,pe)},[V.$slots["calendar-header"]?$(V.$slots,"calendar-header",{key:0,day:O,index:pe}):S("",!0),V.$slots["calendar-header"]?S("",!0):(u(),v(le,{key:1},[Oe(oe(O),1)],64))],8,Op)}),128))]),Np,G(Lt,{name:Y.value,css:!!V.transitions},{default:D(()=>{var O;return[x.value?(u(),v("div",{key:0,class:"dp__calendar",role:"rowgroup","aria-label":((O=s(d))==null?void 0:O.calendarDays)||void 0},[(u(!0),v(le,null,ye(L.value,(pe,Me)=>(u(),v("div",{key:Me,class:"dp__calendar_row",role:"row"},[V.weekNumbers?(u(),v("div",Lp,[g("div",Yp,oe(w(pe.days)),1)])):S("",!0),(u(!0),v(le,null,ye(pe.days,(k,ee)=>{var be,De,He;return u(),v("div",{id:F(k.value),ref_for:!0,ref:ae=>Z(ae,Me,ee),key:ee+Me,role:"gridcell",class:"dp__calendar_item","aria-selected":(k.classData.dp__active_date||k.classData.dp__range_start||k.classData.dp__range_start)??void 0,"aria-disabled":k.classData.dp__cell_disabled||void 0,"aria-label":(De=(be=s(d))==null?void 0:be.day)==null?void 0:De.call(be,k),tabindex:"0",onClick:Le(ae=>H(ae,k),["prevent"]),onKeydown:[we(ae=>V.$emit("select-date",k),["enter"]),we(ae=>V.$emit("handle-space",k),["space"])],onMouseenter:ae=>I(k,Me,ee),onMouseleave:ae=>b(k)},[g("div",{class:de(["dp__cell_inner",k.classData])},[V.$slots.day&&q.value(k)?$(V.$slots,"day",{key:0,day:+k.text,date:k.value}):S("",!0),V.$slots.day?S("",!0):(u(),v(le,{key:1},[Oe(oe(k.text),1)],64)),k.marker&&q.value(k)?(u(),v(le,{key:2},[V.$slots.marker?$(V.$slots,"marker",{key:0,marker:k.marker,day:+k.text,date:k.value}):(u(),v("div",{key:1,class:de(K.value(k.marker)),style:it(k.marker.color?{backgroundColor:k.marker.color}:{})},null,6))],64)):S("",!0),ie.value(k.value)?(u(),v("div",{key:3,ref_for:!0,ref_key:"activeTooltip",ref:j,class:"dp__marker_tooltip",style:it(h.value)},[(He=k.marker)!=null&&He.tooltip?(u(),v("div",{key:0,class:"dp__tooltip_content",onClick:se},[(u(!0),v(le,null,ye(k.marker.tooltip,(ae,pt)=>(u(),v("div",{key:pt,class:"dp__tooltip_text"},[V.$slots["marker-tooltip"]?$(V.$slots,"marker-tooltip",{key:0,tooltip:ae,day:k.value}):S("",!0),V.$slots["marker-tooltip"]?S("",!0):(u(),v(le,{key:1},[g("div",{class:"dp__tooltip_mark",style:it(ae.color?{backgroundColor:ae.color}:{})},null,4),g("div",null,oe(ae.text),1)],64))]))),128)),g("div",{class:"dp__arrow_bottom_tp",style:it(T.value)},null,4)])):S("",!0)],4)):S("",!0)],2)],40,Ip)}),128))]))),128))],8,Rp)):S("",!0)]}),_:3},8,["name","css"])],10,Ap)],2)}}}),ko=e=>Array.isArray(e),Ep=(e,a,t,n)=>{const o=C([]),r=C(new Date),{modelValue:l,calendars:i,time:d}=Ta(e,a),{defaultedMultiCalendars:_,defaultedStartTime:f,defaultedRange:p,defaultedTz:h,propDates:y}=We(e),{validateMonthYearInRange:A,isDisabled:x,isDateRangeAllowed:Y,checkMinMaxRange:te}=jt(e),{updateTimeValues:j,getSetDateTime:T,setTime:L,assignStartTime:E,validateTime:X,disabledTimesConfig:R}=Mr(e,d,l,n),z=M(()=>N=>i.value[N]?i.value[N].month:0),K=M(()=>N=>i.value[N]?i.value[N].year:0),ie=(N,ne,he)=>{var Pe,J;i.value[N]||(i.value[N]={month:0,year:0}),i.value[N].month=ho(ne)?(Pe=i.value[N])==null?void 0:Pe.month:ne,i.value[N].year=ho(he)?(J=i.value[N])==null?void 0:J.year:he},B=()=>{e.autoApply&&a("select-date")};lt(l,(N,ne)=>{JSON.stringify(N)!==JSON.stringify(ne)&&I()},{deep:!0}),Ue(()=>{e.shadow||(l.value||(se(),f.value&&E(f.value)),I(!0),e.focusStartDate&&e.startDate&&se())});const q=M(()=>{var N;return(N=e.flow)!=null&&N.length&&!e.partialFlow?e.flowStep===e.flow.length:!0}),F=()=>{e.autoApply&&q.value&&a("auto-apply")},I=(N=!1)=>{if(l.value)return Array.isArray(l.value)?(o.value=l.value,m(N)):U(l.value,N);if(_.value.count&&N&&!e.startDate)return P(Q(),N)},b=()=>Array.isArray(l.value)&&p.value.enabled?$e(l.value[0])===$e(l.value[1]??l.value[0]):!1,P=(N,ne=!1)=>{if((!_.value.count||!_.value.static||ne)&&ie(0,$e(N),ke(N)),_.value.count&&(!_.value.solo||!l.value||b()))for(let he=1;he<_.value.count;he++){const Pe=Be(Q(),{month:z.value(he-1),year:K.value(he-1)}),J=Fo(Pe,{months:1});i.value[he]={month:$e(J),year:ke(J)}}},U=(N,ne)=>{P(N),L("hours",yt(N)),L("minutes",Tt(N)),L("seconds",da(N)),_.value.count&&ne&&H()},ce=N=>{if(_.value.count){if(_.value.solo)return 0;const ne=$e(N[0]),he=$e(N[1]);return Math.abs(he-ne)<_.value.count?0:1}return 1},me=(N,ne)=>{N[1]&&p.value.showLastInRange?P(N[ce(N)],ne):P(N[0],ne);const he=(Pe,J)=>[Pe(N[0]),N[1]?Pe(N[1]):d[J][1]];L("hours",he(yt,"hours")),L("minutes",he(Tt,"minutes")),L("seconds",he(da,"seconds"))},Z=(N,ne)=>{if((p.value.enabled||e.weekPicker)&&!e.multiDates)return me(N,ne);if(e.multiDates&&ne){const he=N[N.length-1];return U(he,ne)}},m=N=>{const ne=l.value;Z(ne,N),_.value.count&&_.value.solo&&H()},c=(N,ne)=>{const he=Be(Q(),{month:z.value(ne),year:K.value(ne)}),Pe=N<0?ct(he,1):Rt(he,1);A($e(Pe),ke(Pe),N<0,e.preventMinMaxNavigation)&&(ie(ne,$e(Pe),ke(Pe)),a("update-month-year",{instance:ne,month:$e(Pe),year:ke(Pe)}),_.value.count&&!_.value.solo&&w(ne),t())},w=N=>{for(let ne=N-1;ne>=0;ne--){const he=Rt(Be(Q(),{month:z.value(ne+1),year:K.value(ne+1)}),1);ie(ne,$e(he),ke(he))}for(let ne=N+1;ne<=_.value.count-1;ne++){const he=ct(Be(Q(),{month:z.value(ne-1),year:K.value(ne-1)}),1);ie(ne,$e(he),ke(he))}},H=()=>{if(Array.isArray(l.value)&&l.value.length===2){const N=Q(Q(l.value[1]?l.value[1]:ct(l.value[0],1))),[ne,he]=[$e(l.value[0]),ke(l.value[0])],[Pe,J]=[$e(l.value[1]),ke(l.value[1])];(ne!==Pe||ne===Pe&&he!==J)&&_.value.solo&&ie(1,$e(N),ke(N))}else l.value&&!Array.isArray(l.value)&&(ie(0,$e(l.value),ke(l.value)),P(Q()))},se=()=>{e.startDate&&(ie(0,$e(Q(e.startDate)),ke(Q(e.startDate))),_.value.count&&w(0))},V=(N,ne)=>{if(e.monthChangeOnScroll){const he=new Date().getTime()-r.value.getTime(),Pe=Math.abs(N.deltaY);let J=500;Pe>1&&(J=100),Pe>100&&(J=0),he>J&&(r.value=new Date,c(e.monthChangeOnScroll!=="inverse"?-N.deltaY:N.deltaY,ne))}},Se=(N,ne,he=!1)=>{e.monthChangeOnArrows&&e.vertical===he&&Ve(N,ne)},Ve=(N,ne)=>{c(N==="right"?-1:1,ne)},O=N=>{if(y.value.markers)return Ea(N.value,y.value.markers)},pe=(N,ne)=>{switch(e.sixWeeks===!0?"append":e.sixWeeks){case"prepend":return[!0,!1];case"center":return[N==0,!0];case"fair":return[N==0||ne>N,!0];case"append":return[!1,!1];default:return[!1,!1]}},Me=(N,ne,he,Pe)=>{if(e.sixWeeks&&N.length<6){const J=6-N.length,ge=(ne.getDay()+7-Pe)%7,_e=6-(he.getDay()+7-Pe)%7,[Ct,_t]=pe(ge,_e);for(let Xt=1;Xt<=J;Xt++)if(_t?!!(Xt%2)==Ct:Ct){const It=N[0].days[0],an=k(Ge(It.value,-7),$e(ne));N.unshift({days:an})}else{const It=N[N.length-1],an=It.days[It.days.length-1],Tr=k(Ge(an.value,1),$e(ne));N.push({days:Tr})}}return N},k=(N,ne)=>{const he=Q(N),Pe=[];for(let J=0;J<7;J++){const ge=Ge(he,J),_e=$e(ge)!==ne;Pe.push({text:e.hideOffsetDates&&_e?"":ge.getDate(),value:ge,current:!_e,classData:{}})}return Pe},ee=(N,ne)=>{const he=[],Pe=new Date(ne,N),J=new Date(ne,N+1,0),ge=e.weekStart,_e=St(Pe,{weekStartsOn:ge}),Ct=_t=>{const Xt=k(_t,N);if(he.push({days:Xt}),!he[he.length-1].days.some(It=>Ce(dt(It.value),dt(J)))){const It=Ge(_t,7);Ct(It)}};return Ct(_e),Me(he,Pe,J,ge)},be=N=>{const ne=zt(Q(N.value),d.hours,d.minutes,ha());a("date-update",ne),e.multiDates?Jn(ne,l,e.multiDatesLimit):l.value=ne,n(),Nt().then(()=>{F()})},De=N=>p.value.noDisabledRange?pr(o.value[0],N).some(ne=>x(ne)):!1,He=()=>{o.value=l.value?l.value.slice():[],o.value.length===2&&!(p.value.fixedStart||p.value.fixedEnd)&&(o.value=[])},ae=(N,ne)=>{const he=[Q(N.value),Ge(Q(N.value),+p.value.autoRange)];Y(he)?(ne&&pt(N.value),o.value=he):a("invalid-date",N.value)},pt=N=>{const ne=$e(Q(N)),he=ke(Q(N));if(ie(0,ne,he),_.value.count>0)for(let Pe=1;Pe<_.value.count;Pe++){const J=gv(Be(Q(N),{year:z.value(Pe-1),month:K.value(Pe-1)}));ie(Pe,J.month,J.year)}},st=N=>{if(De(N.value)||!te(N.value,l.value,p.value.fixedStart?0:1))return a("invalid-date",N.value);o.value=$r(Q(N.value),l,a,p)},Aa=(N,ne)=>{if(He(),p.value.autoRange)return ae(N,ne);if(p.value.fixedStart||p.value.fixedEnd)return st(N);o.value[0]?te(Q(N.value),l.value)&&!De(N.value)?ze(Q(N.value),Q(o.value[0]))?(o.value.unshift(Q(N.value)),a("range-end",o.value[0])):(o.value[1]=Q(N.value),a("range-end",o.value[1])):(e.autoApply&&a("auto-apply-invalid",N.value),a("invalid-date",N.value)):(o.value[0]=Q(N.value),a("range-start",o.value[0]))},ha=(N=!0)=>e.enableSeconds?Array.isArray(d.seconds)?N?d.seconds[0]:d.seconds[1]:d.seconds:0,ya=N=>{o.value[N]=zt(o.value[N],d.hours[N],d.minutes[N],ha(N!==1))},ga=()=>{var N,ne;o.value[0]&&o.value[1]&&+((N=o.value)==null?void 0:N[0])>+((ne=o.value)==null?void 0:ne[1])&&(o.value.reverse(),a("range-start",o.value[0]),a("range-end",o.value[1]))},mt=()=>{o.value.length&&(o.value[0]&&!o.value[1]?ya(0):(ya(0),ya(1),n()),ga(),l.value=o.value.slice(),Xa(o.value,a,e.autoApply,e.modelAuto))},Ka=(N,ne=!1)=>{if(x(N.value)||!N.current&&e.hideOffsetDates)return a("invalid-date",N.value);if(!p.value.enabled)return be(N);ko(d.hours)&&ko(d.minutes)&&!e.multiDates&&(Aa(N,ne),mt())},Ja=(N,ne)=>{var he;ie(N,ne.month,ne.year),_.value.count&&!_.value.solo&&w(N),a("update-month-year",{instance:N,month:ne.month,year:ne.year}),t(_.value.solo?N:void 0);const Pe=(he=e.flow)!=null&&he.length?e.flow[e.flowStep]:void 0;!ne.fromNav&&(Pe===bt.month||Pe===bt.year)&&n()},Ca=(N,ne)=>{wr({value:N,modelValue:l,range:p.value.enabled,timezone:ne?void 0:h.value.timezone}),B(),e.multiCalendars&&Nt().then(()=>I(!0))},Za=()=>{p.value.enabled?l.value&&Array.isArray(l.value)&&l.value[0]?l.value=ze(Q(),l.value[0])?[Q(),l.value[0]]:[l.value[0],Q()]:l.value=[Q()]:l.value=Q(),B()},en=()=>{if(Array.isArray(l.value))if(e.multiDates){const N=tn();l.value[l.value.length-1]=T(N)}else l.value=l.value.map((N,ne)=>N&&T(N,ne));else l.value=T(l.value);a("time-update")},tn=()=>Array.isArray(l.value)&&l.value.length?l.value[l.value.length-1]:null;return{calendars:i,modelValue:l,month:z,year:K,time:d,disabledTimesConfig:R,validateTime:X,getCalendarDays:ee,getMarker:O,handleScroll:V,handleSwipe:Ve,handleArrow:Se,selectDate:Ka,updateMonthYear:Ja,presetDate:Ca,selectCurrentDate:Za,updateTime:(N,ne=!0,he=!1)=>{j(N,ne,he,en)}}},Hp={key:0},Fp=W({__name:"DatePicker",props:{...gt},emits:["tooltip-open","tooltip-close","mount","update:internal-model-value","update-flow-step","reset-flow","auto-apply","focus-menu","select-date","range-start","range-end","invalid-fixed-range","time-update","am-pm-change","time-picker-open","time-picker-close","recalculate-position","update-month-year","auto-apply-invalid","date-update","invalid-date"],setup(e,{expose:a,emit:t}){const n=t,o=e,{calendars:r,month:l,year:i,modelValue:d,time:_,disabledTimesConfig:f,validateTime:p,getCalendarDays:h,getMarker:y,handleArrow:A,handleScroll:x,handleSwipe:Y,selectDate:te,updateMonthYear:j,presetDate:T,selectCurrentDate:L,updateTime:E}=Ep(o,n,me,Z),X=Qt(),{setHoverDate:R,getDayClassData:z,clearHoverDate:K}=zv(d,o),{defaultedMultiCalendars:ie}=We(o),B=C([]),q=C([]),F=C(null),I=ut(X,"calendar"),b=ut(X,"monthYear"),P=ut(X,"timePicker"),U=c=>{o.shadow||n("mount",c)};lt(r,()=>{o.shadow||setTimeout(()=>{n("recalculate-position")},0)},{deep:!0});const ce=M(()=>c=>h(l.value(c),i.value(c)).map(w=>({...w,days:w.days.map(H=>(H.marker=y(H),H.classData=z(H),H))})));function me(c){var w;c||c===0?(w=q.value[c])==null||w.triggerTransition(l.value(c),i.value(c)):q.value.forEach((H,se)=>H.triggerTransition(l.value(se),i.value(se)))}function Z(){n("update-flow-step")}const m=(c,w=!1)=>{te(c,w),o.spaceConfirm&&n("select-date")};return a({clearHoverDate:K,presetDate:T,selectCurrentDate:L,toggleMonthPicker:(c,w,H=0)=>{var se;(se=B.value[H])==null||se.toggleMonthPicker(c,w)},toggleYearPicker:(c,w,H=0)=>{var se;(se=B.value[H])==null||se.toggleYearPicker(c,w)},toggleTimePicker:(c,w,H)=>{var se;(se=F.value)==null||se.toggleTimePicker(c,w,H)},handleArrow:A,updateMonthYear:j,getSidebarProps:()=>({modelValue:d,month:l,year:i,time:_,updateTime:E,updateMonthYear:j,selectDate:te,presetDate:T})}),(c,w)=>(u(),v(le,null,[G(ja,{"multi-calendars":s(ie).count,collapse:c.collapse},{default:D(({instance:H,index:se})=>[c.disableMonthYearSelect?S("",!0):(u(),re(Sp,Ne({key:0,ref:V=>{V&&(B.value[se]=V)},months:s(ur)(c.formatLocale,c.locale,c.monthNameFormat),years:s(Gn)(c.yearRange,c.reverseYears),month:s(l)(H),year:s(i)(H),instance:H},c.$props,{onMount:w[0]||(w[0]=V=>U(s(ta).header)),onResetFlow:w[1]||(w[1]=V=>c.$emit("reset-flow")),onUpdateMonthYear:V=>s(j)(H,V),onOverlayClosed:w[2]||(w[2]=V=>c.$emit("focus-menu"))}),at({_:2},[ye(s(b),(V,Se)=>({name:V,fn:D(Ve=>[$(c.$slots,V,Ke(rt(Ve)))])}))]),1040,["months","years","month","year","instance","onUpdateMonthYear"])),G(Bp,Ne({ref:V=>{V&&(q.value[se]=V)},"mapped-dates":ce.value(H),month:s(l)(H),year:s(i)(H),instance:H},c.$props,{onSelectDate:V=>s(te)(V,H!==1),onHandleSpace:V=>m(V,H!==1),onSetHoverDate:w[3]||(w[3]=V=>s(R)(V)),onHandleScroll:V=>s(x)(V,H),onHandleSwipe:V=>s(Y)(V,H),onMount:w[4]||(w[4]=V=>U(s(ta).calendar)),onResetFlow:w[5]||(w[5]=V=>c.$emit("reset-flow")),onTooltipOpen:w[6]||(w[6]=V=>c.$emit("tooltip-open",V)),onTooltipClose:w[7]||(w[7]=V=>c.$emit("tooltip-close",V))}),at({_:2},[ye(s(I),(V,Se)=>({name:V,fn:D(Ve=>[$(c.$slots,V,Ke(rt({...Ve})))])}))]),1040,["mapped-dates","month","year","instance","onSelectDate","onHandleSpace","onHandleScroll","onHandleSwipe"])]),_:3},8,["multi-calendars","collapse"]),c.enableTimePicker?(u(),v("div",Hp,[c.$slots["time-picker"]?$(c.$slots,"time-picker",Ke(Ne({key:0},{time:s(_),updateTime:s(E)}))):(u(),re(Pr,Ne({key:1,ref_key:"timePickerRef",ref:F},c.$props,{hours:s(_).hours,minutes:s(_).minutes,seconds:s(_).seconds,"internal-model-value":c.internalModelValue,"disabled-times-config":s(f),"validate-time":s(p),onMount:w[8]||(w[8]=H=>U(s(ta).timePicker)),"onUpdate:hours":w[9]||(w[9]=H=>s(E)(H)),"onUpdate:minutes":w[10]||(w[10]=H=>s(E)(H,!1)),"onUpdate:seconds":w[11]||(w[11]=H=>s(E)(H,!1,!0)),onResetFlow:w[12]||(w[12]=H=>c.$emit("reset-flow")),onOverlayClosed:w[13]||(w[13]=H=>c.$emit("time-picker-close")),onOverlayOpened:w[14]||(w[14]=H=>c.$emit("time-picker-open",H)),onAmPmChange:w[15]||(w[15]=H=>c.$emit("am-pm-change",H))}),at({_:2},[ye(s(P),(H,se)=>({name:H,fn:D(V=>[$(c.$slots,H,Ke(rt(V)))])}))]),1040,["hours","minutes","seconds","internal-model-value","disabled-times-config","validate-time"]))])):S("",!0)],64))}}),Wp=(e,a)=>{const t=C(),{defaultedMultiCalendars:n,defaultedConfig:o,defaultedHighlight:r,defaultedRange:l,propDates:i}=We(e),{modelValue:d,year:_,month:f,calendars:p}=Ta(e,a),{isDisabled:h}=jt(e),{selectYear:y,groupedYears:A,showYearPicker:x,isDisabled:Y,toggleYearPicker:te,handleYearSelect:j,handleYear:T}=Dr({modelValue:d,multiCalendars:n,highlight:r,calendars:p,propDates:i,month:f,year:_,props:e,emit:a}),L=(F,I)=>[F,I].map(b=>vt(b,"MMMM",{locale:e.formatLocale})).join("-"),E=M(()=>F=>d.value?Array.isArray(d.value)?d.value.some(I=>vo(F,I)):vo(d.value,F):!1),X=F=>{if(l.value.enabled){if(Array.isArray(d.value)){const I=Ce(F,d.value[0])||Ce(F,d.value[1]);return Ua(d.value,t.value,F)&&!I}return!1}return!1},R=(F,I)=>F.quarter===oo(I)&&F.year===ke(I),z=F=>typeof r.value=="function"?r.value({quarter:oo(F),year:ke(F)}):!!r.value.quarters.find(I=>R(I,F)),K=M(()=>F=>{const I=Be(new Date,{year:_.value(F)});return hd({start:Nn(I),end:Go(I)}).map(b=>{const P=Ht(b),U=so(b),ce=h(b),me=X(P),Z=z(P);return{text:L(P,U),value:P,active:E.value(P),highlighted:Z,disabled:ce,isBetween:me}})}),ie=F=>{Jn(F,d,e.multiDatesLimit),a("auto-apply",!0)},B=F=>{d.value=Zn(d,F,a),Xa(d.value,a,e.autoApply,e.modelAuto)},q=F=>{d.value=F,a("auto-apply")};return{defaultedConfig:o,defaultedMultiCalendars:n,groupedYears:A,year:_,isDisabled:Y,quarters:K,showYearPicker:x,modelValue:d,setHoverDate:F=>{t.value=F},selectYear:y,selectQuarter:(F,I,b)=>{if(!b)return p.value[I].month=$e(so(F)),e.multiDates?ie(F):l.value.enabled?B(F):q(F)},toggleYearPicker:te,handleYearSelect:j,handleYear:T}},zp={class:"dp--quarter-items"},qp=["disabled","onClick","onMouseover"],Up=W({compatConfig:{MODE:3},__name:"QuarterPicker",props:{...gt},emits:["update:internal-model-value","reset-flow","overlay-closed","auto-apply","range-start","range-end"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=Qt(),l=ut(r,"yearMode"),{defaultedMultiCalendars:i,defaultedConfig:d,groupedYears:_,year:f,isDisabled:p,quarters:h,modelValue:y,showYearPicker:A,setHoverDate:x,selectQuarter:Y,toggleYearPicker:te,handleYearSelect:j,handleYear:T}=Wp(o,n);return a({getSidebarProps:()=>({modelValue:y,year:f,selectQuarter:Y,handleYearSelect:j,handleYear:T})}),(L,E)=>(u(),re(ja,{"multi-calendars":s(i).count,collapse:L.collapse,stretch:""},{default:D(({instance:X})=>[g("div",{class:"dp-quarter-picker-wrap",style:it({minHeight:`${s(d).modeHeight}px`})},[g("div",null,[G(kr,Ne(L.$props,{items:s(_)(X),instance:X,"show-year-picker":s(A)[X],year:s(f)(X),"is-disabled":R=>s(p)(X,R),onHandleYear:R=>s(T)(X,R),onYearSelect:R=>s(j)(R,X),onToggleYearPicker:R=>s(te)(X,R==null?void 0:R.flow,R==null?void 0:R.show)}),at({_:2},[ye(s(l),(R,z)=>({name:R,fn:D(K=>[$(L.$slots,R,Ke(rt(K)))])}))]),1040,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),g("div",zp,[(u(!0),v(le,null,ye(s(h)(X),(R,z)=>(u(),v("div",{key:z},[g("button",{type:"button",class:de(["dp--qr-btn",{"dp--qr-btn-active":R.active,"dp--qr-btn-between":R.isBetween,"dp--qr-btn-disabled":R.disabled,"dp--highlighted":R.highlighted}]),disabled:R.disabled,onClick:K=>s(Y)(R.value,X,R.disabled),onMouseover:K=>s(x)(R.value)},[L.$slots.quarter?$(L.$slots,"quarter",{key:0,value:R.value,text:R.text}):(u(),v(le,{key:1},[Oe(oe(R.text),1)],64))],42,qp)]))),128))])],4)]),_:3},8,["multi-calendars","collapse"]))}}),Qp=["id","aria-label"],Gp={key:0,class:"dp--menu-load-container"},jp=g("span",{class:"dp--menu-loader"},null,-1),Xp=[jp],Kp={key:0,class:"dp__sidebar_left"},Jp=["onClick","onKeydown"],Zp={key:2,class:"dp__sidebar_right"},ef={key:3,class:"dp__action_extra"},wo=W({compatConfig:{MODE:3},__name:"DatepickerMenu",props:{...Ga,shadow:{type:Boolean,default:!1},openOnTop:{type:Boolean,default:!1},internalModelValue:{type:[Date,Array],default:null},noOverlayFocus:{type:Boolean,default:!1},collapse:{type:Boolean,default:!1}},emits:["close-picker","select-date","auto-apply","time-update","flow-step","update-month-year","invalid-select","update:internal-model-value","recalculate-position","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","auto-apply-invalid","date-update","invalid-date"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=C(null),l=M(()=>{const{openOnTop:k,...ee}=o;return{...ee,flowStep:z.value,collapse:o.collapse,noOverlayFocus:o.noOverlayFocus,menuWrapRef:r.value}}),{setMenuFocused:i,setShiftKey:d,control:_}=_r(),f=Qt(),{defaultedTextInput:p,defaultedInline:h,defaultedConfig:y}=We(o),A=C(null),x=C(0),Y=C(null),te=C(!1),j=C(null);Ue(()=>{if(!o.shadow){te.value=!0,T(),window.addEventListener("resize",T);const k=et(r);if(k&&!p.value.enabled&&!h.value.enabled&&(i(!0),F()),k){const ee=be=>{y.value.allowPreventDefault&&be.preventDefault(),Wt(be,y.value,!0)};k.addEventListener("pointerdown",ee),k.addEventListener("mousedown",ee)}}}),Ut(()=>{window.removeEventListener("resize",T)});const T=()=>{const k=et(Y);k&&(x.value=k.getBoundingClientRect().width)},{arrowRight:L,arrowLeft:E,arrowDown:X,arrowUp:R}=Gt(),{flowStep:z,updateFlowStep:K,childMount:ie,resetFlow:B}=qv(o,n,j),q=M(()=>o.monthPicker?sp:o.yearPicker?up:o.timePicker?Mp:o.quarterPicker?Up:Fp),F=()=>{const k=et(r);k&&k.focus({preventScroll:!0})},I=M(()=>{var k;return((k=j.value)==null?void 0:k.getSidebarProps())||{}}),b=()=>{o.openOnTop&&n("recalculate-position")},P=ut(f,"action"),U=M(()=>o.monthPicker||o.yearPicker?ut(f,"monthYear"):o.timePicker?ut(f,"timePicker"):ut(f,"shared")),ce=M(()=>o.openOnTop?"dp__arrow_bottom":"dp__arrow_top"),me=M(()=>({dp__menu_disabled:o.disabled,dp__menu_readonly:o.readonly,"dp-menu-loading":o.loading})),Z=M(()=>({dp__menu:!0,dp__menu_index:!h.value.enabled,dp__relative:h.value.enabled,[o.menuClassName]:!!o.menuClassName})),m=k=>{Wt(k,y.value,!0)},c=()=>{o.escClose&&n("close-picker")},w=k=>{if(o.arrowNavigation){if(k==="up")return R();if(k==="down")return X();if(k==="left")return E();if(k==="right")return L()}else k==="left"||k==="up"?Ve("handleArrow","left",0,k==="up"):Ve("handleArrow","right",0,k==="down")},H=k=>{d(k.shiftKey),!o.disableMonthYearSelect&&k.code==="Tab"&&k.target.classList.contains("dp__menu")&&_.value.shiftKeyInMenu&&(k.preventDefault(),Wt(k,y.value,!0),n("close-picker"))},se=()=>{F(),n("time-picker-close")},V=k=>{var ee,be,De;(ee=j.value)==null||ee.toggleTimePicker(!1,!1),(be=j.value)==null||be.toggleMonthPicker(!1,!1,k),(De=j.value)==null||De.toggleYearPicker(!1,!1,k)},Se=(k,ee=0)=>{var be,De,He;return k==="month"?(be=j.value)==null?void 0:be.toggleMonthPicker(!1,!0,ee):k==="year"?(De=j.value)==null?void 0:De.toggleYearPicker(!1,!0,ee):k==="time"?(He=j.value)==null?void 0:He.toggleTimePicker(!0,!1):V(ee)},Ve=(k,...ee)=>{var be,De;(be=j.value)!=null&&be[k]&&((De=j.value)==null||De[k](...ee))},O=()=>{Ve("selectCurrentDate")},pe=(k,ee)=>{Ve("presetDate",k,ee)},Me=()=>{Ve("clearHoverDate")};return a({updateMonthYear:(k,ee)=>{Ve("updateMonthYear",k,ee)},switchView:Se}),(k,ee)=>{var be,De,He;return u(),v("div",{id:k.uid?`dp-menu-${k.uid}`:void 0,ref_key:"dpMenuRef",ref:r,tabindex:"0",role:"dialog","aria-label":(be=k.ariaLabels)==null?void 0:be.menu,class:de(Z.value),onMouseleave:Me,onClick:m,onKeydown:[we(c,["esc"]),ee[18]||(ee[18]=we(Le(ae=>w("left"),["prevent"]),["left"])),ee[19]||(ee[19]=we(Le(ae=>w("up"),["prevent"]),["up"])),ee[20]||(ee[20]=we(Le(ae=>w("down"),["prevent"]),["down"])),ee[21]||(ee[21]=we(Le(ae=>w("right"),["prevent"]),["right"])),H]},[(k.disabled||k.readonly)&&s(h).enabled||k.loading?(u(),v("div",{key:0,class:de(me.value)},[k.loading?(u(),v("div",Gp,Xp)):S("",!0)],2)):S("",!0),!s(h).enabled&&!k.teleportCenter?(u(),v("div",{key:1,class:de(ce.value)},null,2)):S("",!0),g("div",{ref_key:"innerMenuRef",ref:Y,class:de({dp__menu_content_wrapper:((De=k.presetDates)==null?void 0:De.length)||!!k.$slots["left-sidebar"]||!!k.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&((He=k.presetDates)==null?void 0:He.length)||!!k.$slots["left-sidebar"]||!!k.$slots["right-sidebar"]}),style:it({"--dp-menu-width":`${x.value}px`})},[k.$slots["left-sidebar"]?(u(),v("div",Kp,[$(k.$slots,"left-sidebar",Ke(rt(I.value)))])):S("",!0),k.presetDates.length?(u(),v("div",{key:1,class:de({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0})},[(u(!0),v(le,null,ye(k.presetDates,(ae,pt)=>(u(),v(le,{key:pt},[ae.slot?$(k.$slots,ae.slot,{key:0,presetDate:pe,label:ae.label,value:ae.value}):(u(),v("button",{key:1,type:"button",style:it(ae.style||{}),class:de(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),onClick:Le(st=>pe(ae.value,ae.noTz),["prevent"]),onKeydown:[we(Le(st=>pe(ae.value,ae.noTz),["prevent"]),["enter"]),we(Le(st=>pe(ae.value,ae.noTz),["prevent"]),["space"])]},oe(ae.label),47,Jp))],64))),128))],2)):S("",!0),g("div",{ref_key:"calendarWrapperRef",ref:A,class:"dp__instance_calendar",role:"document"},[(u(),re(Mt(q.value),Ne({ref_key:"dynCmpRef",ref:j},l.value,{"flow-step":s(z),onMount:s(ie),onUpdateFlowStep:s(K),onResetFlow:s(B),onFocusMenu:F,onSelectDate:ee[0]||(ee[0]=ae=>k.$emit("select-date")),onDateUpdate:ee[1]||(ee[1]=ae=>k.$emit("date-update",ae)),onTooltipOpen:ee[2]||(ee[2]=ae=>k.$emit("tooltip-open",ae)),onTooltipClose:ee[3]||(ee[3]=ae=>k.$emit("tooltip-close",ae)),onAutoApply:ee[4]||(ee[4]=ae=>k.$emit("auto-apply",ae)),onRangeStart:ee[5]||(ee[5]=ae=>k.$emit("range-start",ae)),onRangeEnd:ee[6]||(ee[6]=ae=>k.$emit("range-end",ae)),onInvalidFixedRange:ee[7]||(ee[7]=ae=>k.$emit("invalid-fixed-range",ae)),onTimeUpdate:ee[8]||(ee[8]=ae=>k.$emit("time-update")),onAmPmChange:ee[9]||(ee[9]=ae=>k.$emit("am-pm-change",ae)),onTimePickerOpen:ee[10]||(ee[10]=ae=>k.$emit("time-picker-open",ae)),onTimePickerClose:se,onRecalculatePosition:b,onUpdateMonthYear:ee[11]||(ee[11]=ae=>k.$emit("update-month-year",ae)),onAutoApplyInvalid:ee[12]||(ee[12]=ae=>k.$emit("auto-apply-invalid",ae)),onInvalidDate:ee[13]||(ee[13]=ae=>k.$emit("invalid-date",ae)),"onUpdate:internalModelValue":ee[14]||(ee[14]=ae=>k.$emit("update:internal-model-value",ae))}),at({_:2},[ye(U.value,(ae,pt)=>({name:ae,fn:D(st=>[$(k.$slots,ae,Ke(rt({...st})))])}))]),1040,["flow-step","onMount","onUpdateFlowStep","onResetFlow"]))],512),k.$slots["right-sidebar"]?(u(),v("div",Zp,[$(k.$slots,"right-sidebar",Ke(rt(I.value)))])):S("",!0),k.$slots["action-extra"]?(u(),v("div",ef,[k.$slots["action-extra"]?$(k.$slots,"action-extra",{key:0,selectCurrentDate:O}):S("",!0)])):S("",!0)],6),!k.autoApply||s(y).keepActionRow?(u(),re(Jv,Ne({key:2,"menu-mount":te.value},l.value,{"calendar-width":x.value,onClosePicker:ee[15]||(ee[15]=ae=>k.$emit("close-picker")),onSelectDate:ee[16]||(ee[16]=ae=>k.$emit("select-date")),onInvalidSelect:ee[17]||(ee[17]=ae=>k.$emit("invalid-select")),onSelectNow:O}),at({_:2},[ye(s(P),(ae,pt)=>({name:ae,fn:D(st=>[$(k.$slots,ae,Ke(rt({...st})))])}))]),1040,["menu-mount","calendar-width"])):S("",!0)],42,Qp)}}}),tf=typeof window<"u"?window:void 0,fn=()=>{},af=e=>Wr()?(zr(e),!0):!1,nf=(e,a,t,n)=>{if(!e)return fn;let o=fn;const r=lt(()=>s(e),i=>{o(),i&&(i.addEventListener(a,t,n),o=()=>{i.removeEventListener(a,t,n),o=fn})},{immediate:!0,flush:"post"}),l=()=>{r(),o()};return af(l),l},of=(e,a,t,n={})=>{const{window:o=tf,event:r="pointerdown"}=n;return o?nf(o,r,l=>{const i=et(e),d=et(a);!i||!d||i===l.target||l.composedPath().includes(i)||l.composedPath().includes(d)||t(l)},{passive:!0}):void 0},rf=W({compatConfig:{MODE:3},__name:"VueDatePicker",props:{...Ga},emits:["update:model-value","update:model-timezone-value","text-submit","closed","cleared","open","focus","blur","internal-model-change","recalculate-position","flow-step","update-month-year","invalid-select","invalid-fixed-range","tooltip-open","tooltip-close","time-picker-open","time-picker-close","am-pm-change","range-start","range-end","date-update","invalid-date"],setup(e,{expose:a,emit:t}){const n=t,o=e,r=Qt(),l=C(!1),i=La(o,"modelValue"),d=La(o,"timezone"),_=C(null),f=C(null),p=C(null),h=C(!1),y=C(null),A=C(!1),x=C(!1),Y=C(!1),{setMenuFocused:te,setShiftKey:j}=_r(),{clearArrowNav:T}=Gt(),{validateDate:L,isValidTime:E}=jt(o),{defaultedTransitions:X,defaultedTextInput:R,defaultedInline:z,defaultedConfig:K,defaultedRange:ie}=We(o),{menuTransition:B,showTransition:q}=xa(X);Ue(()=>{w(o.modelValue),Nt().then(()=>{if(!z.value.enabled){const J=me(y.value);J==null||J.addEventListener("scroll",k),window==null||window.addEventListener("resize",ee)}}),z.value.enabled&&(l.value=!0),window==null||window.addEventListener("keyup",be),window==null||window.addEventListener("keydown",De)}),Ut(()=>{if(!z.value.enabled){const J=me(y.value);J==null||J.removeEventListener("scroll",k),window==null||window.removeEventListener("resize",ee)}window==null||window.removeEventListener("keyup",be),window==null||window.removeEventListener("keydown",De)});const F=ut(r,"all",o.presetDates),I=ut(r,"input");lt([i,d],()=>{w(i.value)},{deep:!0});const{openOnTop:b,menuStyle:P,xCorrect:U,setMenuPosition:ce,getScrollableParent:me,shadowRender:Z}=Hv({menuRef:_,menuRefInner:f,inputRef:p,pickerWrapperRef:y,inline:z,emit:n,props:o,slots:r}),{inputValue:m,internalModelValue:c,parseExternalModelValue:w,emitModelValue:H,formatInputValue:se,checkBeforeEmit:V}=Bv(n,o,h),Se=M(()=>({dp__main:!0,dp__theme_dark:o.dark,dp__theme_light:!o.dark,dp__flex_display:z.value.enabled,"dp--flex-display-collapsed":Y.value,dp__flex_display_with_input:z.value.input})),Ve=M(()=>o.dark?"dp__theme_dark":"dp__theme_light"),O=M(()=>({to:typeof o.teleport=="boolean"?"body":o.teleport,disabled:!o.teleport||z.value.enabled})),pe=M(()=>({class:"dp__outer_menu_wrap"})),Me=M(()=>z.value.enabled&&(o.timePicker||o.monthPicker||o.yearPicker||o.quarterPicker)),k=()=>{l.value&&(K.value.closeOnScroll?mt():ce())},ee=()=>{var J;l.value&&ce();const ge=(J=f.value)==null?void 0:J.$el.getBoundingClientRect().width;Y.value=document.body.offsetWidth<=ge},be=J=>{J.key==="Tab"&&!z.value.enabled&&!o.teleport&&K.value.tabOutClosesMenu&&(y.value.contains(document.activeElement)||mt()),x.value=J.shiftKey},De=J=>{x.value=J.shiftKey},He=()=>{!o.disabled&&!o.readonly&&(Z(wo,o),ce(!1),l.value=!0,l.value&&n("open"),l.value||ga(),w(o.modelValue))},ae=()=>{var J;m.value="",ga(),(J=p.value)==null||J.setParsedDate(null),n("update:model-value",null),n("update:model-timezone-value",null),n("cleared"),K.value.closeOnClearValue&&mt()},pt=()=>{const J=c.value;return!J||!Array.isArray(J)&&L(J)?!0:Array.isArray(J)?o.multiDates||J.length===2&&L(J[0])&&L(J[1])?!0:ie.value.partialRange&&!o.timePicker?L(J[0]):!1:!1},st=()=>{V()&&pt()?(H(),mt()):n("invalid-select",c.value)},Aa=J=>{ha(),H(),K.value.closeOnAutoApply&&!J&&mt()},ha=()=>{p.value&&R.value.enabled&&p.value.setParsedDate(c.value)},ya=(J=!1)=>{o.autoApply&&E(c.value)&&pt()&&(ie.value.enabled&&Array.isArray(c.value)?(ie.value.partialRange||c.value.length===2)&&Aa(J):Aa(J))},ga=()=>{R.value.enabled||(c.value=null)},mt=()=>{z.value.enabled||(l.value&&(l.value=!1,U.value=!1,te(!1),j(!1),T(),n("closed"),m.value&&w(i.value)),ga(),n("blur"))},Ka=(J,ge,_e=!1)=>{if(!J){c.value=null;return}const Ct=Array.isArray(J)?!J.some(Xt=>!L(Xt)):L(J),_t=E(J);Ct&&_t&&(c.value=J,ge&&(A.value=_e,st(),n("text-submit")))},Ja=()=>{o.autoApply&&E(c.value)&&H(),ha()},Ca=()=>l.value?mt():He(),Za=J=>{c.value=J},en=()=>{R.value.enabled&&(h.value=!0,se()),n("focus")},tn=()=>{if(R.value.enabled&&(h.value=!1,w(o.modelValue),A.value)){const J=vv(y.value,x.value);J==null||J.focus()}n("blur")},N=J=>{f.value&&f.value.updateMonthYear(0,{month:fo(J.month),year:fo(J.year)})},ne=J=>{w(J??o.modelValue)},he=(J,ge)=>{var _e;(_e=f.value)==null||_e.switchView(J,ge)},Pe=J=>K.value.onClickOutside?K.value.onClickOutside(J):mt();return of(_,p,()=>Pe(pt)),a({closeMenu:mt,selectDate:st,clearValue:ae,openMenu:He,onScroll:k,formatInputValue:se,updateInternalModelValue:Za,setMonthYear:N,parseModel:ne,switchView:he,toggleMenu:Ca}),(J,ge)=>(u(),v("div",{ref_key:"pickerWrapperRef",ref:y,class:de(Se.value),"data-datepicker-instance":""},[G(jv,Ne({ref_key:"inputRef",ref:p,"input-value":s(m),"onUpdate:inputValue":ge[0]||(ge[0]=_e=>eo(m)?m.value=_e:null),"is-menu-open":l.value},J.$props,{onClear:ae,onOpen:He,onSetInputDate:Ka,onSetEmptyDate:s(H),onSelectDate:st,onToggle:Ca,onClose:mt,onFocus:en,onBlur:tn,onRealBlur:ge[1]||(ge[1]=_e=>h.value=!1)}),at({_:2},[ye(s(I),(_e,Ct)=>({name:_e,fn:D(_t=>[$(J.$slots,_e,Ke(rt(_t)))])}))]),1040,["input-value","is-menu-open","onSetEmptyDate"]),(u(),re(Mt(J.teleport?Er:"div"),Ke(rt(O.value)),{default:D(()=>[G(Lt,{name:s(B)(s(b)),css:s(q)&&!s(z).enabled},{default:D(()=>[l.value?(u(),v("div",Ne({key:0,ref_key:"dpWrapMenuRef",ref:_},pe.value,{class:{"dp--menu-wrapper":!s(z).enabled},style:s(z).enabled?void 0:s(P)}),[G(wo,Ne({ref_key:"dpMenuRef",ref:f},J.$props,{"internal-model-value":s(c),"onUpdate:internalModelValue":ge[2]||(ge[2]=_e=>eo(c)?c.value=_e:null),class:{[Ve.value]:!0,"dp--menu-wrapper":J.teleport},"open-on-top":s(b),"no-overlay-focus":Me.value,collapse:Y.value,onClosePicker:mt,onSelectDate:st,onAutoApply:ya,onTimeUpdate:Ja,onFlowStep:ge[3]||(ge[3]=_e=>J.$emit("flow-step",_e)),onUpdateMonthYear:ge[4]||(ge[4]=_e=>J.$emit("update-month-year",_e)),onInvalidSelect:ge[5]||(ge[5]=_e=>J.$emit("invalid-select",s(c))),onAutoApplyInvalid:ge[6]||(ge[6]=_e=>J.$emit("invalid-select",_e)),onInvalidFixedRange:ge[7]||(ge[7]=_e=>J.$emit("invalid-fixed-range",_e)),onRecalculatePosition:s(ce),onTooltipOpen:ge[8]||(ge[8]=_e=>J.$emit("tooltip-open",_e)),onTooltipClose:ge[9]||(ge[9]=_e=>J.$emit("tooltip-close",_e)),onTimePickerOpen:ge[10]||(ge[10]=_e=>J.$emit("time-picker-open",_e)),onTimePickerClose:ge[11]||(ge[11]=_e=>J.$emit("time-picker-close",_e)),onAmPmChange:ge[12]||(ge[12]=_e=>J.$emit("am-pm-change",_e)),onRangeStart:ge[13]||(ge[13]=_e=>J.$emit("range-start",_e)),onRangeEnd:ge[14]||(ge[14]=_e=>J.$emit("range-end",_e)),onDateUpdate:ge[15]||(ge[15]=_e=>J.$emit("date-update",_e)),onInvalidDate:ge[16]||(ge[16]=_e=>J.$emit("invalid-date",_e))}),at({_:2},[ye(s(F),(_e,Ct)=>({name:_e,fn:D(_t=>[$(J.$slots,_e,Ke(rt({..._t})))])}))]),1040,["internal-model-value","class","open-on-top","no-overlay-focus","collapse","onRecalculatePosition"])],16)):S("",!0)]),_:3},8,["name","css"])]),_:3},16))],2))}}),Te=(()=>{const e=rf;return e.install=a=>{a.component("Vue3DatePicker",e)},e})(),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));Object.entries(lf).forEach(([e,a])=>{e!=="default"&&(Te[e]=a)});const sf={class:"demo-wrap"},uf={class:"action-row"},cf={class:"current-selection"},df=["onClick"],mf=W({__name:"ActionRowSlotDemo",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=o=>vt(o,"dd.MM.yyyy, HH:mm");return(o,r)=>(u(),v("div",sf,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t)},{"action-row":D(({internalModelValue:l,selectDate:i})=>[g("div",uf,[g("p",cf,oe(n(l)),1),g("button",{class:"select-button",onClick:i},"Select Date",8,df)])]),_:1},8,["modelValue","dark"])]))}}),vf={class:"demo-wrap"},pf=W({__name:"CustomCalendarDemo",props:{},setup(e){const{isDark:a}=Ae(),t=C(),n=o=>o.filter(r=>r.days.some(l=>l.text===15)).map(r=>({...r,days:r.days.map(l=>(l.classData["custom-class"]=!0,l))}));return(o,r)=>(u(),v("div",vf,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l)},o.$props,{dark:s(a),calendar:n,placeholder:"Select Date"}),null,16,["modelValue","dark"])]))}}),ff={class:"demo-wrap"},hf=W({__name:"DarkDemo",props:["placeholder"],setup(e){const a=C(new Date);return(t,n)=>(u(),v("div",ff,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=o=>a.value=o),placeholder:e.placeholder,dark:""},null,8,["modelValue","placeholder"])]))}}),yf={class:"demo-wrap"},gf=W({__name:"DemoDayClass",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=o=>Zt(o,Ge(Be(new Date,{hours:0,minutes:0,seconds:0,milliseconds:0}),1))?"marked-cell":"";return(o,r)=>(u(),v("div",yf,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),"day-class":n},null,8,["modelValue","dark"])]))}}),_f={class:"demo-wrap"},bf=W({__name:"DemoHighlight",props:["disabled"],setup(e){const a=C(new Date),{isDark:t}=Ae(),n=e,o=M(()=>[Ge(new Date,1),Ge(new Date,2),Ge(new Date,3)]),r=M(()=>n.disabled?o.value:[]),l=M(()=>({dates:n.disabled?r.value:o.value,options:{highlightDisabled:!0}}));return(i,d)=>(u(),v("div",_f,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=_=>a.value=_),dark:s(t),highlight:l.value,"disabled-dates":r.value},null,8,["modelValue","dark","highlight","disabled-dates"])]))}}),kf={class:"demo-wrap"},wf=g("span",{class:"custom-marker"},null,-1),$f=W({__name:"DemoMarkers",props:["useMarkerTooltipSlot","useMarkerSlot"],setup(e){const a=C(new Date),{isDark:t}=Ae(),n=M(()=>[{date:Ge(new Date,1),type:"dot",tooltip:[{text:"Dot with tooltip",color:"green"}]},{date:Ge(new Date,2),type:"line",tooltip:[{text:"First tooltip",color:"blue"},{text:"Second tooltip",color:"yellow"}]},{date:Ge(new Date,3),type:"dot",color:"yellow"}]);return(o,r)=>(u(),v("div",kf,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),markers:n.value},at({_:2},[e.useMarkerTooltipSlot?{name:"marker-tooltip",fn:D(({day:l})=>[g("div",null,"Custom content on "+oe(l),1)]),key:"0"}:void 0,e.useMarkerSlot?{name:"marker",fn:D(({day:l})=>[wf]),key:"1"}:void 0]),1032,["modelValue","dark","markers"])]))}}),Df=g("p",{class:"clickable-text"},"This is some custom clickable text that will open datepicker",-1),Pf=["value"],Mf=g("img",{class:"input-slot-image",src:At},null,-1),xf=["onClick"],Tf=g("img",{class:"slot-icon",src:At},null,-1),Sf=g("img",{class:"slot-icon",src:At},null,-1),Af=g("img",{class:"slot-icon",src:At},null,-1),Cf=g("img",{class:"slot-icon-m",src:At},null,-1),Vf=g("img",{class:"slot-icon-m",src:At},null,-1),Of=g("img",{class:"slot-icon",src:At},null,-1),Nf={key:0,class:"slot-icon",src:At},Rf=["onClick"],Lf=g("img",{class:"slot-icon centered",src:At},null,-1),Yf=[Lf],If=["onClick"],Bf={class:"time-picker-overlay"},Ef=["value","onChange"],Hf=["value"],Ff=["value","onChange"],Wf=["value"],zf=g("div",{class:"dp-sidebar"},"Custom content",-1),qf=g("div",{class:"dp-sidebar"},"Custom content",-1),Uf={class:"overlay-header"},Qf=["onClick"],Gf={class:"overlay-header"},jf=["onClick"],Xf=W({__name:"DemoSlots",props:["placeholder","useTriggerSlot","position","useInputIconSlot","useClearIconSlot","useClockIconSlot","useArrowLeftSlot","useArrowRightSlot","useArrowUpSlot","useArrowDownSlot","useCalendarIconSlot","useDaySlot","useActionButtonSlot","useActionPreviewSlot","useHoursSlot","useMinutesSlot","useMonthSlot","useYearSlot","useHoursOverlaySlot","useMinutesOverlaySlot","useMonthOverlaySlot","useYearOverlaySlot","useDpInputSlot","useCalendarHeaderSlot","useActionExtraSlot","is24","useAmPmButtonSlot","useTimePickerOverlay","useLeftSidebarSlot","useRightSidebarSlot","useMonthOverlayHeaderSlot","useYearOverlayHeaderSlot","useQuarterSlot"],setup(e){const a=C(new Date),{isDark:t}=Ae(),n=C(null),o=M(()=>new Date().getDate()+1),r=M(()=>f=>`Selected ${new Date(f).getDate()}`),l=M(()=>{const f=[];for(let p=0;p<24;p++)f.push({text:p<10?`0${p}`:p,value:p});return f}),i=M(()=>{const f=[];for(let p=0;p<60;p++)f.push({text:p<10?`0${p}`:p,value:p});return f}),d=()=>{n.value&&n.value.selectDate()},_=f=>vt(f,"QQQ");return(f,p)=>(u(),v("div",{class:de(["demo-wrap",e.useDpInputSlot||e.useTriggerSlot?"demo-wrap-inline":""])},[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=h=>a.value=h),placeholder:e.placeholder,dark:s(t),position:e.position,"quarter-picker":e.useQuarterSlot,is24:e.is24,ref_key:"dpSlotDemo",ref:n},at({_:2},[e.useTriggerSlot?{name:"trigger",fn:D(()=>[Df]),key:"0"}:void 0,e.useDpInputSlot?{name:"dp-input",fn:D(({value:h})=>[g("input",{class:"input-class",type:"text",value:h},null,8,Pf)]),key:"1"}:void 0,e.useInputIconSlot?{name:"input-icon",fn:D(()=>[Mf]),key:"2"}:void 0,e.useClearIconSlot?{name:"clear-icon",fn:D(({clear:h})=>[g("img",{class:"input-slot-image-clear",src:At,onClick:h},null,8,xf)]),key:"3"}:void 0,e.useClockIconSlot?{name:"clock-icon",fn:D(()=>[Tf]),key:"4"}:void 0,e.useArrowLeftSlot?{name:"arrow-left",fn:D(()=>[Sf]),key:"5"}:void 0,e.useArrowRightSlot?{name:"arrow-right",fn:D(()=>[Af]),key:"6"}:void 0,e.useArrowUpSlot?{name:"arrow-up",fn:D(()=>[Cf]),key:"7"}:void 0,e.useArrowDownSlot?{name:"arrow-down",fn:D(()=>[Vf]),key:"8"}:void 0,e.useCalendarIconSlot?{name:"calendar-icon",fn:D(()=>[Of]),key:"9"}:void 0,e.useDaySlot?{name:"day",fn:D(({day:h})=>[h===o.value?(u(),v("img",Nf)):(u(),v(le,{key:1},[Oe(oe(h),1)],64))]),key:"10"}:void 0,e.useActionButtonSlot?{name:"action-buttons",fn:D(()=>[g("p",{class:"custom-select",onClick:d},"Select")]),key:"11"}:void 0,e.useActionPreviewSlot?{name:"action-preview",fn:D(({value:h})=>[Oe(oe(r.value(h)),1)]),key:"12"}:void 0,e.useHoursSlot?{name:"hours",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"13"}:void 0,e.useMinutesSlot?{name:"minutes",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"14"}:void 0,e.useMonthSlot?{name:"month",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"15"}:void 0,e.useYearSlot?{name:"year",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"16"}:void 0,e.useHoursOverlaySlot?{name:"hours-overlay-value",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"17"}:void 0,e.useMinutesOverlaySlot?{name:"minutes-overlay-value",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"18"}:void 0,e.useMonthOverlaySlot?{name:"month-overlay-value",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"19"}:void 0,e.useYearOverlaySlot?{name:"year-overlay-value",fn:D(({value:h})=>[Oe(oe(h),1)]),key:"20"}:void 0,e.useCalendarHeaderSlot?{name:"calendar-header",fn:D(({index:h,day:y})=>[g("div",{class:de(h===5||h===6?"red-color":"")},oe(y),3)]),key:"21"}:void 0,e.useActionExtraSlot?{name:"action-extra",fn:D(({selectCurrentDate:h})=>[g("span",{onClick:y=>h(),title:"Select current date",class:"pointer"},Yf,8,Rf)]),key:"22"}:void 0,e.useAmPmButtonSlot?{name:"am-pm-button",fn:D(({toggle:h,value:y})=>[g("button",{onClick:h},oe(y),9,If)]),key:"23"}:void 0,e.useTimePickerOverlay?{name:"time-picker-overlay",fn:D(({hours:h,minutes:y,setHours:A,setMinutes:x})=>[g("div",Bf,[g("select",{class:"select-input",value:h,onChange:Y=>A(+Y.target.value)},[(u(!0),v(le,null,ye(l.value,Y=>(u(),v("option",{key:Y.value,value:Y.value},oe(Y.text),9,Hf))),128))],40,Ef),g("select",{class:"select-input",value:y,onChange:Y=>x(+Y.target.value)},[(u(!0),v(le,null,ye(i.value,Y=>(u(),v("option",{key:Y.value,value:Y.value},oe(Y.text),9,Wf))),128))],40,Ff)])]),key:"24"}:void 0,e.useLeftSidebarSlot?{name:"left-sidebar",fn:D(()=>[zf]),key:"25"}:void 0,e.useRightSidebarSlot?{name:"right-sidebar",fn:D(()=>[qf]),key:"26"}:void 0,e.useMonthOverlayHeaderSlot?{name:"month-overlay-header",fn:D(({toggle:h})=>[g("div",Uf,[g("span",{onClick:h,class:"pointer"},oe("< Go back"),8,Qf)])]),key:"27"}:void 0,e.useYearOverlayHeaderSlot?{name:"year-overlay-header",fn:D(({toggle:h})=>[g("div",Gf,[g("span",{onClick:h,class:"pointer"},oe("< Go back"),8,jf)])]),key:"28"}:void 0,e.useQuarterSlot?{name:"quarter",fn:D(({value:h})=>[g("span",null,oe(_(h)),1)]),key:"29"}:void 0]),1032,["modelValue","placeholder","dark","position","quarter-picker","is24"])],2))}}),Kf={class:"demo-wrap"},Jf=W({__name:"DisabledDatesDemo",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=M(()=>{const o=new Date,r=new Date(o);r.setDate(r.getDate()+1);const l=new Date(r);return l.setDate(r.getDate()+1),[r,l]});return(o,r)=>(u(),v("div",Kf,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),"disabled-dates":n.value},null,8,["modelValue","dark","disabled-dates"])]))}}),Zf={class:"demo-wrap"},eh=W({__name:"DisabledRangeDateDemo",props:{},setup(e){const{isDark:a}=Ae(),t=C([]),n=[En(new Date,1),new Date,Ge(new Date,1)];return(o,r)=>(u(),v("div",Zf,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l)},o.$props,{dark:s(a),range:{noDisabledRange:!0},"disabled-dates":n,placeholder:"Select range"}),null,16,["modelValue","dark"])]))}}),th={class:"demo-wrap"},ah={class:"buttons-wrap"},nh=["onClick"],oh=W({__name:"DisabledTimesDemo",props:{},setup(e){const{isDark:a}=Ae(),t=C(null),n=["single","range"],o=C("single"),r=M(()=>o.value==="range"),l=[{hours:15,minutes:"*"},{hours:16,minutes:15},{hours:16,minutes:20},{hours:17,minutes:30}],i=[[{hours:12,minutes:"*"},{hours:9,minutes:10}],l],d=_=>{t.value=null,o.value=_};return(_,f)=>(u(),v("div",th,[g("div",ah,[(u(),v(le,null,ye(n,(p,h)=>g("button",{class:de(["change-btn",{"btn-active":p===o.value}]),key:h,onClick:y=>d(p)},oe(p),11,nh)),64))]),G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=p=>t.value=p),placeholder:"Select date"},_.$props,{dark:s(a),"disabled-times":r.value?i:l,range:r.value}),null,16,["modelValue","dark","disabled-times","range"])]))}}),rh=ve(oh,[["__scopeId","data-v-2a3dee5c"]]),lh={class:"demo-wrap"},sh={key:0},ih=W({__name:"DisplayModelDemo",props:["modelType","modelAuto","range"],setup(e){const a=C(),{isDark:t}=Ae();return(n,o)=>(u(),v("div",lh,[G(s(Te),Ne({modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t)},n.$props,{placeholder:"Select Date"}),null,16,["modelValue","dark"]),a.value?(u(),v("p",sh,"Selected date: "+oe(a.value),1)):S("",!0)]))}}),uh={class:"demo-wrap"},ch=W({__name:"EmitTimezone",setup(e){const{isDark:a}=Ae(),t=C(),n=C(),o=r=>{n.value=r};return(r,l)=>(u(),v("div",uh,[t.value&&n.value?(u(),v(le,{key:0},[g("div",null,"Local timezone date: "+oe(t.value),1),g("div",null,"UTC date: "+oe(n.value),1)],64)):S("",!0),G(s(Te),{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value=i),placeholder:"Select date","emit-timezone":"UTC",dark:s(a),"onUpdate:modelTimezoneValue":o},null,8,["modelValue","dark"])]))}}),dh={class:"demo-wrap"},mh=W({__name:"EmptyDemo",props:["placeholder","noToday","minTime","maxTime","startDate","startTime","disabledWeekDays","allowedDates","actionRow","nowButtonLabel","multiDates","flow","partialFlow","range","multiDatesLimit","weekPicker","monthPicker","timePicker","disableTimeRangeValidation","maxDate","ignoreTimeValidation","autoApply"],setup(e){const a=e,t=C(),{isDark:n}=Ae(),o=M(()=>{if(a.allowedDates)return[new Date,new Date(new Date().setDate(new Date().getDate()+1))]});return(r,l)=>(u(),v("div",dh,[G(s(Te),{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value=i),placeholder:e.placeholder,dark:s(n),"no-today":e.noToday,"min-time":e.minTime,"max-time":e.maxTime,"start-date":e.startDate,"start-time":e.startTime,"disabled-week-days":e.disabledWeekDays,"allowed-dates":o.value,"action-row":e.actionRow,"now-button-label":e.nowButtonLabel,"multi-dates":e.multiDates,range:e.range,flow:e.flow,"multi-dates-limit":e.multiDatesLimit,"week-picker":e.weekPicker,"month-picker":e.monthPicker,"time-picker":e.timePicker,"disable-time-range-validation":e.disableTimeRangeValidation,"max-date":e.maxDate,"ignore-time-validation":e.ignoreTimeValidation,"partial-flow":e.partialFlow,"auto-apply":e.autoApply},null,8,["modelValue","placeholder","dark","no-today","min-time","max-time","start-date","start-time","disabled-week-days","allowed-dates","action-row","now-button-label","multi-dates","range","flow","multi-dates-limit","week-picker","month-picker","time-picker","disable-time-range-validation","max-date","ignore-time-validation","partial-flow","auto-apply"])]))}}),vh={class:"demo-wrap"},ph=W({__name:"FiltersDemo",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=M(()=>{const o=new Date;return{months:Array.from(Array(3).keys()).map(r=>$e(ct(o,r+1)))}});return(o,r)=>(u(),v("div",vh,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),placeholder:"Select Date",filters:n.value},null,8,["modelValue","dark","filters"])]))}}),fh={class:"demo-wrap"},hh=W({__name:"FormatDemo",props:["placeholder"],setup(e){const a=C(new Date),{isDark:t}=Ae(),n=o=>{const r=o.getDate(),l=o.getMonth()+1,i=o.getFullYear();return`Selected date is ${r}/${l}/${i}`};return(o,r)=>(u(),v("div",fh,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),placeholder:e.placeholder,format:n,dark:s(t)},null,8,["modelValue","placeholder","dark"])]))}}),yh={class:"demo-wrap"},gh=W({__name:"GlobalDemo",props:["uid","is24","enableTimePicker","locale","cancelText","selectText","range","position","weekNumbers","placeholder","hoursIncrement","minutesIncrement","hoursGridIncrement","minutesGridIncrement","minDate","maxDate","minTime","maxTime","weekStart","disabled","readonly","inputClassName","menuClassName","hideInputIcon","state","clearable","closeOnScroll","autoApply","filters","disableMonthYearSelect","yearRange","disabledDates","inline","weekNumName","autoPosition","monthPicker","timePicker","closeOnAutoApply","calendarClassName","calendarCellClassName","teleport","startDate","startTime","monthNameFormat","autoRange","hideOffsetDates","noHoursOverlay","noMinutesOverlay","altPosition","multiCalendars","multiCalendarsSolo","partialRange","monthChangeOnScroll","transitions","modeHeight","enableSeconds","secondsIncrement","secondsGridIncrement","noSecondsOverlay","openMenuOnFocus","escClose","spaceConfirm","monthChangeOnArrows","inlineWithInput","name","autocomplete","preventMinMaxNavigation","fixedEnd","fixedStart","reverseYears","vertical","arrowNavigation","textInput","yearPicker","multiStatic","disableTimeRangeValidation","dayNames","offset","teleportCenter","hideNavigation","sixWeeks","actionRow","disableYearSelect","focusStartDate","timePickerInline","yearFirst","loading"],setup(e){const a=e,t=C(null),n=C(!1),{isDark:o}=Ae(),r=M({get:()=>{if(n.value||a.maxTime||a.minTime||a.startDate&&!a.focusStartDate||a.startTime)return null;if(t.value)return t.value;if(a.monthPicker)return{month:new Date().getMonth(),year:new Date().getFullYear()};if(a.yearPicker)return new Date().getFullYear();if(a.timePicker){const l=new Date;return{hours:l.getHours(),minutes:l.getMinutes()}}if(a.range){const l=new Date,i=new Date(new Date().setDate(l.getDate()+7));return[l,i]}return new Date},set:l=>{n.value=!l,t.value=l}});return(l,i)=>(u(),v("div",yh,[G(s(Te),Ne({modelValue:r.value,"onUpdate:modelValue":i[0]||(i[0]=d=>r.value=d)},l.$props,{dark:s(o)}),null,16,["modelValue","dark"])]))}}),_h={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},bh=(e,a,t)=>{t=t||{};let n;const o=_h[e];return typeof o=="string"?n=o:a===1?t.addSuffix&&o.oneWithSuffix?n=o.oneWithSuffix:n=o.one:t.addSuffix&&o.otherWithSuffix?n=o.otherWithSuffix.replace("{{count}}",String(a)):n=o.other.replace("{{count}}",String(a)),t.addSuffix?t.comparison&&t.comparison>0?n+"後":n+"前":n},kh={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},wh={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},$h={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Dh={date:ua({formats:kh,defaultWidth:"full"}),time:ua({formats:wh,defaultWidth:"full"}),dateTime:ua({formats:$h,defaultWidth:"full"})},Ph={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Mh=(e,a,t,n)=>Ph[e],xh={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Th={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Sh={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Ah={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Ch={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Vh={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Oh=(e,a)=>{const t=Number(e);switch(String(a==null?void 0:a.unit)){case"year":return`${t}年`;case"quarter":return`第${t}四半期`;case"month":return`${t}月`;case"week":return`第${t}週`;case"date":return`${t}日`;case"hour":return`${t}時`;case"minute":return`${t}分`;case"second":return`${t}秒`;default:return`${t}`}},Nh={ordinalNumber:Oh,era:kt({values:xh,defaultWidth:"wide"}),quarter:kt({values:Th,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:kt({values:Sh,defaultWidth:"wide"}),day:kt({values:Ah,defaultWidth:"wide"}),dayPeriod:kt({values:Ch,defaultWidth:"wide",formattingValues:Vh,defaultFormattingWidth:"wide"})},Rh=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,Lh=/\d+/i,Yh={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},Ih={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},Bh={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Eh={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Hh={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Fh={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Wh={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},zh={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},qh={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},Uh={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Qh={ordinalNumber:jo({matchPattern:Rh,parsePattern:Lh,valueCallback:function(e){return parseInt(e,10)}}),era:wt({matchPatterns:Yh,defaultMatchWidth:"wide",parsePatterns:Ih,defaultParseWidth:"any"}),quarter:wt({matchPatterns:Bh,defaultMatchWidth:"wide",parsePatterns:Eh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wt({matchPatterns:Hh,defaultMatchWidth:"wide",parsePatterns:Fh,defaultParseWidth:"any"}),day:wt({matchPatterns:Wh,defaultMatchWidth:"wide",parsePatterns:zh,defaultParseWidth:"any"}),dayPeriod:wt({matchPatterns:qh,defaultMatchWidth:"any",parsePatterns:Uh,defaultParseWidth:"any"})},Gh={code:"ja",formatDistance:bh,formatLong:Dh,formatRelative:Mh,localize:Nh,match:Qh,options:{weekStartsOn:0,firstWeekContainsDate:1}},jh={class:"demo-wrap"},Xh=W({__name:"LocalizedOutput",setup(e){const a=C(new Date),{isDark:t}=Ae();return(n,o)=>(u(),v("div",jh,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t),placeholder:"Select Date","format-locale":s(Gh),format:"E"},null,8,["modelValue","dark","format-locale"])]))}}),Kh={class:"demo-wrap"},Jh=W({__name:"MinMaxDemo",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=M(()=>Rt(new Date(ke(new Date),$e(new Date)),2)),o=M(()=>ct(new Date(ke(new Date),$e(new Date)),2));return(r,l)=>(u(),v("div",Kh,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),placeholder:"Select Date",dark:s(t),"min-date":n.value,"max-date":o.value,"prevent-min-max-navigation":""},null,8,["modelValue","dark","min-date","max-date"])]))}}),Zh={class:"demo-wrap"},e0=W({__name:"MonthPickerDemo",props:{autoApplyMonth:{type:Boolean,default:!0}},setup(e){const{isDark:a}=Ae(),t=C({month:new Date().getMonth(),year:new Date().getFullYear()});return(n,o)=>(u(),v("div",Zh,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"month-picker":""}),null,16,["modelValue","dark"])]))}}),t0={},a0={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},n0=g("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"},null,-1),o0=[n0];function r0(e,a){return u(),v("svg",a0,o0)}const l0=ve(t0,[["render",r0]]),s0={},i0={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",class:"dp__icon"},u0=g("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"},null,-1),c0=[u0];function d0(e,a){return u(),v("svg",i0,c0)}const m0=ve(s0,[["render",d0]]),v0={class:"demo-wrap"},p0={class:"custom-month-year-component"},f0=["value","onChange"],h0=["value"],y0=["value","onChange"],g0=["value"],_0={class:"icons"},b0=["onClick"],k0=["onClick"],w0={class:"custom-month-year-component"},$0=["value","onChange"],D0=["value"],P0=["onClick"],M0={class:"year-overlay"},x0=["value","onChange"],T0=["value"],S0=["onClick"],A0=W({__name:"MonthYearSlotDemo",props:["defaultSlot","monthOverlaySlot","yearOverlaySlot"],setup(e){const a=C(new Date),{isDark:t}=Ae(),n=(r,l,i,d)=>{l(+r.target.value,i),d&&d()},o=(r,l,i,d)=>{l(i,+r.target.value),d&&d()};return(r,l)=>(u(),v("div",v0,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),dark:s(t)},at({_:2},[e.defaultSlot?{name:"month-year",fn:D(({month:i,year:d,months:_,years:f,updateMonthYear:p,handleMonthYearChange:h})=>[g("div",p0,[g("select",{class:"select-input",value:i,onChange:y=>n(y,p,d)},[(u(!0),v(le,null,ye(_,y=>(u(),v("option",{key:y.value,value:y.value},oe(y.text),9,h0))),128))],40,f0),g("select",{class:"select-input",value:d,onChange:y=>o(y,p,i)},[(u(!0),v(le,null,ye(f,y=>(u(),v("option",{key:y.value,value:y.value},oe(y.text),9,g0))),128))],40,y0)]),g("div",_0,[g("span",{class:"custom-icon",onClick:y=>h(!1)},[G(l0)],8,b0),g("span",{class:"custom-icon",onClick:y=>h(!0)},[G(m0)],8,k0)])]),key:"0"}:void 0,e.monthOverlaySlot?{name:"month-overlay",fn:D(({month:i,year:d,items:_,updateMonthYear:f,toggle:p})=>[g("div",w0,[g("select",{class:"select-input",value:i,onChange:h=>n(h,f,d,p)},[(u(!0),v(le,null,ye(_,h=>(u(),v("option",{key:h.value,value:h.value},oe(h.text),9,D0))),128))],40,$0)]),g("button",{onClick:p},"Close",8,P0)]),key:"1"}:void 0,e.yearOverlaySlot?{name:"year-overlay",fn:D(({month:i,year:d,items:_,updateMonthYear:f,toggle:p})=>[g("div",M0,[g("div",null,[g("select",{class:"select-input",value:d,onChange:h=>o(h,f,i,p)},[(u(!0),v(le,null,ye(_,h=>(u(),v("option",{key:h.value,value:h.value},oe(h.text),9,T0))),128))],40,x0)]),g("button",{onClick:p},"Close",8,S0)])]),key:"2"}:void 0]),1032,["modelValue","dark"])]))}}),C0={class:"demo-wrap"},V0=["onClick"],O0=W({__name:"PresetRange",setup(e){const a=C(),{isDark:t}=Ae(),n=C([{label:"Today",value:[new Date,new Date]},{label:"Today (Slot)",value:[new Date,new Date],slot:"preset-date-range-button"},{label:"This month",value:[lo(new Date),ro(new Date)]},{label:"Last month",value:[lo(Rt(new Date,1)),ro(Rt(new Date,1))]},{label:"This year",value:[Nn(new Date),Go(new Date)]}]);return(o,r)=>(u(),v("div",C0,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),placeholder:"Select Date",dark:s(t),range:"","preset-dates":n.value},{"preset-date-range-button":D(({label:l,value:i,presetDate:d})=>[g("span",{role:"button",tabindex:0,onClick:_=>d(i)},oe(l),9,V0)]),_:1},8,["modelValue","dark","preset-dates"])]))}}),N0={class:"demo-wrap"},R0=W({__name:"PreviewFormatDemo",props:["placeholder"],setup(e){const a=C(new Date),{isDark:t}=Ae(),n=o=>{const r=o.getDate(),l=o.getMonth()+1,i=o.getFullYear();return`Selected date is ${r}/${l}/${i}`};return(o,r)=>(u(),v("div",N0,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),placeholder:e.placeholder,"preview-format":n,dark:s(t)},null,8,["modelValue","placeholder","dark"])]))}}),L0={class:"demo-wrap"},Y0=W({__name:"QuarterPickerDemo",setup(e){const{isDark:a}=Ae(),t=C(Ht(new Date));return(n,o)=>(u(),v("div",L0,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"quarter-picker":""}),null,16,["modelValue","dark"])]))}}),I0={class:"demo-wrap"},B0=W({__name:"RangeDemo",props:{range:{type:[Boolean,Object],default:!0},clearable:{type:Boolean,default:!0},timePicker:{type:Boolean,default:!1},placeholder:{type:String,default:"Select Range"},multiCalendars:{type:[Number,String,Boolean,Object],default:null},disabledWeekDays:{type:Array,default:()=>[]}},setup(e){const a=e,{isDark:t}=Ae(),n=M(()=>{var r,l,i;return typeof a.range=="object"?((r=a.range)==null?void 0:r.autoRange)||((l=a.range)==null?void 0:l.maxRange)||((i=a.range)==null?void 0:i.minRange):!1}),o=C(n.value?null:[new Date,new Date(new Date().setDate(new Date().getDate()+7))]);return(r,l)=>(u(),v("div",I0,[G(s(Te),Ne({modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=i=>o.value=i)},r.$props,{dark:s(t),rang:e.range,placeholder:e.placeholder}),null,16,["modelValue","dark","rang","placeholder"])]))}}),E0={class:"demo-wrap"},H0=W({__name:"RangeDemoDeprecated",props:{autoRange:{type:[Number,String],default:null},multiCalendars:{type:[Number,String,Boolean,Object],default:null},partialRange:{type:Boolean,default:!0},fixedStart:{type:Boolean,default:!1},fixedEnd:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showLastInRange:{type:Boolean,default:!0},placeholder:{type:String,default:"Select Range"},minRange:{type:Number,default:null},maxRange:{type:Number,default:null},noVModel:{type:Boolean,default:!1}},setup(e){const a=e,{isDark:t}=Ae(),n=C(a.autoRange||a.noVModel?null:[new Date,new Date(new Date().setDate(new Date().getDate()+7))]);return(o,r)=>(u(),v("div",E0,[G(s(Te),Ne({modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l)},o.$props,{dark:s(t),range:"",placeholder:e.placeholder}),null,16,["modelValue","dark","placeholder"])]))}}),F0={class:"demo-wrap"},W0=W({__name:"DisabledRangeDateDemoDeprecated",props:{},setup(e){const{isDark:a}=Ae(),t=C([]),n=[En(new Date,1),new Date,Ge(new Date,1)];return(o,r)=>(u(),v("div",F0,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l)},o.$props,{dark:s(a),range:"","no-disabled-range":"","disabled-dates":n,placeholder:"Select range"}),null,16,["modelValue","dark"])]))}}),z0={class:"demo-wrap"},q0=g("button",{class:"submit-btn",type:"submit"},"Submit form",-1),U0=W({__name:"RequiredDemo",setup(e){const a=C(),{isDark:t}=Ae(),n=()=>{alert("Form submitted")};return(o,r)=>(u(),v("div",z0,[g("form",{onSubmit:Le(n,["prevent"])},[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=l=>a.value=l),dark:s(t),placeholder:"Select Date",required:""},null,8,["modelValue","dark"]),q0],32)]))}}),Q0={class:"demo-wrap"},G0={class:"buttons-wrap"},j0=["onClick"],X0=W({__name:"SixWeeksDemo",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=[!0,"append","prepend","center","fair"],o=C(!0);return(r,l)=>(u(),v("div",Q0,[g("div",G0,[(u(),v(le,null,ye(n,(i,d)=>g("button",{class:de(["change-btn",{"btn-active":i===o.value}]),key:d,onClick:_=>o.value=i},oe(i),11,j0)),64))]),G(s(Te),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),dark:s(t),"six-weeks":o.value},null,8,["modelValue","dark","six-weeks"])]))}}),K0=ve(X0,[["__scopeId","data-v-e3f2bf69"]]),J0={class:"demo-wrap"},Z0=W({__name:"TextInputDemo",props:["textInput","placeholder","minDate","maxDate"],setup(e){const a=C(new Date),{isDark:t}=Ae();return(n,o)=>(u(),v("div",J0,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t),"text-input":e.textInput,placeholder:e.placeholder,"min-date":e.minDate,"max-date":e.maxDate},null,8,["modelValue","dark","text-input","placeholder","min-date","max-date"])]))}}),ey={class:"demo-wrap"},ty=W({__name:"TimePickerDemo",props:["modeHeight"],setup(e){const{isDark:a}=Ae(),t=C({hours:new Date().getHours(),minutes:new Date().getMinutes()});return(n,o)=>(u(),v("div",ey,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"time-picker":""}),null,16,["modelValue","dark"])]))}}),ay={class:"demo-wrap"},ny={class:"custom-time-picker-component"},oy=["value","onChange"],ry=["value"],ly=["value","onChange"],sy=["value"],iy=W({__name:"TimePickerSlotDemo",setup(e){const a=C(new Date),{isDark:t}=Ae(),n=M(()=>{const r=[];for(let l=0;l<24;l++)r.push({text:l<10?`0${l}`:l,value:l});return r}),o=M(()=>{const r=[];for(let l=0;l<60;l++)r.push({text:l<10?`0${l}`:l,value:l});return r});return(r,l)=>(u(),v("div",ay,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=i=>a.value=i),dark:s(t)},{"time-picker":D(({time:i,updateTime:d})=>[g("div",ny,[g("select",{class:"select-input",value:i.hours,onChange:_=>d(+_.target.value)},[(u(!0),v(le,null,ye(n.value,_=>(u(),v("option",{key:_.value,value:_.value},oe(_.text),9,ry))),128))],40,oy),g("select",{class:"select-input",value:i.minutes,onChange:_=>d(+_.target.value,!1)},[(u(!0),v(le,null,ye(o.value,_=>(u(),v("option",{key:_.value,value:_.value},oe(_.text),9,sy))),128))],40,ly)])]),_:1},8,["modelValue","dark"])]))}}),uy={class:"demo-wrap"},cy={key:0},dy=W({__name:"TimezoneDemo",setup(e){const a=C(),{isDark:t}=Ae();return(n,o)=>(u(),v("div",uy,[G(s(Te),{modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=r=>a.value=r),dark:s(t),utc:"",placeholder:"Select Date"},null,8,["modelValue","dark"]),a.value?(u(),v("p",cy,"Selected date in UTC format: "+oe(a.value),1)):S("",!0)]))}}),my=e=>(Je("data-v-323b52ea"),e=e(),Ze(),e),vy={class:"demo-wrap"},py=my(()=>g("option",{value:void 0},"Select timezone",-1)),fy=["value"],hy=W({__name:"TimezonePropDemo",setup(e){const a=C([new Date,Ge(new Date,5)]),{isDark:t}=Ae(),n=C(void 0),o=["Pacific/Midway","America/Adak","Pacific/Gambier","America/Los_Angeles","America/Denver","America/Chicago","America/New_York","America/Santiago","America/Sao_Paulo","America/Noronha","Atlantic/Cape_Verde","UTC","Europe/Brussels","Africa/Cairo","Europe/Minsk","Europe/Moscow","Asia/Tashkent","Asia/Dhaka","Asia/Novosibirsk","Australia/Perth","Asia/Tokyo","Australia/Hobart","Asia/Vladivostok","Pacific/Auckland"];return(r,l)=>(u(),v("div",vy,[g("div",null,[ia(g("select",{class:"custom-select",name:"timezone-select",id:"timezone-select","onUpdate:modelValue":l[0]||(l[0]=i=>n.value=i)},[py,(u(),v(le,null,ye(o,i=>g("option",{value:i,key:i},oe(i),9,fy)),64))],512),[[qr,n.value]])]),G(s(Te),{modelValue:a.value,"onUpdate:modelValue":l[1]||(l[1]=i=>a.value=i),dark:s(t),"multi-calendars":"",timezone:n.value,range:"","partial-range":!1},null,8,["modelValue","dark","timezone"])]))}}),yy=ve(hy,[["__scopeId","data-v-323b52ea"]]),gy={class:"demo-wrap"},_y=W({__name:"YearPickerDemo",props:{},setup(e){const{isDark:a}=Ae(),t=C(new Date().getFullYear());return(n,o)=>(u(),v("div",gy,[G(s(Te),Ne({modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=r=>t.value=r)},n.$props,{dark:s(a),"year-picker":""}),null,16,["modelValue","dark"])]))}}),xr=e=>(Je("data-v-938a3203"),e=e(),Ze(),e),by={class:"tz-demo-wrap"},ky={class:"dp-container-wrap"},wy={class:"tz-range-slider-wrap"},$y=xr(()=>g("br",null,null,-1)),Dy=xr(()=>g("br",null,null,-1)),Py={key:0},My=W({__name:"TimezoneNewDemo",props:{timezone:{type:Object,default:void 0},emitVal:{type:Boolean,default:!1}},setup(e){const{isDark:a}=Ae(),t=e,n=C(),o=C(11),r=C(),l=M(()=>{var h,y;if(t.emitVal)return;const p=$e(new Date)+1>9?$e(new Date)+1:`0${$e(new Date)+1}`;return(h=t.timezone)!=null&&h.exactMatch?new Date:(y=t.timezone)!=null&&y.dateInTz?`${ke(new Date)}-${p}-15T01:00:00Z`:`${ke(new Date)}-${p}-15T01:00:00Z`}),i=[{tz:"Pacific/Midway",offset:-11},{tz:"America/Adak",offset:-10},{tz:"Pacific/Gambier",offset:-9},{tz:"America/Los_Angeles",offset:-8},{tz:"America/Denver",offset:-7},{tz:"America/Chicago",offset:-6},{tz:"America/New_York",offset:-5},{tz:"America/Santiago",offset:-4},{tz:"America/Sao_Paulo",offset:-3},{tz:"America/Noronha",offset:-2},{tz:"Atlantic/Cape_Verde",offset:-1},{tz:"UTC",offset:0},{tz:"Europe/Brussels",offset:1},{tz:"Africa/Cairo",offset:2},{tz:"Europe/Minsk",offset:3},{tz:"Europe/Moscow",offset:4},{tz:"Asia/Tashkent",offset:5},{tz:"Asia/Dhaka",offset:6},{tz:"Asia/Novosibirsk",offset:7},{tz:"Australia/Perth",offset:8},{tz:"Asia/Tokyo",offset:9},{tz:"Australia/Hobart",offset:10},{tz:"Asia/Vladivostok",offset:11},{tz:"Pacific/Auckland",offset:12}],d=M(()=>i[o.value]),_=M(()=>{const p=t.emitVal?{emitTimezone:d.value.tz}:{timezone:d.value.tz};return t.timezone?{...t.timezone,...p}:p}),f=p=>{r.value=p.toISOString()};return(p,h)=>(u(),v("div",by,[g("div",ky,[G(s(Te),{modelValue:n.value,"onUpdate:modelValue":h[0]||(h[0]=y=>n.value=y),dark:s(a),timezone:_.value,inline:"","auto-apply":"","max-date":l.value,"onUpdate:modelTimezoneValue":f},null,8,["modelValue","dark","timezone","max-date"])]),g("div",wy,[g("div",null,[g("span",null,"Timezone: "+oe(d.value.tz),1),$y,g("span",null,"Offset: "+oe(d.value.offset>0?`+${d.value.offset}`:d.value.offset),1),Dy,r.value?(u(),v("span",Py,"Zoned date: "+oe(r.value),1)):S("",!0)]),g("div",null,[ia(g("input",{class:"tz-range-slider",type:"range","onUpdate:modelValue":h[1]||(h[1]=y=>o.value=y),min:"0",max:"22"},null,512),[[Ur,o.value]])])])]))}}),xy=ve(My,[["__scopeId","data-v-938a3203"]]),Ay={extends:ad,enhanceApp({app:e}){e.component("StarAndSponsor",id),e.component("ActionRowSlotDemo",mf),e.component("CustomCalendarDemo",pf),e.component("DarkDemo",hf),e.component("DemoDayClass",gf),e.component("DemoHighlight",bf),e.component("DemoMarkers",$f),e.component("DemoSlots",Xf),e.component("DisabledDatesDemo",Jf),e.component("DisabledRangeDateDemo",eh),e.component("DisabledTimesDemo",rh),e.component("DisplayModelDemo",ih),e.component("EmitTimezone",ch),e.component("EmptyDemo",mh),e.component("FiltersDemo",ph),e.component("FormatDemo",hh),e.component("GlobalDemo",gh),e.component("LocalizedOutput",Xh),e.component("MinMaxDemo",Jh),e.component("MonthPickerDemo",e0),e.component("MonthYearSlotDemo",A0),e.component("PresetRange",O0),e.component("PreviewFormatDemo",R0),e.component("QuarterPickerDemo",Y0),e.component("RangeDemo",B0),e.component("RequiredDemo",U0),e.component("SixWeeksDemo",K0),e.component("TextInputDemo",Z0),e.component("TimePickerDemo",ty),e.component("TimePickerSlotDemo",iy),e.component("TimezoneDemo",dy),e.component("TimezonePropDemo",yy),e.component("YearPickerDemo",_y),e.component("RangeDemoDeprecated",H0),e.component("DisabledRangeDateDemoDeprecated",W0),e.component("TimezoneNewDemo",xy)}};export{Ay as R,vl as a,xe as u}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/chunks/ui-custom.B9nMYVHF.js","assets/chunks/framework.B2SzNmjg.js","assets/chunks/VPAlgoliaSearchBox.BbqGHjI_.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/docs/assets/chunks/ui-custom.B9nMYVHF.js b/docs/assets/chunks/ui-custom.DI_I2doF.js similarity index 82% rename from docs/assets/chunks/ui-custom.B9nMYVHF.js rename to docs/assets/chunks/ui-custom.DI_I2doF.js index 3d2f9dd9b..3df255b41 100644 --- a/docs/assets/chunks/ui-custom.B9nMYVHF.js +++ b/docs/assets/chunks/ui-custom.DI_I2doF.js @@ -1 +1 @@ -import{u as i,a as l}from"./theme.BzdH-DCK.js";import{d as p,h as f,y as c,l as u,o as _,c as m,_ as b}from"./framework.B2SzNmjg.js";const v=p({__name:"VPCarbonAds",props:{carbonAds:{}},setup(r){const{page:d}=i(),a=r.carbonAds,{isAsideEnabled:s}=l(),o=f();let n=!1;function t(){if(!n){n=!0;const e=document.createElement("script");e.id="_carbonads_js",e.src=`//cdn.carbonads.com/carbon.js?serve=${a.code}&placement=${a.placement}`,e.async=!0,o.value.appendChild(e)}}return c(()=>d.value.relativePath,()=>{var e;n&&s.value&&((e=window._carbonads)==null||e.refresh())}),a&&u(()=>{s.value?t():c(s,e=>e&&t())}),(e,h)=>(_(),m("div",{class:"VPCarbonAds",ref_key:"container",ref:o},null,512))}}),k=b(v,[["__scopeId","data-v-2e1efd59"]]);export{k as default}; +import{u as i,a as l}from"./theme.BboVNGUh.js";import{d as p,h as f,y as c,l as u,o as _,c as m,_ as b}from"./framework.DOHaQP0J.js";const v=p({__name:"VPCarbonAds",props:{carbonAds:{}},setup(r){const{page:d}=i(),a=r.carbonAds,{isAsideEnabled:s}=l(),o=f();let n=!1;function t(){if(!n){n=!0;const e=document.createElement("script");e.id="_carbonads_js",e.src=`//cdn.carbonads.com/carbon.js?serve=${a.code}&placement=${a.placement}`,e.async=!0,o.value.appendChild(e)}}return c(()=>d.value.relativePath,()=>{var e;n&&s.value&&((e=window._carbonads)==null||e.refresh())}),a&&u(()=>{s.value?t():c(s,e=>e&&t())}),(e,h)=>(_(),m("div",{class:"VPCarbonAds",ref_key:"container",ref:o},null,512))}}),k=b(v,[["__scopeId","data-v-2e1efd59"]]);export{k as default}; diff --git a/docs/assets/customization_theming_index.md.DtBIZP54.js b/docs/assets/customization_theming_index.md.BWG8EWC1.js similarity index 99% rename from docs/assets/customization_theming_index.md.DtBIZP54.js rename to docs/assets/customization_theming_index.md.BWG8EWC1.js index 215ba71f1..96707566a 100644 --- a/docs/assets/customization_theming_index.md.DtBIZP54.js +++ b/docs/assets/customization_theming_index.md.BWG8EWC1.js @@ -1,4 +1,4 @@ -import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const F=JSON.parse('{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme","frontmatter":{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme"},"headers":[],"relativePath":"customization/theming/index.md","filePath":"customization/theming/index.md"}'),h={name:"customization/theming/index.md"},k=n(`

Theming

Datepicker comes with the theme support with css variables. It provides two classes that are applied based on the chosen dark/light mode

To change variables, simply override the classes with your custom values.

Info

  • When changing the properties, you only need to declare the class in the <style> tag, can be in global or scoped, depending on your needs
  • For the date picker to use dp__theme_dark, dark prop must be set to true

Dark mode configuration

css
.dp__theme_dark {
+import{_ as s,c as i,o as a,al as n}from"./chunks/framework.DOHaQP0J.js";const F=JSON.parse('{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme","frontmatter":{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme"},"headers":[],"relativePath":"customization/theming/index.md","filePath":"customization/theming/index.md"}'),h={name:"customization/theming/index.md"},k=n(`

Theming

Datepicker comes with the theme support with css variables. It provides two classes that are applied based on the chosen dark/light mode

To change variables, simply override the classes with your custom values.

Info

  • When changing the properties, you only need to declare the class in the <style> tag, can be in global or scoped, depending on your needs
  • For the date picker to use dp__theme_dark, dark prop must be set to true

Dark mode configuration

css
.dp__theme_dark {
     --dp-background-color: #212121;
     --dp-text-color: #fff;
     --dp-hover-color: #484848;
diff --git a/docs/assets/customization_theming_index.md.DtBIZP54.lean.js b/docs/assets/customization_theming_index.md.BWG8EWC1.lean.js
similarity index 78%
rename from docs/assets/customization_theming_index.md.DtBIZP54.lean.js
rename to docs/assets/customization_theming_index.md.BWG8EWC1.lean.js
index db00680e8..5288d9b74 100644
--- a/docs/assets/customization_theming_index.md.DtBIZP54.lean.js
+++ b/docs/assets/customization_theming_index.md.BWG8EWC1.lean.js
@@ -1 +1 @@
-import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const F=JSON.parse('{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme","frontmatter":{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme"},"headers":[],"relativePath":"customization/theming/index.md","filePath":"customization/theming/index.md"}'),h={name:"customization/theming/index.md"},k=n("",10),p=[k];function l(t,e,E,d,r,g){return a(),i("div",null,p)}const o=s(h,[["render",l]]);export{F as __pageData,o as default};
+import{_ as s,c as i,o as a,al as n}from"./chunks/framework.DOHaQP0J.js";const F=JSON.parse('{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme","frontmatter":{"title":"Customization - Theming","description":"Datepicker theme configuration for light and dark theme"},"headers":[],"relativePath":"customization/theming/index.md","filePath":"customization/theming/index.md"}'),h={name:"customization/theming/index.md"},k=n("",10),p=[k];function l(t,e,E,d,r,g){return a(),i("div",null,p)}const o=s(h,[["render",l]]);export{F as __pageData,o as default};
diff --git a/docs/assets/index.md.B5oSc0py.js b/docs/assets/index.md.DrRFJyvX.js
similarity index 96%
rename from docs/assets/index.md.B5oSc0py.js
rename to docs/assets/index.md.DrRFJyvX.js
index fba88f42b..ab9ffe04e 100644
--- a/docs/assets/index.md.B5oSc0py.js
+++ b/docs/assets/index.md.DrRFJyvX.js
@@ -1 +1 @@
-import{_ as t,E as o,c as a,J as i,o as n}from"./chunks/framework.B2SzNmjg.js";const k=JSON.parse('{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","frontmatter":{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","layout":"home","hero":{"name":"Vue datepicker","text":"The most complete datepicker solution for Vue 3","tagline":"Powerful, lightweight, and reusable datepicker component to fit within any project","actions":[{"theme":"brand","text":"Get Started","link":"/installation/"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Vuepic/vue-datepicker"},{"theme":"alt","text":"Playground","link":"https://stackblitz.com/edit/vuepic-vue-datepicker?file=src%2Fcomponents%2FPlayground.vue"}]},"features":[{"title":"Powerful","details":"Supports multiple modes such as range, various pickers, multiple calendars, custom components, and many more."},{"title":"Modular","details":"Offers a great range of features, slots and props, while providing a way to customize for specific needs."},{"title":"Customizable","details":"Fully accessible, mobile-friendly, with built-in dark and light mode, and customizable css variables."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),r={name:"index.md"};function s(p,c,l,d,m,u){const e=o("StarAndSponsor");return n(),a("div",null,[i(e)])}const f=t(r,[["render",s]]);export{k as __pageData,f as default};
+import{_ as t,E as o,c as a,J as i,o as n}from"./chunks/framework.DOHaQP0J.js";const k=JSON.parse('{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","frontmatter":{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","layout":"home","hero":{"name":"Vue datepicker","text":"The most complete datepicker solution for Vue 3","tagline":"Powerful, lightweight, and reusable datepicker component to fit within any project","actions":[{"theme":"brand","text":"Get Started","link":"/installation/"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Vuepic/vue-datepicker"},{"theme":"alt","text":"Playground","link":"https://stackblitz.com/edit/vuepic-vue-datepicker?file=src%2Fcomponents%2FPlayground.vue"}]},"features":[{"title":"Powerful","details":"Supports multiple modes such as range, various pickers, multiple calendars, custom components, and many more."},{"title":"Modular","details":"Offers a great range of features, slots and props, while providing a way to customize for specific needs."},{"title":"Customizable","details":"Fully accessible, mobile-friendly, with built-in dark and light mode, and customizable css variables."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),r={name:"index.md"};function s(p,c,l,d,m,u){const e=o("StarAndSponsor");return n(),a("div",null,[i(e)])}const f=t(r,[["render",s]]);export{k as __pageData,f as default};
diff --git a/docs/assets/index.md.B5oSc0py.lean.js b/docs/assets/index.md.DrRFJyvX.lean.js
similarity index 96%
rename from docs/assets/index.md.B5oSc0py.lean.js
rename to docs/assets/index.md.DrRFJyvX.lean.js
index fba88f42b..ab9ffe04e 100644
--- a/docs/assets/index.md.B5oSc0py.lean.js
+++ b/docs/assets/index.md.DrRFJyvX.lean.js
@@ -1 +1 @@
-import{_ as t,E as o,c as a,J as i,o as n}from"./chunks/framework.B2SzNmjg.js";const k=JSON.parse('{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","frontmatter":{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","layout":"home","hero":{"name":"Vue datepicker","text":"The most complete datepicker solution for Vue 3","tagline":"Powerful, lightweight, and reusable datepicker component to fit within any project","actions":[{"theme":"brand","text":"Get Started","link":"/installation/"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Vuepic/vue-datepicker"},{"theme":"alt","text":"Playground","link":"https://stackblitz.com/edit/vuepic-vue-datepicker?file=src%2Fcomponents%2FPlayground.vue"}]},"features":[{"title":"Powerful","details":"Supports multiple modes such as range, various pickers, multiple calendars, custom components, and many more."},{"title":"Modular","details":"Offers a great range of features, slots and props, while providing a way to customize for specific needs."},{"title":"Customizable","details":"Fully accessible, mobile-friendly, with built-in dark and light mode, and customizable css variables."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),r={name:"index.md"};function s(p,c,l,d,m,u){const e=o("StarAndSponsor");return n(),a("div",null,[i(e)])}const f=t(r,[["render",s]]);export{k as __pageData,f as default};
+import{_ as t,E as o,c as a,J as i,o as n}from"./chunks/framework.DOHaQP0J.js";const k=JSON.parse('{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","frontmatter":{"title":"Vue Datepicker","description":"Vue 3 datepicker component. Lightweight and powerful with support for the timepicker, range picker, month-year picker, text input, week numbers and many more. Options to customize the datepicker from the ground up with props, slots and custom components. Dark and light mode available.","layout":"home","hero":{"name":"Vue datepicker","text":"The most complete datepicker solution for Vue 3","tagline":"Powerful, lightweight, and reusable datepicker component to fit within any project","actions":[{"theme":"brand","text":"Get Started","link":"/installation/"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/Vuepic/vue-datepicker"},{"theme":"alt","text":"Playground","link":"https://stackblitz.com/edit/vuepic-vue-datepicker?file=src%2Fcomponents%2FPlayground.vue"}]},"features":[{"title":"Powerful","details":"Supports multiple modes such as range, various pickers, multiple calendars, custom components, and many more."},{"title":"Modular","details":"Offers a great range of features, slots and props, while providing a way to customize for specific needs."},{"title":"Customizable","details":"Fully accessible, mobile-friendly, with built-in dark and light mode, and customizable css variables."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),r={name:"index.md"};function s(p,c,l,d,m,u){const e=o("StarAndSponsor");return n(),a("div",null,[i(e)])}const f=t(r,[["render",s]]);export{k as __pageData,f as default};
diff --git a/docs/assets/installation_index.md.C9vIZfPw.js b/docs/assets/installation_index.md.CD7O8zY6.js
similarity index 98%
rename from docs/assets/installation_index.md.C9vIZfPw.js
rename to docs/assets/installation_index.md.CD7O8zY6.js
index e958e2be8..f80b4611c 100644
--- a/docs/assets/installation_index.md.C9vIZfPw.js
+++ b/docs/assets/installation_index.md.CD7O8zY6.js
@@ -1,4 +1,4 @@
-import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const o=JSON.parse('{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API","frontmatter":{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API"},"headers":[],"relativePath":"installation/index.md","filePath":"installation/index.md"}'),t={name:"installation/index.md"},p=n(`

Installation

Install the component using the preferred package manager

shell
npm install @vuepic/vue-datepicker

or

shell
yarn add @vuepic/vue-datepicker

Then import and register component

Note: css file is imported separately

Global

In the main file

js
import { createApp } from "vue";
+import{_ as s,c as i,o as a,al as n}from"./chunks/framework.DOHaQP0J.js";const o=JSON.parse('{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API","frontmatter":{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API"},"headers":[],"relativePath":"installation/index.md","filePath":"installation/index.md"}'),t={name:"installation/index.md"},p=n(`

Installation

Install the component using the preferred package manager

shell
npm install @vuepic/vue-datepicker

or

shell
yarn add @vuepic/vue-datepicker

Then import and register component

Note: css file is imported separately

Global

In the main file

js
import { createApp } from "vue";
 import App from './App.vue';
 
 import VueDatePicker from '@vuepic/vue-datepicker';
@@ -8,7 +8,7 @@ import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const o
 
 app.component('VueDatePicker', VueDatePicker);
 
-app.mount('#app');

Local

In the .vue files

vue
<template>
+app.mount('#app');

Local

In the .vue files

vue
<template>
   <VueDatePicker v-model="date"></VueDatePicker>
 </template>
 
diff --git a/docs/assets/installation_index.md.C9vIZfPw.lean.js b/docs/assets/installation_index.md.CD7O8zY6.lean.js
similarity index 79%
rename from docs/assets/installation_index.md.C9vIZfPw.lean.js
rename to docs/assets/installation_index.md.CD7O8zY6.lean.js
index 1eb7645c8..bb2c68eb7 100644
--- a/docs/assets/installation_index.md.C9vIZfPw.lean.js
+++ b/docs/assets/installation_index.md.CD7O8zY6.lean.js
@@ -1 +1 @@
-import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const o=JSON.parse('{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API","frontmatter":{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API"},"headers":[],"relativePath":"installation/index.md","filePath":"installation/index.md"}'),t={name:"installation/index.md"},p=n("",26),l=[p];function h(e,k,E,r,d,g){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{o as __pageData,y as default};
+import{_ as s,c as i,o as a,al as n}from"./chunks/framework.DOHaQP0J.js";const o=JSON.parse('{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API","frontmatter":{"title":"Installation","description":"Install guide for @vuepic/vue-datepicker for global installation, Options and Composition API"},"headers":[],"relativePath":"installation/index.md","filePath":"installation/index.md"}'),t={name:"installation/index.md"},p=n("",26),l=[p];function h(e,k,E,r,d,g){return a(),i("div",null,l)}const y=s(t,[["render",h]]);export{o as __pageData,y as default};
diff --git a/docs/assets/methods-and-events_events_index.md.B7MJzm_G.js b/docs/assets/methods-and-events_events_index.md.CA2OhRDT.js
similarity index 99%
rename from docs/assets/methods-and-events_events_index.md.B7MJzm_G.js
rename to docs/assets/methods-and-events_events_index.md.CA2OhRDT.js
index 7a8639d37..b516bde96 100644
--- a/docs/assets/methods-and-events_events_index.md.B7MJzm_G.js
+++ b/docs/assets/methods-and-events_events_index.md.CA2OhRDT.js
@@ -1,4 +1,4 @@
-import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const F=JSON.parse('{"title":"Events","description":"List of emitted events from the datepicker","frontmatter":{"lang":"en-US","title":"Events","description":"List of emitted events from the datepicker"},"headers":[],"relativePath":"methods-and-events/events/index.md","filePath":"methods-and-events/events/index.md"}'),h={name:"methods-and-events/events/index.md"},l=n(`

Events

List of available events that are emitted on some action

@update:model-value

This event is emitted when the value is selected. This is a v-model binding event

Code Example
vue
<template>
+import{_ as s,c as i,o as a,al as n}from"./chunks/framework.DOHaQP0J.js";const F=JSON.parse('{"title":"Events","description":"List of emitted events from the datepicker","frontmatter":{"lang":"en-US","title":"Events","description":"List of emitted events from the datepicker"},"headers":[],"relativePath":"methods-and-events/events/index.md","filePath":"methods-and-events/events/index.md"}'),h={name:"methods-and-events/events/index.md"},l=n(`

Events

List of available events that are emitted on some action

@update:model-value

This event is emitted when the value is selected. This is a v-model binding event

Code Example
vue
<template>
     <VueDatePicker :model-value="date" @update:model-value="handleDate" />
 </template>
 
diff --git a/docs/assets/methods-and-events_events_index.md.B7MJzm_G.lean.js b/docs/assets/methods-and-events_events_index.md.CA2OhRDT.lean.js
similarity index 77%
rename from docs/assets/methods-and-events_events_index.md.B7MJzm_G.lean.js
rename to docs/assets/methods-and-events_events_index.md.CA2OhRDT.lean.js
index dfc90edd0..ec6265445 100644
--- a/docs/assets/methods-and-events_events_index.md.B7MJzm_G.lean.js
+++ b/docs/assets/methods-and-events_events_index.md.CA2OhRDT.lean.js
@@ -1 +1 @@
-import{_ as s,c as i,o as a,al as n}from"./chunks/framework.B2SzNmjg.js";const F=JSON.parse('{"title":"Events","description":"List of emitted events from the datepicker","frontmatter":{"lang":"en-US","title":"Events","description":"List of emitted events from the datepicker"},"headers":[],"relativePath":"methods-and-events/events/index.md","filePath":"methods-and-events/events/index.md"}'),h={name:"methods-and-events/events/index.md"},l=n("",101),t=[l];function k(p,e,E,d,r,g){return a(),i("div",null,t)}const c=s(h,[["render",k]]);export{F as __pageData,c as default};
+import{_ as s,c as i,o as a,al as n}from"./chunks/framework.DOHaQP0J.js";const F=JSON.parse('{"title":"Events","description":"List of emitted events from the datepicker","frontmatter":{"lang":"en-US","title":"Events","description":"List of emitted events from the datepicker"},"headers":[],"relativePath":"methods-and-events/events/index.md","filePath":"methods-and-events/events/index.md"}'),h={name:"methods-and-events/events/index.md"},l=n("",101),t=[l];function k(p,e,E,d,r,g){return a(),i("div",null,t)}const c=s(h,[["render",k]]);export{F as __pageData,c as default};
diff --git a/docs/assets/methods-and-events_methods_index.md.0feVXw7g.js b/docs/assets/methods-and-events_methods_index.md.BNrr_BLs.js
similarity index 98%
rename from docs/assets/methods-and-events_methods_index.md.0feVXw7g.js
rename to docs/assets/methods-and-events_methods_index.md.BNrr_BLs.js
index 6dc2b5966..63dfa5d6c 100644
--- a/docs/assets/methods-and-events_methods_index.md.0feVXw7g.js
+++ b/docs/assets/methods-and-events_methods_index.md.BNrr_BLs.js
@@ -1,4 +1,4 @@
-import{_ as a,c as s,o as i,al as e}from"./chunks/framework.B2SzNmjg.js";const u=JSON.parse('{"title":"Methods","description":"List of exposed datepicker methods","frontmatter":{"lang":"en-US","title":"Methods","description":"List of exposed datepicker methods"},"headers":[],"relativePath":"methods-and-events/methods/index.md","filePath":"methods-and-events/methods/index.md"}'),t={name:"methods-and-events/methods/index.md"},l=e(`

Methods

List of available methods that you can call on the datepicker from the external code

Add a ref to the component, and call the method on that ref

Code Example
vue
<template>
+import{_ as a,c as s,o as i,al as e}from"./chunks/framework.DOHaQP0J.js";const u=JSON.parse('{"title":"Methods","description":"List of exposed datepicker methods","frontmatter":{"lang":"en-US","title":"Methods","description":"List of exposed datepicker methods"},"headers":[],"relativePath":"methods-and-events/methods/index.md","filePath":"methods-and-events/methods/index.md"}'),t={name:"methods-and-events/methods/index.md"},l=e(`

Methods

List of available methods that you can call on the datepicker from the external code

Add a ref to the component, and call the method on that ref

Code Example
vue
<template>
     <VueDatePicker v-model="date" ref="datepicker" />
 </template>
 
diff --git a/docs/assets/methods-and-events_methods_index.md.0feVXw7g.lean.js b/docs/assets/methods-and-events_methods_index.md.BNrr_BLs.lean.js
similarity index 77%
rename from docs/assets/methods-and-events_methods_index.md.0feVXw7g.lean.js
rename to docs/assets/methods-and-events_methods_index.md.BNrr_BLs.lean.js
index c52bb78b5..73256bf46 100644
--- a/docs/assets/methods-and-events_methods_index.md.0feVXw7g.lean.js
+++ b/docs/assets/methods-and-events_methods_index.md.BNrr_BLs.lean.js
@@ -1 +1 @@
-import{_ as a,c as s,o as i,al as e}from"./chunks/framework.B2SzNmjg.js";const u=JSON.parse('{"title":"Methods","description":"List of exposed datepicker methods","frontmatter":{"lang":"en-US","title":"Methods","description":"List of exposed datepicker methods"},"headers":[],"relativePath":"methods-and-events/methods/index.md","filePath":"methods-and-events/methods/index.md"}'),t={name:"methods-and-events/methods/index.md"},l=e("",30),n=[l];function h(p,r,k,d,o,c){return i(),s("div",null,n)}const g=a(t,[["render",h]]);export{u as __pageData,g as default};
+import{_ as a,c as s,o as i,al as e}from"./chunks/framework.DOHaQP0J.js";const u=JSON.parse('{"title":"Methods","description":"List of exposed datepicker methods","frontmatter":{"lang":"en-US","title":"Methods","description":"List of exposed datepicker methods"},"headers":[],"relativePath":"methods-and-events/methods/index.md","filePath":"methods-and-events/methods/index.md"}'),t={name:"methods-and-events/methods/index.md"},l=e("",30),n=[l];function h(p,r,k,d,o,c){return i(),s("div",null,n)}const g=a(t,[["render",h]]);export{u as __pageData,g as default};
diff --git a/docs/assets/migration_from-v5.md.Cq635meW.js b/docs/assets/migration_from-v5.md.BjiXXbHe.js
similarity index 99%
rename from docs/assets/migration_from-v5.md.Cq635meW.js
rename to docs/assets/migration_from-v5.md.BjiXXbHe.js
index a9c48cf96..d85f0f9c2 100644
--- a/docs/assets/migration_from-v5.md.Cq635meW.js
+++ b/docs/assets/migration_from-v5.md.BjiXXbHe.js
@@ -1,4 +1,4 @@
-import{_ as i,c as s,o as a,al as t}from"./chunks/framework.B2SzNmjg.js";const g=JSON.parse('{"title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v5.md","filePath":"migration/from-v5.md"}'),n={name:"migration/from-v5.md"},e=t(`

Migrating from v5

Breaking changes

  • month-picker and year-picker no longer have predefined value if v-model is empty
  • aria-label for arrow buttons in month-picker mode is changed to Next/Previous year
  • auto-apply-month prop is removed (will work with auto-apply prop set)
  • show-now-button prop is removed
  • month-year slot will have different props depending on the used mode
  • Property handleMonthYearChange is removed from sidebar-[left/right] slot props
  • Props changes (check props-reconfiguration)

Props reconfiguration

Based on the list of removed props, and depending on your usage, you might need to do a slight adjustments to keep prior behaviour:

multi-calendars-solo and multi-static

These 2 props are now merged into a configuration object that can be passed

to multi-calendars prop

Info

For prop definition, check multi-calendars prop

js

+import{_ as i,c as s,o as a,al as t}from"./chunks/framework.DOHaQP0J.js";const g=JSON.parse('{"title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v5.md","filePath":"migration/from-v5.md"}'),n={name:"migration/from-v5.md"},e=t(`

Migrating from v5

Breaking changes

  • month-picker and year-picker no longer have predefined value if v-model is empty
  • aria-label for arrow buttons in month-picker mode is changed to Next/Previous year
  • auto-apply-month prop is removed (will work with auto-apply prop set)
  • show-now-button prop is removed
  • month-year slot will have different props depending on the used mode
  • Property handleMonthYearChange is removed from sidebar-[left/right] slot props
  • Props changes (check props-reconfiguration)

Props reconfiguration

Based on the list of removed props, and depending on your usage, you might need to do a slight adjustments to keep prior behaviour:

multi-calendars-solo and multi-static

These 2 props are now merged into a configuration object that can be passed

to multi-calendars prop

Info

For prop definition, check multi-calendars prop

js

 <template>
 
   <VueDatePicker
diff --git a/docs/assets/migration_from-v5.md.Cq635meW.lean.js b/docs/assets/migration_from-v5.md.BjiXXbHe.lean.js
similarity index 79%
rename from docs/assets/migration_from-v5.md.Cq635meW.lean.js
rename to docs/assets/migration_from-v5.md.BjiXXbHe.lean.js
index 1859025c9..0ee503602 100644
--- a/docs/assets/migration_from-v5.md.Cq635meW.lean.js
+++ b/docs/assets/migration_from-v5.md.BjiXXbHe.lean.js
@@ -1 +1 @@
-import{_ as i,c as s,o as a,al as t}from"./chunks/framework.B2SzNmjg.js";const g=JSON.parse('{"title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v5.md","filePath":"migration/from-v5.md"}'),n={name:"migration/from-v5.md"},e=t("",26),l=[e];function p(h,o,k,r,d,c){return a(),s("div",null,l)}const y=i(n,[["render",p]]);export{g as __pageData,y as default};
+import{_ as i,c as s,o as a,al as t}from"./chunks/framework.DOHaQP0J.js";const g=JSON.parse('{"title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v5","description":"Migration guide for migrating from v5 to v6 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v5.md","filePath":"migration/from-v5.md"}'),n={name:"migration/from-v5.md"},e=t("",26),l=[e];function p(h,o,k,r,d,c){return a(),s("div",null,l)}const y=i(n,[["render",p]]);export{g as __pageData,y as default};
diff --git a/docs/assets/migration_from-v6.md.0peUcKxn.js b/docs/assets/migration_from-v6.md.cAqmszJE.js
similarity index 92%
rename from docs/assets/migration_from-v6.md.0peUcKxn.js
rename to docs/assets/migration_from-v6.md.cAqmszJE.js
index d2ce2c51c..785fdec83 100644
--- a/docs/assets/migration_from-v6.md.0peUcKxn.js
+++ b/docs/assets/migration_from-v6.md.cAqmszJE.js
@@ -1 +1 @@
-import{_ as e,c as o,o as i,al as a}from"./chunks/framework.B2SzNmjg.js";const h=JSON.parse('{"title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v6.md","filePath":"migration/from-v6.md"}'),t={name:"migration/from-v6.md"},r=a('

Migrating from v6

Breaking changes

  • Wrapper for preset-dates is changed from <div> to <template>, which may cause potential styles break if you use a slot for the preset-dates item
  • Removed deprecated props
    • Removed
      • closeOnScroll
      • modeHeight
      • allowPreventDefault
      • closeOnClearValue
      • closeOnAutoApply
      • noSwipe
      • keepActionRow
      • onClickOutside

All removed props are now part of the config prop

',4),n=[r];function l(c,d,s,g,f,m){return i(),o("div",null,n)}const _=e(t,[["render",l]]);export{h as __pageData,_ as default}; +import{_ as e,c as o,o as i,al as a}from"./chunks/framework.DOHaQP0J.js";const h=JSON.parse('{"title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v6.md","filePath":"migration/from-v6.md"}'),t={name:"migration/from-v6.md"},r=a('

Migrating from v6

Breaking changes

  • Wrapper for preset-dates is changed from <div> to <template>, which may cause potential styles break if you use a slot for the preset-dates item
  • Removed deprecated props
    • Removed
      • closeOnScroll
      • modeHeight
      • allowPreventDefault
      • closeOnClearValue
      • closeOnAutoApply
      • noSwipe
      • keepActionRow
      • onClickOutside

All removed props are now part of the config prop

',4),n=[r];function l(c,d,s,g,f,m){return i(),o("div",null,n)}const _=e(t,[["render",l]]);export{h as __pageData,_ as default}; diff --git a/docs/assets/migration_from-v6.md.0peUcKxn.lean.js b/docs/assets/migration_from-v6.md.cAqmszJE.lean.js similarity index 79% rename from docs/assets/migration_from-v6.md.0peUcKxn.lean.js rename to docs/assets/migration_from-v6.md.cAqmszJE.lean.js index f4de5ece2..4737e7542 100644 --- a/docs/assets/migration_from-v6.md.0peUcKxn.lean.js +++ b/docs/assets/migration_from-v6.md.cAqmszJE.lean.js @@ -1 +1 @@ -import{_ as e,c as o,o as i,al as a}from"./chunks/framework.B2SzNmjg.js";const h=JSON.parse('{"title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v6.md","filePath":"migration/from-v6.md"}'),t={name:"migration/from-v6.md"},r=a("",4),n=[r];function l(c,d,s,g,f,m){return i(),o("div",null,n)}const _=e(t,[["render",l]]);export{h as __pageData,_ as default}; +import{_ as e,c as o,o as i,al as a}from"./chunks/framework.DOHaQP0J.js";const h=JSON.parse('{"title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v6","description":"Migration guide for migrating from v6 to v7 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v6.md","filePath":"migration/from-v6.md"}'),t={name:"migration/from-v6.md"},r=a("",4),n=[r];function l(c,d,s,g,f,m){return i(),o("div",null,n)}const _=e(t,[["render",l]]);export{h as __pageData,_ as default}; diff --git a/docs/assets/migration_from-v7.md.BnAyArtt.js b/docs/assets/migration_from-v7.md.boLg9ElL.js similarity index 99% rename from docs/assets/migration_from-v7.md.BnAyArtt.js rename to docs/assets/migration_from-v7.md.boLg9ElL.js index 28ed373b5..28c2502bd 100644 --- a/docs/assets/migration_from-v7.md.BnAyArtt.js +++ b/docs/assets/migration_from-v7.md.boLg9ElL.js @@ -1,4 +1,4 @@ -import{_ as i,c as s,o as a,al as t}from"./chunks/framework.B2SzNmjg.js";const y=JSON.parse('{"title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v7.md","filePath":"migration/from-v7.md"}'),l={name:"migration/from-v7.md"},h=t(`

Migrating from v7

Breaking changes

  • Default week-picker format is changed to week numbers
  • Tabbing out from the overlay will shift focus to the action row button if present
  • Removed deprecated props
    • Removed
      • highlight-week-days
      • highlight-disabled-days
      • highlight prop types
        • Date[]
        • string[]
        • number[]
  • id for calendar days is changed to formatted value instead of ISO value
  • date-fns-tz library is removed
  • date-fns library is updated to v3

highlight

Info

For prop definition, check highlight prop

js
<template>
+import{_ as i,c as s,o as a,al as t}from"./chunks/framework.DOHaQP0J.js";const y=JSON.parse('{"title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v7.md","filePath":"migration/from-v7.md"}'),l={name:"migration/from-v7.md"},h=t(`

Migrating from v7

Breaking changes

  • Default week-picker format is changed to week numbers
  • Tabbing out from the overlay will shift focus to the action row button if present
  • Removed deprecated props
    • Removed
      • highlight-week-days
      • highlight-disabled-days
      • highlight prop types
        • Date[]
        • string[]
        • number[]
  • id for calendar days is changed to formatted value instead of ISO value
  • date-fns-tz library is removed
  • date-fns library is updated to v3

highlight

Info

For prop definition, check highlight prop

js
<template>
   <VueDatePicker
     :highlight="[new Date()]"
     :highlight="{ days: [ new Date() ] }"
diff --git a/docs/assets/migration_from-v7.md.BnAyArtt.lean.js b/docs/assets/migration_from-v7.md.boLg9ElL.lean.js
similarity index 79%
rename from docs/assets/migration_from-v7.md.BnAyArtt.lean.js
rename to docs/assets/migration_from-v7.md.boLg9ElL.lean.js
index 95760ce2f..847947f79 100644
--- a/docs/assets/migration_from-v7.md.BnAyArtt.lean.js
+++ b/docs/assets/migration_from-v7.md.boLg9ElL.lean.js
@@ -1 +1 @@
-import{_ as i,c as s,o as a,al as t}from"./chunks/framework.B2SzNmjg.js";const y=JSON.parse('{"title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v7.md","filePath":"migration/from-v7.md"}'),l={name:"migration/from-v7.md"},h=t("",18),e=[h];function n(k,p,d,o,r,g){return a(),s("div",null,e)}const E=i(l,[["render",n]]);export{y as __pageData,E as default};
+import{_ as i,c as s,o as a,al as t}from"./chunks/framework.DOHaQP0J.js";const y=JSON.parse('{"title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes","frontmatter":{"lang":"en-US","title":"Migration from v7","description":"Migration guide for migrating from v7 to v8 and notifying of breaking changes"},"headers":[],"relativePath":"migration/from-v7.md","filePath":"migration/from-v7.md"}'),l={name:"migration/from-v7.md"},h=t("",18),e=[h];function n(k,p,d,o,r,g){return a(),s("div",null,e)}const E=i(l,[["render",n]]);export{y as __pageData,E as default};
diff --git a/docs/assets/props_calendar-configuration_index.md.DRps1Kaw.js b/docs/assets/props_calendar-configuration_index.md.Pn_AocwL.js
similarity index 99%
rename from docs/assets/props_calendar-configuration_index.md.DRps1Kaw.js
rename to docs/assets/props_calendar-configuration_index.md.Pn_AocwL.js
index 8ac7125b2..a26b25838 100644
--- a/docs/assets/props_calendar-configuration_index.md.DRps1Kaw.js
+++ b/docs/assets/props_calendar-configuration_index.md.Pn_AocwL.js
@@ -1,4 +1,4 @@
-import{_ as E,E as n,c as d,J as i,al as s,o as r}from"./chunks/framework.B2SzNmjg.js";const Y=JSON.parse('{"title":"Props - Calendar configuration","description":"Configuration for the calendar","frontmatter":{"lang":"en-US","title":"Props - Calendar configuration","description":"Configuration for the calendar"},"headers":[],"relativePath":"props/calendar-configuration/index.md","filePath":"props/calendar-configuration/index.md"}'),g={name:"props/calendar-configuration/index.md"},y=s(`

Calendar configuration

Configure calendar options such as behavior or available dates

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, weekNumbers as week-numbers and so on

calendar

Customize the calendar view, filter out weeks, add or remove custom classes

Warning

Do not modify date values

  • Type: (weeks: CalendarWeek[]) => CalendarWeek[];
  • Default: null
ts
interface CalendarWeek {
+import{_ as E,E as n,c as d,J as i,al as s,o as r}from"./chunks/framework.DOHaQP0J.js";const Y=JSON.parse('{"title":"Props - Calendar configuration","description":"Configuration for the calendar","frontmatter":{"lang":"en-US","title":"Props - Calendar configuration","description":"Configuration for the calendar"},"headers":[],"relativePath":"props/calendar-configuration/index.md","filePath":"props/calendar-configuration/index.md"}'),g={name:"props/calendar-configuration/index.md"},y=s(`

Calendar configuration

Configure calendar options such as behavior or available dates

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, weekNumbers as week-numbers and so on

calendar

Customize the calendar view, filter out weeks, add or remove custom classes

Warning

Do not modify date values

  • Type: (weeks: CalendarWeek[]) => CalendarWeek[];
  • Default: null
ts
interface CalendarWeek {
   days: {
     text: number | string; // Value displayed in the calendar day box
     value: Date; // Date that is going to be selected, do not modify
diff --git a/docs/assets/props_calendar-configuration_index.md.DRps1Kaw.lean.js b/docs/assets/props_calendar-configuration_index.md.Pn_AocwL.lean.js
similarity index 96%
rename from docs/assets/props_calendar-configuration_index.md.DRps1Kaw.lean.js
rename to docs/assets/props_calendar-configuration_index.md.Pn_AocwL.lean.js
index 44a11c364..3e7cc82dc 100644
--- a/docs/assets/props_calendar-configuration_index.md.DRps1Kaw.lean.js
+++ b/docs/assets/props_calendar-configuration_index.md.Pn_AocwL.lean.js
@@ -1 +1 @@
-import{_ as E,E as n,c as d,J as i,al as s,o as r}from"./chunks/framework.B2SzNmjg.js";const Y=JSON.parse('{"title":"Props - Calendar configuration","description":"Configuration for the calendar","frontmatter":{"lang":"en-US","title":"Props - Calendar configuration","description":"Configuration for the calendar"},"headers":[],"relativePath":"props/calendar-configuration/index.md","filePath":"props/calendar-configuration/index.md"}'),g={name:"props/calendar-configuration/index.md"},y=s("",8),F=s("",5),o=s("",4),c=s("",4),u=s("",4),C=s("",4),D=s("",4),m=s("",4),A=s("",4),B=s("",4),_=s("",5),b=s("",4),v=s("",4),f=s("",4),T=s("",4),w=s("",5),q=s("",4),P=s("",5),x=s("",1);function S(V,I,N,R,M,W){const h=n("CustomCalendarDemo"),a=n("GlobalDemo"),l=n("MinMaxDemo"),t=n("EmptyDemo"),k=n("FiltersDemo"),p=n("DisabledDatesDemo"),e=n("DisabledRangeDateDemoDeprecated");return r(),d("div",null,[y,i(h),F,i(a,{"week-numbers":{type:"iso"}}),o,i(a,{"hide-offset-dates":!0}),c,i(a,{"min-date":new Date},null,8,["min-date"]),u,i(a,{"max-date":new Date},null,8,["max-date"]),C,i(l),D,i(t,{"ignore-time-validation":!0,"max-date":new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate()),placeholder:"Select Date"},null,8,["max-date"]),m,i(t,{"start-date":new Date(2020,1),placeholder:"Select Date"},null,8,["start-date"]),A,i(a,{"start-date":new Date(2020,1),"focus-start-date":!0,placeholder:"Select Date"},null,8,["start-date"]),B,i(a,{"week-start":"0"}),_,i(k),b,i(a,{"disable-month-year-select":!0}),v,i(a,{"year-range":[2020,2040]}),f,i(a,{"reverse-years":!0,"year-range":[2020,2040]}),T,i(t,{"allowed-dates":[new Date],placeholder:"Select Date"},null,8,["allowed-dates"]),w,i(p),q,i(t,{"disabled-week-days":[6,0],placeholder:"Select Date"}),P,i(e),x])}const $=E(g,[["render",S]]);export{Y as __pageData,$ as default};
+import{_ as E,E as n,c as d,J as i,al as s,o as r}from"./chunks/framework.DOHaQP0J.js";const Y=JSON.parse('{"title":"Props - Calendar configuration","description":"Configuration for the calendar","frontmatter":{"lang":"en-US","title":"Props - Calendar configuration","description":"Configuration for the calendar"},"headers":[],"relativePath":"props/calendar-configuration/index.md","filePath":"props/calendar-configuration/index.md"}'),g={name:"props/calendar-configuration/index.md"},y=s("",8),F=s("",5),o=s("",4),c=s("",4),u=s("",4),C=s("",4),D=s("",4),m=s("",4),A=s("",4),B=s("",4),_=s("",5),b=s("",4),v=s("",4),f=s("",4),T=s("",4),w=s("",5),q=s("",4),P=s("",5),x=s("",1);function S(V,I,N,R,M,W){const h=n("CustomCalendarDemo"),a=n("GlobalDemo"),l=n("MinMaxDemo"),t=n("EmptyDemo"),k=n("FiltersDemo"),p=n("DisabledDatesDemo"),e=n("DisabledRangeDateDemoDeprecated");return r(),d("div",null,[y,i(h),F,i(a,{"week-numbers":{type:"iso"}}),o,i(a,{"hide-offset-dates":!0}),c,i(a,{"min-date":new Date},null,8,["min-date"]),u,i(a,{"max-date":new Date},null,8,["max-date"]),C,i(l),D,i(t,{"ignore-time-validation":!0,"max-date":new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate()),placeholder:"Select Date"},null,8,["max-date"]),m,i(t,{"start-date":new Date(2020,1),placeholder:"Select Date"},null,8,["start-date"]),A,i(a,{"start-date":new Date(2020,1),"focus-start-date":!0,placeholder:"Select Date"},null,8,["start-date"]),B,i(a,{"week-start":"0"}),_,i(k),b,i(a,{"disable-month-year-select":!0}),v,i(a,{"year-range":[2020,2040]}),f,i(a,{"reverse-years":!0,"year-range":[2020,2040]}),T,i(t,{"allowed-dates":[new Date],placeholder:"Select Date"},null,8,["allowed-dates"]),w,i(p),q,i(t,{"disabled-week-days":[6,0],placeholder:"Select Date"}),P,i(e),x])}const $=E(g,[["render",S]]);export{Y as __pageData,$ as default};
diff --git a/docs/assets/props_formatting_index.md.C-P006Nh.js b/docs/assets/props_formatting_index.md.DCXLBBGM.js
similarity index 99%
rename from docs/assets/props_formatting_index.md.C-P006Nh.js
rename to docs/assets/props_formatting_index.md.DCXLBBGM.js
index e15396c77..0d56420ab 100644
--- a/docs/assets/props_formatting_index.md.C-P006Nh.js
+++ b/docs/assets/props_formatting_index.md.DCXLBBGM.js
@@ -1,4 +1,4 @@
-import{_ as l,E as i,c as e,J as a,al as s,o as k}from"./chunks/framework.B2SzNmjg.js";const C=JSON.parse('{"title":"Props - Formatting","description":"Customize the default formatting of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Formatting","description":"Customize the default formatting of the datepicker"},"headers":[],"relativePath":"props/formatting/index.md","filePath":"props/formatting/index.md"}'),p={name:"props/formatting/index.md"},r=s('

Formatting

Format options for the value displayed in the input or preview

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, previewFormat as preview-format and so on

format

Format the value of the date(s) in the input field. Formatting is done automatically via provided string format. However, you can override the default format by providing a custom formatter function

  • Type: string | ((date: Date) => string) | ((dates: Date[]) => string);
  • Default:
    • Single picker: 'MM/dd/yyyy HH:mm'
    • Range picker: 'MM/dd/yyyy HH:mm - MM/dd/yyyy HH:mm'
    • Month picker: 'MM/yyyy'
    • Time picker: 'HH:mm'
    • Time picker range: 'HH:mm - HH:mm'
    • Week picker 'RR-yyyy' | 'ww-yyyy' (depends on week numbering)

Info

If is-24 prop is set to false, hours format will be changed to 'hh:mm aa'

For additional information on how to pass custom string format you can check Unicode tokens

',8),E=s(`
Code Example
vue
<template>
+import{_ as l,E as i,c as e,J as a,al as s,o as k}from"./chunks/framework.DOHaQP0J.js";const C=JSON.parse('{"title":"Props - Formatting","description":"Customize the default formatting of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Formatting","description":"Customize the default formatting of the datepicker"},"headers":[],"relativePath":"props/formatting/index.md","filePath":"props/formatting/index.md"}'),p={name:"props/formatting/index.md"},r=s('

Formatting

Format options for the value displayed in the input or preview

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, previewFormat as preview-format and so on

format

Format the value of the date(s) in the input field. Formatting is done automatically via provided string format. However, you can override the default format by providing a custom formatter function

  • Type: string | ((date: Date) => string) | ((dates: Date[]) => string);
  • Default:
    • Single picker: 'MM/dd/yyyy HH:mm'
    • Range picker: 'MM/dd/yyyy HH:mm - MM/dd/yyyy HH:mm'
    • Month picker: 'MM/yyyy'
    • Time picker: 'HH:mm'
    • Time picker range: 'HH:mm - HH:mm'
    • Week picker 'RR-yyyy' | 'ww-yyyy' (depends on week numbering)

Info

If is-24 prop is set to false, hours format will be changed to 'hh:mm aa'

For additional information on how to pass custom string format you can check Unicode tokens

',8),E=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" :format="format" />
 </template>
 
diff --git a/docs/assets/props_formatting_index.md.C-P006Nh.lean.js b/docs/assets/props_formatting_index.md.DCXLBBGM.lean.js
similarity index 91%
rename from docs/assets/props_formatting_index.md.C-P006Nh.lean.js
rename to docs/assets/props_formatting_index.md.DCXLBBGM.lean.js
index ce6541bf3..3f50b6faa 100644
--- a/docs/assets/props_formatting_index.md.C-P006Nh.lean.js
+++ b/docs/assets/props_formatting_index.md.DCXLBBGM.lean.js
@@ -1 +1 @@
-import{_ as l,E as i,c as e,J as a,al as s,o as k}from"./chunks/framework.B2SzNmjg.js";const C=JSON.parse('{"title":"Props - Formatting","description":"Customize the default formatting of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Formatting","description":"Customize the default formatting of the datepicker"},"headers":[],"relativePath":"props/formatting/index.md","filePath":"props/formatting/index.md"}'),p={name:"props/formatting/index.md"},r=s("",8),E=s("",6),d=s("",4),o=s("",1);function g(y,c,F,m,u,f){const t=i("FormatDemo"),n=i("PreviewFormatDemo"),h=i("GlobalDemo");return k(),e("div",null,[r,a(t),E,a(n),d,a(h,{"month-name-format":"long"}),o])}const A=l(p,[["render",g]]);export{C as __pageData,A as default};
+import{_ as l,E as i,c as e,J as a,al as s,o as k}from"./chunks/framework.DOHaQP0J.js";const C=JSON.parse('{"title":"Props - Formatting","description":"Customize the default formatting of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Formatting","description":"Customize the default formatting of the datepicker"},"headers":[],"relativePath":"props/formatting/index.md","filePath":"props/formatting/index.md"}'),p={name:"props/formatting/index.md"},r=s("",8),E=s("",6),d=s("",4),o=s("",1);function g(y,c,F,m,u,f){const t=i("FormatDemo"),n=i("PreviewFormatDemo"),h=i("GlobalDemo");return k(),e("div",null,[r,a(t),E,a(n),d,a(h,{"month-name-format":"long"}),o])}const A=l(p,[["render",g]]);export{C as __pageData,A as default};
diff --git a/docs/assets/props_general-configuration_index.md.CPQRcHct.js b/docs/assets/props_general-configuration_index.md.BFu_0nw_.js
similarity index 99%
rename from docs/assets/props_general-configuration_index.md.CPQRcHct.js
rename to docs/assets/props_general-configuration_index.md.BFu_0nw_.js
index 532dbdc84..969aaf692 100644
--- a/docs/assets/props_general-configuration_index.md.CPQRcHct.js
+++ b/docs/assets/props_general-configuration_index.md.BFu_0nw_.js
@@ -1,4 +1,4 @@
-import{_ as r,E as n,c as g,J as i,m as h,a as t,al as s,o as y}from"./chunks/framework.B2SzNmjg.js";const z=JSON.parse('{"title":"Props - General configuration","description":"General behavior props configuration","frontmatter":{"lang":"en-US","title":"Props - General configuration","description":"General behavior props configuration"},"headers":[],"relativePath":"props/general-configuration/index.md","filePath":"props/general-configuration/index.md"}'),o={name:"props/general-configuration/index.md"},c=s('

General configuration

General behavior props configuration

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, monthChangeOnScroll as month-change-on-scroll and so on

uid

Pass an id to the input and menu elements. If provided, you can select menu id as dp-menu-${uid} and input id as dp-input-${uid}

  • Type: string
  • Default: null
',6),F=s(`
Code Example
vue
<template>
+import{_ as r,E as n,c as g,J as i,m as h,a as t,al as s,o as y}from"./chunks/framework.DOHaQP0J.js";const z=JSON.parse('{"title":"Props - General configuration","description":"General behavior props configuration","frontmatter":{"lang":"en-US","title":"Props - General configuration","description":"General behavior props configuration"},"headers":[],"relativePath":"props/general-configuration/index.md","filePath":"props/general-configuration/index.md"}'),o={name:"props/general-configuration/index.md"},c=s('

General configuration

General behavior props configuration

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, monthChangeOnScroll as month-change-on-scroll and so on

uid

Pass an id to the input and menu elements. If provided, you can select menu id as dp-menu-${uid} and input id as dp-input-${uid}

  • Type: string
  • Default: null
',6),F=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" uid="demo" />
 </template>
 
diff --git a/docs/assets/props_general-configuration_index.md.CPQRcHct.lean.js b/docs/assets/props_general-configuration_index.md.BFu_0nw_.lean.js
similarity index 96%
rename from docs/assets/props_general-configuration_index.md.CPQRcHct.lean.js
rename to docs/assets/props_general-configuration_index.md.BFu_0nw_.lean.js
index 91d7ccb63..58ae040cc 100644
--- a/docs/assets/props_general-configuration_index.md.CPQRcHct.lean.js
+++ b/docs/assets/props_general-configuration_index.md.BFu_0nw_.lean.js
@@ -1 +1 @@
-import{_ as r,E as n,c as g,J as i,m as h,a as t,al as s,o as y}from"./chunks/framework.B2SzNmjg.js";const z=JSON.parse('{"title":"Props - General configuration","description":"General behavior props configuration","frontmatter":{"lang":"en-US","title":"Props - General configuration","description":"General behavior props configuration"},"headers":[],"relativePath":"props/general-configuration/index.md","filePath":"props/general-configuration/index.md"}'),o={name:"props/general-configuration/index.md"},c=s("",6),F=s("",5),u=s("",1),C={id:"model-value",tabindex:"-1"},m=h("a",{class:"header-anchor",href:"#model-value","aria-label":'Permalink to "model-value "'},"​",-1),D=s("",7),A=s("",4),B=s("",5),_=s("",4),b=s("",4),v=s("",5),f=s("",5),T=s("",4),q=s("",4),w=s("",4),P=s("",4),S=s("",4),V=s("",4),x=s("",5),I=s("",3),N=s("",4),R=s("",11),O=s("",1);function M(H,G,W,$,J,U){const a=n("GlobalDemo"),k=n("Badge"),p=n("DisplayModelDemo"),l=n("EmptyDemo"),e=n("DemoMarkers"),E=n("DemoHighlight"),d=n("RequiredDemo");return y(),g("div",null,[c,i(a,{uid:"demo"}),F,i(a,{"month-change-on-scroll":!1}),u,h("h2",C,[t("model-value "),i(k,{type:"tip",text:"v-model"}),t(),m]),D,i(p,{modelType:"dd.MM.yyyy"}),A,i(a,{clearable:!1}),B,i(a,{"auto-apply":!0}),_,i(l,{placeholder:"Select Date"}),b,i(l,{"no-today":!0,placeholder:"Select Date"}),v,i(e),f,i(E),T,i(a,{disabled:!0}),q,i(a,{readonly:!0}),w,i(d,{required:!0}),P,i(a,{name:"date-picker"}),S,i(a,{autocomplete:"off"}),V,i(a,{"hide-navigation":["month","year"]}),x,i(a,{"action-row":{showNow:!0,showPreview:!1}}),I,i(a,{"disable-year-select":!0}),N,i(a,{"year-first":!0}),R,i(a,{loading:!0}),O])}const Q=r(o,[["render",M]]);export{z as __pageData,Q as default};
+import{_ as r,E as n,c as g,J as i,m as h,a as t,al as s,o as y}from"./chunks/framework.DOHaQP0J.js";const z=JSON.parse('{"title":"Props - General configuration","description":"General behavior props configuration","frontmatter":{"lang":"en-US","title":"Props - General configuration","description":"General behavior props configuration"},"headers":[],"relativePath":"props/general-configuration/index.md","filePath":"props/general-configuration/index.md"}'),o={name:"props/general-configuration/index.md"},c=s("",6),F=s("",5),u=s("",1),C={id:"model-value",tabindex:"-1"},m=h("a",{class:"header-anchor",href:"#model-value","aria-label":'Permalink to "model-value "'},"​",-1),D=s("",7),A=s("",4),B=s("",5),_=s("",4),b=s("",4),v=s("",5),f=s("",5),T=s("",4),q=s("",4),w=s("",4),P=s("",4),S=s("",4),V=s("",4),x=s("",5),I=s("",3),N=s("",4),R=s("",11),O=s("",1);function M(H,G,W,$,J,U){const a=n("GlobalDemo"),k=n("Badge"),p=n("DisplayModelDemo"),l=n("EmptyDemo"),e=n("DemoMarkers"),E=n("DemoHighlight"),d=n("RequiredDemo");return y(),g("div",null,[c,i(a,{uid:"demo"}),F,i(a,{"month-change-on-scroll":!1}),u,h("h2",C,[t("model-value "),i(k,{type:"tip",text:"v-model"}),t(),m]),D,i(p,{modelType:"dd.MM.yyyy"}),A,i(a,{clearable:!1}),B,i(a,{"auto-apply":!0}),_,i(l,{placeholder:"Select Date"}),b,i(l,{"no-today":!0,placeholder:"Select Date"}),v,i(e),f,i(E),T,i(a,{disabled:!0}),q,i(a,{readonly:!0}),w,i(d,{required:!0}),P,i(a,{name:"date-picker"}),S,i(a,{autocomplete:"off"}),V,i(a,{"hide-navigation":["month","year"]}),x,i(a,{"action-row":{showNow:!0,showPreview:!1}}),I,i(a,{"disable-year-select":!0}),N,i(a,{"year-first":!0}),R,i(a,{loading:!0}),O])}const Q=r(o,[["render",M]]);export{z as __pageData,Q as default};
diff --git a/docs/assets/props_keyboard_index.md.BnGeou5_.js b/docs/assets/props_keyboard_index.md.DAn71TE9.js
similarity index 99%
rename from docs/assets/props_keyboard_index.md.BnGeou5_.js
rename to docs/assets/props_keyboard_index.md.DAn71TE9.js
index 7ac9d83bc..0a3fd62eb 100644
--- a/docs/assets/props_keyboard_index.md.BnGeou5_.js
+++ b/docs/assets/props_keyboard_index.md.DAn71TE9.js
@@ -1,4 +1,4 @@
-import{_ as t,E as n,c as e,J as a,al as s,o as l}from"./chunks/framework.B2SzNmjg.js";const C=JSON.parse('{"title":"Props - Keyboard","description":"Datepicker keyboard actions configuration","frontmatter":{"lang":"en-US","title":"Props - Keyboard","description":"Datepicker keyboard actions configuration"},"headers":[],"relativePath":"props/keyboard/index.md","filePath":"props/keyboard/index.md"}'),h={name:"props/keyboard/index.md"},p=s('

Keyboard

Configure keyboard actions

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, escClose as esc-close and so on

Info

You can press tab key in the menu, and it will autofocus elements, pressing enter will do a click action like open overlay or select a date.

All keyboard events are enabled by default

esc-close

Esc key closes the menu

  • Type: boolean
  • Default: true
',7),k=s(`
Code Example
vue
<template>
+import{_ as t,E as n,c as e,J as a,al as s,o as l}from"./chunks/framework.DOHaQP0J.js";const C=JSON.parse('{"title":"Props - Keyboard","description":"Datepicker keyboard actions configuration","frontmatter":{"lang":"en-US","title":"Props - Keyboard","description":"Datepicker keyboard actions configuration"},"headers":[],"relativePath":"props/keyboard/index.md","filePath":"props/keyboard/index.md"}'),h={name:"props/keyboard/index.md"},p=s('

Keyboard

Configure keyboard actions

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, escClose as esc-close and so on

Info

You can press tab key in the menu, and it will autofocus elements, pressing enter will do a click action like open overlay or select a date.

All keyboard events are enabled by default

esc-close

Esc key closes the menu

  • Type: boolean
  • Default: true
',7),k=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" :esc-close="false" />
 </template>
 
diff --git a/docs/assets/props_keyboard_index.md.BnGeou5_.lean.js b/docs/assets/props_keyboard_index.md.DAn71TE9.lean.js
similarity index 91%
rename from docs/assets/props_keyboard_index.md.BnGeou5_.lean.js
rename to docs/assets/props_keyboard_index.md.DAn71TE9.lean.js
index 82ee9a38c..a24f6f6f0 100644
--- a/docs/assets/props_keyboard_index.md.BnGeou5_.lean.js
+++ b/docs/assets/props_keyboard_index.md.DAn71TE9.lean.js
@@ -1 +1 @@
-import{_ as t,E as n,c as e,J as a,al as s,o as l}from"./chunks/framework.B2SzNmjg.js";const C=JSON.parse('{"title":"Props - Keyboard","description":"Datepicker keyboard actions configuration","frontmatter":{"lang":"en-US","title":"Props - Keyboard","description":"Datepicker keyboard actions configuration"},"headers":[],"relativePath":"props/keyboard/index.md","filePath":"props/keyboard/index.md"}'),h={name:"props/keyboard/index.md"},p=s("",7),k=s("",4),r=s("",4),E=s("",5),d=s("",1);function o(c,g,y,u,F,m){const i=n("GlobalDemo");return l(),e("div",null,[p,a(i,{"esc-close":!1}),k,a(i,{"space-confirm":!1}),r,a(i,{"month-change-on-arrows":!1}),E,a(i,{"arrow-navigation":!0}),d])}const b=t(h,[["render",o]]);export{C as __pageData,b as default};
+import{_ as t,E as n,c as e,J as a,al as s,o as l}from"./chunks/framework.DOHaQP0J.js";const C=JSON.parse('{"title":"Props - Keyboard","description":"Datepicker keyboard actions configuration","frontmatter":{"lang":"en-US","title":"Props - Keyboard","description":"Datepicker keyboard actions configuration"},"headers":[],"relativePath":"props/keyboard/index.md","filePath":"props/keyboard/index.md"}'),h={name:"props/keyboard/index.md"},p=s("",7),k=s("",4),r=s("",4),E=s("",5),d=s("",1);function o(c,g,y,u,F,m){const i=n("GlobalDemo");return l(),e("div",null,[p,a(i,{"esc-close":!1}),k,a(i,{"space-confirm":!1}),r,a(i,{"month-change-on-arrows":!1}),E,a(i,{"arrow-navigation":!0}),d])}const b=t(h,[["render",o]]);export{C as __pageData,b as default};
diff --git a/docs/assets/props_localization_index.md.CaIi1TC8.js b/docs/assets/props_localization_index.md.B115cafC.js
similarity index 99%
rename from docs/assets/props_localization_index.md.CaIi1TC8.js
rename to docs/assets/props_localization_index.md.B115cafC.js
index dc2f0b9a6..1e7c6bc90 100644
--- a/docs/assets/props_localization_index.md.CaIi1TC8.js
+++ b/docs/assets/props_localization_index.md.B115cafC.js
@@ -1,4 +1,4 @@
-import{_ as h,E as t,c as k,J as i,al as s,o as p}from"./chunks/framework.B2SzNmjg.js";const v=JSON.parse('{"title":"Props - Localization","description":"Customize the localization of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Localization","description":"Customize the localization of the datepicker"},"headers":[],"relativePath":"props/localization/index.md","filePath":"props/localization/index.md"}'),e={name:"props/localization/index.md"},E=s('

Localization

Localization options and label props

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, formatLocale as format-locale and so on

locale

Set datepicker locale. Datepicker will use built in javascript locale formatter to extract month and weekday names

  • Type: string
  • Default: 'en-US'
',6),r=s(`
Code Example
vue
<template>
+import{_ as h,E as t,c as k,J as i,al as s,o as p}from"./chunks/framework.DOHaQP0J.js";const v=JSON.parse('{"title":"Props - Localization","description":"Customize the localization of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Localization","description":"Customize the localization of the datepicker"},"headers":[],"relativePath":"props/localization/index.md","filePath":"props/localization/index.md"}'),e={name:"props/localization/index.md"},E=s('

Localization

Localization options and label props

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, formatLocale as format-locale and so on

locale

Set datepicker locale. Datepicker will use built in javascript locale formatter to extract month and weekday names

  • Type: string
  • Default: 'en-US'
',6),r=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" locale="de" cancelText="abbrechen" selectText="auswählen" />
 </template>
 
diff --git a/docs/assets/props_localization_index.md.CaIi1TC8.lean.js b/docs/assets/props_localization_index.md.B115cafC.lean.js
similarity index 93%
rename from docs/assets/props_localization_index.md.CaIi1TC8.lean.js
rename to docs/assets/props_localization_index.md.B115cafC.lean.js
index 34dcbd380..2acd4c493 100644
--- a/docs/assets/props_localization_index.md.CaIi1TC8.lean.js
+++ b/docs/assets/props_localization_index.md.B115cafC.lean.js
@@ -1 +1 @@
-import{_ as h,E as t,c as k,J as i,al as s,o as p}from"./chunks/framework.B2SzNmjg.js";const v=JSON.parse('{"title":"Props - Localization","description":"Customize the localization of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Localization","description":"Customize the localization of the datepicker"},"headers":[],"relativePath":"props/localization/index.md","filePath":"props/localization/index.md"}'),e={name:"props/localization/index.md"},E=s("",6),r=s("",6),d=s("",4),g=s("",4),y=s("",4),o=s("",4),F=s("",11),c=s("",1);function u(C,m,A,B,D,_){const a=t("GlobalDemo"),n=t("LocalizedOutput"),l=t("EmptyDemo");return p(),k("div",null,[E,i(a,{locale:"de",cancelText:"abbrechen",selectText:"auswählen"}),r,i(n),d,i(a,{"select-text":"Pick"}),g,i(a,{"cancel-text":"Close"}),y,i(l,{"action-row":{showNow:!0},placeholder:"Select Date","now-button-label":"Current"}),o,i(a,{"week-numbers":"iso","week-num-name":"We"}),F,i(a,{"day-names":["1","2","3","4","5","6","7"]}),c])}const f=h(e,[["render",u]]);export{v as __pageData,f as default};
+import{_ as h,E as t,c as k,J as i,al as s,o as p}from"./chunks/framework.DOHaQP0J.js";const v=JSON.parse('{"title":"Props - Localization","description":"Customize the localization of the datepicker","frontmatter":{"lang":"en-US","title":"Props - Localization","description":"Customize the localization of the datepicker"},"headers":[],"relativePath":"props/localization/index.md","filePath":"props/localization/index.md"}'),e={name:"props/localization/index.md"},E=s("",6),r=s("",6),d=s("",4),g=s("",4),y=s("",4),o=s("",4),F=s("",11),c=s("",1);function u(C,m,A,B,D,_){const a=t("GlobalDemo"),n=t("LocalizedOutput"),l=t("EmptyDemo");return p(),k("div",null,[E,i(a,{locale:"de",cancelText:"abbrechen",selectText:"auswählen"}),r,i(n),d,i(a,{"select-text":"Pick"}),g,i(a,{"cancel-text":"Close"}),y,i(l,{"action-row":{showNow:!0},placeholder:"Select Date","now-button-label":"Current"}),o,i(a,{"week-numbers":"iso","week-num-name":"We"}),F,i(a,{"day-names":["1","2","3","4","5","6","7"]}),c])}const f=h(e,[["render",u]]);export{v as __pageData,f as default};
diff --git a/docs/assets/props_look-and-feel_index.md.Bm5WJLuV.js b/docs/assets/props_look-and-feel_index.md.CoCqEdWD.js
similarity index 99%
rename from docs/assets/props_look-and-feel_index.md.Bm5WJLuV.js
rename to docs/assets/props_look-and-feel_index.md.CoCqEdWD.js
index 7d5bb5ea1..81364443a 100644
--- a/docs/assets/props_look-and-feel_index.md.Bm5WJLuV.js
+++ b/docs/assets/props_look-and-feel_index.md.CoCqEdWD.js
@@ -1,4 +1,4 @@
-import{_ as k,E as n,c as p,J as i,al as s,o as e}from"./chunks/framework.B2SzNmjg.js";const x=JSON.parse('{"title":"Props - Look and feel","description":"Look and feel customization options","frontmatter":{"lang":"en-US","title":"Props - Look and feel","description":"Look and feel customization options"},"headers":[],"relativePath":"props/look-and-feel/index.md","filePath":"props/look-and-feel/index.md"}'),E={name:"props/look-and-feel/index.md"},d=s(`

Look and feel

Customization options

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, sixWeeks as six-weeks and so on

transitions

Control transitions inside the menu. You can define your own or disable them. Datepicker uses Vue built in transitions component for transitions control. To configure you own, please check the Vue documentation and provide a transition name in the prop

  • Type: Transitions | boolean
  • Default: true
ts
interface Transitions {
+import{_ as k,E as n,c as p,J as i,al as s,o as e}from"./chunks/framework.DOHaQP0J.js";const x=JSON.parse('{"title":"Props - Look and feel","description":"Look and feel customization options","frontmatter":{"lang":"en-US","title":"Props - Look and feel","description":"Look and feel customization options"},"headers":[],"relativePath":"props/look-and-feel/index.md","filePath":"props/look-and-feel/index.md"}'),E={name:"props/look-and-feel/index.md"},d=s(`

Look and feel

Customization options

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, sixWeeks as six-weeks and so on

transitions

Control transitions inside the menu. You can define your own or disable them. Datepicker uses Vue built in transitions component for transitions control. To configure you own, please check the Vue documentation and provide a transition name in the prop

  • Type: Transitions | boolean
  • Default: true
ts
interface Transitions {
     open?: string; 
     close?: string; 
     next?: string; 
diff --git a/docs/assets/props_look-and-feel_index.md.Bm5WJLuV.lean.js b/docs/assets/props_look-and-feel_index.md.CoCqEdWD.lean.js
similarity index 94%
rename from docs/assets/props_look-and-feel_index.md.Bm5WJLuV.lean.js
rename to docs/assets/props_look-and-feel_index.md.CoCqEdWD.lean.js
index 618a5f921..2684c6dcd 100644
--- a/docs/assets/props_look-and-feel_index.md.Bm5WJLuV.lean.js
+++ b/docs/assets/props_look-and-feel_index.md.CoCqEdWD.lean.js
@@ -1 +1 @@
-import{_ as k,E as n,c as p,J as i,al as s,o as e}from"./chunks/framework.B2SzNmjg.js";const x=JSON.parse('{"title":"Props - Look and feel","description":"Look and feel customization options","frontmatter":{"lang":"en-US","title":"Props - Look and feel","description":"Look and feel customization options"},"headers":[],"relativePath":"props/look-and-feel/index.md","filePath":"props/look-and-feel/index.md"}'),E={name:"props/look-and-feel/index.md"},d=s("",8),r=s("",5),g=s("",4),y=s("",4),o=s("",4),c=s("",4),F=s("",4),u=s("",4),C=s("",4),m=s("",4),D=s("",4),A=s("",1);function B(_,v,f,b,T,q){const a=n("GlobalDemo"),l=n("SixWeeksDemo"),t=n("DarkDemo"),h=n("DemoDayClass");return e(),p("div",null,[d,i(a,{transitions:!1}),r,i(l),g,i(t),y,i(a,{offset:20}),o,i(a,{"hide-input-icon":!0}),c,i(a,{state:!1}),F,i(a,{"input-class-name":"dp-custom-input"}),u,i(a,{"menu-class-name":"dp-custom-menu"}),C,i(a,{"calendar-class-name":"dp-custom-calendar"}),m,i(a,{"calendar-cell-class-name":"dp-custom-cell"}),D,i(h),A])}const P=k(E,[["render",B]]);export{x as __pageData,P as default};
+import{_ as k,E as n,c as p,J as i,al as s,o as e}from"./chunks/framework.DOHaQP0J.js";const x=JSON.parse('{"title":"Props - Look and feel","description":"Look and feel customization options","frontmatter":{"lang":"en-US","title":"Props - Look and feel","description":"Look and feel customization options"},"headers":[],"relativePath":"props/look-and-feel/index.md","filePath":"props/look-and-feel/index.md"}'),E={name:"props/look-and-feel/index.md"},d=s("",8),r=s("",5),g=s("",4),y=s("",4),o=s("",4),c=s("",4),F=s("",4),u=s("",4),C=s("",4),m=s("",4),D=s("",4),A=s("",1);function B(_,v,f,b,T,q){const a=n("GlobalDemo"),l=n("SixWeeksDemo"),t=n("DarkDemo"),h=n("DemoDayClass");return e(),p("div",null,[d,i(a,{transitions:!1}),r,i(l),g,i(t),y,i(a,{offset:20}),o,i(a,{"hide-input-icon":!0}),c,i(a,{state:!1}),F,i(a,{"input-class-name":"dp-custom-input"}),u,i(a,{"menu-class-name":"dp-custom-menu"}),C,i(a,{"calendar-class-name":"dp-custom-calendar"}),m,i(a,{"calendar-cell-class-name":"dp-custom-cell"}),D,i(h),A])}const P=k(E,[["render",B]]);export{x as __pageData,P as default};
diff --git a/docs/assets/props_modes-configuration_index.md.CTy8d0O1.lean.js b/docs/assets/props_modes-configuration_index.md.CTy8d0O1.lean.js
deleted file mode 100644
index b0c4f925e..000000000
--- a/docs/assets/props_modes-configuration_index.md.CTy8d0O1.lean.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNmjg.js";const K=JSON.parse('{"title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode","frontmatter":{"lang":"en-US","title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode"},"headers":[],"relativePath":"props/modes-configuration/index.md","filePath":"props/modes-configuration/index.md"}'),y={name:"props/modes-configuration/index.md"},F=s("",9),o=s("",4),c=s("",4),C=s("",4),u=s("",5),B=s("",5),D=s("",4),A=s("",4),m=s("",4),f=s("",4),v=s("",5),b=s("",6),_=s("",6),T=s("",6),q=s("",7),z=s("",7),w=s("",8),x=s("",3),P=s("",8),S=s("",6),V=s("",4),I=s("",4),R=s("",5),M=s("",7),N=s("",4),O=s("",4),W=s("",4),j=s("",1);function $(L,G,U,Y,H,Z){const a=n("RangeDemo"),l=n("DisabledRangeDateDemo"),h=n("RangeDemoDeprecated"),p=n("PresetRange"),e=n("TextInputDemo"),E=n("GlobalDemo"),k=n("EmptyDemo"),t=n("TimezoneNewDemo");return g(),r("div",null,[F,i(a,{range:{autoRange:5}}),o,i(a,{range:{partialRange:!1}}),c,i(a,{range:{minRange:3},placeholder:"At least 3 days in between"}),C,i(a,{range:{maxRange:7},placeholder:"Can't have more than 7 days in between"}),u,i(a,{range:{fixedStart:!0},clearable:!1}),B,i(a,{range:{fixedEnd:!0},clearable:!1}),D,i(a,{range:{showLastInRange:!1}}),A,i(l),m,i(a,{"time-picker":!0,range:{disableTimeRangeValidation:!0},placeholder:"Select Time"}),f,i(a,{range:{maxRange:14,minMaxRawRange:!0},"disabled-week-days":[1,2,3,4,5]}),v,i(h,{"partial-range":!1}),b,i(p),_,i(h,{range:!0,minRange:3,noVModel:!0,placeholder:"At least 3 days in between"}),T,i(h,{range:!0,maxRange:7,noVModel:!0,placeholder:"Can't have more than 7 days in between"}),q,i(h,{"fixed-start":!0,clearable:!1}),z,i(h,{"fixed-end":!0,clearable:!1}),w,i(a,{"multi-calendars":{solo:!0}}),x,i(a,{"multi-calendars":{static:!1}}),P,i(e,{"text-input":{format:"MM.dd.yyyy HH:mm"},placeholder:"Start Typing ..."},null,8,["text-input"]),S,i(E,{inline:{input:!0},"auto-apply":!0,"text-input":!0}),V,i(k,{"multi-dates":!0,placeholder:"Select Multiple Dates","multi-dates-limit":3}),I,i(k,{"auto-apply":!0,"partial-flow":!0,placeholder:"Select Date",flow:["calendar","time"]}),R,i(h,{"show-last-in-range":!1}),M,i(t),N,i(t,{timezone:{exactMatch:!0}}),O,i(t,{timezone:{exactMatch:!0,dateInTz:"UTC"}}),W,i(t,{emitVal:!0}),j])}const Q=d(y,[["render",$]]);export{K as __pageData,Q as default};
diff --git a/docs/assets/props_modes-configuration_index.md.CTy8d0O1.js b/docs/assets/props_modes-configuration_index.md.z9k4xP9z.js
similarity index 93%
rename from docs/assets/props_modes-configuration_index.md.CTy8d0O1.js
rename to docs/assets/props_modes-configuration_index.md.z9k4xP9z.js
index 398505ee2..5667b652a 100644
--- a/docs/assets/props_modes-configuration_index.md.CTy8d0O1.js
+++ b/docs/assets/props_modes-configuration_index.md.z9k4xP9z.js
@@ -1,4 +1,4 @@
-import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNmjg.js";const K=JSON.parse('{"title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode","frontmatter":{"lang":"en-US","title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode"},"headers":[],"relativePath":"props/modes-configuration/index.md","filePath":"props/modes-configuration/index.md"}'),y={name:"props/modes-configuration/index.md"},F=s(`

Modes configuration

Props for configuring and extending the datepicker when using a specific mode

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, textInput as text-input and so on

range configuration

Providing configuration object will automatically enable range picker

ts
interface RangeConfig {
+import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.DOHaQP0J.js";const ss=JSON.parse('{"title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode","frontmatter":{"lang":"en-US","title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode"},"headers":[],"relativePath":"props/modes-configuration/index.md","filePath":"props/modes-configuration/index.md"}'),y={name:"props/modes-configuration/index.md"},F=s(`

Modes configuration

Props for configuring and extending the datepicker when using a specific mode

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, textInput as text-input and so on

range configuration

Providing configuration object will automatically enable range picker

ts
interface RangeConfig {
     noDisabledRange?: boolean;
     showLastInRange?: boolean;
     minMaxRawRange?: boolean;
@@ -71,7 +71,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
   const endDate = new Date(new Date().setDate(startDate.getDate() + 7));
   date.value = [startDate, endDate];
 })
-</script>

showLastInRange

By default, when the range is selected, calendar view will remain on the last selection, to return to the first selected date, disable this option

  • Default: true
`,4),A=s(`
Code Example
vue
<template>
+</script>

showLastInRange

By default, when the range is selected, calendar view will remain on the last selection, to return to the first selected date, disable this option

  • Default: true
`,4),m=s(`
Code Example
vue
<template>
   <VueDatePicker v-model="date" :range="{ showLastInRange: false }" />
 </template>
 
@@ -85,7 +85,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
   const endDate = new Date(new Date().setDate(startDate.getDate() + 7));
   date.value = [startDate, endDate];
 })
-</script>

noDisabledRange

Prevents range selection if the range includes disabled dates

  • Default: false
`,4),m=s(`
Code Example
vue
<template>
+</script>

noDisabledRange

Prevents range selection if the range includes disabled dates

  • Default: false
`,4),A=s(`
Code Example
vue
<template>
     <VueDatePicker 
         v-model="date" 
         :range="{ noDisabledRange: true }"
@@ -279,7 +279,26 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
 import { ref } from 'vue';
 
 const date = ref();
-</script>

multi-dates-limit

Limit the number of dates to select when multi-dates is enabled

  • Type: number | string
  • Default: null
`,4),I=s(`
Code Example
vue
<template>
+</script>

multi-dates configuration

Configure additional behaviour for multi-dates mode

ts
interface MultiDatesConfig {
+    limit?: number | string;
+    dragSelect?: boolean;
+}

limit

Limit the number of dates to select

  • Default: null
`,7),I=s(`
Code Example
vue
<template>
+  <VueDatePicker v-model="date" :multi-dates="{ limit: 3 }" />
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const date = ref();
+</script>

dragSelect

Allows selecting multiple dates by dragging the mouse over the calendar cells

  • Default: true
`,4),R=s(`
Code Example
vue
<template>
+  <VueDatePicker v-model="date" :multi-dates="{ dragSelect: false }" />
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const date = ref();
+</script>

multi-dates-limit

Deprecation warning

This prop is deprecated, please refer to multi-dates configuration section

Limit the number of dates to select when multi-dates is enabled

  • Type: number | string
  • Default: null
`,5),M=s(`
Code Example
vue
<template>
   <VueDatePicker v-model="date" multi-dates multi-dates-limit="3" />
 </template>
 
@@ -287,7 +306,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
 import { ref } from 'vue';
 
 const date = ref();
-</script>

partial-flow

When combined with the auto-apply prop, it will set the date as soon as the date is selected without waiting for last flow step to execute

  • Type: boolean
  • Default: false
`,4),R=s(`
Code Example
vue
<template>
+</script>

partial-flow

When combined with the auto-apply prop, it will set the date as soon as the date is selected without waiting for last flow step to execute

  • Type: boolean
  • Default: false
`,4),N=s(`
Code Example
vue
<template>
   <VueDatePicker v-model="date" auto-apply partial-flow :flow="['calendar', 'time']" />
 </template>
 
@@ -295,7 +314,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
 import { ref } from 'vue';
 
 const date = ref();
-</script>

show-last-in-range

Deprecation warning

This prop is deprecated, please refer to range configuration section

By default, when the range is selected, calendar view will remain on the last selection, to return to the first selected date, disable this option

  • Type: boolean
  • Default: true
`,5),M=s(`
Code Example
vue
<template>
+</script>

show-last-in-range

Deprecation warning

This prop is deprecated, please refer to range configuration section

By default, when the range is selected, calendar view will remain on the last selection, to return to the first selected date, disable this option

  • Type: boolean
  • Default: true
`,5),O=s(`
Code Example
vue
<template>
   <VueDatePicker v-model="date" range :show-last-in-range="false" />
 </template>
 
@@ -314,7 +333,8 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
   exactMatch?: boolean;
   dateInTz?: string;
   emitTimezone?: string;
-}

timezone

Same as timezone string prop type, define a timezone for the datepicker

  • Default: undefined
`,7),N=s(`
Code Example
vue
<template>
+  convertModel?: boolean;
+}

timezone

Same as timezone string prop type, define a timezone for the datepicker

  • Default: undefined
`,7),W=s(`
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
       <VueDatePicker
@@ -383,7 +403,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
   const tz = computed(() => {
     return { ...timezone.value, timezone: activeTz.value.tz };
   });
-</script>

exactMatch

When enabled, it will not convert date to the given timezone. If you are providing the Date object, it will remain as is, while UTC string, will be converted to the local timezone

  • Default: false
`,4),O=s(`
Code Example
vue
<template>
+</script>

exactMatch

When enabled, it will not convert date to the given timezone. If you are providing the Date object, it will remain as is, while UTC string, will be converted to the local timezone

  • Default: false
`,4),j=s(`
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
       <VueDatePicker
@@ -454,7 +474,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
     return { ...timezone.value, timezone: activeTz.value.tz };
   });
   
-</script>

dateInTz

This property is checked only if exactMatch is set to true, meaning that if you provide the date from some other timezone other than local, and want that date to be the same, you'll need to provide the original date timezone

  • Default: undefined
`,4),W=s(`
Code Example
vue
<template>
+</script>

dateInTz

This property is checked only if exactMatch is set to true, meaning that if you provide the date from some other timezone other than local, and want that date to be the same, you'll need to provide the original date timezone

  • Default: undefined
`,4),U=s(`
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
       <VueDatePicker
@@ -531,7 +551,7 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
     return { ...timezone.value, timezone: activeTz.value.tz };
   });
   
-</script>

emitTimezone

Enables the @update:model-timezone-value event that will dispatch a v-model value in a given timezone

  • Default: undefined
`,4),j=s(`
Code Example
vue
<template>
+</script>

emitTimezone

Enables the @update:model-timezone-value event that will dispatch a v-model value in a given timezone

  • Default: undefined
`,4),L=s(`
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
       <VueDatePicker
@@ -600,4 +620,12 @@ import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.B2SzNm
   const setZonedDate = (date) => {
     zonedDate.value = date.toISOString();;
   }
-</script>
`,1);function $(L,G,U,Y,H,Z){const a=n("RangeDemo"),l=n("DisabledRangeDateDemo"),h=n("RangeDemoDeprecated"),p=n("PresetRange"),e=n("TextInputDemo"),E=n("GlobalDemo"),k=n("EmptyDemo"),t=n("TimezoneNewDemo");return g(),r("div",null,[F,i(a,{range:{autoRange:5}}),o,i(a,{range:{partialRange:!1}}),c,i(a,{range:{minRange:3},placeholder:"At least 3 days in between"}),C,i(a,{range:{maxRange:7},placeholder:"Can't have more than 7 days in between"}),u,i(a,{range:{fixedStart:!0},clearable:!1}),B,i(a,{range:{fixedEnd:!0},clearable:!1}),D,i(a,{range:{showLastInRange:!1}}),A,i(l),m,i(a,{"time-picker":!0,range:{disableTimeRangeValidation:!0},placeholder:"Select Time"}),f,i(a,{range:{maxRange:14,minMaxRawRange:!0},"disabled-week-days":[1,2,3,4,5]}),v,i(h,{"partial-range":!1}),b,i(p),_,i(h,{range:!0,minRange:3,noVModel:!0,placeholder:"At least 3 days in between"}),T,i(h,{range:!0,maxRange:7,noVModel:!0,placeholder:"Can't have more than 7 days in between"}),q,i(h,{"fixed-start":!0,clearable:!1}),z,i(h,{"fixed-end":!0,clearable:!1}),w,i(a,{"multi-calendars":{solo:!0}}),x,i(a,{"multi-calendars":{static:!1}}),P,i(e,{"text-input":{format:"MM.dd.yyyy HH:mm"},placeholder:"Start Typing ..."},null,8,["text-input"]),S,i(E,{inline:{input:!0},"auto-apply":!0,"text-input":!0}),V,i(k,{"multi-dates":!0,placeholder:"Select Multiple Dates","multi-dates-limit":3}),I,i(k,{"auto-apply":!0,"partial-flow":!0,placeholder:"Select Date",flow:["calendar","time"]}),R,i(h,{"show-last-in-range":!1}),M,i(t),N,i(t,{timezone:{exactMatch:!0}}),O,i(t,{timezone:{exactMatch:!0,dateInTz:"UTC"}}),W,i(t,{emitVal:!0}),j])}const Q=d(y,[["render",$]]);export{K as __pageData,Q as default}; +</script>

convertModel

Used to explicitly enable or disable v-model value conversion in a given timezone

  • Default: true
`,4),$=s(`
Code Example
vue
<template>
+    <VueDatePicker v-model="date" :timezone="{ convertModel: false, timezone: 'UTC' }" />
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const date = ref();
+</script>
`,1);function G(Y,H,Z,J,K,Q){const a=n("RangeDemo"),p=n("DisabledRangeDateDemo"),h=n("RangeDemoDeprecated"),e=n("PresetRange"),E=n("TextInputDemo"),l=n("GlobalDemo"),t=n("EmptyDemo"),k=n("TimezoneNewDemo");return g(),r("div",null,[F,i(a,{range:{autoRange:5}}),o,i(a,{range:{partialRange:!1}}),c,i(a,{range:{minRange:3},placeholder:"At least 3 days in between"}),C,i(a,{range:{maxRange:7},placeholder:"Can't have more than 7 days in between"}),u,i(a,{range:{fixedStart:!0},clearable:!1}),B,i(a,{range:{fixedEnd:!0},clearable:!1}),D,i(a,{range:{showLastInRange:!1}}),m,i(p),A,i(a,{"time-picker":!0,range:{disableTimeRangeValidation:!0},placeholder:"Select Time"}),f,i(a,{range:{maxRange:14,minMaxRawRange:!0},"disabled-week-days":[1,2,3,4,5]}),v,i(h,{"partial-range":!1}),b,i(e),_,i(h,{range:!0,minRange:3,noVModel:!0,placeholder:"At least 3 days in between"}),T,i(h,{range:!0,maxRange:7,noVModel:!0,placeholder:"Can't have more than 7 days in between"}),q,i(h,{"fixed-start":!0,clearable:!1}),z,i(h,{"fixed-end":!0,clearable:!1}),w,i(a,{"multi-calendars":{solo:!0}}),x,i(a,{"multi-calendars":{static:!1}}),P,i(E,{"text-input":{format:"MM.dd.yyyy HH:mm"},placeholder:"Start Typing ..."},null,8,["text-input"]),S,i(l,{inline:{input:!0},"auto-apply":!0,"text-input":!0}),V,i(t,{"multi-dates":{limit:3},placeholder:"Select Multiple Dates","multi-dates-limit":3}),I,i(t,{"multi-dates":{dragSelect:!1},placeholder:"Select Multiple Dates"}),R,i(t,{"multi-dates":!0,placeholder:"Select Multiple Dates","multi-dates-limit":3}),M,i(t,{"auto-apply":!0,"partial-flow":!0,placeholder:"Select Date",flow:["calendar","time"]}),N,i(h,{"show-last-in-range":!1}),O,i(k),W,i(k,{timezone:{exactMatch:!0}}),j,i(k,{timezone:{exactMatch:!0,dateInTz:"UTC"}}),U,i(k,{emitVal:!0}),L,i(l,{timezone:{convertModel:!1,timezone:"UTC"}}),$])}const is=d(y,[["render",G]]);export{ss as __pageData,is as default}; diff --git a/docs/assets/props_modes-configuration_index.md.z9k4xP9z.lean.js b/docs/assets/props_modes-configuration_index.md.z9k4xP9z.lean.js new file mode 100644 index 000000000..9e3c762e9 --- /dev/null +++ b/docs/assets/props_modes-configuration_index.md.z9k4xP9z.lean.js @@ -0,0 +1 @@ +import{_ as d,E as n,c as r,J as i,al as s,o as g}from"./chunks/framework.DOHaQP0J.js";const ss=JSON.parse('{"title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode","frontmatter":{"lang":"en-US","title":"Props - Modes configuration","description":"Configure behaviour of the specific datepicker mode"},"headers":[],"relativePath":"props/modes-configuration/index.md","filePath":"props/modes-configuration/index.md"}'),y={name:"props/modes-configuration/index.md"},F=s("",9),o=s("",4),c=s("",4),C=s("",4),u=s("",5),B=s("",5),D=s("",4),m=s("",4),A=s("",4),f=s("",4),v=s("",5),b=s("",6),_=s("",6),T=s("",6),q=s("",7),z=s("",7),w=s("",8),x=s("",3),P=s("",8),S=s("",6),V=s("",7),I=s("",4),R=s("",5),M=s("",4),N=s("",5),O=s("",7),W=s("",4),j=s("",4),U=s("",4),L=s("",4),$=s("",1);function G(Y,H,Z,J,K,Q){const a=n("RangeDemo"),p=n("DisabledRangeDateDemo"),h=n("RangeDemoDeprecated"),e=n("PresetRange"),E=n("TextInputDemo"),l=n("GlobalDemo"),t=n("EmptyDemo"),k=n("TimezoneNewDemo");return g(),r("div",null,[F,i(a,{range:{autoRange:5}}),o,i(a,{range:{partialRange:!1}}),c,i(a,{range:{minRange:3},placeholder:"At least 3 days in between"}),C,i(a,{range:{maxRange:7},placeholder:"Can't have more than 7 days in between"}),u,i(a,{range:{fixedStart:!0},clearable:!1}),B,i(a,{range:{fixedEnd:!0},clearable:!1}),D,i(a,{range:{showLastInRange:!1}}),m,i(p),A,i(a,{"time-picker":!0,range:{disableTimeRangeValidation:!0},placeholder:"Select Time"}),f,i(a,{range:{maxRange:14,minMaxRawRange:!0},"disabled-week-days":[1,2,3,4,5]}),v,i(h,{"partial-range":!1}),b,i(e),_,i(h,{range:!0,minRange:3,noVModel:!0,placeholder:"At least 3 days in between"}),T,i(h,{range:!0,maxRange:7,noVModel:!0,placeholder:"Can't have more than 7 days in between"}),q,i(h,{"fixed-start":!0,clearable:!1}),z,i(h,{"fixed-end":!0,clearable:!1}),w,i(a,{"multi-calendars":{solo:!0}}),x,i(a,{"multi-calendars":{static:!1}}),P,i(E,{"text-input":{format:"MM.dd.yyyy HH:mm"},placeholder:"Start Typing ..."},null,8,["text-input"]),S,i(l,{inline:{input:!0},"auto-apply":!0,"text-input":!0}),V,i(t,{"multi-dates":{limit:3},placeholder:"Select Multiple Dates","multi-dates-limit":3}),I,i(t,{"multi-dates":{dragSelect:!1},placeholder:"Select Multiple Dates"}),R,i(t,{"multi-dates":!0,placeholder:"Select Multiple Dates","multi-dates-limit":3}),M,i(t,{"auto-apply":!0,"partial-flow":!0,placeholder:"Select Date",flow:["calendar","time"]}),N,i(h,{"show-last-in-range":!1}),O,i(k),W,i(k,{timezone:{exactMatch:!0}}),j,i(k,{timezone:{exactMatch:!0,dateInTz:"UTC"}}),U,i(k,{emitVal:!0}),L,i(l,{timezone:{convertModel:!1,timezone:"UTC"}}),$])}const is=d(y,[["render",G]]);export{ss as __pageData,is as default}; diff --git a/docs/assets/props_modes_index.md.Bdk5X-Cz.js b/docs/assets/props_modes_index.md.D2kbVgVM.js similarity index 97% rename from docs/assets/props_modes_index.md.Bdk5X-Cz.js rename to docs/assets/props_modes_index.md.D2kbVgVM.js index d05b8b733..a406f2398 100644 --- a/docs/assets/props_modes_index.md.Bdk5X-Cz.js +++ b/docs/assets/props_modes_index.md.D2kbVgVM.js @@ -1,4 +1,4 @@ -import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.B2SzNmjg.js";const G=JSON.parse('{"title":"Props - Modes","description":"Use datepicker in specific mode","frontmatter":{"lang":"en-US","title":"Props - Modes","description":"Use datepicker in specific mode"},"headers":[],"relativePath":"props/modes/index.md","filePath":"props/modes/index.md"}'),m={name:"props/modes/index.md"},C=s('

Modes

Set the default mode for the datepicker

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, multiCalendars as multi-calendars and so on

Info

Depending on the mode, v-model might be different, so make sure to use the proper configuration

range

Range picker mode

  • Type: boolean | RangeConfig
  • Default: false

Info

If the RangeConfig object is provided, range is auto enabled.

For more info about range configuration properties, please refer to range configuration section

',8),D=s(`
Code Example
vue
<template>
+import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.DOHaQP0J.js";const Q=JSON.parse('{"title":"Props - Modes","description":"Use datepicker in specific mode","frontmatter":{"lang":"en-US","title":"Props - Modes","description":"Use datepicker in specific mode"},"headers":[],"relativePath":"props/modes/index.md","filePath":"props/modes/index.md"}'),m={name:"props/modes/index.md"},C=s('

Modes

Set the default mode for the datepicker

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, multiCalendars as multi-calendars and so on

Info

Depending on the mode, v-model might be different, so make sure to use the proper configuration

range

Range picker mode

  • Type: boolean | RangeConfig
  • Default: false

Info

If the RangeConfig object is provided, range is auto enabled.

For more info about range configuration properties, please refer to range configuration section

',8),D=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" range />
 </template>
 
@@ -98,7 +98,7 @@ import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.B2SzNm
 import { ref } from 'vue';
 
 const date = ref(new Date());
-</script>

multi-dates

Allow selecting multiple single dates. When changing time, the latest selected date is affected. To deselect the date, click on the selected value

  • Type: boolean
  • Default: false
`,4),P=s(`
Code Example
vue
<template>
+</script>

multi-dates

Allow selecting multiple single dates. When changing time, the latest selected date is affected. To deselect the date, click on the selected value

  • Type: boolean | MultiDatesConfig
  • Default: false

Info

`,5),P=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" multi-dates />
 </template>
 
@@ -140,7 +140,7 @@ import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.B2SzNm
 import { ref } from 'vue';
 
 const date = ref();
-</script>

timezone

Display the dates in a given timezone. Datepicker always work in the clients timezone, but when the timezone prop is provided, the Date object will adjust offset in the hours, remaining in the client timezone.

WARNING

v-model value is not converted, and will be parsed as it is

Info

Providing props that rely on the Date object such as min-date, max-date, disabled-dates and so on, will be converted to a provided timezone.

For more info about timezone configuration properties, please refer to timezone configuration section

  • Type: string | TimeZoneConfig
  • Default: null
`,6),V=s(`
Code Example
vue
<template>
+</script>

timezone

Display the dates in a given timezone. Datepicker always work in the clients timezone, but when the timezone prop is provided, the Date object will adjust offset in the hours, remaining in the client timezone.

Info

Providing props that rely on the Date object such as min-date, max-date, disabled-dates and so on, will be converted to a provided timezone.

For more info about timezone configuration properties, please refer to timezone configuration section

  • Type: string | TimeZoneConfig
  • Default: null
`,5),V=s(`
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
       <VueDatePicker 
@@ -209,7 +209,7 @@ import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.B2SzNm
   const tz = computed(() => {
     return { ...timezone.value, timezone: activeTz.value.tz };
   });
-</script>

emit-timezone

Enables the @update:model-timezone-value event that will dispatch a v-model value in a given timezone

Deprecation warning

This prop is deprecated, please refer to timezone configuration section

  • Type: string
  • Default: null
`,5),N=s(`
Code Example
vue
<template>
+</script>

emit-timezone

Enables the @update:model-timezone-value event that will dispatch a v-model value in a given timezone

Deprecation warning

This prop is deprecated, please refer to timezone configuration section

  • Type: string
  • Default: null
`,5),M=s(`
Code Example
vue
<template>
   <VueDatePicker
       v-model="date"
       emit-timezone="UTC"
@@ -226,4 +226,4 @@ import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.B2SzNm
     const setUTCDate = (value) => {
         utcDate.value = value;
     };
-</script>
`,1);function R(M,O,U,Y,W,$){const n=a("RangeDemo"),h=a("RangeDemoDeprecated"),k=a("MonthPickerDemo"),e=a("TimePickerDemo"),p=a("YearPickerDemo"),t=a("EmptyDemo"),E=a("QuarterPickerDemo"),d=a("TextInputDemo"),l=a("GlobalDemo"),r=a("TimezoneDemo"),g=a("DisplayModelDemo"),o=a("TimezoneNewDemo"),y=a("EmitTimezone");return u(),F("div",null,[C,i(n),D,i(h,{"auto-range":5}),A,i(n,{"multi-calendars":!0}),B,i(k),f,i(e),_,i(p),v,i(t,{"week-picker":!0,placeholder:"Select week"}),b,i(E),T,i(d,{placeholder:"Start Typing ...","text-input":!0}),q,i(l,{inline:!0,"auto-apply":!0}),w,i(t,{"multi-dates":!0,placeholder:"Select Multiple Dates"}),P,i(t,{flow:["month","year","calendar"],placeholder:"Month > Year > Date"}),z,i(r),x,i(l,{vertical:!0}),S,i(g,{"model-auto":!0,range:!0}),I,i(o),V,i(y),N])}const Q=c(m,[["render",R]]);export{G as __pageData,Q as default}; +</script>
`,1);function N(R,O,U,Y,j,W){const n=a("RangeDemo"),h=a("RangeDemoDeprecated"),k=a("MonthPickerDemo"),e=a("TimePickerDemo"),p=a("YearPickerDemo"),t=a("EmptyDemo"),E=a("QuarterPickerDemo"),r=a("TextInputDemo"),l=a("GlobalDemo"),d=a("TimezoneDemo"),g=a("DisplayModelDemo"),o=a("TimezoneNewDemo"),y=a("EmitTimezone");return u(),F("div",null,[C,i(n),D,i(h,{"auto-range":5}),A,i(n,{"multi-calendars":!0}),B,i(k),f,i(e),_,i(p),v,i(t,{"week-picker":!0,placeholder:"Select week"}),b,i(E),T,i(r,{placeholder:"Start Typing ...","text-input":!0}),q,i(l,{inline:!0,"auto-apply":!0}),w,i(t,{"multi-dates":!0,placeholder:"Select Multiple Dates"}),P,i(t,{flow:["month","year","calendar"],placeholder:"Month > Year > Date"}),z,i(d),x,i(l,{vertical:!0}),S,i(g,{"model-auto":!0,range:!0}),I,i(o),V,i(y),M])}const G=c(m,[["render",N]]);export{Q as __pageData,G as default}; diff --git a/docs/assets/props_modes_index.md.Bdk5X-Cz.lean.js b/docs/assets/props_modes_index.md.D2kbVgVM.lean.js similarity index 58% rename from docs/assets/props_modes_index.md.Bdk5X-Cz.lean.js rename to docs/assets/props_modes_index.md.D2kbVgVM.lean.js index 084e2eba5..9f9bf0a80 100644 --- a/docs/assets/props_modes_index.md.Bdk5X-Cz.lean.js +++ b/docs/assets/props_modes_index.md.D2kbVgVM.lean.js @@ -1 +1 @@ -import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.B2SzNmjg.js";const G=JSON.parse('{"title":"Props - Modes","description":"Use datepicker in specific mode","frontmatter":{"lang":"en-US","title":"Props - Modes","description":"Use datepicker in specific mode"},"headers":[],"relativePath":"props/modes/index.md","filePath":"props/modes/index.md"}'),m={name:"props/modes/index.md"},C=s("",8),D=s("",6),A=s("",5),B=s("",4),f=s("",4),_=s("",4),v=s("",4),b=s("",6),T=s("",5),q=s("",5),w=s("",4),P=s("",5),z=s("",5),x=s("",4),S=s("",5),I=s("",6),V=s("",5),N=s("",1);function R(M,O,U,Y,W,$){const n=a("RangeDemo"),h=a("RangeDemoDeprecated"),k=a("MonthPickerDemo"),e=a("TimePickerDemo"),p=a("YearPickerDemo"),t=a("EmptyDemo"),E=a("QuarterPickerDemo"),d=a("TextInputDemo"),l=a("GlobalDemo"),r=a("TimezoneDemo"),g=a("DisplayModelDemo"),o=a("TimezoneNewDemo"),y=a("EmitTimezone");return u(),F("div",null,[C,i(n),D,i(h,{"auto-range":5}),A,i(n,{"multi-calendars":!0}),B,i(k),f,i(e),_,i(p),v,i(t,{"week-picker":!0,placeholder:"Select week"}),b,i(E),T,i(d,{placeholder:"Start Typing ...","text-input":!0}),q,i(l,{inline:!0,"auto-apply":!0}),w,i(t,{"multi-dates":!0,placeholder:"Select Multiple Dates"}),P,i(t,{flow:["month","year","calendar"],placeholder:"Month > Year > Date"}),z,i(r),x,i(l,{vertical:!0}),S,i(g,{"model-auto":!0,range:!0}),I,i(o),V,i(y),N])}const Q=c(m,[["render",R]]);export{G as __pageData,Q as default}; +import{_ as c,E as a,c as F,J as i,al as s,o as u}from"./chunks/framework.DOHaQP0J.js";const Q=JSON.parse('{"title":"Props - Modes","description":"Use datepicker in specific mode","frontmatter":{"lang":"en-US","title":"Props - Modes","description":"Use datepicker in specific mode"},"headers":[],"relativePath":"props/modes/index.md","filePath":"props/modes/index.md"}'),m={name:"props/modes/index.md"},C=s("",8),D=s("",6),A=s("",5),B=s("",4),f=s("",4),_=s("",4),v=s("",4),b=s("",6),T=s("",5),q=s("",5),w=s("",5),P=s("",5),z=s("",5),x=s("",4),S=s("",5),I=s("",5),V=s("",5),M=s("",1);function N(R,O,U,Y,j,W){const n=a("RangeDemo"),h=a("RangeDemoDeprecated"),k=a("MonthPickerDemo"),e=a("TimePickerDemo"),p=a("YearPickerDemo"),t=a("EmptyDemo"),E=a("QuarterPickerDemo"),r=a("TextInputDemo"),l=a("GlobalDemo"),d=a("TimezoneDemo"),g=a("DisplayModelDemo"),o=a("TimezoneNewDemo"),y=a("EmitTimezone");return u(),F("div",null,[C,i(n),D,i(h,{"auto-range":5}),A,i(n,{"multi-calendars":!0}),B,i(k),f,i(e),_,i(p),v,i(t,{"week-picker":!0,placeholder:"Select week"}),b,i(E),T,i(r,{placeholder:"Start Typing ...","text-input":!0}),q,i(l,{inline:!0,"auto-apply":!0}),w,i(t,{"multi-dates":!0,placeholder:"Select Multiple Dates"}),P,i(t,{flow:["month","year","calendar"],placeholder:"Month > Year > Date"}),z,i(d),x,i(l,{vertical:!0}),S,i(g,{"model-auto":!0,range:!0}),I,i(o),V,i(y),M])}const G=c(m,[["render",N]]);export{Q as __pageData,G as default}; diff --git a/docs/assets/props_positioning_index.md.AfjfoNb8.js b/docs/assets/props_positioning_index.md.B8HmwMtt.js similarity index 99% rename from docs/assets/props_positioning_index.md.AfjfoNb8.js rename to docs/assets/props_positioning_index.md.B8HmwMtt.js index 13da44fb6..02c3fe266 100644 --- a/docs/assets/props_positioning_index.md.AfjfoNb8.js +++ b/docs/assets/props_positioning_index.md.B8HmwMtt.js @@ -1,4 +1,4 @@ -import{_ as t,E as n,c as l,J as a,al as s,o as e}from"./chunks/framework.B2SzNmjg.js";const D=JSON.parse('{"title":"Props - Positioning","description":"Datepicker menu positioning configuration","frontmatter":{"lang":"en-US","title":"Props - Positioning","description":"Datepicker menu positioning configuration"},"headers":[],"relativePath":"props/positioning/index.md","filePath":"props/positioning/index.md"}'),h={name:"props/positioning/index.md"},p=s('

Positioning

Configure datepicker menu positioning

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, autoPosition as auto-position and so on

position

Datepicker menu position

  • Type: 'left' | 'center' | 'right'
  • Default: 'center'
',6),k=s(`
Code Example
vue
<template>
+import{_ as t,E as n,c as l,J as a,al as s,o as e}from"./chunks/framework.DOHaQP0J.js";const D=JSON.parse('{"title":"Props - Positioning","description":"Datepicker menu positioning configuration","frontmatter":{"lang":"en-US","title":"Props - Positioning","description":"Datepicker menu positioning configuration"},"headers":[],"relativePath":"props/positioning/index.md","filePath":"props/positioning/index.md"}'),h={name:"props/positioning/index.md"},p=s('

Positioning

Configure datepicker menu positioning

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, autoPosition as auto-position and so on

position

Datepicker menu position

  • Type: 'left' | 'center' | 'right'
  • Default: 'center'
',6),k=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" position="left" />
 </template>
 
diff --git a/docs/assets/props_positioning_index.md.AfjfoNb8.lean.js b/docs/assets/props_positioning_index.md.B8HmwMtt.lean.js
similarity index 92%
rename from docs/assets/props_positioning_index.md.AfjfoNb8.lean.js
rename to docs/assets/props_positioning_index.md.B8HmwMtt.lean.js
index 544b3c7d7..f6de8a039 100644
--- a/docs/assets/props_positioning_index.md.AfjfoNb8.lean.js
+++ b/docs/assets/props_positioning_index.md.B8HmwMtt.lean.js
@@ -1 +1 @@
-import{_ as t,E as n,c as l,J as a,al as s,o as e}from"./chunks/framework.B2SzNmjg.js";const D=JSON.parse('{"title":"Props - Positioning","description":"Datepicker menu positioning configuration","frontmatter":{"lang":"en-US","title":"Props - Positioning","description":"Datepicker menu positioning configuration"},"headers":[],"relativePath":"props/positioning/index.md","filePath":"props/positioning/index.md"}'),h={name:"props/positioning/index.md"},p=s("",6),k=s("",5),E=s("",4),o=s("",4),r=s("",4),d=s("",1);function g(c,y,u,F,m,_){const i=n("GlobalDemo");return e(),l("div",null,[p,a(i,{position:"left"}),k,a(i,{teleport:!0}),E,a(i,{"alt-position":()=>({top:0,left:0})}),o,a(i,{"auto-position":!1}),r,a(i,{teleportCenter:!0}),d])}const A=t(h,[["render",g]]);export{D as __pageData,A as default};
+import{_ as t,E as n,c as l,J as a,al as s,o as e}from"./chunks/framework.DOHaQP0J.js";const D=JSON.parse('{"title":"Props - Positioning","description":"Datepicker menu positioning configuration","frontmatter":{"lang":"en-US","title":"Props - Positioning","description":"Datepicker menu positioning configuration"},"headers":[],"relativePath":"props/positioning/index.md","filePath":"props/positioning/index.md"}'),h={name:"props/positioning/index.md"},p=s("",6),k=s("",5),E=s("",4),o=s("",4),r=s("",4),d=s("",1);function g(c,y,u,F,m,_){const i=n("GlobalDemo");return e(),l("div",null,[p,a(i,{position:"left"}),k,a(i,{teleport:!0}),E,a(i,{"alt-position":()=>({top:0,left:0})}),o,a(i,{"auto-position":!1}),r,a(i,{teleportCenter:!0}),d])}const A=t(h,[["render",g]]);export{D as __pageData,A as default};
diff --git a/docs/assets/props_time-picker-configuration_index.md.CgJ_Uq0d.js b/docs/assets/props_time-picker-configuration_index.md.B-A71Go6.js
similarity index 99%
rename from docs/assets/props_time-picker-configuration_index.md.CgJ_Uq0d.js
rename to docs/assets/props_time-picker-configuration_index.md.B-A71Go6.js
index 54bf27571..be0a2da20 100644
--- a/docs/assets/props_time-picker-configuration_index.md.CgJ_Uq0d.js
+++ b/docs/assets/props_time-picker-configuration_index.md.B-A71Go6.js
@@ -1,4 +1,4 @@
-import{_ as h,E as t,c as k,J as i,al as s,o as e}from"./chunks/framework.B2SzNmjg.js";const R=JSON.parse('{"title":"Props - Time picker configuration","description":"Configure time-picker behavior","frontmatter":{"lang":"en-US","title":"Props - Time picker configuration","description":"Configure time-picker behavior"},"headers":[],"relativePath":"props/time-picker-configuration/index.md","filePath":"props/time-picker-configuration/index.md"}'),p={name:"props/time-picker-configuration/index.md"},E=s('

Time picker configuration

Configuration properties for the time picker, applicable whether it is used standalone or with the datepicker.

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, enableTimePicker as enable-time-picker and so on

time-picker-inline

Configures the time picker to display under the calendar rather than opening it as an overlay.

  • Type: boolean
  • Default: false
',6),r=s(`
Code Example
vue
<template>
+import{_ as h,E as t,c as k,J as i,al as s,o as e}from"./chunks/framework.DOHaQP0J.js";const R=JSON.parse('{"title":"Props - Time picker configuration","description":"Configure time-picker behavior","frontmatter":{"lang":"en-US","title":"Props - Time picker configuration","description":"Configure time-picker behavior"},"headers":[],"relativePath":"props/time-picker-configuration/index.md","filePath":"props/time-picker-configuration/index.md"}'),p={name:"props/time-picker-configuration/index.md"},E=s('

Time picker configuration

Configuration properties for the time picker, applicable whether it is used standalone or with the datepicker.

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, enableTimePicker as enable-time-picker and so on

time-picker-inline

Configures the time picker to display under the calendar rather than opening it as an overlay.

  • Type: boolean
  • Default: false
',6),r=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date" time-picker-inline />
 </template>
 
diff --git a/docs/assets/props_time-picker-configuration_index.md.CgJ_Uq0d.lean.js b/docs/assets/props_time-picker-configuration_index.md.B-A71Go6.lean.js
similarity index 96%
rename from docs/assets/props_time-picker-configuration_index.md.CgJ_Uq0d.lean.js
rename to docs/assets/props_time-picker-configuration_index.md.B-A71Go6.lean.js
index 1e6579af6..ee0c2de06 100644
--- a/docs/assets/props_time-picker-configuration_index.md.CgJ_Uq0d.lean.js
+++ b/docs/assets/props_time-picker-configuration_index.md.B-A71Go6.lean.js
@@ -1 +1 @@
-import{_ as h,E as t,c as k,J as i,al as s,o as e}from"./chunks/framework.B2SzNmjg.js";const R=JSON.parse('{"title":"Props - Time picker configuration","description":"Configure time-picker behavior","frontmatter":{"lang":"en-US","title":"Props - Time picker configuration","description":"Configure time-picker behavior"},"headers":[],"relativePath":"props/time-picker-configuration/index.md","filePath":"props/time-picker-configuration/index.md"}'),p={name:"props/time-picker-configuration/index.md"},E=s("",6),r=s("",4),d=s("",4),g=s("",4),y=s("",4),o=s("",4),c=s("",4),F=s("",5),u=s("",5),m=s("",4),C=s("",4),D=s("",4),A=s("",4),_=s("",4),B=s("",4),b=s("",4),v=s("",5),T=s("",7),f=s("",1);function q(P,S,w,V,x,I){const a=t("GlobalDemo"),n=t("EmptyDemo"),l=t("DisabledTimesDemo");return e(),k("div",null,[E,i(a,{"time-picker-inline":!0}),r,i(a,{"enable-time-picker":!1}),d,i(a,{"is-24":!1}),g,i(a,{"enable-seconds":!0}),y,i(a,{"hours-increment":"2"}),o,i(a,{"minutes-increment":"5"}),c,i(a,{"seconds-increment":"5","enable-seconds":!0}),F,i(a,{"hours-grid-increment":"2"}),u,i(a,{"minutes-grid-increment":"2"}),m,i(a,{"seconds-grid-increment":"2","enable-seconds":!0}),C,i(a,{"no-hours-overlay":!0}),D,i(a,{"no-minutes-overlay":!0}),A,i(a,{"no-seconds-overlay":!0,"enable-seconds":!0}),_,i(n,{"min-time":{hours:11,minutes:30},placeholder:"Select Date"}),B,i(n,{"max-time":{hours:11,minutes:30},placeholder:"Select Date"}),b,i(n,{"start-time":{hours:0,minutes:0},placeholder:"Select Date"}),v,i(n,{"time-picker":!0,"disable-time-range-validation":!0,range:!0,placeholder:"Select Time"}),T,i(l),f])}const j=h(p,[["render",q]]);export{R as __pageData,j as default};
+import{_ as h,E as t,c as k,J as i,al as s,o as e}from"./chunks/framework.DOHaQP0J.js";const R=JSON.parse('{"title":"Props - Time picker configuration","description":"Configure time-picker behavior","frontmatter":{"lang":"en-US","title":"Props - Time picker configuration","description":"Configure time-picker behavior"},"headers":[],"relativePath":"props/time-picker-configuration/index.md","filePath":"props/time-picker-configuration/index.md"}'),p={name:"props/time-picker-configuration/index.md"},E=s("",6),r=s("",4),d=s("",4),g=s("",4),y=s("",4),o=s("",4),c=s("",4),F=s("",5),u=s("",5),m=s("",4),C=s("",4),D=s("",4),A=s("",4),_=s("",4),B=s("",4),b=s("",4),v=s("",5),T=s("",7),f=s("",1);function q(P,S,w,V,x,I){const a=t("GlobalDemo"),n=t("EmptyDemo"),l=t("DisabledTimesDemo");return e(),k("div",null,[E,i(a,{"time-picker-inline":!0}),r,i(a,{"enable-time-picker":!1}),d,i(a,{"is-24":!1}),g,i(a,{"enable-seconds":!0}),y,i(a,{"hours-increment":"2"}),o,i(a,{"minutes-increment":"5"}),c,i(a,{"seconds-increment":"5","enable-seconds":!0}),F,i(a,{"hours-grid-increment":"2"}),u,i(a,{"minutes-grid-increment":"2"}),m,i(a,{"seconds-grid-increment":"2","enable-seconds":!0}),C,i(a,{"no-hours-overlay":!0}),D,i(a,{"no-minutes-overlay":!0}),A,i(a,{"no-seconds-overlay":!0,"enable-seconds":!0}),_,i(n,{"min-time":{hours:11,minutes:30},placeholder:"Select Date"}),B,i(n,{"max-time":{hours:11,minutes:30},placeholder:"Select Date"}),b,i(n,{"start-time":{hours:0,minutes:0},placeholder:"Select Date"}),v,i(n,{"time-picker":!0,"disable-time-range-validation":!0,range:!0,placeholder:"Select Time"}),T,i(l),f])}const j=h(p,[["render",q]]);export{R as __pageData,j as default};
diff --git a/docs/assets/slots_components_index.md.Cxcxj9gh.js b/docs/assets/slots_components_index.md.7eFAUSru.js
similarity index 99%
rename from docs/assets/slots_components_index.md.Cxcxj9gh.js
rename to docs/assets/slots_components_index.md.7eFAUSru.js
index f0b297f5d..91af28543 100644
--- a/docs/assets/slots_components_index.md.Cxcxj9gh.js
+++ b/docs/assets/slots_components_index.md.7eFAUSru.js
@@ -1,4 +1,4 @@
-import{_ as l,E as i,c as t,J as a,al as s,o as p}from"./chunks/framework.B2SzNmjg.js";const D=JSON.parse('{"title":"Slots - Components","description":"Replace the built-in components with custom implementation","frontmatter":{"lang":"en-US","title":"Slots - Components","description":"Replace the built-in components with custom implementation"},"headers":[],"relativePath":"slots/components/index.md","filePath":"slots/components/index.md"}'),e={name:"slots/components/index.md"},E=s('

Component slots

Replace the built-in components with custom implementation

month-year

Create and use a custom component implementation in the header for month/year select

Info

When using this slot, the overlays will not be available, it is up to you to create them if you want

Warning

Depending on the used mode, slot will provide a different set of props

',6),r=s(`

Exposed props:

Date picker

ts
interface DefaultSelect {
+import{_ as l,E as i,c as t,J as a,al as s,o as p}from"./chunks/framework.DOHaQP0J.js";const D=JSON.parse('{"title":"Slots - Components","description":"Replace the built-in components with custom implementation","frontmatter":{"lang":"en-US","title":"Slots - Components","description":"Replace the built-in components with custom implementation"},"headers":[],"relativePath":"slots/components/index.md","filePath":"slots/components/index.md"}'),e={name:"slots/components/index.md"},E=s('

Component slots

Replace the built-in components with custom implementation

month-year

Create and use a custom component implementation in the header for month/year select

Info

When using this slot, the overlays will not be available, it is up to you to create them if you want

Warning

Depending on the used mode, slot will provide a different set of props

',6),r=s(`

Exposed props:

Date picker

ts
interface DefaultSelect {
   value: number;
   text: string;
   className?: Record<string, boolean>;
diff --git a/docs/assets/slots_components_index.md.Cxcxj9gh.lean.js b/docs/assets/slots_components_index.md.7eFAUSru.lean.js
similarity index 91%
rename from docs/assets/slots_components_index.md.Cxcxj9gh.lean.js
rename to docs/assets/slots_components_index.md.7eFAUSru.lean.js
index 02e757747..044544d11 100644
--- a/docs/assets/slots_components_index.md.Cxcxj9gh.lean.js
+++ b/docs/assets/slots_components_index.md.7eFAUSru.lean.js
@@ -1 +1 @@
-import{_ as l,E as i,c as t,J as a,al as s,o as p}from"./chunks/framework.B2SzNmjg.js";const D=JSON.parse('{"title":"Slots - Components","description":"Replace the built-in components with custom implementation","frontmatter":{"lang":"en-US","title":"Slots - Components","description":"Replace the built-in components with custom implementation"},"headers":[],"relativePath":"slots/components/index.md","filePath":"slots/components/index.md"}'),e={name:"slots/components/index.md"},E=s("",6),r=s("",12),d=s("",7),g=s("",3);function y(F,o,c,C,u,B){const n=i("MonthYearSlotDemo"),h=i("TimePickerSlotDemo"),k=i("ActionRowSlotDemo");return p(),t("div",null,[E,a(n,{"default-slot":!0}),r,a(h),d,a(k),g])}const m=l(e,[["render",y]]);export{D as __pageData,m as default};
+import{_ as l,E as i,c as t,J as a,al as s,o as p}from"./chunks/framework.DOHaQP0J.js";const D=JSON.parse('{"title":"Slots - Components","description":"Replace the built-in components with custom implementation","frontmatter":{"lang":"en-US","title":"Slots - Components","description":"Replace the built-in components with custom implementation"},"headers":[],"relativePath":"slots/components/index.md","filePath":"slots/components/index.md"}'),e={name:"slots/components/index.md"},E=s("",6),r=s("",12),d=s("",7),g=s("",3);function y(F,o,c,C,u,B){const n=i("MonthYearSlotDemo"),h=i("TimePickerSlotDemo"),k=i("ActionRowSlotDemo");return p(),t("div",null,[E,a(n,{"default-slot":!0}),r,a(h),d,a(k),g])}const m=l(e,[["render",y]]);export{D as __pageData,m as default};
diff --git a/docs/assets/slots_content_index.md.DR4zoMX0.js b/docs/assets/slots_content_index.md.BMkMyi_p.js
similarity index 99%
rename from docs/assets/slots_content_index.md.DR4zoMX0.js
rename to docs/assets/slots_content_index.md.BMkMyi_p.js
index 0b9a070ec..8c9d81734 100644
--- a/docs/assets/slots_content_index.md.DR4zoMX0.js
+++ b/docs/assets/slots_content_index.md.BMkMyi_p.js
@@ -1,4 +1,4 @@
-import{_ as t,E as n,c as k,J as i,al as s,o as l}from"./chunks/framework.B2SzNmjg.js";const T=JSON.parse('{"title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu","frontmatter":{"lang":"en-US","title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu"},"headers":[],"relativePath":"slots/content/index.md","filePath":"slots/content/index.md"}'),p={name:"slots/content/index.md"},e=s('

Content

Customize parts in the datepicker menu

calendar-header

Replace the content in the calendar header cells

Available props are:

  • day: Displayed value in the header cell
  • index: Column index it is rendered by
',6),E=s(`
Code Example
vue
<template>
+import{_ as t,E as n,c as k,J as i,al as s,o as l}from"./chunks/framework.DOHaQP0J.js";const T=JSON.parse('{"title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu","frontmatter":{"lang":"en-US","title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu"},"headers":[],"relativePath":"slots/content/index.md","filePath":"slots/content/index.md"}'),p={name:"slots/content/index.md"},e=s('

Content

Customize parts in the datepicker menu

calendar-header

Replace the content in the calendar header cells

Available props are:

  • day: Displayed value in the header cell
  • index: Column index it is rendered by
',6),E=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date">
       <template #calendar-header="{ index, day }">
         <div :class="index === 5 || index === 6 ? 'red-color' : ''">
diff --git a/docs/assets/slots_content_index.md.DR4zoMX0.lean.js b/docs/assets/slots_content_index.md.BMkMyi_p.lean.js
similarity index 94%
rename from docs/assets/slots_content_index.md.DR4zoMX0.lean.js
rename to docs/assets/slots_content_index.md.BMkMyi_p.lean.js
index a1c04b376..04fd659d7 100644
--- a/docs/assets/slots_content_index.md.DR4zoMX0.lean.js
+++ b/docs/assets/slots_content_index.md.BMkMyi_p.lean.js
@@ -1 +1 @@
-import{_ as t,E as n,c as k,J as i,al as s,o as l}from"./chunks/framework.B2SzNmjg.js";const T=JSON.parse('{"title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu","frontmatter":{"lang":"en-US","title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu"},"headers":[],"relativePath":"slots/content/index.md","filePath":"slots/content/index.md"}'),p={name:"slots/content/index.md"},e=s("",6),E=s("",5),r=s("",3),d=s("",5),g=s("",5),y=s("",5),F=s("",21),o=s("",20),c=s("",5),C=s("",6),u=s("",5),A=s("",1);function D(B,m,b,v,f,_){const a=n("DemoSlots"),h=n("DemoMarkers");return l(),k("div",null,[e,i(a,{useCalendarHeaderSlot:!0}),E,i(a,{useDaySlot:!0}),r,i(a,{useActionButtonSlot:!0}),d,i(a,{useActionPreviewSlot:!0}),g,i(a,{useActionExtraSlot:!0,showNowButton:!0,placeholder:"Select Date"}),y,i(a,{useAmPmButtonSlot:!0,is24:!1,placeholder:"Select Date"}),F,i(a,{useLeftSidebarSlot:!0,placeholder:"Select Date"}),o,i(a,{useRightSidebarSlot:!0,placeholder:"Select Date"}),c,i(h,{useMarkerTooltipSlot:!0}),C,i(h,{useMarkerSlot:!0}),u,i(a,{useQuarterSlot:!0}),A])}const w=t(p,[["render",D]]);export{T as __pageData,w as default};
+import{_ as t,E as n,c as k,J as i,al as s,o as l}from"./chunks/framework.DOHaQP0J.js";const T=JSON.parse('{"title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu","frontmatter":{"lang":"en-US","title":"Slots - Content","description":"Datepicker content slots to customize parts in the menu"},"headers":[],"relativePath":"slots/content/index.md","filePath":"slots/content/index.md"}'),p={name:"slots/content/index.md"},e=s("",6),E=s("",5),r=s("",3),d=s("",5),g=s("",5),y=s("",5),F=s("",21),o=s("",20),c=s("",5),C=s("",6),u=s("",5),A=s("",1);function D(B,m,b,v,f,_){const a=n("DemoSlots"),h=n("DemoMarkers");return l(),k("div",null,[e,i(a,{useCalendarHeaderSlot:!0}),E,i(a,{useDaySlot:!0}),r,i(a,{useActionButtonSlot:!0}),d,i(a,{useActionPreviewSlot:!0}),g,i(a,{useActionExtraSlot:!0,showNowButton:!0,placeholder:"Select Date"}),y,i(a,{useAmPmButtonSlot:!0,is24:!1,placeholder:"Select Date"}),F,i(a,{useLeftSidebarSlot:!0,placeholder:"Select Date"}),o,i(a,{useRightSidebarSlot:!0,placeholder:"Select Date"}),c,i(h,{useMarkerTooltipSlot:!0}),C,i(h,{useMarkerSlot:!0}),u,i(a,{useQuarterSlot:!0}),A])}const w=t(p,[["render",D]]);export{T as __pageData,w as default};
diff --git a/docs/assets/slots_icons_index.md.D_-9a492.js b/docs/assets/slots_icons_index.md.DXALZ63G.js
similarity index 99%
rename from docs/assets/slots_icons_index.md.D_-9a492.js
rename to docs/assets/slots_icons_index.md.DXALZ63G.js
index eabc4f0f0..67d3649f4 100644
--- a/docs/assets/slots_icons_index.md.D_-9a492.js
+++ b/docs/assets/slots_icons_index.md.DXALZ63G.js
@@ -1,4 +1,4 @@
-import{_ as t,E as l,c as k,J as i,m as n,a as h,al as a,o as p}from"./chunks/framework.B2SzNmjg.js";const f=JSON.parse('{"title":"Slots - Icons","description":"Customize the icons in the datepicker","frontmatter":{"lang":"en-US","title":"Slots - Icons","description":"Customize the icons in the datepicker"},"headers":[],"relativePath":"slots/icons/index.md","filePath":"slots/icons/index.md"}'),e={name:"slots/icons/index.md"},E=n("h1",{id:"icons",tabindex:"-1"},[h("Icons "),n("a",{class:"header-anchor",href:"#icons","aria-label":'Permalink to "Icons"'},"​")],-1),r=n("p",null,"Change datepicker icons",-1),d=n("h2",{id:"input-icon",tabindex:"-1"},[h("input-icon "),n("a",{class:"header-anchor",href:"#input-icon","aria-label":'Permalink to "input-icon"'},"​")],-1),g=n("p",null,"This slot replaces the calendar icon in the input element with your custom element",-1),y=a(`
Code Example
vue
<template>
+import{_ as t,E as l,c as k,J as i,m as n,a as h,al as a,o as p}from"./chunks/framework.DOHaQP0J.js";const f=JSON.parse('{"title":"Slots - Icons","description":"Customize the icons in the datepicker","frontmatter":{"lang":"en-US","title":"Slots - Icons","description":"Customize the icons in the datepicker"},"headers":[],"relativePath":"slots/icons/index.md","filePath":"slots/icons/index.md"}'),e={name:"slots/icons/index.md"},E=n("h1",{id:"icons",tabindex:"-1"},[h("Icons "),n("a",{class:"header-anchor",href:"#icons","aria-label":'Permalink to "Icons"'},"​")],-1),r=n("p",null,"Change datepicker icons",-1),d=n("h2",{id:"input-icon",tabindex:"-1"},[h("input-icon "),n("a",{class:"header-anchor",href:"#input-icon","aria-label":'Permalink to "input-icon"'},"​")],-1),g=n("p",null,"This slot replaces the calendar icon in the input element with your custom element",-1),y=a(`
Code Example
vue
<template>
     <VueDatePicker v-model="date">
         <template #input-icon>
             <img class="input-slot-image" src="/logo.png"/>
diff --git a/docs/assets/slots_icons_index.md.D_-9a492.lean.js b/docs/assets/slots_icons_index.md.DXALZ63G.lean.js
similarity index 95%
rename from docs/assets/slots_icons_index.md.D_-9a492.lean.js
rename to docs/assets/slots_icons_index.md.DXALZ63G.lean.js
index bccfd92f8..b04c1d117 100644
--- a/docs/assets/slots_icons_index.md.D_-9a492.lean.js
+++ b/docs/assets/slots_icons_index.md.DXALZ63G.lean.js
@@ -1 +1 @@
-import{_ as t,E as l,c as k,J as i,m as n,a as h,al as a,o as p}from"./chunks/framework.B2SzNmjg.js";const f=JSON.parse('{"title":"Slots - Icons","description":"Customize the icons in the datepicker","frontmatter":{"lang":"en-US","title":"Slots - Icons","description":"Customize the icons in the datepicker"},"headers":[],"relativePath":"slots/icons/index.md","filePath":"slots/icons/index.md"}'),e={name:"slots/icons/index.md"},E=n("h1",{id:"icons",tabindex:"-1"},[h("Icons "),n("a",{class:"header-anchor",href:"#icons","aria-label":'Permalink to "Icons"'},"​")],-1),r=n("p",null,"Change datepicker icons",-1),d=n("h2",{id:"input-icon",tabindex:"-1"},[h("input-icon "),n("a",{class:"header-anchor",href:"#input-icon","aria-label":'Permalink to "input-icon"'},"​")],-1),g=n("p",null,"This slot replaces the calendar icon in the input element with your custom element",-1),y=a("",3),c=a("",3),o=a("",3),F=a("",3),C=a("",3),u=a("",3),m=a("",3),D=a("",1);function A(B,_,v,q,b,T){const s=l("DemoSlots");return p(),k("div",null,[E,r,d,g,i(s,{useInputIconSlot:!0}),y,i(s,{useClearIconSlot:!0}),c,i(s,{useClockIconSlot:!0}),o,i(s,{useArrowLeftSlot:!0}),F,i(s,{useArrowRightSlot:!0}),C,i(s,{useArrowUpSlot:!0}),u,i(s,{useArrowDownSlot:!0}),m,i(s,{useCalendarIconSlot:!0}),D])}const P=t(e,[["render",A]]);export{f as __pageData,P as default};
+import{_ as t,E as l,c as k,J as i,m as n,a as h,al as a,o as p}from"./chunks/framework.DOHaQP0J.js";const f=JSON.parse('{"title":"Slots - Icons","description":"Customize the icons in the datepicker","frontmatter":{"lang":"en-US","title":"Slots - Icons","description":"Customize the icons in the datepicker"},"headers":[],"relativePath":"slots/icons/index.md","filePath":"slots/icons/index.md"}'),e={name:"slots/icons/index.md"},E=n("h1",{id:"icons",tabindex:"-1"},[h("Icons "),n("a",{class:"header-anchor",href:"#icons","aria-label":'Permalink to "Icons"'},"​")],-1),r=n("p",null,"Change datepicker icons",-1),d=n("h2",{id:"input-icon",tabindex:"-1"},[h("input-icon "),n("a",{class:"header-anchor",href:"#input-icon","aria-label":'Permalink to "input-icon"'},"​")],-1),g=n("p",null,"This slot replaces the calendar icon in the input element with your custom element",-1),y=a("",3),c=a("",3),o=a("",3),F=a("",3),C=a("",3),u=a("",3),m=a("",3),D=a("",1);function A(B,_,v,q,b,T){const s=l("DemoSlots");return p(),k("div",null,[E,r,d,g,i(s,{useInputIconSlot:!0}),y,i(s,{useClearIconSlot:!0}),c,i(s,{useClockIconSlot:!0}),o,i(s,{useArrowLeftSlot:!0}),F,i(s,{useArrowRightSlot:!0}),C,i(s,{useArrowUpSlot:!0}),u,i(s,{useArrowDownSlot:!0}),m,i(s,{useCalendarIconSlot:!0}),D])}const P=t(e,[["render",A]]);export{f as __pageData,P as default};
diff --git a/docs/assets/slots_overlay_index.md.CjljENhD.js b/docs/assets/slots_overlay_index.md.qjQjkmON.js
similarity index 99%
rename from docs/assets/slots_overlay_index.md.CjljENhD.js
rename to docs/assets/slots_overlay_index.md.qjQjkmON.js
index 3fb5f3e36..a43cb0546 100644
--- a/docs/assets/slots_overlay_index.md.CjljENhD.js
+++ b/docs/assets/slots_overlay_index.md.qjQjkmON.js
@@ -1,4 +1,4 @@
-import{_ as l,E as h,c as t,J as i,al as s,o as k}from"./chunks/framework.B2SzNmjg.js";const P=JSON.parse('{"title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu","frontmatter":{"lang":"en-US","title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu"},"headers":[],"relativePath":"slots/overlay/index.md","filePath":"slots/overlay/index.md"}'),p={name:"slots/overlay/index.md"},e=s('

Overlay

Customize overlay and overlay triggers

time-picker-overlay

This slot replaces the full overlay in the timepicker

Several props are available:

  • range: Value passed from general props
  • hours: Selected hours value
  • minutes: Selected minutes value
  • seconds: Selected seconds value
  • setHours: Function to call to set hours, (hours: number | number[]) => void
  • setMinutes: Function to call to set minutes, (minutes: number | number[]) => void
  • setSeconds: Function to call to set seconds, (seconds: number | number[]) => void

Info

If you are using range mode, make sure to pass number arrays in functions

',7),E=s(`
Code Example
vue
<template>
+import{_ as l,E as h,c as t,J as i,al as s,o as k}from"./chunks/framework.DOHaQP0J.js";const P=JSON.parse('{"title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu","frontmatter":{"lang":"en-US","title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu"},"headers":[],"relativePath":"slots/overlay/index.md","filePath":"slots/overlay/index.md"}'),p={name:"slots/overlay/index.md"},e=s('

Overlay

Customize overlay and overlay triggers

time-picker-overlay

This slot replaces the full overlay in the timepicker

Several props are available:

  • range: Value passed from general props
  • hours: Selected hours value
  • minutes: Selected minutes value
  • seconds: Selected seconds value
  • setHours: Function to call to set hours, (hours: number | number[]) => void
  • setMinutes: Function to call to set minutes, (minutes: number | number[]) => void
  • setSeconds: Function to call to set seconds, (seconds: number | number[]) => void

Info

If you are using range mode, make sure to pass number arrays in functions

',7),E=s(`
Code Example
vue
<template>
     <VueDatePicker v-model="date">
       <template #time-picker-overlay="{ hours, minutes, setHours, setMinutes }">
         <div class="time-picker-overlay">
diff --git a/docs/assets/slots_overlay_index.md.CjljENhD.lean.js b/docs/assets/slots_overlay_index.md.qjQjkmON.lean.js
similarity index 94%
rename from docs/assets/slots_overlay_index.md.CjljENhD.lean.js
rename to docs/assets/slots_overlay_index.md.qjQjkmON.lean.js
index 6e9219732..d28f4ab9f 100644
--- a/docs/assets/slots_overlay_index.md.CjljENhD.lean.js
+++ b/docs/assets/slots_overlay_index.md.qjQjkmON.lean.js
@@ -1 +1 @@
-import{_ as l,E as h,c as t,J as i,al as s,o as k}from"./chunks/framework.B2SzNmjg.js";const P=JSON.parse('{"title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu","frontmatter":{"lang":"en-US","title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu"},"headers":[],"relativePath":"slots/overlay/index.md","filePath":"slots/overlay/index.md"}'),p={name:"slots/overlay/index.md"},e=s("",7),E=s("",5),r=s("",5),d=s("",5),g=s("",5),y=s("",5),o=s("",5),F=s("",5),c=s("",5),u=s("",3),C=s("",5),m=s("",5),A=s("",5),D=s("",3);function v(B,_,q,b,T,f){const a=h("DemoSlots"),n=h("MonthYearSlotDemo");return k(),t("div",null,[e,i(a,{useTimePickerOverlay:!0}),E,i(a,{useHoursSlot:!0}),r,i(a,{useMinutesSlot:!0}),d,i(a,{useHoursOverlaySlot:!0}),g,i(a,{useMinutesOverlaySlot:!0}),y,i(a,{useMonthSlot:!0}),o,i(a,{useYearSlot:!0}),F,i(a,{useMonthOverlaySlot:!0}),c,i(a,{useYearOverlaySlot:!0}),u,i(n,{"month-overlay-slot":!0}),C,i(n,{"year-overlay-slot":!0}),m,i(a,{"use-month-overlay-header-slot":!0}),A,i(a,{useYearOverlayHeaderSlot:!0}),D])}const S=l(p,[["render",v]]);export{P as __pageData,S as default};
+import{_ as l,E as h,c as t,J as i,al as s,o as k}from"./chunks/framework.DOHaQP0J.js";const P=JSON.parse('{"title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu","frontmatter":{"lang":"en-US","title":"Slots - Overlay","description":"Customize the overlays in the datepicker menu"},"headers":[],"relativePath":"slots/overlay/index.md","filePath":"slots/overlay/index.md"}'),p={name:"slots/overlay/index.md"},e=s("",7),E=s("",5),r=s("",5),d=s("",5),g=s("",5),y=s("",5),o=s("",5),F=s("",5),c=s("",5),u=s("",3),C=s("",5),m=s("",5),A=s("",5),D=s("",3);function v(B,_,q,b,T,f){const a=h("DemoSlots"),n=h("MonthYearSlotDemo");return k(),t("div",null,[e,i(a,{useTimePickerOverlay:!0}),E,i(a,{useHoursSlot:!0}),r,i(a,{useMinutesSlot:!0}),d,i(a,{useHoursOverlaySlot:!0}),g,i(a,{useMinutesOverlaySlot:!0}),y,i(a,{useMonthSlot:!0}),o,i(a,{useYearSlot:!0}),F,i(a,{useMonthOverlaySlot:!0}),c,i(a,{useYearOverlaySlot:!0}),u,i(n,{"month-overlay-slot":!0}),C,i(n,{"year-overlay-slot":!0}),m,i(a,{"use-month-overlay-header-slot":!0}),A,i(a,{useYearOverlayHeaderSlot:!0}),D])}const S=l(p,[["render",v]]);export{P as __pageData,S as default};
diff --git a/docs/assets/slots_trigger-and-input_index.md.DooEIT1V.js b/docs/assets/slots_trigger-and-input_index.md.9QeZtfb8.js
similarity index 99%
rename from docs/assets/slots_trigger-and-input_index.md.DooEIT1V.js
rename to docs/assets/slots_trigger-and-input_index.md.9QeZtfb8.js
index 29c24c7d1..d69f7831f 100644
--- a/docs/assets/slots_trigger-and-input_index.md.DooEIT1V.js
+++ b/docs/assets/slots_trigger-and-input_index.md.9QeZtfb8.js
@@ -1,4 +1,4 @@
-import{_ as l,E as e,c as p,J as a,m as s,a as t,al as n,o as h}from"./chunks/framework.B2SzNmjg.js";const A=JSON.parse('{"title":"Slots - Trigger and input","description":"Change the datepicker trigger or input","frontmatter":{"lang":"en-US","title":"Slots - Trigger and input","description":"Change the datepicker trigger or input"},"headers":[],"relativePath":"slots/trigger-and-input/index.md","filePath":"slots/trigger-and-input/index.md"}'),k={name:"slots/trigger-and-input/index.md"},E=s("h1",{id:"trigger-and-input",tabindex:"-1"},[t("Trigger and input "),s("a",{class:"header-anchor",href:"#trigger-and-input","aria-label":'Permalink to "Trigger and input"'},"​")],-1),d=s("p",null,"Use custom input or trigger element",-1),r=s("h2",{id:"trigger",tabindex:"-1"},[t("trigger "),s("a",{class:"header-anchor",href:"#trigger","aria-label":'Permalink to "trigger"'},"​")],-1),o=s("p",null,"This slot replaces the input element with your custom element",-1),g=n(`
Code Example
vue
<template>
+import{_ as l,E as e,c as p,J as a,m as s,a as t,al as n,o as h}from"./chunks/framework.DOHaQP0J.js";const A=JSON.parse('{"title":"Slots - Trigger and input","description":"Change the datepicker trigger or input","frontmatter":{"lang":"en-US","title":"Slots - Trigger and input","description":"Change the datepicker trigger or input"},"headers":[],"relativePath":"slots/trigger-and-input/index.md","filePath":"slots/trigger-and-input/index.md"}'),k={name:"slots/trigger-and-input/index.md"},E=s("h1",{id:"trigger-and-input",tabindex:"-1"},[t("Trigger and input "),s("a",{class:"header-anchor",href:"#trigger-and-input","aria-label":'Permalink to "Trigger and input"'},"​")],-1),d=s("p",null,"Use custom input or trigger element",-1),r=s("h2",{id:"trigger",tabindex:"-1"},[t("trigger "),s("a",{class:"header-anchor",href:"#trigger","aria-label":'Permalink to "trigger"'},"​")],-1),o=s("p",null,"This slot replaces the input element with your custom element",-1),g=n(`
Code Example
vue
<template>
     <VueDatePicker v-model="date">
         <template #trigger>
             <p class="clickable-text">This is some custom clickable text that will open the datepicker</p>
diff --git a/docs/assets/slots_trigger-and-input_index.md.DooEIT1V.lean.js b/docs/assets/slots_trigger-and-input_index.md.9QeZtfb8.lean.js
similarity index 94%
rename from docs/assets/slots_trigger-and-input_index.md.DooEIT1V.lean.js
rename to docs/assets/slots_trigger-and-input_index.md.9QeZtfb8.lean.js
index 94238ab68..1ef8e0ec2 100644
--- a/docs/assets/slots_trigger-and-input_index.md.DooEIT1V.lean.js
+++ b/docs/assets/slots_trigger-and-input_index.md.9QeZtfb8.lean.js
@@ -1 +1 @@
-import{_ as l,E as e,c as p,J as a,m as s,a as t,al as n,o as h}from"./chunks/framework.B2SzNmjg.js";const A=JSON.parse('{"title":"Slots - Trigger and input","description":"Change the datepicker trigger or input","frontmatter":{"lang":"en-US","title":"Slots - Trigger and input","description":"Change the datepicker trigger or input"},"headers":[],"relativePath":"slots/trigger-and-input/index.md","filePath":"slots/trigger-and-input/index.md"}'),k={name:"slots/trigger-and-input/index.md"},E=s("h1",{id:"trigger-and-input",tabindex:"-1"},[t("Trigger and input "),s("a",{class:"header-anchor",href:"#trigger-and-input","aria-label":'Permalink to "Trigger and input"'},"​")],-1),d=s("p",null,"Use custom input or trigger element",-1),r=s("h2",{id:"trigger",tabindex:"-1"},[t("trigger "),s("a",{class:"header-anchor",href:"#trigger","aria-label":'Permalink to "trigger"'},"​")],-1),o=s("p",null,"This slot replaces the input element with your custom element",-1),g=n("",6),c=n("",1);function y(u,F,m,C,_,v){const i=e("DemoSlots");return h(),p("div",null,[E,d,r,o,a(i,{useTriggerSlot:!0}),g,a(i,{useDpInputSlot:!0}),c])}const B=l(k,[["render",y]]);export{A as __pageData,B as default};
+import{_ as l,E as e,c as p,J as a,m as s,a as t,al as n,o as h}from"./chunks/framework.DOHaQP0J.js";const A=JSON.parse('{"title":"Slots - Trigger and input","description":"Change the datepicker trigger or input","frontmatter":{"lang":"en-US","title":"Slots - Trigger and input","description":"Change the datepicker trigger or input"},"headers":[],"relativePath":"slots/trigger-and-input/index.md","filePath":"slots/trigger-and-input/index.md"}'),k={name:"slots/trigger-and-input/index.md"},E=s("h1",{id:"trigger-and-input",tabindex:"-1"},[t("Trigger and input "),s("a",{class:"header-anchor",href:"#trigger-and-input","aria-label":'Permalink to "Trigger and input"'},"​")],-1),d=s("p",null,"Use custom input or trigger element",-1),r=s("h2",{id:"trigger",tabindex:"-1"},[t("trigger "),s("a",{class:"header-anchor",href:"#trigger","aria-label":'Permalink to "trigger"'},"​")],-1),o=s("p",null,"This slot replaces the input element with your custom element",-1),g=n("",6),c=n("",1);function y(u,F,m,C,_,v){const i=e("DemoSlots");return h(),p("div",null,[E,d,r,o,a(i,{useTriggerSlot:!0}),g,a(i,{useDpInputSlot:!0}),c])}const B=l(k,[["render",y]]);export{A as __pageData,B as default};
diff --git a/docs/customization/theming/index.html b/docs/customization/theming/index.html
index ccdd48525..ba0845b03 100644
--- a/docs/customization/theming/index.html
+++ b/docs/customization/theming/index.html
@@ -5,14 +5,14 @@
     
     Customization - Theming | Vue Datepicker
     
-    
+    
     
     
-    
+    
     
-    
-    
-    
+    
+    
+    
     
     
     
@@ -21,7 +21,7 @@
     
   
   
-    
Skip to content

Theming

Datepicker comes with the theme support with css variables. It provides two classes that are applied based on the chosen dark/light mode

To change variables, simply override the classes with your custom values.

Info

  • When changing the properties, you only need to declare the class in the <style> tag, can be in global or scoped, depending on your needs
  • For the date picker to use dp__theme_dark, dark prop must be set to true

Dark mode configuration

css
.dp__theme_dark {
+    
Skip to content

Theming

Datepicker comes with the theme support with css variables. It provides two classes that are applied based on the chosen dark/light mode

To change variables, simply override the classes with your custom values.

Info

  • When changing the properties, you only need to declare the class in the <style> tag, can be in global or scoped, depending on your needs
  • For the date picker to use dp__theme_dark, dark prop must be set to true

Dark mode configuration

css
.dp__theme_dark {
     --dp-background-color: #212121;
     --dp-text-color: #fff;
     --dp-hover-color: #484848;
@@ -113,7 +113,7 @@
     --dp-menu-appear-transition-timing: cubic-bezier(.4, 0, 1, 1); /*Timing on menu appear animation*/
     --dp-transition-timing: ease-out; /*Timing on slide animations*/
 }

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/hashmap.json b/docs/hashmap.json index 3859f6bce..2bf69743c 100644 --- a/docs/hashmap.json +++ b/docs/hashmap.json @@ -1 +1 @@ -{"index.md":"B5oSc0py","methods-and-events_methods_index.md":"0feVXw7g","migration_from-v6.md":"0peUcKxn","props_positioning_index.md":"AfjfoNb8","migration_from-v7.md":"BnAyArtt","props_formatting_index.md":"C-P006Nh","installation_index.md":"C9vIZfPw","migration_from-v5.md":"Cq635meW","props_keyboard_index.md":"BnGeou5_","props_calendar-configuration_index.md":"DRps1Kaw","slots_icons_index.md":"D_-9a492","props_localization_index.md":"CaIi1TC8","customization_theming_index.md":"DtBIZP54","slots_trigger-and-input_index.md":"DooEIT1V","props_look-and-feel_index.md":"Bm5WJLuV","slots_components_index.md":"Cxcxj9gh","props_modes_index.md":"Bdk5X-Cz","props_general-configuration_index.md":"CPQRcHct","props_time-picker-configuration_index.md":"CgJ_Uq0d","slots_overlay_index.md":"CjljENhD","methods-and-events_events_index.md":"B7MJzm_G","slots_content_index.md":"DR4zoMX0","props_modes-configuration_index.md":"CTy8d0O1"} +{"index.md":"DrRFJyvX","migration_from-v7.md":"boLg9ElL","migration_from-v6.md":"cAqmszJE","migration_from-v5.md":"BjiXXbHe","methods-and-events_methods_index.md":"BNrr_BLs","slots_trigger-and-input_index.md":"9QeZtfb8","props_keyboard_index.md":"DAn71TE9","customization_theming_index.md":"BWG8EWC1","props_formatting_index.md":"DCXLBBGM","props_positioning_index.md":"B8HmwMtt","slots_icons_index.md":"DXALZ63G","installation_index.md":"CD7O8zY6","props_localization_index.md":"B115cafC","slots_components_index.md":"7eFAUSru","props_look-and-feel_index.md":"CoCqEdWD","props_calendar-configuration_index.md":"Pn_AocwL","props_time-picker-configuration_index.md":"B-A71Go6","methods-and-events_events_index.md":"CA2OhRDT","props_general-configuration_index.md":"BFu_0nw_","slots_overlay_index.md":"qjQjkmON","props_modes_index.md":"D2kbVgVM","slots_content_index.md":"BMkMyi_p","props_modes-configuration_index.md":"z9k4xP9z"} diff --git a/docs/index.html b/docs/index.html index 47cd8ff0b..7e8bfc0de 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,14 +5,14 @@ Vue Datepicker - + - + - - - + + + @@ -21,8 +21,8 @@ -
Skip to content

Vue datepicker

The most complete datepicker solution for Vue 3

Powerful, lightweight, and reusable datepicker component to fit within any project

⭐ If you like the component, give it a star on GitHub and consider sponsoring its development! ⭐

Released under the MIT License.

- +
Skip to content

Vue datepicker

The most complete datepicker solution for Vue 3

Powerful, lightweight, and reusable datepicker component to fit within any project

⭐ If you like the component, give it a star on GitHub and consider sponsoring its development! ⭐

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/installation/index.html b/docs/installation/index.html index e082e8310..bb3504e5e 100644 --- a/docs/installation/index.html +++ b/docs/installation/index.html @@ -5,14 +5,14 @@ Installation | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Installation

Install the component using the preferred package manager

shell
npm install @vuepic/vue-datepicker

or

shell
yarn add @vuepic/vue-datepicker

Then import and register component

Note: css file is imported separately

Global

In the main file

js
import { createApp } from "vue";
+    
Skip to content

Installation

Install the component using the preferred package manager

shell
npm install @vuepic/vue-datepicker

or

shell
yarn add @vuepic/vue-datepicker

Then import and register component

Note: css file is imported separately

Global

In the main file

js
import { createApp } from "vue";
 import App from './App.vue';
 
 import VueDatePicker from '@vuepic/vue-datepicker';
@@ -31,7 +31,7 @@
 
 app.component('VueDatePicker', VueDatePicker);
 
-app.mount('#app');

Local

In the .vue files

vue
<template>
+app.mount('#app');

Local

In the .vue files

vue
<template>
   <VueDatePicker v-model="date"></VueDatePicker>
 </template>
 
@@ -86,7 +86,7 @@
         transpile: ['@vuepic/vue-datepicker']
     }
 })

That's it, you are ready to go

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/methods-and-events/events/index.html b/docs/methods-and-events/events/index.html index b51022e8e..6734297f0 100644 --- a/docs/methods-and-events/events/index.html +++ b/docs/methods-and-events/events/index.html @@ -5,14 +5,14 @@ Events | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Events

List of available events that are emitted on some action

@update:model-value

This event is emitted when the value is selected. This is a v-model binding event

Code Example
vue
<template>
+    
Skip to content

Events

List of available events that are emitted on some action

@update:model-value

This event is emitted when the value is selected. This is a v-model binding event

Code Example
vue
<template>
     <VueDatePicker :model-value="date" @update:model-value="handleDate" />
 </template>
 
@@ -372,7 +372,7 @@
     console.log(`Selected ${date}`);
   }
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/methods-and-events/methods/index.html b/docs/methods-and-events/methods/index.html index aa125705b..0ca154241 100644 --- a/docs/methods-and-events/methods/index.html +++ b/docs/methods-and-events/methods/index.html @@ -5,14 +5,14 @@ Methods | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Methods

List of available methods that you can call on the datepicker from the external code

Add a ref to the component, and call the method on that ref

Code Example
vue
<template>
+    
Skip to content

Methods

List of available methods that you can call on the datepicker from the external code

Add a ref to the component, and call the method on that ref

Code Example
vue
<template>
     <VueDatePicker v-model="date" ref="datepicker" />
 </template>
 
@@ -39,7 +39,7 @@
   }
 }
 </script>

selectDate

When called and there is an active selection, it will select that date.

closeMenu

Closes the datepicker menu

openMenu

Opens the datepicker menu

clearValue

Clears the selected value

updateInternalModelValue

  • Parameter: Date | Date[]

Modify the internal model-value while the picker is in the open state.

setMonthYear

  • Parameter: { month?: number | string; year?: number | string; }

Set calendar month and year programmatically

onScroll

Manually trigger method that is called on window scroll

parseModel

Calls internal parseExternalModelValue that will replace or reformat text input value and internal model value

switchView

Manually show overlay

Note

To close overlay pass 'calendar' as parameter

  • Parameter 1: 'month' | 'year' | 'calendar' | 'time'
  • Parameter 2 (optional): number - instance number in case of multiple calendars

Type: (view: 'month' | 'year' | 'calendar' | 'time', instance?: number) => void;

toggleMenu

Manually toggle picker menu

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/migration/from-v5.html b/docs/migration/from-v5.html index 380e919f7..7e3a7947e 100644 --- a/docs/migration/from-v5.html +++ b/docs/migration/from-v5.html @@ -5,14 +5,14 @@ Migration from v5 | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Migrating from v5

Breaking changes

  • month-picker and year-picker no longer have predefined value if v-model is empty
  • aria-label for arrow buttons in month-picker mode is changed to Next/Previous year
  • auto-apply-month prop is removed (will work with auto-apply prop set)
  • show-now-button prop is removed
  • month-year slot will have different props depending on the used mode
  • Property handleMonthYearChange is removed from sidebar-[left/right] slot props
  • Props changes (check props-reconfiguration)

Props reconfiguration

Based on the list of removed props, and depending on your usage, you might need to do a slight adjustments to keep prior behaviour:

multi-calendars-solo and multi-static

These 2 props are now merged into a configuration object that can be passed

to multi-calendars prop

Info

For prop definition, check multi-calendars prop

js

+    
Skip to content

Migrating from v5

Breaking changes

  • month-picker and year-picker no longer have predefined value if v-model is empty
  • aria-label for arrow buttons in month-picker mode is changed to Next/Previous year
  • auto-apply-month prop is removed (will work with auto-apply prop set)
  • show-now-button prop is removed
  • month-year slot will have different props depending on the used mode
  • Property handleMonthYearChange is removed from sidebar-[left/right] slot props
  • Props changes (check props-reconfiguration)

Props reconfiguration

Based on the list of removed props, and depending on your usage, you might need to do a slight adjustments to keep prior behaviour:

multi-calendars-solo and multi-static

These 2 props are now merged into a configuration object that can be passed

to multi-calendars prop

Info

For prop definition, check multi-calendars prop

js

 <template>
 
   <VueDatePicker
@@ -70,7 +70,7 @@
     { label: 'Today', value: [new Date(), new Date()] },
   ]
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/migration/from-v6.html b/docs/migration/from-v6.html index ae9b0baf0..b14b72c40 100644 --- a/docs/migration/from-v6.html +++ b/docs/migration/from-v6.html @@ -5,14 +5,14 @@ Migration from v6 | Vue Datepicker - + - + - - - + + + @@ -21,8 +21,8 @@ -
Skip to content

Migrating from v6

Breaking changes

  • Wrapper for preset-dates is changed from <div> to <template>, which may cause potential styles break if you use a slot for the preset-dates item
  • Removed deprecated props
    • Removed
      • closeOnScroll
      • modeHeight
      • allowPreventDefault
      • closeOnClearValue
      • closeOnAutoApply
      • noSwipe
      • keepActionRow
      • onClickOutside

All removed props are now part of the config prop

Released under the MIT License.

- +
Skip to content

Migrating from v6

Breaking changes

  • Wrapper for preset-dates is changed from <div> to <template>, which may cause potential styles break if you use a slot for the preset-dates item
  • Removed deprecated props
    • Removed
      • closeOnScroll
      • modeHeight
      • allowPreventDefault
      • closeOnClearValue
      • closeOnAutoApply
      • noSwipe
      • keepActionRow
      • onClickOutside

All removed props are now part of the config prop

Released under the MIT License.

+ \ No newline at end of file diff --git a/docs/migration/from-v7.html b/docs/migration/from-v7.html index 398d17bab..4af682be4 100644 --- a/docs/migration/from-v7.html +++ b/docs/migration/from-v7.html @@ -5,14 +5,14 @@ Migration from v7 | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Migrating from v7

Breaking changes

  • Default week-picker format is changed to week numbers
  • Tabbing out from the overlay will shift focus to the action row button if present
  • Removed deprecated props
    • Removed
      • highlight-week-days
      • highlight-disabled-days
      • highlight prop types
        • Date[]
        • string[]
        • number[]
  • id for calendar days is changed to formatted value instead of ISO value
  • date-fns-tz library is removed
  • date-fns library is updated to v3

highlight

Info

For prop definition, check highlight prop

js
<template>
+    
Skip to content

Migrating from v7

Breaking changes

  • Default week-picker format is changed to week numbers
  • Tabbing out from the overlay will shift focus to the action row button if present
  • Removed deprecated props
    • Removed
      • highlight-week-days
      • highlight-disabled-days
      • highlight prop types
        • Date[]
        • string[]
        • number[]
  • id for calendar days is changed to formatted value instead of ISO value
  • date-fns-tz library is removed
  • date-fns library is updated to v3

highlight

Info

For prop definition, check highlight prop

js
<template>
   <VueDatePicker
     :highlight="[new Date()]"
     :highlight="{ days: [ new Date() ] }"
@@ -42,7 +42,7 @@
 
 const cellEl = document.getElementById(today.toISOString().split("T")[0]); 
 const cellEl = document.getElementById(format(today, 'yyyy-MM-dd')) 

date-fns and date-fns-tz

  • date-fns-tz library is removed as peer dependency from the picker
  • date-fns library is updated to v3. If you use it somewhere else in your project, make sure to check the changelog for potential breaking changes

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/calendar-configuration/index.html b/docs/props/calendar-configuration/index.html index 5e3f18aae..e60491903 100644 --- a/docs/props/calendar-configuration/index.html +++ b/docs/props/calendar-configuration/index.html @@ -5,14 +5,14 @@ Props - Calendar configuration | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Calendar configuration

Configure calendar options such as behavior or available dates

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, weekNumbers as week-numbers and so on

calendar

Customize the calendar view, filter out weeks, add or remove custom classes

Warning

Do not modify date values

  • Type: (weeks: CalendarWeek[]) => CalendarWeek[];
  • Default: null
ts
interface CalendarWeek {
+    
Skip to content

Calendar configuration

Configure calendar options such as behavior or available dates

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, weekNumbers as week-numbers and so on

calendar

Customize the calendar view, filter out weeks, add or remove custom classes

Warning

Do not modify date values

  • Type: (weeks: CalendarWeek[]) => CalendarWeek[];
  • Default: null
ts
interface CalendarWeek {
   days: {
     text: number | string; // Value displayed in the calendar day box
     value: Date; // Date that is going to be selected, do not modify
@@ -257,7 +257,7 @@
 
 const disabledDates = [subDays(new Date(), 1), new Date(), addDays(new Date(), 1)];
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/formatting/index.html b/docs/props/formatting/index.html index c605a4731..78aa90293 100644 --- a/docs/props/formatting/index.html +++ b/docs/props/formatting/index.html @@ -5,14 +5,14 @@ Props - Formatting | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Formatting

Format options for the value displayed in the input or preview

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, previewFormat as preview-format and so on

format

Format the value of the date(s) in the input field. Formatting is done automatically via provided string format. However, you can override the default format by providing a custom formatter function

  • Type: string | ((date: Date) => string) | ((dates: Date[]) => string);
  • Default:
    • Single picker: 'MM/dd/yyyy HH:mm'
    • Range picker: 'MM/dd/yyyy HH:mm - MM/dd/yyyy HH:mm'
    • Month picker: 'MM/yyyy'
    • Time picker: 'HH:mm'
    • Time picker range: 'HH:mm - HH:mm'
    • Week picker 'RR-yyyy' | 'ww-yyyy' (depends on week numbering)

Info

If is-24 prop is set to false, hours format will be changed to 'hh:mm aa'

For additional information on how to pass custom string format you can check Unicode tokens

Code Example
vue
<template>
+    
Skip to content

Formatting

Format options for the value displayed in the input or preview

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, previewFormat as preview-format and so on

format

Format the value of the date(s) in the input field. Formatting is done automatically via provided string format. However, you can override the default format by providing a custom formatter function

  • Type: string | ((date: Date) => string) | ((dates: Date[]) => string);
  • Default:
    • Single picker: 'MM/dd/yyyy HH:mm'
    • Range picker: 'MM/dd/yyyy HH:mm - MM/dd/yyyy HH:mm'
    • Month picker: 'MM/yyyy'
    • Time picker: 'HH:mm'
    • Time picker range: 'HH:mm - HH:mm'
    • Week picker 'RR-yyyy' | 'ww-yyyy' (depends on week numbering)

Info

If is-24 prop is set to false, hours format will be changed to 'hh:mm aa'

For additional information on how to pass custom string format you can check Unicode tokens

Code Example
vue
<template>
     <VueDatePicker v-model="date" :format="format" />
 </template>
 
@@ -64,7 +64,7 @@
 
 const date = ref(new Date());
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/general-configuration/index.html b/docs/props/general-configuration/index.html index a7379dd81..64f0b3ab0 100644 --- a/docs/props/general-configuration/index.html +++ b/docs/props/general-configuration/index.html @@ -5,14 +5,14 @@ Props - General configuration | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

General configuration

General behavior props configuration

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, monthChangeOnScroll as month-change-on-scroll and so on

uid

Pass an id to the input and menu elements. If provided, you can select menu id as dp-menu-${uid} and input id as dp-input-${uid}

  • Type: string
  • Default: null
Code Example
vue
<template>
+    
Skip to content

General configuration

General behavior props configuration

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, monthChangeOnScroll as month-change-on-scroll and so on

uid

Pass an id to the input and menu elements. If provided, you can select menu id as dp-menu-${uid} and input id as dp-input-${uid}

  • Type: string
  • Default: null
Code Example
vue
<template>
     <VueDatePicker v-model="date" uid="demo" />
 </template>
 
@@ -270,7 +270,7 @@
 
 const date = ref(new Date());
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/keyboard/index.html b/docs/props/keyboard/index.html index f988819f1..56be9f4a3 100644 --- a/docs/props/keyboard/index.html +++ b/docs/props/keyboard/index.html @@ -5,14 +5,14 @@ Props - Keyboard | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Keyboard

Configure keyboard actions

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, escClose as esc-close and so on

Info

You can press tab key in the menu, and it will autofocus elements, pressing enter will do a click action like open overlay or select a date.

All keyboard events are enabled by default

esc-close

Esc key closes the menu

  • Type: boolean
  • Default: true
Code Example
vue
<template>
+    
Skip to content

Keyboard

Configure keyboard actions

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, escClose as esc-close and so on

Info

You can press tab key in the menu, and it will autofocus elements, pressing enter will do a click action like open overlay or select a date.

All keyboard events are enabled by default

esc-close

Esc key closes the menu

  • Type: boolean
  • Default: true
Code Example
vue
<template>
     <VueDatePicker v-model="date" :esc-close="false" />
 </template>
 
@@ -54,7 +54,7 @@
 
 const date = ref(new Date());
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/localization/index.html b/docs/props/localization/index.html index e37538e0d..53924d750 100644 --- a/docs/props/localization/index.html +++ b/docs/props/localization/index.html @@ -5,14 +5,14 @@ Props - Localization | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Localization

Localization options and label props

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, formatLocale as format-locale and so on

locale

Set datepicker locale. Datepicker will use built in javascript locale formatter to extract month and weekday names

  • Type: string
  • Default: 'en-US'
Code Example
vue
<template>
+    
Skip to content

Localization

Localization options and label props

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, formatLocale as format-locale and so on

locale

Set datepicker locale. Datepicker will use built in javascript locale formatter to extract month and weekday names

  • Type: string
  • Default: 'en-US'
Code Example
vue
<template>
     <VueDatePicker v-model="date" locale="de" cancelText="abbrechen" selectText="auswählen" />
 </template>
 
@@ -108,7 +108,7 @@
 
 const date = ref(new Date());
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/look-and-feel/index.html b/docs/props/look-and-feel/index.html index 0d89c9ac6..2b233f6f8 100644 --- a/docs/props/look-and-feel/index.html +++ b/docs/props/look-and-feel/index.html @@ -5,14 +5,14 @@ Props - Look and feel | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Look and feel

Customization options

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, sixWeeks as six-weeks and so on

transitions

Control transitions inside the menu. You can define your own or disable them. Datepicker uses Vue built in transitions component for transitions control. To configure you own, please check the Vue documentation and provide a transition name in the prop

  • Type: Transitions | boolean
  • Default: true
ts
interface Transitions {
+    
Skip to content

Look and feel

Customization options

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, sixWeeks as six-weeks and so on

transitions

Control transitions inside the menu. You can define your own or disable them. Datepicker uses Vue built in transitions component for transitions control. To configure you own, please check the Vue documentation and provide a transition name in the prop

  • Type: Transitions | boolean
  • Default: true
ts
interface Transitions {
     open?: string; 
     close?: string; 
     next?: string; 
@@ -168,7 +168,7 @@
   return '';
 };
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/modes-configuration/index.html b/docs/props/modes-configuration/index.html index 637493abb..67a53f53f 100644 --- a/docs/props/modes-configuration/index.html +++ b/docs/props/modes-configuration/index.html @@ -5,14 +5,14 @@ Props - Modes configuration | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Modes configuration

Props for configuring and extending the datepicker when using a specific mode

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, textInput as text-input and so on

range configuration

Providing configuration object will automatically enable range picker

ts
interface RangeConfig {
+    
Skip to content

Modes configuration

Props for configuring and extending the datepicker when using a specific mode

Info

  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, textInput as text-input and so on

range configuration

Providing configuration object will automatically enable range picker

ts
interface RangeConfig {
     noDisabledRange?: boolean;
     showLastInRange?: boolean;
     minMaxRawRange?: boolean;
@@ -302,7 +302,26 @@
 import { ref } from 'vue';
 
 const date = ref();
-</script>

multi-dates-limit

Limit the number of dates to select when multi-dates is enabled

  • Type: number | string
  • Default: null
Code Example
vue
<template>
+</script>

multi-dates configuration

Configure additional behaviour for multi-dates mode

ts
interface MultiDatesConfig {
+    limit?: number | string;
+    dragSelect?: boolean;
+}

limit

Limit the number of dates to select

  • Default: null
Code Example
vue
<template>
+  <VueDatePicker v-model="date" :multi-dates="{ limit: 3 }" />
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const date = ref();
+</script>

dragSelect

Allows selecting multiple dates by dragging the mouse over the calendar cells

  • Default: true
Code Example
vue
<template>
+  <VueDatePicker v-model="date" :multi-dates="{ dragSelect: false }" />
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const date = ref();
+</script>

multi-dates-limit

Deprecation warning

This prop is deprecated, please refer to multi-dates configuration section

Limit the number of dates to select when multi-dates is enabled

  • Type: number | string
  • Default: null
Code Example
vue
<template>
   <VueDatePicker v-model="date" multi-dates multi-dates-limit="3" />
 </template>
 
@@ -337,6 +356,7 @@
   exactMatch?: boolean;
   dateInTz?: string;
   emitTimezone?: string;
+  convertModel?: boolean;
 }

timezone

Same as timezone string prop type, define a timezone for the datepicker

  • Default: undefined
Timezone: UTC
Offset: 0
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
@@ -623,8 +643,16 @@
   const setZonedDate = (date) => {
     zonedDate.value = date.toISOString();;
   }
+</script>

convertModel

Used to explicitly enable or disable v-model value conversion in a given timezone

  • Default: true
Code Example
vue
<template>
+    <VueDatePicker v-model="date" :timezone="{ convertModel: false, timezone: 'UTC' }" />
+</template>
+
+<script setup>
+import { ref } from 'vue';
+
+const date = ref();
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/modes/index.html b/docs/props/modes/index.html index 2a1be7768..c66893879 100644 --- a/docs/props/modes/index.html +++ b/docs/props/modes/index.html @@ -5,14 +5,14 @@ Props - Modes | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Modes

Set the default mode for the datepicker

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, multiCalendars as multi-calendars and so on

Info

Depending on the mode, v-model might be different, so make sure to use the proper configuration

range

Range picker mode

  • Type: boolean | RangeConfig
  • Default: false

Info

If the RangeConfig object is provided, range is auto enabled.

For more info about range configuration properties, please refer to range configuration section

Code Example
vue
<template>
+    
Skip to content

Modes

Set the default mode for the datepicker

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, multiCalendars as multi-calendars and so on

Info

Depending on the mode, v-model might be different, so make sure to use the proper configuration

range

Range picker mode

  • Type: boolean | RangeConfig
  • Default: false

Info

If the RangeConfig object is provided, range is auto enabled.

For more info about range configuration properties, please refer to range configuration section

Code Example
vue
<template>
     <VueDatePicker v-model="date" range />
 </template>
 
@@ -121,7 +121,7 @@
 import { ref } from 'vue';
 
 const date = ref(new Date());
-</script>

multi-dates

Allow selecting multiple single dates. When changing time, the latest selected date is affected. To deselect the date, click on the selected value

  • Type: boolean
  • Default: false
Code Example
vue
<template>
+</script>

multi-dates

Allow selecting multiple single dates. When changing time, the latest selected date is affected. To deselect the date, click on the selected value

  • Type: boolean | MultiDatesConfig
  • Default: false

Info

Code Example
vue
<template>
     <VueDatePicker v-model="date" multi-dates />
 </template>
 
@@ -163,7 +163,7 @@
 import { ref } from 'vue';
 
 const date = ref();
-</script>

timezone

Display the dates in a given timezone. Datepicker always work in the clients timezone, but when the timezone prop is provided, the Date object will adjust offset in the hours, remaining in the client timezone.

WARNING

v-model value is not converted, and will be parsed as it is

Info

Providing props that rely on the Date object such as min-date, max-date, disabled-dates and so on, will be converted to a provided timezone.

For more info about timezone configuration properties, please refer to timezone configuration section

  • Type: string | TimeZoneConfig
  • Default: null
Timezone: UTC
Offset: 0
Code Example
vue
<template>
+</script>

timezone

Display the dates in a given timezone. Datepicker always work in the clients timezone, but when the timezone prop is provided, the Date object will adjust offset in the hours, remaining in the client timezone.

Info

Providing props that rely on the Date object such as min-date, max-date, disabled-dates and so on, will be converted to a provided timezone.

For more info about timezone configuration properties, please refer to timezone configuration section

  • Type: string | TimeZoneConfig
  • Default: null
Timezone: UTC
Offset: 0
Code Example
vue
<template>
   <div class="tz-demo-wrap">
     <div class="dp-container-wrap">
       <VueDatePicker 
@@ -250,7 +250,7 @@
         utcDate.value = value;
     };
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/positioning/index.html b/docs/props/positioning/index.html index f5288b738..a52db9655 100644 --- a/docs/props/positioning/index.html +++ b/docs/props/positioning/index.html @@ -5,14 +5,14 @@ Props - Positioning | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Positioning

Configure datepicker menu positioning

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, autoPosition as auto-position and so on

position

Datepicker menu position

  • Type: 'left' | 'center' | 'right'
  • Default: 'center'
Code Example
vue
<template>
+    
Skip to content

Positioning

Configure datepicker menu positioning

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, autoPosition as auto-position and so on

position

Datepicker menu position

  • Type: 'left' | 'center' | 'right'
  • Default: 'center'
Code Example
vue
<template>
     <VueDatePicker v-model="date" position="left" />
 </template>
 
@@ -63,7 +63,7 @@
 
 const date = ref(new Date());
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/props/time-picker-configuration/index.html b/docs/props/time-picker-configuration/index.html index 680de5c94..d345dfe55 100644 --- a/docs/props/time-picker-configuration/index.html +++ b/docs/props/time-picker-configuration/index.html @@ -5,14 +5,14 @@ Props - Time picker configuration | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Time picker configuration

Configuration properties for the time picker, applicable whether it is used standalone or with the datepicker.

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, enableTimePicker as enable-time-picker and so on

time-picker-inline

Configures the time picker to display under the calendar rather than opening it as an overlay.

  • Type: boolean
  • Default: false
Code Example
vue
<template>
+    
Skip to content

Time picker configuration

Configuration properties for the time picker, applicable whether it is used standalone or with the datepicker.

Info

  • When checking the examples, for boolean prop types, the example will show the behavior opposite of what is set for the default value
  • If you use the component in the browser <script> tag, make sure to pass multi-word props with -, for example, enableTimePicker as enable-time-picker and so on

time-picker-inline

Configures the time picker to display under the calendar rather than opening it as an overlay.

  • Type: boolean
  • Default: false
Code Example
vue
<template>
     <VueDatePicker v-model="date" time-picker-inline />
 </template>
 
@@ -203,7 +203,7 @@
   mode.value = btn;
 };
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/slots/components/index.html b/docs/slots/components/index.html index 246d87606..b64169174 100644 --- a/docs/slots/components/index.html +++ b/docs/slots/components/index.html @@ -5,14 +5,14 @@ Slots - Components | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Component slots

Replace the built-in components with custom implementation

month-year

Create and use a custom component implementation in the header for month/year select

Info

When using this slot, the overlays will not be available, it is up to you to create them if you want

Warning

Depending on the used mode, slot will provide a different set of props

Exposed props:

Date picker

ts
interface DefaultSelect {
+    
Skip to content

Component slots

Replace the built-in components with custom implementation

month-year

Create and use a custom component implementation in the header for month/year select

Info

When using this slot, the overlays will not be available, it is up to you to create them if you want

Warning

Depending on the used mode, slot will provide a different set of props

Exposed props:

Date picker

ts
interface DefaultSelect {
   value: number;
   text: string;
   className?: Record<string, boolean>;
@@ -261,7 +261,7 @@
   width: 100%;
 }
 </style>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/slots/content/index.html b/docs/slots/content/index.html index 8eafa9186..f9fadf8d2 100644 --- a/docs/slots/content/index.html +++ b/docs/slots/content/index.html @@ -5,14 +5,14 @@ Slots - Content | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Content

Customize parts in the datepicker menu

calendar-header

Replace the content in the calendar header cells

Available props are:

  • day: Displayed value in the header cell
  • index: Column index it is rendered by
Code Example
vue
<template>
+    
Skip to content

Content

Customize parts in the datepicker menu

calendar-header

Replace the content in the calendar header cells

Available props are:

  • day: Displayed value in the header cell
  • index: Column index it is rendered by
Code Example
vue
<template>
     <VueDatePicker v-model="date">
       <template #calendar-header="{ index, day }">
         <div :class="index === 5 || index === 6 ? 'red-color' : ''">
@@ -341,7 +341,7 @@
       return format(quarter, 'QQQ')
   }
 </script>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/slots/icons/index.html b/docs/slots/icons/index.html index 81f69b8df..76c6af2e5 100644 --- a/docs/slots/icons/index.html +++ b/docs/slots/icons/index.html @@ -5,14 +5,14 @@ Slots - Icons | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Icons

Change datepicker icons

input-icon

This slot replaces the calendar icon in the input element with your custom element

Code Example
vue
<template>
+    
Skip to content

Icons

Change datepicker icons

input-icon

This slot replaces the calendar icon in the input element with your custom element

Code Example
vue
<template>
     <VueDatePicker v-model="date">
         <template #input-icon>
             <img class="input-slot-image" src="/logo.png"/>
@@ -178,7 +178,7 @@
         width: auto;
     }
 </style>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/slots/overlay/index.html b/docs/slots/overlay/index.html index fae5b6de8..a8b5bc18a 100644 --- a/docs/slots/overlay/index.html +++ b/docs/slots/overlay/index.html @@ -5,14 +5,14 @@ Slots - Overlay | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Overlay

Customize overlay and overlay triggers

time-picker-overlay

This slot replaces the full overlay in the timepicker

Several props are available:

  • range: Value passed from general props
  • hours: Selected hours value
  • minutes: Selected minutes value
  • seconds: Selected seconds value
  • setHours: Function to call to set hours, (hours: number | number[]) => void
  • setMinutes: Function to call to set minutes, (minutes: number | number[]) => void
  • setSeconds: Function to call to set seconds, (seconds: number | number[]) => void

Info

If you are using range mode, make sure to pass number arrays in functions

Code Example
vue
<template>
+    
Skip to content

Overlay

Customize overlay and overlay triggers

time-picker-overlay

This slot replaces the full overlay in the timepicker

Several props are available:

  • range: Value passed from general props
  • hours: Selected hours value
  • minutes: Selected minutes value
  • seconds: Selected seconds value
  • setHours: Function to call to set hours, (hours: number | number[]) => void
  • setMinutes: Function to call to set minutes, (minutes: number | number[]) => void
  • setSeconds: Function to call to set seconds, (seconds: number | number[]) => void

Info

If you are using range mode, make sure to pass number arrays in functions

Code Example
vue
<template>
     <VueDatePicker v-model="date">
       <template #time-picker-overlay="{ hours, minutes, setHours, setMinutes }">
         <div class="time-picker-overlay">
@@ -288,7 +288,7 @@
   cursor: pointer;
 }
 </style>

Released under the MIT License.

- + \ No newline at end of file diff --git a/docs/slots/trigger-and-input/index.html b/docs/slots/trigger-and-input/index.html index 89c9bd4a6..4b8b3ab8c 100644 --- a/docs/slots/trigger-and-input/index.html +++ b/docs/slots/trigger-and-input/index.html @@ -5,14 +5,14 @@ Slots - Trigger and input | Vue Datepicker - + - + - - - + + + @@ -21,7 +21,7 @@ -
Skip to content

Trigger and input

Use custom input or trigger element

trigger

This slot replaces the input element with your custom element

This is some custom clickable text that will open datepicker

Code Example
vue
<template>
+    
Skip to content

Trigger and input

Use custom input or trigger element

trigger

This slot replaces the input element with your custom element

This is some custom clickable text that will open datepicker

Code Example
vue
<template>
     <VueDatePicker v-model="date">
         <template #trigger>
             <p class="clickable-text">This is some custom clickable text that will open the datepicker</p>
@@ -53,7 +53,7 @@
 
 const date = ref(new Date());
 </script>

Released under the MIT License.

- + \ No newline at end of file