@everymatrix/player-account-self-exclusion 1.0.69 → 1.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3706 @@
1
+ "use strict";var Vc=Object.defineProperty,Gc=Object.defineProperties;var qc=Object.getOwnPropertyDescriptors;var Nn=Object.getOwnPropertySymbols;var Xc=Object.prototype.hasOwnProperty,Zc=Object.prototype.propertyIsEnumerable;var ai=(e,t,r)=>t in e?Vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jr=(e,t)=>{for(var r in t||(t={}))Xc.call(t,r)&&ai(e,r,t[r]);if(Nn)for(var r of Nn(t))Zc.call(t,r)&&ai(e,r,t[r]);return e},Qr=(e,t)=>Gc(e,qc(t));var ce=(e,t,r)=>ai(e,typeof t!="symbol"?t+"":t,r);var or=(e,t,r)=>new Promise((s,i)=>{var o=l=>{try{a(r.next(l))}catch(u){i(u)}},n=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(o,n);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ge(){}function Ja(e){return e()}function In(){return Object.create(null)}function Ut(e){e.forEach(Ja)}function Oo(e){return typeof e=="function"}function Qa(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Kc(e){return Object.keys(e).length===0}function el(e,...t){if(e==null){for(const s of t)s(void 0);return ge}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Jc(e,t,r){e.$$.on_destroy.push(el(t,r))}function v(e,t){e.appendChild(t)}function Qc(e,t,r){const s=eh(e);if(!s.getElementById(t)){const i=R("style");i.id=t,i.textContent=r,th(s,i)}}function eh(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function th(e,t){return v(e.head||e,t),t.sheet}function Rr(e,t,r){e.insertBefore(t,r||null)}function Wt(e){e.parentNode&&e.parentNode.removeChild(e)}function R(e){return document.createElement(e)}function gt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ne(e){return document.createTextNode(e)}function se(){return ne(" ")}function Bi(e,t,r,s){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r,s)}function S(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function vt(e,t,r){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:S(e,t,r)}function rh(e){return Array.from(e.childNodes)}function he(e,t){t=""+t,e.data!==t&&(e.data=t)}function sh(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let vr;function _r(e){vr=e}function ih(){if(!vr)throw new Error("Function called outside component initialization");return vr}function oh(e){ih().$$.on_mount.push(e)}const St=[],vs=[];let Dt=[];const Ln=[],nh=Promise.resolve();let $i=!1;function ah(){$i||($i=!0,nh.then(je))}function Yi(e){Dt.push(e)}const li=new Set;let bt=0;function je(){if(bt!==0)return;const e=vr;do{try{for(;bt<St.length;){const t=St[bt];bt++,_r(t),lh(t.$$)}}catch(t){throw St.length=0,bt=0,t}for(_r(null),St.length=0,bt=0;vs.length;)vs.pop()();for(let t=0;t<Dt.length;t+=1){const r=Dt[t];li.has(r)||(li.add(r),r())}Dt.length=0}while(St.length);for(;Ln.length;)Ln.pop()();$i=!1,li.clear(),_r(e)}function lh(e){if(e.fragment!==null){e.update(),Ut(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Yi)}}function uh(e){const t=[],r=[];Dt.forEach(s=>e.indexOf(s)===-1?t.push(s):r.push(s)),r.forEach(s=>s()),Dt=t}const ch=new Set;function hh(e,t){e&&e.i&&(ch.delete(e),e.i(t))}function dh(e,t,r){const{fragment:s,after_update:i}=e.$$;s&&s.m(t,r),Yi(()=>{const o=e.$$.on_mount.map(Ja).filter(Oo);e.$$.on_destroy?e.$$.on_destroy.push(...o):Ut(o),e.$$.on_mount=[]}),i.forEach(Yi)}function fh(e,t){const r=e.$$;r.fragment!==null&&(uh(r.after_update),Ut(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function ph(e,t){e.$$.dirty[0]===-1&&(St.push(e),ah(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function mh(e,t,r,s,i,o,n=null,a=[-1]){const l=vr;_r(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ge,not_equal:i,bound:In(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:In(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=r?r(e,t.props||{},(h,d,...f)=>{const _=f.length?f[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=_)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](_),c&&ph(e,h)),d}):[],u.update(),c=!0,Ut(u.before_update),u.fragment=s?s(u.ctx):!1,t.target){if(t.hydrate){const h=rh(t.target);u.fragment&&u.fragment.l(h),h.forEach(Wt)}else u.fragment&&u.fragment.c();t.intro&&hh(e.$$.fragment),dh(e,t.target,t.anchor),je()}_r(l)}let tl;typeof HTMLElement=="function"&&(tl=class extends HTMLElement{constructor(t,r,s){super();ce(this,"$$ctor");ce(this,"$$s");ce(this,"$$c");ce(this,"$$cn",!1);ce(this,"$$d",{});ce(this,"$$r",!1);ce(this,"$$p_d",{});ce(this,"$$l",{});ce(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,s&&this.attachShadow({mode:"open"})}addEventListener(t,r,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,s)}removeEventListener(t,r,s){if(super.removeEventListener(t,r,s),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return or(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let n;return{c:function(){n=R("slot"),o!=="default"&&S(n,"name",o)},m:function(u,c){Rr(u,n,c)},d:function(u){u&&Wt(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},s=sh(this);for(const o of this.$$s)o in s&&(r[o]=[t(o)]);for(const o of this.attributes){const n=this.$$g_p(o.name);n in this.$$d||(this.$$d[n]=ls(n,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Qr(Jr({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const n=ls(o,this.$$d[o],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,n)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const n of this.$$l[o]){const a=this.$$c.$on(o,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(t,r,s){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ls(t,s,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function ls(e,t,r,s){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!r[e])return t;if(s==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function _h(e,t,r,s,i,o){let n=class extends tl{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(n.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var u;l=ls(a,l,t),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),s.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=n,n}class yh{constructor(){ce(this,"$$");ce(this,"$$set")}$destroy(){fh(this,1),this.$destroy=ge}$on(t,r){if(!Oo(r))return ge;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(r),()=>{const i=s.indexOf(r);i!==-1&&s.splice(i,1)}}$set(t){this.$$set&&!Kc(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gh="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gh);var Ui=function(e,t){return Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},Ui(e,t)};function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ui(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var N=function(){return N=Object.assign||function(t){for(var r,s=1,i=arguments.length;s<i;s++){r=arguments[s];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},N.apply(this,arguments)};function vh(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(r[s[i]]=e[s[i]]);return r}function Wi(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],s=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ji(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),i,o=[],n;try{for(;(t===void 0||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function Pt(e,t,r){if(r||arguments.length===2)for(var s=0,i=t.length,o;s<i;s++)(o||!(s in t))&&(o||(o=Array.prototype.slice.call(t,0,s)),o[s]=t[s]);return e.concat(o||Array.prototype.slice.call(t))}function He(e){return typeof e=="function"}function rl(e){var t=function(s){Error.call(s),s.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ui=rl(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
2
+ `+r.map(function(s,i){return i+1+") "+s.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Vi(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ls=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,s,i,o;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=Wi(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else n.remove(this);var c=this.initialTeardown;if(He(c))try{c()}catch(g){o=g instanceof ui?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Wi(h),f=d.next();!f.done;f=d.next()){var _=f.value;try{Hn(_)}catch(g){o=o!=null?o:[],g instanceof ui?o=Pt(Pt([],ji(o)),ji(g.errors)):o.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(s)throw s.error}}}if(o)throw new ui(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Hn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Vi(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Vi(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),sl=Ls.EMPTY;function il(e){return e instanceof Ls||e&&"closed"in e&&He(e.remove)&&He(e.add)&&He(e.unsubscribe)}function Hn(e){He(e)?e():e.unsubscribe()}var ol={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},nl={setTimeout:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return setTimeout.apply(void 0,Pt([e,t],ji(r)))},clearTimeout:function(e){var t=nl.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function bh(e){nl.setTimeout(function(){throw e})}function Rn(){}function us(e){e()}var al=function(e){$e(t,e);function t(r){var s=e.call(this)||this;return s.isStopped=!1,r?(s.destination=r,il(r)&&r.add(s)):s.destination=Sh,s}return t.create=function(r,s,i){return new Gi(r,s,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ls),xh=Function.prototype.bind;function ci(e,t){return xh.call(e,t)}var wh=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(s){es(s)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(s){es(s)}else es(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){es(r)}},e}(),Gi=function(e){$e(t,e);function t(r,s,i){var o=e.call(this)||this,n;if(He(r)||!r)n={next:r!=null?r:void 0,error:s!=null?s:void 0,complete:i!=null?i:void 0};else{var a;o&&ol.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},n={next:r.next&&ci(r.next,a),error:r.error&&ci(r.error,a),complete:r.complete&&ci(r.complete,a)}):n=r}return o.destination=new wh(n),o}return t}(al);function es(e){bh(e)}function Eh(e){throw e}var Sh={closed:!0,next:Rn,error:Eh,complete:Rn},Th=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ah(e){return e}function Ch(e){return e.length===0?Ah:e.length===1?e[0]:function(r){return e.reduce(function(s,i){return i(s)},r)}}var zn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,s){var i=this,o=Ph(t)?t:new Gi(t,r,s);return us(function(){var n=i,a=n.operator,l=n.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var s=this;return r=Fn(r),new r(function(i,o){var n=new Gi({next:function(a){try{t(a)}catch(l){o(l),n.unsubscribe()}},error:o,complete:i});s.subscribe(n)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Th]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ch(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Fn(t),new t(function(s,i){var o;r.subscribe(function(n){return o=n},function(n){return i(n)},function(){return s(o)})})},e.create=function(t){return new e(t)},e}();function Fn(e){var t;return(t=e!=null?e:ol.Promise)!==null&&t!==void 0?t:Promise}function Dh(e){return e&&He(e.next)&&He(e.error)&&He(e.complete)}function Ph(e){return e&&e instanceof al||Dh(e)&&il(e)}var kh=rl(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ll=function(e){$e(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var s=new Bn(this,this);return s.operator=r,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new kh},t.prototype.next=function(r){var s=this;us(function(){var i,o;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var n=Wi(s.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var s=this;us(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=r;for(var i=s.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;us(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var s=r.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var s=this,i=this,o=i.hasError,n=i.isStopped,a=i.observers;return o||n?sl:(this.currentObservers=null,a.push(r),new Ls(function(){s.currentObservers=null,Vi(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var s=this,i=s.hasError,o=s.thrownError,n=s.isStopped;i?r.error(o):n&&r.complete()},t.prototype.asObservable=function(){var r=new zn;return r.source=this,r},t.create=function(r,s){return new Bn(r,s)},t}(zn),Bn=function(e){$e(t,e);function t(r,s){var i=e.call(this)||this;return i.destination=r,i.source=s,i}return t.prototype.next=function(r){var s,i;(i=(s=this.destination)===null||s===void 0?void 0:s.next)===null||i===void 0||i.call(s,r)},t.prototype.error=function(r){var s,i;(i=(s=this.destination)===null||s===void 0?void 0:s.error)===null||i===void 0||i.call(s,r)},t.prototype.complete=function(){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||s===void 0||s.call(r)},t.prototype._subscribe=function(r){var s,i;return(i=(s=this.source)===null||s===void 0?void 0:s.subscribe(r))!==null&&i!==void 0?i:sl},t}(ll),ul={now:function(){return(ul.delegate||Date).now()},delegate:void 0},Mh=function(e){$e(t,e);function t(r,s,i){r===void 0&&(r=1/0),s===void 0&&(s=1/0),i===void 0&&(i=ul);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=s,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=s===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,s),o}return t.prototype.next=function(r){var s=this,i=s.isStopped,o=s._buffer,n=s._infiniteTimeWindow,a=s._timestampProvider,l=s._windowTime;i||(o.push(r),!n&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var s=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,n=i._buffer,a=n.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),s},t.prototype._trimBuffer=function(){var r=this,s=r._bufferSize,i=r._timestampProvider,o=r._buffer,n=r._infiniteTimeWindow,a=(n?1:2)*s;if(s<1/0&&a<o.length&&o.splice(0,o.length-a),!n){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(ll);const $n=[],Yn={},Oh=(e,t=0)=>{if($n.indexOf(e)==-1){const r=new Mh(t);Yn[e]=r,$n.push(e)}return Yn[e]},xt=[];function Nh(e,t){return{subscribe:Hs(e,t).subscribe}}function Hs(e,t=ge){let r;const s=new Set;function i(a){if(Qa(e,a)&&(e=a,r)){const l=!xt.length;for(const u of s)u[1](),xt.push(u,e);if(l){for(let u=0;u<xt.length;u+=2)xt[u][0](xt[u+1]);xt.length=0}}}function o(a){i(a(e))}function n(a,l=ge){const u=[a,l];return s.add(u),s.size===1&&(r=t(i,o)||ge),a(e),()=>{s.delete(u),s.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:n}}function jt(e,t,r){const s=!Array.isArray(e),i=s?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Nh(r,(n,a)=>{let l=!1;const u=[];let c=0,h=ge;const d=()=>{if(c)return;h();const _=t(s?u[0]:u,n,a);o?n(_):h=Oo(_)?_:ge},f=i.map((_,g)=>el(_,T=>{u[g]=T,c&=~(1<<g),l&&d()},()=>{c|=1<<g}));return l=!0,d(),function(){Ut(f),h(),l=!1}})}function Ih(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lh=function(t){return Hh(t)&&!Rh(t)};function Hh(e){return!!e&&typeof e=="object"}function Rh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Bh(e)}var zh=typeof Symbol=="function"&&Symbol.for,Fh=zh?Symbol.for("react.element"):60103;function Bh(e){return e.$$typeof===Fh}function $h(e){return Array.isArray(e)?[]:{}}function br(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ht($h(e),e,t):e}function Yh(e,t,r){return e.concat(t).map(function(s){return br(s,r)})}function Uh(e,t){if(!t.customMerge)return Ht;var r=t.customMerge(e);return typeof r=="function"?r:Ht}function Wh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Un(e){return Object.keys(e).concat(Wh(e))}function cl(e,t){try{return t in e}catch(r){return!1}}function jh(e,t){return cl(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Vh(e,t,r){var s={};return r.isMergeableObject(e)&&Un(e).forEach(function(i){s[i]=br(e[i],r)}),Un(t).forEach(function(i){jh(e,i)||(cl(e,i)&&r.isMergeableObject(t[i])?s[i]=Uh(i,r)(e[i],t[i],r):s[i]=br(t[i],r))}),s}function Ht(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Yh,r.isMergeableObject=r.isMergeableObject||Lh,r.cloneUnlessOtherwiseSpecified=br;var s=Array.isArray(t),i=Array.isArray(e),o=s===i;return o?s?r.arrayMerge(e,t,r):Vh(e,t,r):br(t,r)}Ht.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(s,i){return Ht(s,i,r)},{})};var Gh=Ht,qh=Gh;const Xh=Ih(qh);var C;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(C||(C={}));var Y;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Y||(Y={}));var Rt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Rt||(Rt={}));function Wn(e){return e.type===Y.literal}function Zh(e){return e.type===Y.argument}function hl(e){return e.type===Y.number}function dl(e){return e.type===Y.date}function fl(e){return e.type===Y.time}function pl(e){return e.type===Y.select}function ml(e){return e.type===Y.plural}function Kh(e){return e.type===Y.pound}function _l(e){return e.type===Y.tag}function yl(e){return!!(e&&typeof e=="object"&&e.type===Rt.number)}function qi(e){return!!(e&&typeof e=="object"&&e.type===Rt.dateTime)}var gl=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Jh=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Qh(e){var t={};return e.replace(Jh,function(r){var s=r.length;switch(r[0]){case"G":t.era=s===4?"long":s===5?"narrow":"short";break;case"y":t.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][s-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][s-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][s-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][s-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][s-1];break;case"s":t.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var ed=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function td(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ed).filter(function(d){return d.length>0}),r=[],s=0,i=t;s<i.length;s++){var o=i[s],n=o.split("/");if(n.length===0)throw new Error("Invalid number skeleton");for(var a=n[0],l=n.slice(1),u=0,c=l;u<c.length;u++){var h=c[u];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function rd(e){return e.replace(/^(.*?)-/,"")}var jn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,vl=/^(@+)?(\+|#+)?[rs]?$/g,sd=/(\*)(0+)|(#+)(0+)|(0+)/g,bl=/^(0+)$/;function Vn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(vl,function(r,s,i){return typeof i!="string"?(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length):i==="+"?t.minimumSignificantDigits=s.length:s[0]==="#"?t.maximumSignificantDigits=s.length:(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length+(typeof i=="string"?i.length:0)),""}),t}function xl(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function id(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!bl.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Gn(e){var t={},r=xl(e);return r||t}function od(e){for(var t={},r=0,s=e;r<s.length;r++){var i=s[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=rd(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return N(N({},l),Gn(u))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return N(N({},l),Gn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(sd,function(l,u,c,h,d,f){if(u)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(bl.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(jn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(jn,function(l,u,c,h,d,f){return c==="*"?t.minimumFractionDigits=u.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&f?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+f.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),Vn(o)));continue}if(vl.test(i.stem)){t=N(N({},t),Vn(i.stem));continue}var n=xl(i.stem);n&&(t=N(N({},t),n));var a=id(i.stem);a&&(t=N(N({},t),a))}return t}var ts={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function nd(e,t){for(var r="",s=0;s<e.length;s++){var i=e.charAt(s);if(i==="j"){for(var o=0;s+1<e.length&&e.charAt(s+1)===i;)o++,s++;var n=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=ad(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;n-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function ad(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,s;r!=="root"&&(s=e.maximize().region);var i=ts[s||""]||ts[r||""]||ts["".concat(r,"-001")]||ts["001"];return i[0]}var hi,ld=new RegExp("^".concat(gl.source,"*")),ud=new RegExp("".concat(gl.source,"*$"));function D(e,t){return{start:e,end:t}}var cd=!!String.prototype.startsWith&&"_a".startsWith("a",1),hd=!!String.fromCodePoint,dd=!!Object.fromEntries,fd=!!String.prototype.codePointAt,pd=!!String.prototype.trimStart,md=!!String.prototype.trimEnd,_d=!!Number.isSafeInteger,yd=_d?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Xi=!0;try{var gd=El("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xi=((hi=gd.exec("a"))===null||hi===void 0?void 0:hi[0])==="a"}catch(e){Xi=!1}var qn=cd?function(t,r,s){return t.startsWith(r,s)}:function(t,r,s){return t.slice(s,s+r.length)===r},Zi=hd?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var s="",i=t.length,o=0,n;i>o;){if(n=t[o++],n>1114111)throw RangeError(n+" is not a valid code point");s+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return s},Xn=dd?Object.fromEntries:function(t){for(var r={},s=0,i=t;s<i.length;s++){var o=i[s],n=o[0],a=o[1];r[n]=a}return r},wl=fd?function(t,r){return t.codePointAt(r)}:function(t,r){var s=t.length;if(!(r<0||r>=s)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===s||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},vd=pd?function(t){return t.trimStart()}:function(t){return t.replace(ld,"")},bd=md?function(t){return t.trimEnd()}:function(t){return t.replace(ud,"")};function El(e,t){return new RegExp(e,t)}var Ki;if(Xi){var Zn=El("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ki=function(t,r){var s;Zn.lastIndex=r;var i=Zn.exec(t);return(s=i[1])!==null&&s!==void 0?s:""}}else Ki=function(t,r){for(var s=[];;){var i=wl(t,r);if(i===void 0||Sl(i)||Sd(i))break;s.push(i),r+=i>=65536?2:1}return Zi.apply(void 0,s)};var xd=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,s){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var n=this.parseArgument(t,s);if(n.err)return n;i.push(n.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Y.pound,location:D(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(C.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ji(this.peek()||0)){var n=this.parseTag(t,r);if(n.err)return n;i.push(n.val)}else{var n=this.parseLiteral(t,r);if(n.err)return n;i.push(n.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var s=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Y.literal,value:"<".concat(i,"/>"),location:D(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var n=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ji(this.char()))return this.error(C.INVALID_TAG,D(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(C.UNMATCHED_CLOSING_TAG,D(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Y.tag,value:i,children:n,location:D(s,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,D(a,this.clonePosition())))}else return this.error(C.UNCLOSED_TAG,D(s,this.clonePosition()))}else return this.error(C.INVALID_TAG,D(s,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Ed(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var s=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var n=this.tryParseUnquoted(t,r);if(n){i+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=D(s,this.clonePosition());return{val:{type:Y.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!wd(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(s);this.bump()}return Zi.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(r==="plural"||r==="selectordinal")||s===125&&t>0?null:(this.bump(),Zi(s))},e.prototype.parseArgument=function(t,r){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(C.EMPTY_ARGUMENT,D(s,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(C.MALFORMED_ARGUMENT,D(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Y.argument,value:i,location:D(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(s,this.clonePosition())):this.parseArgumentOptions(t,r,i,s);default:return this.error(C.MALFORMED_ARGUMENT,D(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),s=Ki(this.message,r),i=r+s.length;this.bumpTo(i);var o=this.clonePosition(),n=D(t,o);return{value:s,location:n}},e.prototype.parseArgumentOptions=function(t,r,s,i){var o,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,D(n,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=bd(h.val);if(d.length===0)return this.error(C.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var f=D(c,this.clonePosition());u={style:d,styleLocation:f}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=D(i,this.clonePosition());if(u&&qn(u==null?void 0:u.style,"::",0)){var T=vd(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(T,u.styleLocation);return h.err?h:{val:{type:Y.number,value:s,location:g,style:h.val},err:null}}else{if(T.length===0)return this.error(C.EXPECT_DATE_TIME_SKELETON,g);var k=T;this.locale&&(k=nd(T,this.locale));var d={type:Rt.dateTime,pattern:k,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Qh(k):{}},M=a==="date"?Y.date:Y.time;return{val:{type:M,value:s,location:g,style:d},err:null}}}return{val:{type:a==="number"?Y.number:a==="date"?Y.date:Y.time,value:s,location:g,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var $=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,D($,N({},$)));this.bumpSpace();var te=this.parseIdentifierIfPossible(),V=0;if(a!=="select"&&te.value==="offset"){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),te=this.parseIdentifierIfPossible(),V=h.val}var ue=this.tryParsePluralOrSelectOptions(t,a,r,te);if(ue.err)return ue;var _=this.tryParseArgumentClose(i);if(_.err)return _;var De=D(i,this.clonePosition());return a==="select"?{val:{type:Y.select,value:s,options:Xn(ue.val),location:De},err:null}:{val:{type:Y.plural,value:s,options:Xn(ue.val),offset:V,pluralType:a==="plural"?"cardinal":"ordinal",location:De},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,D(n,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var s=[];try{s=td(t)}catch(i){return this.error(C.INVALID_NUMBER_SKELETON,r)}return{val:{type:Rt.number,tokens:s,location:r,parsedOptions:this.shouldParseSkeletons?od(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,s,i){for(var o,n=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=D(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,s);if(_.err)return _;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([u,{value:_.val,location:D(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(r==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(C.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var s=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var o=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,n=n*10+(a-48),this.bump();else break}var l=D(i,this.clonePosition());return o?(n*=s,yd(n)?{val:n,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=wl(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(qn(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),s=this.message.indexOf(t,r);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sl(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),s=this.message.charCodeAt(r+(t>=65536?2:1));return s!=null?s:null},e}();function Ji(e){return e>=97&&e<=122||e>=65&&e<=90}function wd(e){return Ji(e)||e===47}function Ed(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Sl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Sd(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Qi(e){e.forEach(function(t){if(delete t.location,pl(t)||ml(t))for(var r in t.options)delete t.options[r].location,Qi(t.options[r].value);else hl(t)&&yl(t.style)||(dl(t)||fl(t))&&qi(t.style)?delete t.style.location:_l(t)&&Qi(t.children)})}function Td(e,t){t===void 0&&(t={}),t=N({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xd(e,t).parse();if(r.err){var s=SyntaxError(C[r.err.kind]);throw s.location=r.err.location,s.originalMessage=r.err.message,s}return t!=null&&t.captureLocation||Qi(r.val),r.val}function di(e,t){var r=t&&t.cache?t.cache:Md,s=t&&t.serializer?t.serializer:kd,i=t&&t.strategy?t.strategy:Cd;return i(e,{cache:r,serializer:s})}function Ad(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Tl(e,t,r,s){var i=Ad(s)?s:r(s),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,s),t.set(i,o)),o}function Al(e,t,r){var s=Array.prototype.slice.call(arguments,3),i=r(s),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,s),t.set(i,o)),o}function No(e,t,r,s,i){return r.bind(t,e,s,i)}function Cd(e,t){var r=e.length===1?Tl:Al;return No(e,this,r,t.cache.create(),t.serializer)}function Dd(e,t){return No(e,this,Al,t.cache.create(),t.serializer)}function Pd(e,t){return No(e,this,Tl,t.cache.create(),t.serializer)}var kd=function(){return JSON.stringify(arguments)};function Io(){this.cache=Object.create(null)}Io.prototype.get=function(e){return this.cache[e]};Io.prototype.set=function(e,t){this.cache[e]=t};var Md={create:function(){return new Io}},fi={variadic:Dd,monadic:Pd},zt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(zt||(zt={}));var Rs=function(e){$e(t,e);function t(r,s,i){var o=e.call(this,r)||this;return o.code=s,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Kn=function(e){$e(t,e);function t(r,s,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(s,'". Options are "').concat(Object.keys(i).join('", "'),'"'),zt.INVALID_VALUE,o)||this}return t}(Rs),Od=function(e){$e(t,e);function t(r,s,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(s),zt.INVALID_VALUE,i)||this}return t}(Rs),Nd=function(e){$e(t,e);function t(r,s){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(s,'"'),zt.MISSING_VALUE,s)||this}return t}(Rs),ee;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ee||(ee={}));function Id(e){return e.length<2?e:e.reduce(function(t,r){var s=t[t.length-1];return!s||s.type!==ee.literal||r.type!==ee.literal?t.push(r):s.value+=r.value,t},[])}function Ld(e){return typeof e=="function"}function cs(e,t,r,s,i,o,n){if(e.length===1&&Wn(e[0]))return[{type:ee.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Wn(c)){a.push({type:ee.literal,value:c.value});continue}if(Kh(c)){typeof o=="number"&&a.push({type:ee.literal,value:r.getNumberFormat(t).format(o)});continue}var h=c.value;if(!(i&&h in i))throw new Nd(h,n);var d=i[h];if(Zh(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ee.literal:ee.object,value:d});continue}if(dl(c)){var f=typeof c.style=="string"?s.date[c.style]:qi(c.style)?c.style.parsedOptions:void 0;a.push({type:ee.literal,value:r.getDateTimeFormat(t,f).format(d)});continue}if(fl(c)){var f=typeof c.style=="string"?s.time[c.style]:qi(c.style)?c.style.parsedOptions:s.time.medium;a.push({type:ee.literal,value:r.getDateTimeFormat(t,f).format(d)});continue}if(hl(c)){var f=typeof c.style=="string"?s.number[c.style]:yl(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),a.push({type:ee.literal,value:r.getNumberFormat(t,f).format(d)});continue}if(_l(c)){var _=c.children,g=c.value,T=i[g];if(!Ld(T))throw new Od(g,"function",n);var k=cs(_,t,r,s,i,o),M=T(k.map(function(V){return V.value}));Array.isArray(M)||(M=[M]),a.push.apply(a,M.map(function(V){return{type:typeof V=="string"?ee.literal:ee.object,value:V}}))}if(pl(c)){var $=c.options[d]||c.options.other;if(!$)throw new Kn(c.value,d,Object.keys(c.options),n);a.push.apply(a,cs($.value,t,r,s,i));continue}if(ml(c)){var $=c.options["=".concat(d)];if(!$){if(!Intl.PluralRules)throw new Rs(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,zt.MISSING_INTL_API,n);var te=r.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));$=c.options[te]||c.options.other}if(!$)throw new Kn(c.value,d,Object.keys(c.options),n);a.push.apply(a,cs($.value,t,r,s,i,d-(c.offset||0)));continue}}return Id(a)}function Hd(e,t){return t?N(N(N({},e||{}),t||{}),Object.keys(e).reduce(function(r,s){return r[s]=N(N({},e[s]),t[s]||{}),r},{})):e}function Rd(e,t){return t?Object.keys(e).reduce(function(r,s){return r[s]=Hd(e[s],t[s]),r},N({},e)):e}function pi(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function zd(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:di(function(){for(var t,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return new((t=Intl.NumberFormat).bind.apply(t,Pt([void 0],r,!1)))},{cache:pi(e.number),strategy:fi.variadic}),getDateTimeFormat:di(function(){for(var t,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return new((t=Intl.DateTimeFormat).bind.apply(t,Pt([void 0],r,!1)))},{cache:pi(e.dateTime),strategy:fi.variadic}),getPluralRules:di(function(){for(var t,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return new((t=Intl.PluralRules).bind.apply(t,Pt([void 0],r,!1)))},{cache:pi(e.pluralRules),strategy:fi.variadic})}}var Fd=function(){function e(t,r,s,i){var o=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ee.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return cs(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=i||{};n.formatters;var a=vh(n,["formatters"]);this.ast=e.__parse(t,N(N({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Rd(e.formats,s),this.formatters=i&&i.formatters||zd(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Td,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Bd(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let s=e;for(let i=0;i<r.length;i++)if(typeof s=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in s){s=s[o];break}}s=s[r[i]]}else s=void 0;return s}const Ge={},$d=(e,t,r)=>r&&(t in Ge||(Ge[t]={}),e in Ge[t]||(Ge[t][e]=r),r),Cl=(e,t)=>{if(t==null)return;if(t in Ge&&e in Ge[t])return Ge[t][e];const r=zs(t);for(let s=0;s<r.length;s++){const i=r[s],o=Ud(i,e);if(o)return $d(e,t,o)}};let Lo;const zr=Hs({});function Yd(e){return Lo[e]||null}function Dl(e){return e in Lo}function Ud(e,t){if(!Dl(e))return null;const r=Yd(e);return Bd(r,t)}function Wd(e){if(e==null)return;const t=zs(e);for(let r=0;r<t.length;r++){const s=t[r];if(Dl(s))return s}}function Pl(e,...t){delete Ge[e],zr.update(r=>(r[e]=Xh.all([r[e]||{},...t]),r))}jt([zr],([e])=>Object.keys(e));zr.subscribe(e=>Lo=e);const hs={};function jd(e,t){hs[e].delete(t),hs[e].size===0&&delete hs[e]}function kl(e){return hs[e]}function Vd(e){return zs(e).map(t=>{const r=kl(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function eo(e){return e==null?!1:zs(e).some(t=>{var r;return(r=kl(t))==null?void 0:r.size})}function Gd(e,t){return Promise.all(t.map(s=>(jd(e,s),s().then(i=>i.default||i)))).then(s=>Pl(e,...s))}const nr={};function Ml(e){if(!eo(e))return e in nr?nr[e]:Promise.resolve();const t=Vd(e);return nr[e]=Promise.all(t.map(([r,s])=>Gd(r,s))).then(()=>{if(eo(e))return Ml(e);delete nr[e]}),nr[e]}const qd={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Xd={fallbackLocale:null,loadingDelay:200,formats:qd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Zd=Xd;function Ft(){return Zd}const mi=Hs(!1);var Kd=Object.defineProperty,Jd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,Qn=(e,t,r)=>t in e?Kd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rf=(e,t)=>{for(var r in t||(t={}))ef.call(t,r)&&Qn(e,r,t[r]);if(Jn)for(var r of Jn(t))tf.call(t,r)&&Qn(e,r,t[r]);return e},sf=(e,t)=>Jd(e,Qd(t));let to;const bs=Hs(null);function ea(e){return e.split("-").map((t,r,s)=>s.slice(0,r+1).join("-")).reverse()}function zs(e,t=Ft().fallbackLocale){const r=ea(e);return t?[...new Set([...r,...ea(t)])]:r}function ht(){return to!=null?to:void 0}bs.subscribe(e=>{to=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const of=e=>{if(e&&Wd(e)&&eo(e)){const{loadingDelay:t}=Ft();let r;return typeof window!="undefined"&&ht()!=null&&t?r=window.setTimeout(()=>mi.set(!0),t):mi.set(!0),Ml(e).then(()=>{bs.set(e)}).finally(()=>{clearTimeout(r),mi.set(!1)})}return bs.set(e)},Vt=sf(rf({},bs),{set:of}),Fs=e=>{const t=Object.create(null);return s=>{const i=JSON.stringify(s);return i in t?t[i]:t[i]=e(s)}};var nf=Object.defineProperty,xs=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable,ta=(e,t,r)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ho=(e,t)=>{for(var r in t||(t={}))Ol.call(t,r)&&ta(e,r,t[r]);if(xs)for(var r of xs(t))Nl.call(t,r)&&ta(e,r,t[r]);return e},Gt=(e,t)=>{var r={};for(var s in e)Ol.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&xs)for(var s of xs(e))t.indexOf(s)<0&&Nl.call(e,s)&&(r[s]=e[s]);return r};const xr=(e,t)=>{const{formats:r}=Ft();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},af=Fs(e=>{var t=e,{locale:r,format:s}=t,i=Gt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return s&&(i=xr("number",s)),new Intl.NumberFormat(r,i)}),lf=Fs(e=>{var t=e,{locale:r,format:s}=t,i=Gt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return s?i=xr("date",s):Object.keys(i).length===0&&(i=xr("date","short")),new Intl.DateTimeFormat(r,i)}),uf=Fs(e=>{var t=e,{locale:r,format:s}=t,i=Gt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return s?i=xr("time",s):Object.keys(i).length===0&&(i=xr("time","short")),new Intl.DateTimeFormat(r,i)}),cf=(e={})=>{var t=e,{locale:r=ht()}=t,s=Gt(t,["locale"]);return af(Ho({locale:r},s))},hf=(e={})=>{var t=e,{locale:r=ht()}=t,s=Gt(t,["locale"]);return lf(Ho({locale:r},s))},df=(e={})=>{var t=e,{locale:r=ht()}=t,s=Gt(t,["locale"]);return uf(Ho({locale:r},s))},ff=Fs((e,t=ht())=>new Fd(e,t,Ft().formats,{ignoreTag:Ft().ignoreTag})),pf=(e,t={})=>{var r,s,i,o;let n=t;typeof e=="object"&&(n=e,e=n.id);const{values:a,locale:l=ht(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Cl(e,l);if(!c)c=(o=(i=(s=(r=Ft()).handleMissingMessage)==null?void 0:s.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let h=c;try{h=ff(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return h},mf=(e,t)=>df(t).format(e),_f=(e,t)=>hf(t).format(e),yf=(e,t)=>cf(t).format(e),gf=(e,t=ht())=>Cl(e,t),vf=jt([Vt,zr],()=>pf);jt([Vt],()=>mf);jt([Vt],()=>_f);jt([Vt],()=>yf);jt([Vt,zr],()=>gf);window.emWidgets={topic:Oh};const bf=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function xf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
6
+ //! version : 2.30.1
7
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
8
+ //! license : MIT
9
+ //! momentjs.com
10
+ var Il;function m(){return Il.apply(null,arguments)}function wf(e){Il=e}function ve(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function lt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ro(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(I(e,t))return!1;return!0}function oe(e){return e===void 0}function Be(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Fr(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ll(e,t){var r=[],s,i=e.length;for(s=0;s<i;++s)r.push(t(e[s],s));return r}function qe(e,t){for(var r in t)I(t,r)&&(e[r]=t[r]);return I(t,"toString")&&(e.toString=t.toString),I(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ae(e,t,r,s){return iu(e,t,r,s,!0).utc()}function Ef(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function E(e){return e._pf==null&&(e._pf=Ef()),e._pf}var ro;Array.prototype.some?ro=Array.prototype.some:ro=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function zo(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=E(e),r=ro.call(t.parsedDateParts,function(i){return i!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Bs(e){var t=Ae(NaN);return e!=null?qe(E(t),e):E(t).userInvalidated=!0,t}var ra=m.momentProperties=[],_i=!1;function Fo(e,t){var r,s,i,o=ra.length;if(oe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),oe(t._i)||(e._i=t._i),oe(t._f)||(e._f=t._f),oe(t._l)||(e._l=t._l),oe(t._strict)||(e._strict=t._strict),oe(t._tzm)||(e._tzm=t._tzm),oe(t._isUTC)||(e._isUTC=t._isUTC),oe(t._offset)||(e._offset=t._offset),oe(t._pf)||(e._pf=E(t)),oe(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)s=ra[r],i=t[s],oe(i)||(e[s]=i);return e}function Br(e){Fo(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),_i===!1&&(_i=!0,m.updateOffset(this),_i=!1)}function be(e){return e instanceof Br||e!=null&&e._isAMomentObject!=null}function Hl(e){m.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function fe(e,t){var r=!0;return qe(function(){if(m.deprecationHandler!=null&&m.deprecationHandler(null,e),r){var s=[],i,o,n,a=arguments.length;for(o=0;o<a;o++){if(i="",typeof arguments[o]=="object"){i+=`
11
+ [`+o+"] ";for(n in arguments[0])I(arguments[0],n)&&(i+=n+": "+arguments[0][n]+", ");i=i.slice(0,-2)}else i=arguments[o];s.push(i)}Hl(e+`
12
+ Arguments: `+Array.prototype.slice.call(s).join("")+`
13
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var sa={};function Rl(e,t){m.deprecationHandler!=null&&m.deprecationHandler(e,t),sa[e]||(Hl(t),sa[e]=!0)}m.suppressDeprecationWarnings=!1;m.deprecationHandler=null;function Ce(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Sf(e){var t,r;for(r in e)I(e,r)&&(t=e[r],Ce(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function so(e,t){var r=qe({},e),s;for(s in t)I(t,s)&&(lt(e[s])&&lt(t[s])?(r[s]={},qe(r[s],e[s]),qe(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)I(e,s)&&!I(t,s)&&lt(e[s])&&(r[s]=qe({},r[s]));return r}function Bo(e){e!=null&&this.set(e)}var io;Object.keys?io=Object.keys:io=function(e){var t,r=[];for(t in e)I(e,t)&&r.push(t);return r};var Tf={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Af(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return Ce(s)?s.call(t,r):s}function Te(e,t,r){var s=""+Math.abs(e),i=t-s.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var $o=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,rs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,yi={},kt={};function b(e,t,r,s){var i=s;typeof s=="string"&&(i=function(){return this[s]()}),e&&(kt[e]=i),t&&(kt[t[0]]=function(){return Te(i.apply(this,arguments),t[1],t[2])}),r&&(kt[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Cf(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Df(e){var t=e.match($o),r,s;for(r=0,s=t.length;r<s;r++)kt[t[r]]?t[r]=kt[t[r]]:t[r]=Cf(t[r]);return function(i){var o="",n;for(n=0;n<s;n++)o+=Ce(t[n])?t[n].call(i,e):t[n];return o}}function ds(e,t){return e.isValid()?(t=zl(t,e.localeData()),yi[t]=yi[t]||Df(t),yi[t](e)):e.localeData().invalidDate()}function zl(e,t){var r=5;function s(i){return t.longDateFormat(i)||i}for(rs.lastIndex=0;r>=0&&rs.test(e);)e=e.replace(rs,s),rs.lastIndex=0,r-=1;return e}var Pf={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function kf(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match($o).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Mf="Invalid date";function Of(){return this._invalidDate}var Nf="%d",If=/\d{1,2}/;function Lf(e){return this._ordinal.replace("%d",e)}var Hf={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Rf(e,t,r,s){var i=this._relativeTime[r];return Ce(i)?i(e,t,r,s):i.replace(/%d/i,e)}function zf(e,t){var r=this._relativeTime[e>0?"future":"past"];return Ce(r)?r(t):r.replace(/%s/i,t)}var ia={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function pe(e){return typeof e=="string"?ia[e]||ia[e.toLowerCase()]:void 0}function Yo(e){var t={},r,s;for(s in e)I(e,s)&&(r=pe(s),r&&(t[r]=e[s]));return t}var Ff={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Bf(e){var t=[],r;for(r in e)I(e,r)&&t.push({unit:r,priority:Ff[r]});return t.sort(function(s,i){return s.priority-i.priority}),t}var Fl=/\d/,le=/\d\d/,Bl=/\d{3}/,Uo=/\d{4}/,$s=/[+-]?\d{6}/,B=/\d\d?/,$l=/\d\d\d\d?/,Yl=/\d\d\d\d\d\d?/,Ys=/\d{1,3}/,Wo=/\d{1,4}/,Us=/[+-]?\d{1,6}/,qt=/\d+/,Ws=/[+-]?\d+/,$f=/Z|[+-]\d\d:?\d\d/gi,js=/Z|[+-]\d\d(?::?\d\d)?/gi,Yf=/[+-]?\d+(\.\d{1,3})?/,$r=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Xt=/^[1-9]\d?/,jo=/^([1-9]\d|\d)/,ws;ws={};function y(e,t,r){ws[e]=Ce(t)?t:function(s,i){return s&&r?r:t}}function Uf(e,t){return I(ws,e)?ws[e](t._strict,t._locale):new RegExp(Wf(e))}function Wf(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,i,o){return r||s||i||o}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function A(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=de(t)),r}var oo={};function H(e,t){var r,s=t,i;for(typeof e=="string"&&(e=[e]),Be(t)&&(s=function(o,n){n[t]=A(o)}),i=e.length,r=0;r<i;r++)oo[e[r]]=s}function Yr(e,t){H(e,function(r,s,i,o){i._w=i._w||{},t(r,i._w,i,o)})}function jf(e,t,r){t!=null&&I(oo,e)&&oo[e](t,r._a,r,e)}function Vs(e){return e%4===0&&e%100!==0||e%400===0}var J=0,Ie=1,Se=2,G=3,ye=4,Le=5,it=6,Vf=7,Gf=8;b("Y",0,0,function(){var e=this.year();return e<=9999?Te(e,4):"+"+e});b(0,["YY",2],0,function(){return this.year()%100});b(0,["YYYY",4],0,"year");b(0,["YYYYY",5],0,"year");b(0,["YYYYYY",6,!0],0,"year");y("Y",Ws);y("YY",B,le);y("YYYY",Wo,Uo);y("YYYYY",Us,$s);y("YYYYYY",Us,$s);H(["YYYYY","YYYYYY"],J);H("YYYY",function(e,t){t[J]=e.length===2?m.parseTwoDigitYear(e):A(e)});H("YY",function(e,t){t[J]=m.parseTwoDigitYear(e)});H("Y",function(e,t){t[J]=parseInt(e,10)});function yr(e){return Vs(e)?366:365}m.parseTwoDigitYear=function(e){return A(e)+(A(e)>68?1900:2e3)};var Ul=Zt("FullYear",!0);function qf(){return Vs(this.year())}function Zt(e,t){return function(r){return r!=null?(Wl(this,e,r),m.updateOffset(this,t),this):wr(this,e)}}function wr(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Wl(e,t,r){var s,i,o,n,a;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(i?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(i?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(i?s.setUTCHours(r):s.setHours(r));case"Date":return void(i?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}o=r,n=e.month(),a=e.date(),a=a===29&&n===1&&!Vs(o)?28:a,i?s.setUTCFullYear(o,n,a):s.setFullYear(o,n,a)}}function Xf(e){return e=pe(e),Ce(this[e])?this[e]():this}function Zf(e,t){if(typeof e=="object"){e=Yo(e);var r=Bf(e),s,i=r.length;for(s=0;s<i;s++)this[r[s].unit](e[r[s].unit])}else if(e=pe(e),Ce(this[e]))return this[e](t);return this}function Kf(e,t){return(e%t+t)%t}var j;Array.prototype.indexOf?j=Array.prototype.indexOf:j=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Vo(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Kf(t,12);return e+=(t-r)/12,r===1?Vs(e)?29:28:31-r%7%2}b("M",["MM",2],"Mo",function(){return this.month()+1});b("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});b("MMMM",0,0,function(e){return this.localeData().months(this,e)});y("M",B,Xt);y("MM",B,le);y("MMM",function(e,t){return t.monthsShortRegex(e)});y("MMMM",function(e,t){return t.monthsRegex(e)});H(["M","MM"],function(e,t){t[Ie]=A(e)-1});H(["MMM","MMMM"],function(e,t,r,s){var i=r._locale.monthsParse(e,s,r._strict);i!=null?t[Ie]=i:E(r).invalidMonth=e});var Jf="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),jl="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vl=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qf=$r,ep=$r;function tp(e,t){return e?ve(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vl).test(t)?"format":"standalone"][e.month()]:ve(this._months)?this._months:this._months.standalone}function rp(e,t){return e?ve(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vl.test(t)?"format":"standalone"][e.month()]:ve(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function sp(e,t,r){var s,i,o,n=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)o=Ae([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(o,"").toLocaleLowerCase();return r?t==="MMM"?(i=j.call(this._shortMonthsParse,n),i!==-1?i:null):(i=j.call(this._longMonthsParse,n),i!==-1?i:null):t==="MMM"?(i=j.call(this._shortMonthsParse,n),i!==-1?i:(i=j.call(this._longMonthsParse,n),i!==-1?i:null)):(i=j.call(this._longMonthsParse,n),i!==-1?i:(i=j.call(this._shortMonthsParse,n),i!==-1?i:null))}function ip(e,t,r){var s,i,o;if(this._monthsParseExact)return sp.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=Ae([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(o.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function Gl(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=A(t);else if(t=e.localeData().monthsParse(t),!Be(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,Vo(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function ql(e){return e!=null?(Gl(this,e),m.updateOffset(this,!0),this):wr(this,"Month")}function op(){return Vo(this.year(),this.month())}function np(e){return this._monthsParseExact?(I(this,"_monthsRegex")||Xl.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=Qf),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ap(e){return this._monthsParseExact?(I(this,"_monthsRegex")||Xl.call(this),e?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=ep),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Xl(){function e(l,u){return u.length-l.length}var t=[],r=[],s=[],i,o,n,a;for(i=0;i<12;i++)o=Ae([2e3,i]),n=Re(this.monthsShort(o,"")),a=Re(this.months(o,"")),t.push(n),r.push(a),s.push(a),s.push(n);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function lp(e,t,r,s,i,o,n){var a;return e<100&&e>=0?(a=new Date(e+400,t,r,s,i,o,n),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,s,i,o,n),a}function Er(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Es(e,t,r){var s=7+t-r,i=(7+Er(e,0,s).getUTCDay()-t)%7;return-i+s-1}function Zl(e,t,r,s,i){var o=(7+r-s)%7,n=Es(e,s,i),a=1+7*(t-1)+o+n,l,u;return a<=0?(l=e-1,u=yr(l)+a):a>yr(e)?(l=e+1,u=a-yr(e)):(l=e,u=a),{year:l,dayOfYear:u}}function Sr(e,t,r){var s=Es(e.year(),t,r),i=Math.floor((e.dayOfYear()-s-1)/7)+1,o,n;return i<1?(n=e.year()-1,o=i+ze(n,t,r)):i>ze(e.year(),t,r)?(o=i-ze(e.year(),t,r),n=e.year()+1):(n=e.year(),o=i),{week:o,year:n}}function ze(e,t,r){var s=Es(e,t,r),i=Es(e+1,t,r);return(yr(e)-s+i)/7}b("w",["ww",2],"wo","week");b("W",["WW",2],"Wo","isoWeek");y("w",B,Xt);y("ww",B,le);y("W",B,Xt);y("WW",B,le);Yr(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=A(e)});function up(e){return Sr(e,this._week.dow,this._week.doy).week}var cp={dow:0,doy:6};function hp(){return this._week.dow}function dp(){return this._week.doy}function fp(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function pp(e){var t=Sr(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}b("d",0,"do","day");b("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});b("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});b("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});b("e",0,0,"weekday");b("E",0,0,"isoWeekday");y("d",B);y("e",B);y("E",B);y("dd",function(e,t){return t.weekdaysMinRegex(e)});y("ddd",function(e,t){return t.weekdaysShortRegex(e)});y("dddd",function(e,t){return t.weekdaysRegex(e)});Yr(["dd","ddd","dddd"],function(e,t,r,s){var i=r._locale.weekdaysParse(e,s,r._strict);i!=null?t.d=i:E(r).invalidWeekday=e});Yr(["d","e","E"],function(e,t,r,s){t[s]=A(e)});function mp(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _p(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Go(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Kl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vp=$r,bp=$r,xp=$r;function wp(e,t){var r=ve(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Go(r,this._week.dow):e?r[e.day()]:r}function Ep(e){return e===!0?Go(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Sp(e){return e===!0?Go(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Tp(e,t,r){var s,i,o,n=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)o=Ae([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(i=j.call(this._weekdaysParse,n),i!==-1?i:null):t==="ddd"?(i=j.call(this._shortWeekdaysParse,n),i!==-1?i:null):(i=j.call(this._minWeekdaysParse,n),i!==-1?i:null):t==="dddd"?(i=j.call(this._weekdaysParse,n),i!==-1||(i=j.call(this._shortWeekdaysParse,n),i!==-1)?i:(i=j.call(this._minWeekdaysParse,n),i!==-1?i:null)):t==="ddd"?(i=j.call(this._shortWeekdaysParse,n),i!==-1||(i=j.call(this._weekdaysParse,n),i!==-1)?i:(i=j.call(this._minWeekdaysParse,n),i!==-1?i:null)):(i=j.call(this._minWeekdaysParse,n),i!==-1||(i=j.call(this._weekdaysParse,n),i!==-1)?i:(i=j.call(this._shortWeekdaysParse,n),i!==-1?i:null))}function Ap(e,t,r){var s,i,o;if(this._weekdaysParseExact)return Tp.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=Ae([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function Cp(e){if(!this.isValid())return e!=null?this:NaN;var t=wr(this,"Day");return e!=null?(e=mp(e,this.localeData()),this.add(e-t,"d")):t}function Dp(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Pp(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_p(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function kp(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||qo.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=vp),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Mp(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||qo.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bp),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Op(e){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||qo.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xp),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qo(){function e(c,h){return h.length-c.length}var t=[],r=[],s=[],i=[],o,n,a,l,u;for(o=0;o<7;o++)n=Ae([2e3,1]).day(o),a=Re(this.weekdaysMin(n,"")),l=Re(this.weekdaysShort(n,"")),u=Re(this.weekdays(n,"")),t.push(a),r.push(l),s.push(u),i.push(a),i.push(l),i.push(u);t.sort(e),r.sort(e),s.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xo(){return this.hours()%12||12}function Np(){return this.hours()||24}b("H",["HH",2],0,"hour");b("h",["hh",2],0,Xo);b("k",["kk",2],0,Np);b("hmm",0,0,function(){return""+Xo.apply(this)+Te(this.minutes(),2)});b("hmmss",0,0,function(){return""+Xo.apply(this)+Te(this.minutes(),2)+Te(this.seconds(),2)});b("Hmm",0,0,function(){return""+this.hours()+Te(this.minutes(),2)});b("Hmmss",0,0,function(){return""+this.hours()+Te(this.minutes(),2)+Te(this.seconds(),2)});function Jl(e,t){b(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Jl("a",!0);Jl("A",!1);function Ql(e,t){return t._meridiemParse}y("a",Ql);y("A",Ql);y("H",B,jo);y("h",B,Xt);y("k",B,Xt);y("HH",B,le);y("hh",B,le);y("kk",B,le);y("hmm",$l);y("hmmss",Yl);y("Hmm",$l);y("Hmmss",Yl);H(["H","HH"],G);H(["k","kk"],function(e,t,r){var s=A(e);t[G]=s===24?0:s});H(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});H(["h","hh"],function(e,t,r){t[G]=A(e),E(r).bigHour=!0});H("hmm",function(e,t,r){var s=e.length-2;t[G]=A(e.substr(0,s)),t[ye]=A(e.substr(s)),E(r).bigHour=!0});H("hmmss",function(e,t,r){var s=e.length-4,i=e.length-2;t[G]=A(e.substr(0,s)),t[ye]=A(e.substr(s,2)),t[Le]=A(e.substr(i)),E(r).bigHour=!0});H("Hmm",function(e,t,r){var s=e.length-2;t[G]=A(e.substr(0,s)),t[ye]=A(e.substr(s))});H("Hmmss",function(e,t,r){var s=e.length-4,i=e.length-2;t[G]=A(e.substr(0,s)),t[ye]=A(e.substr(s,2)),t[Le]=A(e.substr(i))});function Ip(e){return(e+"").toLowerCase().charAt(0)==="p"}var Lp=/[ap]\.?m?\.?/i,Hp=Zt("Hours",!0);function Rp(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var eu={calendar:Tf,longDateFormat:Pf,invalidDate:Mf,ordinal:Nf,dayOfMonthOrdinalParse:If,relativeTime:Hf,months:Jf,monthsShort:jl,week:cp,weekdays:yp,weekdaysMin:gp,weekdaysShort:Kl,meridiemParse:Lp},U={},ar={},Tr;function zp(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function oa(e){return e&&e.toLowerCase().replace("_","-")}function Fp(e){for(var t=0,r,s,i,o;t<e.length;){for(o=oa(e[t]).split("-"),r=o.length,s=oa(e[t+1]),s=s?s.split("-"):null;r>0;){if(i=Gs(o.slice(0,r).join("-")),i)return i;if(s&&s.length>=r&&zp(o,s)>=r-1)break;r--}t++}return Tr}function Bp(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Gs(e){var t=null,r;if(U[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&Bp(e))try{t=Tr._abbr,r=xf,r("./locale/"+e),Ze(t)}catch(s){U[e]=null}return U[e]}function Ze(e,t){var r;return e&&(oe(t)?r=Ye(e):r=Zo(e,t),r?Tr=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Tr._abbr}function Zo(e,t){if(t!==null){var r,s=eu;if(t.abbr=e,U[e]!=null)Rl("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=U[e]._config;else if(t.parentLocale!=null)if(U[t.parentLocale]!=null)s=U[t.parentLocale]._config;else if(r=Gs(t.parentLocale),r!=null)s=r._config;else return ar[t.parentLocale]||(ar[t.parentLocale]=[]),ar[t.parentLocale].push({name:e,config:t}),null;return U[e]=new Bo(so(s,t)),ar[e]&&ar[e].forEach(function(i){Zo(i.name,i.config)}),Ze(e),U[e]}else return delete U[e],null}function $p(e,t){if(t!=null){var r,s,i=eu;U[e]!=null&&U[e].parentLocale!=null?U[e].set(so(U[e]._config,t)):(s=Gs(e),s!=null&&(i=s._config),t=so(i,t),s==null&&(t.abbr=e),r=new Bo(t),r.parentLocale=U[e],U[e]=r),Ze(e)}else U[e]!=null&&(U[e].parentLocale!=null?(U[e]=U[e].parentLocale,e===Ze()&&Ze(e)):U[e]!=null&&delete U[e]);return U[e]}function Ye(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Tr;if(!ve(e)){if(t=Gs(e),t)return t;e=[e]}return Fp(e)}function Yp(){return io(U)}function Ko(e){var t,r=e._a;return r&&E(e).overflow===-2&&(t=r[Ie]<0||r[Ie]>11?Ie:r[Se]<1||r[Se]>Vo(r[J],r[Ie])?Se:r[G]<0||r[G]>24||r[G]===24&&(r[ye]!==0||r[Le]!==0||r[it]!==0)?G:r[ye]<0||r[ye]>59?ye:r[Le]<0||r[Le]>59?Le:r[it]<0||r[it]>999?it:-1,E(e)._overflowDayOfYear&&(t<J||t>Se)&&(t=Se),E(e)._overflowWeeks&&t===-1&&(t=Vf),E(e)._overflowWeekday&&t===-1&&(t=Gf),E(e).overflow=t),e}var Up=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wp=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jp=/Z|[+-]\d\d(?::?\d\d)?/,ss=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vp=/^\/?Date\((-?\d+)/i,Gp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,qp={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function tu(e){var t,r,s=e._i,i=Up.exec(s)||Wp.exec(s),o,n,a,l,u=ss.length,c=gi.length;if(i){for(E(e).iso=!0,t=0,r=u;t<r;t++)if(ss[t][1].exec(i[1])){n=ss[t][0],o=ss[t][2]!==!1;break}if(n==null){e._isValid=!1;return}if(i[3]){for(t=0,r=c;t<r;t++)if(gi[t][1].exec(i[3])){a=(i[2]||" ")+gi[t][0];break}if(a==null){e._isValid=!1;return}}if(!o&&a!=null){e._isValid=!1;return}if(i[4])if(jp.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=n+(a||"")+(l||""),Qo(e)}else e._isValid=!1}function Xp(e,t,r,s,i,o){var n=[Zp(e),jl.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(i,10)];return o&&n.push(parseInt(o,10)),n}function Zp(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Kp(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Jp(e,t,r){if(e){var s=Kl.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(s!==i)return E(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Qp(e,t,r){if(e)return qp[e];if(t)return 0;var s=parseInt(r,10),i=s%100,o=(s-i)/100;return o*60+i}function ru(e){var t=Gp.exec(Kp(e._i)),r;if(t){if(r=Xp(t[4],t[3],t[2],t[5],t[6],t[7]),!Jp(t[1],r,e))return;e._a=r,e._tzm=Qp(t[8],t[9],t[10]),e._d=Er.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),E(e).rfc2822=!0}else e._isValid=!1}function em(e){var t=Vp.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(tu(e),e._isValid===!1)delete e._isValid;else return;if(ru(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:m.createFromInputFallback(e)}m.createFromInputFallback=fe("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Tt(e,t,r){return e!=null?e:t!=null?t:r}function tm(e){var t=new Date(m.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Jo(e){var t,r,s=[],i,o,n;if(!e._d){for(i=tm(e),e._w&&e._a[Se]==null&&e._a[Ie]==null&&rm(e),e._dayOfYear!=null&&(n=Tt(e._a[J],i[J]),(e._dayOfYear>yr(n)||e._dayOfYear===0)&&(E(e)._overflowDayOfYear=!0),r=Er(n,0,e._dayOfYear),e._a[Ie]=r.getUTCMonth(),e._a[Se]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[G]===24&&e._a[ye]===0&&e._a[Le]===0&&e._a[it]===0&&(e._nextDay=!0,e._a[G]=0),e._d=(e._useUTC?Er:lp).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[G]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==o&&(E(e).weekdayMismatch=!0)}}function rm(e){var t,r,s,i,o,n,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,n=4,r=Tt(t.GG,e._a[J],Sr(F(),1,4).year),s=Tt(t.W,1),i=Tt(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,n=e._locale._week.doy,u=Sr(F(),o,n),r=Tt(t.gg,e._a[J],u.year),s=Tt(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),s<1||s>ze(r,o,n)?E(e)._overflowWeeks=!0:l!=null?E(e)._overflowWeekday=!0:(a=Zl(r,s,i,o,n),e._a[J]=a.year,e._dayOfYear=a.dayOfYear)}m.ISO_8601=function(){};m.RFC_2822=function(){};function Qo(e){if(e._f===m.ISO_8601){tu(e);return}if(e._f===m.RFC_2822){ru(e);return}e._a=[],E(e).empty=!0;var t=""+e._i,r,s,i,o,n,a=t.length,l=0,u,c;for(i=zl(e._f,e._locale).match($o)||[],c=i.length,r=0;r<c;r++)o=i[r],s=(t.match(Uf(o,e))||[])[0],s&&(n=t.substr(0,t.indexOf(s)),n.length>0&&E(e).unusedInput.push(n),t=t.slice(t.indexOf(s)+s.length),l+=s.length),kt[o]?(s?E(e).empty=!1:E(e).unusedTokens.push(o),jf(o,s,e)):e._strict&&!s&&E(e).unusedTokens.push(o);E(e).charsLeftOver=a-l,t.length>0&&E(e).unusedInput.push(t),e._a[G]<=12&&E(e).bigHour===!0&&e._a[G]>0&&(E(e).bigHour=void 0),E(e).parsedDateParts=e._a.slice(0),E(e).meridiem=e._meridiem,e._a[G]=sm(e._locale,e._a[G],e._meridiem),u=E(e).era,u!==null&&(e._a[J]=e._locale.erasConvertYear(u,e._a[J])),Jo(e),Ko(e)}function sm(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function im(e){var t,r,s,i,o,n,a=!1,l=e._f.length;if(l===0){E(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,n=!1,t=Fo({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Qo(t),zo(t)&&(n=!0),o+=E(t).charsLeftOver,o+=E(t).unusedTokens.length*10,E(t).score=o,a?o<s&&(s=o,r=t):(s==null||o<s||n)&&(s=o,r=t,n&&(a=!0));qe(e,r||t)}function om(e){if(!e._d){var t=Yo(e._i),r=t.day===void 0?t.date:t.day;e._a=Ll([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Jo(e)}}function nm(e){var t=new Br(Ko(su(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function su(e){var t=e._i,r=e._f;return e._locale=e._locale||Ye(e._l),t===null||r===void 0&&t===""?Bs({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),be(t)?new Br(Ko(t)):(Fr(t)?e._d=t:ve(r)?im(e):r?Qo(e):am(e),zo(e)||(e._d=null),e))}function am(e){var t=e._i;oe(t)?e._d=new Date(m.now()):Fr(t)?e._d=new Date(t.valueOf()):typeof t=="string"?em(e):ve(t)?(e._a=Ll(t.slice(0),function(r){return parseInt(r,10)}),Jo(e)):lt(t)?om(e):Be(t)?e._d=new Date(t):m.createFromInputFallback(e)}function iu(e,t,r,s,i){var o={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(lt(e)&&Ro(e)||ve(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=r,o._i=e,o._f=t,o._strict=s,nm(o)}function F(e,t,r,s){return iu(e,t,r,s,!1)}var lm=fe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Bs()}),um=fe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Bs()});function ou(e,t){var r,s;if(t.length===1&&ve(t[0])&&(t=t[0]),!t.length)return F();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function cm(){var e=[].slice.call(arguments,0);return ou("isBefore",e)}function hm(){var e=[].slice.call(arguments,0);return ou("isAfter",e)}var dm=function(){return Date.now?Date.now():+new Date},lr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fm(e){var t,r=!1,s,i=lr.length;for(t in e)if(I(e,t)&&!(j.call(lr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<i;++s)if(e[lr[s]]){if(r)return!1;parseFloat(e[lr[s]])!==A(e[lr[s]])&&(r=!0)}return!0}function pm(){return this._isValid}function mm(){return xe(NaN)}function qs(e){var t=Yo(e),r=t.year||0,s=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,n=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=fm(t),this._milliseconds=+c+u*1e3+l*6e4+a*1e3*60*60,this._days=+n+o*7,this._months=+i+s*3+r*12,this._data={},this._locale=Ye(),this._bubble()}function fs(e){return e instanceof qs}function no(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _m(e,t,r){var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,n;for(n=0;n<s;n++)A(e[n])!==A(t[n])&&o++;return o+i}function nu(e,t){b(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+Te(~~(r/60),2)+t+Te(~~r%60,2)})}nu("Z",":");nu("ZZ","");y("Z",js);y("ZZ",js);H(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=en(js,e)});var ym=/([\+\-]|\d\d)/gi;function en(e,t){var r=(t||"").match(e),s,i,o;return r===null?null:(s=r[r.length-1]||[],i=(s+"").match(ym)||["-",0,0],o=+(i[1]*60)+A(i[2]),o===0?0:i[0]==="+"?o:-o)}function tn(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(be(e)||Fr(e)?e.valueOf():F(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),m.updateOffset(r,!1),r):F(e).local()}function ao(e){return-Math.round(e._d.getTimezoneOffset())}m.updateOffset=function(){};function gm(e,t,r){var s=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=en(js,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(i=ao(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),s!==e&&(!t||this._changeInProgress?uu(this,xe(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:ao(this)}function vm(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function bm(e){return this.utcOffset(0,e)}function xm(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ao(this),"m")),this}function wm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=en($f,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Em(e){return this.isValid()?(e=e?F(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Sm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Tm(){if(!oe(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Fo(e,this),e=su(e),e._a?(t=e._isUTC?Ae(e._a):F(e._a),this._isDSTShifted=this.isValid()&&_m(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Am(){return this.isValid()?!this._isUTC:!1}function Cm(){return this.isValid()?this._isUTC:!1}function au(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Dm=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xe(e,t){var r=e,s=null,i,o,n;return fs(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Be(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=Dm.exec(e))?(i=s[1]==="-"?-1:1,r={y:0,d:A(s[Se])*i,h:A(s[G])*i,m:A(s[ye])*i,s:A(s[Le])*i,ms:A(no(s[it]*1e3))*i}):(s=Pm.exec(e))?(i=s[1]==="-"?-1:1,r={y:rt(s[2],i),M:rt(s[3],i),w:rt(s[4],i),d:rt(s[5],i),h:rt(s[6],i),m:rt(s[7],i),s:rt(s[8],i)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(n=km(F(r.from),F(r.to)),r={},r.ms=n.milliseconds,r.M=n.months),o=new qs(r),fs(e)&&I(e,"_locale")&&(o._locale=e._locale),fs(e)&&I(e,"_isValid")&&(o._isValid=e._isValid),o}xe.fn=qs.prototype;xe.invalid=mm;function rt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function na(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function km(e,t){var r;return e.isValid()&&t.isValid()?(t=tn(t,e),e.isBefore(t)?r=na(e,t):(r=na(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function lu(e,t){return function(r,s){var i,o;return s!==null&&!isNaN(+s)&&(Rl(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=s,s=o),i=xe(r,s),uu(this,i,e),this}}function uu(e,t,r,s){var i=t._milliseconds,o=no(t._days),n=no(t._months);e.isValid()&&(s=s==null?!0:s,n&&Gl(e,wr(e,"Month")+n*r),o&&Wl(e,"Date",wr(e,"Date")+o*r),i&&e._d.setTime(e._d.valueOf()+i*r),s&&m.updateOffset(e,o||n))}var Mm=lu(1,"add"),Om=lu(-1,"subtract");function cu(e){return typeof e=="string"||e instanceof String}function Nm(e){return be(e)||Fr(e)||cu(e)||Be(e)||Lm(e)||Im(e)||e===null||e===void 0}function Im(e){var t=lt(e)&&!Ro(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,n=s.length;for(i=0;i<n;i+=1)o=s[i],r=r||I(e,o);return t&&r}function Lm(e){var t=ve(e),r=!1;return t&&(r=e.filter(function(s){return!Be(s)&&cu(e)}).length===0),t&&r}function Hm(e){var t=lt(e)&&!Ro(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<s.length;i+=1)o=s[i],r=r||I(e,o);return t&&r}function Rm(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function zm(e,t){arguments.length===1&&(arguments[0]?Nm(arguments[0])?(e=arguments[0],t=void 0):Hm(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||F(),s=tn(r,this).startOf("day"),i=m.calendarFormat(this,s)||"sameElse",o=t&&(Ce(t[i])?t[i].call(this,r):t[i]);return this.format(o||this.localeData().calendar(i,this,F(r)))}function Fm(){return new Br(this)}function Bm(e,t){var r=be(e)?e:F(e);return this.isValid()&&r.isValid()?(t=pe(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function $m(e,t){var r=be(e)?e:F(e);return this.isValid()&&r.isValid()?(t=pe(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Ym(e,t,r,s){var i=be(e)?e:F(e),o=be(t)?t:F(t);return this.isValid()&&i.isValid()&&o.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(i,r):!this.isBefore(i,r))&&(s[1]===")"?this.isBefore(o,r):!this.isAfter(o,r))):!1}function Um(e,t){var r=be(e)?e:F(e),s;return this.isValid()&&r.isValid()?(t=pe(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Wm(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function jm(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vm(e,t,r){var s,i,o;if(!this.isValid())return NaN;if(s=tn(e,this),!s.isValid())return NaN;switch(i=(s.utcOffset()-this.utcOffset())*6e4,t=pe(t),t){case"year":o=ps(this,s)/12;break;case"month":o=ps(this,s);break;case"quarter":o=ps(this,s)/3;break;case"second":o=(this-s)/1e3;break;case"minute":o=(this-s)/6e4;break;case"hour":o=(this-s)/36e5;break;case"day":o=(this-s-i)/864e5;break;case"week":o=(this-s-i)/6048e5;break;default:o=this-s}return r?o:de(o)}function ps(e,t){if(e.date()<t.date())return-ps(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),i,o;return t-s<0?(i=e.clone().add(r-1,"months"),o=(t-s)/(s-i)):(i=e.clone().add(r+1,"months"),o=(t-s)/(i-s)),-(r+o)||0}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Gm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function qm(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ds(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ce(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ds(r,"Z")):ds(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xm(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+s+i+o)}function Zm(e){e||(e=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var t=ds(this,e);return this.localeData().postformat(t)}function Km(e,t){return this.isValid()&&(be(e)&&e.isValid()||F(e).isValid())?xe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Jm(e){return this.from(F(),e)}function Qm(e,t){return this.isValid()&&(be(e)&&e.isValid()||F(e).isValid())?xe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function e_(e){return this.to(F(),e)}function hu(e){var t;return e===void 0?this._locale._abbr:(t=Ye(e),t!=null&&(this._locale=t),this)}var du=fe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function fu(){return this._locale}var Ss=1e3,Mt=60*Ss,Ts=60*Mt,pu=(365*400+97)*24*Ts;function Ot(e,t){return(e%t+t)%t}function mu(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-pu:new Date(e,t,r).valueOf()}function _u(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-pu:Date.UTC(e,t,r)}function t_(e){var t,r;if(e=pe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?_u:mu,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ot(t+(this._isUTC?0:this.utcOffset()*Mt),Ts);break;case"minute":t=this._d.valueOf(),t-=Ot(t,Mt);break;case"second":t=this._d.valueOf(),t-=Ot(t,Ss);break}return this._d.setTime(t),m.updateOffset(this,!0),this}function r_(e){var t,r;if(e=pe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?_u:mu,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ts-Ot(t+(this._isUTC?0:this.utcOffset()*Mt),Ts)-1;break;case"minute":t=this._d.valueOf(),t+=Mt-Ot(t,Mt)-1;break;case"second":t=this._d.valueOf(),t+=Ss-Ot(t,Ss)-1;break}return this._d.setTime(t),m.updateOffset(this,!0),this}function s_(){return this._d.valueOf()-(this._offset||0)*6e4}function i_(){return Math.floor(this.valueOf()/1e3)}function o_(){return new Date(this.valueOf())}function n_(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function a_(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function l_(){return this.isValid()?this.toISOString():null}function u_(){return zo(this)}function c_(){return qe({},E(this))}function h_(){return E(this).overflow}function d_(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}b("N",0,0,"eraAbbr");b("NN",0,0,"eraAbbr");b("NNN",0,0,"eraAbbr");b("NNNN",0,0,"eraName");b("NNNNN",0,0,"eraNarrow");b("y",["y",1],"yo","eraYear");b("y",["yy",2],0,"eraYear");b("y",["yyy",3],0,"eraYear");b("y",["yyyy",4],0,"eraYear");y("N",rn);y("NN",rn);y("NNN",rn);y("NNNN",E_);y("NNNNN",S_);H(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var i=r._locale.erasParse(e,s,r._strict);i?E(r).era=i:E(r).invalidEra=e});y("y",qt);y("yy",qt);y("yyy",qt);y("yyyy",qt);y("yo",T_);H(["y","yy","yyy","yyyy"],J);H(["yo"],function(e,t,r,s){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[J]=r._locale.eraYearOrdinalParse(e,i):t[J]=parseInt(e,10)});function f_(e,t){var r,s,i,o=this._eras||Ye("en")._eras;for(r=0,s=o.length;r<s;++r){switch(typeof o[r].since){case"string":i=m(o[r].since).startOf("day"),o[r].since=i.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":i=m(o[r].until).startOf("day").valueOf(),o[r].until=i.valueOf();break}}return o}function p_(e,t,r){var s,i,o=this.eras(),n,a,l;for(e=e.toUpperCase(),s=0,i=o.length;s<i;++s)if(n=o[s].name.toUpperCase(),a=o[s].abbr.toUpperCase(),l=o[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return o[s];break;case"NNNN":if(n===e)return o[s];break;case"NNNNN":if(l===e)return o[s];break}else if([n,a,l].indexOf(e)>=0)return o[s]}function m_(e,t){var r=e.since<=e.until?1:-1;return t===void 0?m(e.since).year():m(e.since).year()+(t-e.offset)*r}function __(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function y_(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function g_(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function v_(){var e,t,r,s,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=i[e].since<=i[e].until?1:-1,s=this.clone().startOf("day").valueOf(),i[e].since<=s&&s<=i[e].until||i[e].until<=s&&s<=i[e].since)return(this.year()-m(i[e].since).year())*r+i[e].offset;return this.year()}function b_(e){return I(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex}function x_(e){return I(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex}function w_(e){return I(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex}function rn(e,t){return t.erasAbbrRegex(e)}function E_(e,t){return t.erasNameRegex(e)}function S_(e,t){return t.erasNarrowRegex(e)}function T_(e,t){return t._eraYearOrdinalRegex||qt}function sn(){var e=[],t=[],r=[],s=[],i,o,n,a,l,u=this.eras();for(i=0,o=u.length;i<o;++i)n=Re(u[i].name),a=Re(u[i].abbr),l=Re(u[i].narrow),t.push(n),e.push(a),r.push(l),s.push(n),s.push(a),s.push(l);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}b(0,["gg",2],0,function(){return this.weekYear()%100});b(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xs(e,t){b(0,[e,e.length],0,t)}Xs("gggg","weekYear");Xs("ggggg","weekYear");Xs("GGGG","isoWeekYear");Xs("GGGGG","isoWeekYear");y("G",Ws);y("g",Ws);y("GG",B,le);y("gg",B,le);y("GGGG",Wo,Uo);y("gggg",Wo,Uo);y("GGGGG",Us,$s);y("ggggg",Us,$s);Yr(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=A(e)});Yr(["gg","GG"],function(e,t,r,s){t[s]=m.parseTwoDigitYear(e)});function A_(e){return yu.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function C_(e){return yu.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function D_(){return ze(this.year(),1,4)}function P_(){return ze(this.isoWeekYear(),1,4)}function k_(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)}function M_(){var e=this.localeData()._week;return ze(this.weekYear(),e.dow,e.doy)}function yu(e,t,r,s,i){var o;return e==null?Sr(this,s,i).year:(o=ze(e,s,i),t>o&&(t=o),O_.call(this,e,t,r,s,i))}function O_(e,t,r,s,i){var o=Zl(e,t,r,s,i),n=Er(o.year,0,o.dayOfYear);return this.year(n.getUTCFullYear()),this.month(n.getUTCMonth()),this.date(n.getUTCDate()),this}b("Q",0,"Qo","quarter");y("Q",Fl);H("Q",function(e,t){t[Ie]=(A(e)-1)*3});function N_(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}b("D",["DD",2],"Do","date");y("D",B,Xt);y("DD",B,le);y("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});H(["D","DD"],Se);H("Do",function(e,t){t[Se]=A(e.match(B)[0])});var gu=Zt("Date",!0);b("DDD",["DDDD",3],"DDDo","dayOfYear");y("DDD",Ys);y("DDDD",Bl);H(["DDD","DDDD"],function(e,t,r){r._dayOfYear=A(e)});function I_(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}b("m",["mm",2],0,"minute");y("m",B,jo);y("mm",B,le);H(["m","mm"],ye);var L_=Zt("Minutes",!1);b("s",["ss",2],0,"second");y("s",B,jo);y("ss",B,le);H(["s","ss"],Le);var H_=Zt("Seconds",!1);b("S",0,0,function(){return~~(this.millisecond()/100)});b(0,["SS",2],0,function(){return~~(this.millisecond()/10)});b(0,["SSS",3],0,"millisecond");b(0,["SSSS",4],0,function(){return this.millisecond()*10});b(0,["SSSSS",5],0,function(){return this.millisecond()*100});b(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});b(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});b(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});b(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});y("S",Ys,Fl);y("SS",Ys,le);y("SSS",Ys,Bl);var Xe,vu;for(Xe="SSSS";Xe.length<=9;Xe+="S")y(Xe,qt);function R_(e,t){t[it]=A(("0."+e)*1e3)}for(Xe="S";Xe.length<=9;Xe+="S")H(Xe,R_);vu=Zt("Milliseconds",!1);b("z",0,0,"zoneAbbr");b("zz",0,0,"zoneName");function z_(){return this._isUTC?"UTC":""}function F_(){return this._isUTC?"Coordinated Universal Time":""}var p=Br.prototype;p.add=Mm;p.calendar=zm;p.clone=Fm;p.diff=Vm;p.endOf=r_;p.format=Zm;p.from=Km;p.fromNow=Jm;p.to=Qm;p.toNow=e_;p.get=Xf;p.invalidAt=h_;p.isAfter=Bm;p.isBefore=$m;p.isBetween=Ym;p.isSame=Um;p.isSameOrAfter=Wm;p.isSameOrBefore=jm;p.isValid=u_;p.lang=du;p.locale=hu;p.localeData=fu;p.max=um;p.min=lm;p.parsingFlags=c_;p.set=Zf;p.startOf=t_;p.subtract=Om;p.toArray=n_;p.toObject=a_;p.toDate=o_;p.toISOString=qm;p.inspect=Xm;typeof Symbol!="undefined"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});p.toJSON=l_;p.toString=Gm;p.unix=i_;p.valueOf=s_;p.creationData=d_;p.eraName=__;p.eraNarrow=y_;p.eraAbbr=g_;p.eraYear=v_;p.year=Ul;p.isLeapYear=qf;p.weekYear=A_;p.isoWeekYear=C_;p.quarter=p.quarters=N_;p.month=ql;p.daysInMonth=op;p.week=p.weeks=fp;p.isoWeek=p.isoWeeks=pp;p.weeksInYear=k_;p.weeksInWeekYear=M_;p.isoWeeksInYear=D_;p.isoWeeksInISOWeekYear=P_;p.date=gu;p.day=p.days=Cp;p.weekday=Dp;p.isoWeekday=Pp;p.dayOfYear=I_;p.hour=p.hours=Hp;p.minute=p.minutes=L_;p.second=p.seconds=H_;p.millisecond=p.milliseconds=vu;p.utcOffset=gm;p.utc=bm;p.local=xm;p.parseZone=wm;p.hasAlignedHourOffset=Em;p.isDST=Sm;p.isLocal=Am;p.isUtcOffset=Cm;p.isUtc=au;p.isUTC=au;p.zoneAbbr=z_;p.zoneName=F_;p.dates=fe("dates accessor is deprecated. Use date instead.",gu);p.months=fe("months accessor is deprecated. Use month instead",ql);p.years=fe("years accessor is deprecated. Use year instead",Ul);p.zone=fe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vm);p.isDSTShifted=fe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Tm);function B_(e){return F(e*1e3)}function $_(){return F.apply(null,arguments).parseZone()}function bu(e){return e}var L=Bo.prototype;L.calendar=Af;L.longDateFormat=kf;L.invalidDate=Of;L.ordinal=Lf;L.preparse=bu;L.postformat=bu;L.relativeTime=Rf;L.pastFuture=zf;L.set=Sf;L.eras=f_;L.erasParse=p_;L.erasConvertYear=m_;L.erasAbbrRegex=x_;L.erasNameRegex=b_;L.erasNarrowRegex=w_;L.months=tp;L.monthsShort=rp;L.monthsParse=ip;L.monthsRegex=ap;L.monthsShortRegex=np;L.week=up;L.firstDayOfYear=dp;L.firstDayOfWeek=hp;L.weekdays=wp;L.weekdaysMin=Sp;L.weekdaysShort=Ep;L.weekdaysParse=Ap;L.weekdaysRegex=kp;L.weekdaysShortRegex=Mp;L.weekdaysMinRegex=Op;L.isPM=Ip;L.meridiem=Rp;function As(e,t,r,s){var i=Ye(),o=Ae().set(s,t);return i[r](o,e)}function xu(e,t,r){if(Be(e)&&(t=e,e=void 0),e=e||"",t!=null)return As(e,t,r,"month");var s,i=[];for(s=0;s<12;s++)i[s]=As(e,s,r,"month");return i}function on(e,t,r,s){typeof e=="boolean"?(Be(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Be(t)&&(r=t,t=void 0),t=t||"");var i=Ye(),o=e?i._week.dow:0,n,a=[];if(r!=null)return As(t,(r+o)%7,s,"day");for(n=0;n<7;n++)a[n]=As(t,(n+o)%7,s,"day");return a}function Y_(e,t){return xu(e,t,"months")}function U_(e,t){return xu(e,t,"monthsShort")}function W_(e,t,r){return on(e,t,r,"weekdays")}function j_(e,t,r){return on(e,t,r,"weekdaysShort")}function V_(e,t,r){return on(e,t,r,"weekdaysMin")}Ze("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=A(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});m.lang=fe("moment.lang is deprecated. Use moment.locale instead.",Ze);m.langData=fe("moment.langData is deprecated. Use moment.localeData instead.",Ye);var ke=Math.abs;function G_(){var e=this._data;return this._milliseconds=ke(this._milliseconds),this._days=ke(this._days),this._months=ke(this._months),e.milliseconds=ke(e.milliseconds),e.seconds=ke(e.seconds),e.minutes=ke(e.minutes),e.hours=ke(e.hours),e.months=ke(e.months),e.years=ke(e.years),this}function wu(e,t,r,s){var i=xe(t,r);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function q_(e,t){return wu(this,e,t,1)}function X_(e,t){return wu(this,e,t,-1)}function aa(e){return e<0?Math.floor(e):Math.ceil(e)}function Z_(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,i,o,n,a,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=aa(lo(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,i=de(e/1e3),s.seconds=i%60,o=de(i/60),s.minutes=o%60,n=de(o/60),s.hours=n%24,t+=de(n/24),l=de(Eu(t)),r+=l,t-=aa(lo(l)),a=de(r/12),r%=12,s.days=t,s.months=r,s.years=a,this}function Eu(e){return e*4800/146097}function lo(e){return e*146097/4800}function K_(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=pe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+Eu(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(lo(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Ue(e){return function(){return this.as(e)}}var Su=Ue("ms"),J_=Ue("s"),Q_=Ue("m"),e0=Ue("h"),t0=Ue("d"),r0=Ue("w"),s0=Ue("M"),i0=Ue("Q"),o0=Ue("y"),n0=Su;function a0(){return xe(this)}function l0(e){return e=pe(e),this.isValid()?this[e+"s"]():NaN}function dt(e){return function(){return this.isValid()?this._data[e]:NaN}}var u0=dt("milliseconds"),c0=dt("seconds"),h0=dt("minutes"),d0=dt("hours"),f0=dt("days"),p0=dt("months"),m0=dt("years");function _0(){return de(this.days()/7)}var Oe=Math.round,Ct={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function y0(e,t,r,s,i){return i.relativeTime(t||1,!!r,e,s)}function g0(e,t,r,s){var i=xe(e).abs(),o=Oe(i.as("s")),n=Oe(i.as("m")),a=Oe(i.as("h")),l=Oe(i.as("d")),u=Oe(i.as("M")),c=Oe(i.as("w")),h=Oe(i.as("y")),d=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||n<=1&&["m"]||n<r.m&&["mm",n]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(d=d||c<=1&&["w"]||c<r.w&&["ww",c]),d=d||u<=1&&["M"]||u<r.M&&["MM",u]||h<=1&&["y"]||["yy",h],d[2]=t,d[3]=+e>0,d[4]=s,y0.apply(null,d)}function v0(e){return e===void 0?Oe:typeof e=="function"?(Oe=e,!0):!1}function b0(e,t){return Ct[e]===void 0?!1:t===void 0?Ct[e]:(Ct[e]=t,e==="s"&&(Ct.ss=t-1),!0)}function x0(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=Ct,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},Ct,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),i=this.localeData(),o=g0(this,!r,s,i),r&&(o=i.pastFuture(+this,o)),i.postformat(o)}var vi=Math.abs;function wt(e){return(e>0)-(e<0)||+e}function Zs(){if(!this.isValid())return this.localeData().invalidDate();var e=vi(this._milliseconds)/1e3,t=vi(this._days),r=vi(this._months),s,i,o,n,a=this.asSeconds(),l,u,c,h;return a?(s=de(e/60),i=de(s/60),e%=60,s%=60,o=de(r/12),r%=12,n=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=wt(this._months)!==wt(a)?"-":"",c=wt(this._days)!==wt(a)?"-":"",h=wt(this._milliseconds)!==wt(a)?"-":"",l+"P"+(o?u+o+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(i||s||e?"T":"")+(i?h+i+"H":"")+(s?h+s+"M":"")+(e?h+n+"S":"")):"P0D"}var P=qs.prototype;P.isValid=pm;P.abs=G_;P.add=q_;P.subtract=X_;P.as=K_;P.asMilliseconds=Su;P.asSeconds=J_;P.asMinutes=Q_;P.asHours=e0;P.asDays=t0;P.asWeeks=r0;P.asMonths=s0;P.asQuarters=i0;P.asYears=o0;P.valueOf=n0;P._bubble=Z_;P.clone=a0;P.get=l0;P.milliseconds=u0;P.seconds=c0;P.minutes=h0;P.hours=d0;P.days=f0;P.weeks=_0;P.months=p0;P.years=m0;P.humanize=x0;P.toISOString=Zs;P.toString=Zs;P.toJSON=Zs;P.locale=hu;P.localeData=fu;P.toIsoString=fe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zs);P.lang=du;b("X",0,0,"unix");b("x",0,0,"valueOf");y("x",Ws);y("X",Yf);H("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});H("x",function(e,t,r){r._d=new Date(A(e))});//! moment.js
14
+ m.version="2.30.1";wf(F);m.fn=p;m.min=cm;m.max=hm;m.now=dm;m.utc=Ae;m.unix=B_;m.months=Y_;m.isDate=Fr;m.locale=Ze;m.invalid=Bs;m.duration=xe;m.isMoment=be;m.weekdays=W_;m.parseZone=$_;m.localeData=Ye;m.isDuration=fs;m.monthsShort=U_;m.weekdaysMin=V_;m.defineLocale=Zo;m.updateLocale=$p;m.locales=Yp;m.weekdaysShort=j_;m.normalizeUnits=pe;m.relativeTimeRounding=v0;m.relativeTimeThreshold=b0;m.calendarFormat=Rm;m.prototype=p;m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function la(e,t){Pl(e,t)}function w0(e){Vt.set(e)}const ua={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",forever:"Forever",save:"Save",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent."},"zh-hk":{titleSelfExclusion:"自我排斥",selfExclusionText1:"我們認識到賭博會導致成癮,為了防止這些問題,我們為用戶提供了在一段時間內排除我們網站上所有形式的投注的能力。",selfExclusionText2:"自我排除從您選擇的時間段設置的時間開始生效。 在下方選擇一個時間範圍,然後單擊“確認”。",selfExclusionText3:"在自我排除期間,您將無法訪問您的 帳戶。 在永久自我排除的情況下,只有在書面請求後才能撤銷自我排除,並且只有在首次申請後 6 個月內。 請注意,請求自我排除的另一種方法是聯繫客戶服務,如下所示:",selfExclusionText4:"電子郵件:",duration:"期間:",forever:"永遠",save:"節省",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。"},fr:{titleSelfExclusion:"Auto exclusion",selfExclusionText1:"reconnait que le jeu peut conduire à l'addition et dans notre effort pour prévenir ces problèmes, nous offrons à nos utilisateurs la possibilité d'exclure toutes les formes de paris sur notre site pour une certaine période de temps indéfinie.",selfExclusionText2:`L'auto exclusion prend effet à partir du moment où elle est fixée pour la période que vous choisissez. Sélectionnez une periode ci-dessous puis cliquez sur "Sauvez".`,selfExclusionText3:"Pendant l'auto exclusion ,vous ne pourrez pas accéder à votre compte .dans le cas d'une auto exclusion permanente ,il est seulement possible de révoquer l'auto exclusion sur demande écrit et seulement 6 mois après sa demande initiale. veuillez noter qu'une manière alternative de demander l'auto exclusion est de contacter le service client comme suit:",selfExclusionText4:"E-mail:",duration:"Durée:",forever:"Tout le temps",save:"Sauvez",temporarySelfExclusion:"Votre période d'auto exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto exclusion sera permanente."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText1:"La {operatorname} știm că jocurile de noroc pot provoca dependență și, printre eforturile noastre de a preveni aceste probleme, oferim utilizatorilor posibilitatea de a se exclude de la orice formă de pariere pe o perioadă anume sau chiar nelimitată.",selfExclusionText2:'Auto-excluderea intră în vigoare de la momentul setării, pentru perioada setată. Selectează mai jos o perioadă și apoi apasă pe "Salvează".',selfExclusionText3:"Pe perioada auto-excluderii nu vei putea accesa contul tău {operatorname}. În cazul unei auto-excluderi permanente, aceasta poate fi revocată doar în urma unei solicitări scrise și doar după 6 luni de la aplicarea inițială a acesteia. De asemenea, o altă posibilitate de a solicita auto-excluderea este contactarea Serviciului Clienți după cum urmează:",selfExclusionText4:"E-mail:",duration:"Durată:",forever:"Permanent",save:"Salvează",temporarySelfExclusion:"Perioada de auto-excludere va dura pană la {date} 23:59.",permanentSelfExclusion:"Auto-excluderea este permanentă."},es:{titleSelfExclusion:"Autoexclusición",selfExclusionText1:"Reconocemos que el juego puedo conducir a la adicción y en nuestro esfuerzo por prevenir estos problemas",selfExclusionText2:'La autoexclusición surte efecto desde el momento en que se establece para el periodo que elijas. Seleccione un período de tiempo a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante la autoexclusión, no podrá acceder a su cuenta de {operator}. En el caso de autoexclusión permanente, solo es posible revocar la autoexclusión previa solicitud por escrito y solo 6 meses después de su solicitud inicial. Ten en cuenta que una forma alternativa de solicitar la autoexclusión es ponerse en contacto con el Servicio de Atención al Cliente de la siguiente manera: Correo electrónico:",selfExclusionText4:"Email",duration:"Duración:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Tu periodo de autoexclusión durará hasta el {date} 23:59. .",permanentSelfExclusion:"Tu periodo de autoexclusión será permanente."},pt:{titleSelfExclusion:"Auto-exclusão",selfExclusionText1:"reconhece que o jogo pode levar ao vício e em nosso esforço para evitar esses problemas, oferecemos aos nossos usuários a capacidade de excluir todas as formas de apostas em nosso site por um período de tempo indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período que você escolher. Selecione um período de tempo abaixo e clique em "Guardar".',selfExclusionText3:"Durante a autoexclusão, você não poderá acessar sua conta . No caso de autoexclusão permanente, só é possível revogar a Autoexclusão mediante pedido escrito e apenas 6 meses após a sua aplicação inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",forever:"Para sempre",save:"Guardar",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja",selfExclusionText4:"E-mail:",duration:"Trajanje:",forever:"Trajno",save:"Spremi",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial para evitar problemas associados ao jogo,Oferecemos aos nossos usuários a opção de excluir todas as formas de apostas em nosso site por um período indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é selecionada para o período escolhido. Escolha o período de tempo e selecione "Manter".',selfExclusionText3:'Durante a autoexclusão,"Você terá acesso à sua conta e poderá fazer saques, mas não poderá depositar ou fazer apostas. No caso de autoexclusão permanente",Só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após a sua inscrição inicial. Observe que uma forma alternativa de solicitar a autoexclusão é entrar em contato com nossa equipe de Atendimento ao Cliente da seguinte forma:',selfExclusionText4:"Correio eletrônico:",duration:"Período de tempo:",forever:"Para sempre",save:"Manter",temporarySelfExclusion:"Seu período de autoexclusão durará até {data} 23h59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente"},"es-mx":{titleSelfExclusion:"Auto-exclusión",selfExclusionText1:"Reconocemos que las apuestas pueden ser dañinas así que para prevenir problemas asociados con el juego,ofrecemos a nuestros usuarios la opción de excluir todas las formas de apuestas en nuestra página por un period indeterminado de tiempo.",selfExclusionText3:"Durante la auto-exclusión ,usted tendrá acceso a su cuenta y podrá hacer retiros pero no podrá depositar o hacer apuestas. En el caso de la auto-exclusión permanente,Sólo es posible revocar la auto-exclusión bajo una solicitud escrita y solamente 6 meses después de su aplicación inicial .Por favor tome en cuenta que una forma alternativa de solicitar la auto-exclusión es contactar a nuestro equipo de Servicio al Cliente de la siguiente forma:",selfExclusionText4:"Correo electrónico:",duration:"Periodo de Tiempo:",forever:"Para siempre",save:"Guardar",temporarySelfExclusion:"Su periodo de auto-exclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su periodo de auto-exclusión será permanente"},tr:{titleSelfExclusion:"Kendini dışlama",selfExclusionText1:"Kumarın zararlı olabileceğini biliyoruz ve bu nedenle kumarla ilgili sorunları önlemek için kullanıcılarımıza, sitemizdeki tüm bahis türlerinden süresiz olarak hariç tutma olanağı sunuyoruz.",selfExclusionText2:"Kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren geçerli olur. Aşağıdan bir zaman aralığı seçin ve ardından Onayla'yı tıklayın.",selfExclusionText3:"Kendini ihraç etme sırasında, hesabınıza erişebilecek ve para çekebileceksiniz ancak herhangi bir para yatıramayacak veya bahis koyamayacaksınız. Kalıcı olarak kendini ihraç etme durumunda, Kendini ihraç etmeyi yalnızca yazılı talep üzerine ve ilk başvurudan yalnızca 6 ay sonra iptal etmek mümkündür. Kendini ihraç etme talebinde bulunmanın alternatif bir yolunun Müşteri Hizmetleriyle aşağıdaki şekilde iletişime geçmek olduğunu lütfen unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",forever:"Sonsuza kadar",save:"Kaydetmek",temporarySelfExclusion:"Kendini ihraç etme süreniz {date} 23:59'a kadar sürecek.",permanentSelfExclusion:"Kendini ihraç etme süreniz kalıcı olacaktır."}};/**
15
+ * @license
16
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
17
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
18
+ */function me(e){const t=customElements.get(e.is);if(!t)customElements.define(e.is,e);else{const r=t.version;r&&e.version&&r===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
19
+ * @license
20
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
21
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
22
+ */let E0=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};me(E0);/**
23
+ * @license
24
+ * Copyright 2019 Google LLC
25
+ * SPDX-License-Identifier: BSD-3-Clause
26
+ */const ms=window,nn=ms.ShadowRoot&&(ms.ShadyCSS===void 0||ms.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,an=Symbol(),ca=new WeakMap;let ln=class{constructor(t,r,s){if(this._$cssResult$=!0,s!==an)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(nn&&t===void 0){const s=r!==void 0&&r.length===1;s&&(t=ca.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ca.set(r,t))}return t}toString(){return this.cssText}};const S0=e=>new ln(typeof e=="string"?e:e+"",void 0,an),x=(e,...t)=>{const r=e.length===1?e[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[o+1],e[0]);return new ln(r,e,an)},T0=(e,t)=>{nn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{const s=document.createElement("style"),i=ms.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=r.cssText,e.appendChild(s)})},ha=nn?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const s of t.cssRules)r+=s.cssText;return S0(r)})(e):e;/**
27
+ * @license
28
+ * Copyright 2017 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ */var bi;const Cs=window,da=Cs.trustedTypes,A0=da?da.emptyScript:"",fa=Cs.reactiveElementPolyfillSupport,uo={toAttribute(e,t){switch(t){case Boolean:e=e?A0:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(s){r=null}}return r}},Tu=(e,t)=>t!==e&&(t==t||e==e),xi={attribute:!0,type:String,converter:uo,reflect:!1,hasChanged:Tu},co="finalized";let At=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((r,s)=>{const i=this._$Ep(s,r);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,r=xi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,r);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,r,s){return{get(){return this[r]},set(i){const o=this[t];this[r]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||xi}static finalize(){if(this.hasOwnProperty(co))return!1;this[co]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,s=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of s)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)r.unshift(ha(i))}else t!==void 0&&r.push(ha(t));return r}static _$Ep(t,r){const s=r.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,s;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;const r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return T0(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var s;return(s=r.hostConnected)===null||s===void 0?void 0:s.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var s;return(s=r.hostDisconnected)===null||s===void 0?void 0:s.call(r)})}attributeChangedCallback(t,r,s){this._$AK(t,s)}_$EO(t,r,s=xi){var i;const o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){const n=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:uo).toAttribute(r,s.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,r){var s;const i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=i.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:uo;this._$El=o,this[o]=a.fromAttribute(r,n.type),this._$El=null}}requestUpdate(t,r,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Tu)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return or(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,o)=>this[o]=i),this._$Ei=void 0);let r=!1;const s=this._$AL;try{r=this.shouldUpdate(s),r?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(s)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(s)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,s)=>this._$EO(s,this[s],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};At[co]=!0,At.elementProperties=new Map,At.elementStyles=[],At.shadowRootOptions={mode:"open"},fa==null||fa({ReactiveElement:At}),((bi=Cs.reactiveElementVersions)!==null&&bi!==void 0?bi:Cs.reactiveElementVersions=[]).push("1.6.3");/**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */var wi;const Ds=window,Bt=Ds.trustedTypes,pa=Bt?Bt.createPolicy("lit-html",{createHTML:e=>e}):void 0,ho="$lit$",Ve=`lit$${(Math.random()+"").slice(9)}$`,Au="?"+Ve,C0=`<${Au}>`,ct=document,Ar=()=>ct.createComment(""),Cr=e=>e===null||typeof e!="object"&&typeof e!="function",Cu=Array.isArray,D0=e=>Cu(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ei=`[
35
+ \f\r]`,ur=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ma=/-->/g,_a=/>/g,st=RegExp(`>|${Ei}(?:([^\\s"'>=/]+)(${Ei}*=${Ei}*(?:[^
36
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ya=/'/g,ga=/"/g,Du=/^(?:script|style|textarea|title)$/i,$t=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),va=new WeakMap,ot=ct.createTreeWalker(ct,129,null,!1);function Pu(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pa!==void 0?pa.createHTML(t):t}const P0=(e,t)=>{const r=e.length-1,s=[];let i,o=t===2?"<svg>":"",n=ur;for(let a=0;a<r;a++){const l=e[a];let u,c,h=-1,d=0;for(;d<l.length&&(n.lastIndex=d,c=n.exec(l),c!==null);)d=n.lastIndex,n===ur?c[1]==="!--"?n=ma:c[1]!==void 0?n=_a:c[2]!==void 0?(Du.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=st):c[3]!==void 0&&(n=st):n===st?c[0]===">"?(n=i!=null?i:ur,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?st:c[3]==='"'?ga:ya):n===ga||n===ya?n=st:n===ma||n===_a?n=ur:(n=st,i=void 0);const f=n===st&&e[a+1].startsWith("/>")?" ":"";o+=n===ur?l+C0:h>=0?(s.push(u),l.slice(0,h)+ho+l.slice(h)+Ve+f):l+Ve+(h===-2?(s.push(void 0),a):f)}return[Pu(e,o+(e[r]||"<?>")+(t===2?"</svg>":"")),s]};class Dr{constructor({strings:t,_$litType$:r},s){let i;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[u,c]=P0(t,r);if(this.el=Dr.createElement(u,s),ot.currentNode=this.el.content,r===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(i=ot.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const d of i.getAttributeNames())if(d.endsWith(ho)||d.startsWith(Ve)){const f=c[n++];if(h.push(d),f!==void 0){const _=i.getAttribute(f.toLowerCase()+ho).split(Ve),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:g[2],strings:_,ctor:g[1]==="."?M0:g[1]==="?"?N0:g[1]==="@"?I0:Ks})}else l.push({type:6,index:o})}for(const d of h)i.removeAttribute(d)}if(Du.test(i.tagName)){const h=i.textContent.split(Ve),d=h.length-1;if(d>0){i.textContent=Bt?Bt.emptyScript:"";for(let f=0;f<d;f++)i.append(h[f],Ar()),ot.nextNode(),l.push({type:2,index:++o});i.append(h[d],Ar())}}}else if(i.nodeType===8)if(i.data===Au)l.push({type:2,index:o});else{let h=-1;for(;(h=i.data.indexOf(Ve,h+1))!==-1;)l.push({type:7,index:o}),h+=Ve.length-1}o++}}static createElement(t,r){const s=ct.createElement("template");return s.innerHTML=t,s}}function Yt(e,t,r=e,s){var i,o,n,a;if(t===$t)return t;let l=s!==void 0?(i=r._$Co)===null||i===void 0?void 0:i[s]:r._$Cl;const u=Cr(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),u===void 0?l=void 0:(l=new u(e),l._$AT(e,r,s)),s!==void 0?((n=(a=r)._$Co)!==null&&n!==void 0?n:a._$Co=[])[s]=l:r._$Cl=l),l!==void 0&&(t=Yt(e,l._$AS(e,t.values),l,s)),t}class k0{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;const{el:{content:s},parts:i}=this._$AD,o=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:ct).importNode(s,!0);ot.currentNode=o;let n=ot.nextNode(),a=0,l=0,u=i[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Ur(n,n.nextSibling,this,t):u.type===1?c=new u.ctor(n,u.name,u.strings,this,t):u.type===6&&(c=new L0(n,this,t)),this._$AV.push(c),u=i[++l]}a!==(u==null?void 0:u.index)&&(n=ot.nextNode(),a++)}return ot.currentNode=ct,o}v(t){let r=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,r),r+=s.strings.length-2):s._$AI(t[r])),r++}}class Ur{constructor(t,r,s,i){var o;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=s,this.options=i,this._$Cp=(o=i==null?void 0:i.isConnected)===null||o===void 0||o}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Yt(this,t,r),Cr(t)?t===Z||t==null||t===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==$t&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):D0(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Z&&Cr(this._$AH)?this._$AA.nextSibling.data=t:this.$(ct.createTextNode(t)),this._$AH=t}g(t){var r;const{values:s,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Dr.createElement(Pu(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===o)this._$AH.v(s);else{const n=new k0(o,this),a=n.u(this.options);n.v(s),this.$(a),this._$AH=n}}_$AC(t){let r=va.get(t.strings);return r===void 0&&va.set(t.strings,r=new Dr(t)),r}T(t){Cu(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let s,i=0;for(const o of t)i===r.length?r.push(s=new Ur(this.k(Ar()),this.k(Ar()),this,this.options)):s=r[i],s._$AI(o),i++;i<r.length&&(this._$AR(s&&s._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,r);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var r;this._$AM===void 0&&(this._$Cp=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}}class Ks{constructor(t,r,s,i,o){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=Yt(this,t,r,0),n=!Cr(t)||t!==this._$AH&&t!==$t,n&&(this._$AH=t);else{const a=t;let l,u;for(t=o[0],l=0;l<o.length-1;l++)u=Yt(this,a[s+l],r,l),u===$t&&(u=this._$AH[l]),n||(n=!Cr(u)||u!==this._$AH[l]),u===Z?t=Z:t!==Z&&(t+=(u!=null?u:"")+o[l+1]),this._$AH[l]=u}n&&!i&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class M0 extends Ks{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const O0=Bt?Bt.emptyScript:"";class N0 extends Ks{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,O0):this.element.removeAttribute(this.name)}}class I0 extends Ks{constructor(t,r,s,i,o){super(t,r,s,i,o),this.type=5}_$AI(t,r=this){var s;if((t=(s=Yt(this,t,r,0))!==null&&s!==void 0?s:Z)===$t)return;const i=this._$AH,o=t===Z&&i!==Z||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==Z&&(i===Z||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,s;typeof this._$AH=="function"?this._$AH.call((s=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class L0{constructor(t,r,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Yt(this,t)}}const ba=Ds.litHtmlPolyfillSupport;ba==null||ba(Dr,Ur),((wi=Ds.litHtmlVersions)!==null&&wi!==void 0?wi:Ds.litHtmlVersions=[]).push("2.8.0");const H0=(e,t,r)=>{var s,i;const o=(s=r==null?void 0:r.renderBefore)!==null&&s!==void 0?s:t;let n=o._$litPart$;if(n===void 0){const a=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=n=new Ur(t.insertBefore(Ar(),a),a,void 0,r!=null?r:{})}return n._$AI(e),n};/**
37
+ * @license
38
+ * Copyright 2017 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ */var Si,Ti;class _s extends At{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;const s=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=s.firstChild),s}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=H0(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return $t}}_s.finalized=!0,_s._$litElement$=!0,(Si=globalThis.litElementHydrateSupport)===null||Si===void 0||Si.call(globalThis,{LitElement:_s});const xa=globalThis.litElementPolyfillSupport;xa==null||xa({LitElement:_s});((Ti=globalThis.litElementVersions)!==null&&Ti!==void 0?Ti:globalThis.litElementVersions=[]).push("3.3.3");/**
41
+ * @license
42
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
43
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
44
+ */const R0=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(r,s,i){super.attributeChangedCallback(r,s,i),r==="theme"&&this._set_theme(i)}};/**
45
+ * @license
46
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
47
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
48
+ */const ku=[];function Mu(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function z0(e){return Mu(customElements.get(e))}function F0(e=[]){return[e].flat(1/0).filter(t=>t instanceof ln?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function W(e,t,r={}){e&&z0(e)&&console.warn(`The custom element definition for "${e}"
49
+ was finalized before a style module was registered.
50
+ Make sure to add component specific style modules before
51
+ importing the corresponding custom element.`),t=F0(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,r):ku.push({themeFor:e,styles:t,include:r.include,moduleId:r.moduleId})}function fo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ku}function B0(e,t){return(e||"").split(" ").some(r=>new RegExp(`^${r.split("*").join(".*")}$`,"u").test(t))}function $0(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function Ou(e){const t=[];return e.include&&[].concat(e.include).forEach(r=>{const s=fo().find(i=>i.moduleId===r);s?t.push(...Ou(s),...s.styles):console.warn(`Included moduleId ${r} not found in style registry`)},e.styles),t}function Y0(e,t){const r=document.createElement("style");r.innerHTML=e.map(s=>s.cssText).join(`
52
+ `),t.content.appendChild(r)}function U0(e){const t=`${e}-default-theme`,r=fo().filter(s=>s.moduleId!==t&&B0(s.themeFor,e)).map(s=>Qr(Jr({},s),{styles:[...Ou(s),...s.styles],includePriority:$0(s.moduleId)})).sort((s,i)=>i.includePriority-s.includePriority);return r.length>0?r:fo().filter(s=>s.moduleId===t)}const ft=e=>class extends R0(e){static finalize(){if(super.finalize(),this.elementStyles)return;const r=this.prototype._template;!r||Mu(this)||Y0(this.getStylesForThis(),r)}static finalizeStyles(r){const s=this.getStylesForThis();return r?[...super.finalizeStyles(r),...s]:s}static getStylesForThis(){const r=Object.getPrototypeOf(this.prototype),s=(r?r.constructor.__themes:[])||[];this.__themes=[...s,...U0(this.is)];const i=this.__themes.flatMap(o=>o.styles);return i.filter((o,n)=>n===i.lastIndexOf(o))}};/**
53
+ * @license
54
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
55
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
56
+ */const un=(e,...t)=>{const r=document.createElement("style");r.id=e,r.textContent=t.map(s=>s.toString()).join(`
57
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",r)},Js=(e,...t)=>{un(`lumo-${e}`,t)};/**
58
+ * @license
59
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
60
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
61
+ */const W0=x`
62
+ :host {
63
+ /* Base (background) */
64
+ --lumo-base-color: #fff;
65
+
66
+ /* Tint */
67
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
68
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
69
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
70
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
71
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
72
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
73
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
74
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
75
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
76
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
77
+ --lumo-tint: #fff;
78
+
79
+ /* Shade */
80
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
81
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
82
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
83
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
84
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
85
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
86
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
87
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
88
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
89
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
90
+ --lumo-shade: hsl(214, 35%, 15%);
91
+
92
+ /* Contrast */
93
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
94
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
95
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
96
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
97
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
98
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
99
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
100
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
101
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
102
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
103
+ --lumo-contrast: var(--lumo-shade);
104
+
105
+ /* Text */
106
+ --lumo-header-text-color: var(--lumo-contrast);
107
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
108
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
109
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
110
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
111
+
112
+ /* Primary */
113
+ --lumo-primary-color: hsl(214, 100%, 48%);
114
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
115
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
116
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
117
+ --lumo-primary-contrast-color: #fff;
118
+
119
+ /* Error */
120
+ --lumo-error-color: hsl(3, 85%, 48%);
121
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
122
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
123
+ --lumo-error-text-color: hsl(3, 89%, 42%);
124
+ --lumo-error-contrast-color: #fff;
125
+
126
+ /* Success */
127
+ --lumo-success-color: hsl(145, 72%, 30%);
128
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
129
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
130
+ --lumo-success-text-color: hsl(145, 85%, 25%);
131
+ --lumo-success-contrast-color: #fff;
132
+
133
+ /* Warning */
134
+ --lumo-warning-color: hsl(48, 100%, 50%);
135
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
136
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
137
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
138
+ }
139
+
140
+ /* forced-colors mode adjustments */
141
+ @media (forced-colors: active) {
142
+ html {
143
+ --lumo-disabled-text-color: GrayText;
144
+ }
145
+ }
146
+ `;Js("color-props",W0);const j0=x`
147
+ [theme~='dark'] {
148
+ /* Base (background) */
149
+ --lumo-base-color: hsl(214, 35%, 21%);
150
+
151
+ /* Tint */
152
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
153
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
154
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
155
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
156
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
157
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
158
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
159
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
160
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
161
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
162
+ --lumo-tint: hsl(214, 100%, 98%);
163
+
164
+ /* Shade */
165
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
166
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
167
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
168
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
169
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
170
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
171
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
172
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
173
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
174
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
175
+ --lumo-shade: hsl(214, 33%, 13%);
176
+
177
+ /* Contrast */
178
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
179
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
180
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
181
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
182
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
183
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
184
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
185
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
186
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
187
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
188
+ --lumo-contrast: var(--lumo-tint);
189
+
190
+ /* Text */
191
+ --lumo-header-text-color: var(--lumo-contrast);
192
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
193
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
194
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
195
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
196
+
197
+ /* Primary */
198
+ --lumo-primary-color: hsl(214, 90%, 48%);
199
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
200
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
201
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
202
+ --lumo-primary-contrast-color: #fff;
203
+
204
+ /* Error */
205
+ --lumo-error-color: hsl(3, 79%, 49%);
206
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
207
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
208
+ --lumo-error-text-color: hsl(3, 100%, 80%);
209
+
210
+ /* Success */
211
+ --lumo-success-color: hsl(145, 72%, 30%);
212
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
213
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
214
+ --lumo-success-text-color: hsl(145, 85%, 46%);
215
+
216
+ /* Warning */
217
+ --lumo-warning-color: hsl(43, 100%, 48%);
218
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
219
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
220
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
221
+ }
222
+
223
+ html {
224
+ color: var(--lumo-body-text-color);
225
+ background-color: var(--lumo-base-color);
226
+ color-scheme: light;
227
+ }
228
+
229
+ [theme~='dark'] {
230
+ color: var(--lumo-body-text-color);
231
+ background-color: var(--lumo-base-color);
232
+ color-scheme: dark;
233
+ }
234
+
235
+ h1,
236
+ h2,
237
+ h3,
238
+ h4,
239
+ h5,
240
+ h6 {
241
+ color: var(--lumo-header-text-color);
242
+ }
243
+
244
+ a:where(:any-link) {
245
+ color: var(--lumo-primary-text-color);
246
+ }
247
+
248
+ a:not(:any-link) {
249
+ color: var(--lumo-disabled-text-color);
250
+ }
251
+
252
+ blockquote {
253
+ color: var(--lumo-secondary-text-color);
254
+ }
255
+
256
+ code,
257
+ pre {
258
+ background-color: var(--lumo-contrast-10pct);
259
+ border-radius: var(--lumo-border-radius-m);
260
+ }
261
+ `;W("",j0,{moduleId:"lumo-color"});/**
262
+ * @license
263
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
264
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
265
+ */const V0=x`
266
+ :host {
267
+ --lumo-size-xs: 1.625rem;
268
+ --lumo-size-s: 1.875rem;
269
+ --lumo-size-m: 2.25rem;
270
+ --lumo-size-l: 2.75rem;
271
+ --lumo-size-xl: 3.5rem;
272
+
273
+ /* Icons */
274
+ --lumo-icon-size-s: 1.25em;
275
+ --lumo-icon-size-m: 1.5em;
276
+ --lumo-icon-size-l: 2.25em;
277
+ /* For backwards compatibility */
278
+ --lumo-icon-size: var(--lumo-icon-size-m);
279
+ }
280
+ `;Js("sizing-props",V0);/**
281
+ * @license
282
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
283
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
284
+ */const G0=x`
285
+ :host {
286
+ /* Border radius */
287
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
288
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
289
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
290
+
291
+ /* Shadow */
292
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
293
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
294
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
295
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
296
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
297
+
298
+ /* Clickable element cursor */
299
+ --lumo-clickable-cursor: default;
300
+ }
301
+ `;x`
302
+ html {
303
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
304
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
305
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
306
+ }
307
+ `;Js("style-props",G0);/**
308
+ * @license
309
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
310
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
311
+ */const q0=x`
312
+ :host {
313
+ /* prettier-ignore */
314
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
315
+
316
+ /* Font sizes */
317
+ --lumo-font-size-xxs: 0.75rem;
318
+ --lumo-font-size-xs: 0.8125rem;
319
+ --lumo-font-size-s: 0.875rem;
320
+ --lumo-font-size-m: 1rem;
321
+ --lumo-font-size-l: 1.125rem;
322
+ --lumo-font-size-xl: 1.375rem;
323
+ --lumo-font-size-xxl: 1.75rem;
324
+ --lumo-font-size-xxxl: 2.5rem;
325
+
326
+ /* Line heights */
327
+ --lumo-line-height-xs: 1.25;
328
+ --lumo-line-height-s: 1.375;
329
+ --lumo-line-height-m: 1.625;
330
+ }
331
+ `,X0=x`
332
+ body,
333
+ :host {
334
+ font-family: var(--lumo-font-family);
335
+ font-size: var(--lumo-font-size-m);
336
+ line-height: var(--lumo-line-height-m);
337
+ -webkit-text-size-adjust: 100%;
338
+ -webkit-font-smoothing: antialiased;
339
+ -moz-osx-font-smoothing: grayscale;
340
+ }
341
+
342
+ small,
343
+ [theme~='font-size-s'] {
344
+ font-size: var(--lumo-font-size-s);
345
+ line-height: var(--lumo-line-height-s);
346
+ }
347
+
348
+ [theme~='font-size-xs'] {
349
+ font-size: var(--lumo-font-size-xs);
350
+ line-height: var(--lumo-line-height-xs);
351
+ }
352
+
353
+ :where(h1, h2, h3, h4, h5, h6) {
354
+ font-weight: 600;
355
+ line-height: var(--lumo-line-height-xs);
356
+ margin-block: 0;
357
+ }
358
+
359
+ :where(h1) {
360
+ font-size: var(--lumo-font-size-xxxl);
361
+ }
362
+
363
+ :where(h2) {
364
+ font-size: var(--lumo-font-size-xxl);
365
+ }
366
+
367
+ :where(h3) {
368
+ font-size: var(--lumo-font-size-xl);
369
+ }
370
+
371
+ :where(h4) {
372
+ font-size: var(--lumo-font-size-l);
373
+ }
374
+
375
+ :where(h5) {
376
+ font-size: var(--lumo-font-size-m);
377
+ }
378
+
379
+ :where(h6) {
380
+ font-size: var(--lumo-font-size-xs);
381
+ text-transform: uppercase;
382
+ letter-spacing: 0.03em;
383
+ }
384
+
385
+ p,
386
+ blockquote {
387
+ margin-top: 0.5em;
388
+ margin-bottom: 0.75em;
389
+ }
390
+
391
+ a {
392
+ text-decoration: none;
393
+ }
394
+
395
+ a:where(:any-link):hover {
396
+ text-decoration: underline;
397
+ }
398
+
399
+ hr {
400
+ display: block;
401
+ align-self: stretch;
402
+ height: 1px;
403
+ border: 0;
404
+ padding: 0;
405
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
406
+ background-color: var(--lumo-contrast-10pct);
407
+ }
408
+
409
+ blockquote {
410
+ border-left: 2px solid var(--lumo-contrast-30pct);
411
+ }
412
+
413
+ b,
414
+ strong {
415
+ font-weight: 600;
416
+ }
417
+
418
+ /* RTL specific styles */
419
+ blockquote[dir='rtl'] {
420
+ border-left: none;
421
+ border-right: 2px solid var(--lumo-contrast-30pct);
422
+ }
423
+ `;W("",X0,{moduleId:"lumo-typography"});Js("typography-props",q0);W("vaadin-input-container",x`
424
+ :host {
425
+ background-color: var(--lumo-contrast-10pct);
426
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
427
+ font-weight: 500;
428
+ line-height: 1;
429
+ position: relative;
430
+ cursor: text;
431
+ box-sizing: border-box;
432
+ border-radius:
433
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
434
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
435
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
436
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
437
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
438
+ /* Fallback */
439
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
440
+ /* Default field border color */
441
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
442
+ }
443
+
444
+ :host([dir='rtl']) {
445
+ border-radius:
446
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
447
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
448
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
449
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
450
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
451
+ }
452
+
453
+ /* Used for hover and activation effects */
454
+ :host::after {
455
+ content: '';
456
+ position: absolute;
457
+ inset: 0;
458
+ border-radius: inherit;
459
+ pointer-events: none;
460
+ background-color: var(--lumo-contrast-50pct);
461
+ opacity: 0;
462
+ transition: transform 0.15s, opacity 0.2s;
463
+ transform-origin: 100% 0;
464
+ }
465
+
466
+ ::slotted(:not([slot$='fix'])) {
467
+ cursor: inherit;
468
+ min-height: var(--lumo-text-field-size, var(--lumo-size-m));
469
+ padding: 0 0.25em;
470
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
471
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
472
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
473
+ }
474
+
475
+ /* Read-only */
476
+ :host([readonly]) {
477
+ color: var(--lumo-secondary-text-color);
478
+ background-color: transparent;
479
+ cursor: default;
480
+ }
481
+
482
+ :host([readonly])::after {
483
+ background-color: transparent;
484
+ opacity: 1;
485
+ border: 1px dashed var(--lumo-contrast-30pct);
486
+ }
487
+
488
+ /* Disabled */
489
+ :host([disabled]) {
490
+ background-color: var(--lumo-contrast-5pct);
491
+ }
492
+
493
+ :host([disabled]) ::slotted(*) {
494
+ color: var(--lumo-disabled-text-color);
495
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
496
+ }
497
+
498
+ /* Invalid */
499
+ :host([invalid]) {
500
+ background-color: var(--lumo-error-color-10pct);
501
+ }
502
+
503
+ :host([invalid])::after {
504
+ background-color: var(--lumo-error-color-50pct);
505
+ }
506
+
507
+ /* Slotted icons */
508
+ ::slotted(vaadin-icon) {
509
+ color: var(--lumo-contrast-60pct);
510
+ width: var(--lumo-icon-size-m);
511
+ height: var(--lumo-icon-size-m);
512
+ }
513
+
514
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
515
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
516
+ padding: 0.25em;
517
+ box-sizing: border-box !important;
518
+ }
519
+
520
+ /* Text align */
521
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
522
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
523
+ }
524
+
525
+ @-moz-document url-prefix() {
526
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
527
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
528
+ }
529
+ }
530
+
531
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
532
+ text-align: start;
533
+ --_lumo-text-field-overflow-mask-image: none;
534
+ }
535
+
536
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
537
+ text-align: center;
538
+ --_lumo-text-field-overflow-mask-image: none;
539
+ }
540
+
541
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
542
+ text-align: end;
543
+ --_lumo-text-field-overflow-mask-image: none;
544
+ }
545
+
546
+ @-moz-document url-prefix() {
547
+ /* Firefox is smart enough to align overflowing text to right */
548
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
549
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
550
+ }
551
+ }
552
+
553
+ @-moz-document url-prefix() {
554
+ /* Firefox is smart enough to align overflowing text to right */
555
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
556
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
557
+ }
558
+ }
559
+
560
+ /* RTL specific styles */
561
+ :host([dir='rtl'])::after {
562
+ transform-origin: 0% 0;
563
+ }
564
+
565
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
566
+ --_lumo-text-field-overflow-mask-image: none;
567
+ }
568
+
569
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
570
+ --_lumo-text-field-overflow-mask-image: none;
571
+ }
572
+
573
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
574
+ --_lumo-text-field-overflow-mask-image: none;
575
+ }
576
+
577
+ @-moz-document url-prefix() {
578
+ /* Firefox is smart enough to align overflowing text to right */
579
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
580
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
581
+ }
582
+ }
583
+
584
+ @-moz-document url-prefix() {
585
+ /* Firefox is smart enough to align overflowing text to right */
586
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
587
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
588
+ }
589
+ }
590
+ `,{moduleId:"lumo-input-container"});/**
591
+ @license
592
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
593
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
594
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
595
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
596
+ Code distributed by Google as part of the polymer project is also
597
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
598
+ */window.JSCompiler_renameProperty=function(e,t){return e};/**
599
+ @license
600
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
601
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
602
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
603
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
604
+ Code distributed by Google as part of the polymer project is also
605
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
606
+ */let Z0=/(url\()([^)]*)(\))/g,K0=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,is,ae;function gr(e,t){if(e&&K0.test(e)||e==="//")return e;if(is===void 0){is=!1;try{const r=new URL("b","http://a");r.pathname="c%20d",is=r.href==="http://a/c%20d"}catch(r){}}if(t||(t=document.baseURI||window.location.href),is)try{return new URL(e,t).href}catch(r){return e}return ae||(ae=document.implementation.createHTMLDocument("temp"),ae.base=ae.createElement("base"),ae.head.appendChild(ae.base),ae.anchor=ae.createElement("a"),ae.body.appendChild(ae.anchor)),ae.base.href=t,ae.anchor.href=e,ae.anchor.href||e}function cn(e,t){return e.replace(Z0,function(r,s,i,o){return s+"'"+gr(i.replace(/["']/g,""),t)+"'"+o})}function hn(e){return e.substring(0,e.lastIndexOf("/")+1)}/**
607
+ @license
608
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
609
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
610
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
611
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
612
+ Code distributed by Google as part of the polymer project is also
613
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
614
+ */const Nu=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const J0=Nu&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let Q0=window.Polymer&&window.Polymer.rootPath||hn(document.baseURI||window.location.href),Ps=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let ks=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ey=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Iu=window.Polymer&&window.Polymer.legacyOptimizations||!1,Lu=window.Polymer&&window.Polymer.legacyWarnings||!1,ty=window.Polymer&&window.Polymer.syncInitialRender||!1,po=window.Polymer&&window.Polymer.legacyUndefined||!1,ry=window.Polymer&&window.Polymer.orderedComputed||!1,wa=window.Polymer&&window.Polymer.removeNestedTemplates||!1,sy=window.Polymer&&window.Polymer.fastDomIf||!1,Ea=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let iy=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
615
+ @license
616
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
617
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
618
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
619
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
620
+ Code distributed by Google as part of the polymer project is also
621
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
622
+ */let oy=0;const q=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let r=oy++;function s(i){let o=i.__mixinSet;if(o&&o[r])return i;let n=t,a=n.get(i);if(!a){a=e(i),n.set(i,a);let l=Object.create(a.__mixinSet||o||null);l[r]=!0,a.__mixinSet=l}return a}return s};/**
623
+ @license
624
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
625
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
626
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
627
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
628
+ Code distributed by Google as part of the polymer project is also
629
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
630
+ */let dn={},Hu={};function Sa(e,t){dn[e]=Hu[e.toLowerCase()]=t}function Ta(e){return dn[e]||Hu[e.toLowerCase()]}function ny(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Pr extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,r){if(t){let s=Ta(t);return s&&r?s.querySelector(r):s}return null}attributeChangedCallback(t,r,s,i){r!==s&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,r=gr(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=hn(r)}return this.__assetpath}register(t){if(t=t||this.id,t){if(ks&&Ta(t)!==void 0)throw Sa(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Sa(t,this),ny(this)}}}Pr.prototype.modules=dn;customElements.define("dom-module",Pr);/**
631
+ @license
632
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
633
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
634
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
635
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
636
+ Code distributed by Google as part of the polymer project is also
637
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
638
+ */const ay="link[rel=import][type~=css]",ly="include",Aa="shady-unscoped";function Ru(e){return Pr.import(e)}function Ca(e){let t=e.body?e.body:e;const r=cn(t.textContent,e.baseURI),s=document.createElement("style");return s.textContent=r,s}function uy(e){const t=e.trim().split(/\s+/),r=[];for(let s=0;s<t.length;s++)r.push(...cy(t[s]));return r}function cy(e){const t=Ru(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(t._styles===void 0){const r=[];r.push(...Fu(t));const s=t.querySelector("template");s&&r.push(...zu(s,t.assetpath)),t._styles=r}return t._styles}function zu(e,t){if(!e._styles){const r=[],s=e.content.querySelectorAll("style");for(let i=0;i<s.length;i++){let o=s[i],n=o.getAttribute(ly);n&&r.push(...uy(n).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(o.textContent=cn(o.textContent,t)),r.push(o)}e._styles=r}return e._styles}function hy(e){let t=Ru(e);return t?Fu(t):[]}function Fu(e){const t=[],r=e.querySelectorAll(ay);for(let s=0;s<r.length;s++){let i=r[s];if(i.import){const o=i.import,n=i.hasAttribute(Aa);if(n&&!o._unscopedStyle){const a=Ca(o);a.setAttribute(Aa,""),o._unscopedStyle=a}else o._style||(o._style=Ca(o));t.push(n?o._unscopedStyle:o._style)}}return t}/**
639
+ @license
640
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
641
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
642
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
643
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
644
+ Code distributed by Google as part of the polymer project is also
645
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
646
+ */const K=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e;/**
647
+ @license
648
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
649
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
650
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
651
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
652
+ Code distributed by Google as part of the polymer project is also
653
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
654
+ */function mo(e){return e.indexOf(".")>=0}function pt(e){let t=e.indexOf(".");return t===-1?e:e.slice(0,t)}function Bu(e,t){return e.indexOf(t+".")===0}function kr(e,t){return t.indexOf(e+".")===0}function Mr(e,t,r){return t+r.slice(e.length)}function dy(e,t){return e===t||Bu(e,t)||kr(e,t)}function pr(e){if(Array.isArray(e)){let t=[];for(let r=0;r<e.length;r++){let s=e[r].toString().split(".");for(let i=0;i<s.length;i++)t.push(s[i])}return t.join(".")}else return e}function $u(e){return Array.isArray(e)?pr(e).split("."):e.toString().split(".")}function ie(e,t,r){let s=e,i=$u(t);for(let o=0;o<i.length;o++){if(!s)return;let n=i[o];s=s[n]}return r&&(r.path=i.join(".")),s}function Da(e,t,r){let s=e,i=$u(t),o=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(s=s[a],!s)return}s[o]=r}else s[t]=r;return i.join(".")}/**
655
+ @license
656
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
657
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
658
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
659
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
660
+ Code distributed by Google as part of the polymer project is also
661
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
662
+ */const Ms={},fy=/-[a-z]/g,py=/([A-Z])/g;function Yu(e){return Ms[e]||(Ms[e]=e.indexOf("-")<0?e:e.replace(fy,t=>t[1].toUpperCase()))}function Qs(e){return Ms[e]||(Ms[e]=e.replace(py,"-$1").toLowerCase())}/**
663
+ @license
664
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
665
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
666
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
667
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
668
+ Code distributed by Google as part of the polymer project is also
669
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
670
+ */let my=0,Uu=0,Nt=[],_y=0,_o=!1,Wu=document.createTextNode("");new window.MutationObserver(yy).observe(Wu,{characterData:!0});function yy(){_o=!1;const e=Nt.length;for(let t=0;t<e;t++){let r=Nt[t];if(r)try{r()}catch(s){setTimeout(()=>{throw s})}}Nt.splice(0,e),Uu+=e}const gy={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},ju={run(e){return _o||(_o=!0,Wu.textContent=_y++),Nt.push(e),my++},cancel(e){const t=e-Uu;if(t>=0){if(!Nt[t])throw new Error("invalid async handle: "+e);Nt[t]=null}}};/**
671
+ @license
672
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
673
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
674
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
675
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
676
+ Code distributed by Google as part of the polymer project is also
677
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
678
+ */const vy=ju,Vu=q(e=>{class t extends e{static createProperties(s){const i=this.prototype;for(let o in s)o in i||i._createPropertyAccessor(o)}static attributeNameForProperty(s){return s.toLowerCase()}static typeForProperty(s){}_createPropertyAccessor(s,i){this._addPropertyToAttributeMap(s),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[s]||(this.__dataHasAccessor[s]=!0,this._definePropertyAccessor(s,i))}_addPropertyToAttributeMap(s){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[s];return i||(i=this.constructor.attributeNameForProperty(s),this.__dataAttributes[i]=s),i}_definePropertyAccessor(s,i){Object.defineProperty(this,s,{get(){return this.__data[s]},set:i?function(){}:function(o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let s in this.__dataHasAccessor)this.hasOwnProperty(s)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[s]=this[s],delete this[s])}_initializeInstanceProperties(s){Object.assign(this,s)}_setProperty(s,i){this._setPendingProperty(s,i)&&this._invalidateProperties()}_getProperty(s){return this.__data[s]}_setPendingProperty(s,i,o){let n=this.__data[s],a=this._shouldPropertyChange(s,i,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(s in this.__dataOld)&&(this.__dataOld[s]=n),this.__data[s]=i,this.__dataPending[s]=i),a}_isPropertyPending(s){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(s))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,vy.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const s=this.__data,i=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(s,i,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(s,i,o)),this.__dataCounter--}_shouldPropertiesChange(s,i,o){return!!i}_propertiesChanged(s,i,o){}_shouldPropertyChange(s,i,o){return o!==i&&(o===o||i===i)}attributeChangedCallback(s,i,o,n){i!==o&&this._attributeToProperty(s,o),super.attributeChangedCallback&&super.attributeChangedCallback(s,i,o,n)}_attributeToProperty(s,i,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[s]||s;this[a]=this._deserializeValue(i,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(s,i,o){this.__serializing=!0,o=arguments.length<3?this[s]:o,this._valueToNodeAttribute(this,o,i||this.constructor.attributeNameForProperty(s)),this.__serializing=!1}_valueToNodeAttribute(s,i,o){const n=this._serializeValue(i);(o==="class"||o==="name"||o==="slot")&&(s=K(s)),n===void 0?s.removeAttribute(o):s.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(s){switch(typeof s){case"boolean":return s?"":void 0;default:return s!=null?s.toString():void 0}}_deserializeValue(s,i){switch(i){case Boolean:return s!==null;case Number:return Number(s);default:return s}}}return t});/**
679
+ @license
680
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
681
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
682
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
683
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
684
+ Code distributed by Google as part of the polymer project is also
685
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
686
+ */const Gu={};let os=HTMLElement.prototype;for(;os;){let e=Object.getOwnPropertyNames(os);for(let t=0;t<e.length;t++)Gu[e[t]]=!0;os=Object.getPrototypeOf(os)}const by=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function xy(e,t){if(!Gu[t]){let r=e[t];r!==void 0&&(e.__data?e._setPendingProperty(t,r):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=r))}}const wy=q(e=>{const t=Vu(e);class r extends t{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let o=0;o<i.length;o++)this.prototype._createPropertyAccessor(Yu(i[o]))}static attributeNameForProperty(i){return Qs(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let o in i)this._setProperty(o,i[o])}_ensureAttribute(i,o){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,o,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(by(i))return i;try{return JSON.stringify(i)}catch(o){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,o){let n;switch(o){case Object:try{n=JSON.parse(i)}catch(a){n=i}break;case Array:try{n=JSON.parse(i)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${i}`)}break;case Date:n=isNaN(i)?String(i):Number(i),n=new Date(n);break;default:n=super._deserializeValue(i,o);break}return n}_definePropertyAccessor(i,o){xy(this,i),super._definePropertyAccessor(i,o)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return r});/**
687
+ @license
688
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
689
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
690
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
691
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
692
+ Code distributed by Google as part of the polymer project is also
693
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
694
+ */const Ey={"dom-if":!0,"dom-repeat":!0};let Pa=!1,ka=!1;function Sy(){if(!Pa){Pa=!0;const e=document.createElement("textarea");e.placeholder="a",ka=e.placeholder===e.textContent}return ka}function Ty(e){Sy()&&e.localName==="textarea"&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const Ay=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,r,s)=>{const i=r.getAttribute(s);if(e&&s.startsWith("on-")){t.setAttribute(s,e.createScript(i,s));return}t.setAttribute(s,i)}})();function Cy(e){let t=e.getAttribute("is");if(t&&Ey[t]){let r=e;for(r.removeAttribute("is"),e=r.ownerDocument.createElement(t),r.parentNode.replaceChild(e,r),e.appendChild(r);r.attributes.length;){const{name:s}=r.attributes[0];Ay(e,r,s),r.removeAttribute(s)}}return e}function qu(e,t){let r=t.parentInfo&&qu(e,t.parentInfo);if(r){for(let s=r.firstChild,i=0;s;s=s.nextSibling)if(t.parentIndex===i++)return s}else return e}function Dy(e,t,r,s){s.id&&(t[s.id]=r)}function Py(e,t,r){if(r.events&&r.events.length)for(let s=0,i=r.events,o;s<i.length&&(o=i[s]);s++)e._addMethodEventListenerToNode(t,o.name,o.value,e)}function ky(e,t,r,s){r.templateInfo&&(t._templateInfo=r.templateInfo,t._parentTemplateInfo=s)}function My(e,t,r){return e=e._methodHost||e,function(i){e[r]?e[r](i,i.detail):console.warn("listener method `"+r+"` not defined")}}const Oy=q(e=>{class t extends e{static _parseTemplate(s,i){if(!s._templateInfo){let o=s._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!i,o.stripWhiteSpace=i&&i.stripWhiteSpace||s.hasAttribute&&s.hasAttribute("strip-whitespace"),this._parseTemplateContent(s,o,{parent:null})}return s._templateInfo}static _parseTemplateContent(s,i,o){return this._parseTemplateNode(s.content,i,o)}static _parseTemplateNode(s,i,o){let n=!1,a=s;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,o)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),Ty(a),a.firstChild&&this._parseTemplateChildNodes(a,i,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,o)||n),n||o.noted}static _parseTemplateChildNodes(s,i,o){if(!(s.localName==="script"||s.localName==="style"))for(let n=s.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Cy(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,s.removeChild(c),c=l;if(i.stripWhiteSpace&&!n.textContent.trim()){s.removeChild(n);continue}}let u={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(s,i,o){let n=s,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(s,i,o){let n=!1,a=Array.from(s.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(s,i,o,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(s,i,o,n,a){return n.slice(0,3)==="on-"?(s.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(s){let i=s._templateInfo;return i&&i.content||s.content}_stampTemplate(s,i){s&&!s.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(s),i=i||this.constructor._parseTemplate(s);let o=i.nodeInfoList,n=i.content||s.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let u=0,c=o.length,h;u<c&&(h=o[u]);u++){let d=l[u]=qu(a,h);Dy(this,a.$,d,h),ky(this,d,h,i),Py(this,d,h)}return a=a,a}_addMethodEventListenerToNode(s,i,o,n){n=n||s;let a=My(n,i,o);return this._addEventListenerToNode(s,i,a),a}_addEventListenerToNode(s,i,o){s.addEventListener(i,o)}_removeEventListenerFromNode(s,i,o){s.removeEventListener(i,o)}}return t});/**
695
+ * @fileoverview
696
+ * @suppress {checkPrototypalTypes}
697
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
698
+ * This code may only be used under the BSD style license found at
699
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
700
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
701
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
702
+ * Google as part of the polymer project is also subject to an additional IP
703
+ * rights grant found at http://polymer.github.io/PATENTS.txt
704
+ */let Or=0;const Nr=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Xu="__computeInfo",Ny=/[A-Z]/;function Ai(e,t,r){let s=e[t];if(!s)s=e[t]={};else if(!e.hasOwnProperty(t)&&(s=e[t]=Object.create(e[t]),r))for(let i in s){let o=s[i],n=s[i]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return s}function mr(e,t,r,s,i,o){if(t){let n=!1;const a=Or++;for(let l in r){let u=i?pt(l):l,c=t[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!i||fn(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(e,l,r,s,f.info,i,o),n=!0)}return n}return!1}function Iy(e,t,r,s,i,o,n,a){let l=!1,u=n?pt(s):s,c=t[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==r)&&(!n||fn(s,f.trigger))&&(f.info&&(f.info.lastRun=r),f.fn(e,s,i,o,f.info,n,a),l=!0);return l}function fn(e,t){if(t){let r=t.name;return r==e||!!(t.structured&&Bu(r,e))||!!(t.wildcard&&kr(r,e))}else return!0}function Ma(e,t,r,s,i){let o=typeof i.method=="string"?e[i.method]:i.method,n=i.property;o?o.call(e,e.__data[n],s[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Ly(e,t,r,s,i){let o=e[O.NOTIFY],n,a=Or++;for(let u in t)t[u]&&(o&&Iy(e,o,a,u,r,s,i)||i&&Hy(e,u,r))&&(n=!0);let l;n&&(l=e.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Hy(e,t,r){let s=pt(t);if(s!==t){let i=Qs(s)+"-changed";return Zu(e,i,r[t],t),!0}return!1}function Zu(e,t,r,s){let i={value:r,queueProperty:!0};s&&(i.path=s),K(e).dispatchEvent(new CustomEvent(t,{detail:i}))}function Ry(e,t,r,s,i,o){let a=(o?pt(t):t)!=t?t:null,l=a?ie(e,a):e.__data[t];a&&l===void 0&&(l=r[t]),Zu(e,i.eventName,l,a)}function zy(e,t,r,s,i){let o,n=e.detail,a=n&&n.path;a?(s=Mr(r,s,a),o=n&&n.value):o=e.currentTarget[r],o=i?!o:o,(!t[O.READ_ONLY]||!t[O.READ_ONLY][s])&&t._setPendingPropertyOrPath(s,o,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Fy(e,t,r,s,i){let o=e.__data[t];Ps&&(o=Ps(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}function By(e,t,r,s){let i=e[O.COMPUTE];if(i)if(ry){Or++;const o=Yy(e),n=[];for(let l in t)Oa(l,i,n,o,s);let a;for(;a=n.shift();)Ku(e,"",t,r,a)&&Oa(a.methodInfo,i,n,o,s);Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let o=t;for(;mr(e,i,o,r,s);)Object.assign(r,e.__dataOld),Object.assign(t,e.__dataPending),o=e.__dataPending,e.__dataPending=null}}const $y=(e,t,r)=>{let s=0,i=t.length-1,o=-1;for(;s<=i;){const n=s+i>>1,a=r.get(t[n].methodInfo)-r.get(e.methodInfo);if(a<0)s=n+1;else if(a>0)i=n-1;else{o=n;break}}o<0&&(o=i+1),t.splice(o,0,e)},Oa=(e,t,r,s,i)=>{const o=i?pt(e):e,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Or&&(!i||fn(e,l.trigger))&&(l.info.lastRun=Or,$y(l.info,r,s))}};function Yy(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const r=e[O.COMPUTE];let{counts:s,ready:i,total:o}=Uy(e),n;for(;n=i.shift();){t.set(n,t.size);const a=r[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--o,--s[u]===0&&i.push(u)})}o!==0&&console.warn(`Computed graph for ${e.localName} incomplete; circular?`),e.constructor.__orderedComputedDeps=t}return t}function Uy(e){const t=e[Xu],r={},s=e[O.COMPUTE],i=[];let o=0;for(let n in t){const a=t[n];o+=r[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in s)t[n]||i.push(n);return{counts:r,ready:i,total:o}}function Ku(e,t,r,s,i){let o=yo(e,t,r,s,i);if(o===Nr)return!1;let n=i.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[n]?e._setPendingProperty(n,o,!0):(e[n]=o,!1)}function Wy(e,t,r){let s=e.__dataLinkedPaths;if(s){let i;for(let o in s){let n=s[o];kr(o,t)?(i=Mr(o,n,t),e._setPendingPropertyOrPath(i,r,!0,!0)):kr(n,t)&&(i=Mr(n,o,t),e._setPendingPropertyOrPath(i,r,!0,!0))}}}function Ci(e,t,r,s,i,o,n){r.bindings=r.bindings||[];let a={kind:s,target:i,parts:o,literal:n,isCompound:o.length!==1};if(r.bindings.push(a),Xy(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Qs(i)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,jy(e,t,a,c,l)}}function jy(e,t,r,s,i){if(!s.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else{let o=s.dependencies,n={index:i,binding:r,part:s,evaluator:e};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=Qu(l),l.wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Vy,info:n,trigger:l})}}}function Vy(e,t,r,s,i,o,n){let a=n[i.index],l=i.binding,u=i.part;if(o&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=r[t];t=Mr(u.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&e._enqueueClient(a)}else{let c=i.evaluator._evaluateBinding(e,u,t,r,s,o);c!==Nr&&Gy(e,a,l,u,c)}}function Gy(e,t,r,s,i){if(i=qy(t,i,r,s),Ps&&(i=Ps(i,r.target,r.kind,t)),r.kind=="attribute")e._valueToNodeAttribute(t,i,r.target);else{let o=r.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[O.READ_ONLY]||!t[O.READ_ONLY][o])&&t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}function qy(e,t,r,s){if(r.isCompound){let i=e.__dataCompoundStorage[r.target];i[s.compoundIndex]=t,t=i.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(e.localName==="input"||e.localName==="textarea"))&&(t=t==null?"":t),t}function Xy(e){return!!e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"}function Zy(e,t){let{nodeList:r,nodeInfoList:s}=t;if(s.length)for(let i=0;i<s.length;i++){let o=s[i],n=r[i],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Ky(n,u),Jy(n,e,u)}n.__dataHost=e}}function Ky(e,t){if(t.isCompound){let r=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),s=t.parts,i=new Array(s.length);for(let n=0;n<s.length;n++)i[n]=s[n].literal;let o=t.target;r[o]=i,t.literal&&t.kind=="property"&&(o==="className"&&(e=K(e)),e[o]=t.literal)}}function Jy(e,t,r){if(r.listenerEvent){let s=r.parts[0];e.addEventListener(r.listenerEvent,function(i){zy(i,t,r.target,s.source,s.negate)})}}function Na(e,t,r,s,i,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||e._addPropertyEffect(l.rootProperty,r,{fn:s,info:n,trigger:l});return o&&e._addPropertyEffect(t.methodName,r,{fn:s,info:n}),n}function yo(e,t,r,s,i){let o=e._methodHost||e,n=o[i.methodName];if(n){let a=e._marshalArgs(i.args,t,r);return a===Nr?Nr:n.apply(o,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Qy=[],Ju="(?:[a-zA-Z_$][\\w.:$\\-*]*)",eg="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tg="(?:'(?:[^'\\\\]|\\\\.)*')",rg='(?:"(?:[^"\\\\]|\\\\.)*")',sg="(?:"+tg+"|"+rg+")",Ia="(?:("+Ju+"|"+eg+"|"+sg+")\\s*)",ig="(?:"+Ia+"(?:,\\s*"+Ia+")*)",og="(?:\\(\\s*(?:"+ig+"?)\\)\\s*)",ng="("+Ju+"\\s*"+og+"?)",ag="(\\[\\[|{{)\\s*",lg="(?:]]|}})",ug="(?:(!)\\s*)?",cg=ag+ug+ng+lg,La=new RegExp(cg,"g");function Ha(e){let t="";for(let r=0;r<e.length;r++){let s=e[r].literal;t+=s||""}return t}function Di(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let s={methodName:t[1],static:!0,args:Qy};if(t[2].trim()){let i=t[2].replace(/\\,/g,"&comma;").split(",");return hg(i,s)}else return s}return null}function hg(e,t){return t.args=e.map(function(r){let s=Qu(r);return s.literal||(t.static=!1),s},this),t}function Qu(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),r={name:t,value:"",literal:!1},s=t[0];switch(s==="-"&&(s=t[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':r.value=t.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(t),r.literal=!0;break}return r.literal||(r.rootProperty=pt(t),r.structured=mo(t),r.structured&&(r.wildcard=t.slice(-2)==".*",r.wildcard&&(r.name=t.slice(0,-2)))),r}function Ra(e,t,r){let s=ie(e,r);return s===void 0&&(s=t[r]),s}function ec(e,t,r,s){const i={indexSplices:s};po&&!e._overrideLegacyUndefined&&(t.splices=i),e.notifyPath(r+".splices",i),e.notifyPath(r+".length",t.length),po&&!e._overrideLegacyUndefined&&(i.indexSplices=[])}function cr(e,t,r,s,i,o){ec(e,t,r,[{index:s,addedCount:i,removed:o,object:t,type:"splice"}])}function dg(e){return e[0].toUpperCase()+e.substring(1)}const pn=q(e=>{const t=Oy(wy(e));class r extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return O}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(hr.length){let i=hr[hr.length-1];i._enqueueClient(this),this.__dataHost=i}}_initializeProtoProperties(i){this.__data=Object.create(i),this.__dataPending=Object.create(i),this.__dataOld={}}_initializeInstanceProperties(i){let o=this[O.READ_ONLY];for(let n in i)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,o,n){this._createPropertyAccessor(i,o==O.READ_ONLY);let a=Ai(this,o,!0)[i];a||(a=this[o][i]=[]),a.push(n)}_removePropertyEffect(i,o,n){let a=Ai(this,o,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,o){let n=this[o];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,O.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,O.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,O.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,O.COMPUTE)}_setPendingPropertyOrPath(i,o,n,a){if(a||pt(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=ie(this,i);if(i=Da(this,i,o),!i||!super._shouldPropertyChange(i,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,o,n))return Wy(this,i,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,o,n);this[i]=o}return!1}_setUnmanagedPropertyToNode(i,o,n){(n!==i[o]||typeof n=="object")&&(o==="className"&&(i=K(i)),i[o]=n)}_setPendingProperty(i,o,n){let a=this.__dataHasPaths&&mo(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,o,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=o:this.__data[i]=o,this.__dataPending[i]=o,(a||this[O.NOTIFY]&&this[O.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,o){this._setPendingProperty(i,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(i){this.__dataPendingClients=this.__dataPendingClients||[],i!==this&&this.__dataPendingClients.push(i)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let i=this.__dataPendingClients;if(i){this.__dataPendingClients=null;for(let o=0;o<i.length;o++){let n=i[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,o){for(let n in i)(o||!this[O.READ_ONLY]||!this[O.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;By(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),mr(this,this[O.REFLECT],o,n,a),mr(this,this[O.OBSERVE],o,n,a),l&&Ly(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,o,n){this[O.PROPAGATE]&&mr(this,this[O.PROPAGATE],i,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,o,n)}_runEffectsForTemplate(i,o,n,a){const l=(u,c)=>{mr(this,i.propertyEffects,u,n,c,i.nodeList);for(let h=i.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,c)};i.runEffects?i.runEffects(l,o,a):l(o,a)}linkPaths(i,o){i=pr(i),o=pr(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=o}unlinkPaths(i){i=pr(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,o){let n={path:""},a=ie(this,i,n);ec(this,a,n.path,o)}get(i,o){return ie(o||this,i)}set(i,o,n){n?Da(n,i,o):(!this[O.READ_ONLY]||!this[O.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,o,!0)&&this._invalidateProperties()}push(i,...o){let n={path:""},a=ie(this,i,n),l=a.length,u=a.push(...o);return o.length&&cr(this,a,n.path,l,o.length,[]),u}pop(i){let o={path:""},n=ie(this,i,o),a=!!n.length,l=n.pop();return a&&cr(this,n,o.path,n.length,0,[l]),l}splice(i,o,n,...a){let l={path:""},u=ie(this,i,l);o<0?o=u.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=u.splice(o):c=u.splice(o,n,...a),(a.length||c.length)&&cr(this,u,l.path,o,a.length,c),c}shift(i){let o={path:""},n=ie(this,i,o),a=!!n.length,l=n.shift();return a&&cr(this,n,o.path,0,0,[l]),l}unshift(i,...o){let n={path:""},a=ie(this,i,n),l=a.unshift(...o);return o.length&&cr(this,a,n.path,0,o.length,[]),l}notifyPath(i,o){let n;if(arguments.length==1){let a={path:""};o=ie(this,i,a),n=a.path}else Array.isArray(i)?n=pr(i):n=i;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,o){this._addPropertyEffect(i,O.READ_ONLY),o&&(this["_set"+dg(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,o,n){let a={property:i,method:o,dynamicFn:!!n};this._addPropertyEffect(i,O.OBSERVE,{fn:Ma,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(o,O.OBSERVE,{fn:Ma,info:a,trigger:{name:o}})}_createMethodObserver(i,o){let n=Di(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");Na(this,n,O.OBSERVE,yo,null,o)}_createNotifyingProperty(i){this._addPropertyEffect(i,O.NOTIFY,{fn:Ry,info:{eventName:Qs(i)+"-changed",property:i}})}_createReflectedProperty(i){let o=this.constructor.attributeNameForProperty(i);o[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,O.REFLECT,{fn:Fy,info:{attrName:o}})}_createComputedProperty(i,o,n){let a=Di(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Na(this,a,O.COMPUTE,Ku,i,n);Ai(this,Xu)[i]=l}_marshalArgs(i,o,n){const a=this.__data,l=[];for(let u=0,c=i.length;u<c;u++){let{name:h,structured:d,wildcard:f,value:_,literal:g}=i[u];if(!g)if(f){const T=kr(h,o),k=Ra(a,n,T?o:h);_={path:T?o:h,value:k,base:T?ie(a,h):k}}else _=d?Ra(a,n,h):a[h];if(po&&!this._overrideLegacyUndefined&&_===void 0&&i.length>1)return Nr;l[u]=_}return l}static addPropertyEffect(i,o,n){this.prototype._addPropertyEffect(i,o,n)}static createPropertyObserver(i,o,n){this.prototype._createPropertyObserver(i,o,n)}static createMethodObserver(i,o){this.prototype._createMethodObserver(i,o)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,o){this.prototype._createReadOnlyProperty(i,o)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,o,n){this.prototype._createComputedProperty(i,o,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,o){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=i._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(i,o,n){let a=i.hostProps=i.hostProps||{};a[o]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(i,o){o=o||this._bindTemplate(i,!0),hr.push(this);let n=super._stampTemplate(i,o);if(hr.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,Zy(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const o=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let u=o.childNodes;for(let c=0;c<u.length;c++){let h=u[c];K(K(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,o,n){let a=t._parseTemplateNode.call(this,i,o,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,o);l&&(i.textContent=Ha(l)||" ",Ci(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,o,n,a,l){let u=this._parseBindings(l,o);if(u){let c=a,h="property";Ny.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=Ha(u);return d&&h=="attribute"&&(a=="class"&&i.hasAttribute("class")&&(d+=" "+i.getAttribute(a)),i.setAttribute(a,d)),h=="attribute"&&c=="disable-upgrade$"&&i.setAttribute(a,""),i.localName==="input"&&c==="value"&&i.setAttribute(c,""),i.removeAttribute(c),h==="property"&&(a=Yu(a)),Ci(this,o,n,h,a,u,d),!0}else return t._parseTemplateNodeAttribute.call(this,i,o,n,a,l)}static _parseTemplateNestedTemplate(i,o,n){let a=t._parseTemplateNestedTemplate.call(this,i,o,n);const l=i.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";wa&&(c||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let d=u.hostProps;if(sy&&c)d&&(o.hostProps=Object.assign(o.hostProps||{},d),wa||(n.parentInfo.noted=!0));else{let f="{";for(let _ in d){let g=[{mode:f,source:_,dependencies:[_],hostProp:!0}];Ci(this,o,n,"property","_host_"+_,g)}}return a}static _parseBindings(i,o){let n=[],a=0,l;for(;(l=La.exec(i))!==null;){l.index>a&&n.push({literal:i.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),d=!1,f="",_=-1;u=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),d=!0);let g=Di(h),T=[];if(g){let{args:k,methodName:M}=g;for(let te=0;te<k.length;te++){let V=k[te];V.literal||T.push(V)}let $=o.dynamicFns;($&&$[M]||g.static)&&(T.push(M),g.dynamicFn=!0)}else T.push(h);n.push({source:h,mode:u,negate:c,customEvent:d,signature:g,dependencies:T,event:f}),a=La.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(i,o,n,a,l,u){let c;return o.signature?c=yo(i,n,a,l,o.signature):n!=o.source?c=ie(i,o.source):u&&mo(n)?c=ie(i,n):c=i.__data[n],o.negate&&(c=!c),c}}return r}),hr=[];/**
705
+ @license
706
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
707
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
708
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
709
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
710
+ Code distributed by Google as part of the polymer project is also
711
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
712
+ *//**
713
+ @license
714
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
715
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
716
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
717
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
718
+ Code distributed by Google as part of the polymer project is also
719
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
720
+ */function fg(e){const t={};for(let r in e){const s=e[r];t[r]=typeof s=="function"?{type:s}:s}return t}const pg=q(e=>{const t=Vu(e);function r(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof i?n:null}function s(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=fg(a))}o.__ownProperties=n}return o.__ownProperties}class i extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=r(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=s(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=r(this);this.__properties=Object.assign({},n&&n._properties,s(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i});/**
721
+ * @fileoverview
722
+ * @suppress {checkPrototypalTypes}
723
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
724
+ * This code may only be used under the BSD style license found at
725
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
726
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
727
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
728
+ * Google as part of the polymer project is also subject to an additional IP
729
+ * rights grant found at http://polymer.github.io/PATENTS.txt
730
+ */const mg="3.5.1",za=window.ShadyCSS&&window.ShadyCSS.cssBuild,_g=q(e=>{const t=pg(pn(e));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function s(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,c,h){if(!za){const d=u.content.querySelectorAll("style"),f=zu(u),_=hy(c),g=u.content.firstElementChild;for(let k=0;k<_.length;k++){let M=_[k];M.textContent=l._processStyleText(M.textContent,h),u.content.insertBefore(M,g)}let T=0;for(let k=0;k<f.length;k++){let M=f[k],$=d[T];$!==M?(M=M.cloneNode(!0),$.parentNode.insertBefore(M,$)):T++,M.textContent=l._processStyleText(M.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),iy&&za&&J0){const d=u.content.querySelectorAll("style");if(d){let f="";Array.from(d).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function n(l){let u=null;if(l&&(!ks||ey)&&(u=Pr.import(l,"template"),ks&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return mg}static _finalizeClass(){t._finalizeClass.call(this);const u=s(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Iu||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)i(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let d=0;d<u.length;d++)h._createMethodObserver(u[d],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=hn(u.url);else{const c=Pr.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Q0,this.importPath=this.constructor.importPath;let u=r(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let d=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,d,!0):this[c]=d}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return cn(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?gr(h):"";o(this,c,u,d),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const c=K(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ty&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=gr(this.importPath)),gr(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return Lu&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
731
+ @license
732
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
733
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
734
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
735
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
736
+ Code distributed by Google as part of the polymer project is also
737
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
738
+ */const Fa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class tc{constructor(t,r){sc(t,r);const s=r.reduce((i,o,n)=>i+rc(o)+t[n+1],t[0]);this.value=s.toString()}toString(){return this.value}}function rc(e){if(e instanceof tc)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}function yg(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof tc)return rc(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}const mt=function(t,...r){sc(t,r);const s=document.createElement("template");let i=r.reduce((o,n,a)=>o+yg(n)+t[a+1],t[0]);return Fa&&(i=Fa.createHTML(i)),s.innerHTML=i,s},sc=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")};/**
739
+ @license
740
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
741
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
742
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
743
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
744
+ Code distributed by Google as part of the polymer project is also
745
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
746
+ */const Je=_g(HTMLElement);/**
747
+ * @license
748
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
749
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
750
+ */const Me=[];function go(e,t,r=e.getAttribute("dir")){t?e.setAttribute("dir",t):r!=null&&e.removeAttribute("dir")}function vo(){return document.documentElement.getAttribute("dir")}function gg(){const e=vo();Me.forEach(t=>{go(t,e)})}const vg=new MutationObserver(gg);vg.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ei=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:r=>r||"",toAttribute:r=>r===""?null:r}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),go(this,vo(),null))}attributeChangedCallback(r,s,i){if(super.attributeChangedCallback(r,s,i),r!=="dir")return;const o=vo(),n=i===o&&Me.indexOf(this)===-1,a=!i&&s&&Me.indexOf(this)===-1;n||a?(this.__subscribe(),go(this,o,i)):i!==o&&s===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Me.includes(this),this.__unsubscribe()}_valueToNodeAttribute(r,s,i){i==="dir"&&s===""&&!r.hasAttribute("dir")||super._valueToNodeAttribute(r,s,i)}_attributeToProperty(r,s,i){r==="dir"&&!s?this.dir="":super._attributeToProperty(r,s,i)}__subscribe(){Me.includes(this)||Me.push(this)}__unsubscribe(){Me.includes(this)&&Me.splice(Me.indexOf(this),1)}};/**
751
+ * @license
752
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
753
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
754
+ */class bg extends ft(ei(Je)){static get is(){return"vaadin-input-container"}static get template(){return mt`
755
+ <style>
756
+ :host {
757
+ display: flex;
758
+ align-items: center;
759
+ flex: 0 1 auto;
760
+ border-radius:
761
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
762
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
763
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
764
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
765
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
766
+ --_border-radius: var(--vaadin-input-field-border-radius, 0px);
767
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
768
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
769
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
770
+ }
771
+
772
+ :host([dir='rtl']) {
773
+ border-radius:
774
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
775
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
776
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
777
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
778
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
779
+ }
780
+
781
+ :host([hidden]) {
782
+ display: none !important;
783
+ }
784
+
785
+ /* Reset the native input styles */
786
+ ::slotted(input) {
787
+ -webkit-appearance: none;
788
+ -moz-appearance: none;
789
+ flex: auto;
790
+ white-space: nowrap;
791
+ overflow: hidden;
792
+ width: 100%;
793
+ height: 100%;
794
+ outline: none;
795
+ margin: 0;
796
+ padding: 0;
797
+ border: 0;
798
+ border-radius: 0;
799
+ min-width: 0;
800
+ font: inherit;
801
+ line-height: normal;
802
+ color: inherit;
803
+ background-color: transparent;
804
+ /* Disable default invalid style in Firefox */
805
+ box-shadow: none;
806
+ }
807
+
808
+ ::slotted(*) {
809
+ flex: none;
810
+ }
811
+
812
+ ::slotted(:is(input, textarea))::placeholder {
813
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
814
+ /* because ::slotted(...)::placeholder does not work in Safari. */
815
+ font: inherit;
816
+ color: inherit;
817
+ /* Override default opacity in Firefox */
818
+ opacity: 1;
819
+ }
820
+ </style>
821
+ <slot name="prefix"></slot>
822
+ <slot></slot>
823
+ <slot name="suffix"></slot>
824
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",t=>{t.target===this&&t.preventDefault()}),this.addEventListener("click",t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(r=>r.focus&&r.focus())})}}me(bg);/**
825
+ * @license
826
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
827
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
828
+ */let xg=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};me(xg);const Kt=(e,...t)=>{un(`lumo-${e}`,t)};/**
829
+ * @license
830
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
831
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
832
+ */const wg=x`
833
+ :host {
834
+ --lumo-size-xs: 1.625rem;
835
+ --lumo-size-s: 1.875rem;
836
+ --lumo-size-m: 2.25rem;
837
+ --lumo-size-l: 2.75rem;
838
+ --lumo-size-xl: 3.5rem;
839
+
840
+ /* Icons */
841
+ --lumo-icon-size-s: 1.25em;
842
+ --lumo-icon-size-m: 1.5em;
843
+ --lumo-icon-size-l: 2.25em;
844
+ /* For backwards compatibility */
845
+ --lumo-icon-size: var(--lumo-icon-size-m);
846
+ }
847
+ `;Kt("sizing-props",wg);/**
848
+ * @license
849
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
850
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
851
+ */const Eg=x`
852
+ :host {
853
+ /* Square */
854
+ --lumo-space-xs: 0.25rem;
855
+ --lumo-space-s: 0.5rem;
856
+ --lumo-space-m: 1rem;
857
+ --lumo-space-l: 1.5rem;
858
+ --lumo-space-xl: 2.5rem;
859
+
860
+ /* Wide */
861
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
862
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
863
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
864
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
865
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
866
+
867
+ /* Tall */
868
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
869
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
870
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
871
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
872
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
873
+ }
874
+ `;Kt("spacing-props",Eg);/**
875
+ * @license
876
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
877
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
878
+ */const Sg=x`
879
+ :host {
880
+ /* Border radius */
881
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
882
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
883
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
884
+
885
+ /* Shadow */
886
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
887
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
888
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
889
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
890
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
891
+
892
+ /* Clickable element cursor */
893
+ --lumo-clickable-cursor: default;
894
+ }
895
+ `;x`
896
+ html {
897
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
898
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
899
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
900
+ }
901
+ `;Kt("style-props",Sg);/**
902
+ * @license
903
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
904
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
905
+ */const Tg=x`
906
+ :host {
907
+ /* Base (background) */
908
+ --lumo-base-color: #fff;
909
+
910
+ /* Tint */
911
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
912
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
913
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
914
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
915
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
916
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
917
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
918
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
919
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
920
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
921
+ --lumo-tint: #fff;
922
+
923
+ /* Shade */
924
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
925
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
926
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
927
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
928
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
929
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
930
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
931
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
932
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
933
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
934
+ --lumo-shade: hsl(214, 35%, 15%);
935
+
936
+ /* Contrast */
937
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
938
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
939
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
940
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
941
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
942
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
943
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
944
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
945
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
946
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
947
+ --lumo-contrast: var(--lumo-shade);
948
+
949
+ /* Text */
950
+ --lumo-header-text-color: var(--lumo-contrast);
951
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
952
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
953
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
954
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
955
+
956
+ /* Primary */
957
+ --lumo-primary-color: hsl(214, 100%, 48%);
958
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
959
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
960
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
961
+ --lumo-primary-contrast-color: #fff;
962
+
963
+ /* Error */
964
+ --lumo-error-color: hsl(3, 85%, 48%);
965
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
966
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
967
+ --lumo-error-text-color: hsl(3, 89%, 42%);
968
+ --lumo-error-contrast-color: #fff;
969
+
970
+ /* Success */
971
+ --lumo-success-color: hsl(145, 72%, 30%);
972
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
973
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
974
+ --lumo-success-text-color: hsl(145, 85%, 25%);
975
+ --lumo-success-contrast-color: #fff;
976
+
977
+ /* Warning */
978
+ --lumo-warning-color: hsl(48, 100%, 50%);
979
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
980
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
981
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
982
+ }
983
+
984
+ /* forced-colors mode adjustments */
985
+ @media (forced-colors: active) {
986
+ html {
987
+ --lumo-disabled-text-color: GrayText;
988
+ }
989
+ }
990
+ `;Kt("color-props",Tg);const Ag=x`
991
+ [theme~='dark'] {
992
+ /* Base (background) */
993
+ --lumo-base-color: hsl(214, 35%, 21%);
994
+
995
+ /* Tint */
996
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
997
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
998
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
999
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1000
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1001
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1002
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1003
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1004
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1005
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1006
+ --lumo-tint: hsl(214, 100%, 98%);
1007
+
1008
+ /* Shade */
1009
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1010
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1011
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1012
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1013
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1014
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1015
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1016
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1017
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1018
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1019
+ --lumo-shade: hsl(214, 33%, 13%);
1020
+
1021
+ /* Contrast */
1022
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1023
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1024
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1025
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1026
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1027
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1028
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1029
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1030
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1031
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1032
+ --lumo-contrast: var(--lumo-tint);
1033
+
1034
+ /* Text */
1035
+ --lumo-header-text-color: var(--lumo-contrast);
1036
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1037
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1038
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1039
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1040
+
1041
+ /* Primary */
1042
+ --lumo-primary-color: hsl(214, 90%, 48%);
1043
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1044
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1045
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1046
+ --lumo-primary-contrast-color: #fff;
1047
+
1048
+ /* Error */
1049
+ --lumo-error-color: hsl(3, 79%, 49%);
1050
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1051
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1052
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1053
+
1054
+ /* Success */
1055
+ --lumo-success-color: hsl(145, 72%, 30%);
1056
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1057
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1058
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1059
+
1060
+ /* Warning */
1061
+ --lumo-warning-color: hsl(43, 100%, 48%);
1062
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1063
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1064
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1065
+ }
1066
+
1067
+ html {
1068
+ color: var(--lumo-body-text-color);
1069
+ background-color: var(--lumo-base-color);
1070
+ color-scheme: light;
1071
+ }
1072
+
1073
+ [theme~='dark'] {
1074
+ color: var(--lumo-body-text-color);
1075
+ background-color: var(--lumo-base-color);
1076
+ color-scheme: dark;
1077
+ }
1078
+
1079
+ h1,
1080
+ h2,
1081
+ h3,
1082
+ h4,
1083
+ h5,
1084
+ h6 {
1085
+ color: var(--lumo-header-text-color);
1086
+ }
1087
+
1088
+ a:where(:any-link) {
1089
+ color: var(--lumo-primary-text-color);
1090
+ }
1091
+
1092
+ a:not(:any-link) {
1093
+ color: var(--lumo-disabled-text-color);
1094
+ }
1095
+
1096
+ blockquote {
1097
+ color: var(--lumo-secondary-text-color);
1098
+ }
1099
+
1100
+ code,
1101
+ pre {
1102
+ background-color: var(--lumo-contrast-10pct);
1103
+ border-radius: var(--lumo-border-radius-m);
1104
+ }
1105
+ `;W("",Ag,{moduleId:"lumo-color"});/**
1106
+ * @license
1107
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1108
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1109
+ */const Cg=x`
1110
+ :host {
1111
+ /* prettier-ignore */
1112
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1113
+
1114
+ /* Font sizes */
1115
+ --lumo-font-size-xxs: 0.75rem;
1116
+ --lumo-font-size-xs: 0.8125rem;
1117
+ --lumo-font-size-s: 0.875rem;
1118
+ --lumo-font-size-m: 1rem;
1119
+ --lumo-font-size-l: 1.125rem;
1120
+ --lumo-font-size-xl: 1.375rem;
1121
+ --lumo-font-size-xxl: 1.75rem;
1122
+ --lumo-font-size-xxxl: 2.5rem;
1123
+
1124
+ /* Line heights */
1125
+ --lumo-line-height-xs: 1.25;
1126
+ --lumo-line-height-s: 1.375;
1127
+ --lumo-line-height-m: 1.625;
1128
+ }
1129
+ `,Dg=x`
1130
+ body,
1131
+ :host {
1132
+ font-family: var(--lumo-font-family);
1133
+ font-size: var(--lumo-font-size-m);
1134
+ line-height: var(--lumo-line-height-m);
1135
+ -webkit-text-size-adjust: 100%;
1136
+ -webkit-font-smoothing: antialiased;
1137
+ -moz-osx-font-smoothing: grayscale;
1138
+ }
1139
+
1140
+ small,
1141
+ [theme~='font-size-s'] {
1142
+ font-size: var(--lumo-font-size-s);
1143
+ line-height: var(--lumo-line-height-s);
1144
+ }
1145
+
1146
+ [theme~='font-size-xs'] {
1147
+ font-size: var(--lumo-font-size-xs);
1148
+ line-height: var(--lumo-line-height-xs);
1149
+ }
1150
+
1151
+ :where(h1, h2, h3, h4, h5, h6) {
1152
+ font-weight: 600;
1153
+ line-height: var(--lumo-line-height-xs);
1154
+ margin-block: 0;
1155
+ }
1156
+
1157
+ :where(h1) {
1158
+ font-size: var(--lumo-font-size-xxxl);
1159
+ }
1160
+
1161
+ :where(h2) {
1162
+ font-size: var(--lumo-font-size-xxl);
1163
+ }
1164
+
1165
+ :where(h3) {
1166
+ font-size: var(--lumo-font-size-xl);
1167
+ }
1168
+
1169
+ :where(h4) {
1170
+ font-size: var(--lumo-font-size-l);
1171
+ }
1172
+
1173
+ :where(h5) {
1174
+ font-size: var(--lumo-font-size-m);
1175
+ }
1176
+
1177
+ :where(h6) {
1178
+ font-size: var(--lumo-font-size-xs);
1179
+ text-transform: uppercase;
1180
+ letter-spacing: 0.03em;
1181
+ }
1182
+
1183
+ p,
1184
+ blockquote {
1185
+ margin-top: 0.5em;
1186
+ margin-bottom: 0.75em;
1187
+ }
1188
+
1189
+ a {
1190
+ text-decoration: none;
1191
+ }
1192
+
1193
+ a:where(:any-link):hover {
1194
+ text-decoration: underline;
1195
+ }
1196
+
1197
+ hr {
1198
+ display: block;
1199
+ align-self: stretch;
1200
+ height: 1px;
1201
+ border: 0;
1202
+ padding: 0;
1203
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1204
+ background-color: var(--lumo-contrast-10pct);
1205
+ }
1206
+
1207
+ blockquote {
1208
+ border-left: 2px solid var(--lumo-contrast-30pct);
1209
+ }
1210
+
1211
+ b,
1212
+ strong {
1213
+ font-weight: 600;
1214
+ }
1215
+
1216
+ /* RTL specific styles */
1217
+ blockquote[dir='rtl'] {
1218
+ border-left: none;
1219
+ border-right: 2px solid var(--lumo-contrast-30pct);
1220
+ }
1221
+ `;W("",Dg,{moduleId:"lumo-typography"});Kt("typography-props",Cg);/**
1222
+ * @license
1223
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1224
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1225
+ */const ic=x`
1226
+ :host {
1227
+ top: var(--lumo-space-m);
1228
+ right: var(--lumo-space-m);
1229
+ bottom: var(--lumo-space-m);
1230
+ left: var(--lumo-space-m);
1231
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
1232
+ /* stylelint-disable-next-line */
1233
+ outline: 0px solid transparent;
1234
+ }
1235
+
1236
+ [part='overlay'] {
1237
+ background-color: var(--lumo-base-color);
1238
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1239
+ border-radius: var(--lumo-border-radius-m);
1240
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
1241
+ color: var(--lumo-body-text-color);
1242
+ font-family: var(--lumo-font-family);
1243
+ font-size: var(--lumo-font-size-m);
1244
+ font-weight: 400;
1245
+ line-height: var(--lumo-line-height-m);
1246
+ letter-spacing: 0;
1247
+ text-transform: none;
1248
+ -webkit-text-size-adjust: 100%;
1249
+ -webkit-font-smoothing: antialiased;
1250
+ -moz-osx-font-smoothing: grayscale;
1251
+ }
1252
+
1253
+ [part='content'] {
1254
+ padding: var(--lumo-space-xs);
1255
+ }
1256
+
1257
+ [part='backdrop'] {
1258
+ background-color: var(--lumo-shade-20pct);
1259
+ animation: 0.2s lumo-overlay-backdrop-enter both;
1260
+ will-change: opacity;
1261
+ }
1262
+
1263
+ @keyframes lumo-overlay-backdrop-enter {
1264
+ 0% {
1265
+ opacity: 0;
1266
+ }
1267
+ }
1268
+
1269
+ :host([closing]) [part='backdrop'] {
1270
+ animation: 0.2s lumo-overlay-backdrop-exit both;
1271
+ }
1272
+
1273
+ @keyframes lumo-overlay-backdrop-exit {
1274
+ 100% {
1275
+ opacity: 0;
1276
+ }
1277
+ }
1278
+
1279
+ @keyframes lumo-overlay-dummy-animation {
1280
+ 0% {
1281
+ opacity: 1;
1282
+ }
1283
+
1284
+ 100% {
1285
+ opacity: 1;
1286
+ }
1287
+ }
1288
+ `;W("",ic,{moduleId:"lumo-overlay"});/**
1289
+ * @license
1290
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1291
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1292
+ */const oc=x`
1293
+ :host([opening]),
1294
+ :host([closing]) {
1295
+ animation: 0.14s lumo-overlay-dummy-animation;
1296
+ }
1297
+
1298
+ [part='overlay'] {
1299
+ will-change: opacity, transform;
1300
+ }
1301
+
1302
+ :host([opening]) [part='overlay'] {
1303
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
1304
+ }
1305
+
1306
+ @keyframes lumo-menu-overlay-enter {
1307
+ 0% {
1308
+ opacity: 0;
1309
+ transform: translateY(-4px);
1310
+ }
1311
+ }
1312
+
1313
+ :host([closing]) [part='overlay'] {
1314
+ animation: 0.1s lumo-menu-overlay-exit both;
1315
+ }
1316
+
1317
+ @keyframes lumo-menu-overlay-exit {
1318
+ 100% {
1319
+ opacity: 0;
1320
+ }
1321
+ }
1322
+ `;W("",oc,{moduleId:"lumo-menu-overlay-core"});const Pg=x`
1323
+ /* Small viewport (bottom sheet) styles */
1324
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
1325
+ @media (max-width: 420px), (max-height: 420px) {
1326
+ :host {
1327
+ top: 0 !important;
1328
+ right: 0 !important;
1329
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
1330
+ left: 0 !important;
1331
+ align-items: stretch !important;
1332
+ justify-content: flex-end !important;
1333
+ }
1334
+
1335
+ [part='overlay'] {
1336
+ max-height: 50vh;
1337
+ width: 100vw;
1338
+ border-radius: 0;
1339
+ box-shadow: var(--lumo-box-shadow-xl);
1340
+ }
1341
+
1342
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
1343
+ [part='content'] {
1344
+ padding: 30px var(--lumo-space-m);
1345
+ max-height: inherit;
1346
+ box-sizing: border-box;
1347
+ -webkit-overflow-scrolling: touch;
1348
+ overflow: auto;
1349
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1350
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1351
+ }
1352
+
1353
+ [part='backdrop'] {
1354
+ display: block;
1355
+ }
1356
+
1357
+ /* Animations */
1358
+
1359
+ :host([opening]) [part='overlay'] {
1360
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
1361
+ }
1362
+
1363
+ :host([closing]),
1364
+ :host([closing]) [part='backdrop'] {
1365
+ animation-delay: 0.14s;
1366
+ }
1367
+
1368
+ :host([closing]) [part='overlay'] {
1369
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
1370
+ }
1371
+ }
1372
+
1373
+ @keyframes lumo-mobile-menu-overlay-enter {
1374
+ 0% {
1375
+ transform: translateY(150%);
1376
+ }
1377
+ }
1378
+
1379
+ @keyframes lumo-mobile-menu-overlay-exit {
1380
+ 100% {
1381
+ transform: translateY(150%);
1382
+ }
1383
+ }
1384
+ `,nc=[ic,oc,Pg];W("",nc,{moduleId:"lumo-menu-overlay"});const kg=x`
1385
+ [part='overlay'] {
1386
+ /*
1387
+ Width:
1388
+ date cell widths
1389
+ + month calendar side padding
1390
+ + year scroller width
1391
+ */
1392
+ /* prettier-ignore */
1393
+ width:
1394
+ calc(
1395
+ var(--lumo-size-m) * 7
1396
+ + var(--lumo-space-xs) * 2
1397
+ + 57px
1398
+ );
1399
+ height: 100%;
1400
+ max-height: calc(var(--lumo-size-m) * 14);
1401
+ overflow: hidden;
1402
+ -webkit-tap-highlight-color: transparent;
1403
+ }
1404
+
1405
+ [part='overlay'] {
1406
+ flex-direction: column;
1407
+ }
1408
+
1409
+ [part='content'] {
1410
+ padding: 0;
1411
+ height: 100%;
1412
+ overflow: hidden;
1413
+ -webkit-mask-image: none;
1414
+ mask-image: none;
1415
+ }
1416
+
1417
+ :host([top-aligned]) [part~='overlay'] {
1418
+ margin-top: var(--lumo-space-xs);
1419
+ }
1420
+
1421
+ :host([bottom-aligned]) [part~='overlay'] {
1422
+ margin-bottom: var(--lumo-space-xs);
1423
+ }
1424
+
1425
+ @media (max-width: 420px), (max-height: 420px) {
1426
+ [part='overlay'] {
1427
+ width: 100vw;
1428
+ height: 70vh;
1429
+ max-height: 70vh;
1430
+ }
1431
+ }
1432
+ `;W("vaadin-date-picker-overlay",[nc,kg],{moduleId:"lumo-date-picker-overlay"});/**
1433
+ * @license
1434
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1435
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1436
+ */class Mg extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}me(Mg);const Wr=(e,...t)=>{un(`lumo-${e}`,t)};/**
1437
+ * @license
1438
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1439
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1440
+ */const Og=x`
1441
+ :host {
1442
+ /* Base (background) */
1443
+ --lumo-base-color: #fff;
1444
+
1445
+ /* Tint */
1446
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
1447
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
1448
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
1449
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
1450
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
1451
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
1452
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
1453
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
1454
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
1455
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
1456
+ --lumo-tint: #fff;
1457
+
1458
+ /* Shade */
1459
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
1460
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
1461
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
1462
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
1463
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
1464
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
1465
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
1466
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
1467
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
1468
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
1469
+ --lumo-shade: hsl(214, 35%, 15%);
1470
+
1471
+ /* Contrast */
1472
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
1473
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
1474
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
1475
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
1476
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
1477
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
1478
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
1479
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
1480
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
1481
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
1482
+ --lumo-contrast: var(--lumo-shade);
1483
+
1484
+ /* Text */
1485
+ --lumo-header-text-color: var(--lumo-contrast);
1486
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1487
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1488
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1489
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1490
+
1491
+ /* Primary */
1492
+ --lumo-primary-color: hsl(214, 100%, 48%);
1493
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
1494
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
1495
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
1496
+ --lumo-primary-contrast-color: #fff;
1497
+
1498
+ /* Error */
1499
+ --lumo-error-color: hsl(3, 85%, 48%);
1500
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
1501
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
1502
+ --lumo-error-text-color: hsl(3, 89%, 42%);
1503
+ --lumo-error-contrast-color: #fff;
1504
+
1505
+ /* Success */
1506
+ --lumo-success-color: hsl(145, 72%, 30%);
1507
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
1508
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
1509
+ --lumo-success-text-color: hsl(145, 85%, 25%);
1510
+ --lumo-success-contrast-color: #fff;
1511
+
1512
+ /* Warning */
1513
+ --lumo-warning-color: hsl(48, 100%, 50%);
1514
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
1515
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
1516
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1517
+ }
1518
+
1519
+ /* forced-colors mode adjustments */
1520
+ @media (forced-colors: active) {
1521
+ html {
1522
+ --lumo-disabled-text-color: GrayText;
1523
+ }
1524
+ }
1525
+ `;Wr("color-props",Og);const Ng=x`
1526
+ [theme~='dark'] {
1527
+ /* Base (background) */
1528
+ --lumo-base-color: hsl(214, 35%, 21%);
1529
+
1530
+ /* Tint */
1531
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
1532
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
1533
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
1534
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1535
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1536
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1537
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1538
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1539
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1540
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1541
+ --lumo-tint: hsl(214, 100%, 98%);
1542
+
1543
+ /* Shade */
1544
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1545
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1546
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1547
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1548
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1549
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1550
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1551
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1552
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1553
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1554
+ --lumo-shade: hsl(214, 33%, 13%);
1555
+
1556
+ /* Contrast */
1557
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1558
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1559
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1560
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1561
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1562
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1563
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1564
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1565
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1566
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1567
+ --lumo-contrast: var(--lumo-tint);
1568
+
1569
+ /* Text */
1570
+ --lumo-header-text-color: var(--lumo-contrast);
1571
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1572
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1573
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1574
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1575
+
1576
+ /* Primary */
1577
+ --lumo-primary-color: hsl(214, 90%, 48%);
1578
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1579
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1580
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1581
+ --lumo-primary-contrast-color: #fff;
1582
+
1583
+ /* Error */
1584
+ --lumo-error-color: hsl(3, 79%, 49%);
1585
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1586
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1587
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1588
+
1589
+ /* Success */
1590
+ --lumo-success-color: hsl(145, 72%, 30%);
1591
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1592
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1593
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1594
+
1595
+ /* Warning */
1596
+ --lumo-warning-color: hsl(43, 100%, 48%);
1597
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1598
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1599
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1600
+ }
1601
+
1602
+ html {
1603
+ color: var(--lumo-body-text-color);
1604
+ background-color: var(--lumo-base-color);
1605
+ color-scheme: light;
1606
+ }
1607
+
1608
+ [theme~='dark'] {
1609
+ color: var(--lumo-body-text-color);
1610
+ background-color: var(--lumo-base-color);
1611
+ color-scheme: dark;
1612
+ }
1613
+
1614
+ h1,
1615
+ h2,
1616
+ h3,
1617
+ h4,
1618
+ h5,
1619
+ h6 {
1620
+ color: var(--lumo-header-text-color);
1621
+ }
1622
+
1623
+ a:where(:any-link) {
1624
+ color: var(--lumo-primary-text-color);
1625
+ }
1626
+
1627
+ a:not(:any-link) {
1628
+ color: var(--lumo-disabled-text-color);
1629
+ }
1630
+
1631
+ blockquote {
1632
+ color: var(--lumo-secondary-text-color);
1633
+ }
1634
+
1635
+ code,
1636
+ pre {
1637
+ background-color: var(--lumo-contrast-10pct);
1638
+ border-radius: var(--lumo-border-radius-m);
1639
+ }
1640
+ `;W("",Ng,{moduleId:"lumo-color"});/**
1641
+ * @license
1642
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1643
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1644
+ */const Ig=x`
1645
+ :host {
1646
+ --lumo-size-xs: 1.625rem;
1647
+ --lumo-size-s: 1.875rem;
1648
+ --lumo-size-m: 2.25rem;
1649
+ --lumo-size-l: 2.75rem;
1650
+ --lumo-size-xl: 3.5rem;
1651
+
1652
+ /* Icons */
1653
+ --lumo-icon-size-s: 1.25em;
1654
+ --lumo-icon-size-m: 1.5em;
1655
+ --lumo-icon-size-l: 2.25em;
1656
+ /* For backwards compatibility */
1657
+ --lumo-icon-size: var(--lumo-icon-size-m);
1658
+ }
1659
+ `;Wr("sizing-props",Ig);/**
1660
+ * @license
1661
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1662
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1663
+ */const Lg=x`
1664
+ :host {
1665
+ /* Square */
1666
+ --lumo-space-xs: 0.25rem;
1667
+ --lumo-space-s: 0.5rem;
1668
+ --lumo-space-m: 1rem;
1669
+ --lumo-space-l: 1.5rem;
1670
+ --lumo-space-xl: 2.5rem;
1671
+
1672
+ /* Wide */
1673
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1674
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1675
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1676
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1677
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1678
+
1679
+ /* Tall */
1680
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1681
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1682
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1683
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1684
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1685
+ }
1686
+ `;Wr("spacing-props",Lg);/**
1687
+ * @license
1688
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1689
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1690
+ */const Hg=x`
1691
+ :host {
1692
+ /* Border radius */
1693
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
1694
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
1695
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
1696
+
1697
+ /* Shadow */
1698
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
1699
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
1700
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
1701
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
1702
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
1703
+
1704
+ /* Clickable element cursor */
1705
+ --lumo-clickable-cursor: default;
1706
+ }
1707
+ `;x`
1708
+ html {
1709
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
1710
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1711
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1712
+ }
1713
+ `;Wr("style-props",Hg);/**
1714
+ * @license
1715
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1716
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1717
+ */const Rg=x`
1718
+ :host {
1719
+ /* prettier-ignore */
1720
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1721
+
1722
+ /* Font sizes */
1723
+ --lumo-font-size-xxs: 0.75rem;
1724
+ --lumo-font-size-xs: 0.8125rem;
1725
+ --lumo-font-size-s: 0.875rem;
1726
+ --lumo-font-size-m: 1rem;
1727
+ --lumo-font-size-l: 1.125rem;
1728
+ --lumo-font-size-xl: 1.375rem;
1729
+ --lumo-font-size-xxl: 1.75rem;
1730
+ --lumo-font-size-xxxl: 2.5rem;
1731
+
1732
+ /* Line heights */
1733
+ --lumo-line-height-xs: 1.25;
1734
+ --lumo-line-height-s: 1.375;
1735
+ --lumo-line-height-m: 1.625;
1736
+ }
1737
+ `,zg=x`
1738
+ body,
1739
+ :host {
1740
+ font-family: var(--lumo-font-family);
1741
+ font-size: var(--lumo-font-size-m);
1742
+ line-height: var(--lumo-line-height-m);
1743
+ -webkit-text-size-adjust: 100%;
1744
+ -webkit-font-smoothing: antialiased;
1745
+ -moz-osx-font-smoothing: grayscale;
1746
+ }
1747
+
1748
+ small,
1749
+ [theme~='font-size-s'] {
1750
+ font-size: var(--lumo-font-size-s);
1751
+ line-height: var(--lumo-line-height-s);
1752
+ }
1753
+
1754
+ [theme~='font-size-xs'] {
1755
+ font-size: var(--lumo-font-size-xs);
1756
+ line-height: var(--lumo-line-height-xs);
1757
+ }
1758
+
1759
+ :where(h1, h2, h3, h4, h5, h6) {
1760
+ font-weight: 600;
1761
+ line-height: var(--lumo-line-height-xs);
1762
+ margin-block: 0;
1763
+ }
1764
+
1765
+ :where(h1) {
1766
+ font-size: var(--lumo-font-size-xxxl);
1767
+ }
1768
+
1769
+ :where(h2) {
1770
+ font-size: var(--lumo-font-size-xxl);
1771
+ }
1772
+
1773
+ :where(h3) {
1774
+ font-size: var(--lumo-font-size-xl);
1775
+ }
1776
+
1777
+ :where(h4) {
1778
+ font-size: var(--lumo-font-size-l);
1779
+ }
1780
+
1781
+ :where(h5) {
1782
+ font-size: var(--lumo-font-size-m);
1783
+ }
1784
+
1785
+ :where(h6) {
1786
+ font-size: var(--lumo-font-size-xs);
1787
+ text-transform: uppercase;
1788
+ letter-spacing: 0.03em;
1789
+ }
1790
+
1791
+ p,
1792
+ blockquote {
1793
+ margin-top: 0.5em;
1794
+ margin-bottom: 0.75em;
1795
+ }
1796
+
1797
+ a {
1798
+ text-decoration: none;
1799
+ }
1800
+
1801
+ a:where(:any-link):hover {
1802
+ text-decoration: underline;
1803
+ }
1804
+
1805
+ hr {
1806
+ display: block;
1807
+ align-self: stretch;
1808
+ height: 1px;
1809
+ border: 0;
1810
+ padding: 0;
1811
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1812
+ background-color: var(--lumo-contrast-10pct);
1813
+ }
1814
+
1815
+ blockquote {
1816
+ border-left: 2px solid var(--lumo-contrast-30pct);
1817
+ }
1818
+
1819
+ b,
1820
+ strong {
1821
+ font-weight: 600;
1822
+ }
1823
+
1824
+ /* RTL specific styles */
1825
+ blockquote[dir='rtl'] {
1826
+ border-left: none;
1827
+ border-right: 2px solid var(--lumo-contrast-30pct);
1828
+ }
1829
+ `;W("",zg,{moduleId:"lumo-typography"});Wr("typography-props",Rg);const Fg=x`
1830
+ :host {
1831
+ /* Sizing */
1832
+ --lumo-button-size: var(--lumo-size-m);
1833
+ min-width: calc(var(--lumo-button-size) * 2);
1834
+ height: var(--lumo-button-size);
1835
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1836
+ margin: var(--lumo-space-xs) 0;
1837
+ box-sizing: border-box;
1838
+ /* Style */
1839
+ font-family: var(--lumo-font-family);
1840
+ font-size: var(--lumo-font-size-m);
1841
+ font-weight: 500;
1842
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1843
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1844
+ border-radius: var(--lumo-border-radius-m);
1845
+ cursor: var(--lumo-clickable-cursor);
1846
+ -webkit-tap-highlight-color: transparent;
1847
+ -webkit-font-smoothing: antialiased;
1848
+ -moz-osx-font-smoothing: grayscale;
1849
+ flex-shrink: 0;
1850
+ }
1851
+
1852
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1853
+ [part='label'],
1854
+ [part='prefix'],
1855
+ [part='suffix'] {
1856
+ line-height: var(--lumo-line-height-xs);
1857
+ }
1858
+
1859
+ [part='label'] {
1860
+ padding: calc(var(--lumo-button-size) / 6) 0;
1861
+ }
1862
+
1863
+ :host([theme~='small']) {
1864
+ font-size: var(--lumo-font-size-s);
1865
+ --lumo-button-size: var(--lumo-size-s);
1866
+ }
1867
+
1868
+ :host([theme~='large']) {
1869
+ font-size: var(--lumo-font-size-l);
1870
+ --lumo-button-size: var(--lumo-size-l);
1871
+ }
1872
+
1873
+ /* For interaction states */
1874
+ :host::before,
1875
+ :host::after {
1876
+ content: '';
1877
+ /* We rely on the host always being relative */
1878
+ position: absolute;
1879
+ z-index: 1;
1880
+ inset: 0;
1881
+ background-color: currentColor;
1882
+ border-radius: inherit;
1883
+ opacity: 0;
1884
+ pointer-events: none;
1885
+ }
1886
+
1887
+ /* Hover */
1888
+
1889
+ @media (any-hover: hover) {
1890
+ :host(:hover)::before {
1891
+ opacity: 0.02;
1892
+ }
1893
+ }
1894
+
1895
+ /* Active */
1896
+
1897
+ :host::after {
1898
+ transition: opacity 1.4s, transform 0.1s;
1899
+ filter: blur(8px);
1900
+ }
1901
+
1902
+ :host([active])::before {
1903
+ opacity: 0.05;
1904
+ transition-duration: 0s;
1905
+ }
1906
+
1907
+ :host([active])::after {
1908
+ opacity: 0.1;
1909
+ transition-duration: 0s, 0s;
1910
+ transform: scale(0);
1911
+ }
1912
+
1913
+ /* Keyboard focus */
1914
+
1915
+ :host([focus-ring]) {
1916
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1917
+ }
1918
+
1919
+ :host([theme~='primary'][focus-ring]) {
1920
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1921
+ }
1922
+
1923
+ /* Types (primary, tertiary, tertiary-inline */
1924
+
1925
+ :host([theme~='tertiary']),
1926
+ :host([theme~='tertiary-inline']) {
1927
+ background-color: transparent !important;
1928
+ min-width: 0;
1929
+ }
1930
+
1931
+ :host([theme~='tertiary']) {
1932
+ padding: 0 calc(var(--lumo-button-size) / 6);
1933
+ }
1934
+
1935
+ :host([theme~='tertiary-inline'])::before {
1936
+ display: none;
1937
+ }
1938
+
1939
+ :host([theme~='tertiary-inline']) {
1940
+ margin: 0;
1941
+ height: auto;
1942
+ padding: 0;
1943
+ line-height: inherit;
1944
+ font-size: inherit;
1945
+ }
1946
+
1947
+ :host([theme~='tertiary-inline']) [part='label'] {
1948
+ padding: 0;
1949
+ overflow: visible;
1950
+ line-height: inherit;
1951
+ }
1952
+
1953
+ :host([theme~='primary']) {
1954
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1955
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1956
+ font-weight: 600;
1957
+ min-width: calc(var(--lumo-button-size) * 2.5);
1958
+ }
1959
+
1960
+ :host([theme~='primary'])::before {
1961
+ background-color: black;
1962
+ }
1963
+
1964
+ @media (any-hover: hover) {
1965
+ :host([theme~='primary']:hover)::before {
1966
+ opacity: 0.05;
1967
+ }
1968
+ }
1969
+
1970
+ :host([theme~='primary'][active])::before {
1971
+ opacity: 0.1;
1972
+ }
1973
+
1974
+ :host([theme~='primary'][active])::after {
1975
+ opacity: 0.2;
1976
+ }
1977
+
1978
+ /* Colors (success, error, contrast) */
1979
+
1980
+ :host([theme~='success']) {
1981
+ color: var(--lumo-success-text-color);
1982
+ }
1983
+
1984
+ :host([theme~='success'][theme~='primary']) {
1985
+ background-color: var(--lumo-success-color);
1986
+ color: var(--lumo-success-contrast-color);
1987
+ }
1988
+
1989
+ :host([theme~='error']) {
1990
+ color: var(--lumo-error-text-color);
1991
+ }
1992
+
1993
+ :host([theme~='error'][theme~='primary']) {
1994
+ background-color: var(--lumo-error-color);
1995
+ color: var(--lumo-error-contrast-color);
1996
+ }
1997
+
1998
+ :host([theme~='contrast']) {
1999
+ color: var(--lumo-contrast);
2000
+ }
2001
+
2002
+ :host([theme~='contrast'][theme~='primary']) {
2003
+ background-color: var(--lumo-contrast);
2004
+ color: var(--lumo-base-color);
2005
+ }
2006
+
2007
+ /* Disabled state. Keep selectors after other color variants. */
2008
+
2009
+ :host([disabled]) {
2010
+ pointer-events: none;
2011
+ color: var(--lumo-disabled-text-color);
2012
+ }
2013
+
2014
+ :host([theme~='primary'][disabled]) {
2015
+ background-color: var(--lumo-contrast-30pct);
2016
+ color: var(--lumo-base-color);
2017
+ }
2018
+
2019
+ :host([theme~='primary'][disabled]) [part] {
2020
+ opacity: 0.7;
2021
+ }
2022
+
2023
+ /* Icons */
2024
+
2025
+ [part] ::slotted(vaadin-icon) {
2026
+ display: inline-block;
2027
+ width: var(--lumo-icon-size-m);
2028
+ height: var(--lumo-icon-size-m);
2029
+ }
2030
+
2031
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
2032
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
2033
+ padding: 0.25em;
2034
+ box-sizing: border-box !important;
2035
+ }
2036
+
2037
+ [part='prefix'] {
2038
+ margin-left: -0.25em;
2039
+ margin-right: 0.25em;
2040
+ }
2041
+
2042
+ [part='suffix'] {
2043
+ margin-left: 0.25em;
2044
+ margin-right: -0.25em;
2045
+ }
2046
+
2047
+ /* Icon-only */
2048
+
2049
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
2050
+ min-width: var(--lumo-button-size);
2051
+ padding-left: calc(var(--lumo-button-size) / 4);
2052
+ padding-right: calc(var(--lumo-button-size) / 4);
2053
+ }
2054
+
2055
+ :host([theme~='icon']) [part='prefix'],
2056
+ :host([theme~='icon']) [part='suffix'] {
2057
+ margin-left: 0;
2058
+ margin-right: 0;
2059
+ }
2060
+
2061
+ /* RTL specific styles */
2062
+
2063
+ :host([dir='rtl']) [part='prefix'] {
2064
+ margin-left: 0.25em;
2065
+ margin-right: -0.25em;
2066
+ }
2067
+
2068
+ :host([dir='rtl']) [part='suffix'] {
2069
+ margin-left: -0.25em;
2070
+ margin-right: 0.25em;
2071
+ }
2072
+
2073
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
2074
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
2075
+ margin-left: 0;
2076
+ margin-right: 0;
2077
+ }
2078
+ `;W("vaadin-button",Fg,{moduleId:"lumo-button"});/**
2079
+ * @license
2080
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2081
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2082
+ */const Jt=q(e=>typeof e.prototype.addController=="function"?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(r=>{r.hostConnected&&r.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(r=>{r.hostDisconnected&&r.hostDisconnected()})}addController(r){this.__controllers.add(r),this.$!==void 0&&this.isConnected&&r.hostConnected&&r.hostConnected()}removeController(r){this.__controllers.delete(r)}}),Bg=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ys=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function $g(){function e(){return!0}return ac(e)}function Yg(){try{return Ug()?!0:Wg()?ys?!jg():!$g():!1}catch(e){return!1}}function Ug(){return localStorage.getItem("vaadin.developmentmode.force")}function Wg(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function jg(){return!!(ys&&Object.keys(ys).map(t=>ys[t]).filter(t=>t.productionMode).length>0)}function ac(e,t){if(typeof e!="function")return;const r=Bg.exec(e.toString());if(r)try{e=new Function(r[1])}catch(s){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",s)}return e(t)}window.Vaadin=window.Vaadin||{};const Ba=function(e,t){if(window.Vaadin.developmentMode)return ac(e,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Yg());function Vg(){}const Gg=function(){if(typeof Ba=="function")return Ba(Vg)};/**
2083
+ * @license
2084
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2085
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2086
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2087
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2088
+ * Code distributed by Google as part of the polymer project is also
2089
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2090
+ */let $a=0,lc=0;const It=[];let bo=!1;function qg(){bo=!1;const e=It.length;for(let t=0;t<e;t++){const r=It[t];if(r)try{r()}catch(s){setTimeout(()=>{throw s})}}It.splice(0,e),lc+=e}const Os={after(e){return{run(t){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},Xg={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Zg={run(e){bo||(bo=!0,queueMicrotask(()=>qg())),It.push(e);const t=$a;return $a+=1,t},cancel(e){const t=e-lc;if(t>=0){if(!It[t])throw new Error(`invalid async handle: ${e}`);It[t]=null}}};/**
2091
+ @license
2092
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2093
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2094
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2095
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2096
+ Code distributed by Google as part of the polymer project is also
2097
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2098
+ */const xo=new Set;let Ir=class wo{static debounce(t,r,s){return t instanceof wo?t._cancelAsync():t=new wo,t.setConfig(r,s),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,r){this._asyncModule=t,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,xo.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),xo.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Kg(e){xo.add(e)}/**
2099
+ * @license
2100
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2101
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2102
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Gg()};let Pi;const Ya=new Set,uc=e=>class extends ei(e){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:r}=this;r&&!Ya.has(r)&&(window.Vaadin.registrations.push(this),Ya.add(r),window.Vaadin.developmentModeCallback&&(Pi=Ir.debounce(Pi,Xg,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Kg(Pi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2103
+ * @license
2104
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2105
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2106
+ */function Jg(e){const t=[];for(;e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(e),e=e.host;continue}if(e.assignedSlot){e=e.assignedSlot;continue}e=e.parentNode}return t}function mn(e){return e?new Set(e.split(" ")):new Set}function ti(e){return e?[...e].join(" "):""}function cc(e,t,r){const s=mn(e.getAttribute(t));s.add(r),e.setAttribute(t,ti(s))}function Qg(e,t,r){const s=mn(e.getAttribute(t));if(s.delete(r),s.size===0){e.removeAttribute(t);return}e.setAttribute(t,ti(s))}function ev(e){return e.nodeType===Node.TEXT_NODE&&e.textContent.trim()===""}/**
2107
+ * @license
2108
+ * Copyright (c) 2023 Vaadin Ltd.
2109
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2110
+ */class tv{constructor(t,r){this.slot=t,this.callback=r,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let r=[];const s=[],i=[];t.length&&(r=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=t.indexOf(o);a===-1?s.push(o):a!==n&&i.push(o)}),(r.length||s.length||i.length)&&this.callback({addedNodes:r,movedNodes:i,removedNodes:s}),this._storedNodes=t}}/**
2111
+ * @license
2112
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2113
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2114
+ */let rv=0;function hc(){return rv++}/**
2115
+ * @license
2116
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2117
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2118
+ */class nt extends EventTarget{static generateId(t,r){return`${r||"default"}-${t.localName}-${hc()}`}constructor(t,r,s,i={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l}=i;this.host=t,this.slotName=r,this.tagName=s,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,r))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const r=this.attachDefaultNode();r&&(this.nodes=[r],this.initNode(r))}else this.nodes=t,t.forEach(r=>{this.initAddedNode(r)})}attachDefaultNode(){const{host:t,slotName:r,tagName:s}=this;let i=this.defaultNode;return!i&&s&&(i=document.createElement(s),i instanceof Element&&(r!==""&&i.setAttribute("slot",r),this.node=i,this.defaultNode=i)),i&&t.appendChild(i),i}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(r=>r.nodeType===Node.ELEMENT_NODE&&r.slot===t||r.nodeType===Node.TEXT_NODE&&r.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:r}=this;r&&r(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,r=t===""?"slot:not([name])":`slot[name=${t}]`,s=this.host.shadowRoot.querySelector(r);this.__slotObserver=new tv(s,({addedNodes:i,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=i.filter(l=>!ev(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2119
+ * @license
2120
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
2121
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2122
+ */class dc extends nt{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const r=this.node;r&&(r.ariaTarget=t)}setContext(t){this.context=t;const r=this.node;r&&(r.context=t)}setManual(t){this.manual=t;const r=this.node;r&&(r.manual=t)}setOpened(t){this.opened=t;const r=this.node;r&&(r.opened=t)}setPosition(t){this.position=t;const r=this.node;r&&(r._position=t)}setShouldShow(t){this.shouldShow=t;const r=this.node;r&&(r.shouldShow=t)}setTarget(t){this.target=t;const r=this.node;r&&(r.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2123
+ * @license
2124
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2125
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2126
+ */const sv=x`
2127
+ :host {
2128
+ display: inline-block;
2129
+ position: relative;
2130
+ outline: none;
2131
+ white-space: nowrap;
2132
+ -webkit-user-select: none;
2133
+ -moz-user-select: none;
2134
+ user-select: none;
2135
+ }
2136
+
2137
+ :host([hidden]) {
2138
+ display: none !important;
2139
+ }
2140
+
2141
+ /* Aligns the button with form fields when placed on the same line.
2142
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2143
+ .vaadin-button-container::before {
2144
+ content: '\\2003';
2145
+ display: inline-block;
2146
+ width: 0;
2147
+ max-height: 100%;
2148
+ }
2149
+
2150
+ .vaadin-button-container {
2151
+ display: inline-flex;
2152
+ align-items: center;
2153
+ justify-content: center;
2154
+ text-align: center;
2155
+ width: 100%;
2156
+ height: 100%;
2157
+ min-height: inherit;
2158
+ text-shadow: inherit;
2159
+ }
2160
+
2161
+ [part='prefix'],
2162
+ [part='suffix'] {
2163
+ flex: none;
2164
+ }
2165
+
2166
+ [part='label'] {
2167
+ white-space: nowrap;
2168
+ overflow: hidden;
2169
+ text-overflow: ellipsis;
2170
+ }
2171
+
2172
+ @media (forced-colors: active) {
2173
+ :host {
2174
+ outline: 1px solid;
2175
+ outline-offset: -1px;
2176
+ }
2177
+
2178
+ :host([focused]) {
2179
+ outline-width: 2px;
2180
+ }
2181
+
2182
+ :host([disabled]) {
2183
+ outline-color: GrayText;
2184
+ }
2185
+ }
2186
+ `,iv=e=>e`
2187
+ <div class="vaadin-button-container">
2188
+ <span part="prefix" aria-hidden="true">
2189
+ <slot name="prefix"></slot>
2190
+ </span>
2191
+ <span part="label">
2192
+ <slot></slot>
2193
+ </span>
2194
+ <span part="suffix" aria-hidden="true">
2195
+ <slot name="suffix"></slot>
2196
+ </span>
2197
+ </div>
2198
+ <slot name="tooltip"></slot>
2199
+ `;/**
2200
+ @license
2201
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2202
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2203
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2204
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2205
+ Code distributed by Google as part of the polymer project is also
2206
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2207
+ */const ov=!1,nv=e=>e,_n=typeof document.head.style.touchAction=="string",Eo="__polymerGestures",ki="__polymerGesturesHandled",So="__polymerGesturesTouchAction",Ua=25,Wa=5,av=2,lv=["mousedown","mousemove","mouseup","click"],uv=[0,1,4,2],cv=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(e){return!1}}();function yn(e){return lv.indexOf(e)>-1}let fc=!1;(function(){try{const e=Object.defineProperty({},"passive",{get(){fc=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}})();function hv(e){if(!(yn(e)||e==="touchend")&&_n&&fc&&ov)return{passive:!0}}const dv=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),fv={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ut(e){const t=e.type;if(!yn(t))return!1;if(t==="mousemove"){let s=e.buttons===void 0?1:e.buttons;return e instanceof window.MouseEvent&&!cv&&(s=uv[e.which]||0),!!(s&1)}return(e.button===void 0?0:e.button)===0}function pv(e){if(e.type==="click"){if(e.detail===0)return!0;const t=Ke(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const r=t.getBoundingClientRect(),s=e.pageX,i=e.pageY;return!(s>=r.left&&s<=r.right&&i>=r.top&&i<=r.bottom)}return!1}const Ne={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function mv(e){let t="auto";const r=mc(e);for(let s=0,i;s<r.length;s++)if(i=r[s],i[So]){t=i[So];break}return t}function pc(e,t,r){e.movefn=t,e.upfn=r,document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)}function Lt(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}const mc=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],gn={},at=[];function _v(e,t){let r=document.elementFromPoint(e,t),s=r;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const i=s;if(s=s.shadowRoot.elementFromPoint(e,t),i===s)break;s&&(r=s)}return r}function Ke(e){const t=mc(e);return t.length>0?t[0]:e.target}function yv(e){const t=e.type,s=e.currentTarget[Eo];if(!s)return;const i=s[t];if(!i)return;if(!e[ki]&&(e[ki]={},t.startsWith("touch"))){const n=e.changedTouches[0];if(t==="touchstart"&&e.touches.length===1&&(Ne.touch.id=n.identifier),Ne.touch.id!==n.identifier)return;_n||(t==="touchstart"||t==="touchmove")&&gv(e)}const o=e[ki];if(!o.skip){for(let n=0,a;n<at.length;n++)a=at[n],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(e.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<at.length;n++)a=at[n],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[t](e))}}function gv(e){const t=e.changedTouches[0],r=e.type;if(r==="touchstart")Ne.touch.x=t.clientX,Ne.touch.y=t.clientY,Ne.touch.scrollDecided=!1;else if(r==="touchmove"){if(Ne.touch.scrollDecided)return;Ne.touch.scrollDecided=!0;const s=mv(e);let i=!1;const o=Math.abs(Ne.touch.x-t.clientX),n=Math.abs(Ne.touch.y-t.clientY);e.cancelable&&(s==="none"?i=!0:s==="pan-x"?i=n>o:s==="pan-y"&&(i=o>n)),i?e.preventDefault():Ns("track")}}function Ee(e,t,r){return gn[t]?(vv(e,t,r),!0):!1}function vv(e,t,r){const s=gn[t],i=s.deps,o=s.name;let n=e[Eo];n||(e[Eo]=n={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(dv&&yn(l)&&l!=="click")&&(u=n[l],u||(n[l]=u={_count:0}),u._count===0&&e.addEventListener(l,yv,hv(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);e.addEventListener(t,r),s.touchAction&&_c(e,s.touchAction)}function vn(e){at.push(e),e.emits.forEach(t=>{gn[t]=e})}function bv(e){for(let t=0,r;t<at.length;t++){r=at[t];for(let s=0,i;s<r.emits.length;s++)if(i=r.emits[s],i===e)return r}return null}function _c(e,t){_n&&e instanceof HTMLElement&&Zg.run(()=>{e.style.touchAction=t}),e[So]=t}function bn(e,t,r){const s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=r,nv(e).dispatchEvent(s),s.defaultPrevented){const i=r.preventer||r.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Ns(e){const t=bv(e);t.info&&(t.info.prevent=!0)}vn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Lt(this.info)},mousedown(e){if(!ut(e))return;const t=Ke(e),r=this,s=o=>{ut(o)||(dr("up",t,o),Lt(r.info))},i=o=>{ut(o)&&dr("up",t,o),Lt(r.info)};pc(this.info,s,i),dr("down",t,e)},touchstart(e){dr("down",Ke(e),e.changedTouches[0],e)},touchend(e){dr("up",Ke(e),e.changedTouches[0],e)}});function dr(e,t,r,s){t&&bn(t,e,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:s,prevent(i){return Ns(i)}})}vn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>av&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Lt(this.info)},mousedown(e){if(!ut(e))return;const t=Ke(e),r=this,s=o=>{const n=o.clientX,a=o.clientY;ja(r.info,n,a)&&(r.info.state=r.info.started?o.type==="mouseup"?"end":"track":"start",r.info.state==="start"&&Ns("tap"),r.info.addMove({x:n,y:a}),ut(o)||(r.info.state="end",Lt(r.info)),t&&Mi(r.info,t,o),r.info.started=!0)},i=o=>{r.info.started&&s(o),Lt(r.info)};pc(this.info,s,i),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){const t=Ke(e),r=e.changedTouches[0],s=r.clientX,i=r.clientY;ja(this.info,s,i)&&(this.info.state==="start"&&Ns("tap"),this.info.addMove({x:s,y:i}),Mi(this.info,t,r),this.info.state="track",this.info.started=!0)},touchend(e){const t=Ke(e),r=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:r.clientX,y:r.clientY}),Mi(this.info,t,r))}});function ja(e,t,r){if(e.prevent)return!1;if(e.started)return!0;const s=Math.abs(e.x-t),i=Math.abs(e.y-r);return s>=Wa||i>=Wa}function Mi(e,t,r){if(!t)return;const s=e.moves[e.moves.length-2],i=e.moves[e.moves.length-1],o=i.x-e.x,n=i.y-e.y;let a,l=0;s&&(a=i.x-s.x,l=i.y-s.y),bn(t,"track",{state:e.state,x:r.clientX,y:r.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:r,hover(){return _v(r.clientX,r.clientY)}})}vn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(e){ut(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){ut(e)&&Va(this.info,e)},touchstart(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){Va(this.info,e.changedTouches[0],e)}});function Va(e,t,r){const s=Math.abs(t.clientX-e.x),i=Math.abs(t.clientY-e.y),o=Ke(r||t);!o||fv[o.localName]&&o.hasAttribute("disabled")||(isNaN(s)||isNaN(i)||s<=Ua&&i<=Ua||pv(t))&&(e.prevent||bn(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r}))}/**
2208
+ * @license
2209
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2210
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2211
+ */const yc=q(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(r){this._setAriaDisabled(r)}_setAriaDisabled(r){r?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2212
+ * @license
2213
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2214
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2215
+ */const ri=q(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",r=>{this._onKeyDown(r)}),this.addEventListener("keyup",r=>{this._onKeyUp(r)})}_onKeyDown(r){switch(r.key){case"Enter":this._onEnter(r);break;case"Escape":this._onEscape(r);break}}_onKeyUp(r){}_onEnter(r){}_onEscape(r){}});/**
2216
+ * @license
2217
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2218
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2219
+ */const xv=e=>class extends yc(ri(e)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",r=>{this._shouldSetActive(r)&&this._setActive(!0)}),Ee(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(r){return!this.disabled}_onKeyDown(r){super._onKeyDown(r),this._shouldSetActive(r)&&this._activeKeys.includes(r.key)&&(this._setActive(!0),document.addEventListener("keyup",s=>{this._activeKeys.includes(s.key)&&this._setActive(!1)},{once:!0}))}_setActive(r){this.toggleAttribute("active",r)}};/**
2220
+ * @license
2221
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2222
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2223
+ */let xn=!1;window.addEventListener("keydown",()=>{xn=!0},{capture:!0});window.addEventListener("mousedown",()=>{xn=!1},{capture:!0});function To(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function wv(){return xn}function Ev(e){const t=e.style;if(t.visibility==="hidden"||t.display==="none")return!0;const r=window.getComputedStyle(e);return r.visibility==="hidden"||r.display==="none"}function Sv(e,t){const r=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return r===0||s===0?s>r:r>s}function Tv(e,t){const r=[];for(;e.length>0&&t.length>0;)Sv(e[0],t[0])?r.push(t.shift()):r.push(e.shift());return r.concat(e,t)}function Ao(e){const t=e.length;if(t<2)return e;const r=Math.ceil(t/2),s=Ao(e.slice(0,r)),i=Ao(e.slice(r));return Tv(s,i)}function Av(e){return e.matches('[tabindex="-1"]')?!1:e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Cv(e){return e.getRootNode().activeElement===e}function Dv(e){if(!Av(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}function gc(e,t){if(e.nodeType!==Node.ELEMENT_NODE||Ev(e))return!1;const r=e,s=Dv(r);let i=s>0;s>=0&&t.push(r);let o=[];return r.localName==="slot"?o=r.assignedNodes({flatten:!0}):o=(r.shadowRoot||r).children,[...o].forEach(n=>{i=gc(n,t)||i}),i}function Pv(e){const t=[];return gc(e,t)?Ao(t):t}/**
2224
+ * @license
2225
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2226
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2227
+ */const wn=q(e=>class extends e{get _keyboardActive(){return wv()}ready(){this.addEventListener("focusin",r=>{this._shouldSetFocus(r)&&this._setFocused(!0)}),this.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(r){this.toggleAttribute("focused",r),this.toggleAttribute("focus-ring",r&&this._keyboardActive)}_shouldSetFocus(r){return!0}_shouldRemoveFocus(r){return!0}});/**
2228
+ * @license
2229
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2230
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2231
+ */const vc=e=>class extends yc(e){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(r,s){super._disabledChanged(r,s),r?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):s&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(r){this.disabled&&r!==-1&&(this._lastTabIndex=r,this.tabindex=-1)}};/**
2232
+ * @license
2233
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2234
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2235
+ */const kv=e=>class extends xv(vc(wn(e))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(r){super._onKeyDown(r),!(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)&&this._activeKeys.includes(r.key)&&(r.preventDefault(),this.click())}};/**
2236
+ * @license
2237
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2238
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2239
+ */W("vaadin-button",sv,{moduleId:"vaadin-button-styles"});class Mv extends kv(uc(ft(Jt(Je)))){static get is(){return"vaadin-button"}static get template(){return iv(mt)}ready(){super.ready(),this._tooltipController=new dc(this),this.addController(this._tooltipController)}}me(Mv);W("vaadin-date-picker-year",x`
2240
+ :host([current]) [part='year-number'] {
2241
+ color: var(--lumo-primary-text-color);
2242
+ }
2243
+
2244
+ :host(:not([current])) [part='year-number'],
2245
+ [part='year-separator'] {
2246
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
2247
+ transition: 0.2s opacity;
2248
+ }
2249
+
2250
+ [part='year-number'],
2251
+ [part='year-separator'] {
2252
+ display: flex;
2253
+ align-items: center;
2254
+ justify-content: center;
2255
+ height: 50%;
2256
+ transform: translateY(-50%);
2257
+ }
2258
+
2259
+ [part='year-separator']::after {
2260
+ color: var(--lumo-disabled-text-color);
2261
+ content: '\\2022';
2262
+ }
2263
+ `,{moduleId:"lumo-date-picker-year"});W("vaadin-date-picker-overlay-content",x`
2264
+ :host {
2265
+ position: relative;
2266
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
2267
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
2268
+ background-size: 57px 100%;
2269
+ background-position: top right;
2270
+ background-repeat: no-repeat;
2271
+ cursor: default;
2272
+ }
2273
+
2274
+ ::slotted([slot='months']) {
2275
+ /* Month calendar height:
2276
+ header height + margin-bottom
2277
+ + weekdays height + margin-bottom
2278
+ + date cell heights
2279
+ + small margin between month calendars
2280
+ */
2281
+ /* prettier-ignore */
2282
+ --vaadin-infinite-scroller-item-height:
2283
+ calc(
2284
+ var(--lumo-font-size-l) + var(--lumo-space-m)
2285
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
2286
+ + var(--lumo-size-m) * 6
2287
+ + var(--lumo-space-s)
2288
+ );
2289
+ --vaadin-infinite-scroller-buffer-offset: 10%;
2290
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2291
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2292
+ position: relative;
2293
+ margin-right: 57px;
2294
+ }
2295
+
2296
+ ::slotted([slot='years']) {
2297
+ /* TODO get rid of fixed magic number */
2298
+ --vaadin-infinite-scroller-buffer-width: 97px;
2299
+ width: 57px;
2300
+ height: auto;
2301
+ top: 0;
2302
+ bottom: 0;
2303
+ font-size: var(--lumo-font-size-s);
2304
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
2305
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2306
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2307
+ cursor: var(--lumo-clickable-cursor);
2308
+ }
2309
+
2310
+ ::slotted([slot='years']:hover) {
2311
+ --_lumo-date-picker-year-opacity: 1;
2312
+ }
2313
+
2314
+ /* TODO unsupported selector */
2315
+ #scrollers {
2316
+ position: static;
2317
+ display: block;
2318
+ }
2319
+
2320
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
2321
+ :host([desktop]) ::slotted([slot='months']) {
2322
+ right: auto;
2323
+ }
2324
+
2325
+ /* Year scroller position indicator */
2326
+ ::slotted([slot='years'])::before {
2327
+ border: none;
2328
+ width: 1em;
2329
+ height: 1em;
2330
+ background-color: var(--lumo-base-color);
2331
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
2332
+ transform: translate(-75%, -50%) rotate(45deg);
2333
+ border-top-right-radius: var(--lumo-border-radius-s);
2334
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
2335
+ z-index: 1;
2336
+ }
2337
+
2338
+ [part='toolbar'] {
2339
+ padding: var(--lumo-space-s);
2340
+ border-bottom-left-radius: var(--lumo-border-radius-l);
2341
+ margin-right: 57px;
2342
+ }
2343
+
2344
+ [part='toolbar'] ::slotted(vaadin-button) {
2345
+ margin: 0;
2346
+ }
2347
+
2348
+ /* Narrow viewport mode (fullscreen) */
2349
+
2350
+ :host([fullscreen]) [part='toolbar'] {
2351
+ order: -1;
2352
+ background-color: var(--lumo-base-color);
2353
+ }
2354
+
2355
+ :host([fullscreen]) [part='overlay-header'] {
2356
+ order: -2;
2357
+ height: var(--lumo-size-m);
2358
+ padding: var(--lumo-space-s);
2359
+ position: absolute;
2360
+ left: 0;
2361
+ right: 0;
2362
+ justify-content: center;
2363
+ }
2364
+
2365
+ :host([fullscreen]) [part='toggle-button'],
2366
+ :host([fullscreen]) [part='clear-button'],
2367
+ [part='overlay-header'] [part='label'] {
2368
+ display: none;
2369
+ }
2370
+
2371
+ /* Very narrow screen (year scroller initially hidden) */
2372
+
2373
+ [part='years-toggle-button'] {
2374
+ display: flex;
2375
+ align-items: center;
2376
+ height: var(--lumo-size-s);
2377
+ padding: 0 0.5em;
2378
+ border-radius: var(--lumo-border-radius-m);
2379
+ z-index: 3;
2380
+ color: var(--lumo-primary-text-color);
2381
+ font-weight: 500;
2382
+ -webkit-font-smoothing: antialiased;
2383
+ -moz-osx-font-smoothing: grayscale;
2384
+ }
2385
+
2386
+ :host([years-visible]) [part='years-toggle-button'] {
2387
+ background-color: var(--lumo-primary-color);
2388
+ color: var(--lumo-primary-contrast-color);
2389
+ }
2390
+
2391
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
2392
+ @media screen and (max-width: 374px) {
2393
+ :host {
2394
+ background-image: none;
2395
+ }
2396
+
2397
+ [part='toolbar'],
2398
+ ::slotted([slot='months']) {
2399
+ margin-right: 0;
2400
+ }
2401
+
2402
+ /* TODO make date-picker adapt to the width of the years part */
2403
+ ::slotted([slot='years']) {
2404
+ --vaadin-infinite-scroller-buffer-width: 90px;
2405
+ width: 50px;
2406
+ background-color: var(--lumo-shade-5pct);
2407
+ }
2408
+
2409
+ :host([years-visible]) ::slotted([slot='months']) {
2410
+ padding-left: 50px;
2411
+ }
2412
+ }
2413
+ `,{moduleId:"lumo-date-picker-overlay-content"});W("vaadin-month-calendar",x`
2414
+ :host {
2415
+ -moz-user-select: none;
2416
+ -webkit-user-select: none;
2417
+ -webkit-tap-highlight-color: transparent;
2418
+ user-select: none;
2419
+ font-size: var(--lumo-font-size-m);
2420
+ color: var(--lumo-body-text-color);
2421
+ text-align: center;
2422
+ padding: 0 var(--lumo-space-xs);
2423
+ }
2424
+
2425
+ /* Month header */
2426
+
2427
+ [part='month-header'] {
2428
+ color: var(--lumo-header-text-color);
2429
+ font-size: var(--lumo-font-size-l);
2430
+ line-height: 1;
2431
+ font-weight: 500;
2432
+ margin-bottom: var(--lumo-space-m);
2433
+ }
2434
+
2435
+ /* Week days and numbers */
2436
+
2437
+ [part='weekdays'],
2438
+ [part='weekday'],
2439
+ [part='week-number'] {
2440
+ font-size: var(--lumo-font-size-xxs);
2441
+ line-height: 1;
2442
+ color: var(--lumo-secondary-text-color);
2443
+ }
2444
+
2445
+ [part='weekdays'] {
2446
+ margin-bottom: var(--lumo-space-s);
2447
+ }
2448
+
2449
+ [part='weekday']:empty,
2450
+ [part='week-number'] {
2451
+ width: var(--lumo-size-xs);
2452
+ }
2453
+
2454
+ /* Date and week number cells */
2455
+
2456
+ [part~='date'],
2457
+ [part='week-number'] {
2458
+ box-sizing: border-box;
2459
+ display: inline-flex;
2460
+ align-items: center;
2461
+ justify-content: center;
2462
+ height: var(--lumo-size-m);
2463
+ position: relative;
2464
+ }
2465
+
2466
+ [part~='date'] {
2467
+ transition: color 0.1s;
2468
+ }
2469
+
2470
+ [part~='date']:not(:empty) {
2471
+ cursor: var(--lumo-clickable-cursor);
2472
+ }
2473
+
2474
+ :host([week-numbers]) [part='weekday']:not(:empty),
2475
+ :host([week-numbers]) [part~='date'] {
2476
+ width: calc((100% - var(--lumo-size-xs)) / 7);
2477
+ }
2478
+
2479
+ /* Today date */
2480
+
2481
+ [part~='date'][part~='today'] {
2482
+ color: var(--lumo-primary-text-color);
2483
+ }
2484
+
2485
+ /* Focused date */
2486
+
2487
+ [part~='date']::before {
2488
+ content: '';
2489
+ position: absolute;
2490
+ z-index: -1;
2491
+ top: 50%;
2492
+ left: 50%;
2493
+ transform: translate(-50%, -50%);
2494
+ min-width: 2em;
2495
+ min-height: 2em;
2496
+ width: 80%;
2497
+ height: 80%;
2498
+ max-height: 100%;
2499
+ max-width: 100%;
2500
+ border-radius: var(--lumo-border-radius-m);
2501
+ }
2502
+
2503
+ [part~='date'][part~='focused']::before {
2504
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
2505
+ }
2506
+
2507
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
2508
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
2509
+ }
2510
+
2511
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2512
+ 50% {
2513
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
2514
+ }
2515
+ }
2516
+
2517
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
2518
+ background-color: var(--lumo-primary-color-10pct);
2519
+ }
2520
+
2521
+ [part~='date'][part~='selected'] {
2522
+ color: var(--lumo-primary-contrast-color);
2523
+ }
2524
+
2525
+ [part~='date'][part~='selected']::before {
2526
+ background-color: var(--lumo-primary-color);
2527
+ }
2528
+
2529
+ [part~='date'][part~='disabled'] {
2530
+ color: var(--lumo-disabled-text-color);
2531
+ }
2532
+
2533
+ @media (pointer: coarse) {
2534
+ [part~='date']:hover:not([part~='selected'])::before,
2535
+ [part~='focused']:not([part~='selected'])::before {
2536
+ display: none;
2537
+ }
2538
+
2539
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
2540
+ display: block;
2541
+ }
2542
+
2543
+ [part~='date'][part~='selected']::before {
2544
+ box-shadow: none;
2545
+ }
2546
+ }
2547
+
2548
+ /* Disabled */
2549
+
2550
+ :host([disabled]) * {
2551
+ color: var(--lumo-disabled-text-color) !important;
2552
+ }
2553
+ `,{moduleId:"lumo-month-calendar"});const bc=document.createElement("template");bc.innerHTML=`
2554
+ <style>
2555
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2556
+ 50% {
2557
+ box-shadow: 0 0 0 2px transparent;
2558
+ }
2559
+ }
2560
+ </style>
2561
+ `;document.head.appendChild(bc.content);/**
2562
+ * @license
2563
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2564
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2565
+ */const Ov=x`
2566
+ @font-face {
2567
+ font-family: 'lumo-icons';
2568
+ src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
2569
+ format('woff');
2570
+ font-weight: normal;
2571
+ font-style: normal;
2572
+ }
2573
+
2574
+ html {
2575
+ --lumo-icons-align-center: '\\ea01';
2576
+ --lumo-icons-align-left: '\\ea02';
2577
+ --lumo-icons-align-right: '\\ea03';
2578
+ --lumo-icons-angle-down: '\\ea04';
2579
+ --lumo-icons-angle-left: '\\ea05';
2580
+ --lumo-icons-angle-right: '\\ea06';
2581
+ --lumo-icons-angle-up: '\\ea07';
2582
+ --lumo-icons-arrow-down: '\\ea08';
2583
+ --lumo-icons-arrow-left: '\\ea09';
2584
+ --lumo-icons-arrow-right: '\\ea0a';
2585
+ --lumo-icons-arrow-up: '\\ea0b';
2586
+ --lumo-icons-bar-chart: '\\ea0c';
2587
+ --lumo-icons-bell: '\\ea0d';
2588
+ --lumo-icons-calendar: '\\ea0e';
2589
+ --lumo-icons-checkmark: '\\ea0f';
2590
+ --lumo-icons-chevron-down: '\\ea10';
2591
+ --lumo-icons-chevron-left: '\\ea11';
2592
+ --lumo-icons-chevron-right: '\\ea12';
2593
+ --lumo-icons-chevron-up: '\\ea13';
2594
+ --lumo-icons-clock: '\\ea14';
2595
+ --lumo-icons-cog: '\\ea15';
2596
+ --lumo-icons-cross: '\\ea16';
2597
+ --lumo-icons-download: '\\ea17';
2598
+ --lumo-icons-dropdown: '\\ea18';
2599
+ --lumo-icons-edit: '\\ea19';
2600
+ --lumo-icons-error: '\\ea1a';
2601
+ --lumo-icons-eye: '\\ea1b';
2602
+ --lumo-icons-eye-disabled: '\\ea1c';
2603
+ --lumo-icons-menu: '\\ea1d';
2604
+ --lumo-icons-minus: '\\ea1e';
2605
+ --lumo-icons-ordered-list: '\\ea1f';
2606
+ --lumo-icons-phone: '\\ea20';
2607
+ --lumo-icons-photo: '\\ea21';
2608
+ --lumo-icons-play: '\\ea22';
2609
+ --lumo-icons-plus: '\\ea23';
2610
+ --lumo-icons-redo: '\\ea24';
2611
+ --lumo-icons-reload: '\\ea25';
2612
+ --lumo-icons-search: '\\ea26';
2613
+ --lumo-icons-undo: '\\ea27';
2614
+ --lumo-icons-unordered-list: '\\ea28';
2615
+ --lumo-icons-upload: '\\ea29';
2616
+ --lumo-icons-user: '\\ea2a';
2617
+ }
2618
+ `;Kt("font-icons",Ov);/**
2619
+ * @license
2620
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2621
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2622
+ */const xc=x`
2623
+ [part$='button'] {
2624
+ flex: none;
2625
+ width: 1em;
2626
+ height: 1em;
2627
+ line-height: 1;
2628
+ font-size: var(--lumo-icon-size-m);
2629
+ text-align: center;
2630
+ color: var(--lumo-contrast-60pct);
2631
+ transition: 0.2s color;
2632
+ cursor: var(--lumo-clickable-cursor);
2633
+ }
2634
+
2635
+ [part$='button']:hover {
2636
+ color: var(--lumo-contrast-90pct);
2637
+ }
2638
+
2639
+ :host([disabled]) [part$='button'],
2640
+ :host([readonly]) [part$='button'] {
2641
+ color: var(--lumo-contrast-20pct);
2642
+ cursor: default;
2643
+ }
2644
+
2645
+ [part$='button']::before {
2646
+ font-family: 'lumo-icons';
2647
+ display: block;
2648
+ }
2649
+ `;W("",xc,{moduleId:"lumo-field-button"});/**
2650
+ * @license
2651
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2652
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2653
+ */const Nv=x`
2654
+ :host([has-helper]) [part='helper-text']::before {
2655
+ content: '';
2656
+ display: block;
2657
+ height: 0.4em;
2658
+ }
2659
+
2660
+ [part='helper-text'] {
2661
+ display: block;
2662
+ color: var(--lumo-secondary-text-color);
2663
+ font-size: var(--lumo-font-size-xs);
2664
+ line-height: var(--lumo-line-height-xs);
2665
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2666
+ transition: color 0.2s;
2667
+ }
2668
+
2669
+ :host(:hover:not([readonly])) [part='helper-text'] {
2670
+ color: var(--lumo-body-text-color);
2671
+ }
2672
+
2673
+ :host([disabled]) [part='helper-text'] {
2674
+ color: var(--lumo-disabled-text-color);
2675
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2676
+ }
2677
+
2678
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
2679
+ display: none;
2680
+ }
2681
+
2682
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
2683
+ content: '';
2684
+ display: block;
2685
+ height: 0.4em;
2686
+ }
2687
+
2688
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
2689
+ order: 0;
2690
+ padding-bottom: 0.4em;
2691
+ }
2692
+
2693
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
2694
+ order: 1;
2695
+ }
2696
+
2697
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
2698
+ order: 2;
2699
+ }
2700
+
2701
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
2702
+ order: 3;
2703
+ }
2704
+ `;/**
2705
+ * @license
2706
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2707
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2708
+ */const wc=x`
2709
+ [part='label'] {
2710
+ align-self: flex-start;
2711
+ color: var(--lumo-secondary-text-color);
2712
+ font-weight: 500;
2713
+ font-size: var(--lumo-font-size-s);
2714
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2715
+ transition: color 0.2s;
2716
+ line-height: 1;
2717
+ padding-right: 1em;
2718
+ padding-bottom: 0.5em;
2719
+ /* As a workaround for diacritics being cut off, add a top padding and a
2720
+ negative margin to compensate */
2721
+ padding-top: 0.25em;
2722
+ margin-top: -0.25em;
2723
+ overflow: hidden;
2724
+ white-space: nowrap;
2725
+ text-overflow: ellipsis;
2726
+ position: relative;
2727
+ max-width: 100%;
2728
+ box-sizing: border-box;
2729
+ }
2730
+
2731
+ :host([has-label])::before {
2732
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
2733
+ }
2734
+
2735
+ :host([has-label][theme~='small'])::before {
2736
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
2737
+ }
2738
+
2739
+ :host([has-label]) {
2740
+ padding-top: var(--lumo-space-m);
2741
+ }
2742
+
2743
+ :host([has-label]) ::slotted([slot='tooltip']) {
2744
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
2745
+ }
2746
+
2747
+ :host([required]) [part='required-indicator']::after {
2748
+ content: var(--lumo-required-field-indicator, '\\2022');
2749
+ transition: opacity 0.2s;
2750
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
2751
+ position: absolute;
2752
+ right: 0;
2753
+ width: 1em;
2754
+ text-align: center;
2755
+ }
2756
+
2757
+ :host([invalid]) [part='required-indicator']::after {
2758
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
2759
+ }
2760
+
2761
+ [part='error-message'] {
2762
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
2763
+ font-size: var(--lumo-font-size-xs);
2764
+ line-height: var(--lumo-line-height-xs);
2765
+ color: var(--lumo-error-text-color);
2766
+ will-change: max-height;
2767
+ transition: 0.4s max-height;
2768
+ max-height: 5em;
2769
+ }
2770
+
2771
+ :host([has-error-message]) [part='error-message']::before,
2772
+ :host([has-error-message]) [part='error-message']::after {
2773
+ content: '';
2774
+ display: block;
2775
+ height: 0.4em;
2776
+ }
2777
+
2778
+ :host(:not([invalid])) [part='error-message'] {
2779
+ max-height: 0;
2780
+ overflow: hidden;
2781
+ }
2782
+
2783
+ /* RTL specific styles */
2784
+
2785
+ :host([dir='rtl']) [part='label'] {
2786
+ margin-left: 0;
2787
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2788
+ }
2789
+
2790
+ :host([dir='rtl']) [part='label'] {
2791
+ padding-left: 1em;
2792
+ padding-right: 0;
2793
+ }
2794
+
2795
+ :host([dir='rtl']) [part='required-indicator']::after {
2796
+ right: auto;
2797
+ left: 0;
2798
+ }
2799
+
2800
+ :host([dir='rtl']) [part='error-message'] {
2801
+ margin-left: 0;
2802
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
2803
+ }
2804
+ `;W("",wc,{moduleId:"lumo-required-field"});/**
2805
+ * @license
2806
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2807
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2808
+ */const Iv=x`
2809
+ :host {
2810
+ --lumo-text-field-size: var(--lumo-size-m);
2811
+ color: var(--lumo-body-text-color);
2812
+ font-size: var(--lumo-font-size-m);
2813
+ font-family: var(--lumo-font-family);
2814
+ -webkit-font-smoothing: antialiased;
2815
+ -moz-osx-font-smoothing: grayscale;
2816
+ -webkit-tap-highlight-color: transparent;
2817
+ padding: var(--lumo-space-xs) 0;
2818
+ }
2819
+
2820
+ :host::before {
2821
+ height: var(--lumo-text-field-size);
2822
+ box-sizing: border-box;
2823
+ display: inline-flex;
2824
+ align-items: center;
2825
+ }
2826
+
2827
+ :host([focused]:not([readonly])) [part='label'] {
2828
+ color: var(--lumo-primary-text-color);
2829
+ }
2830
+
2831
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
2832
+ -webkit-mask-image: none;
2833
+ mask-image: none;
2834
+ }
2835
+
2836
+ ::slotted(:is(input, textarea):placeholder-shown) {
2837
+ color: var(--lumo-secondary-text-color);
2838
+ }
2839
+
2840
+ /* Hover */
2841
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2842
+ color: var(--lumo-body-text-color);
2843
+ }
2844
+
2845
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2846
+ opacity: 0.1;
2847
+ }
2848
+
2849
+ /* Touch device adjustment */
2850
+ @media (pointer: coarse) {
2851
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2852
+ color: var(--lumo-secondary-text-color);
2853
+ }
2854
+
2855
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2856
+ opacity: 0;
2857
+ }
2858
+
2859
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2860
+ opacity: 0.2;
2861
+ }
2862
+ }
2863
+
2864
+ /* Trigger when not focusing using the keyboard */
2865
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2866
+ transform: scaleX(0);
2867
+ transition-duration: 0.15s, 1s;
2868
+ }
2869
+
2870
+ /* Focus-ring */
2871
+ :host([focus-ring]) [part='input-field'] {
2872
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2873
+ }
2874
+
2875
+ /* Read-only and disabled */
2876
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2877
+ opacity: 0;
2878
+ }
2879
+
2880
+ /* Read-only style */
2881
+ :host([readonly]) {
2882
+ --vaadin-input-field-border-color: transparent;
2883
+ }
2884
+
2885
+ /* Disabled style */
2886
+ :host([disabled]) {
2887
+ pointer-events: none;
2888
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2889
+ }
2890
+
2891
+ :host([disabled]) [part='label'],
2892
+ :host([disabled]) [part='input-field'] ::slotted(*) {
2893
+ color: var(--lumo-disabled-text-color);
2894
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2895
+ }
2896
+
2897
+ /* Invalid style */
2898
+ :host([invalid]) {
2899
+ --vaadin-input-field-border-color: var(--lumo-error-color);
2900
+ }
2901
+
2902
+ :host([invalid][focus-ring]) [part='input-field'] {
2903
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2904
+ }
2905
+
2906
+ :host([input-prevented]) [part='input-field'] {
2907
+ animation: shake 0.15s infinite;
2908
+ }
2909
+
2910
+ @keyframes shake {
2911
+ 25% {
2912
+ transform: translateX(4px);
2913
+ }
2914
+ 75% {
2915
+ transform: translateX(-4px);
2916
+ }
2917
+ }
2918
+
2919
+ /* Small theme */
2920
+ :host([theme~='small']) {
2921
+ font-size: var(--lumo-font-size-s);
2922
+ --lumo-text-field-size: var(--lumo-size-s);
2923
+ }
2924
+
2925
+ :host([theme~='small']) [part='label'] {
2926
+ font-size: var(--lumo-font-size-xs);
2927
+ }
2928
+
2929
+ :host([theme~='small']) [part='error-message'] {
2930
+ font-size: var(--lumo-font-size-xxs);
2931
+ }
2932
+
2933
+ /* Slotted content */
2934
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
2935
+ color: var(--lumo-secondary-text-color);
2936
+ font-weight: 400;
2937
+ }
2938
+
2939
+ [part='clear-button']::before {
2940
+ content: var(--lumo-icons-cross);
2941
+ }
2942
+ `,Ec=[wc,xc,Nv,Iv];W("",Ec,{moduleId:"lumo-input-field-shared-styles"});const Lv=x`
2943
+ :host {
2944
+ outline: none;
2945
+ }
2946
+
2947
+ [part='toggle-button']::before {
2948
+ content: var(--lumo-icons-calendar);
2949
+ }
2950
+
2951
+ [part='clear-button']::before {
2952
+ content: var(--lumo-icons-cross);
2953
+ }
2954
+
2955
+ @media (max-width: 420px), (max-height: 420px) {
2956
+ [part='overlay-content'] {
2957
+ height: 70vh;
2958
+ }
2959
+ }
2960
+
2961
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
2962
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
2963
+ }
2964
+
2965
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2966
+ --_lumo-text-field-overflow-mask-image: none;
2967
+ }
2968
+ `;W("vaadin-date-picker",[Ec,Lv],{moduleId:"lumo-date-picker"});/**
2969
+ @license
2970
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2971
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2972
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2973
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2974
+ Code distributed by Google as part of the polymer project is also
2975
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2976
+ */let Co=!1,Hv=[],Sc=[];function Rv(){Co=!0,requestAnimationFrame(function(){Co=!1,zv(Hv),setTimeout(function(){Fv(Sc)})})}function zv(e){for(;e.length;)Tc(e.shift())}function Fv(e){for(let t=0,r=e.length;t<r;t++)Tc(e.shift())}function Tc(e){const t=e[0],r=e[1],s=e[2];try{r.apply(t,s)}catch(i){setTimeout(()=>{throw i})}}function Ac(e,t,r){Co||Rv(),Sc.push([e,t,r])}/**
2977
+ * @license
2978
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2979
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2980
+ */const si=e=>e.test(navigator.userAgent),Do=e=>e.test(navigator.platform),Bv=e=>e.test(navigator.vendor);si(/Android/u);si(/Chrome/u)&&Bv(/Google Inc/u);const $v=si(/Firefox/u),Yv=Do(/^iPad/u)||Do(/^Mac/u)&&navigator.maxTouchPoints>1,Uv=Do(/^iPhone/u),Cc=Uv||Yv;si(/^((?!chrome|android).)*safari/iu);const Wv=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();/**
2981
+ * @license
2982
+ * Copyright (c) 2017 Anton Korzunov
2983
+ * SPDX-License-Identifier: MIT
2984
+ */let Et=new WeakMap,ns=new WeakMap,as={},Oi=0;const Ga=e=>e&&e.nodeType===Node.ELEMENT_NODE,Ni=(...e)=>{console.error(`Error: ${e.join(" ")}. Skip setting aria-hidden.`)},jv=(e,t)=>Ga(e)?t.map(r=>{if(!Ga(r))return Ni(r,"is not a valid element"),null;let s=r;for(;s&&s!==e;){if(e.contains(s))return r;s=s.getRootNode().host}return Ni(r,"is not contained inside",e),null}).filter(r=>!!r):(Ni(e,"is not a valid element"),[]),Vv=(e,t,r,s)=>{const i=jv(t,Array.isArray(e)?e:[e]);as[r]||(as[r]=new WeakMap);const o=as[r],n=[],a=new Set,l=new Set(i),u=h=>{if(!h||a.has(h))return;a.add(h);const d=h.assignedSlot;d&&u(d),u(h.parentNode||h.host)};i.forEach(u);const c=h=>{if(!h||l.has(h))return;const d=h.shadowRoot;(d?[...h.children,...d.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else{const g=_.getAttribute(s),T=g!==null&&g!=="false",k=(Et.get(_)||0)+1,M=(o.get(_)||0)+1;Et.set(_,k),o.set(_,M),n.push(_),k===1&&T&&ns.set(_,!0),M===1&&_.setAttribute(r,"true"),T||_.setAttribute(s,"true")}})};return c(t),a.clear(),Oi+=1,()=>{n.forEach(h=>{const d=Et.get(h)-1,f=o.get(h)-1;Et.set(h,d),o.set(h,f),d||(ns.has(h)?ns.delete(h):h.removeAttribute(s)),f||h.removeAttribute(r)}),Oi-=1,Oi||(Et=new WeakMap,Et=new WeakMap,ns=new WeakMap,as={})}},Dc=(e,t=document.body,r="data-aria-hidden")=>{const s=Array.from(Array.isArray(e)?e:[e]);return t&&s.push(...Array.from(t.querySelectorAll("[aria-live]"))),Vv(s,t,r,"aria-hidden")};/**
2985
+ * @license
2986
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2987
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2988
+ */class Gv{constructor(t,r){this.host=t,this.callback=typeof r=="function"?r:()=>t}showModal(){const t=this.callback();this.__showOthers=Dc(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2989
+ * @license
2990
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2991
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2992
+ */class qv{saveFocus(t){this.focusNode=t||To()}restoreFocus(){const t=this.focusNode;t&&(To()===document.body?setTimeout(()=>t.focus()):t.focus(),this.focusNode=null)}}/**
2993
+ * @license
2994
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2995
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2996
+ */const Ii=[];class Xv{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Pv(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Cv).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ii.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ii.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Ii).pop()&&t.key==="Tab"){t.preventDefault();const r=t.shiftKey;this.__focusNextElement(r)}}__focusNextElement(t=!1){const r=this.__focusableElements,s=t?-1:1,i=this.__focusedElementIndex,o=(r.length+i+s)%r.length,n=r[o];n.focus(),n.localName==="input"&&n.select()}}/**
2997
+ * @license
2998
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2999
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3000
+ */const Zv=e=>class extends Jt(e){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Gv(this),this.__focusTrapController=new Xv(this),this.__focusRestorationController=new qv}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const r=To();return r===document.body||this._deepContains(r)}_deepContains(r){if(this.contains(r))return!0;let s=r;const i=r.ownerDocument;for(;s&&s!==i&&s!==this;)s=s.parentNode||s.host;return s===this}};/**
3001
+ * @license
3002
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3003
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3004
+ */const gs=()=>Array.from(document.body.children).filter(e=>e instanceof HTMLElement&&e._hasOverlayStackMixin&&!e.hasAttribute("closing")).sort((e,t)=>e.__zIndex-t.__zIndex||0),Kv=e=>e===gs().pop(),Jv=e=>class extends e{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Kv(this)}bringToFront(){let r="";const s=gs().filter(i=>i!==this).pop();s&&(r=s.__zIndex+1),this.style.zIndex=r,this.__zIndex=r||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),gs().forEach(r=>{r!==this&&(r.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const r=gs();let s;for(;(s=r.pop())&&!(s!==this&&(s.$.overlay.style.removeProperty("pointer-events"),!s.modeless)););}};/**
3005
+ * @license
3006
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3007
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3008
+ */const Qv=e=>class extends Zv(Jv(e)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Cc&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(r){const s=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(s),s.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const r=window.innerHeight,i=window.innerWidth>r,o=document.documentElement.clientHeight;i&&o>r?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-r}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(r,s,i,o){const n=this._oldOwner!==s||this._oldModel!==i;this._oldModel=i,this._oldOwner=s;const a=this._oldRenderer!==r;this._oldRenderer=r;const l=this._oldOpened!==o;this._oldOpened=o,a&&(this.innerHTML="",delete this._$litPart$),o&&r&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(r){r?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(r,s){r?(this._saveFocus(),this._animatedOpening(),Ac(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):s&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(r){r&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const r=getComputedStyle(this),s=r.getPropertyValue("animation-name");return!(r.getPropertyValue("display")==="none")&&s&&s!=="none"}_enqueueAnimation(r,s){const i=`__${r}Handler`,o=n=>{n&&n.target!==this||(s(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(r){const s=`__${r}Handler`;typeof this[s]=="function"&&this[s]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(r){this._mouseDownInside=r.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(r){this._mouseUpInside=r.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(r){return this._last}_outsideClickListener(r){if(r.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(r))return;const s=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(s),this.opened&&!s.defaultPrevented&&this.close(r)}_keydownListener(r){if(this._last&&!(this.modeless&&!r.composedPath().includes(this.$.overlay))&&r.key==="Escape"){const s=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:r}});this.dispatchEvent(s),this.opened&&!s.defaultPrevented&&this.close(r)}}};/**
3009
+ * @license
3010
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3011
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3012
+ */const Li={start:"top",end:"bottom"},Hi={start:"left",end:"right"},qa=new ResizeObserver(e=>{setTimeout(()=>{e.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),eb=e=>class extends e{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=Jg(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(r=>{r.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(r=>{r.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(r,s){if(this.__removeUpdatePositionEventListeners(),s&&(s.__overlay=null,qa.unobserve(s),r&&(this.__addUpdatePositionEventListeners(),s.__overlay=this,qa.observe(s))),r){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(r){this.contains(r.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const r=this.positionTarget.getBoundingClientRect(),s=this.__shouldAlignStartVertically(r);this.style.justifyContent=s?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(r,i),n=!i&&o||i&&!o;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(r,a,this.noVerticalOverlap,Li,this,s),u=this.__calculatePositionInOneDimension(r,a,this.noHorizontalOverlap,Hi,this,o);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!s),this.toggleAttribute("top-aligned",s),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(r,s){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!s&&this.horizontalAlign==="start"||s&&this.horizontalAlign==="end";return this.__shouldAlignStart(r,i,o,this.__margins,n,this.noHorizontalOverlap,Hi)}__shouldAlignStartVertically(r){const s=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(r,s,i,this.__margins,o,this.noVerticalOverlap,Li)}__shouldAlignStart(r,s,i,o,n,a,l){const u=i-r[a?l.end:l.start]-o[l.end],c=r[a?l.start:l.end]-o[l.start],h=n?u:c,f=h>(n?c:u)||h>s;return n===f}__adjustBottomProperty(r,s,i){let o;if(r===s.end){if(s.end===Li.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;o=i-a}this.__oldViewportHeight=n}if(s.end===Hi.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;o=i-a}this.__oldViewportWidth=n}}return o}__calculatePositionInOneDimension(r,s,i,o,n,a){const l=a?o.start:o.end,u=a?o.end:o.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,o,c),d=s[a?o.start:o.end]-r[i===a?o.end:o.start],f=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
3013
+ * @license
3014
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3015
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3016
+ */const tb=x`
3017
+ :host {
3018
+ z-index: 200;
3019
+ position: fixed;
3020
+
3021
+ /* Despite of what the names say, <vaadin-overlay> is just a container
3022
+ for position/sizing/alignment. The actual overlay is the overlay part. */
3023
+
3024
+ /* Default position constraints: the entire viewport. Note: themes can
3025
+ override this to introduce gaps between the overlay and the viewport. */
3026
+ inset: 0;
3027
+ bottom: var(--vaadin-overlay-viewport-bottom);
3028
+
3029
+ /* Use flexbox alignment for the overlay part. */
3030
+ display: flex;
3031
+ flex-direction: column; /* makes dropdowns sizing easier */
3032
+ /* Align to center by default. */
3033
+ align-items: center;
3034
+ justify-content: center;
3035
+
3036
+ /* Allow centering when max-width/max-height applies. */
3037
+ margin: auto;
3038
+
3039
+ /* The host is not clickable, only the overlay part is. */
3040
+ pointer-events: none;
3041
+
3042
+ /* Remove tap highlight on touch devices. */
3043
+ -webkit-tap-highlight-color: transparent;
3044
+
3045
+ /* CSS API for host */
3046
+ --vaadin-overlay-viewport-bottom: 0;
3047
+ }
3048
+
3049
+ :host([hidden]),
3050
+ :host(:not([opened]):not([closing])) {
3051
+ display: none !important;
3052
+ }
3053
+
3054
+ [part='overlay'] {
3055
+ -webkit-overflow-scrolling: touch;
3056
+ overflow: auto;
3057
+ pointer-events: auto;
3058
+
3059
+ /* Prevent overflowing the host */
3060
+ max-width: 100%;
3061
+ box-sizing: border-box;
3062
+
3063
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
3064
+ }
3065
+
3066
+ [part='backdrop'] {
3067
+ z-index: -1;
3068
+ content: '';
3069
+ background: rgba(0, 0, 0, 0.5);
3070
+ position: fixed;
3071
+ inset: 0;
3072
+ pointer-events: auto;
3073
+ }
3074
+ `;/**
3075
+ * @license
3076
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3077
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3078
+ */const rb=x`
3079
+ [part='overlay'] {
3080
+ display: flex;
3081
+ flex: auto;
3082
+ }
3083
+
3084
+ [part~='content'] {
3085
+ flex: auto;
3086
+ }
3087
+
3088
+ @media (forced-colors: active) {
3089
+ [part='overlay'] {
3090
+ outline: 3px solid;
3091
+ }
3092
+ }
3093
+ `;/**
3094
+ * @license
3095
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3096
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3097
+ */W("vaadin-date-picker-overlay",[tb,rb],{moduleId:"vaadin-date-picker-overlay-styles"});class sb extends eb(Qv(ei(ft(Je)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return mt`
3098
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3099
+ <div part="overlay" id="overlay">
3100
+ <div part="content" id="content">
3101
+ <slot></slot>
3102
+ </div>
3103
+ </div>
3104
+ `}}me(sb);/**
3105
+ * @license
3106
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3107
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3108
+ */function ib(e){let t=e.getDay();t===0&&(t=7);const r=4-t,s=new Date(e.getTime()+r*24*3600*1e3),i=new Date(0,0);i.setFullYear(s.getFullYear());const o=s.getTime()-i.getTime(),n=Math.round(o/(24*3600*1e3));return Math.floor(n/7+1)}function Fe(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Lr(e,t,r){return(!t||e>=t)&&(!r||e<=r)}function Pc(e,t){return t.filter(r=>r!==void 0).reduce((r,s)=>{if(!s)return r;if(!r)return s;const i=Math.abs(e.getTime()-s.getTime()),o=Math.abs(r.getTime()-e.getTime());return i<o?s:r})}function kc(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}function Mc(e){const t=new Date,r=new Date(t);return r.setDate(1),r.setMonth(parseInt(e)+t.getMonth()),r}function ob(e,t,r=0,s=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let i=t+Math.floor(e.getFullYear()/100)*100;return e<new Date(i-50,r,s)?i-=100:e>new Date(i+50,r,s)&&(i+=100),i}function fr(e){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(e);if(!t)return;const r=new Date(0,0);return r.setFullYear(parseInt(t[1],10)),r.setMonth(parseInt(t[2],10)-1),r.setDate(parseInt(t[3],10)),r}/**
3109
+ * @license
3110
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3111
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3112
+ */const Oc=document.createElement("template");Oc.innerHTML=`
3113
+ <style>
3114
+ :host {
3115
+ display: block;
3116
+ overflow: hidden;
3117
+ height: 500px;
3118
+ }
3119
+
3120
+ #scroller {
3121
+ position: relative;
3122
+ height: 100%;
3123
+ overflow: auto;
3124
+ outline: none;
3125
+ margin-right: -40px;
3126
+ -webkit-overflow-scrolling: touch;
3127
+ overflow-x: hidden;
3128
+ }
3129
+
3130
+ #scroller.notouchscroll {
3131
+ -webkit-overflow-scrolling: auto;
3132
+ }
3133
+
3134
+ #scroller::-webkit-scrollbar {
3135
+ display: none;
3136
+ }
3137
+
3138
+ .buffer {
3139
+ position: absolute;
3140
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
3141
+ box-sizing: border-box;
3142
+ padding-right: 40px;
3143
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
3144
+ animation: fadein 0.2s;
3145
+ }
3146
+
3147
+ @keyframes fadein {
3148
+ from {
3149
+ opacity: 0;
3150
+ }
3151
+ to {
3152
+ opacity: 1;
3153
+ }
3154
+ }
3155
+ </style>
3156
+
3157
+ <div id="scroller">
3158
+ <div class="buffer"></div>
3159
+ <div class="buffer"></div>
3160
+ <div id="fullHeight"></div>
3161
+ </div>
3162
+ `;class Nc extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Oc.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),r="background-position";this.$.fullHeight.style.setProperty(r,t);const s=getComputedStyle(this.$.fullHeight).getPropertyValue(r);this.$.fullHeight.style.removeProperty(r),this._itemHeightVal=parseFloat(s)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,$v&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,r){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(r=>{this._ensureStampedInstance(r._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const r=t?1:0;this._buffers[r].translateY=this._buffers[r?0:1].translateY+this._bufferHeight*(r?-1:1),this._buffers[r].style.transform=`translate3d(0, ${this._buffers[r].translateY}px, 0)`,this._buffers[r].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const r=this.itemHeight+this.bufferOffset,s=t>this._buffers[1].translateY+r,i=t<this._buffers[0].translateY+r;(s||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ir.debounce(this._debouncerScrollFinish,Os.after(200),()=>{const o=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],o)&&!this._isVisible(this._buffers[1],o)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Ir.debounce(this._debouncerUpdateClones,Os.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(r=>{for(let s=0;s<this.bufferSize;s++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const o=`vaadin-infinite-scroller-item-content-${hc()}`,n=document.createElement("slot");n.setAttribute("name",o),n._itemWrapper=i,r.appendChild(n),i.setAttribute("slot",o),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const r=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(r).forEach(s=>{t.instance[s]=r[s]})}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const r=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((s,i)=>{if(!s.updated){const o=this._firstIndex+this.bufferSize*i;[...s.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,r))&&this._updateElement(l.instance,o+a)}),s.updated=!0}})}_isVisible(t,r){const s=t.getBoundingClientRect();return s.bottom>r.top&&s.top<r.bottom}}/**
3163
+ * @license
3164
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3165
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3166
+ */const Ic=document.createElement("template");Ic.innerHTML=`
3167
+ <style>
3168
+ :host {
3169
+ --vaadin-infinite-scroller-item-height: 270px;
3170
+ position: absolute;
3171
+ top: 0;
3172
+ left: 0;
3173
+ right: 0;
3174
+ bottom: 0;
3175
+ height: 100%;
3176
+ }
3177
+ </style>
3178
+ `;class nb extends Nc{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ic.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,r){t.month=Mc(r)}}me(nb);/**
3179
+ * @license
3180
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3181
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3182
+ */const Lc=document.createElement("template");Lc.innerHTML=`
3183
+ <style>
3184
+ :host {
3185
+ --vaadin-infinite-scroller-item-height: 80px;
3186
+ width: 50px;
3187
+ display: block;
3188
+ height: 100%;
3189
+ position: absolute;
3190
+ right: 0;
3191
+ transform: translateX(100%);
3192
+ -webkit-tap-highlight-color: transparent;
3193
+ -webkit-user-select: none;
3194
+ -moz-user-select: none;
3195
+ user-select: none;
3196
+ /* Center the year scroller position. */
3197
+ --vaadin-infinite-scroller-buffer-offset: 50%;
3198
+ }
3199
+
3200
+ :host::before {
3201
+ content: '';
3202
+ display: block;
3203
+ background: transparent;
3204
+ width: 0;
3205
+ height: 0;
3206
+ position: absolute;
3207
+ left: 0;
3208
+ top: 50%;
3209
+ transform: translateY(-50%);
3210
+ border-width: 6px;
3211
+ border-style: solid;
3212
+ border-color: transparent;
3213
+ border-left-color: #000;
3214
+ }
3215
+ </style>
3216
+ `;class ab extends Nc{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Lc.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,r){t.year=this._yearAfterXYears(r)}_yearAfterXYears(t){const r=new Date,s=new Date(r);return s.setFullYear(parseInt(t)+r.getFullYear()),s.getFullYear()}}me(ab);/**
3217
+ * @license
3218
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3219
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3220
+ */class lb extends ft(Je){static get is(){return"vaadin-date-picker-year"}static get template(){return mt`
3221
+ <style>
3222
+ :host {
3223
+ display: block;
3224
+ height: 100%;
3225
+ }
3226
+ </style>
3227
+ <div part="year-number">[[year]]</div>
3228
+ <div part="year-separator" aria-hidden="true"></div>
3229
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,r){this.toggleAttribute("selected",r&&r.getFullYear()===t),this.toggleAttribute("current",t===new Date().getFullYear())}}me(lb);/**
3230
+ @license
3231
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3232
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3233
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3234
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3235
+ Code distributed by Google as part of the polymer project is also
3236
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3237
+ */function En(e,t,r,s,i){let o;i&&(o=typeof r=="object"&&r!==null,o&&(s=e.__dataTemp[t]));let n=s!==r&&(s===s||r===r);return o&&n&&(e.__dataTemp[t]=r),n}const Sn=q(e=>{class t extends e{_shouldPropertyChange(s,i,o){return En(this,s,i,o,!0)}}return t}),ub=q(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(s,i,o){return En(this,s,i,o,this.mutableData)}}return t});Sn._mutablePropertyChange=En;/**
3238
+ @license
3239
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3240
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3241
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3242
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3243
+ Code distributed by Google as part of the polymer project is also
3244
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3245
+ */let Po=null;function ko(){return Po}ko.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:ko,writable:!0}});const Hc=pn(ko),cb=Sn(Hc);function hb(e,t){Po=e,Object.setPrototypeOf(e,t.prototype),new t,Po=null}const db=pn(class{});function fb(e,t){for(let r=0;r<t.length;r++){let s=t[r];if(!!e!=!!s.__hideTemplateChildren__)if(s.nodeType===Node.TEXT_NODE)e?(s.__polymerTextContent__=s.textContent,s.textContent=""):s.textContent=s.__polymerTextContent__;else if(s.localName==="slot")if(e)s.__polymerReplaced__=document.createComment("hidden-slot"),K(K(s).parentNode).replaceChild(s.__polymerReplaced__,s);else{const i=s.__polymerReplaced__;i&&K(K(i).parentNode).replaceChild(s,i)}else s.style&&(e?(s.__polymerDisplay__=s.style.display,s.style.display="none"):s.style.display=s.__polymerDisplay__);s.__hideTemplateChildren__=e,s._showHideChildren&&s._showHideChildren(e)}}class Qe extends db{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let r=[];this.children=r;for(let i=this.root.firstChild;i;i=i.nextSibling)r.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(t&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let s in this.__hostProps)this._setPendingProperty(s,this.__dataHost["_host_"+s]);for(let s in t)this._setPendingProperty(s,t[s])}forwardHostProp(t,r){this._setPendingPropertyOrPath(t,r,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,r,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,r,i=>{i.model=this,s(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(t,r,s)}}_showHideChildren(t){fb(t,this.children)}_setUnmanagedPropertyToNode(t,r,s){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&r=="textContent"?t.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(t,r,s)}get parentModel(){let t=this.__parentModel;if(!t){let r;t=this;do t=t.__dataHost.__dataHost;while((r=t.__templatizeOptions)&&!r.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Qe.prototype.__dataHost;Qe.prototype.__templatizeOptions;Qe.prototype._methodHost;Qe.prototype.__templatizeOwner;Qe.prototype.__hostProps;const pb=Sn(Qe);function Xa(e){let t=e.__dataHost;return t&&t._methodHost||t}function mb(e,t,r){let s=r.mutableData?pb:Qe;Mo.mixin&&(s=Mo.mixin(s));let i=class extends s{};return i.prototype.__templatizeOptions=r,i.prototype._bindTemplate(e),gb(i,e,t,r),i}function _b(e,t,r,s){let i=r.forwardHostProp;if(i&&t.hasHostProps){const o=e.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(o){let l=r.mutableData?cb:Hc;class u extends l{}n=t.templatizeTemplateClass=u}else{const l=e.constructor;class u extends l{}n=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:yb(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);Lu&&s&&xb(t,r,s)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),o)hb(e,n),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in e){const u=e[l];delete e[l],e.__data[l]=u}}}}function yb(e,t){return function(s,i,o){t.call(s.__templatizeOwner,i.substring(6),o[i])}}function gb(e,t,r,s){let i=r.hostProps||{};for(let o in s.instanceProps){delete i[o];let n=s.notifyInstanceProp;n&&e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vb(o,n)})}if(s.forwardHostProp&&t.__dataHost)for(let o in i)r.hasHostProps||(r.hasHostProps=!0),e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bb()})}function vb(e,t){return function(s,i,o){t.call(s.__templatizeOwner,s,i,o[i])}}function bb(){return function(t,r,s){t.__dataHost._setPendingPropertyOrPath("_host_"+r,s[r],!0,!0)}}function Mo(e,t,r){if(ks&&!Xa(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:Qe)._parseTemplate(e),o=i.templatizeInstanceClass;o||(o=mb(e,i,r),i.templatizeInstanceClass=o);const n=Xa(e);_b(e,i,r,n);let a=class extends o{};return a.prototype._methodHost=n,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=i.hostProps,a=a,a}function xb(e,t,r){const s=r.constructor._properties,{propertyEffects:i}=e,{instanceProps:o}=t;for(let n in i)if(!s[n]&&!(o&&o[n])){const a=i[n];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function wb(e,t){let r;for(;t;)if(r=t.__dataHost?t:t.__templatizeInstance)if(r.__dataHost!=e)t=r.__dataHost;else return r;else t=K(t).parentNode;return null}/**
3246
+ @license
3247
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3248
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3249
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3250
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3251
+ Code distributed by Google as part of the polymer project is also
3252
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3253
+ */class Is{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,r){this._asyncModule=t,this._callback=r,this._timer=this._asyncModule.run(()=>{this._timer=null,Hr.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Hr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,r,s){return t instanceof Is?t._cancelAsync():t=new Is,t.setConfig(r,s),t}}let Hr=new Set;const Eb=function(e){Hr.add(e)},Sb=function(){const e=!!Hr.size;return Hr.forEach(t=>{try{t.flush()}catch(r){setTimeout(()=>{throw r})}}),e};/**
3254
+ @license
3255
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3256
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3257
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3258
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3259
+ Code distributed by Google as part of the polymer project is also
3260
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3261
+ */const Rc=function(){let e,t;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Sb();while(e||t)};/**
3262
+ @license
3263
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3264
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3265
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3266
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3267
+ Code distributed by Google as part of the polymer project is also
3268
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3269
+ */let Za=!1;function Tb(){if(Iu&&!Nu){if(!Za){Za=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}/**
3270
+ @license
3271
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3272
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3273
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3274
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3275
+ Code distributed by Google as part of the polymer project is also
3276
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3277
+ */const Ab=ub(Je);class Ka extends Ab{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Ea,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Tb()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=K(K(this).parentNode);for(let r=0;r<this.__instances.length;r++)this.__attachInstance(r,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let r=this.template=t._templateInfo?t:this.querySelector("template");if(!r){let i=new MutationObserver(()=>{if(this.querySelector("template"))i.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return i.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=Mo(r,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(i,o){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,o)},notifyInstanceProp:function(i,o,n){if(dy(this.as,o)){let a=i[this.itemsIndexAs];o==this.as&&(this.items[a]=n);let l=Mr(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,o);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let r=t,s=this.__getMethodHost();return function(){return s[r].apply(s,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let r=this.__observePaths;for(let s=0;s<r.length;s++)t.indexOf(r[s])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,r=0){this.__renderDebouncer=Is.debounce(this.__renderDebouncer,r>0?gy.after(r):ju,t.bind(this)),Eb(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Rc()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const r=this.__sortAndFilterItems(t),s=this.__calculateLimit(r.length);this.__updateInstances(t,s,r),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ea||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let r=new Array(t.length);for(let s=0;s<t.length;s++)r[s]=s;return this.__filterFn&&(r=r.filter((s,i,o)=>this.__filterFn(t[s],i,o))),this.__sortFn&&r.sort((s,i)=>this.__sortFn(t[s],t[i])),r}__calculateLimit(t){let r=t;const s=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(r=Math.min(t,this.initialCount),i=Math.max(r-s,0),this.__chunkCount=i||1):(i=Math.min(Math.max(t-s,0),this.__chunkCount),r=Math.min(s+i,t)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=r<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,r}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,r=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*r)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,r,s){const i=this.__itemsIdxToInstIdx={};let o;for(o=0;o<r;o++){let n=this.__instances[o],a=s[o],l=t[a];i[a]=o,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,o),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,o,a)}for(let n=this.__instances.length-1;n>=o;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let r=this.__instances[t];const s=K(r.root);for(let i=0;i<r.children.length;i++){let o=r.children[i];s.appendChild(o)}return r}__attachInstance(t,r){let s=this.__instances[t];r.insertBefore(s.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,r,s){let i={};return i[this.as]=t,i[this.indexAs]=r,i[this.itemsIndexAs]=s,new this.__ctor(i)}__insertInstance(t,r,s){const i=this.__stampInstance(t,r,s);let o=this.__instances[r+1],n=o?o.children[0]:this;return K(K(this).parentNode).insertBefore(i.root,n),this.__instances[r]=i,i}_showHideChildren(t){for(let r=0;r<this.__instances.length;r++)this.__instances[r]._showHideChildren(t)}__handleItemPath(t,r){let s=t.slice(6),i=s.indexOf("."),o=i<0?s:s.substring(0,i);if(o==parseInt(o,10)){let n=i<0?"":s.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[o],l=this.__instances[a];if(l){let u=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(u,r,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let r=this.modelForElement(t);return r&&r[this.as]}indexForElement(t){let r=this.modelForElement(t);return r&&r[this.indexAs]}modelForElement(t){return wb(this.template,t)}}customElements.define(Ka.is,Ka);/**
3278
+ * @license
3279
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3280
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3281
+ */const Cb=e=>class extends wn(e){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(r=>Fe(r.date,this.focusedDate))}ready(){super.ready(),Ee(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(r,s,i){const o=new Date(0,0);o.setFullYear(r.getFullYear()),o.setMonth(r.getMonth()),o.setDate(1);const n=new Date(0,0);return n.setFullYear(r.getFullYear()),n.setMonth(r.getMonth()+1),n.setDate(0),s&&i&&s.getMonth()===i.getMonth()&&s.getMonth()===r.getMonth()&&i.getDate()-s.getDate()>=0?!1:!Lr(o,s,i)&&!Lr(n,s,i)}_getTitle(r,s){if(!(r===void 0||s===void 0))return s.formatTitle(s.monthNames[r.getMonth()],r.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(r,s){r.setDate(r.getDate()+s)}_applyFirstDayOfWeek(r,s){if(!(r===void 0||s===void 0))return r.slice(s).concat(r.slice(0,s))}_getWeekDayNames(r,s){if(r===void 0||s===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:n}=r,a=this._applyFirstDayOfWeek(o,n);return this._applyFirstDayOfWeek(i,n).map((u,c)=>({weekDay:u,weekDayShort:a[c]}))}__focusedDateChanged(r,s){Array.isArray(s)&&s.some(i=>Fe(i,r))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(r){return r?r.getDate():""}_showWeekSeparator(r,s){return r&&s&&s.firstDayOfWeek===1}_isToday(r){return Fe(new Date,r)}_getDays(r,s){if(r===void 0||s===void 0)return[];const i=new Date(0,0);for(i.setFullYear(r.getFullYear()),i.setMonth(r.getMonth()),i.setDate(1);i.getDay()!==s.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],n=i.getMonth(),a=r.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(r){return r.reduce((s,i,o)=>(o%7===0&&s.push([]),s[s.length-1].push(i),s),[])}_handleTap(r){!this.ignoreTaps&&!this._notTapping&&r.target.date&&!r.target.hasAttribute("disabled")&&(this.selectedDate=r.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:r.target.date},bubbles:!0,composed:!0})))}_preventDefault(r){r.preventDefault()}__getWeekNumber(r){const s=r.reduce((i,o)=>!i&&o?o:i);return ib(s)}__getDayAriaLabel(r){if(!r)return"";let s=`${this._getDate(r)} ${this.i18n.monthNames[r.getMonth()]} ${r.getFullYear()}, ${this.i18n.weekdays[r.getDay()]}`;return this._isToday(r)&&(s+=`, ${this.i18n.today}`),s}};/**
3282
+ * @license
3283
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3284
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3285
+ */const Db=x`
3286
+ :host {
3287
+ display: block;
3288
+ }
3289
+
3290
+ #monthGrid {
3291
+ width: 100%;
3292
+ border-collapse: collapse;
3293
+ }
3294
+
3295
+ #days-container tr,
3296
+ #weekdays-container tr {
3297
+ display: flex;
3298
+ }
3299
+
3300
+ [part~='date'] {
3301
+ outline: none;
3302
+ }
3303
+
3304
+ [part~='disabled'] {
3305
+ pointer-events: none;
3306
+ }
3307
+
3308
+ [part='week-number'][hidden],
3309
+ [part='weekday'][hidden] {
3310
+ display: none;
3311
+ }
3312
+
3313
+ [part='weekday'],
3314
+ [part~='date'] {
3315
+ width: calc(100% / 7);
3316
+ padding: 0;
3317
+ font-weight: normal;
3318
+ }
3319
+
3320
+ [part='weekday']:empty,
3321
+ [part='week-number'] {
3322
+ width: 12.5%;
3323
+ flex-shrink: 0;
3324
+ padding: 0;
3325
+ }
3326
+
3327
+ :host([week-numbers]) [part='weekday']:not(:empty),
3328
+ :host([week-numbers]) [part~='date'] {
3329
+ width: 12.5%;
3330
+ }
3331
+
3332
+ @media (forced-colors: active) {
3333
+ [part~='date'][part~='focused'] {
3334
+ outline: 1px solid;
3335
+ }
3336
+
3337
+ [part~='date'][part~='selected'] {
3338
+ outline: 3px solid;
3339
+ }
3340
+ }
3341
+ `;/**
3342
+ * @license
3343
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3344
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3345
+ */W("vaadin-month-calendar",Db,{moduleId:"vaadin-month-calendar-styles"});class Pb extends Cb(ft(Je)){static get template(){return mt`
3346
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3347
+ <table
3348
+ id="monthGrid"
3349
+ role="grid"
3350
+ aria-labelledby="month-header"
3351
+ on-touchend="_preventDefault"
3352
+ on-touchstart="_onMonthGridTouchStart"
3353
+ >
3354
+ <thead id="weekdays-container">
3355
+ <tr role="row" part="weekdays">
3356
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
3357
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
3358
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
3359
+ [[item.weekDayShort]]
3360
+ </th>
3361
+ </template>
3362
+ </tr>
3363
+ </thead>
3364
+ <tbody id="days-container">
3365
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
3366
+ <tr role="row">
3367
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
3368
+ [[__getWeekNumber(week)]]
3369
+ </td>
3370
+ <template is="dom-repeat" items="[[week]]">
3371
+ <td
3372
+ role="gridcell"
3373
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
3374
+ date="[[item]]"
3375
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3376
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
3377
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
3378
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
3379
+ aria-label$="[[__getDayAriaLabel(item)]]"
3380
+ >[[_getDate(item)]]</td
3381
+ >
3382
+ </template>
3383
+ </tr>
3384
+ </template>
3385
+ </tbody>
3386
+ </table>
3387
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,r){t&&r&&r.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,r,s,i,o){const n=["date"];return this.__isDayDisabled(t,i,o)&&n.push("disabled"),this.__isDayFocused(t,r)&&n.push("focused"),this.__isDaySelected(t,s)&&n.push("selected"),this._isToday(t)&&n.push("today"),n.join(" ")}__isDayFocused(t,r){return Fe(t,r)}__isDaySelected(t,r){return Fe(t,r)}__getDayAriaSelected(t,r){if(this.__isDaySelected(t,r))return"true"}__isDayDisabled(t,r,s){return!Lr(t,r,s)}__getDayAriaDisabled(t,r,s){if(!(t===void 0||r===void 0||s===void 0)&&this.__isDayDisabled(t,r,s))return"true"}__getDayTabindex(t,r){return this.__isDayFocused(t,r)?"0":"-1"}}me(Pb);/**
3388
+ * @license
3389
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3390
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3391
+ */class zc{constructor(t,r){this.query=t,this.callback=r,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3392
+ * @license
3393
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3394
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3395
+ */const kb=e=>class extends e{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(r=>r.focusableDateElement).find(Boolean)}_addListeners(){_c(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new zc(this._desktopMediaQuery,r=>{this._desktopMode=r})),this.addController(new nt(this,"today-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",s=>this.__onTodayButtonKeyDown(s)),Ee(r,"tap",this._onTodayTap.bind(this)),this._todayButton=r}})),this.addController(new nt(this,"cancel-button","vaadin-button",{observe:!1,initializer:r=>{r.setAttribute("theme","tertiary"),r.addEventListener("keydown",s=>this.__onCancelButtonKeyDown(s)),Ee(r,"tap",this._cancel.bind(this)),this._cancelButton=r}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(r,s){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(r):0;this._scrollToPosition(this._differenceInMonths(r,this._originDate)+i,s),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new nt(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:r=>{r.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),r.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),r.addEventListener("keydown",s=>{this.__onMonthCalendarKeyDown(s)}),r.addEventListener("init-done",()=>{const s=[...this.querySelectorAll("vaadin-month-calendar")];s.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=s}),this._monthScroller=r}}))}__initYearScroller(){this.addController(new nt(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:r=>{r.setAttribute("aria-hidden","true"),Ee(r,"tap",s=>{this._onYearTap(s)}),r.addEventListener("custom-scroll",()=>{this._onYearScroll()}),r.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),r.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=r}}))}__updateCancelButton(r,s){r&&(r.textContent=s&&s.cancel)}__updateTodayButton(r,s,i,o){r&&(r.textContent=s&&s.today,r.disabled=!this._isTodayAllowed(i,o))}__updateCalendars(r,s,i,o,n,a,l,u,c){r&&r.length&&r.forEach(h=>{h.i18n=s,h.minDate=i,h.maxDate=o,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(r,s,i){r&&r.length&&r.forEach(o=>{o.selectedDate=s,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(r){this.selectedDate=r,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:r},bubbles:!0,composed:!0}))}_desktopModeChanged(r){this.toggleAttribute("desktop",r)}_focusedDateChanged(r){this.revealDate(r)}revealDate(r,s=!0){if(!r)return;const i=this._differenceInMonths(r,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(r);this._scrollToPosition(i+u,s);return}const o=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;o?this._scrollToPosition(i,s):l&&this._scrollToPosition(i-a+1,s)}_calculateWeekScrollOffset(r){const s=new Date(0,0);s.setFullYear(r.getFullYear()),s.setMonth(r.getMonth()),s.setDate(1);let i=0;for(;s.getDate()<r.getDate();)s.setDate(s.getDate()+1),s.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(r){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(r)}_repositionYearScroller(){const r=this._monthScroller.position;this._visibleMonthIndex=Math.floor(r),this._yearScroller.position=(r+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ir.debounce(this._debouncer,Os.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(r,s,i){return r&&s&&typeof s.formatDate=="function"?s.formatDate(kc(r)):i}_onTodayTap(){const r=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(r,this._originDate))<.001?(this._selectDate(r),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(r){if(!this._ignoreTaps&&!this._notTapping){const i=(r.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(r,s){if(this._targetPosition!==void 0){this._targetPosition=r;return}if(!s){this._monthScroller.position=r,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=r;let i;this._revealPromise=new Promise(u=>{i=u});const o=(u,c,h,d)=>(u/=d/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const c=u-n;if(c<this.scrollDuration){const h=o(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(r,s){return Math.min(s.max,Math.max(s.min,r))}_handleTrack(r){if(Math.abs(r.detail.dx)<10||Math.abs(r.detail.ddy)>10)return;Math.abs(r.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const s=this._translateX+r.detail.ddx;this._translateX=this._limit(s,{min:0,max:this._yearScrollerWidth})}_track(r){if(!this._desktopMode)switch(r.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(r);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(r){r?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(r){this._desktopMode||(this._monthScroller.style.transform=`translateX(${r-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${r}px)`)}_yearAfterXMonths(r){return Mc(r).getFullYear()}_differenceInMonths(r,s){return(r.getFullYear()-s.getFullYear())*12-s.getMonth()+r.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(r){r.preventDefault()}__toggleDate(r){Fe(r,this.selectedDate)?(this._clear(),this.focusedDate=r):this._selectDate(r)}__onMonthCalendarKeyDown(r){let s=!1;switch(r.key){case"ArrowDown":this._moveFocusByDays(7),s=!0;break;case"ArrowUp":this._moveFocusByDays(-7),s=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),s=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),s=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),s=!0;break;case" ":this.__toggleDate(this.focusedDate),s=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),s=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),s=!0;break;case"PageDown":this._moveFocusByMonths(r.shiftKey?12:1),s=!0;break;case"PageUp":this._moveFocusByMonths(r.shiftKey?-12:-1),s=!0;break;case"Tab":this._onTabKeyDown(r,"calendar");break}s&&(r.preventDefault(),r.stopPropagation())}_onTabKeyDown(r,s){switch(r.stopPropagation(),s){case"calendar":r.shiftKey&&(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":r.shiftKey&&(r.preventDefault(),this.focusDateElement());break;case"cancel":r.shiftKey||(r.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"today")}__onCancelButtonKeyDown(r){r.key==="Tab"&&this._onTabKeyDown(r,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const s=this.focusableDateElement;s&&Fe(s.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,s.focus())}}focusDate(r,s){return or(this,null,function*(){const i=r||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,s||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(r=!0){return or(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(s=>{Ac(this,()=>{Rc(),s()})})),r&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(r){this.focusDate(Pc(r,[this.minDate,this.maxDate]))}_focusAllowedDate(r,s,i){this._dateAllowed(r)?this.focusDate(r,i):this._dateAllowed(this.focusedDate)?s>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(r,s){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+r),s&&i.setDate(this.focusedDate.getDate()+s),i}_moveFocusByDays(r){const s=this._getDateDiff(0,r);this._focusAllowedDate(s,r,!1)}_moveFocusByMonths(r){const s=this._getDateDiff(r),i=s.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),s.setDate(this._focusedMonthDate),s.getMonth()!==i&&s.setDate(0),this._focusAllowedDate(s,r,!0)}_moveFocusInsideMonth(r,s){const i=new Date(0,0);i.setFullYear(r.getFullYear()),s==="minDate"?(i.setMonth(r.getMonth()),i.setDate(1)):(i.setMonth(r.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(r)?this.focusDate(this[s]):this._focusClosestDate(r)}_dateAllowed(r,s=this.minDate,i=this.maxDate){return(!s||r>=s)&&(!i||r<=i)}_isTodayAllowed(r,s){const i=new Date,o=new Date(0,0);return o.setFullYear(i.getFullYear()),o.setMonth(i.getMonth()),o.setDate(i.getDate()),this._dateAllowed(o,r,s)}};/**
3396
+ * @license
3397
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3398
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3399
+ */const Mb=x`
3400
+ :host {
3401
+ display: flex;
3402
+ flex-direction: column;
3403
+ height: 100%;
3404
+ width: 100%;
3405
+ outline: none;
3406
+ }
3407
+
3408
+ [part='overlay-header'] {
3409
+ display: flex;
3410
+ flex-shrink: 0;
3411
+ flex-wrap: nowrap;
3412
+ align-items: center;
3413
+ }
3414
+
3415
+ :host(:not([fullscreen])) [part='overlay-header'] {
3416
+ display: none;
3417
+ }
3418
+
3419
+ [part='label'] {
3420
+ flex-grow: 1;
3421
+ }
3422
+
3423
+ [hidden] {
3424
+ display: none !important;
3425
+ }
3426
+
3427
+ [part='years-toggle-button'] {
3428
+ display: flex;
3429
+ }
3430
+
3431
+ #scrollers {
3432
+ display: flex;
3433
+ height: 100%;
3434
+ width: 100%;
3435
+ position: relative;
3436
+ overflow: hidden;
3437
+ }
3438
+
3439
+ :host([desktop]) ::slotted([slot='months']) {
3440
+ right: 50px;
3441
+ transform: none !important;
3442
+ }
3443
+
3444
+ :host([desktop]) ::slotted([slot='years']) {
3445
+ transform: none !important;
3446
+ }
3447
+
3448
+ :host(.animate) ::slotted([slot='months']),
3449
+ :host(.animate) ::slotted([slot='years']) {
3450
+ transition: all 200ms;
3451
+ }
3452
+
3453
+ [part='toolbar'] {
3454
+ display: flex;
3455
+ justify-content: space-between;
3456
+ z-index: 2;
3457
+ flex-shrink: 0;
3458
+ }
3459
+ `;/**
3460
+ * @license
3461
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3462
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3463
+ */W("vaadin-date-picker-overlay-content",Mb,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ob extends kb(Jt(ft(ei(Je)))){static get template(){return mt`
3464
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3465
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3466
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
3467
+ <div part="toggle-button"></div>
3468
+
3469
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
3470
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
3471
+ </div>
3472
+ </div>
3473
+
3474
+ <div id="scrollers">
3475
+ <slot name="months"></slot>
3476
+ <slot name="years"></slot>
3477
+ </div>
3478
+
3479
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
3480
+ <slot name="today-button"></slot>
3481
+ <slot name="cancel-button"></slot>
3482
+ </div>
3483
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}me(Ob);/**
3484
+ * @license
3485
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3486
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3487
+ */const Fc=q(e=>class extends wn(vc(e)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(r,s){r?(r.disabled=this.disabled,this._addFocusListeners(r),this.__forwardTabIndex(this.tabindex)):s&&this._removeFocusListeners(s)}_addFocusListeners(r){r.addEventListener("blur",this._boundOnBlur),r.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(r){r.removeEventListener("blur",this._boundOnBlur),r.removeEventListener("focus",this._boundOnFocus)}_onFocus(r){r.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(r){r.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(r){return r.target===this.focusElement}_shouldRemoveFocus(r){return r.target===this.focusElement}_disabledChanged(r,s){super._disabledChanged(r,s),this.focusElement&&(this.focusElement.disabled=r),r&&this.blur()}_tabindexChanged(r){this.__forwardTabIndex(r)}__forwardTabIndex(r){r!==void 0&&this.focusElement&&(this.focusElement.tabIndex=r,r!==-1&&(this.tabindex=void 0)),this.disabled&&r&&(r!==-1&&(this._lastTabIndex=r),this.tabindex=void 0)}});/**
3488
+ * @license
3489
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3490
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3491
+ */const Ri=new WeakMap;function Nb(e){return Ri.has(e)||Ri.set(e,new Set),Ri.get(e)}function Ib(e,t){const r=document.createElement("style");r.textContent=e,t===document?document.head.appendChild(r):t.insertBefore(r,t.firstChild)}const Lb=q(e=>class extends e{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const r=this.getRootNode(),s=Nb(r);this.slotStyles.forEach(i=>{s.has(i)||(Ib(i,r),s.add(i))})}});/**
3492
+ * @license
3493
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3494
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3495
+ */const Bc=q(e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(r){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=r)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(r){r.addEventListener("input",this._boundOnInput),r.addEventListener("change",this._boundOnChange)}_removeInputListeners(r){r.removeEventListener("input",this._boundOnInput),r.removeEventListener("change",this._boundOnChange)}_forwardInputValue(r){this.inputElement&&(this._inputElementValue=r!=null?r:"")}_inputElementChanged(r,s){r?this._addInputListeners(r):s&&this._removeInputListeners(s)}_hasInputValueChanged(r,s){(r||s)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(r){this._setHasInputValue(r),this._onInput(r)}_onInput(r){const s=r.composedPath()[0];this.__userInput=r.isTrusted,this.value=s.value,this.__userInput=!1}_onChange(r){}_toggleHasValue(r){this.toggleAttribute("has-value",r)}_valueChanged(r,s){this._toggleHasValue(this._hasValue),!(r===""&&s===void 0)&&(this.__userInput||this._forwardInputValue(r))}_setHasInputValue(r){const s=r.composedPath()[0];this._hasInputValue=s.value.length>0}});/**
3496
+ * @license
3497
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3498
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3499
+ */const Hb=e=>class extends Bc(ri(e)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",r=>this._onClearButtonMouseDown(r)),this.clearElement.addEventListener("click",r=>this._onClearButtonClick(r)))}_onClearButtonClick(r){r.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(r){r.preventDefault(),Wv||this.inputElement.focus()}_onEscape(r){super._onEscape(r),this.clearButtonVisible&&this.value&&(r.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3500
+ * @license
3501
+ * Copyright (c) 2023 Vaadin Ltd.
3502
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3503
+ */const zi=new Map;function Tn(e){return zi.has(e)||zi.set(e,new WeakMap),zi.get(e)}function $c(e,t){e&&e.removeAttribute(t)}function Yc(e,t){if(!e||!t)return;const r=Tn(t);if(r.has(e))return;const s=mn(e.getAttribute(t));r.set(e,new Set(s))}function Rb(e,t){if(!e||!t)return;const r=Tn(t),s=r.get(e);!s||s.size===0?e.removeAttribute(t):cc(e,t,ti(s)),r.delete(e)}function Fi(e,t,r={newId:null,oldId:null,fromUser:!1}){if(!e||!t)return;const{newId:s,oldId:i,fromUser:o}=r,n=Tn(t),a=n.get(e);if(!o&&a){i&&a.delete(i),s&&a.add(s);return}o&&(a?s||n.delete(e):Yc(e,t),$c(e,t)),Qg(e,t,i);const l=s||ti(a);l&&cc(e,t,l)}function zb(e,t){Yc(e,t),$c(e,t)}/**
3504
+ * @license
3505
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3506
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3507
+ */class Fb{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,r=!1){const s=r?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,s,r),r?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(zb(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Rb(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,r,s){Fi(this.__target,"aria-labelledby",{newId:t,oldId:r,fromUser:s})}__setErrorIdToAriaAttribute(t,r){Fi(this.__target,"aria-describedby",{newId:t,oldId:r,fromUser:!1})}__setHelperIdToAriaAttribute(t,r){Fi(this.__target,"aria-describedby",{newId:t,oldId:r,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3508
+ * @license
3509
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
3510
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3511
+ */class An extends nt{constructor(t,r,s,i={}){super(t,r,s,Qr(Jr({},i),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const r=this.getSlotChild();r&&r!==this.defaultNode?this.__notifyChange(r):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(r=>{r.forEach(s=>{const i=s.target,o=i===this.node;s.type==="attributes"?o&&this.__updateNodeId(i):(o||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const r=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||r)&&!t.id&&(t.id=this.defaultId)}}/**
3512
+ * @license
3513
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3514
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3515
+ */class Bb extends An{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:r,invalid:s}=this,i=!!(s&&r&&r.trim()!=="");t&&(t.textContent=i?r:"",t.hidden=!i,i?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}/**
3516
+ * @license
3517
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3518
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3519
+ */class $b extends An{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const r=this.attachDefaultNode();this.observeNode(r)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3520
+ * @license
3521
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3522
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3523
+ */class Yb extends An{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const r=this.attachDefaultNode();this.observeNode(r)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3524
+ * @license
3525
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3526
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3527
+ */const Ub=q(e=>class extends Jt(e){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Yb(this),this._labelController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-label",r.detail.hasContent)})}get _labelId(){const r=this._labelNode;return r&&r.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(r){this._labelController.setLabel(r)}});/**
3528
+ * @license
3529
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3530
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3531
+ */const Uc=q(e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const r=this.checkValidity();return this._setInvalid(!r),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:r}})),r}checkValidity(){return!this.required||!!this.value}_setInvalid(r){this._shouldSetInvalid(r)&&(this.invalid=r)}_shouldSetInvalid(r){return!0}});/**
3532
+ * @license
3533
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3534
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3535
+ */const Wb=e=>class extends Uc(Ub(Jt(e))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Fb(this),this._helperController=new $b(this),this._errorController=new Bb(this),this._errorController.addEventListener("slot-content-changed",r=>{this.toggleAttribute("has-error-message",r.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",r=>{const{hasContent:s,node:i}=r.detail;this.__labelChanged(s,i)}),this._helperController.addEventListener("slot-content-changed",r=>{const{hasContent:s,node:i}=r.detail;this.toggleAttribute("has-helper",s),this.__helperChanged(s,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(r,s){r?this._fieldAriaController.setHelperId(s.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(r){this._fieldAriaController.setAriaLabel(r)}_accessibleNameRefChanged(r){this._fieldAriaController.setLabelId(r,!0)}__labelChanged(r,s){r?this._fieldAriaController.setLabelId(s.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(r){this._errorController.setErrorMessage(r)}_helperTextChanged(r){this._helperController.setHelperText(r)}_ariaTargetChanged(r){r&&this._fieldAriaController.setTarget(r)}_requiredChanged(r){this._fieldAriaController.setRequired(r)}_invalidChanged(r){this._errorController.setInvalid(r),setTimeout(()=>{if(r){const s=this._errorNode;this._fieldAriaController.setErrorId(s&&s.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3536
+ * @license
3537
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3538
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3539
+ */const jb=q(e=>class extends e{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(r){r&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(r=>{this._delegateAttribute(r,this[r])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(r=>{this._delegateProperty(r,this[r])})}_delegateAttrsChanged(...r){this.constructor.delegateAttrs.forEach((s,i)=>{this._delegateAttribute(s,r[i])})}_delegatePropsChanged(...r){this.constructor.delegateProps.forEach((s,i)=>{this._delegateProperty(s,r[i])})}_delegateAttribute(r,s){this.stateTarget&&(r==="invalid"&&this._delegateAttribute("aria-invalid",s?"true":!1),typeof s=="boolean"?this.stateTarget.toggleAttribute(r,s):s?this.stateTarget.setAttribute(r,s):this.stateTarget.removeAttribute(r))}_delegateProperty(r,s){this.stateTarget&&(this.stateTarget[r]=s)}});/**
3540
+ * @license
3541
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3542
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3543
+ */const Wc=q(e=>class extends jb(Uc(Bc(e))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(r=>this[r]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(r){return r.some(s=>this.__isValidConstraint(s))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(r,...s){if(!r)return;const i=this._hasValidConstraints(s),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}__isValidConstraint(r){return!!r||r===0}});/**
3544
+ * @license
3545
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3546
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3547
+ */const Vb=e=>class extends Lb(Fc(Wc(Wb(Hb(ri(e)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3548
+ :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3549
+ font: inherit;
3550
+ color: inherit;
3551
+ }
3552
+ `]}_onFocus(r){super._onFocus(r),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(r){r.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:r},bubbles:r.bubbles,cancelable:r.cancelable}))}_addInputListeners(r){super._addInputListeners(r),r.addEventListener("paste",this._boundOnPaste),r.addEventListener("drop",this._boundOnDrop),r.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(r){super._removeInputListeners(r),r.removeEventListener("paste",this._boundOnPaste),r.removeEventListener("drop",this._boundOnDrop),r.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(r){super._onKeyDown(r),this.allowedCharPattern&&!this.__shouldAcceptKey(r)&&(r.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ir.debounce(this._preventInputDebouncer,Os.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(r){return r.metaKey||r.ctrlKey||!r.key||r.key.length!==1||this.__allowedCharRegExp.test(r.key)}_onPaste(r){if(this.allowedCharPattern){const s=r.clipboardData.getData("text");this.__allowedTextRegExp.test(s)||(r.preventDefault(),this._markInputPrevented())}}_onDrop(r){if(this.allowedCharPattern){const s=r.dataTransfer.getData("text");this.__allowedTextRegExp.test(s)||(r.preventDefault(),this._markInputPrevented())}}_onBeforeInput(r){this.allowedCharPattern&&r.data&&!this.__allowedTextRegExp.test(r.data)&&(r.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(r){if(r)try{this.__allowedCharRegExp=new RegExp(`^${r}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${r}*$`,"u")}catch(s){console.error(s)}}};/**
3553
+ * @license
3554
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3555
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3556
+ */class Gb extends nt{constructor(t,r){super(t,"input","input",{initializer:(s,i)=>{i.value&&(s.value=i.value),i.type&&s.setAttribute("type",i.type),s.id=this.defaultId,typeof r=="function"&&r(s)},useUniqueId:!0})}}/**
3557
+ * @license
3558
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3559
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3560
+ */class qb{constructor(t,r){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),r.addEventListener("slot-content-changed",s=>{this.__initLabel(s.detail.node)}),this.__initLabel(r.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=r=>{r.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3561
+ * @license
3562
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3563
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3564
+ */const Xb=x`
3565
+ [part='clear-button'] {
3566
+ display: none;
3567
+ cursor: default;
3568
+ }
3569
+
3570
+ [part='clear-button']::before {
3571
+ content: '\\2715';
3572
+ }
3573
+
3574
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
3575
+ display: block;
3576
+ }
3577
+ `;/**
3578
+ * @license
3579
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3580
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3581
+ */const Zb=x`
3582
+ :host {
3583
+ display: inline-flex;
3584
+ outline: none;
3585
+ }
3586
+
3587
+ :host::before {
3588
+ content: '\\2003';
3589
+ width: 0;
3590
+ display: inline-block;
3591
+ /* Size and position this element on the same vertical position as the input-field element
3592
+ to make vertical align for the host element work as expected */
3593
+ }
3594
+
3595
+ :host([hidden]) {
3596
+ display: none !important;
3597
+ }
3598
+
3599
+ :host(:not([has-label])) [part='label'] {
3600
+ display: none;
3601
+ }
3602
+
3603
+ @media (forced-colors: active) {
3604
+ :host(:not([readonly])) [part='input-field'] {
3605
+ outline: 1px solid;
3606
+ outline-offset: -1px;
3607
+ }
3608
+ :host([focused]) [part='input-field'] {
3609
+ outline-width: 2px;
3610
+ }
3611
+ :host([disabled]) [part='input-field'] {
3612
+ outline-color: GrayText;
3613
+ }
3614
+ }
3615
+ `;/**
3616
+ * @license
3617
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3618
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3619
+ */const Kb=x`
3620
+ [class$='container'] {
3621
+ display: flex;
3622
+ flex-direction: column;
3623
+ min-width: 100%;
3624
+ max-width: 100%;
3625
+ width: var(--vaadin-field-default-width, 12em);
3626
+ }
3627
+ `;/**
3628
+ * @license
3629
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
3630
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3631
+ */const Jb=[Zb,Kb,Xb];/**
3632
+ * @license
3633
+ * Copyright (c) 2023 Vaadin Ltd.
3634
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3635
+ */const Qb=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(r,s){if(!s||r===void 0)return;const{classList:i}=s;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&i.remove(...n)}const o=typeof r=="string"?r.split(" "):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
3636
+ * @license
3637
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3638
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3639
+ */class ex{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
3640
+ * @license
3641
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3642
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3643
+ */const tx=e=>class extends Qb(Jt(Fc(Wc(ri(e))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(r){const s=String(r.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[r.month+1,r.day,s].join("/")},parseDate(r){const s=r.split("/"),i=new Date;let o,n=i.getMonth(),a=i.getFullYear();if(s.length===3){if(n=parseInt(s[0])-1,o=parseInt(s[1]),a=parseInt(s[2]),s[2].length<3&&a>=0){const l=this.referenceDate?fr(this.referenceDate):new Date;a=ob(l,a,n,o)}}else s.length===2?(n=parseInt(s[0])-1,o=parseInt(s[1])):s.length===1&&(o=parseInt(s[0]));if(o!==void 0)return{day:o,month:n,year:a}},formatTitle:(r,s)=>`${r} ${s}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Cc},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(r){super._inputElementValue=r,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(r){super._onFocus(r),this._noInput&&r.target.blur()}_onBlur(r){super._onBlur(r),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new zc(this._fullscreenMediaQuery,s=>{this._fullscreen=s})),this.addController(new ex(this));const r=this.$.overlay;this._overlayElement=r,r.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(r){if(r.firstChild)return;const s=document.createElement("vaadin-date-picker-overlay-content");r.appendChild(s),this._overlayContent=s,s.addEventListener("close",()=>{this._close()}),s.addEventListener("focus-input",this._focusAndSelect.bind(this)),s.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),s.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),s.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),s.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(r){if(!this.i18n.parseDate)return;let s=this.i18n.parseDate(r);if(s&&(s=fr(`${s.year}-${s.month+1}-${s.day}`)),s&&!isNaN(s.getTime()))return s}__formatDate(r){if(this.i18n.formatDate)return this.i18n.formatDate(kc(r))}checkValidity(){const r=this._inputElementValue,s=!r||!!this._selectedDate&&r===this.__formatDate(this._selectedDate),i=!this._selectedDate||Lr(this._selectedDate,this._minDate,this._maxDate);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),s&&i&&o}_shouldSetFocus(r){return!this._shouldKeepFocusRing}_shouldRemoveFocus(r){return!this.opened}_setFocused(r){super._setFocused(r),this._shouldKeepFocusRing=r&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(r){const s=this.value;this._selectedDate=r,s!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(r,s,i,o,n,a){return!r||s&&(!a||n)||i&&n||!o.parseDate}_formatISO(r){if(!(r instanceof Date))return"";const s=(c,h="00")=>(h+c).substr((h+c).length-h.length);let i="",o="0000",n=r.getFullYear();n<0?(n=-n,i="-",o="000000"):r.getFullYear()>=1e4&&(i="+",o="000000");const a=i+s(n,o),l=s(r.getMonth()+1),u=s(r.getDate());return[a,l,u].join("-")}_inputElementChanged(r){super._inputElementChanged(r),r&&(r.autocomplete="off",r.setAttribute("role","combobox"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(r){this.inputElement&&this.inputElement.setAttribute("aria-expanded",r)}_selectedDateChanged(r,s){r===void 0||s===void 0||(this.__keepInputValue||this._applyInputValue(r),this.value=this._formatISO(r),this._ignoreFocusedDateChange=!0,this._focusedDate=r,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(r,s){r===void 0||s===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(r)}_valueChanged(r,s){const i=fr(r);if(r&&!i){this.value=s;return}r?Fe(this._selectedDate,i)||(this._selectedDate=i,s!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(r,s,i,o,n,a,l,u){r&&(r.i18n=s,r.label=i,r.minDate=o,r.maxDate=n,r.focusedDate=a,r.selectedDate=l,r.showWeekNumbers=u)}__updateOverlayContentTheme(r,s){r&&(s?r.setAttribute("theme",s):r.removeAttribute("theme"))}__updateOverlayContentFullScreen(r,s){r&&r.toggleAttribute("fullscreen",s)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const r=this._overlayContent;r.reset();const s=this._getInitialPosition();r.initialPosition=s;const i=r.focusedDate||s;r.scrollToDate(i),this._ignoreFocusedDateChange=!0,r.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(r.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const n=this._noInput?r:[o,r];this.__showOthers=Dc(n)}_getInitialPosition(){const r=fr(this.initialPosition),s=this._selectedDate||this._overlayContent.initialPosition||r||new Date;return r||Lr(s,this._minDate,this._maxDate)?s:Pc(s,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const r=this._inputElementValue||"",s=this.__parseDate(r);s?this._selectDate(s):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(r){(r.target===window||!this._overlayContent.contains(r.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(r){this._inputElementValue=r?this.__formatDate(r):""}_setSelectionRange(r,s){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(r,s)}_onChange(r){r.stopPropagation()}_onClick(r){this._isClearButton(r)||this._onHostClick(r)}_onHostClick(r){(!this.autoOpenDisabled||this._noInput)&&(r.preventDefault(),this.open())}_onClearButtonClick(r){r.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(r){switch(super._onKeyDown(r),this._noInput&&[9].indexOf(r.keyCode)===-1&&r.preventDefault(),r.key){case"ArrowDown":case"ArrowUp":r.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(r.preventDefault(),r.stopPropagation(),this._setSelectionRange(0,0),r.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(r){const s=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),s===this.value&&this.validate()}_onEscape(r){if(!this.opened){if(this.clearButtonVisible&&this.value){r.stopPropagation(),this._onClearButtonClick(r);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(r){return r.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const r=this.__parseDate(this._inputElementValue);r&&(this._ignoreFocusedDateChange=!0,Fe(r,this._focusedDate)||(this._focusedDate=r),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(r){return fr(r)}};/**
3644
+ * @license
3645
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3646
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3647
+ */const rx=x`
3648
+ :host([opened]) {
3649
+ pointer-events: auto;
3650
+ }
3651
+
3652
+ :host([dir='rtl']) [part='input-field'] {
3653
+ direction: ltr;
3654
+ }
3655
+
3656
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
3657
+ direction: rtl;
3658
+ text-align: left;
3659
+ }
3660
+ `;/**
3661
+ * @license
3662
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3663
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3664
+ */W("vaadin-date-picker",[Jb,rx],{moduleId:"vaadin-date-picker-styles"});class sx extends tx(Vb(ft(uc(Je)))){static get is(){return"vaadin-date-picker"}static get template(){return mt`
3665
+ <div class="vaadin-date-picker-container">
3666
+ <div part="label">
3667
+ <slot name="label"></slot>
3668
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
3669
+ </div>
3670
+
3671
+ <vaadin-input-container
3672
+ part="input-field"
3673
+ readonly="[[readonly]]"
3674
+ disabled="[[disabled]]"
3675
+ invalid="[[invalid]]"
3676
+ theme$="[[_theme]]"
3677
+ >
3678
+ <slot name="prefix" slot="prefix"></slot>
3679
+ <slot name="input"></slot>
3680
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
3681
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
3682
+ </vaadin-input-container>
3683
+
3684
+ <div part="helper-text">
3685
+ <slot name="helper"></slot>
3686
+ </div>
3687
+
3688
+ <div part="error-message">
3689
+ <slot name="error-message"></slot>
3690
+ </div>
3691
+ </div>
3692
+
3693
+ <vaadin-date-picker-overlay
3694
+ id="overlay"
3695
+ fullscreen$="[[_fullscreen]]"
3696
+ theme$="[[_theme]]"
3697
+ opened="{{opened}}"
3698
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
3699
+ on-vaadin-overlay-open="_onOverlayOpened"
3700
+ on-vaadin-overlay-closing="_onOverlayClosed"
3701
+ restore-focus-on-close
3702
+ restore-focus-node="[[inputElement]]"
3703
+ ></vaadin-date-picker-overlay>
3704
+
3705
+ <slot name="tooltip"></slot>
3706
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Gb(this,r=>{this._setInputElement(r),this._setFocusElement(r),this.stateTarget=r,this.ariaTarget=r})),this.addController(new qb(this.inputElement,this._labelController)),this._tooltipController=new dc(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(r=>!r.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",r=>r.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}me(sx);function ix(e){Qc(e,"svelte-1btclz8",'.PlayerSelfExclusionTitle.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{display:none}.SelfExclusionWrapper.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription.svelte-1btclz8 .SelfExclusionDescriptionText a.svelte-1btclz8.svelte-1btclz8{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper.svelte-1btclz8 label.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{width:100%}.SelfExclusionRadioWrapper.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper.svelte-1btclz8 label.svelte-1btclz8.svelte-1btclz8{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper.svelte-1btclz8 input.svelte-1btclz8.svelte-1btclz8{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper.svelte-1btclz8 .Checkmark.svelte-1btclz8.svelte-1btclz8{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper.svelte-1btclz8 input.svelte-1btclz8:checked~.Checkmark.svelte-1btclz8{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper.svelte-1btclz8 .Checkmark.svelte-1btclz8.svelte-1btclz8:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper.svelte-1btclz8 input.svelte-1btclz8:checked~.Checkmark.svelte-1btclz8:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile.svelte-1btclz8 label.svelte-1btclz8.svelte-1btclz8{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{margin-top:40px;width:50%}.SelfExclusionActionButtons.svelte-1btclz8 .SelfExclusionSave.svelte-1btclz8.svelte-1btclz8{cursor:pointer;font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-1btclz8.svelte-1btclz8.svelte-1btclz8{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile.svelte-1btclz8 .SelfExclusionSave.svelte-1btclz8.svelte-1btclz8{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function ox(e){let t,r,s,i,o,n,a,l,u,c,h=e[8]("titleSelfExclusion")+"",d,f,_;return{c(){t=R("div"),r=gt("svg"),s=gt("defs"),i=gt("style"),o=ne(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=gt("g"),a=gt("g"),l=gt("path"),u=se(),c=R("h2"),d=ne(h),S(l,"class","aaa"),S(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),S(l,"transform","translate(15 15) rotate(180)"),S(a,"transform","translate(20 158)"),S(n,"transform","translate(-20 -158)"),S(r,"xmlns","http://www.w3.org/2000/svg"),S(r,"width","15"),S(r,"height","15"),S(r,"viewBox","0 0 15 15"),S(c,"class","PlayerSelfExclusionTitleMobile svelte-1btclz8"),S(t,"class","MenuReturnButton svelte-1btclz8")},m(g,T){Rr(g,t,T),v(t,r),v(r,s),v(s,i),v(i,o),v(r,n),v(n,a),v(a,l),v(t,u),v(t,c),v(c,d),f||(_=Bi(t,"click",e[17]),f=!0)},p(g,T){T[0]&256&&h!==(h=g[8]("titleSelfExclusion")+"")&&he(d,h)},d(g){g&&Wt(t),f=!1,_()}}}function nx(e){let t,r,s=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"",i;return{c(){t=R("p"),r=R("strong"),i=ne(s),S(t,"class","SelfExclusionDescriptionText")},m(o,n){Rr(o,t,n),v(t,r),v(r,i)},p(o,n){n[0]&288&&s!==(s=o[8]("temporarySelfExclusion",{values:{date:o[5]}})+"")&&he(i,s)},d(o){o&&Wt(t)}}}function ax(e){let t,r,s=e[8]("permanentSelfExclusion")+"",i;return{c(){t=R("p"),r=R("strong"),i=ne(s),S(t,"class","SelfExclusionDescriptionText")},m(o,n){Rr(o,t,n),v(t,r),v(r,i)},p(o,n){n[0]&256&&s!==(s=o[8]("permanentSelfExclusion")+"")&&he(i,s)},d(o){o&&Wt(t)}}}function lx(e){let t,r,s,i,o=e[8]("titleSelfExclusion")+"",n,a,l,u,c=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"",h,d,f,_=e[8]("selfExclusionText2")+"",g,T,k,M=e[8]("selfExclusionText3",{values:{operatorname:e[0]}})+"",$,te,V,ue=e[8]("selfExclusionText4")+"",De,Qt,Pe,er,_t,jr,We,et,yt=e[8]("duration")+"",tr,Vr,_e,w,re,Q,Gr=e[8]("forever")+"",ii,Cn,rr,Dn,qr,Pn,sr,kn,Xr,ir,Zr=e[8]("save")+"",oi,ni,Mn,tt=e[9]&&ox(e);function On(z,X){return z[4]?ax:nx}let Kr=On(e),we=Kr(e);return{c(){t=R("div"),r=R("form"),tt&&tt.c(),s=se(),i=R("h2"),n=ne(o),a=se(),l=R("div"),u=R("p"),h=ne(c),d=se(),f=R("p"),g=ne(_),T=se(),k=R("p"),$=ne(M),te=se(),V=R("p"),De=ne(ue),Qt=se(),Pe=R("a"),er=ne(e[1]),jr=se(),We=R("div"),et=R("label"),tr=ne(yt),Vr=se(),_e=R("vaadin-date-picker"),w=se(),re=R("div"),Q=R("label"),ii=ne(Gr),Cn=se(),rr=R("input"),Dn=se(),qr=R("span"),Pn=se(),sr=R("div"),we.c(),kn=se(),Xr=R("div"),ir=R("button"),oi=ne(Zr),S(i,"class","PlayerSelfExclusionTitle "+(e[9]?"PlayerSelfExclusionTitleNone":"")+" svelte-1btclz8"),S(u,"class","SelfExclusionDescriptionText"),S(f,"class","SelfExclusionDescriptionText"),S(k,"class","SelfExclusionDescriptionText"),S(Pe,"href",_t="mailto:"+e[1]),S(Pe,"class","svelte-1btclz8"),S(V,"class","SelfExclusionDescriptionText"),S(l,"class","SelfExclusionDescription "+(e[9]?"SelfExclusionDescriptionMobile":"")+" svelte-1btclz8"),S(et,"for","SelfExclusionDate"),S(et,"class","svelte-1btclz8"),vt(_e,"min",e[6]),vt(_e,"max",e[7]),vt(_e,"value",e[6]),S(We,"class","SelfExclusionDateWrapper "+(e[9]?"SelfExclusionDateWrapperMobile":"")+" svelte-1btclz8"),S(rr,"type","Checkbox"),S(rr,"class","svelte-1btclz8"),S(qr,"class","Checkmark svelte-1btclz8"),S(qr,"part","Checkmark"),S(Q,"class","SelfExclusionRadio svelte-1btclz8"),S(re,"class","SelfExclusionRadioWrapper "+(e[9]?"SelfExclusionRadioWrapperMobile":"")+" svelte-1btclz8"),S(sr,"class","SelfExclusionDescription "+(e[9]?"SelfExclusionDescriptionMobile":"")+" svelte-1btclz8"),S(ir,"class","SelfExclusionSave svelte-1btclz8"),S(Xr,"class","SelfExclusionActionButtons "+(e[9]?"SelfExclusionActionButtonsMobile":"")+" svelte-1btclz8"),S(r,"class","SelfExclusionWrapper "+(e[9]?"SelfExclusionWrapperMobile":"")+" svelte-1btclz8")},m(z,X){Rr(z,t,X),v(t,r),tt&&tt.m(r,null),v(r,s),v(r,i),v(i,n),v(r,a),v(r,l),v(l,u),v(u,h),v(l,d),v(l,f),v(f,g),v(l,T),v(l,k),v(k,$),v(l,te),v(l,V),v(V,De),v(V,Qt),v(V,Pe),v(Pe,er),v(r,jr),v(r,We),v(We,et),v(et,tr),v(We,Vr),v(We,_e),e[18](_e),v(r,w),v(r,re),v(re,Q),v(Q,ii),v(Q,Cn),v(Q,rr),v(Q,Dn),v(Q,qr),v(r,Pn),v(r,sr),we.m(sr,null),v(r,kn),v(r,Xr),v(Xr,ir),v(ir,oi),e[21](t),ni||(Mn=[Bi(rr,"click",e[19]),Bi(ir,"click",e[20])],ni=!0)},p(z,X){z[9]&&tt.p(z,X),X[0]&256&&o!==(o=z[8]("titleSelfExclusion")+"")&&he(n,o),X[0]&257&&c!==(c=z[8]("selfExclusionText1",{values:{operatorname:z[0]}})+"")&&he(h,c),X[0]&256&&_!==(_=z[8]("selfExclusionText2")+"")&&he(g,_),X[0]&257&&M!==(M=z[8]("selfExclusionText3",{values:{operatorname:z[0]}})+"")&&he($,M),X[0]&256&&ue!==(ue=z[8]("selfExclusionText4")+"")&&he(De,ue),X[0]&2&&he(er,z[1]),X[0]&2&&_t!==(_t="mailto:"+z[1])&&S(Pe,"href",_t),X[0]&256&&yt!==(yt=z[8]("duration")+"")&&he(tr,yt),X[0]&64&&vt(_e,"min",z[6]),X[0]&128&&vt(_e,"max",z[7]),X[0]&64&&vt(_e,"value",z[6]),X[0]&256&&Gr!==(Gr=z[8]("forever")+"")&&he(ii,Gr),Kr===(Kr=On(z))&&we?we.p(z,X):(we.d(1),we=Kr(z),we&&(we.c(),we.m(sr,null))),X[0]&256&&Zr!==(Zr=z[8]("save")+"")&&he(oi,Zr)},i:ge,o:ge,d(z){z&&Wt(t),tt&&tt.d(),e[18](null),we.d(),e[21](null),ni=!1,Ut(Mn)}}}function ux(e,t,r){let s;Jc(e,vf,w=>r(8,s=w));let{lang:i="en"}=t,{operator:o="Everymatrix"}=t,{supportemail:n=""}=t,{clientstyling:a=""}=t,{clientstylingurl:l=""}=t,{translationurl:u=""}=t,c,h=window.navigator.userAgent,d=bf(h)!=="PC",f,_=!1,g="",T="",k=new Date,M,$;const te=()=>{fetch(u).then(re=>re.json()).then(re=>{Object.keys(re).forEach(Q=>{la(Q,re[Q])})}).catch(re=>{console.log(re)})};Object.keys(ua).forEach(w=>{la(w,ua[w])}),M=m(k.setDate(k.getDate())).add(6,"M").format("YYYY-MM-DD"),$=m(k.setDate(k.getDate())).add(5,"y").format("YYYY-MM-DD"),T=M;const V=()=>{_==!1?r(4,_=!0):r(4,_=!1)},ue=w=>{_==!0?g="SelfExclusionPermanent":(g="SelfExclusionUntilSelectedDate",w&&w.length>0&&r(5,T=w))},De=w=>{w.preventDefault(),ue(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:g,selfExclusionExpiryDate:T},window.location.href)},Qt=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:d},window.location.href)},Pe=w=>{ue(w.target.value)},er=()=>{f.addEventListener("change",Pe,!1)},_t=()=>{let w=document.createElement("style");w.innerHTML=a,c.appendChild(w)},jr=()=>{let w=new URL(l),re=document.createElement("style");fetch(w.href).then(Q=>Q.text()).then(Q=>{re.innerHTML=Q,setTimeout(()=>{c.appendChild(re)},1)})};oh(()=>()=>{f.removeEventListener("change",Pe)});const We=()=>{w0(i)},et=()=>Qt();function yt(w){vs[w?"unshift":"push"](()=>{f=w,r(3,f)})}const tr=()=>V(),Vr=w=>De(w);function _e(w){vs[w?"unshift":"push"](()=>{c=w,r(2,c)})}return e.$$set=w=>{"lang"in w&&r(13,i=w.lang),"operator"in w&&r(0,o=w.operator),"supportemail"in w&&r(1,n=w.supportemail),"clientstyling"in w&&r(14,a=w.clientstyling),"clientstylingurl"in w&&r(15,l=w.clientstylingurl),"translationurl"in w&&r(16,u=w.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&8&&f&&er(),e.$$.dirty[0]&8192&&i&&We(),e.$$.dirty[0]&32772&&l&&c&&jr(),e.$$.dirty[0]&16388&&a&&c&&_t(),e.$$.dirty[0]&65536&&u&&te()},[o,n,c,f,_,T,M,$,s,d,V,De,Qt,i,a,l,u,et,yt,tr,Vr,_e]}class jc extends yh{constructor(t){super(),mh(this,t,ux,lx,Qa,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},ix,[-1,-1])}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),je()}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),je()}get supportemail(){return this.$$.ctx[1]}set supportemail(t){this.$$set({supportemail:t}),je()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),je()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),je()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),je()}}_h(jc,{lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=jc;