@everymatrix/player-account-self-exclusion 1.52.7 → 1.53.0

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,4175 @@
1
+ "use strict";var Ua=Object.defineProperty,ja=Object.defineProperties;var Va=Object.getOwnPropertyDescriptors;var vi=Object.getOwnPropertySymbols;var Ya=Object.prototype.hasOwnProperty,Ga=Object.prototype.propertyIsEnumerable;var Ir=(t,r,e)=>r in t?Ua(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Wt=(t,r)=>{for(var e in r||(r={}))Ya.call(r,e)&&Ir(t,e,r[e]);if(vi)for(var e of vi(r))Ga.call(r,e)&&Ir(t,e,r[e]);return t},qt=(t,r)=>ja(t,Va(r));var be=(t,r,e)=>Ir(t,typeof r!="symbol"?r+"":r,e);var yt=(t,r,e)=>new Promise((o,i)=>{var s=l=>{try{a(e.next(l))}catch(u){i(u)}},n=l=>{try{a(e.throw(l))}catch(u){i(u)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,n);a((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function we(){}function $s(t){return t()}function xi(){return Object.create(null)}function ft(t){t.forEach($s)}function Wo(t){return typeof t=="function"}function Bs(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}function Wa(t){return Object.keys(t).length===0}function zs(t,...r){if(t==null){for(const o of r)o(void 0);return we}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function qa(t,r,e){t.$$.on_destroy.push(zs(r,e))}function x(t,r){t.appendChild(r)}function Xa(t,r,e){const o=Ka(t);if(!o.getElementById(r)){const i=z("style");i.id=r,i.textContent=e,Ja(o,i)}}function Ka(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function Ja(t,r){return x(t.head||t,r),r.sheet}function Me(t,r,e){t.insertBefore(r,e||null)}function Ae(t){t.parentNode&&t.parentNode.removeChild(t)}function Za(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function z(t){return document.createElement(t)}function Pe(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function he(t){return document.createTextNode(t)}function le(){return he(" ")}function ur(t,r,e,o){return t.addEventListener(r,e,o),()=>t.removeEventListener(r,e,o)}function T(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}function Q(t,r,e){const o=r.toLowerCase();o in t?t[o]=typeof t[o]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:T(t,r,e)}function Qa(t){return Array.from(t.childNodes)}function ye(t,r){r=""+r,t.data!==r&&(t.data=r)}function Xe(t,r,e){t.classList.toggle(r,!!e)}function el(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}let kt;function Pt(t){kt=t}function tl(){if(!kt)throw new Error("Function called outside component initialization");return kt}function rl(t){tl().$$.on_mount.push(t)}const Qe=[],cr=[];let tt=[];const wi=[],ol=Promise.resolve();let uo=!1;function il(){uo||(uo=!0,ol.then(xe))}function co(t){tt.push(t)}const Nr=new Set;let Ke=0;function xe(){if(Ke!==0)return;const t=kt;do{try{for(;Ke<Qe.length;){const r=Qe[Ke];Ke++,Pt(r),sl(r.$$)}}catch(r){throw Qe.length=0,Ke=0,r}for(Pt(null),Qe.length=0,Ke=0;cr.length;)cr.pop()();for(let r=0;r<tt.length;r+=1){const e=tt[r];Nr.has(e)||(Nr.add(e),e())}tt.length=0}while(Qe.length);for(;wi.length;)wi.pop()();uo=!1,Nr.clear(),Pt(t)}function sl(t){if(t.fragment!==null){t.update(),ft(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(co)}}function nl(t){const r=[],e=[];tt.forEach(o=>t.indexOf(o)===-1?r.push(o):e.push(o)),e.forEach(o=>o()),tt=r}const al=new Set;function ll(t,r){t&&t.i&&(al.delete(t),t.i(r))}function Ei(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ul(t,r,e){const{fragment:o,after_update:i}=t.$$;o&&o.m(r,e),co(()=>{const s=t.$$.on_mount.map($s).filter(Wo);t.$$.on_destroy?t.$$.on_destroy.push(...s):ft(s),t.$$.on_mount=[]}),i.forEach(co)}function cl(t,r){const e=t.$$;e.fragment!==null&&(nl(e.after_update),ft(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function hl(t,r){t.$$.dirty[0]===-1&&(Qe.push(t),il(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function dl(t,r,e,o,i,s,n=null,a=[-1]){const l=kt;Pt(t);const u=t.$$={fragment:null,ctx:[],props:s,update:we,not_equal:i,bound:xi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:xi(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};n&&n(u.root);let c=!1;if(u.ctx=e?e(t,r.props||{},(h,d,...f)=>{const p=f.length?f[0]:d;return u.ctx&&i(u.ctx[h],u.ctx[h]=p)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](p),c&&hl(t,h)),d}):[],u.update(),c=!0,ft(u.before_update),u.fragment=o?o(u.ctx):!1,r.target){if(r.hydrate){const h=Qa(r.target);u.fragment&&u.fragment.l(h),h.forEach(Ae)}else u.fragment&&u.fragment.c();r.intro&&ll(t.$$.fragment),ul(t,r.target,r.anchor),xe()}Pt(l)}let Fs;typeof HTMLElement=="function"&&(Fs=class extends HTMLElement{constructor(r,e,o){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);this.$$ctor=r,this.$$s=e,o&&this.attachShadow({mode:"open"})}addEventListener(r,e,o){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const i=this.$$c.$on(r,e);this.$$l_u.set(e,i)}super.addEventListener(r,e,o)}removeEventListener(r,e,o){if(super.removeEventListener(r,e,o),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}connectedCallback(){return yt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return()=>{let n;return{c:function(){n=z("slot"),s!=="default"&&T(n,"name",s)},m:function(u,c){Me(u,n,c)},d:function(u){u&&Ae(n)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const e={},o=el(this);for(const s of this.$$s)s in o&&(e[s]=[r(s)]);for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=tr(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:qt(Wt({},this.$$d),{$$slots:e,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const n=tr(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const s in this.$$l)for(const n of this.$$l[s]){const a=this.$$c.$on(s,n);this.$$l_u.set(n,a)}this.$$l={}}})}attributeChangedCallback(r,e,o){var i;this.$$r||(r=this.$$g_p(r),this.$$d[r]=tr(r,o,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(r){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function tr(t,r,e,o){var s;const i=(s=e[t])==null?void 0:s.type;if(r=i==="Boolean"&&typeof r!="boolean"?r!=null:r,!o||!e[t])return r;if(o==="toAttribute")switch(i){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r==null?null:r;default:return r}else switch(i){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function fl(t,r,e,o,i,s){let n=class extends Fs{constructor(){super(t,e,i),this.$$p_d=r}static get observedAttributes(){return Object.keys(r).map(a=>(r[a].attribute||a).toLowerCase())}};return Object.keys(r).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=tr(a,l,r),this.$$d[a]=l,(u=this.$$c)==null||u.$set({[a]:l})}})}),o.forEach(a=>{Object.defineProperty(n.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),t.element=n,n}class pl{constructor(){be(this,"$$");be(this,"$$set")}$destroy(){cl(this,1),this.$destroy=we}$on(r,e){if(!Wo(e))return we;const o=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return o.push(e),()=>{const i=o.indexOf(e);i!==-1&&o.splice(i,1)}}$set(r){this.$$set&&!Wa(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const ml="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ml);var ho=function(t,r){return ho=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])},ho(t,r)};function Oe(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ho(t,r);function e(){this.constructor=t}t.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var B=function(){return B=Object.assign||function(r){for(var e,o=1,i=arguments.length;o<i;o++){e=arguments[o];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}return r},B.apply(this,arguments)};function _l(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(e[o[i]]=t[o[i]]);return e}function fo(t){var r=typeof Symbol=="function"&&Symbol.iterator,e=r&&t[r],o=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function po(t,r){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var o=e.call(t),i,s=[],n;try{for(;(r===void 0||r-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return s}function rt(t,r,e){if(e||arguments.length===2)for(var o=0,i=r.length,s;o<i;o++)(s||!(o in r))&&(s||(s=Array.prototype.slice.call(r,0,o)),s[o]=r[o]);return t.concat(s||Array.prototype.slice.call(r))}function De(t){return typeof t=="function"}function Rs(t){var r=function(o){Error.call(o),o.stack=new Error().stack},e=t(r);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Lr=Rs(function(t){return function(e){t(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(o,i){return i+1+") "+o.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function mo(t,r){if(t){var e=t.indexOf(r);0<=e&&t.splice(e,1)}}var xr=function(){function t(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var r,e,o,i,s;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var a=fo(n),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(y){r={error:y}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}else n.remove(this);var c=this.initialTeardown;if(De(c))try{c()}catch(y){s=y instanceof Lr?y.errors:[y]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=fo(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{Si(p)}catch(y){s=s!=null?s:[],y instanceof Lr?s=rt(rt([],po(s)),po(y.errors)):s.push(y)}}}catch(y){o={error:y}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}if(s)throw new Lr(s)}},t.prototype.add=function(r){var e;if(r&&r!==this)if(this.closed)Si(r);else{if(r instanceof t){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(r)}},t.prototype._hasParent=function(r){var e=this._parentage;return e===r||Array.isArray(e)&&e.includes(r)},t.prototype._addParent=function(r){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(r),e):e?[e,r]:r},t.prototype._removeParent=function(r){var e=this._parentage;e===r?this._parentage=null:Array.isArray(e)&&mo(e,r)},t.prototype.remove=function(r){var e=this._finalizers;e&&mo(e,r),r instanceof t&&r._removeParent(this)},t.EMPTY=function(){var r=new t;return r.closed=!0,r}(),t}(),Us=xr.EMPTY;function js(t){return t instanceof xr||t&&"closed"in t&&De(t.remove)&&De(t.add)&&De(t.unsubscribe)}function Si(t){De(t)?t():t.unsubscribe()}var Vs={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},gl={setTimeout:function(t,r){for(var e=[],o=2;o<arguments.length;o++)e[o-2]=arguments[o];return setTimeout.apply(void 0,rt([t,r],po(e)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function bl(t){gl.setTimeout(function(){throw t})}function Ai(){}function rr(t){t()}var Ys=function(t){Oe(r,t);function r(e){var o=t.call(this)||this;return o.isStopped=!1,e?(o.destination=e,js(e)&&e.add(o)):o.destination=wl,o}return r.create=function(e,o,i){return new _o(e,o,i)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(xr),yl=Function.prototype.bind;function Hr(t,r){return yl.call(t,r)}var vl=function(){function t(r){this.partialObserver=r}return t.prototype.next=function(r){var e=this.partialObserver;if(e.next)try{e.next(r)}catch(o){Xt(o)}},t.prototype.error=function(r){var e=this.partialObserver;if(e.error)try{e.error(r)}catch(o){Xt(o)}else Xt(r)},t.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(e){Xt(e)}},t}(),_o=function(t){Oe(r,t);function r(e,o,i){var s=t.call(this)||this,n;if(De(e)||!e)n={next:e!=null?e:void 0,error:o!=null?o:void 0,complete:i!=null?i:void 0};else{var a;s&&Vs.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},n={next:e.next&&Hr(e.next,a),error:e.error&&Hr(e.error,a),complete:e.complete&&Hr(e.complete,a)}):n=e}return s.destination=new vl(n),s}return r}(Ys);function Xt(t){bl(t)}function xl(t){throw t}var wl={closed:!0,next:Ai,error:xl,complete:Ai},El=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Sl(t){return t}function Al(t){return t.length===0?Sl:t.length===1?t[0]:function(e){return t.reduce(function(o,i){return i(o)},e)}}var Ci=function(){function t(r){r&&(this._subscribe=r)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(r,e,o){var i=this,s=Tl(r)?r:new _o(r,e,o);return rr(function(){var n=i,a=n.operator,l=n.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(e){r.error(e)}},t.prototype.forEach=function(r,e){var o=this;return e=Ti(e),new e(function(i,s){var n=new _o({next:function(a){try{r(a)}catch(l){s(l),n.unsubscribe()}},error:s,complete:i});o.subscribe(n)})},t.prototype._subscribe=function(r){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(r)},t.prototype[El]=function(){return this},t.prototype.pipe=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Al(r)(this)},t.prototype.toPromise=function(r){var e=this;return r=Ti(r),new r(function(o,i){var s;e.subscribe(function(n){return s=n},function(n){return i(n)},function(){return o(s)})})},t.create=function(r){return new t(r)},t}();function Ti(t){var r;return(r=t!=null?t:Vs.Promise)!==null&&r!==void 0?r:Promise}function Cl(t){return t&&De(t.next)&&De(t.error)&&De(t.complete)}function Tl(t){return t&&t instanceof Ys||Cl(t)&&js(t)}var Pl=Rs(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gs=function(t){Oe(r,t);function r(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.prototype.lift=function(e){var o=new Pi(this,this);return o.operator=e,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new Pl},r.prototype.next=function(e){var o=this;rr(function(){var i,s;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=fo(o.currentObservers),a=n.next();!a.done;a=n.next()){var l=a.value;l.next(e)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}}})},r.prototype.error=function(e){var o=this;rr(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=e;for(var i=o.observers;i.length;)i.shift().error(e)}})},r.prototype.complete=function(){var e=this;rr(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var o=e.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},r.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},r.prototype._innerSubscribe=function(e){var o=this,i=this,s=i.hasError,n=i.isStopped,a=i.observers;return s||n?Us:(this.currentObservers=null,a.push(e),new xr(function(){o.currentObservers=null,mo(a,e)}))},r.prototype._checkFinalizedStatuses=function(e){var o=this,i=o.hasError,s=o.thrownError,n=o.isStopped;i?e.error(s):n&&e.complete()},r.prototype.asObservable=function(){var e=new Ci;return e.source=this,e},r.create=function(e,o){return new Pi(e,o)},r}(Ci),Pi=function(t){Oe(r,t);function r(e,o){var i=t.call(this)||this;return i.destination=e,i.source=o,i}return r.prototype.next=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.next)===null||i===void 0||i.call(o,e)},r.prototype.error=function(e){var o,i;(i=(o=this.destination)===null||o===void 0?void 0:o.error)===null||i===void 0||i.call(o,e)},r.prototype.complete=function(){var e,o;(o=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||o===void 0||o.call(e)},r.prototype._subscribe=function(e){var o,i;return(i=(o=this.source)===null||o===void 0?void 0:o.subscribe(e))!==null&&i!==void 0?i:Us},r}(Gs),Ws={now:function(){return(Ws.delegate||Date).now()},delegate:void 0},Dl=function(t){Oe(r,t);function r(e,o,i){e===void 0&&(e=1/0),o===void 0&&(o=1/0),i===void 0&&(i=Ws);var s=t.call(this)||this;return s._bufferSize=e,s._windowTime=o,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=o===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,o),s}return r.prototype.next=function(e){var o=this,i=o.isStopped,s=o._buffer,n=o._infiniteTimeWindow,a=o._timestampProvider,l=o._windowTime;i||(s.push(e),!n&&s.push(a.now()+l)),this._trimBuffer(),t.prototype.next.call(this,e)},r.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(e),i=this,s=i._infiniteTimeWindow,n=i._buffer,a=n.slice(),l=0;l<a.length&&!e.closed;l+=s?1:2)e.next(a[l]);return this._checkFinalizedStatuses(e),o},r.prototype._trimBuffer=function(){var e=this,o=e._bufferSize,i=e._timestampProvider,s=e._buffer,n=e._infiniteTimeWindow,a=(n?1:2)*o;if(o<1/0&&a<s.length&&s.splice(0,s.length-a),!n){for(var l=i.now(),u=0,c=1;c<s.length&&s[c]<=l;c+=2)u=c;u&&s.splice(0,u+1)}},r}(Gs);const Di=[],ki={},kl=(t,r=0)=>{if(Di.indexOf(t)==-1){const e=new Dl(r);ki[t]=e,Di.push(t)}return ki[t]},Je=[];function Ml(t,r){return{subscribe:wr(t,r).subscribe}}function wr(t,r=we){let e;const o=new Set;function i(a){if(Bs(t,a)&&(t=a,e)){const l=!Je.length;for(const u of o)u[1](),Je.push(u,t);if(l){for(let u=0;u<Je.length;u+=2)Je[u][0](Je[u+1]);Je.length=0}}}function s(a){i(a(t))}function n(a,l=we){const u=[a,l];return o.add(u),o.size===1&&(e=r(i,s)||we),a(t),()=>{o.delete(u),o.size===0&&e&&(e(),e=null)}}return{set:i,update:s,subscribe:n}}function pt(t,r,e){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=r.length<2;return Ml(e,(n,a)=>{let l=!1;const u=[];let c=0,h=we;const d=()=>{if(c)return;h();const p=r(o?u[0]:u,n,a);s?n(p):h=Wo(p)?p:we},f=i.map((p,y)=>zs(p,P=>{u[y]=P,c&=~(1<<y),l&&d()},()=>{c|=1<<y}));return l=!0,d(),function(){ft(f),h(),l=!1}})}var Ol=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function qs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Il=function(r){return Nl(r)&&!Ll(r)};function Nl(t){return!!t&&typeof t=="object"}function Ll(t){var r=Object.prototype.toString.call(t);return r==="[object RegExp]"||r==="[object Date]"||Bl(t)}var Hl=typeof Symbol=="function"&&Symbol.for,$l=Hl?Symbol.for("react.element"):60103;function Bl(t){return t.$$typeof===$l}function zl(t){return Array.isArray(t)?[]:{}}function Mt(t,r){return r.clone!==!1&&r.isMergeableObject(t)?nt(zl(t),t,r):t}function Fl(t,r,e){return t.concat(r).map(function(o){return Mt(o,e)})}function Rl(t,r){if(!r.customMerge)return nt;var e=r.customMerge(t);return typeof e=="function"?e:nt}function Ul(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(r){return Object.propertyIsEnumerable.call(t,r)}):[]}function Mi(t){return Object.keys(t).concat(Ul(t))}function Xs(t,r){try{return r in t}catch(e){return!1}}function jl(t,r){return Xs(t,r)&&!(Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))}function Vl(t,r,e){var o={};return e.isMergeableObject(t)&&Mi(t).forEach(function(i){o[i]=Mt(t[i],e)}),Mi(r).forEach(function(i){jl(t,i)||(Xs(t,i)&&e.isMergeableObject(r[i])?o[i]=Rl(i,e)(t[i],r[i],e):o[i]=Mt(r[i],e))}),o}function nt(t,r,e){e=e||{},e.arrayMerge=e.arrayMerge||Fl,e.isMergeableObject=e.isMergeableObject||Il,e.cloneUnlessOtherwiseSpecified=Mt;var o=Array.isArray(r),i=Array.isArray(t),s=o===i;return s?o?e.arrayMerge(t,r,e):Vl(t,r,e):Mt(r,e)}nt.all=function(r,e){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(o,i){return nt(o,i,e)},{})};var Yl=nt,Gl=Yl;const Wl=qs(Gl);function $r(t,r){var e=r&&r.cache?r.cache:Ql,o=r&&r.serializer?r.serializer:Zl,i=r&&r.strategy?r.strategy:Xl;return i(t,{cache:e,serializer:o})}function ql(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Ks(t,r,e,o){var i=ql(o)?o:e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.call(this,o),r.set(i,s)),s}function Js(t,r,e){var o=Array.prototype.slice.call(arguments,3),i=e(o),s=r.get(i);return typeof s=="undefined"&&(s=t.apply(this,o),r.set(i,s)),s}function qo(t,r,e,o,i){return e.bind(r,t,o,i)}function Xl(t,r){var e=t.length===1?Ks:Js;return qo(t,this,e,r.cache.create(),r.serializer)}function Kl(t,r){return qo(t,this,Js,r.cache.create(),r.serializer)}function Jl(t,r){return qo(t,this,Ks,r.cache.create(),r.serializer)}var Zl=function(){return JSON.stringify(arguments)};function Xo(){this.cache=Object.create(null)}Xo.prototype.get=function(t){return this.cache[t]};Xo.prototype.set=function(t,r){this.cache[t]=r};var Ql={create:function(){return new Xo}},Br={variadic:Kl,monadic:Jl},k;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(k||(k={}));var W;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(W||(W={}));var at;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(at||(at={}));function Oi(t){return t.type===W.literal}function eu(t){return t.type===W.argument}function Zs(t){return t.type===W.number}function Qs(t){return t.type===W.date}function en(t){return t.type===W.time}function tn(t){return t.type===W.select}function rn(t){return t.type===W.plural}function tu(t){return t.type===W.pound}function on(t){return t.type===W.tag}function sn(t){return!!(t&&typeof t=="object"&&t.type===at.number)}function go(t){return!!(t&&typeof t=="object"&&t.type===at.dateTime)}var nn=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ru=/(?:[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 ou(t){var r={};return t.replace(ru,function(e){var o=e.length;switch(e[0]){case"G":r.era=o===4?"long":o===5?"narrow":"short";break;case"y":r.year=o===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":r.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][o-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][o-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][o-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][o-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][o-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":r.minute=["numeric","2-digit"][o-1];break;case"s":r.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=o<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""}),r}var iu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function su(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(iu).filter(function(d){return d.length>0}),e=[],o=0,i=r;o<i.length;o++){var s=i[o],n=s.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")}e.push({stem:a,options:l})}return e}function nu(t){return t.replace(/^(.*?)-/,"")}var Ii=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,an=/^(@+)?(\+|#+)?[rs]?$/g,au=/(\*)(0+)|(#+)(0+)|(0+)/g,ln=/^(0+)$/;function Ni(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(an,function(e,o,i){return typeof i!="string"?(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length):i==="+"?r.minimumSignificantDigits=o.length:o[0]==="#"?r.maximumSignificantDigits=o.length:(r.minimumSignificantDigits=o.length,r.maximumSignificantDigits=o.length+(typeof i=="string"?i.length:0)),""}),r}function un(t){switch(t){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 lu(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var e=t.slice(0,2);if(e==="+!"?(r.signDisplay="always",t=t.slice(2)):e==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!ln.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function Li(t){var r={},e=un(t);return e||r}function uu(t){for(var r={},e=0,o=t;e<o.length;e++){var i=o[e];switch(i.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=i.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=nu(i.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=B(B(B({},r),{notation:"scientific"}),i.options.reduce(function(l,u){return B(B({},l),Li(u))},{}));continue;case"engineering":r=B(B(B({},r),{notation:"engineering"}),i.options.reduce(function(l,u){return B(B({},l),Li(u))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.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(au,function(l,u,c,h,d,f){if(u)r.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(ln.test(i.stem)){r.minimumIntegerDigits=i.stem.length;continue}if(Ii.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ii,function(l,u,c,h,d,f){return c==="*"?r.minimumFractionDigits=u.length:h&&h[0]==="#"?r.maximumFractionDigits=h.length:d&&f?(r.minimumFractionDigits=d.length,r.maximumFractionDigits=d.length+f.length):(r.minimumFractionDigits=u.length,r.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?r=B(B({},r),{trailingZeroDisplay:"stripIfInteger"}):s&&(r=B(B({},r),Ni(s)));continue}if(an.test(i.stem)){r=B(B({},r),Ni(i.stem));continue}var n=un(i.stem);n&&(r=B(B({},r),n));var a=lu(i.stem);a&&(r=B(B({},r),a))}return r}var Kt={"001":["H","h"],419:["h","H","hB","hb"],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","H","hB","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","H","hB","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","H","hB","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"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["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 cu(t,r){for(var e="",o=0;o<t.length;o++){var i=t.charAt(o);if(i==="j"){for(var s=0;o+1<t.length&&t.charAt(o+1)===i;)s++,o++;var n=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=hu(r);for((u=="H"||u=="k")&&(a=0);a-- >0;)e+=l;for(;n-- >0;)e=u+e}else i==="J"?e+="H":e+=i}return e}function hu(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,o;e!=="root"&&(o=t.maximize().region);var i=Kt[o||""]||Kt[e||""]||Kt["".concat(e,"-001")]||Kt["001"];return i[0]}var zr,du=new RegExp("^".concat(nn.source,"*")),fu=new RegExp("".concat(nn.source,"*$"));function O(t,r){return{start:t,end:r}}var pu=!!String.prototype.startsWith&&"_a".startsWith("a",1),mu=!!String.fromCodePoint,_u=!!Object.fromEntries,gu=!!String.prototype.codePointAt,bu=!!String.prototype.trimStart,yu=!!String.prototype.trimEnd,vu=!!Number.isSafeInteger,xu=vu?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},bo=!0;try{var wu=hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bo=((zr=wu.exec("a"))===null||zr===void 0?void 0:zr[0])==="a"}catch(t){bo=!1}var Hi=pu?function(r,e,o){return r.startsWith(e,o)}:function(r,e,o){return r.slice(o,o+e.length)===e},yo=mu?String.fromCodePoint:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var o="",i=r.length,s=0,n;i>s;){if(n=r[s++],n>1114111)throw RangeError(n+" is not a valid code point");o+=n<65536?String.fromCharCode(n):String.fromCharCode(((n-=65536)>>10)+55296,n%1024+56320)}return o},$i=_u?Object.fromEntries:function(r){for(var e={},o=0,i=r;o<i.length;o++){var s=i[o],n=s[0],a=s[1];e[n]=a}return e},cn=gu?function(r,e){return r.codePointAt(e)}:function(r,e){var o=r.length;if(!(e<0||e>=o)){var i=r.charCodeAt(e),s;return i<55296||i>56319||e+1===o||(s=r.charCodeAt(e+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Eu=bu?function(r){return r.trimStart()}:function(r){return r.replace(du,"")},Su=yu?function(r){return r.trimEnd()}:function(r){return r.replace(fu,"")};function hn(t,r){return new RegExp(t,r)}var vo;if(bo){var Bi=hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vo=function(r,e){var o;Bi.lastIndex=e;var i=Bi.exec(r);return(o=i[1])!==null&&o!==void 0?o:""}}else vo=function(r,e){for(var o=[];;){var i=cn(r,e);if(i===void 0||dn(i)||Pu(i))break;o.push(i),e+=i>=65536?2:1}return yo.apply(void 0,o)};var Au=function(){function t(r,e){e===void 0&&(e={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,e,o){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var n=this.parseArgument(r,o);if(n.err)return n;i.push(n.val)}else{if(s===125&&r>0)break;if(s===35&&(e==="plural"||e==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:W.pound,location:O(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(k.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&xo(this.peek()||0)){var n=this.parseTag(r,e);if(n.err)return n;i.push(n.val)}else{var n=this.parseLiteral(r,e);if(n.err)return n;i.push(n.val)}}}return{val:i,err:null}},t.prototype.parseTag=function(r,e){var o=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:W.literal,value:"<".concat(i,"/>"),location:O(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(r+1,e,!0);if(s.err)return s;var n=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xo(this.char()))return this.error(k.INVALID_TAG,O(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(k.UNMATCHED_CLOSING_TAG,O(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:W.tag,value:i,children:n,location:O(o,this.clonePosition())},err:null}:this.error(k.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(k.UNCLOSED_TAG,O(o,this.clonePosition()))}else return this.error(k.INVALID_TAG,O(o,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&Tu(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,e){for(var o=this.clonePosition(),i="";;){var s=this.tryParseQuote(e);if(s){i+=s;continue}var n=this.tryParseUnquoted(r,e);if(n){i+=n;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=O(o,this.clonePosition());return{val:{type:W.literal,value:i,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cu(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){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(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(o);this.bump()}return yo.apply(void 0,e)},t.prototype.tryParseUnquoted=function(r,e){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(e==="plural"||e==="selectordinal")||o===125&&r>0?null:(this.bump(),yo(o))},t.prototype.parseArgument=function(r,e){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,O(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(k.EMPTY_ARGUMENT,O(o,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(k.MALFORMED_ARGUMENT,O(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,O(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:W.argument,value:i,location:O(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,O(o,this.clonePosition())):this.parseArgumentOptions(r,e,i,o);default:return this.error(k.MALFORMED_ARGUMENT,O(o,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),e=this.offset(),o=vo(this.message,e),i=e+o.length;this.bumpTo(i);var s=this.clonePosition(),n=O(r,s);return{value:o,location:n}},t.prototype.parseArgumentOptions=function(r,e,o,i){var s,n=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(k.EXPECT_ARGUMENT_TYPE,O(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=Su(h.val);if(d.length===0)return this.error(k.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var f=O(c,this.clonePosition());u={style:d,styleLocation:f}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var y=O(i,this.clonePosition());if(u&&Hi(u==null?void 0:u.style,"::",0)){var P=Eu(u.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(P,u.styleLocation);return h.err?h:{val:{type:W.number,value:o,location:y,style:h.val},err:null}}else{if(P.length===0)return this.error(k.EXPECT_DATE_TIME_SKELETON,y);var L=P;this.locale&&(L=cu(P,this.locale));var d={type:at.dateTime,pattern:L,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?ou(L):{}},I=a==="date"?W.date:W.time;return{val:{type:I,value:o,location:y,style:d},err:null}}}return{val:{type:a==="number"?W.number:a==="date"?W.date:W.time,value:o,location:y,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var F=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS,O(F,B({},F)));this.bumpSpace();var V=this.parseIdentifierIfPossible(),R=0;if(a!=="select"&&V.value==="offset"){if(!this.bumpIf(":"))return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),V=this.parseIdentifierIfPossible(),R=h.val}var Z=this.tryParsePluralOrSelectOptions(r,a,e,V);if(Z.err)return Z;var p=this.tryParseArgumentClose(i);if(p.err)return p;var de=O(i,this.clonePosition());return a==="select"?{val:{type:W.select,value:o,options:$i(Z.val),location:de},err:null}:{val:{type:W.plural,value:o,options:$i(Z.val),offset:R,pluralType:a==="plural"?"cardinal":"ordinal",location:de},err:null}}default:return this.error(k.INVALID_ARGUMENT_TYPE,O(n,l))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE,O(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,e=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(i,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,e){var o=[];try{o=su(r)}catch(i){return this.error(k.INVALID_NUMBER_SKELETON,e)}return{val:{type:at.number,tokens:o,location:e,parsedOptions:this.shouldParseSkeletons?uu(o):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,e,o,i){for(var s,n=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var h=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR,k.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=O(h,this.clonePosition()),u=this.message.slice(h.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?k.DUPLICATE_SELECT_ARGUMENT_SELECTOR:k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(n=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(r+1,e,o);if(p.err)return p;var y=this.tryParseArgumentClose(f);if(y.err)return y;a.push([u,{value:p.val,location:O(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,c=s.location}return a.length===0?this.error(e==="select"?k.EXPECT_SELECT_ARGUMENT_SELECTOR:k.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(k.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(r,e){var o=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var s=!1,n=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,n=n*10+(a-48),this.bump();else break}var l=O(i,this.clonePosition());return s?(n*=o,xu(n)?{val:n,err:null}:this.error(e,l)):this.error(r,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var e=cn(this.message,r);if(e===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(r,e){return{val:null,err:{kind:r,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(Hi(this.message,r,this.offset())){for(var e=0;e<r.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var e=this.offset(),o=this.message.indexOf(r,e);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var e=this.offset();if(e===r)break;if(e>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&dn(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),e=this.offset(),o=this.message.charCodeAt(e+(r>=65536?2:1));return o!=null?o:null},t}();function xo(t){return t>=97&&t<=122||t>=65&&t<=90}function Cu(t){return xo(t)||t===47}function Tu(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function dn(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function Pu(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function wo(t){t.forEach(function(r){if(delete r.location,tn(r)||rn(r))for(var e in r.options)delete r.options[e].location,wo(r.options[e].value);else Zs(r)&&sn(r.style)||(Qs(r)||en(r))&&go(r.style)?delete r.style.location:on(r)&&wo(r.children)})}function Du(t,r){r===void 0&&(r={}),r=B({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var e=new Au(t,r).parse();if(e.err){var o=SyntaxError(k[e.err.kind]);throw o.location=e.err.location,o.originalMessage=e.err.message,o}return r!=null&&r.captureLocation||wo(e.val),e.val}var lt;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(lt||(lt={}));var Er=function(t){Oe(r,t);function r(e,o,i){var s=t.call(this,e)||this;return s.code=o,s.originalMessage=i,s}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),zi=function(t){Oe(r,t);function r(e,o,i,s){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(o,'". Options are "').concat(Object.keys(i).join('", "'),'"'),lt.INVALID_VALUE,s)||this}return r}(Er),ku=function(t){Oe(r,t);function r(e,o,i){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(o),lt.INVALID_VALUE,i)||this}return r}(Er),Mu=function(t){Oe(r,t);function r(e,o){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(o,'"'),lt.MISSING_VALUE,o)||this}return r}(Er),ue;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(ue||(ue={}));function Ou(t){return t.length<2?t:t.reduce(function(r,e){var o=r[r.length-1];return!o||o.type!==ue.literal||e.type!==ue.literal?r.push(e):o.value+=e.value,r},[])}function Iu(t){return typeof t=="function"}function or(t,r,e,o,i,s,n){if(t.length===1&&Oi(t[0]))return[{type:ue.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Oi(c)){a.push({type:ue.literal,value:c.value});continue}if(tu(c)){typeof s=="number"&&a.push({type:ue.literal,value:e.getNumberFormat(r).format(s)});continue}var h=c.value;if(!(i&&h in i))throw new Mu(h,n);var d=i[h];if(eu(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ue.literal:ue.object,value:d});continue}if(Qs(c)){var f=typeof c.style=="string"?o.date[c.style]:go(c.style)?c.style.parsedOptions:void 0;a.push({type:ue.literal,value:e.getDateTimeFormat(r,f).format(d)});continue}if(en(c)){var f=typeof c.style=="string"?o.time[c.style]:go(c.style)?c.style.parsedOptions:o.time.medium;a.push({type:ue.literal,value:e.getDateTimeFormat(r,f).format(d)});continue}if(Zs(c)){var f=typeof c.style=="string"?o.number[c.style]:sn(c.style)?c.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),a.push({type:ue.literal,value:e.getNumberFormat(r,f).format(d)});continue}if(on(c)){var p=c.children,y=c.value,P=i[y];if(!Iu(P))throw new ku(y,"function",n);var L=or(p,r,e,o,i,s),I=P(L.map(function(R){return R.value}));Array.isArray(I)||(I=[I]),a.push.apply(a,I.map(function(R){return{type:typeof R=="string"?ue.literal:ue.object,value:R}}))}if(tn(c)){var F=c.options[d]||c.options.other;if(!F)throw new zi(c.value,d,Object.keys(c.options),n);a.push.apply(a,or(F.value,r,e,o,i));continue}if(rn(c)){var F=c.options["=".concat(d)];if(!F){if(!Intl.PluralRules)throw new Er(`Intl.PluralRules is not available in this environment.
4
+ Try polyfilling it using "@formatjs/intl-pluralrules"
5
+ `,lt.MISSING_INTL_API,n);var V=e.getPluralRules(r,{type:c.pluralType}).select(d-(c.offset||0));F=c.options[V]||c.options.other}if(!F)throw new zi(c.value,d,Object.keys(c.options),n);a.push.apply(a,or(F.value,r,e,o,i,d-(c.offset||0)));continue}}return Ou(a)}function Nu(t,r){return r?B(B(B({},t||{}),r||{}),Object.keys(t).reduce(function(e,o){return e[o]=B(B({},t[o]),r[o]||{}),e},{})):t}function Lu(t,r){return r?Object.keys(t).reduce(function(e,o){return e[o]=Nu(t[o],r[o]),e},B({},t)):t}function Fr(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,e){t[r]=e}}}}}function Hu(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:$r(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.NumberFormat).bind.apply(r,rt([void 0],e,!1)))},{cache:Fr(t.number),strategy:Br.variadic}),getDateTimeFormat:$r(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.DateTimeFormat).bind.apply(r,rt([void 0],e,!1)))},{cache:Fr(t.dateTime),strategy:Br.variadic}),getPluralRules:$r(function(){for(var r,e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return new((r=Intl.PluralRules).bind.apply(r,rt([void 0],e,!1)))},{cache:Fr(t.pluralRules),strategy:Br.variadic})}}var $u=function(){function t(r,e,o,i){e===void 0&&(e=t.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(h,d){return!h.length||d.type!==ue.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 or(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=i||{};n.formatters;var a=_l(n,["formatters"]);this.ast=t.__parse(r,B(B({},a),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Lu(t.formats,o),this.formatters=i&&i.formatters||Hu(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(typeof Intl.Locale!="undefined"){var e=Intl.NumberFormat.supportedLocalesOf(r);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=Du,t.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"}}},t}();function Bu(t,r){if(r==null)return;if(r in t)return t[r];const e=r.split(".");let o=t;for(let i=0;i<e.length;i++)if(typeof o=="object"){if(i>0){const s=e.slice(i,e.length).join(".");if(s in o){o=o[s];break}}o=o[e[i]]}else o=void 0;return o}const Ne={},zu=(t,r,e)=>e&&(r in Ne||(Ne[r]={}),t in Ne[r]||(Ne[r][t]=e),e),fn=(t,r)=>{if(r==null)return;if(r in Ne&&t in Ne[r])return Ne[r][t];const e=Sr(r);for(let o=0;o<e.length;o++){const i=e[o],s=Ru(i,t);if(s)return zu(t,r,s)}};let Ko;const Vt=wr({});function Fu(t){return Ko[t]||null}function pn(t){return t in Ko}function Ru(t,r){if(!pn(t))return null;const e=Fu(t);return Bu(e,r)}function Uu(t){if(t==null)return;const r=Sr(t);for(let e=0;e<r.length;e++){const o=r[e];if(pn(o))return o}}function mn(t,...r){delete Ne[t],Vt.update(e=>(e[t]=Wl.all([e[t]||{},...r]),e))}pt([Vt],([t])=>Object.keys(t));Vt.subscribe(t=>Ko=t);const ir={};function ju(t,r){ir[t].delete(r),ir[t].size===0&&delete ir[t]}function _n(t){return ir[t]}function Vu(t){return Sr(t).map(r=>{const e=_n(r);return[r,e?[...e]:[]]}).filter(([,r])=>r.length>0)}function Eo(t){return t==null?!1:Sr(t).some(r=>{var e;return(e=_n(r))==null?void 0:e.size})}function Yu(t,r){return Promise.all(r.map(o=>(ju(t,o),o().then(i=>i.default||i)))).then(o=>mn(t,...o))}const vt={};function gn(t){if(!Eo(t))return t in vt?vt[t]:Promise.resolve();const r=Vu(t);return vt[t]=Promise.all(r.map(([e,o])=>Yu(e,o))).then(()=>{if(Eo(t))return gn(t);delete vt[t]}),vt[t]}const Gu={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"}}},Wu={fallbackLocale:null,loadingDelay:200,formats:Gu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},qu=Wu;function ut(){return qu}const Rr=wr(!1);var Xu=Object.defineProperty,Ku=Object.defineProperties,Ju=Object.getOwnPropertyDescriptors,Fi=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,Ri=(t,r,e)=>r in t?Xu(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ec=(t,r)=>{for(var e in r||(r={}))Zu.call(r,e)&&Ri(t,e,r[e]);if(Fi)for(var e of Fi(r))Qu.call(r,e)&&Ri(t,e,r[e]);return t},tc=(t,r)=>Ku(t,Ju(r));let So;const hr=wr(null);function Ui(t){return t.split("-").map((r,e,o)=>o.slice(0,e+1).join("-")).reverse()}function Sr(t,r=ut().fallbackLocale){const e=Ui(t);return r?[...new Set([...e,...Ui(r)])]:e}function Ye(){return So!=null?So:void 0}hr.subscribe(t=>{So=t!=null?t:void 0,typeof window!="undefined"&&t!=null&&document.documentElement.setAttribute("lang",t)});const rc=t=>{if(t&&Uu(t)&&Eo(t)){const{loadingDelay:r}=ut();let e;return typeof window!="undefined"&&Ye()!=null&&r?e=window.setTimeout(()=>Rr.set(!0),r):Rr.set(!0),gn(t).then(()=>{hr.set(t)}).finally(()=>{clearTimeout(e),Rr.set(!1)})}return hr.set(t)},mt=tc(ec({},hr),{set:rc}),Ar=t=>{const r=Object.create(null);return o=>{const i=JSON.stringify(o);return i in r?r[i]:r[i]=t(o)}};var oc=Object.defineProperty,dr=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,ji=(t,r,e)=>r in t?oc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Jo=(t,r)=>{for(var e in r||(r={}))bn.call(r,e)&&ji(t,e,r[e]);if(dr)for(var e of dr(r))yn.call(r,e)&&ji(t,e,r[e]);return t},_t=(t,r)=>{var e={};for(var o in t)bn.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(t!=null&&dr)for(var o of dr(t))r.indexOf(o)<0&&yn.call(t,o)&&(e[o]=t[o]);return e};const Ot=(t,r)=>{const{formats:e}=ut();if(t in e&&r in e[t])return e[t][r];throw new Error(`[svelte-i18n] Unknown "${r}" ${t} format.`)},ic=Ar(t=>{var r=t,{locale:e,format:o}=r,i=_t(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return o&&(i=Ot("number",o)),new Intl.NumberFormat(e,i)}),sc=Ar(t=>{var r=t,{locale:e,format:o}=r,i=_t(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return o?i=Ot("date",o):Object.keys(i).length===0&&(i=Ot("date","short")),new Intl.DateTimeFormat(e,i)}),nc=Ar(t=>{var r=t,{locale:e,format:o}=r,i=_t(r,["locale","format"]);if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return o?i=Ot("time",o):Object.keys(i).length===0&&(i=Ot("time","short")),new Intl.DateTimeFormat(e,i)}),ac=(t={})=>{var r=t,{locale:e=Ye()}=r,o=_t(r,["locale"]);return ic(Jo({locale:e},o))},lc=(t={})=>{var r=t,{locale:e=Ye()}=r,o=_t(r,["locale"]);return sc(Jo({locale:e},o))},uc=(t={})=>{var r=t,{locale:e=Ye()}=r,o=_t(r,["locale"]);return nc(Jo({locale:e},o))},cc=Ar((t,r=Ye())=>new $u(t,r,ut().formats,{ignoreTag:ut().ignoreTag})),hc=(t,r={})=>{var e,o,i,s;let n=r;typeof t=="object"&&(n=t,t=n.id);const{values:a,locale:l=Ye(),default:u}=n;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=fn(t,l);if(!c)c=(s=(i=(o=(e=ut()).handleMissingMessage)==null?void 0:o.call(e,{locale:l,id:t,defaultValue:u}))!=null?i:u)!=null?s:t;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${t}" 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=cc(c,l).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,d.message)}return h},dc=(t,r)=>uc(r).format(t),fc=(t,r)=>lc(r).format(t),pc=(t,r)=>ac(r).format(t),mc=(t,r=Ye())=>fn(t,r),_c=pt([mt,Vt],()=>hc);pt([mt],()=>dc);pt([mt],()=>fc);pt([mt],()=>pc);pt([mt,Vt],()=>mc);window.emWidgets={topic:kl};const gc=t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";var vn={exports:{}};(function(t,r){(function(e,o){t.exports=o()})(Ol,function(){var e=1e3,o=6e4,i=36e5,s="millisecond",n="second",a="minute",l="hour",u="day",c="week",h="month",d="quarter",f="year",p="date",y="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],m=w%100;return"["+w+(g[(m-20)%10]||g[m]||g[0])+"]"}},F=function(w,g,m){var b=String(w);return!b||b.length>=g?w:""+Array(g+1-b.length).join(m)+w},V={s:F,z:function(w){var g=-w.utcOffset(),m=Math.abs(g),b=Math.floor(m/60),_=m%60;return(g<=0?"+":"-")+F(b,2,"0")+":"+F(_,2,"0")},m:function w(g,m){if(g.date()<m.date())return-w(m,g);var b=12*(m.year()-g.year())+(m.month()-g.month()),_=g.clone().add(b,h),S=m-_<0,E=g.clone().add(b+(S?-1:1),h);return+(-(b+(m-_)/(S?_-E:E-_))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:f,w:c,d:u,D:p,h:l,m:a,s:n,ms:s,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},R="en",Z={};Z[R]=I;var de="$isDayjsObject",pe=function(w){return w instanceof ne||!(!w||!w[de])},me=function w(g,m,b){var _;if(!g)return R;if(typeof g=="string"){var S=g.toLowerCase();Z[S]&&(_=S),m&&(Z[S]=m,_=S);var E=g.split("-");if(!_&&E.length>1)return w(E[0])}else{var M=g.name;Z[M]=g,_=M}return!b&&_&&(R=_),_||!b&&R},N=function(w,g){if(pe(w))return w.clone();var m=typeof g=="object"?g:{};return m.date=w,m.args=arguments,new ne(m)},D=V;D.l=me,D.i=pe,D.w=function(w,g){return N(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var ne=function(){function w(m){this.$L=me(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[de]=!0}var g=w.prototype;return g.parse=function(m){this.$d=function(b){var _=b.date,S=b.utc;if(_===null)return new Date(NaN);if(D.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var E=_.match(P);if(E){var M=E[2]-1||0,U=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,U)):new Date(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,U)}}return new Date(_)}(m),this.init()},g.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},g.$utils=function(){return D},g.isValid=function(){return this.$d.toString()!==y},g.isSame=function(m,b){var _=N(m);return this.startOf(b)<=_&&_<=this.endOf(b)},g.isAfter=function(m,b){return N(m)<this.startOf(b)},g.isBefore=function(m,b){return this.endOf(b)<N(m)},g.$g=function(m,b,_){return D.u(m)?this[b]:this.set(_,m)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(m,b){var _=this,S=!!D.u(b)||b,E=D.p(m),M=function(se,H){var G=D.w(_.$u?Date.UTC(_.$y,H,se):new Date(_.$y,H,se),_);return S?G:G.endOf(u)},U=function(se,H){return D.w(_.toDate()[se].apply(_.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(H)),_)},Y=this.$W,X=this.$M,re=this.$D,_e="set"+(this.$u?"UTC":"");switch(E){case f:return S?M(1,0):M(31,11);case h:return S?M(1,X):M(0,X+1);case c:var ge=this.$locale().weekStart||0,ae=(Y<ge?Y+7:Y)-ge;return M(S?re-ae:re+(6-ae),X);case u:case p:return U(_e+"Hours",0);case l:return U(_e+"Minutes",1);case a:return U(_e+"Seconds",2);case n:return U(_e+"Milliseconds",3);default:return this.clone()}},g.endOf=function(m){return this.startOf(m,!1)},g.$set=function(m,b){var _,S=D.p(m),E="set"+(this.$u?"UTC":""),M=(_={},_[u]=E+"Date",_[p]=E+"Date",_[h]=E+"Month",_[f]=E+"FullYear",_[l]=E+"Hours",_[a]=E+"Minutes",_[n]=E+"Seconds",_[s]=E+"Milliseconds",_)[S],U=S===u?this.$D+(b-this.$W):b;if(S===h||S===f){var Y=this.clone().set(p,1);Y.$d[M](U),Y.init(),this.$d=Y.set(p,Math.min(this.$D,Y.daysInMonth())).$d}else M&&this.$d[M](U);return this.init(),this},g.set=function(m,b){return this.clone().$set(m,b)},g.get=function(m){return this[D.p(m)]()},g.add=function(m,b){var _,S=this;m=Number(m);var E=D.p(b),M=function(X){var re=N(S);return D.w(re.date(re.date()+Math.round(X*m)),S)};if(E===h)return this.set(h,this.$M+m);if(E===f)return this.set(f,this.$y+m);if(E===u)return M(1);if(E===c)return M(7);var U=(_={},_[a]=o,_[l]=i,_[n]=e,_)[E]||1,Y=this.$d.getTime()+m*U;return D.w(Y,this)},g.subtract=function(m,b){return this.add(-1*m,b)},g.format=function(m){var b=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var S=m||"YYYY-MM-DDTHH:mm:ssZ",E=D.z(this),M=this.$H,U=this.$m,Y=this.$M,X=_.weekdays,re=_.months,_e=_.meridiem,ge=function(H,G,v,K){return H&&(H[G]||H(b,S))||v[G].slice(0,K)},ae=function(H){return D.s(M%12||12,H,"0")},se=_e||function(H,G,v){var K=H<12?"AM":"PM";return v?K.toLowerCase():K};return S.replace(L,function(H,G){return G||function(v){switch(v){case"YY":return String(b.$y).slice(-2);case"YYYY":return D.s(b.$y,4,"0");case"M":return Y+1;case"MM":return D.s(Y+1,2,"0");case"MMM":return ge(_.monthsShort,Y,re,3);case"MMMM":return ge(re,Y);case"D":return b.$D;case"DD":return D.s(b.$D,2,"0");case"d":return String(b.$W);case"dd":return ge(_.weekdaysMin,b.$W,X,2);case"ddd":return ge(_.weekdaysShort,b.$W,X,3);case"dddd":return X[b.$W];case"H":return String(M);case"HH":return D.s(M,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return se(M,U,!0);case"A":return se(M,U,!1);case"m":return String(U);case"mm":return D.s(U,2,"0");case"s":return String(b.$s);case"ss":return D.s(b.$s,2,"0");case"SSS":return D.s(b.$ms,3,"0");case"Z":return E}return null}(H)||E.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(m,b,_){var S,E=this,M=D.p(b),U=N(m),Y=(U.utcOffset()-this.utcOffset())*o,X=this-U,re=function(){return D.m(E,U)};switch(M){case f:S=re()/12;break;case h:S=re();break;case d:S=re()/3;break;case c:S=(X-Y)/6048e5;break;case u:S=(X-Y)/864e5;break;case l:S=X/i;break;case a:S=X/o;break;case n:S=X/e;break;default:S=X}return _?S:D.a(S)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return Z[this.$L]},g.locale=function(m,b){if(!m)return this.$L;var _=this.clone(),S=me(m,b,!0);return S&&(_.$L=S),_},g.clone=function(){return D.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),Be=ne.prototype;return N.prototype=Be,[["$ms",s],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",f],["$D",p]].forEach(function(w){Be[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),N.extend=function(w,g){return w.$i||(w(g,ne,N),w.$i=!0),N},N.locale=me,N.isDayjs=pe,N.unix=function(w){return N(1e3*w)},N.en=Z[R],N.Ls=Z,N.p={},N})})(vn);var bc=vn.exports;const Ur=qs(bc);function Vi(t,r){mn(t,r)}function yc(t){mt.set(t)}const Yi={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?"},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};/**
6
+ * @license
7
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
8
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
+ */function ve(t){const r=customElements.get(t.is);if(!r)customElements.define(t.is,t);else{const e=r.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${r.version} is already in use. Something will probably break.`)}}/**
10
+ * @license
11
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
12
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
13
+ */let vc=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}};ve(vc);/**
14
+ * @license
15
+ * Copyright 2019 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */const sr=window,Zo=sr.ShadowRoot&&(sr.ShadyCSS===void 0||sr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qo=Symbol(),Gi=new WeakMap;let ei=class{constructor(r,e,o){if(this._$cssResult$=!0,o!==Qo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(Zo&&r===void 0){const o=e!==void 0&&e.length===1;o&&(r=Gi.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),o&&Gi.set(e,r))}return r}toString(){return this.cssText}};const xc=t=>new ei(typeof t=="string"?t:t+"",void 0,Qo),A=(t,...r)=>{const e=t.length===1?t[0]:r.reduce((o,i,s)=>o+(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)+t[s+1],t[0]);return new ei(e,t,Qo)},wc=(t,r)=>{Zo?t.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):r.forEach(e=>{const o=document.createElement("style"),i=sr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)})},Wi=Zo?t=>t:t=>t instanceof CSSStyleSheet?(r=>{let e="";for(const o of r.cssRules)e+=o.cssText;return xc(e)})(t):t;/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */var jr;const fr=window,qi=fr.trustedTypes,Ec=qi?qi.emptyScript:"",Xi=fr.reactiveElementPolyfillSupport,Ao={toAttribute(t,r){switch(r){case Boolean:t=t?Ec:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,r){let e=t;switch(r){case Boolean:e=t!==null;break;case Number:e=t===null?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(o){e=null}}return e}},xn=(t,r)=>r!==t&&(r==r||t==t),Vr={attribute:!0,type:String,converter:Ao,reflect:!1,hasChanged:xn},Co="finalized";let et=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(r){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(r)}static get observedAttributes(){this.finalize();const r=[];return this.elementProperties.forEach((e,o)=>{const i=this._$Ep(o,e);i!==void 0&&(this._$Ev.set(i,o),r.push(i))}),r}static createProperty(r,e=Vr){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(r,e),!e.noAccessor&&!this.prototype.hasOwnProperty(r)){const o=typeof r=="symbol"?Symbol():"__"+r,i=this.getPropertyDescriptor(r,o,e);i!==void 0&&Object.defineProperty(this.prototype,r,i)}}static getPropertyDescriptor(r,e,o){return{get(){return this[e]},set(i){const s=this[r];this[e]=i,this.requestUpdate(r,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)||Vr}static finalize(){if(this.hasOwnProperty(Co))return!1;this[Co]=!0;const r=Object.getPrototypeOf(this);if(r.finalize(),r.h!==void 0&&(this.h=[...r.h]),this.elementProperties=new Map(r.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of o)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(r){const e=[];if(Array.isArray(r)){const o=new Set(r.flat(1/0).reverse());for(const i of o)e.unshift(Wi(i))}else r!==void 0&&e.push(Wi(r));return e}static _$Ep(r,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof r=="string"?r.toLowerCase():void 0}_$Eu(){var r;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(r=this.constructor.h)===null||r===void 0||r.forEach(e=>e(this))}addController(r){var e,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(r),this.renderRoot!==void 0&&this.isConnected&&((o=r.hostConnected)===null||o===void 0||o.call(r))}removeController(r){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(r)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((r,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var r;const e=(r=this.shadowRoot)!==null&&r!==void 0?r:this.attachShadow(this.constructor.shadowRootOptions);return wc(e,this.constructor.elementStyles),e}connectedCallback(){var r;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$ES)===null||r===void 0||r.forEach(e=>{var o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$ES)===null||r===void 0||r.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(r,e,o){this._$AK(r,o)}_$EO(r,e,o=Vr){var i;const s=this.constructor._$Ep(r,o);if(s!==void 0&&o.reflect===!0){const n=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:Ao).toAttribute(e,o.type);this._$El=r,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(r,e){var o;const i=this.constructor,s=i._$Ev.get(r);if(s!==void 0&&this._$El!==s){const n=i.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Ao;this._$El=s,this[s]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(r,e,o){let i=!0;r!==void 0&&(((o=o||this.constructor.getPropertyOptions(r)).hasChanged||xn)(this[r],e)?(this._$AL.has(r)||this._$AL.set(r,e),o.reflect===!0&&this._$El!==r&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(r,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}_$Ej(){return yt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const r=this.scheduleUpdate();return r!=null&&(yield r),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,s)=>this[s]=i),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(r=this._$ES)===null||r===void 0||r.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(o)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(o)}willUpdate(r){}_$AE(r){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(r){return!0}update(r){this._$EC!==void 0&&(this._$EC.forEach((e,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(r){}firstUpdated(r){}};et[Co]=!0,et.elementProperties=new Map,et.elementStyles=[],et.shadowRootOptions={mode:"open"},Xi==null||Xi({ReactiveElement:et}),((jr=fr.reactiveElementVersions)!==null&&jr!==void 0?jr:fr.reactiveElementVersions=[]).push("1.6.3");/**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */var Yr;const pr=window,ct=pr.trustedTypes,Ki=ct?ct.createPolicy("lit-html",{createHTML:t=>t}):void 0,To="$lit$",Ie=`lit$${(Math.random()+"").slice(9)}$`,wn="?"+Ie,Sc=`<${wn}>`,Ve=document,It=()=>Ve.createComment(""),Nt=t=>t===null||typeof t!="object"&&typeof t!="function",En=Array.isArray,Ac=t=>En(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Gr=`[
26
+ \f\r]`,xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ji=/-->/g,Zi=/>/g,ze=RegExp(`>|${Gr}(?:([^\\s"'>=/]+)(${Gr}*=${Gr}*(?:[^
27
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Qi=/'/g,es=/"/g,Sn=/^(?:script|style|textarea|title)$/i,ht=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),ts=new WeakMap,Fe=Ve.createTreeWalker(Ve,129,null,!1);function An(t,r){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ki!==void 0?Ki.createHTML(r):r}const Cc=(t,r)=>{const e=t.length-1,o=[];let i,s=r===2?"<svg>":"",n=xt;for(let a=0;a<e;a++){const l=t[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===xt?c[1]==="!--"?n=Ji:c[1]!==void 0?n=Zi:c[2]!==void 0?(Sn.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=ze):c[3]!==void 0&&(n=ze):n===ze?c[0]===">"?(n=i!=null?i:xt,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?ze:c[3]==='"'?es:Qi):n===es||n===Qi?n=ze:n===Ji||n===Zi?n=xt:(n=ze,i=void 0);const f=n===ze&&t[a+1].startsWith("/>")?" ":"";s+=n===xt?l+Sc:h>=0?(o.push(u),l.slice(0,h)+To+l.slice(h)+Ie+f):l+Ie+(h===-2?(o.push(void 0),a):f)}return[An(t,s+(t[e]||"<?>")+(r===2?"</svg>":"")),o]};class Lt{constructor({strings:r,_$litType$:e},o){let i;this.parts=[];let s=0,n=0;const a=r.length-1,l=this.parts,[u,c]=Cc(r,e);if(this.el=Lt.createElement(u,o),Fe.currentNode=this.el.content,e===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(i=Fe.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes()){const h=[];for(const d of i.getAttributeNames())if(d.endsWith(To)||d.startsWith(Ie)){const f=c[n++];if(h.push(d),f!==void 0){const p=i.getAttribute(f.toLowerCase()+To).split(Ie),y=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:y[2],strings:p,ctor:y[1]==="."?Pc:y[1]==="?"?kc:y[1]==="@"?Mc:Cr})}else l.push({type:6,index:s})}for(const d of h)i.removeAttribute(d)}if(Sn.test(i.tagName)){const h=i.textContent.split(Ie),d=h.length-1;if(d>0){i.textContent=ct?ct.emptyScript:"";for(let f=0;f<d;f++)i.append(h[f],It()),Fe.nextNode(),l.push({type:2,index:++s});i.append(h[d],It())}}}else if(i.nodeType===8)if(i.data===wn)l.push({type:2,index:s});else{let h=-1;for(;(h=i.data.indexOf(Ie,h+1))!==-1;)l.push({type:7,index:s}),h+=Ie.length-1}s++}}static createElement(r,e){const o=Ve.createElement("template");return o.innerHTML=r,o}}function dt(t,r,e=t,o){var i,s,n,a;if(r===ht)return r;let l=o!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[o]:e._$Cl;const u=Nt(r)?void 0:r._$litDirective$;return(l==null?void 0:l.constructor)!==u&&((s=l==null?void 0:l._$AO)===null||s===void 0||s.call(l,!1),u===void 0?l=void 0:(l=new u(t),l._$AT(t,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(r=dt(t,l._$AS(t,r.values),l,o)),r}class Tc{constructor(r,e){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){var e;const{el:{content:o},parts:i}=this._$AD,s=((e=r==null?void 0:r.creationScope)!==null&&e!==void 0?e:Ve).importNode(o,!0);Fe.currentNode=s;let n=Fe.nextNode(),a=0,l=0,u=i[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Yt(n,n.nextSibling,this,r):u.type===1?c=new u.ctor(n,u.name,u.strings,this,r):u.type===6&&(c=new Oc(n,this,r)),this._$AV.push(c),u=i[++l]}a!==(u==null?void 0:u.index)&&(n=Fe.nextNode(),a++)}return Fe.currentNode=Ve,s}v(r){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(r,o,e),e+=o.strings.length-2):o._$AI(r[e])),e++}}class Yt{constructor(r,e,o,i){var s;this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=r,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=(s=i==null?void 0:i.isConnected)===null||s===void 0||s}get _$AU(){var r,e;return(e=(r=this._$AM)===null||r===void 0?void 0:r._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let r=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=e.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,e=this){r=dt(this,r,e),Nt(r)?r===te||r==null||r===""?(this._$AH!==te&&this._$AR(),this._$AH=te):r!==this._$AH&&r!==ht&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):Ac(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==te&&Nt(this._$AH)?this._$AA.nextSibling.data=r:this.$(Ve.createTextNode(r)),this._$AH=r}g(r){var e;const{values:o,_$litType$:i}=r,s=typeof i=="number"?this._$AC(r):(i.el===void 0&&(i.el=Lt.createElement(An(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===s)this._$AH.v(o);else{const n=new Tc(s,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(r){let e=ts.get(r.strings);return e===void 0&&ts.set(r.strings,e=new Lt(r)),e}T(r){En(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const s of r)i===e.length?e.push(o=new Yt(this.k(It()),this.k(It()),this,this.options)):o=e[i],o._$AI(s),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(r=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);r&&r!==this._$AB;){const i=r.nextSibling;r.remove(),r=i}}setConnected(r){var e;this._$AM===void 0&&(this._$Cp=r,(e=this._$AP)===null||e===void 0||e.call(this,r))}}class Cr{constructor(r,e,o,i,s){this.type=1,this._$AH=te,this._$AN=void 0,this.element=r,this.name=e,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=te}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(r,e=this,o,i){const s=this.strings;let n=!1;if(s===void 0)r=dt(this,r,e,0),n=!Nt(r)||r!==this._$AH&&r!==ht,n&&(this._$AH=r);else{const a=r;let l,u;for(r=s[0],l=0;l<s.length-1;l++)u=dt(this,a[o+l],e,l),u===ht&&(u=this._$AH[l]),n||(n=!Nt(u)||u!==this._$AH[l]),u===te?r=te:r!==te&&(r+=(u!=null?u:"")+s[l+1]),this._$AH[l]=u}n&&!i&&this.j(r)}j(r){r===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r!=null?r:"")}}class Pc extends Cr{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===te?void 0:r}}const Dc=ct?ct.emptyScript:"";class kc extends Cr{constructor(){super(...arguments),this.type=4}j(r){r&&r!==te?this.element.setAttribute(this.name,Dc):this.element.removeAttribute(this.name)}}class Mc extends Cr{constructor(r,e,o,i,s){super(r,e,o,i,s),this.type=5}_$AI(r,e=this){var o;if((r=(o=dt(this,r,e,0))!==null&&o!==void 0?o:te)===ht)return;const i=this._$AH,s=r===te&&i!==te||r.capture!==i.capture||r.once!==i.once||r.passive!==i.passive,n=r!==te&&(i===te||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,r):this._$AH.handleEvent(r)}}class Oc{constructor(r,e,o){this.element=r,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(r){dt(this,r)}}const rs=pr.litHtmlPolyfillSupport;rs==null||rs(Lt,Yt),((Yr=pr.litHtmlVersions)!==null&&Yr!==void 0?Yr:pr.litHtmlVersions=[]).push("2.8.0");const Ic=(t,r,e)=>{var o,i;const s=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:r;let n=s._$litPart$;if(n===void 0){const a=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new Yt(r.insertBefore(It(),a),a,void 0,e!=null?e:{})}return n._$AI(t),n};/**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */var Wr,qr;class nr extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,e;const o=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!==null&&r!==void 0||(e.renderBefore=o.firstChild),o}update(r){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Ic(e,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)===null||r===void 0||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)===null||r===void 0||r.setConnected(!1)}render(){return ht}}nr.finalized=!0,nr._$litElement$=!0,(Wr=globalThis.litElementHydrateSupport)===null||Wr===void 0||Wr.call(globalThis,{LitElement:nr});const os=globalThis.litElementPolyfillSupport;os==null||os({LitElement:nr});((qr=globalThis.litElementVersions)!==null&&qr!==void 0?qr:globalThis.litElementVersions=[]).push("3.3.3");/**
32
+ * @license
33
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
34
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
+ */const Nc=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,i){super.attributeChangedCallback(e,o,i),e==="theme"&&this._set_theme(i)}};/**
36
+ * @license
37
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
38
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
39
+ */const Cn=[];function Tn(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Lc(t){return Tn(customElements.get(t))}function Hc(t=[]){return[t].flat(1/0).filter(r=>r instanceof ei?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function q(t,r,e={}){t&&Lc(t)&&console.warn(`The custom element definition for "${t}"
40
+ was finalized before a style module was registered.
41
+ Make sure to add component specific style modules before
42
+ importing the corresponding custom element.`),r=Hc(r),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,r,e):Cn.push({themeFor:t,styles:r,include:e.include,moduleId:e.moduleId})}function Po(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Cn}function $c(t,r){return(t||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(r))}function Bc(t=""){let r=0;return t.startsWith("lumo-")||t.startsWith("material-")?r=1:t.startsWith("vaadin-")&&(r=2),r}function Pn(t){const r=[];return t.include&&[].concat(t.include).forEach(e=>{const o=Po().find(i=>i.moduleId===e);o?r.push(...Pn(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},t.styles),r}function zc(t,r){const e=document.createElement("style");e.innerHTML=t.map(o=>o.cssText).join(`
43
+ `),r.content.appendChild(e)}function Fc(t){const r=`${t}-default-theme`,e=Po().filter(o=>o.moduleId!==r&&$c(o.themeFor,t)).map(o=>qt(Wt({},o),{styles:[...Pn(o),...o.styles],includePriority:Bc(o.moduleId)})).sort((o,i)=>i.includePriority-o.includePriority);return e.length>0?e:Po().filter(o=>o.moduleId===r)}const Ge=t=>class extends Nc(t){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Tn(this)||zc(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...Fc(this.is)];const i=this.__themes.flatMap(s=>s.styles);return i.filter((s,n)=>n===i.lastIndexOf(s))}};/**
44
+ * @license
45
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
46
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
47
+ */const ti=(t,...r)=>{const e=document.createElement("style");e.id=t,e.textContent=r.map(o=>o.toString()).join(`
48
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Tr=(t,...r)=>{ti(`lumo-${t}`,r)};/**
49
+ * @license
50
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
51
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
52
+ */const Rc=A`
53
+ :host {
54
+ /* Base (background) */
55
+ --lumo-base-color: #fff;
56
+
57
+ /* Tint */
58
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
59
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
60
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
61
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
62
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
63
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
64
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
65
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
66
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
67
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
68
+ --lumo-tint: #fff;
69
+
70
+ /* Shade */
71
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
72
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
73
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
74
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
75
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
76
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
77
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
78
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
79
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
80
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
81
+ --lumo-shade: hsl(214, 35%, 15%);
82
+
83
+ /* Contrast */
84
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
85
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
86
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
87
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
88
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
89
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
90
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
91
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
92
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
93
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
94
+ --lumo-contrast: var(--lumo-shade);
95
+
96
+ /* Text */
97
+ --lumo-header-text-color: var(--lumo-contrast);
98
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
99
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
100
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
101
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
102
+
103
+ /* Primary */
104
+ --lumo-primary-color: hsl(214, 100%, 48%);
105
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
106
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
107
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
108
+ --lumo-primary-contrast-color: #fff;
109
+
110
+ /* Error */
111
+ --lumo-error-color: hsl(3, 85%, 48%);
112
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
113
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
114
+ --lumo-error-text-color: hsl(3, 89%, 42%);
115
+ --lumo-error-contrast-color: #fff;
116
+
117
+ /* Success */
118
+ --lumo-success-color: hsl(145, 72%, 30%);
119
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
120
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
121
+ --lumo-success-text-color: hsl(145, 85%, 25%);
122
+ --lumo-success-contrast-color: #fff;
123
+
124
+ /* Warning */
125
+ --lumo-warning-color: hsl(48, 100%, 50%);
126
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
127
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
128
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
129
+ }
130
+
131
+ /* forced-colors mode adjustments */
132
+ @media (forced-colors: active) {
133
+ html {
134
+ --lumo-disabled-text-color: GrayText;
135
+ }
136
+ }
137
+ `;Tr("color-props",Rc);const Uc=A`
138
+ [theme~='dark'] {
139
+ /* Base (background) */
140
+ --lumo-base-color: hsl(214, 35%, 21%);
141
+
142
+ /* Tint */
143
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
144
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
145
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
146
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
147
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
148
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
149
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
150
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
151
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
152
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
153
+ --lumo-tint: hsl(214, 100%, 98%);
154
+
155
+ /* Shade */
156
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
157
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
158
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
159
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
160
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
161
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
162
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
163
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
164
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
165
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
166
+ --lumo-shade: hsl(214, 33%, 13%);
167
+
168
+ /* Contrast */
169
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
170
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
171
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
172
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
173
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
174
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
175
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
176
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
177
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
178
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
179
+ --lumo-contrast: var(--lumo-tint);
180
+
181
+ /* Text */
182
+ --lumo-header-text-color: var(--lumo-contrast);
183
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
184
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
185
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
186
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
187
+
188
+ /* Primary */
189
+ --lumo-primary-color: hsl(214, 90%, 48%);
190
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
191
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
192
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
193
+ --lumo-primary-contrast-color: #fff;
194
+
195
+ /* Error */
196
+ --lumo-error-color: hsl(3, 79%, 49%);
197
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
198
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
199
+ --lumo-error-text-color: hsl(3, 100%, 80%);
200
+
201
+ /* Success */
202
+ --lumo-success-color: hsl(145, 72%, 30%);
203
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
204
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
205
+ --lumo-success-text-color: hsl(145, 85%, 46%);
206
+
207
+ /* Warning */
208
+ --lumo-warning-color: hsl(43, 100%, 48%);
209
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
210
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
211
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
212
+ }
213
+
214
+ html {
215
+ color: var(--lumo-body-text-color);
216
+ background-color: var(--lumo-base-color);
217
+ color-scheme: light;
218
+ }
219
+
220
+ [theme~='dark'] {
221
+ color: var(--lumo-body-text-color);
222
+ background-color: var(--lumo-base-color);
223
+ color-scheme: dark;
224
+ }
225
+
226
+ h1,
227
+ h2,
228
+ h3,
229
+ h4,
230
+ h5,
231
+ h6 {
232
+ color: var(--lumo-header-text-color);
233
+ }
234
+
235
+ a:where(:any-link) {
236
+ color: var(--lumo-primary-text-color);
237
+ }
238
+
239
+ a:not(:any-link) {
240
+ color: var(--lumo-disabled-text-color);
241
+ }
242
+
243
+ blockquote {
244
+ color: var(--lumo-secondary-text-color);
245
+ }
246
+
247
+ code,
248
+ pre {
249
+ background-color: var(--lumo-contrast-10pct);
250
+ border-radius: var(--lumo-border-radius-m);
251
+ }
252
+ `;q("",Uc,{moduleId:"lumo-color"});/**
253
+ * @license
254
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
255
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
256
+ */const jc=A`
257
+ :host {
258
+ --lumo-size-xs: 1.625rem;
259
+ --lumo-size-s: 1.875rem;
260
+ --lumo-size-m: 2.25rem;
261
+ --lumo-size-l: 2.75rem;
262
+ --lumo-size-xl: 3.5rem;
263
+
264
+ /* Icons */
265
+ --lumo-icon-size-s: 1.25em;
266
+ --lumo-icon-size-m: 1.5em;
267
+ --lumo-icon-size-l: 2.25em;
268
+ /* For backwards compatibility */
269
+ --lumo-icon-size: var(--lumo-icon-size-m);
270
+ }
271
+ `;Tr("sizing-props",jc);/**
272
+ * @license
273
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
274
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
275
+ */const Vc=A`
276
+ :host {
277
+ /* Border radius */
278
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
279
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
280
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
281
+
282
+ /* Shadow */
283
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
284
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
285
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
286
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
287
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
288
+
289
+ /* Clickable element cursor */
290
+ --lumo-clickable-cursor: default;
291
+ }
292
+ `;A`
293
+ html {
294
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
295
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
296
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
297
+ }
298
+ `;Tr("style-props",Vc);/**
299
+ * @license
300
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
301
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
302
+ */const Yc=A`
303
+ :host {
304
+ /* prettier-ignore */
305
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
306
+
307
+ /* Font sizes */
308
+ --lumo-font-size-xxs: 0.75rem;
309
+ --lumo-font-size-xs: 0.8125rem;
310
+ --lumo-font-size-s: 0.875rem;
311
+ --lumo-font-size-m: 1rem;
312
+ --lumo-font-size-l: 1.125rem;
313
+ --lumo-font-size-xl: 1.375rem;
314
+ --lumo-font-size-xxl: 1.75rem;
315
+ --lumo-font-size-xxxl: 2.5rem;
316
+
317
+ /* Line heights */
318
+ --lumo-line-height-xs: 1.25;
319
+ --lumo-line-height-s: 1.375;
320
+ --lumo-line-height-m: 1.625;
321
+ }
322
+ `,Gc=A`
323
+ body,
324
+ :host {
325
+ font-family: var(--lumo-font-family);
326
+ font-size: var(--lumo-font-size-m);
327
+ line-height: var(--lumo-line-height-m);
328
+ -webkit-text-size-adjust: 100%;
329
+ -webkit-font-smoothing: antialiased;
330
+ -moz-osx-font-smoothing: grayscale;
331
+ }
332
+
333
+ small,
334
+ [theme~='font-size-s'] {
335
+ font-size: var(--lumo-font-size-s);
336
+ line-height: var(--lumo-line-height-s);
337
+ }
338
+
339
+ [theme~='font-size-xs'] {
340
+ font-size: var(--lumo-font-size-xs);
341
+ line-height: var(--lumo-line-height-xs);
342
+ }
343
+
344
+ :where(h1, h2, h3, h4, h5, h6) {
345
+ font-weight: 600;
346
+ line-height: var(--lumo-line-height-xs);
347
+ margin-block: 0;
348
+ }
349
+
350
+ :where(h1) {
351
+ font-size: var(--lumo-font-size-xxxl);
352
+ }
353
+
354
+ :where(h2) {
355
+ font-size: var(--lumo-font-size-xxl);
356
+ }
357
+
358
+ :where(h3) {
359
+ font-size: var(--lumo-font-size-xl);
360
+ }
361
+
362
+ :where(h4) {
363
+ font-size: var(--lumo-font-size-l);
364
+ }
365
+
366
+ :where(h5) {
367
+ font-size: var(--lumo-font-size-m);
368
+ }
369
+
370
+ :where(h6) {
371
+ font-size: var(--lumo-font-size-xs);
372
+ text-transform: uppercase;
373
+ letter-spacing: 0.03em;
374
+ }
375
+
376
+ p,
377
+ blockquote {
378
+ margin-top: 0.5em;
379
+ margin-bottom: 0.75em;
380
+ }
381
+
382
+ a {
383
+ text-decoration: none;
384
+ }
385
+
386
+ a:where(:any-link):hover {
387
+ text-decoration: underline;
388
+ }
389
+
390
+ hr {
391
+ display: block;
392
+ align-self: stretch;
393
+ height: 1px;
394
+ border: 0;
395
+ padding: 0;
396
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
397
+ background-color: var(--lumo-contrast-10pct);
398
+ }
399
+
400
+ blockquote {
401
+ border-left: 2px solid var(--lumo-contrast-30pct);
402
+ }
403
+
404
+ b,
405
+ strong {
406
+ font-weight: 600;
407
+ }
408
+
409
+ /* RTL specific styles */
410
+ blockquote[dir='rtl'] {
411
+ border-left: none;
412
+ border-right: 2px solid var(--lumo-contrast-30pct);
413
+ }
414
+ `;q("",Gc,{moduleId:"lumo-typography"});Tr("typography-props",Yc);q("vaadin-input-container",A`
415
+ :host {
416
+ background-color: var(--lumo-contrast-10pct);
417
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
418
+ font-weight: 500;
419
+ line-height: 1;
420
+ position: relative;
421
+ cursor: text;
422
+ box-sizing: border-box;
423
+ border-radius:
424
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
425
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
426
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
427
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
428
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
429
+ /* Fallback */
430
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
431
+ /* Default field border color */
432
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
433
+ }
434
+
435
+ :host([dir='rtl']) {
436
+ border-radius:
437
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
438
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
439
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
440
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
441
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
442
+ }
443
+
444
+ /* Used for hover and activation effects */
445
+ :host::after {
446
+ content: '';
447
+ position: absolute;
448
+ inset: 0;
449
+ border-radius: inherit;
450
+ pointer-events: none;
451
+ background-color: var(--lumo-contrast-50pct);
452
+ opacity: 0;
453
+ transition: transform 0.15s, opacity 0.2s;
454
+ transform-origin: 100% 0;
455
+ }
456
+
457
+ ::slotted(:not([slot$='fix'])) {
458
+ cursor: inherit;
459
+ min-height: var(--lumo-text-field-size, var(--lumo-size-m));
460
+ padding: 0 0.25em;
461
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
462
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
463
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
464
+ }
465
+
466
+ /* Read-only */
467
+ :host([readonly]) {
468
+ color: var(--lumo-secondary-text-color);
469
+ background-color: transparent;
470
+ cursor: default;
471
+ }
472
+
473
+ :host([readonly])::after {
474
+ background-color: transparent;
475
+ opacity: 1;
476
+ border: 1px dashed var(--lumo-contrast-30pct);
477
+ }
478
+
479
+ /* Disabled */
480
+ :host([disabled]) {
481
+ background-color: var(--lumo-contrast-5pct);
482
+ }
483
+
484
+ :host([disabled]) ::slotted(*) {
485
+ color: var(--lumo-disabled-text-color);
486
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
487
+ }
488
+
489
+ /* Invalid */
490
+ :host([invalid]) {
491
+ background-color: var(--lumo-error-color-10pct);
492
+ }
493
+
494
+ :host([invalid])::after {
495
+ background-color: var(--lumo-error-color-50pct);
496
+ }
497
+
498
+ /* Slotted icons */
499
+ ::slotted(vaadin-icon) {
500
+ color: var(--lumo-contrast-60pct);
501
+ width: var(--lumo-icon-size-m);
502
+ height: var(--lumo-icon-size-m);
503
+ }
504
+
505
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
506
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
507
+ padding: 0.25em;
508
+ box-sizing: border-box !important;
509
+ }
510
+
511
+ /* Text align */
512
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
513
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
514
+ }
515
+
516
+ @-moz-document url-prefix() {
517
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
518
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
519
+ }
520
+ }
521
+
522
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
523
+ text-align: start;
524
+ --_lumo-text-field-overflow-mask-image: none;
525
+ }
526
+
527
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
528
+ text-align: center;
529
+ --_lumo-text-field-overflow-mask-image: none;
530
+ }
531
+
532
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
533
+ text-align: end;
534
+ --_lumo-text-field-overflow-mask-image: none;
535
+ }
536
+
537
+ @-moz-document url-prefix() {
538
+ /* Firefox is smart enough to align overflowing text to right */
539
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
540
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
541
+ }
542
+ }
543
+
544
+ @-moz-document url-prefix() {
545
+ /* Firefox is smart enough to align overflowing text to right */
546
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
547
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
548
+ }
549
+ }
550
+
551
+ /* RTL specific styles */
552
+ :host([dir='rtl'])::after {
553
+ transform-origin: 0% 0;
554
+ }
555
+
556
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
557
+ --_lumo-text-field-overflow-mask-image: none;
558
+ }
559
+
560
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
561
+ --_lumo-text-field-overflow-mask-image: none;
562
+ }
563
+
564
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
565
+ --_lumo-text-field-overflow-mask-image: none;
566
+ }
567
+
568
+ @-moz-document url-prefix() {
569
+ /* Firefox is smart enough to align overflowing text to right */
570
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
571
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
572
+ }
573
+ }
574
+
575
+ @-moz-document url-prefix() {
576
+ /* Firefox is smart enough to align overflowing text to right */
577
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
578
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
579
+ }
580
+ }
581
+ `,{moduleId:"lumo-input-container"});/**
582
+ @license
583
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
584
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
585
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
586
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
587
+ Code distributed by Google as part of the polymer project is also
588
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
589
+ */window.JSCompiler_renameProperty=function(t,r){return t};/**
590
+ @license
591
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
592
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
593
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
594
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
595
+ Code distributed by Google as part of the polymer project is also
596
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
597
+ */let Wc=/(url\()([^)]*)(\))/g,qc=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Jt,fe;function Dt(t,r){if(t&&qc.test(t)||t==="//")return t;if(Jt===void 0){Jt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Jt=e.href==="http://a/c%20d"}catch(e){}}if(r||(r=document.baseURI||window.location.href),Jt)try{return new URL(t,r).href}catch(e){return t}return fe||(fe=document.implementation.createHTMLDocument("temp"),fe.base=fe.createElement("base"),fe.head.appendChild(fe.base),fe.anchor=fe.createElement("a"),fe.body.appendChild(fe.anchor)),fe.base.href=r,fe.anchor.href=t,fe.anchor.href||t}function ri(t,r){return t.replace(Wc,function(e,o,i,s){return o+"'"+Dt(i.replace(/["']/g,""),r)+"'"+s})}function oi(t){return t.substring(0,t.lastIndexOf("/")+1)}/**
598
+ @license
599
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
600
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
601
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
602
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
603
+ Code distributed by Google as part of the polymer project is also
604
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
605
+ */const Dn=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Xc=Dn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const r=document.createElement("div");return r.attachShadow({mode:"open"}),r.shadowRoot.adoptedStyleSheets=[t],r.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Kc=window.Polymer&&window.Polymer.rootPath||oi(document.baseURI||window.location.href),mr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let _r=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Jc=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,kn=window.Polymer&&window.Polymer.legacyOptimizations||!1,Mn=window.Polymer&&window.Polymer.legacyWarnings||!1,Zc=window.Polymer&&window.Polymer.syncInitialRender||!1,Do=window.Polymer&&window.Polymer.legacyUndefined||!1,Qc=window.Polymer&&window.Polymer.orderedComputed||!1,is=window.Polymer&&window.Polymer.removeNestedTemplates||!1,eh=window.Polymer&&window.Polymer.fastDomIf||!1,ss=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let th=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
606
+ @license
607
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
608
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
609
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
610
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
611
+ Code distributed by Google as part of the polymer project is also
612
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
613
+ */let rh=0;const ee=function(t){let r=t.__mixinApplications;r||(r=new WeakMap,t.__mixinApplications=r);let e=rh++;function o(i){let s=i.__mixinSet;if(s&&s[e])return i;let n=r,a=n.get(i);if(!a){a=t(i),n.set(i,a);let l=Object.create(a.__mixinSet||s||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
614
+ @license
615
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
616
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
617
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
618
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
619
+ Code distributed by Google as part of the polymer project is also
620
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
621
+ */let ii={},On={};function ns(t,r){ii[t]=On[t.toLowerCase()]=r}function as(t){return ii[t]||On[t.toLowerCase()]}function oh(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}class Ht extends HTMLElement{static get observedAttributes(){return["id"]}static import(r,e){if(r){let o=as(r);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(r,e,o,i){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const r=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Dt(this.getAttribute("assetpath")||"",r.baseURI);this.__assetpath=oi(e)}return this.__assetpath}register(r){if(r=r||this.id,r){if(_r&&as(r)!==void 0)throw ns(r,null),new Error(`strictTemplatePolicy: dom-module ${r} re-registered`);this.id=r,ns(r,this),oh(this)}}}Ht.prototype.modules=ii;customElements.define("dom-module",Ht);/**
622
+ @license
623
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
624
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
625
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
626
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
627
+ Code distributed by Google as part of the polymer project is also
628
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
629
+ */const ih="link[rel=import][type~=css]",sh="include",ls="shady-unscoped";function In(t){return Ht.import(t)}function us(t){let r=t.body?t.body:t;const e=ri(r.textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function nh(t){const r=t.trim().split(/\s+/),e=[];for(let o=0;o<r.length;o++)e.push(...ah(r[o]));return e}function ah(t){const r=In(t);if(!r)return console.warn("Could not find style data in module named",t),[];if(r._styles===void 0){const e=[];e.push(...Ln(r));const o=r.querySelector("template");o&&e.push(...Nn(o,r.assetpath)),r._styles=e}return r._styles}function Nn(t,r){if(!t._styles){const e=[],o=t.content.querySelectorAll("style");for(let i=0;i<o.length;i++){let s=o[i],n=s.getAttribute(sh);n&&e.push(...nh(n).filter(function(a,l,u){return u.indexOf(a)===l})),r&&(s.textContent=ri(s.textContent,r)),e.push(s)}t._styles=e}return t._styles}function lh(t){let r=In(t);return r?Ln(r):[]}function Ln(t){const r=[],e=t.querySelectorAll(ih);for(let o=0;o<e.length;o++){let i=e[o];if(i.import){const s=i.import,n=i.hasAttribute(ls);if(n&&!s._unscopedStyle){const a=us(s);a.setAttribute(ls,""),s._unscopedStyle=a}else s._style||(s._style=us(s));r.push(n?s._unscopedStyle:s._style)}}return r}/**
630
+ @license
631
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
632
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
633
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
634
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
635
+ Code distributed by Google as part of the polymer project is also
636
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
637
+ */const ie=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;/**
638
+ @license
639
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
640
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
641
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
642
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
643
+ Code distributed by Google as part of the polymer project is also
644
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
645
+ */function ko(t){return t.indexOf(".")>=0}function We(t){let r=t.indexOf(".");return r===-1?t:t.slice(0,r)}function Hn(t,r){return t.indexOf(r+".")===0}function $t(t,r){return r.indexOf(t+".")===0}function Bt(t,r,e){return r+e.slice(t.length)}function uh(t,r){return t===r||Hn(t,r)||$t(t,r)}function Ct(t){if(Array.isArray(t)){let r=[];for(let e=0;e<t.length;e++){let o=t[e].toString().split(".");for(let i=0;i<o.length;i++)r.push(o[i])}return r.join(".")}else return t}function $n(t){return Array.isArray(t)?Ct(t).split("."):t.toString().split(".")}function ce(t,r,e){let o=t,i=$n(r);for(let s=0;s<i.length;s++){if(!o)return;let n=i[s];o=o[n]}return e&&(e.path=i.join(".")),o}function cs(t,r,e){let o=t,i=$n(r),s=i[i.length-1];if(i.length>1){for(let n=0;n<i.length-1;n++){let a=i[n];if(o=o[a],!o)return}o[s]=e}else o[r]=e;return i.join(".")}/**
646
+ @license
647
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
648
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
649
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
650
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
651
+ Code distributed by Google as part of the polymer project is also
652
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
653
+ */const gr={},ch=/-[a-z]/g,hh=/([A-Z])/g;function Bn(t){return gr[t]||(gr[t]=t.indexOf("-")<0?t:t.replace(ch,r=>r[1].toUpperCase()))}function Pr(t){return gr[t]||(gr[t]=t.replace(hh,"-$1").toLowerCase())}/**
654
+ @license
655
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
656
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
657
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
658
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
659
+ Code distributed by Google as part of the polymer project is also
660
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
661
+ */let dh=0,zn=0,ot=[],fh=0,Mo=!1,Fn=document.createTextNode("");new window.MutationObserver(ph).observe(Fn,{characterData:!0});function ph(){Mo=!1;const t=ot.length;for(let r=0;r<t;r++){let e=ot[r];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}ot.splice(0,t),zn+=t}const mh={after(t){return{run(r){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}}},run(t,r){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}},Rn={run(t){return Mo||(Mo=!0,Fn.textContent=fh++),ot.push(t),dh++},cancel(t){const r=t-zn;if(r>=0){if(!ot[r])throw new Error("invalid async handle: "+t);ot[r]=null}}};/**
662
+ @license
663
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
664
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
665
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
666
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
667
+ Code distributed by Google as part of the polymer project is also
668
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
669
+ */const _h=Rn,Un=ee(t=>{class r extends t{static createProperties(o){const i=this.prototype;for(let s in o)s in i||i._createPropertyAccessor(s)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,i){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,i))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let i=this.__dataAttributes[o];return i||(i=this.constructor.attributeNameForProperty(o),this.__dataAttributes[i]=o),i}_definePropertyAccessor(o,i){Object.defineProperty(this,o,{get(){return this.__data[o]},set:i?function(){}:function(s){this._setPendingProperty(o,s,!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 o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,i){this._setPendingProperty(o,i)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,i,s){let n=this.__data[o],a=this._shouldPropertyChange(o,i,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=i,this.__dataPending[o]=i),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,_h.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 o=this.__data,i=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(o,i,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,i,s)),this.__dataCounter--}_shouldPropertiesChange(o,i,s){return!!i}_propertiesChanged(o,i,s){}_shouldPropertyChange(o,i,s){return s!==i&&(s===s||i===i)}attributeChangedCallback(o,i,s,n){i!==s&&this._attributeToProperty(o,s),super.attributeChangedCallback&&super.attributeChangedCallback(o,i,s,n)}_attributeToProperty(o,i,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(i,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,i,s){this.__serializing=!0,s=arguments.length<3?this[o]:s,this._valueToNodeAttribute(this,s,i||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,i,s){const n=this._serializeValue(i);(s==="class"||s==="name"||s==="slot")&&(o=ie(o)),n===void 0?o.removeAttribute(s):o.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,i){switch(i){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return r});/**
670
+ @license
671
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
672
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
673
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
674
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
675
+ Code distributed by Google as part of the polymer project is also
676
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
677
+ */const jn={};let Zt=HTMLElement.prototype;for(;Zt;){let t=Object.getOwnPropertyNames(Zt);for(let r=0;r<t.length;r++)jn[t[r]]=!0;Zt=Object.getPrototypeOf(Zt)}const gh=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1;function bh(t,r){if(!jn[r]){let e=t[r];e!==void 0&&(t.__data?t._setPendingProperty(r,e):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[r]=e))}}const yh=ee(t=>{const r=Un(t);class e extends r{static createPropertiesForAttributes(){let i=this.observedAttributes;for(let s=0;s<i.length;s++)this.prototype._createPropertyAccessor(Bn(i[s]))}static attributeNameForProperty(i){return Pr(i)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(i){for(let s in i)this._setProperty(s,i[s])}_ensureAttribute(i,s){const n=this;n.hasAttribute(i)||this._valueToNodeAttribute(n,s,i)}_serializeValue(i){switch(typeof i){case"object":if(i instanceof Date)return i.toString();if(i){if(gh(i))return i;try{return JSON.stringify(i)}catch(s){return""}}default:return super._serializeValue(i)}}_deserializeValue(i,s){let n;switch(s){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,s);break}return n}_definePropertyAccessor(i,s){bh(this,i),super._definePropertyAccessor(i,s)}_hasAccessor(i){return this.__dataHasAccessor&&this.__dataHasAccessor[i]}_isPropertyPending(i){return!!(this.__dataPending&&i in this.__dataPending)}}return e});/**
678
+ @license
679
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
680
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
681
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
682
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
683
+ Code distributed by Google as part of the polymer project is also
684
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
685
+ */const vh={"dom-if":!0,"dom-repeat":!0};let hs=!1,ds=!1;function xh(){if(!hs){hs=!0;const t=document.createElement("textarea");t.placeholder="a",ds=t.placeholder===t.textContent}return ds}function wh(t){xh()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}const Eh=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:r=>r});return(r,e,o)=>{const i=e.getAttribute(o);if(t&&o.startsWith("on-")){r.setAttribute(o,t.createScript(i,o));return}r.setAttribute(o,i)}})();function Sh(t){let r=t.getAttribute("is");if(r&&vh[r]){let e=t;for(e.removeAttribute("is"),t=e.ownerDocument.createElement(r),e.parentNode.replaceChild(t,e),t.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];Eh(t,e,o),e.removeAttribute(o)}}return t}function Vn(t,r){let e=r.parentInfo&&Vn(t,r.parentInfo);if(e){for(let o=e.firstChild,i=0;o;o=o.nextSibling)if(r.parentIndex===i++)return o}else return t}function Ah(t,r,e,o){o.id&&(r[o.id]=e)}function Ch(t,r,e){if(e.events&&e.events.length)for(let o=0,i=e.events,s;o<i.length&&(s=i[o]);o++)t._addMethodEventListenerToNode(r,s.name,s.value,t)}function Th(t,r,e,o){e.templateInfo&&(r._templateInfo=e.templateInfo,r._parentTemplateInfo=o)}function Ph(t,r,e){return t=t._methodHost||t,function(i){t[e]?t[e](i,i.detail):console.warn("listener method `"+e+"` not defined")}}const Dh=ee(t=>{class r extends t{static _parseTemplate(o,i){if(!o._templateInfo){let s=o._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!i,s.stripWhiteSpace=i&&i.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,s,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,i,s){return this._parseTemplateNode(o.content,i,s)}static _parseTemplateNode(o,i,s){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,i,s)||n:a.localName==="slot"&&(i.hasInsertionPoint=!0),wh(a),a.firstChild&&this._parseTemplateChildNodes(a,i,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,i,s)||n),n||s.noted}static _parseTemplateChildNodes(o,i,s){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Sh(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,o.removeChild(c),c=l;if(i.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let u={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,i,u)&&(u.infoIndex=i.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,i,s){let n=o,a=this._parseTemplate(n,i);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,i,s){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(o,i,s,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(o,i,s,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(o){let i=o._templateInfo;return i&&i.content||o.content}_stampTemplate(o,i){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),i=i||this.constructor._parseTemplate(o);let s=i.nodeInfoList,n=i.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!i.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let u=0,c=s.length,h;u<c&&(h=s[u]);u++){let d=l[u]=Vn(a,h);Ah(this,a.$,d,h),Th(this,d,h,i),Ch(this,d,h)}return a=a,a}_addMethodEventListenerToNode(o,i,s,n){n=n||o;let a=Ph(n,i,s);return this._addEventListenerToNode(o,i,a),a}_addEventListenerToNode(o,i,s){o.addEventListener(i,s)}_removeEventListenerFromNode(o,i,s){o.removeEventListener(i,s)}}return r});/**
686
+ * @fileoverview
687
+ * @suppress {checkPrototypalTypes}
688
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
689
+ * This code may only be used under the BSD style license found at
690
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
691
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
692
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
693
+ * Google as part of the polymer project is also subject to an additional IP
694
+ * rights grant found at http://polymer.github.io/PATENTS.txt
695
+ */let zt=0;const Ft=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Yn="__computeInfo",kh=/[A-Z]/;function Xr(t,r,e){let o=t[r];if(!o)o=t[r]={};else if(!t.hasOwnProperty(r)&&(o=t[r]=Object.create(t[r]),e))for(let i in o){let s=o[i],n=o[i]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return o}function Tt(t,r,e,o,i,s){if(r){let n=!1;const a=zt++;for(let l in e){let u=i?We(l):l,c=r[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!i||si(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(t,l,e,o,f.info,i,s),n=!0)}return n}return!1}function Mh(t,r,e,o,i,s,n,a){let l=!1,u=n?We(o):o,c=r[u];if(c)for(let h=0,d=c.length,f;h<d&&(f=c[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||si(o,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(t,o,i,s,f.info,n,a),l=!0);return l}function si(t,r){if(r){let e=r.name;return e==t||!!(r.structured&&Hn(e,t))||!!(r.wildcard&&$t(e,t))}else return!0}function fs(t,r,e,o,i){let s=typeof i.method=="string"?t[i.method]:i.method,n=i.property;s?s.call(t,t.__data[n],o[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Oh(t,r,e,o,i){let s=t[$.NOTIFY],n,a=zt++;for(let u in r)r[u]&&(s&&Mh(t,s,a,u,e,o,i)||i&&Ih(t,u,e))&&(n=!0);let l;n&&(l=t.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Ih(t,r,e){let o=We(r);if(o!==r){let i=Pr(o)+"-changed";return Gn(t,i,e[r],r),!0}return!1}function Gn(t,r,e,o){let i={value:e,queueProperty:!0};o&&(i.path=o),ie(t).dispatchEvent(new CustomEvent(r,{detail:i}))}function Nh(t,r,e,o,i,s){let a=(s?We(r):r)!=r?r:null,l=a?ce(t,a):t.__data[r];a&&l===void 0&&(l=e[r]),Gn(t,i.eventName,l,a)}function Lh(t,r,e,o,i){let s,n=t.detail,a=n&&n.path;a?(o=Bt(e,o,a),s=n&&n.value):s=t.currentTarget[e],s=i?!s:s,(!r[$.READ_ONLY]||!r[$.READ_ONLY][o])&&r._setPendingPropertyOrPath(o,s,!0,!!a)&&(!n||!n.queueProperty)&&r._invalidateProperties()}function Hh(t,r,e,o,i){let s=t.__data[r];mr&&(s=mr(s,i.attrName,"attribute",t)),t._propertyToAttribute(r,i.attrName,s)}function $h(t,r,e,o){let i=t[$.COMPUTE];if(i)if(Qc){zt++;const s=zh(t),n=[];for(let l in r)ps(l,i,n,s,o);let a;for(;a=n.shift();)Wn(t,"",r,e,a)&&ps(a.methodInfo,i,n,s,o);Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),t.__dataPending=null}else{let s=r;for(;Tt(t,i,s,e,o);)Object.assign(e,t.__dataOld),Object.assign(r,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}const Bh=(t,r,e)=>{let o=0,i=r.length-1,s=-1;for(;o<=i;){const n=o+i>>1,a=e.get(r[n].methodInfo)-e.get(t.methodInfo);if(a<0)o=n+1;else if(a>0)i=n-1;else{s=n;break}}s<0&&(s=i+1),r.splice(s,0,t)},ps=(t,r,e,o,i)=>{const s=i?We(t):t,n=r[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==zt&&(!i||si(t,l.trigger))&&(l.info.lastRun=zt,Bh(l.info,e,o))}};function zh(t){let r=t.constructor.__orderedComputedDeps;if(!r){r=new Map;const e=t[$.COMPUTE];let{counts:o,ready:i,total:s}=Fh(t),n;for(;n=i.shift();){r.set(n,r.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--s,--o[u]===0&&i.push(u)})}s!==0&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=r}return r}function Fh(t){const r=t[Yn],e={},o=t[$.COMPUTE],i=[];let s=0;for(let n in r){const a=r[n];s+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)r[n]||i.push(n);return{counts:e,ready:i,total:s}}function Wn(t,r,e,o,i){let s=Oo(t,r,e,o,i);if(s===Ft)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Rh(t,r,e){let o=t.__dataLinkedPaths;if(o){let i;for(let s in o){let n=o[s];$t(s,r)?(i=Bt(s,n,r),t._setPendingPropertyOrPath(i,e,!0,!0)):$t(n,r)&&(i=Bt(n,s,r),t._setPendingPropertyOrPath(i,e,!0,!0))}}}function Kr(t,r,e,o,i,s,n){e.bindings=e.bindings||[];let a={kind:o,target:i,parts:s,literal:n,isCompound:s.length!==1};if(e.bindings.push(a),Gh(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Pr(i)+"-changed",a.listenerNegate=c}let l=r.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,Uh(t,r,a,c,l)}}function Uh(t,r,e,o,i){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let s=o.dependencies,n={index:i,binding:e,part:o,evaluator:t};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=Xn(l),l.wildcard=!0),t._addTemplatePropertyEffect(r,l.rootProperty,{fn:jh,info:n,trigger:l})}}}function jh(t,r,e,o,i,s,n){let a=n[i.index],l=i.binding,u=i.part;if(s&&u.source&&r.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[r];r=Bt(u.source,l.target,r),a._setPendingPropertyOrPath(r,c,!1,!0)&&t._enqueueClient(a)}else{let c=i.evaluator._evaluateBinding(t,u,r,e,o,s);c!==Ft&&Vh(t,a,l,u,c)}}function Vh(t,r,e,o,i){if(i=Yh(r,i,e,o),mr&&(i=mr(i,e.target,e.kind,r)),e.kind=="attribute")t._valueToNodeAttribute(r,i,e.target);else{let s=e.target;r.__isPropertyEffectsClient&&r.__dataHasAccessor&&r.__dataHasAccessor[s]?(!r[$.READ_ONLY]||!r[$.READ_ONLY][s])&&r._setPendingProperty(s,i)&&t._enqueueClient(r):t._setUnmanagedPropertyToNode(r,s,i)}}function Yh(t,r,e,o){if(e.isCompound){let i=t.__dataCompoundStorage[e.target];i[o.compoundIndex]=r,r=i.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(r=r==null?"":r),r}function Gh(t){return!!t.target&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Wh(t,r){let{nodeList:e,nodeInfoList:o}=r;if(o.length)for(let i=0;i<o.length;i++){let s=o[i],n=e[i],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];qh(n,u),Xh(n,t,u)}n.__dataHost=t}}function qh(t,r){if(r.isCompound){let e=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),o=r.parts,i=new Array(o.length);for(let n=0;n<o.length;n++)i[n]=o[n].literal;let s=r.target;e[s]=i,r.literal&&r.kind=="property"&&(s==="className"&&(t=ie(t)),t[s]=r.literal)}}function Xh(t,r,e){if(e.listenerEvent){let o=e.parts[0];t.addEventListener(e.listenerEvent,function(i){Lh(i,r,e.target,o.source,o.negate)})}}function ms(t,r,e,o,i,s){s=r.static||s&&(typeof s!="object"||s[r.methodName]);let n={methodName:r.methodName,args:r.args,methodInfo:i,dynamicFn:s};for(let a=0,l;a<r.args.length&&(l=r.args[a]);a++)l.literal||t._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return s&&t._addPropertyEffect(r.methodName,e,{fn:o,info:n}),n}function Oo(t,r,e,o,i){let s=t._methodHost||t,n=s[i.methodName];if(n){let a=t._marshalArgs(i.args,r,e);return a===Ft?Ft:n.apply(s,a)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const Kh=[],qn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Jh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Zh="(?:'(?:[^'\\\\]|\\\\.)*')",Qh='(?:"(?:[^"\\\\]|\\\\.)*")',ed="(?:"+Zh+"|"+Qh+")",_s="(?:("+qn+"|"+Jh+"|"+ed+")\\s*)",td="(?:"+_s+"(?:,\\s*"+_s+")*)",rd="(?:\\(\\s*(?:"+td+"?)\\)\\s*)",od="("+qn+"\\s*"+rd+"?)",id="(\\[\\[|{{)\\s*",sd="(?:]]|}})",nd="(?:(!)\\s*)?",ad=id+nd+od+sd,gs=new RegExp(ad,"g");function bs(t){let r="";for(let e=0;e<t.length;e++){let o=t[e].literal;r+=o||""}return r}function Jr(t){let r=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(r){let o={methodName:r[1],static:!0,args:Kh};if(r[2].trim()){let i=r[2].replace(/\\,/g,"&comma;").split(",");return ld(i,o)}else return o}return null}function ld(t,r){return r.args=t.map(function(e){let o=Xn(e);return o.literal||(r.static=!1),o},this),r}function Xn(t){let r=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:r,value:"",literal:!1},o=r[0];switch(o==="-"&&(o=r[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=r.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(r),e.literal=!0;break}return e.literal||(e.rootProperty=We(r),e.structured=ko(r),e.structured&&(e.wildcard=r.slice(-2)==".*",e.wildcard&&(e.name=r.slice(0,-2)))),e}function ys(t,r,e){let o=ce(t,e);return o===void 0&&(o=r[e]),o}function Kn(t,r,e,o){const i={indexSplices:o};Do&&!t._overrideLegacyUndefined&&(r.splices=i),t.notifyPath(e+".splices",i),t.notifyPath(e+".length",r.length),Do&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function wt(t,r,e,o,i,s){Kn(t,r,e,[{index:o,addedCount:i,removed:s,object:r,type:"splice"}])}function ud(t){return t[0].toUpperCase()+t.substring(1)}const ni=ee(t=>{const r=Dh(yh(t));class e extends r{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 $}_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(Et.length){let i=Et[Et.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 s=this[$.READ_ONLY];for(let n in i)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=i[n])}_addPropertyEffect(i,s,n){this._createPropertyAccessor(i,s==$.READ_ONLY);let a=Xr(this,s,!0)[i];a||(a=this[s][i]=[]),a.push(n)}_removePropertyEffect(i,s,n){let a=Xr(this,s,!0)[i],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(i,s){let n=this[s];return!!(n&&n[i])}_hasReadOnlyEffect(i){return this._hasPropertyEffect(i,$.READ_ONLY)}_hasNotifyEffect(i){return this._hasPropertyEffect(i,$.NOTIFY)}_hasReflectEffect(i){return this._hasPropertyEffect(i,$.REFLECT)}_hasComputedEffect(i){return this._hasPropertyEffect(i,$.COMPUTE)}_setPendingPropertyOrPath(i,s,n,a){if(a||We(Array.isArray(i)?i[0]:i)!==i){if(!a){let l=ce(this,i);if(i=cs(this,i,s),!i||!super._shouldPropertyChange(i,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(i,s,n))return Rh(this,i,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[i])return this._setPendingProperty(i,s,n);this[i]=s}return!1}_setUnmanagedPropertyToNode(i,s,n){(n!==i[s]||typeof n=="object")&&(s==="className"&&(i=ie(i)),i[s]=n)}_setPendingProperty(i,s,n){let a=this.__dataHasPaths&&ko(i),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(i,s,l[i])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),i in this.__dataOld||(this.__dataOld[i]=this.__data[i]),a?this.__dataTemp[i]=s:this.__data[i]=s,this.__dataPending[i]=s,(a||this[$.NOTIFY]&&this[$.NOTIFY][i])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[i]=n),!0):!1}_setProperty(i,s){this._setPendingProperty(i,s,!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 s=0;s<i.length;s++){let n=i[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(i,s){for(let n in i)(s||!this[$.READ_ONLY]||!this[$.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,i[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(i,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$h(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),Tt(this,this[$.REFLECT],s,n,a),Tt(this,this[$.OBSERVE],s,n,a),l&&Oh(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(i,s,n){this[$.PROPAGATE]&&Tt(this,this[$.PROPAGATE],i,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,i,s,n)}_runEffectsForTemplate(i,s,n,a){const l=(u,c)=>{Tt(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,s,a):l(s,a)}linkPaths(i,s){i=Ct(i),s=Ct(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[i]=s}unlinkPaths(i){i=Ct(i),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[i]}notifySplices(i,s){let n={path:""},a=ce(this,i,n);Kn(this,a,n.path,s)}get(i,s){return ce(s||this,i)}set(i,s,n){n?cs(n,i,s):(!this[$.READ_ONLY]||!this[$.READ_ONLY][i])&&this._setPendingPropertyOrPath(i,s,!0)&&this._invalidateProperties()}push(i,...s){let n={path:""},a=ce(this,i,n),l=a.length,u=a.push(...s);return s.length&&wt(this,a,n.path,l,s.length,[]),u}pop(i){let s={path:""},n=ce(this,i,s),a=!!n.length,l=n.pop();return a&&wt(this,n,s.path,n.length,0,[l]),l}splice(i,s,n,...a){let l={path:""},u=ce(this,i,l);s<0?s=u.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=u.splice(s):c=u.splice(s,n,...a),(a.length||c.length)&&wt(this,u,l.path,s,a.length,c),c}shift(i){let s={path:""},n=ce(this,i,s),a=!!n.length,l=n.shift();return a&&wt(this,n,s.path,0,0,[l]),l}unshift(i,...s){let n={path:""},a=ce(this,i,n),l=a.unshift(...s);return s.length&&wt(this,a,n.path,0,s.length,[]),l}notifyPath(i,s){let n;if(arguments.length==1){let a={path:""};s=ce(this,i,a),n=a.path}else Array.isArray(i)?n=Ct(i):n=i;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(i,s){this._addPropertyEffect(i,$.READ_ONLY),s&&(this["_set"+ud(i)]=function(n){this._setProperty(i,n)})}_createPropertyObserver(i,s,n){let a={property:i,method:s,dynamicFn:!!n};this._addPropertyEffect(i,$.OBSERVE,{fn:fs,info:a,trigger:{name:i}}),n&&this._addPropertyEffect(s,$.OBSERVE,{fn:fs,info:a,trigger:{name:s}})}_createMethodObserver(i,s){let n=Jr(i);if(!n)throw new Error("Malformed observer expression '"+i+"'");ms(this,n,$.OBSERVE,Oo,null,s)}_createNotifyingProperty(i){this._addPropertyEffect(i,$.NOTIFY,{fn:Nh,info:{eventName:Pr(i)+"-changed",property:i}})}_createReflectedProperty(i){let s=this.constructor.attributeNameForProperty(i);s[0]==="-"?console.warn("Property "+i+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(i,$.REFLECT,{fn:Hh,info:{attrName:s}})}_createComputedProperty(i,s,n){let a=Jr(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=ms(this,a,$.COMPUTE,Wn,i,n);Xr(this,Yn)[i]=l}_marshalArgs(i,s,n){const a=this.__data,l=[];for(let u=0,c=i.length;u<c;u++){let{name:h,structured:d,wildcard:f,value:p,literal:y}=i[u];if(!y)if(f){const P=$t(h,s),L=ys(a,n,P?s:h);p={path:P?s:h,value:L,base:P?ce(a,h):L}}else p=d?ys(a,n,h):a[h];if(Do&&!this._overrideLegacyUndefined&&p===void 0&&i.length>1)return Ft;l[u]=p}return l}static addPropertyEffect(i,s,n){this.prototype._addPropertyEffect(i,s,n)}static createPropertyObserver(i,s,n){this.prototype._createPropertyObserver(i,s,n)}static createMethodObserver(i,s){this.prototype._createMethodObserver(i,s)}static createNotifyingProperty(i){this.prototype._createNotifyingProperty(i)}static createReadOnlyProperty(i,s){this.prototype._createReadOnlyProperty(i,s)}static createReflectedProperty(i){this.prototype._createReflectedProperty(i)}static createComputedProperty(i,s,n){this.prototype._createComputedProperty(i,s,n)}static bindTemplate(i){return this.prototype._bindTemplate(i)}_bindTemplate(i,s){let n=this.constructor._parseTemplate(i),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)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,s,n){let a=i.hostProps=i.hostProps||{};a[s]=!0;let l=i.propertyEffects=i.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(i,s){s=s||this._bindTemplate(i,!0),Et.push(this);let n=super._stampTemplate(i,s);if(Et.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,Wh(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(i){const s=i.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let u=s.childNodes;for(let c=0;c<u.length;c++){let h=u[c];ie(ie(h).parentNode).removeChild(h)}}static _parseTemplateNode(i,s,n){let a=r._parseTemplateNode.call(this,i,s,n);if(i.nodeType===Node.TEXT_NODE){let l=this._parseBindings(i.textContent,s);l&&(i.textContent=bs(l)||" ",Kr(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(i,s,n,a,l){let u=this._parseBindings(l,s);if(u){let c=a,h="property";kh.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let d=bs(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=Bn(a)),Kr(this,s,n,h,a,u,d),!0}else return r._parseTemplateNodeAttribute.call(this,i,s,n,a,l)}static _parseTemplateNestedTemplate(i,s,n){let a=r._parseTemplateNestedTemplate.call(this,i,s,n);const l=i.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";is&&(c||h)&&(l.removeChild(i),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let d=u.hostProps;if(eh&&c)d&&(s.hostProps=Object.assign(s.hostProps||{},d),is||(n.parentInfo.noted=!0));else{let f="{";for(let p in d){let y=[{mode:f,source:p,dependencies:[p],hostProp:!0}];Kr(this,s,n,"property","_host_"+p,y)}}return a}static _parseBindings(i,s){let n=[],a=0,l;for(;(l=gs.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="",p=-1;u=="{"&&(p=h.indexOf("::"))>0&&(f=h.substring(p+2),h=h.substring(0,p),d=!0);let y=Jr(h),P=[];if(y){let{args:L,methodName:I}=y;for(let V=0;V<L.length;V++){let R=L[V];R.literal||P.push(R)}let F=s.dynamicFns;(F&&F[I]||y.static)&&(P.push(I),y.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:u,negate:c,customEvent:d,signature:y,dependencies:P,event:f}),a=gs.lastIndex}if(a&&a<i.length){let u=i.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(i,s,n,a,l,u){let c;return s.signature?c=Oo(i,n,a,l,s.signature):n!=s.source?c=ce(i,s.source):u&&ko(n)?c=ce(i,n):c=i.__data[n],s.negate&&(c=!c),c}}return e}),Et=[];/**
696
+ @license
697
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
698
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
699
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
700
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
701
+ Code distributed by Google as part of the polymer project is also
702
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
703
+ *//**
704
+ @license
705
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
706
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
707
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
708
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
709
+ Code distributed by Google as part of the polymer project is also
710
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
711
+ */function cd(t){const r={};for(let e in t){const o=t[e];r[e]=typeof o=="function"?{type:o}:o}return r}const hd=ee(t=>{const r=Un(t);function e(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof i?n:null}function o(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=cd(a))}s.__ownProperties=n}return s.__ownProperties}class i extends r{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=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(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});/**
712
+ * @fileoverview
713
+ * @suppress {checkPrototypalTypes}
714
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
715
+ * This code may only be used under the BSD style license found at
716
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
717
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
718
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
719
+ * Google as part of the polymer project is also subject to an additional IP
720
+ * rights grant found at http://polymer.github.io/PATENTS.txt
721
+ */const dd="3.5.2",vs=window.ShadyCSS&&window.ShadyCSS.cssBuild,fd=ee(t=>{const r=hd(ni(t));function e(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 o(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 s(l,u,c,h){if(!vs){const d=u.content.querySelectorAll("style"),f=Nn(u),p=lh(c),y=u.content.firstElementChild;for(let L=0;L<p.length;L++){let I=p[L];I.textContent=l._processStyleText(I.textContent,h),u.content.insertBefore(I,y)}let P=0;for(let L=0;L<f.length;L++){let I=f[L],F=d[P];F!==I?(I=I.cloneNode(!0),F.parentNode.insertBefore(I,F)):P++,I.textContent=l._processStyleText(I.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),th&&vs&&Xc){const d=u.content.querySelectorAll("style");if(d){let f="";Array.from(d).forEach(p=>{f+=p.textContent,p.parentNode.removeChild(p)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function n(l){let u=null;if(l&&(!_r||Jc)&&(u=Ht.import(l,"template"),_r&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends r{static get polymerElementVersion(){return dd}static _finalizeClass(){r._finalizeClass.call(this);const u=o(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):kn||(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=oi(u.url);else{const c=Ht.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=Kc,this.importPath=this.constructor.importPath;let u=e(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 ri(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,d=h?Dt(h):"";s(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=ie(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])),Zc&&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=Dt(this.importPath)),Dt(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,r._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return Mn&&!(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.`),r._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
722
+ @license
723
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
724
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
725
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
726
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
727
+ Code distributed by Google as part of the polymer project is also
728
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
729
+ */const xs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Jn{constructor(r,e){Qn(r,e);const o=e.reduce((i,s,n)=>i+Zn(s)+r[n+1],r[0]);this.value=o.toString()}toString(){return this.value}}function Zn(t){if(t instanceof Jn)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}function pd(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Jn)return Zn(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}const qe=function(r,...e){Qn(r,e);const o=document.createElement("template");let i=e.reduce((s,n,a)=>s+pd(n)+r[a+1],r[0]);return xs&&(i=xs.createHTML(i)),o.innerHTML=i,o},Qn=(t,r)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||r.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")};/**
730
+ @license
731
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
732
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
733
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
734
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
735
+ Code distributed by Google as part of the polymer project is also
736
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
737
+ */const He=fd(HTMLElement);/**
738
+ * @license
739
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
740
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
741
+ */const Ce=[];function Io(t,r,e=t.getAttribute("dir")){r?t.setAttribute("dir",r):e!=null&&t.removeAttribute("dir")}function No(){return document.documentElement.getAttribute("dir")}function md(){const t=No();Ce.forEach(r=>{Io(r,t)})}const _d=new MutationObserver(md);_d.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Dr=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Io(this,No(),null))}attributeChangedCallback(e,o,i){if(super.attributeChangedCallback(e,o,i),e!=="dir")return;const s=No(),n=i===s&&Ce.indexOf(this)===-1,a=!i&&o&&Ce.indexOf(this)===-1;n||a?(this.__subscribe(),Io(this,s,i)):i!==s&&o===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ce.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,i){i==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,i)}_attributeToProperty(e,o,i){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,i)}__subscribe(){Ce.includes(this)||Ce.push(this)}__unsubscribe(){Ce.includes(this)&&Ce.splice(Ce.indexOf(this),1)}};/**
742
+ * @license
743
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
744
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
745
+ */class gd extends Ge(Dr(He)){static get is(){return"vaadin-input-container"}static get template(){return qe`
746
+ <style>
747
+ :host {
748
+ display: flex;
749
+ align-items: center;
750
+ flex: 0 1 auto;
751
+ border-radius:
752
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
753
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
754
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
755
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
756
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
757
+ --_border-radius: var(--vaadin-input-field-border-radius, 0px);
758
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
759
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
760
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
761
+ }
762
+
763
+ :host([dir='rtl']) {
764
+ border-radius:
765
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
766
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
767
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
768
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
769
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
770
+ }
771
+
772
+ :host([hidden]) {
773
+ display: none !important;
774
+ }
775
+
776
+ /* Reset the native input styles */
777
+ ::slotted(input) {
778
+ -webkit-appearance: none;
779
+ -moz-appearance: none;
780
+ flex: auto;
781
+ white-space: nowrap;
782
+ overflow: hidden;
783
+ width: 100%;
784
+ height: 100%;
785
+ outline: none;
786
+ margin: 0;
787
+ padding: 0;
788
+ border: 0;
789
+ border-radius: 0;
790
+ min-width: 0;
791
+ font: inherit;
792
+ line-height: normal;
793
+ color: inherit;
794
+ background-color: transparent;
795
+ /* Disable default invalid style in Firefox */
796
+ box-shadow: none;
797
+ }
798
+
799
+ ::slotted(*) {
800
+ flex: none;
801
+ }
802
+
803
+ ::slotted(:is(input, textarea))::placeholder {
804
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
805
+ /* because ::slotted(...)::placeholder does not work in Safari. */
806
+ font: inherit;
807
+ color: inherit;
808
+ /* Override default opacity in Firefox */
809
+ opacity: 1;
810
+ }
811
+ </style>
812
+ <slot name="prefix"></slot>
813
+ <slot></slot>
814
+ <slot name="suffix"></slot>
815
+ `}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",r=>{r.target===this&&r.preventDefault()}),this.addEventListener("click",r=>{r.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(e=>e.focus&&e.focus())})}}ve(gd);/**
816
+ * @license
817
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
818
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
819
+ */let bd=class extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}};ve(bd);const gt=(t,...r)=>{ti(`lumo-${t}`,r)};/**
820
+ * @license
821
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
822
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
823
+ */const yd=A`
824
+ :host {
825
+ --lumo-size-xs: 1.625rem;
826
+ --lumo-size-s: 1.875rem;
827
+ --lumo-size-m: 2.25rem;
828
+ --lumo-size-l: 2.75rem;
829
+ --lumo-size-xl: 3.5rem;
830
+
831
+ /* Icons */
832
+ --lumo-icon-size-s: 1.25em;
833
+ --lumo-icon-size-m: 1.5em;
834
+ --lumo-icon-size-l: 2.25em;
835
+ /* For backwards compatibility */
836
+ --lumo-icon-size: var(--lumo-icon-size-m);
837
+ }
838
+ `;gt("sizing-props",yd);/**
839
+ * @license
840
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
841
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
842
+ */const vd=A`
843
+ :host {
844
+ /* Square */
845
+ --lumo-space-xs: 0.25rem;
846
+ --lumo-space-s: 0.5rem;
847
+ --lumo-space-m: 1rem;
848
+ --lumo-space-l: 1.5rem;
849
+ --lumo-space-xl: 2.5rem;
850
+
851
+ /* Wide */
852
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
853
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
854
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
855
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
856
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
857
+
858
+ /* Tall */
859
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
860
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
861
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
862
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
863
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
864
+ }
865
+ `;gt("spacing-props",vd);/**
866
+ * @license
867
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
868
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
869
+ */const xd=A`
870
+ :host {
871
+ /* Border radius */
872
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
873
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
874
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
875
+
876
+ /* Shadow */
877
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
878
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
879
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
880
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
881
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
882
+
883
+ /* Clickable element cursor */
884
+ --lumo-clickable-cursor: default;
885
+ }
886
+ `;A`
887
+ html {
888
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
889
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
890
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
891
+ }
892
+ `;gt("style-props",xd);/**
893
+ * @license
894
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
895
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
896
+ */const wd=A`
897
+ :host {
898
+ /* Base (background) */
899
+ --lumo-base-color: #fff;
900
+
901
+ /* Tint */
902
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
903
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
904
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
905
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
906
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
907
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
908
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
909
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
910
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
911
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
912
+ --lumo-tint: #fff;
913
+
914
+ /* Shade */
915
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
916
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
917
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
918
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
919
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
920
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
921
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
922
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
923
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
924
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
925
+ --lumo-shade: hsl(214, 35%, 15%);
926
+
927
+ /* Contrast */
928
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
929
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
930
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
931
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
932
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
933
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
934
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
935
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
936
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
937
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
938
+ --lumo-contrast: var(--lumo-shade);
939
+
940
+ /* Text */
941
+ --lumo-header-text-color: var(--lumo-contrast);
942
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
943
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
944
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
945
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
946
+
947
+ /* Primary */
948
+ --lumo-primary-color: hsl(214, 100%, 48%);
949
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
950
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
951
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
952
+ --lumo-primary-contrast-color: #fff;
953
+
954
+ /* Error */
955
+ --lumo-error-color: hsl(3, 85%, 48%);
956
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
957
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
958
+ --lumo-error-text-color: hsl(3, 89%, 42%);
959
+ --lumo-error-contrast-color: #fff;
960
+
961
+ /* Success */
962
+ --lumo-success-color: hsl(145, 72%, 30%);
963
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
964
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
965
+ --lumo-success-text-color: hsl(145, 85%, 25%);
966
+ --lumo-success-contrast-color: #fff;
967
+
968
+ /* Warning */
969
+ --lumo-warning-color: hsl(48, 100%, 50%);
970
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
971
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
972
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
973
+ }
974
+
975
+ /* forced-colors mode adjustments */
976
+ @media (forced-colors: active) {
977
+ html {
978
+ --lumo-disabled-text-color: GrayText;
979
+ }
980
+ }
981
+ `;gt("color-props",wd);const Ed=A`
982
+ [theme~='dark'] {
983
+ /* Base (background) */
984
+ --lumo-base-color: hsl(214, 35%, 21%);
985
+
986
+ /* Tint */
987
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
988
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
989
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
990
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
991
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
992
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
993
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
994
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
995
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
996
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
997
+ --lumo-tint: hsl(214, 100%, 98%);
998
+
999
+ /* Shade */
1000
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1001
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1002
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1003
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1004
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1005
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1006
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1007
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1008
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1009
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1010
+ --lumo-shade: hsl(214, 33%, 13%);
1011
+
1012
+ /* Contrast */
1013
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1014
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1015
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1016
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1017
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1018
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1019
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1020
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1021
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1022
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1023
+ --lumo-contrast: var(--lumo-tint);
1024
+
1025
+ /* Text */
1026
+ --lumo-header-text-color: var(--lumo-contrast);
1027
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1028
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1029
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1030
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1031
+
1032
+ /* Primary */
1033
+ --lumo-primary-color: hsl(214, 90%, 48%);
1034
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1035
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1036
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1037
+ --lumo-primary-contrast-color: #fff;
1038
+
1039
+ /* Error */
1040
+ --lumo-error-color: hsl(3, 79%, 49%);
1041
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1042
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1043
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1044
+
1045
+ /* Success */
1046
+ --lumo-success-color: hsl(145, 72%, 30%);
1047
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1048
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1049
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1050
+
1051
+ /* Warning */
1052
+ --lumo-warning-color: hsl(43, 100%, 48%);
1053
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1054
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1055
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1056
+ }
1057
+
1058
+ html {
1059
+ color: var(--lumo-body-text-color);
1060
+ background-color: var(--lumo-base-color);
1061
+ color-scheme: light;
1062
+ }
1063
+
1064
+ [theme~='dark'] {
1065
+ color: var(--lumo-body-text-color);
1066
+ background-color: var(--lumo-base-color);
1067
+ color-scheme: dark;
1068
+ }
1069
+
1070
+ h1,
1071
+ h2,
1072
+ h3,
1073
+ h4,
1074
+ h5,
1075
+ h6 {
1076
+ color: var(--lumo-header-text-color);
1077
+ }
1078
+
1079
+ a:where(:any-link) {
1080
+ color: var(--lumo-primary-text-color);
1081
+ }
1082
+
1083
+ a:not(:any-link) {
1084
+ color: var(--lumo-disabled-text-color);
1085
+ }
1086
+
1087
+ blockquote {
1088
+ color: var(--lumo-secondary-text-color);
1089
+ }
1090
+
1091
+ code,
1092
+ pre {
1093
+ background-color: var(--lumo-contrast-10pct);
1094
+ border-radius: var(--lumo-border-radius-m);
1095
+ }
1096
+ `;q("",Ed,{moduleId:"lumo-color"});/**
1097
+ * @license
1098
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1099
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1100
+ */const Sd=A`
1101
+ :host {
1102
+ /* prettier-ignore */
1103
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1104
+
1105
+ /* Font sizes */
1106
+ --lumo-font-size-xxs: 0.75rem;
1107
+ --lumo-font-size-xs: 0.8125rem;
1108
+ --lumo-font-size-s: 0.875rem;
1109
+ --lumo-font-size-m: 1rem;
1110
+ --lumo-font-size-l: 1.125rem;
1111
+ --lumo-font-size-xl: 1.375rem;
1112
+ --lumo-font-size-xxl: 1.75rem;
1113
+ --lumo-font-size-xxxl: 2.5rem;
1114
+
1115
+ /* Line heights */
1116
+ --lumo-line-height-xs: 1.25;
1117
+ --lumo-line-height-s: 1.375;
1118
+ --lumo-line-height-m: 1.625;
1119
+ }
1120
+ `,Ad=A`
1121
+ body,
1122
+ :host {
1123
+ font-family: var(--lumo-font-family);
1124
+ font-size: var(--lumo-font-size-m);
1125
+ line-height: var(--lumo-line-height-m);
1126
+ -webkit-text-size-adjust: 100%;
1127
+ -webkit-font-smoothing: antialiased;
1128
+ -moz-osx-font-smoothing: grayscale;
1129
+ }
1130
+
1131
+ small,
1132
+ [theme~='font-size-s'] {
1133
+ font-size: var(--lumo-font-size-s);
1134
+ line-height: var(--lumo-line-height-s);
1135
+ }
1136
+
1137
+ [theme~='font-size-xs'] {
1138
+ font-size: var(--lumo-font-size-xs);
1139
+ line-height: var(--lumo-line-height-xs);
1140
+ }
1141
+
1142
+ :where(h1, h2, h3, h4, h5, h6) {
1143
+ font-weight: 600;
1144
+ line-height: var(--lumo-line-height-xs);
1145
+ margin-block: 0;
1146
+ }
1147
+
1148
+ :where(h1) {
1149
+ font-size: var(--lumo-font-size-xxxl);
1150
+ }
1151
+
1152
+ :where(h2) {
1153
+ font-size: var(--lumo-font-size-xxl);
1154
+ }
1155
+
1156
+ :where(h3) {
1157
+ font-size: var(--lumo-font-size-xl);
1158
+ }
1159
+
1160
+ :where(h4) {
1161
+ font-size: var(--lumo-font-size-l);
1162
+ }
1163
+
1164
+ :where(h5) {
1165
+ font-size: var(--lumo-font-size-m);
1166
+ }
1167
+
1168
+ :where(h6) {
1169
+ font-size: var(--lumo-font-size-xs);
1170
+ text-transform: uppercase;
1171
+ letter-spacing: 0.03em;
1172
+ }
1173
+
1174
+ p,
1175
+ blockquote {
1176
+ margin-top: 0.5em;
1177
+ margin-bottom: 0.75em;
1178
+ }
1179
+
1180
+ a {
1181
+ text-decoration: none;
1182
+ }
1183
+
1184
+ a:where(:any-link):hover {
1185
+ text-decoration: underline;
1186
+ }
1187
+
1188
+ hr {
1189
+ display: block;
1190
+ align-self: stretch;
1191
+ height: 1px;
1192
+ border: 0;
1193
+ padding: 0;
1194
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1195
+ background-color: var(--lumo-contrast-10pct);
1196
+ }
1197
+
1198
+ blockquote {
1199
+ border-left: 2px solid var(--lumo-contrast-30pct);
1200
+ }
1201
+
1202
+ b,
1203
+ strong {
1204
+ font-weight: 600;
1205
+ }
1206
+
1207
+ /* RTL specific styles */
1208
+ blockquote[dir='rtl'] {
1209
+ border-left: none;
1210
+ border-right: 2px solid var(--lumo-contrast-30pct);
1211
+ }
1212
+ `;q("",Ad,{moduleId:"lumo-typography"});gt("typography-props",Sd);/**
1213
+ * @license
1214
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1215
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1216
+ */const ea=A`
1217
+ :host {
1218
+ top: var(--lumo-space-m);
1219
+ right: var(--lumo-space-m);
1220
+ bottom: var(--lumo-space-m);
1221
+ left: var(--lumo-space-m);
1222
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
1223
+ /* stylelint-disable-next-line */
1224
+ outline: 0px solid transparent;
1225
+ }
1226
+
1227
+ [part='overlay'] {
1228
+ background-color: var(--lumo-base-color);
1229
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1230
+ border-radius: var(--lumo-border-radius-m);
1231
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
1232
+ color: var(--lumo-body-text-color);
1233
+ font-family: var(--lumo-font-family);
1234
+ font-size: var(--lumo-font-size-m);
1235
+ font-weight: 400;
1236
+ line-height: var(--lumo-line-height-m);
1237
+ letter-spacing: 0;
1238
+ text-transform: none;
1239
+ -webkit-text-size-adjust: 100%;
1240
+ -webkit-font-smoothing: antialiased;
1241
+ -moz-osx-font-smoothing: grayscale;
1242
+ }
1243
+
1244
+ [part='content'] {
1245
+ padding: var(--lumo-space-xs);
1246
+ }
1247
+
1248
+ [part='backdrop'] {
1249
+ background-color: var(--lumo-shade-20pct);
1250
+ animation: 0.2s lumo-overlay-backdrop-enter both;
1251
+ will-change: opacity;
1252
+ }
1253
+
1254
+ @keyframes lumo-overlay-backdrop-enter {
1255
+ 0% {
1256
+ opacity: 0;
1257
+ }
1258
+ }
1259
+
1260
+ :host([closing]) [part='backdrop'] {
1261
+ animation: 0.2s lumo-overlay-backdrop-exit both;
1262
+ }
1263
+
1264
+ @keyframes lumo-overlay-backdrop-exit {
1265
+ 100% {
1266
+ opacity: 0;
1267
+ }
1268
+ }
1269
+
1270
+ @keyframes lumo-overlay-dummy-animation {
1271
+ 0% {
1272
+ opacity: 1;
1273
+ }
1274
+
1275
+ 100% {
1276
+ opacity: 1;
1277
+ }
1278
+ }
1279
+ `;q("",ea,{moduleId:"lumo-overlay"});/**
1280
+ * @license
1281
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1282
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1283
+ */const ta=A`
1284
+ :host([opening]),
1285
+ :host([closing]) {
1286
+ animation: 0.14s lumo-overlay-dummy-animation;
1287
+ }
1288
+
1289
+ [part='overlay'] {
1290
+ will-change: opacity, transform;
1291
+ }
1292
+
1293
+ :host([opening]) [part='overlay'] {
1294
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
1295
+ }
1296
+
1297
+ @keyframes lumo-menu-overlay-enter {
1298
+ 0% {
1299
+ opacity: 0;
1300
+ transform: translateY(-4px);
1301
+ }
1302
+ }
1303
+
1304
+ :host([closing]) [part='overlay'] {
1305
+ animation: 0.1s lumo-menu-overlay-exit both;
1306
+ }
1307
+
1308
+ @keyframes lumo-menu-overlay-exit {
1309
+ 100% {
1310
+ opacity: 0;
1311
+ }
1312
+ }
1313
+ `;q("",ta,{moduleId:"lumo-menu-overlay-core"});const Cd=A`
1314
+ /* Small viewport (bottom sheet) styles */
1315
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
1316
+ @media (max-width: 420px), (max-height: 420px) {
1317
+ :host {
1318
+ top: 0 !important;
1319
+ right: 0 !important;
1320
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
1321
+ left: 0 !important;
1322
+ align-items: stretch !important;
1323
+ justify-content: flex-end !important;
1324
+ }
1325
+
1326
+ [part='overlay'] {
1327
+ max-height: 50vh;
1328
+ width: 100vw;
1329
+ border-radius: 0;
1330
+ box-shadow: var(--lumo-box-shadow-xl);
1331
+ }
1332
+
1333
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
1334
+ [part='content'] {
1335
+ padding: 30px var(--lumo-space-m);
1336
+ max-height: inherit;
1337
+ box-sizing: border-box;
1338
+ -webkit-overflow-scrolling: touch;
1339
+ overflow: auto;
1340
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1341
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
1342
+ }
1343
+
1344
+ [part='backdrop'] {
1345
+ display: block;
1346
+ }
1347
+
1348
+ /* Animations */
1349
+
1350
+ :host([opening]) [part='overlay'] {
1351
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
1352
+ }
1353
+
1354
+ :host([closing]),
1355
+ :host([closing]) [part='backdrop'] {
1356
+ animation-delay: 0.14s;
1357
+ }
1358
+
1359
+ :host([closing]) [part='overlay'] {
1360
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
1361
+ }
1362
+ }
1363
+
1364
+ @keyframes lumo-mobile-menu-overlay-enter {
1365
+ 0% {
1366
+ transform: translateY(150%);
1367
+ }
1368
+ }
1369
+
1370
+ @keyframes lumo-mobile-menu-overlay-exit {
1371
+ 100% {
1372
+ transform: translateY(150%);
1373
+ }
1374
+ }
1375
+ `,ra=[ea,ta,Cd];q("",ra,{moduleId:"lumo-menu-overlay"});const Td=A`
1376
+ [part='overlay'] {
1377
+ /*
1378
+ Width:
1379
+ date cell widths
1380
+ + month calendar side padding
1381
+ + year scroller width
1382
+ */
1383
+ /* prettier-ignore */
1384
+ width:
1385
+ calc(
1386
+ var(--lumo-size-m) * 7
1387
+ + var(--lumo-space-xs) * 2
1388
+ + 57px
1389
+ );
1390
+ height: 100%;
1391
+ max-height: calc(var(--lumo-size-m) * 14);
1392
+ overflow: hidden;
1393
+ -webkit-tap-highlight-color: transparent;
1394
+ }
1395
+
1396
+ [part='overlay'] {
1397
+ flex-direction: column;
1398
+ }
1399
+
1400
+ [part='content'] {
1401
+ padding: 0;
1402
+ height: 100%;
1403
+ overflow: hidden;
1404
+ -webkit-mask-image: none;
1405
+ mask-image: none;
1406
+ }
1407
+
1408
+ :host([top-aligned]) [part~='overlay'] {
1409
+ margin-top: var(--lumo-space-xs);
1410
+ }
1411
+
1412
+ :host([bottom-aligned]) [part~='overlay'] {
1413
+ margin-bottom: var(--lumo-space-xs);
1414
+ }
1415
+
1416
+ @media (max-width: 420px), (max-height: 420px) {
1417
+ [part='overlay'] {
1418
+ width: 100vw;
1419
+ height: 70vh;
1420
+ max-height: 70vh;
1421
+ }
1422
+ }
1423
+ `;q("vaadin-date-picker-overlay",[ra,Td],{moduleId:"lumo-date-picker-overlay"});/**
1424
+ * @license
1425
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1426
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1427
+ */class Pd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}ve(Pd);const Gt=(t,...r)=>{ti(`lumo-${t}`,r)};/**
1428
+ * @license
1429
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1430
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1431
+ */const Dd=A`
1432
+ :host {
1433
+ /* Base (background) */
1434
+ --lumo-base-color: #fff;
1435
+
1436
+ /* Tint */
1437
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
1438
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
1439
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
1440
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
1441
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
1442
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
1443
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
1444
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
1445
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
1446
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
1447
+ --lumo-tint: #fff;
1448
+
1449
+ /* Shade */
1450
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
1451
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
1452
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
1453
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
1454
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
1455
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
1456
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
1457
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
1458
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
1459
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
1460
+ --lumo-shade: hsl(214, 35%, 15%);
1461
+
1462
+ /* Contrast */
1463
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
1464
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
1465
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
1466
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
1467
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
1468
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
1469
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
1470
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
1471
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
1472
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
1473
+ --lumo-contrast: var(--lumo-shade);
1474
+
1475
+ /* Text */
1476
+ --lumo-header-text-color: var(--lumo-contrast);
1477
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1478
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1479
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1480
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1481
+
1482
+ /* Primary */
1483
+ --lumo-primary-color: hsl(214, 100%, 48%);
1484
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
1485
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
1486
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
1487
+ --lumo-primary-contrast-color: #fff;
1488
+
1489
+ /* Error */
1490
+ --lumo-error-color: hsl(3, 85%, 48%);
1491
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
1492
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
1493
+ --lumo-error-text-color: hsl(3, 89%, 42%);
1494
+ --lumo-error-contrast-color: #fff;
1495
+
1496
+ /* Success */
1497
+ --lumo-success-color: hsl(145, 72%, 30%);
1498
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
1499
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
1500
+ --lumo-success-text-color: hsl(145, 85%, 25%);
1501
+ --lumo-success-contrast-color: #fff;
1502
+
1503
+ /* Warning */
1504
+ --lumo-warning-color: hsl(48, 100%, 50%);
1505
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
1506
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
1507
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1508
+ }
1509
+
1510
+ /* forced-colors mode adjustments */
1511
+ @media (forced-colors: active) {
1512
+ html {
1513
+ --lumo-disabled-text-color: GrayText;
1514
+ }
1515
+ }
1516
+ `;Gt("color-props",Dd);const kd=A`
1517
+ [theme~='dark'] {
1518
+ /* Base (background) */
1519
+ --lumo-base-color: hsl(214, 35%, 21%);
1520
+
1521
+ /* Tint */
1522
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
1523
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
1524
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
1525
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1526
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1527
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1528
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1529
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1530
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1531
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1532
+ --lumo-tint: hsl(214, 100%, 98%);
1533
+
1534
+ /* Shade */
1535
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1536
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1537
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1538
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1539
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1540
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1541
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1542
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1543
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1544
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1545
+ --lumo-shade: hsl(214, 33%, 13%);
1546
+
1547
+ /* Contrast */
1548
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
1549
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
1550
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
1551
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
1552
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
1553
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
1554
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
1555
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
1556
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
1557
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
1558
+ --lumo-contrast: var(--lumo-tint);
1559
+
1560
+ /* Text */
1561
+ --lumo-header-text-color: var(--lumo-contrast);
1562
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
1563
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1564
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1565
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1566
+
1567
+ /* Primary */
1568
+ --lumo-primary-color: hsl(214, 90%, 48%);
1569
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1570
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1571
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
1572
+ --lumo-primary-contrast-color: #fff;
1573
+
1574
+ /* Error */
1575
+ --lumo-error-color: hsl(3, 79%, 49%);
1576
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1577
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1578
+ --lumo-error-text-color: hsl(3, 100%, 80%);
1579
+
1580
+ /* Success */
1581
+ --lumo-success-color: hsl(145, 72%, 30%);
1582
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1583
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1584
+ --lumo-success-text-color: hsl(145, 85%, 46%);
1585
+
1586
+ /* Warning */
1587
+ --lumo-warning-color: hsl(43, 100%, 48%);
1588
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1589
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
1590
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1591
+ }
1592
+
1593
+ html {
1594
+ color: var(--lumo-body-text-color);
1595
+ background-color: var(--lumo-base-color);
1596
+ color-scheme: light;
1597
+ }
1598
+
1599
+ [theme~='dark'] {
1600
+ color: var(--lumo-body-text-color);
1601
+ background-color: var(--lumo-base-color);
1602
+ color-scheme: dark;
1603
+ }
1604
+
1605
+ h1,
1606
+ h2,
1607
+ h3,
1608
+ h4,
1609
+ h5,
1610
+ h6 {
1611
+ color: var(--lumo-header-text-color);
1612
+ }
1613
+
1614
+ a:where(:any-link) {
1615
+ color: var(--lumo-primary-text-color);
1616
+ }
1617
+
1618
+ a:not(:any-link) {
1619
+ color: var(--lumo-disabled-text-color);
1620
+ }
1621
+
1622
+ blockquote {
1623
+ color: var(--lumo-secondary-text-color);
1624
+ }
1625
+
1626
+ code,
1627
+ pre {
1628
+ background-color: var(--lumo-contrast-10pct);
1629
+ border-radius: var(--lumo-border-radius-m);
1630
+ }
1631
+ `;q("",kd,{moduleId:"lumo-color"});/**
1632
+ * @license
1633
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1634
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1635
+ */const Md=A`
1636
+ :host {
1637
+ --lumo-size-xs: 1.625rem;
1638
+ --lumo-size-s: 1.875rem;
1639
+ --lumo-size-m: 2.25rem;
1640
+ --lumo-size-l: 2.75rem;
1641
+ --lumo-size-xl: 3.5rem;
1642
+
1643
+ /* Icons */
1644
+ --lumo-icon-size-s: 1.25em;
1645
+ --lumo-icon-size-m: 1.5em;
1646
+ --lumo-icon-size-l: 2.25em;
1647
+ /* For backwards compatibility */
1648
+ --lumo-icon-size: var(--lumo-icon-size-m);
1649
+ }
1650
+ `;Gt("sizing-props",Md);/**
1651
+ * @license
1652
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1653
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1654
+ */const Od=A`
1655
+ :host {
1656
+ /* Square */
1657
+ --lumo-space-xs: 0.25rem;
1658
+ --lumo-space-s: 0.5rem;
1659
+ --lumo-space-m: 1rem;
1660
+ --lumo-space-l: 1.5rem;
1661
+ --lumo-space-xl: 2.5rem;
1662
+
1663
+ /* Wide */
1664
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1665
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1666
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1667
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1668
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1669
+
1670
+ /* Tall */
1671
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1672
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1673
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1674
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1675
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1676
+ }
1677
+ `;Gt("spacing-props",Od);/**
1678
+ * @license
1679
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1680
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1681
+ */const Id=A`
1682
+ :host {
1683
+ /* Border radius */
1684
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
1685
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
1686
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
1687
+
1688
+ /* Shadow */
1689
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
1690
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
1691
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
1692
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
1693
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
1694
+
1695
+ /* Clickable element cursor */
1696
+ --lumo-clickable-cursor: default;
1697
+ }
1698
+ `;A`
1699
+ html {
1700
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
1701
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1702
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1703
+ }
1704
+ `;Gt("style-props",Id);/**
1705
+ * @license
1706
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1707
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1708
+ */const Nd=A`
1709
+ :host {
1710
+ /* prettier-ignore */
1711
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1712
+
1713
+ /* Font sizes */
1714
+ --lumo-font-size-xxs: 0.75rem;
1715
+ --lumo-font-size-xs: 0.8125rem;
1716
+ --lumo-font-size-s: 0.875rem;
1717
+ --lumo-font-size-m: 1rem;
1718
+ --lumo-font-size-l: 1.125rem;
1719
+ --lumo-font-size-xl: 1.375rem;
1720
+ --lumo-font-size-xxl: 1.75rem;
1721
+ --lumo-font-size-xxxl: 2.5rem;
1722
+
1723
+ /* Line heights */
1724
+ --lumo-line-height-xs: 1.25;
1725
+ --lumo-line-height-s: 1.375;
1726
+ --lumo-line-height-m: 1.625;
1727
+ }
1728
+ `,Ld=A`
1729
+ body,
1730
+ :host {
1731
+ font-family: var(--lumo-font-family);
1732
+ font-size: var(--lumo-font-size-m);
1733
+ line-height: var(--lumo-line-height-m);
1734
+ -webkit-text-size-adjust: 100%;
1735
+ -webkit-font-smoothing: antialiased;
1736
+ -moz-osx-font-smoothing: grayscale;
1737
+ }
1738
+
1739
+ small,
1740
+ [theme~='font-size-s'] {
1741
+ font-size: var(--lumo-font-size-s);
1742
+ line-height: var(--lumo-line-height-s);
1743
+ }
1744
+
1745
+ [theme~='font-size-xs'] {
1746
+ font-size: var(--lumo-font-size-xs);
1747
+ line-height: var(--lumo-line-height-xs);
1748
+ }
1749
+
1750
+ :where(h1, h2, h3, h4, h5, h6) {
1751
+ font-weight: 600;
1752
+ line-height: var(--lumo-line-height-xs);
1753
+ margin-block: 0;
1754
+ }
1755
+
1756
+ :where(h1) {
1757
+ font-size: var(--lumo-font-size-xxxl);
1758
+ }
1759
+
1760
+ :where(h2) {
1761
+ font-size: var(--lumo-font-size-xxl);
1762
+ }
1763
+
1764
+ :where(h3) {
1765
+ font-size: var(--lumo-font-size-xl);
1766
+ }
1767
+
1768
+ :where(h4) {
1769
+ font-size: var(--lumo-font-size-l);
1770
+ }
1771
+
1772
+ :where(h5) {
1773
+ font-size: var(--lumo-font-size-m);
1774
+ }
1775
+
1776
+ :where(h6) {
1777
+ font-size: var(--lumo-font-size-xs);
1778
+ text-transform: uppercase;
1779
+ letter-spacing: 0.03em;
1780
+ }
1781
+
1782
+ p,
1783
+ blockquote {
1784
+ margin-top: 0.5em;
1785
+ margin-bottom: 0.75em;
1786
+ }
1787
+
1788
+ a {
1789
+ text-decoration: none;
1790
+ }
1791
+
1792
+ a:where(:any-link):hover {
1793
+ text-decoration: underline;
1794
+ }
1795
+
1796
+ hr {
1797
+ display: block;
1798
+ align-self: stretch;
1799
+ height: 1px;
1800
+ border: 0;
1801
+ padding: 0;
1802
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1803
+ background-color: var(--lumo-contrast-10pct);
1804
+ }
1805
+
1806
+ blockquote {
1807
+ border-left: 2px solid var(--lumo-contrast-30pct);
1808
+ }
1809
+
1810
+ b,
1811
+ strong {
1812
+ font-weight: 600;
1813
+ }
1814
+
1815
+ /* RTL specific styles */
1816
+ blockquote[dir='rtl'] {
1817
+ border-left: none;
1818
+ border-right: 2px solid var(--lumo-contrast-30pct);
1819
+ }
1820
+ `;q("",Ld,{moduleId:"lumo-typography"});Gt("typography-props",Nd);const Hd=A`
1821
+ :host {
1822
+ /* Sizing */
1823
+ --lumo-button-size: var(--lumo-size-m);
1824
+ min-width: calc(var(--lumo-button-size) * 2);
1825
+ height: var(--lumo-button-size);
1826
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
1827
+ margin: var(--lumo-space-xs) 0;
1828
+ box-sizing: border-box;
1829
+ /* Style */
1830
+ font-family: var(--lumo-font-family);
1831
+ font-size: var(--lumo-font-size-m);
1832
+ font-weight: 500;
1833
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
1834
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
1835
+ border-radius: var(--lumo-border-radius-m);
1836
+ cursor: var(--lumo-clickable-cursor);
1837
+ -webkit-tap-highlight-color: transparent;
1838
+ -webkit-font-smoothing: antialiased;
1839
+ -moz-osx-font-smoothing: grayscale;
1840
+ flex-shrink: 0;
1841
+ }
1842
+
1843
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1844
+ [part='label'],
1845
+ [part='prefix'],
1846
+ [part='suffix'] {
1847
+ line-height: var(--lumo-line-height-xs);
1848
+ }
1849
+
1850
+ [part='label'] {
1851
+ padding: calc(var(--lumo-button-size) / 6) 0;
1852
+ }
1853
+
1854
+ :host([theme~='small']) {
1855
+ font-size: var(--lumo-font-size-s);
1856
+ --lumo-button-size: var(--lumo-size-s);
1857
+ }
1858
+
1859
+ :host([theme~='large']) {
1860
+ font-size: var(--lumo-font-size-l);
1861
+ --lumo-button-size: var(--lumo-size-l);
1862
+ }
1863
+
1864
+ /* For interaction states */
1865
+ :host::before,
1866
+ :host::after {
1867
+ content: '';
1868
+ /* We rely on the host always being relative */
1869
+ position: absolute;
1870
+ z-index: 1;
1871
+ inset: 0;
1872
+ background-color: currentColor;
1873
+ border-radius: inherit;
1874
+ opacity: 0;
1875
+ pointer-events: none;
1876
+ }
1877
+
1878
+ /* Hover */
1879
+
1880
+ @media (any-hover: hover) {
1881
+ :host(:hover)::before {
1882
+ opacity: 0.02;
1883
+ }
1884
+ }
1885
+
1886
+ /* Active */
1887
+
1888
+ :host::after {
1889
+ transition: opacity 1.4s, transform 0.1s;
1890
+ filter: blur(8px);
1891
+ }
1892
+
1893
+ :host([active])::before {
1894
+ opacity: 0.05;
1895
+ transition-duration: 0s;
1896
+ }
1897
+
1898
+ :host([active])::after {
1899
+ opacity: 0.1;
1900
+ transition-duration: 0s, 0s;
1901
+ transform: scale(0);
1902
+ }
1903
+
1904
+ /* Keyboard focus */
1905
+
1906
+ :host([focus-ring]) {
1907
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1908
+ }
1909
+
1910
+ :host([theme~='primary'][focus-ring]) {
1911
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1912
+ }
1913
+
1914
+ /* Types (primary, tertiary, tertiary-inline */
1915
+
1916
+ :host([theme~='tertiary']),
1917
+ :host([theme~='tertiary-inline']) {
1918
+ background-color: transparent !important;
1919
+ min-width: 0;
1920
+ }
1921
+
1922
+ :host([theme~='tertiary']) {
1923
+ padding: 0 calc(var(--lumo-button-size) / 6);
1924
+ }
1925
+
1926
+ :host([theme~='tertiary-inline'])::before {
1927
+ display: none;
1928
+ }
1929
+
1930
+ :host([theme~='tertiary-inline']) {
1931
+ margin: 0;
1932
+ height: auto;
1933
+ padding: 0;
1934
+ line-height: inherit;
1935
+ font-size: inherit;
1936
+ }
1937
+
1938
+ :host([theme~='tertiary-inline']) [part='label'] {
1939
+ padding: 0;
1940
+ overflow: visible;
1941
+ line-height: inherit;
1942
+ }
1943
+
1944
+ :host([theme~='primary']) {
1945
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1946
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1947
+ font-weight: 600;
1948
+ min-width: calc(var(--lumo-button-size) * 2.5);
1949
+ }
1950
+
1951
+ :host([theme~='primary'])::before {
1952
+ background-color: black;
1953
+ }
1954
+
1955
+ @media (any-hover: hover) {
1956
+ :host([theme~='primary']:hover)::before {
1957
+ opacity: 0.05;
1958
+ }
1959
+ }
1960
+
1961
+ :host([theme~='primary'][active])::before {
1962
+ opacity: 0.1;
1963
+ }
1964
+
1965
+ :host([theme~='primary'][active])::after {
1966
+ opacity: 0.2;
1967
+ }
1968
+
1969
+ /* Colors (success, error, contrast) */
1970
+
1971
+ :host([theme~='success']) {
1972
+ color: var(--lumo-success-text-color);
1973
+ }
1974
+
1975
+ :host([theme~='success'][theme~='primary']) {
1976
+ background-color: var(--lumo-success-color);
1977
+ color: var(--lumo-success-contrast-color);
1978
+ }
1979
+
1980
+ :host([theme~='error']) {
1981
+ color: var(--lumo-error-text-color);
1982
+ }
1983
+
1984
+ :host([theme~='error'][theme~='primary']) {
1985
+ background-color: var(--lumo-error-color);
1986
+ color: var(--lumo-error-contrast-color);
1987
+ }
1988
+
1989
+ :host([theme~='contrast']) {
1990
+ color: var(--lumo-contrast);
1991
+ }
1992
+
1993
+ :host([theme~='contrast'][theme~='primary']) {
1994
+ background-color: var(--lumo-contrast);
1995
+ color: var(--lumo-base-color);
1996
+ }
1997
+
1998
+ /* Disabled state. Keep selectors after other color variants. */
1999
+
2000
+ :host([disabled]) {
2001
+ pointer-events: none;
2002
+ color: var(--lumo-disabled-text-color);
2003
+ }
2004
+
2005
+ :host([theme~='primary'][disabled]) {
2006
+ background-color: var(--lumo-contrast-30pct);
2007
+ color: var(--lumo-base-color);
2008
+ }
2009
+
2010
+ :host([theme~='primary'][disabled]) [part] {
2011
+ opacity: 0.7;
2012
+ }
2013
+
2014
+ /* Icons */
2015
+
2016
+ [part] ::slotted(vaadin-icon) {
2017
+ display: inline-block;
2018
+ width: var(--lumo-icon-size-m);
2019
+ height: var(--lumo-icon-size-m);
2020
+ }
2021
+
2022
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
2023
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
2024
+ padding: 0.25em;
2025
+ box-sizing: border-box !important;
2026
+ }
2027
+
2028
+ [part='prefix'] {
2029
+ margin-left: -0.25em;
2030
+ margin-right: 0.25em;
2031
+ }
2032
+
2033
+ [part='suffix'] {
2034
+ margin-left: 0.25em;
2035
+ margin-right: -0.25em;
2036
+ }
2037
+
2038
+ /* Icon-only */
2039
+
2040
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
2041
+ min-width: var(--lumo-button-size);
2042
+ padding-left: calc(var(--lumo-button-size) / 4);
2043
+ padding-right: calc(var(--lumo-button-size) / 4);
2044
+ }
2045
+
2046
+ :host([theme~='icon']) [part='prefix'],
2047
+ :host([theme~='icon']) [part='suffix'] {
2048
+ margin-left: 0;
2049
+ margin-right: 0;
2050
+ }
2051
+
2052
+ /* RTL specific styles */
2053
+
2054
+ :host([dir='rtl']) [part='prefix'] {
2055
+ margin-left: 0.25em;
2056
+ margin-right: -0.25em;
2057
+ }
2058
+
2059
+ :host([dir='rtl']) [part='suffix'] {
2060
+ margin-left: -0.25em;
2061
+ margin-right: 0.25em;
2062
+ }
2063
+
2064
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
2065
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
2066
+ margin-left: 0;
2067
+ margin-right: 0;
2068
+ }
2069
+ `;q("vaadin-button",Hd,{moduleId:"lumo-button"});/**
2070
+ * @license
2071
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2072
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2073
+ */const bt=ee(t=>typeof t.prototype.addController=="function"?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),$d=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ar=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Bd(){function t(){return!0}return oa(t)}function zd(){try{return Fd()?!0:Rd()?ar?!Ud():!Bd():!1}catch(t){return!1}}function Fd(){return localStorage.getItem("vaadin.developmentmode.force")}function Rd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ud(){return!!(ar&&Object.keys(ar).map(r=>ar[r]).filter(r=>r.productionMode).length>0)}function oa(t,r){if(typeof t!="function")return;const e=$d.exec(t.toString());if(e)try{t=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return t(r)}window.Vaadin=window.Vaadin||{};const ws=function(t,r){if(window.Vaadin.developmentMode)return oa(t,r)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=zd());function jd(){/*! vaadin-dev-mode:start
2074
+ (function () {
2075
+ 'use strict';
2076
+
2077
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
2078
+ return typeof obj;
2079
+ } : function (obj) {
2080
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2081
+ };
2082
+
2083
+ var classCallCheck = function (instance, Constructor) {
2084
+ if (!(instance instanceof Constructor)) {
2085
+ throw new TypeError("Cannot call a class as a function");
2086
+ }
2087
+ };
2088
+
2089
+ var createClass = function () {
2090
+ function defineProperties(target, props) {
2091
+ for (var i = 0; i < props.length; i++) {
2092
+ var descriptor = props[i];
2093
+ descriptor.enumerable = descriptor.enumerable || false;
2094
+ descriptor.configurable = true;
2095
+ if ("value" in descriptor) descriptor.writable = true;
2096
+ Object.defineProperty(target, descriptor.key, descriptor);
2097
+ }
2098
+ }
2099
+
2100
+ return function (Constructor, protoProps, staticProps) {
2101
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
2102
+ if (staticProps) defineProperties(Constructor, staticProps);
2103
+ return Constructor;
2104
+ };
2105
+ }();
2106
+
2107
+ var getPolymerVersion = function getPolymerVersion() {
2108
+ return window.Polymer && window.Polymer.version;
2109
+ };
2110
+
2111
+ var StatisticsGatherer = function () {
2112
+ function StatisticsGatherer(logger) {
2113
+ classCallCheck(this, StatisticsGatherer);
2114
+
2115
+ this.now = new Date().getTime();
2116
+ this.logger = logger;
2117
+ }
2118
+
2119
+ createClass(StatisticsGatherer, [{
2120
+ key: 'frameworkVersionDetectors',
2121
+ value: function frameworkVersionDetectors() {
2122
+ return {
2123
+ 'Flow': function Flow() {
2124
+ if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
2125
+ var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
2126
+ return window.Vaadin.Flow.clients[key];
2127
+ }).filter(function (client) {
2128
+ return client.getVersionInfo;
2129
+ }).map(function (client) {
2130
+ return client.getVersionInfo().flow;
2131
+ });
2132
+ if (flowVersions.length > 0) {
2133
+ return flowVersions[0];
2134
+ }
2135
+ }
2136
+ },
2137
+ 'Vaadin Framework': function VaadinFramework() {
2138
+ if (window.vaadin && window.vaadin.clients) {
2139
+ var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
2140
+ return client.getVersionInfo;
2141
+ }).map(function (client) {
2142
+ return client.getVersionInfo().vaadinVersion;
2143
+ });
2144
+ if (frameworkVersions.length > 0) {
2145
+ return frameworkVersions[0];
2146
+ }
2147
+ }
2148
+ },
2149
+ 'AngularJs': function AngularJs() {
2150
+ if (window.angular && window.angular.version && window.angular.version) {
2151
+ return window.angular.version.full;
2152
+ }
2153
+ },
2154
+ 'Angular': function Angular() {
2155
+ if (window.ng) {
2156
+ var tags = document.querySelectorAll("[ng-version]");
2157
+ if (tags.length > 0) {
2158
+ return tags[0].getAttribute("ng-version");
2159
+ }
2160
+ return "Unknown";
2161
+ }
2162
+ },
2163
+ 'Backbone.js': function BackboneJs() {
2164
+ if (window.Backbone) {
2165
+ return window.Backbone.VERSION;
2166
+ }
2167
+ },
2168
+ 'React': function React() {
2169
+ var reactSelector = '[data-reactroot], [data-reactid]';
2170
+ if (!!document.querySelector(reactSelector)) {
2171
+ // React does not publish the version by default
2172
+ return "unknown";
2173
+ }
2174
+ },
2175
+ 'Ember': function Ember() {
2176
+ if (window.Em && window.Em.VERSION) {
2177
+ return window.Em.VERSION;
2178
+ } else if (window.Ember && window.Ember.VERSION) {
2179
+ return window.Ember.VERSION;
2180
+ }
2181
+ },
2182
+ 'jQuery': function (_jQuery) {
2183
+ function jQuery() {
2184
+ return _jQuery.apply(this, arguments);
2185
+ }
2186
+
2187
+ jQuery.toString = function () {
2188
+ return _jQuery.toString();
2189
+ };
2190
+
2191
+ return jQuery;
2192
+ }(function () {
2193
+ if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
2194
+ return jQuery.prototype.jquery;
2195
+ }
2196
+ }),
2197
+ 'Polymer': function Polymer() {
2198
+ var version = getPolymerVersion();
2199
+ if (version) {
2200
+ return version;
2201
+ }
2202
+ },
2203
+ 'LitElement': function LitElement() {
2204
+ var version = window.litElementVersions && window.litElementVersions[0];
2205
+ if (version) {
2206
+ return version;
2207
+ }
2208
+ },
2209
+ 'LitHtml': function LitHtml() {
2210
+ var version = window.litHtmlVersions && window.litHtmlVersions[0];
2211
+ if (version) {
2212
+ return version;
2213
+ }
2214
+ },
2215
+ 'Vue.js': function VueJs() {
2216
+ if (window.Vue) {
2217
+ return window.Vue.version;
2218
+ }
2219
+ }
2220
+ };
2221
+ }
2222
+ }, {
2223
+ key: 'getUsedVaadinElements',
2224
+ value: function getUsedVaadinElements(elements) {
2225
+ var version = getPolymerVersion();
2226
+ var elementClasses = void 0;
2227
+ // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
2228
+ // Check all locations calling the method getEntries() in
2229
+ // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
2230
+ // Currently it is only used by BootstrapHandler.
2231
+ if (version && version.indexOf('2') === 0) {
2232
+ // Polymer 2: components classes are stored in window.Vaadin
2233
+ elementClasses = Object.keys(window.Vaadin).map(function (c) {
2234
+ return window.Vaadin[c];
2235
+ }).filter(function (c) {
2236
+ return c.is;
2237
+ });
2238
+ } else {
2239
+ // Polymer 3: components classes are stored in window.Vaadin.registrations
2240
+ elementClasses = window.Vaadin.registrations || [];
2241
+ }
2242
+ elementClasses.forEach(function (klass) {
2243
+ var version = klass.version ? klass.version : "0.0.0";
2244
+ elements[klass.is] = { version: version };
2245
+ });
2246
+ }
2247
+ }, {
2248
+ key: 'getUsedVaadinThemes',
2249
+ value: function getUsedVaadinThemes(themes) {
2250
+ ['Lumo', 'Material'].forEach(function (themeName) {
2251
+ var theme;
2252
+ var version = getPolymerVersion();
2253
+ if (version && version.indexOf('2') === 0) {
2254
+ // Polymer 2: themes are stored in window.Vaadin
2255
+ theme = window.Vaadin[themeName];
2256
+ } else {
2257
+ // Polymer 3: themes are stored in custom element registry
2258
+ theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
2259
+ }
2260
+ if (theme && theme.version) {
2261
+ themes[themeName] = { version: theme.version };
2262
+ }
2263
+ });
2264
+ }
2265
+ }, {
2266
+ key: 'getFrameworks',
2267
+ value: function getFrameworks(frameworks) {
2268
+ var detectors = this.frameworkVersionDetectors();
2269
+ Object.keys(detectors).forEach(function (framework) {
2270
+ var detector = detectors[framework];
2271
+ try {
2272
+ var version = detector();
2273
+ if (version) {
2274
+ frameworks[framework] = { version: version };
2275
+ }
2276
+ } catch (e) {}
2277
+ });
2278
+ }
2279
+ }, {
2280
+ key: 'gather',
2281
+ value: function gather(storage) {
2282
+ var storedStats = storage.read();
2283
+ var gatheredStats = {};
2284
+ var types = ["elements", "frameworks", "themes"];
2285
+
2286
+ types.forEach(function (type) {
2287
+ gatheredStats[type] = {};
2288
+ if (!storedStats[type]) {
2289
+ storedStats[type] = {};
2290
+ }
2291
+ });
2292
+
2293
+ var previousStats = JSON.stringify(storedStats);
2294
+
2295
+ this.getUsedVaadinElements(gatheredStats.elements);
2296
+ this.getFrameworks(gatheredStats.frameworks);
2297
+ this.getUsedVaadinThemes(gatheredStats.themes);
2298
+
2299
+ var now = this.now;
2300
+ types.forEach(function (type) {
2301
+ var keys = Object.keys(gatheredStats[type]);
2302
+ keys.forEach(function (key) {
2303
+ if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
2304
+ storedStats[type][key] = { firstUsed: now };
2305
+ }
2306
+ // Discards any previously logged version number
2307
+ storedStats[type][key].version = gatheredStats[type][key].version;
2308
+ storedStats[type][key].lastUsed = now;
2309
+ });
2310
+ });
2311
+
2312
+ var newStats = JSON.stringify(storedStats);
2313
+ storage.write(newStats);
2314
+ if (newStats != previousStats && Object.keys(storedStats).length > 0) {
2315
+ this.logger.debug("New stats: " + newStats);
2316
+ }
2317
+ }
2318
+ }]);
2319
+ return StatisticsGatherer;
2320
+ }();
2321
+
2322
+ var StatisticsStorage = function () {
2323
+ function StatisticsStorage(key) {
2324
+ classCallCheck(this, StatisticsStorage);
2325
+
2326
+ this.key = key;
2327
+ }
2328
+
2329
+ createClass(StatisticsStorage, [{
2330
+ key: 'read',
2331
+ value: function read() {
2332
+ var localStorageStatsString = localStorage.getItem(this.key);
2333
+ try {
2334
+ return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
2335
+ } catch (e) {
2336
+ return {};
2337
+ }
2338
+ }
2339
+ }, {
2340
+ key: 'write',
2341
+ value: function write(data) {
2342
+ localStorage.setItem(this.key, data);
2343
+ }
2344
+ }, {
2345
+ key: 'clear',
2346
+ value: function clear() {
2347
+ localStorage.removeItem(this.key);
2348
+ }
2349
+ }, {
2350
+ key: 'isEmpty',
2351
+ value: function isEmpty() {
2352
+ var storedStats = this.read();
2353
+ var empty = true;
2354
+ Object.keys(storedStats).forEach(function (key) {
2355
+ if (Object.keys(storedStats[key]).length > 0) {
2356
+ empty = false;
2357
+ }
2358
+ });
2359
+
2360
+ return empty;
2361
+ }
2362
+ }]);
2363
+ return StatisticsStorage;
2364
+ }();
2365
+
2366
+ var StatisticsSender = function () {
2367
+ function StatisticsSender(url, logger) {
2368
+ classCallCheck(this, StatisticsSender);
2369
+
2370
+ this.url = url;
2371
+ this.logger = logger;
2372
+ }
2373
+
2374
+ createClass(StatisticsSender, [{
2375
+ key: 'send',
2376
+ value: function send(data, errorHandler) {
2377
+ var logger = this.logger;
2378
+
2379
+ if (navigator.onLine === false) {
2380
+ logger.debug("Offline, can't send");
2381
+ errorHandler();
2382
+ return;
2383
+ }
2384
+ logger.debug("Sending data to " + this.url);
2385
+
2386
+ var req = new XMLHttpRequest();
2387
+ req.withCredentials = true;
2388
+ req.addEventListener("load", function () {
2389
+ // Stats sent, nothing more to do
2390
+ logger.debug("Response: " + req.responseText);
2391
+ });
2392
+ req.addEventListener("error", function () {
2393
+ logger.debug("Send failed");
2394
+ errorHandler();
2395
+ });
2396
+ req.addEventListener("abort", function () {
2397
+ logger.debug("Send aborted");
2398
+ errorHandler();
2399
+ });
2400
+ req.open("POST", this.url);
2401
+ req.setRequestHeader("Content-Type", "application/json");
2402
+ req.send(data);
2403
+ }
2404
+ }]);
2405
+ return StatisticsSender;
2406
+ }();
2407
+
2408
+ var StatisticsLogger = function () {
2409
+ function StatisticsLogger(id) {
2410
+ classCallCheck(this, StatisticsLogger);
2411
+
2412
+ this.id = id;
2413
+ }
2414
+
2415
+ createClass(StatisticsLogger, [{
2416
+ key: '_isDebug',
2417
+ value: function _isDebug() {
2418
+ return localStorage.getItem("vaadin." + this.id + ".debug");
2419
+ }
2420
+ }, {
2421
+ key: 'debug',
2422
+ value: function debug(msg) {
2423
+ if (this._isDebug()) {
2424
+ console.info(this.id + ": " + msg);
2425
+ }
2426
+ }
2427
+ }]);
2428
+ return StatisticsLogger;
2429
+ }();
2430
+
2431
+ var UsageStatistics = function () {
2432
+ function UsageStatistics() {
2433
+ classCallCheck(this, UsageStatistics);
2434
+
2435
+ this.now = new Date();
2436
+ this.timeNow = this.now.getTime();
2437
+ this.gatherDelay = 10; // Delay between loading this file and gathering stats
2438
+ this.initialDelay = 24 * 60 * 60;
2439
+
2440
+ this.logger = new StatisticsLogger("statistics");
2441
+ this.storage = new StatisticsStorage("vaadin.statistics.basket");
2442
+ this.gatherer = new StatisticsGatherer(this.logger);
2443
+ this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
2444
+ }
2445
+
2446
+ createClass(UsageStatistics, [{
2447
+ key: 'maybeGatherAndSend',
2448
+ value: function maybeGatherAndSend() {
2449
+ var _this = this;
2450
+
2451
+ if (localStorage.getItem(UsageStatistics.optOutKey)) {
2452
+ return;
2453
+ }
2454
+ this.gatherer.gather(this.storage);
2455
+ setTimeout(function () {
2456
+ _this.maybeSend();
2457
+ }, this.gatherDelay * 1000);
2458
+ }
2459
+ }, {
2460
+ key: 'lottery',
2461
+ value: function lottery() {
2462
+ return true;
2463
+ }
2464
+ }, {
2465
+ key: 'currentMonth',
2466
+ value: function currentMonth() {
2467
+ return this.now.getYear() * 12 + this.now.getMonth();
2468
+ }
2469
+ }, {
2470
+ key: 'maybeSend',
2471
+ value: function maybeSend() {
2472
+ var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2473
+ var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
2474
+
2475
+ if (!firstUse) {
2476
+ // Use a grace period to avoid interfering with tests, incognito mode etc
2477
+ firstUse = this.timeNow;
2478
+ localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
2479
+ }
2480
+
2481
+ if (this.timeNow < firstUse + this.initialDelay * 1000) {
2482
+ this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
2483
+ return;
2484
+ }
2485
+ if (this.currentMonth() <= monthProcessed) {
2486
+ this.logger.debug("This month has already been processed");
2487
+ return;
2488
+ }
2489
+ localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
2490
+ // Use random sampling
2491
+ if (this.lottery()) {
2492
+ this.logger.debug("Congratulations, we have a winner!");
2493
+ } else {
2494
+ this.logger.debug("Sorry, no stats from you this time");
2495
+ return;
2496
+ }
2497
+
2498
+ this.send();
2499
+ }
2500
+ }, {
2501
+ key: 'send',
2502
+ value: function send() {
2503
+ // Ensure we have the latest data
2504
+ this.gatherer.gather(this.storage);
2505
+
2506
+ // Read, send and clean up
2507
+ var data = this.storage.read();
2508
+ data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
2509
+ data["usageStatisticsVersion"] = UsageStatistics.version;
2510
+ var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
2511
+ var self = this;
2512
+ this.sender.send(info + JSON.stringify(data), function () {
2513
+ // Revert the 'month processed' flag
2514
+ localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
2515
+ });
2516
+ }
2517
+ }], [{
2518
+ key: 'version',
2519
+ get: function get$1() {
2520
+ return '2.1.2';
2521
+ }
2522
+ }, {
2523
+ key: 'firstUseKey',
2524
+ get: function get$1() {
2525
+ return 'vaadin.statistics.firstuse';
2526
+ }
2527
+ }, {
2528
+ key: 'monthProcessedKey',
2529
+ get: function get$1() {
2530
+ return 'vaadin.statistics.monthProcessed';
2531
+ }
2532
+ }, {
2533
+ key: 'optOutKey',
2534
+ get: function get$1() {
2535
+ return 'vaadin.statistics.optout';
2536
+ }
2537
+ }]);
2538
+ return UsageStatistics;
2539
+ }();
2540
+
2541
+ try {
2542
+ window.Vaadin = window.Vaadin || {};
2543
+ window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
2544
+ window.Vaadin.usageStatsChecker.maybeGatherAndSend();
2545
+ } catch (e) {
2546
+ // Intentionally ignored as this is not a problem in the app being developed
2547
+ }
2548
+
2549
+ }());
2550
+
2551
+ vaadin-dev-mode:end **/}const Vd=function(){if(typeof ws=="function")return ws(jd)};/**
2552
+ * @license
2553
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2554
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2555
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2556
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2557
+ * Code distributed by Google as part of the polymer project is also
2558
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2559
+ */let Es=0,ia=0;const it=[];let Lo=!1;function Yd(){Lo=!1;const t=it.length;for(let r=0;r<t;r++){const e=it[r];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}it.splice(0,t),ia+=t}const br={after(t){return{run(r){return window.setTimeout(r,t)},cancel(r){window.clearTimeout(r)}}},run(t,r){return window.setTimeout(t,r)},cancel(t){window.clearTimeout(t)}},Gd={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Wd={run(t){Lo||(Lo=!0,queueMicrotask(()=>Yd())),it.push(t);const r=Es;return Es+=1,r},cancel(t){const r=t-ia;if(r>=0){if(!it[r])throw new Error(`invalid async handle: ${t}`);it[r]=null}}};/**
2560
+ @license
2561
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2562
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2563
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2564
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2565
+ Code distributed by Google as part of the polymer project is also
2566
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2567
+ */const Ho=new Set;let Rt=class $o{static debounce(r,e,o){return r instanceof $o?r._cancelAsync():r=new $o,r.setConfig(e,o),r}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(r,e){this._asyncModule=r,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ho.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Ho.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 qd(t){Ho.add(t)}/**
2568
+ * @license
2569
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2570
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2571
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Vd()};let Zr;const Ss=new Set,sa=t=>class extends Dr(t){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:e}=this;e&&!Ss.has(e)&&(window.Vaadin.registrations.push(this),Ss.add(e),window.Vaadin.developmentModeCallback&&(Zr=Rt.debounce(Zr,Gd,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),qd(Zr)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2572
+ * @license
2573
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2574
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2575
+ */function Xd(t){const r=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){r.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return r}function ai(t){return t?new Set(t.split(" ")):new Set}function kr(t){return t?[...t].join(" "):""}function na(t,r,e){const o=ai(t.getAttribute(r));o.add(e),t.setAttribute(r,kr(o))}function Kd(t,r,e){const o=ai(t.getAttribute(r));if(o.delete(e),o.size===0){t.removeAttribute(r);return}t.setAttribute(r,kr(o))}function Jd(t){return t.nodeType===Node.TEXT_NODE&&t.textContent.trim()===""}/**
2576
+ * @license
2577
+ * Copyright (c) 2023 Vaadin Ltd.
2578
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2579
+ */class Zd{constructor(r,e){this.slot=r,this.callback=e,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 r=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],i=[];r.length&&(e=r.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const a=r.indexOf(s);a===-1?o.push(s):a!==n&&i.push(s)}),(e.length||o.length||i.length)&&this.callback({addedNodes:e,movedNodes:i,removedNodes:o}),this._storedNodes=r}}/**
2580
+ * @license
2581
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2582
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2583
+ */let Qd=0;function aa(){return Qd++}/**
2584
+ * @license
2585
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2586
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2587
+ */class Re extends EventTarget{static generateId(r,e){return`${e||"default"}-${r.localName}-${aa()}`}constructor(r,e,o,i={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:l}=i;this.host=r,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(r,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let r=this.getSlotChild();r?(this.node=r,this.initAddedNode(r)):(r=this.attachDefaultNode(),this.initNode(r))}initMultiple(){const r=this.getSlotChildren();if(r.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=r,r.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:r,slotName:e,tagName:o}=this;let i=this.defaultNode;return!i&&o&&(i=document.createElement(o),i instanceof Element&&(e!==""&&i.setAttribute("slot",e),this.node=i,this.defaultNode=i)),i&&r.appendChild(i),i}getSlotChildren(){const{slotName:r}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===r||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&r==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(r){const{slotInitializer:e}=this;e&&e(r,this.host)}initCustomNode(r){}teardownNode(r){}initAddedNode(r){r!==this.defaultNode&&(this.initCustomNode(r),this.initNode(r))}observeSlot(){const{slotName:r}=this,e=r===""?"slot:not([name])":`slot[name=${r}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Zd(o,({addedNodes:i,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=i.filter(l=>!Jd(l)&&!n.includes(l));s.length&&(this.nodes=n.filter(l=>!s.includes(l)),s.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)))})}}/**
2588
+ * @license
2589
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
2590
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2591
+ */class la extends Re{constructor(r){super(r,"tooltip"),this.setTarget(r)}initCustomNode(r){r.target=this.target,this.ariaTarget!==void 0&&(r.ariaTarget=this.ariaTarget),this.context!==void 0&&(r.context=this.context),this.manual!==void 0&&(r.manual=this.manual),this.opened!==void 0&&(r.opened=this.opened),this.position!==void 0&&(r._position=this.position),this.shouldShow!==void 0&&(r.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(r){this.ariaTarget=r;const e=this.node;e&&(e.ariaTarget=r)}setContext(r){this.context=r;const e=this.node;e&&(e.context=r)}setManual(r){this.manual=r;const e=this.node;e&&(e.manual=r)}setOpened(r){this.opened=r;const e=this.node;e&&(e.opened=r)}setPosition(r){this.position=r;const e=this.node;e&&(e._position=r)}setShouldShow(r){this.shouldShow=r;const e=this.node;e&&(e.shouldShow=r)}setTarget(r){this.target=r;const e=this.node;e&&(e.target=r)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2592
+ * @license
2593
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2594
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2595
+ */const ef=A`
2596
+ :host {
2597
+ display: inline-block;
2598
+ position: relative;
2599
+ outline: none;
2600
+ white-space: nowrap;
2601
+ -webkit-user-select: none;
2602
+ -moz-user-select: none;
2603
+ user-select: none;
2604
+ }
2605
+
2606
+ :host([hidden]) {
2607
+ display: none !important;
2608
+ }
2609
+
2610
+ /* Aligns the button with form fields when placed on the same line.
2611
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2612
+ .vaadin-button-container::before {
2613
+ content: '\\2003';
2614
+ display: inline-block;
2615
+ width: 0;
2616
+ max-height: 100%;
2617
+ }
2618
+
2619
+ .vaadin-button-container {
2620
+ display: inline-flex;
2621
+ align-items: center;
2622
+ justify-content: center;
2623
+ text-align: center;
2624
+ width: 100%;
2625
+ height: 100%;
2626
+ min-height: inherit;
2627
+ text-shadow: inherit;
2628
+ }
2629
+
2630
+ [part='prefix'],
2631
+ [part='suffix'] {
2632
+ flex: none;
2633
+ }
2634
+
2635
+ [part='label'] {
2636
+ white-space: nowrap;
2637
+ overflow: hidden;
2638
+ text-overflow: ellipsis;
2639
+ }
2640
+
2641
+ @media (forced-colors: active) {
2642
+ :host {
2643
+ outline: 1px solid;
2644
+ outline-offset: -1px;
2645
+ }
2646
+
2647
+ :host([focused]) {
2648
+ outline-width: 2px;
2649
+ }
2650
+
2651
+ :host([disabled]) {
2652
+ outline-color: GrayText;
2653
+ }
2654
+ }
2655
+ `,tf=t=>t`
2656
+ <div class="vaadin-button-container">
2657
+ <span part="prefix" aria-hidden="true">
2658
+ <slot name="prefix"></slot>
2659
+ </span>
2660
+ <span part="label">
2661
+ <slot></slot>
2662
+ </span>
2663
+ <span part="suffix" aria-hidden="true">
2664
+ <slot name="suffix"></slot>
2665
+ </span>
2666
+ </div>
2667
+ <slot name="tooltip"></slot>
2668
+ `;/**
2669
+ @license
2670
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2671
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2672
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2673
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2674
+ Code distributed by Google as part of the polymer project is also
2675
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2676
+ */const rf=!1,of=t=>t,li=typeof document.head.style.touchAction=="string",Bo="__polymerGestures",Qr="__polymerGesturesHandled",zo="__polymerGesturesTouchAction",As=25,Cs=5,sf=2,nf=["mousedown","mousemove","mouseup","click"],af=[0,1,4,2],lf=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function ui(t){return nf.indexOf(t)>-1}let ua=!1;(function(){try{const t=Object.defineProperty({},"passive",{get(){ua=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}})();function uf(t){if(!(ui(t)||t==="touchend")&&li&&ua&&rf)return{passive:!0}}const cf=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),hf={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function je(t){const r=t.type;if(!ui(r))return!1;if(r==="mousemove"){let o=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!lf&&(o=af[t.which]||0),!!(o&1)}return(t.button===void 0?0:t.button)===0}function df(t){if(t.type==="click"){if(t.detail===0)return!0;const r=Le(t);if(!r.nodeType||r.nodeType!==Node.ELEMENT_NODE)return!0;const e=r.getBoundingClientRect(),o=t.pageX,i=t.pageY;return!(o>=e.left&&o<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const Te={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ff(t){let r="auto";const e=ha(t);for(let o=0,i;o<e.length;o++)if(i=e[o],i[zo]){r=i[zo];break}return r}function ca(t,r,e){t.movefn=r,t.upfn=e,document.addEventListener("mousemove",r),document.addEventListener("mouseup",e)}function st(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const ha=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],ci={},Ue=[];function pf(t,r){let e=document.elementFromPoint(t,r),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const i=o;if(o=o.shadowRoot.elementFromPoint(t,r),i===o)break;o&&(e=o)}return e}function Le(t){const r=ha(t);return r.length>0?r[0]:t.target}function mf(t){const r=t.type,o=t.currentTarget[Bo];if(!o)return;const i=o[r];if(!i)return;if(!t[Qr]&&(t[Qr]={},r.startsWith("touch"))){const n=t.changedTouches[0];if(r==="touchstart"&&t.touches.length===1&&(Te.touch.id=n.identifier),Te.touch.id!==n.identifier)return;li||(r==="touchstart"||r==="touchmove")&&_f(t)}const s=t[Qr];if(!s.skip){for(let n=0,a;n<Ue.length;n++)a=Ue[n],i[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(t.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<Ue.length;n++)a=Ue[n],i[a.name]&&!s[a.name]&&(s[a.name]=!0,a[r](t))}}function _f(t){const r=t.changedTouches[0],e=t.type;if(e==="touchstart")Te.touch.x=r.clientX,Te.touch.y=r.clientY,Te.touch.scrollDecided=!1;else if(e==="touchmove"){if(Te.touch.scrollDecided)return;Te.touch.scrollDecided=!0;const o=ff(t);let i=!1;const s=Math.abs(Te.touch.x-r.clientX),n=Math.abs(Te.touch.y-r.clientY);t.cancelable&&(o==="none"?i=!0:o==="pan-x"?i=n>s:o==="pan-y"&&(i=s>n)),i?t.preventDefault():yr("track")}}function Se(t,r,e){return ci[r]?(gf(t,r,e),!0):!1}function gf(t,r,e){const o=ci[r],i=o.deps,s=o.name;let n=t[Bo];n||(t[Bo]=n={});for(let a=0,l,u;a<i.length;a++)l=i[a],!(cf&&ui(l)&&l!=="click")&&(u=n[l],u||(n[l]=u={_count:0}),u._count===0&&t.addEventListener(l,mf,uf(l)),u[s]=(u[s]||0)+1,u._count=(u._count||0)+1);t.addEventListener(r,e),o.touchAction&&da(t,o.touchAction)}function hi(t){Ue.push(t),t.emits.forEach(r=>{ci[r]=t})}function bf(t){for(let r=0,e;r<Ue.length;r++){e=Ue[r];for(let o=0,i;o<e.emits.length;o++)if(i=e.emits[o],i===t)return e}return null}function da(t,r){li&&t instanceof HTMLElement&&Wd.run(()=>{t.style.touchAction=r}),t[zo]=r}function di(t,r,e){const o=new Event(r,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,of(t).dispatchEvent(o),o.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function yr(t){const r=bf(t);r.info&&(r.info.prevent=!0)}hi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){st(this.info)},mousedown(t){if(!je(t))return;const r=Le(t),e=this,o=s=>{je(s)||(St("up",r,s),st(e.info))},i=s=>{je(s)&&St("up",r,s),st(e.info)};ca(this.info,o,i),St("down",r,t)},touchstart(t){St("down",Le(t),t.changedTouches[0],t)},touchend(t){St("up",Le(t),t.changedTouches[0],t)}});function St(t,r,e,o){r&&di(r,t,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(i){return yr(i)}})}hi({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(t){this.moves.length>sf&&this.moves.shift(),this.moves.push(t)},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,st(this.info)},mousedown(t){if(!je(t))return;const r=Le(t),e=this,o=s=>{const n=s.clientX,a=s.clientY;Ts(e.info,n,a)&&(e.info.state=e.info.started?s.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&yr("tap"),e.info.addMove({x:n,y:a}),je(s)||(e.info.state="end",st(e.info)),r&&eo(e.info,r,s),e.info.started=!0)},i=s=>{e.info.started&&o(s),st(e.info)};ca(this.info,o,i),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const r=t.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchmove(t){const r=Le(t),e=t.changedTouches[0],o=e.clientX,i=e.clientY;Ts(this.info,o,i)&&(this.info.state==="start"&&yr("tap"),this.info.addMove({x:o,y:i}),eo(this.info,r,e),this.info.state="track",this.info.started=!0)},touchend(t){const r=Le(t),e=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),eo(this.info,r,e))}});function Ts(t,r,e){if(t.prevent)return!1;if(t.started)return!0;const o=Math.abs(t.x-r),i=Math.abs(t.y-e);return o>=Cs||i>=Cs}function eo(t,r,e){if(!r)return;const o=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],s=i.x-t.x,n=i.y-t.y;let a,l=0;o&&(a=i.x-o.x,l=i.y-o.y),di(r,"track",{state:t.state,x:e.clientX,y:e.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return pf(e.clientX,e.clientY)}})}hi({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(t){je(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){je(t)&&Ps(this.info,t)},touchstart(t){const r=t.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchend(t){Ps(this.info,t.changedTouches[0],t)}});function Ps(t,r,e){const o=Math.abs(r.clientX-t.x),i=Math.abs(r.clientY-t.y),s=Le(e||r);!s||hf[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(i)||o<=As&&i<=As||df(r))&&(t.prevent||di(s,"tap",{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:e}))}/**
2677
+ * @license
2678
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2679
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2680
+ */const fa=ee(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2681
+ * @license
2682
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2683
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2684
+ */const Mr=ee(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2685
+ * @license
2686
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2687
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2688
+ */const yf=t=>class extends fa(Mr(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Se(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Se(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2689
+ * @license
2690
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2691
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2692
+ */let fi=!1;window.addEventListener("keydown",()=>{fi=!0},{capture:!0});window.addEventListener("mousedown",()=>{fi=!1},{capture:!0});function Fo(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function vf(){return fi}function xf(t){const r=t.style;if(r.visibility==="hidden"||r.display==="none")return!0;const e=window.getComputedStyle(t);return e.visibility==="hidden"||e.display==="none"}function wf(t,r){const e=Math.max(t.tabIndex,0),o=Math.max(r.tabIndex,0);return e===0||o===0?o>e:e>o}function Ef(t,r){const e=[];for(;t.length>0&&r.length>0;)wf(t[0],r[0])?e.push(r.shift()):e.push(t.shift());return e.concat(t,r)}function Ro(t){const r=t.length;if(r<2)return t;const e=Math.ceil(r/2),o=Ro(t.slice(0,e)),i=Ro(t.slice(e));return Ef(o,i)}function Sf(t){return t.matches('[tabindex="-1"]')?!1:t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Af(t){return t.getRootNode().activeElement===t}function Cf(t){if(!Sf(t))return-1;const r=t.getAttribute("tabindex")||0;return Number(r)}function pa(t,r){if(t.nodeType!==Node.ELEMENT_NODE||xf(t))return!1;const e=t,o=Cf(e);let i=o>0;o>=0&&r.push(e);let s=[];return e.localName==="slot"?s=e.assignedNodes({flatten:!0}):s=(e.shadowRoot||e).children,[...s].forEach(n=>{i=pa(n,r)||i}),i}function Tf(t){const r=[];return pa(t,r)?Ro(r):r}/**
2693
+ * @license
2694
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2695
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2696
+ */const pi=ee(t=>class extends t{get _keyboardActive(){return vf()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2697
+ * @license
2698
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2699
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2700
+ */const ma=t=>class extends fa(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2701
+ * @license
2702
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2703
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2704
+ */const Pf=t=>class extends yf(ma(pi(t))){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(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
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
+ */q("vaadin-button",ef,{moduleId:"vaadin-button-styles"});class Df extends Pf(sa(Ge(bt(He)))){static get is(){return"vaadin-button"}static get template(){return tf(qe)}ready(){super.ready(),this._tooltipController=new la(this),this.addController(this._tooltipController)}}ve(Df);q("vaadin-date-picker-year",A`
2709
+ :host([current]) [part='year-number'] {
2710
+ color: var(--lumo-primary-text-color);
2711
+ }
2712
+
2713
+ :host(:not([current])) [part='year-number'],
2714
+ [part='year-separator'] {
2715
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
2716
+ transition: 0.2s opacity;
2717
+ }
2718
+
2719
+ [part='year-number'],
2720
+ [part='year-separator'] {
2721
+ display: flex;
2722
+ align-items: center;
2723
+ justify-content: center;
2724
+ height: 50%;
2725
+ transform: translateY(-50%);
2726
+ }
2727
+
2728
+ [part='year-separator']::after {
2729
+ color: var(--lumo-disabled-text-color);
2730
+ content: '\\2022';
2731
+ }
2732
+ `,{moduleId:"lumo-date-picker-year"});q("vaadin-date-picker-overlay-content",A`
2733
+ :host {
2734
+ position: relative;
2735
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
2736
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
2737
+ background-size: 57px 100%;
2738
+ background-position: top right;
2739
+ background-repeat: no-repeat;
2740
+ cursor: default;
2741
+ }
2742
+
2743
+ ::slotted([slot='months']) {
2744
+ /* Month calendar height:
2745
+ header height + margin-bottom
2746
+ + weekdays height + margin-bottom
2747
+ + date cell heights
2748
+ + small margin between month calendars
2749
+ */
2750
+ /* prettier-ignore */
2751
+ --vaadin-infinite-scroller-item-height:
2752
+ calc(
2753
+ var(--lumo-font-size-l) + var(--lumo-space-m)
2754
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
2755
+ + var(--lumo-size-m) * 6
2756
+ + var(--lumo-space-s)
2757
+ );
2758
+ --vaadin-infinite-scroller-buffer-offset: 10%;
2759
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2760
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
2761
+ position: relative;
2762
+ margin-right: 57px;
2763
+ }
2764
+
2765
+ ::slotted([slot='years']) {
2766
+ /* TODO get rid of fixed magic number */
2767
+ --vaadin-infinite-scroller-buffer-width: 97px;
2768
+ width: 57px;
2769
+ height: auto;
2770
+ top: 0;
2771
+ bottom: 0;
2772
+ font-size: var(--lumo-font-size-s);
2773
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
2774
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2775
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
2776
+ cursor: var(--lumo-clickable-cursor);
2777
+ }
2778
+
2779
+ ::slotted([slot='years']:hover) {
2780
+ --_lumo-date-picker-year-opacity: 1;
2781
+ }
2782
+
2783
+ /* TODO unsupported selector */
2784
+ #scrollers {
2785
+ position: static;
2786
+ display: block;
2787
+ }
2788
+
2789
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
2790
+ :host([desktop]) ::slotted([slot='months']) {
2791
+ right: auto;
2792
+ }
2793
+
2794
+ /* Year scroller position indicator */
2795
+ ::slotted([slot='years'])::before {
2796
+ border: none;
2797
+ width: 1em;
2798
+ height: 1em;
2799
+ background-color: var(--lumo-base-color);
2800
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
2801
+ transform: translate(-75%, -50%) rotate(45deg);
2802
+ border-top-right-radius: var(--lumo-border-radius-s);
2803
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
2804
+ z-index: 1;
2805
+ }
2806
+
2807
+ [part='toolbar'] {
2808
+ padding: var(--lumo-space-s);
2809
+ border-bottom-left-radius: var(--lumo-border-radius-l);
2810
+ margin-right: 57px;
2811
+ }
2812
+
2813
+ [part='toolbar'] ::slotted(vaadin-button) {
2814
+ margin: 0;
2815
+ }
2816
+
2817
+ /* Narrow viewport mode (fullscreen) */
2818
+
2819
+ :host([fullscreen]) [part='toolbar'] {
2820
+ order: -1;
2821
+ background-color: var(--lumo-base-color);
2822
+ }
2823
+
2824
+ :host([fullscreen]) [part='overlay-header'] {
2825
+ order: -2;
2826
+ height: var(--lumo-size-m);
2827
+ padding: var(--lumo-space-s);
2828
+ position: absolute;
2829
+ left: 0;
2830
+ right: 0;
2831
+ justify-content: center;
2832
+ }
2833
+
2834
+ :host([fullscreen]) [part='toggle-button'],
2835
+ :host([fullscreen]) [part='clear-button'],
2836
+ [part='overlay-header'] [part='label'] {
2837
+ display: none;
2838
+ }
2839
+
2840
+ /* Very narrow screen (year scroller initially hidden) */
2841
+
2842
+ [part='years-toggle-button'] {
2843
+ display: flex;
2844
+ align-items: center;
2845
+ height: var(--lumo-size-s);
2846
+ padding: 0 0.5em;
2847
+ border-radius: var(--lumo-border-radius-m);
2848
+ z-index: 3;
2849
+ color: var(--lumo-primary-text-color);
2850
+ font-weight: 500;
2851
+ -webkit-font-smoothing: antialiased;
2852
+ -moz-osx-font-smoothing: grayscale;
2853
+ }
2854
+
2855
+ :host([years-visible]) [part='years-toggle-button'] {
2856
+ background-color: var(--lumo-primary-color);
2857
+ color: var(--lumo-primary-contrast-color);
2858
+ }
2859
+
2860
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
2861
+ @media screen and (max-width: 374px) {
2862
+ :host {
2863
+ background-image: none;
2864
+ }
2865
+
2866
+ [part='toolbar'],
2867
+ ::slotted([slot='months']) {
2868
+ margin-right: 0;
2869
+ }
2870
+
2871
+ /* TODO make date-picker adapt to the width of the years part */
2872
+ ::slotted([slot='years']) {
2873
+ --vaadin-infinite-scroller-buffer-width: 90px;
2874
+ width: 50px;
2875
+ background-color: var(--lumo-shade-5pct);
2876
+ }
2877
+
2878
+ :host([years-visible]) ::slotted([slot='months']) {
2879
+ padding-left: 50px;
2880
+ }
2881
+ }
2882
+ `,{moduleId:"lumo-date-picker-overlay-content"});q("vaadin-month-calendar",A`
2883
+ :host {
2884
+ -moz-user-select: none;
2885
+ -webkit-user-select: none;
2886
+ -webkit-tap-highlight-color: transparent;
2887
+ user-select: none;
2888
+ font-size: var(--lumo-font-size-m);
2889
+ color: var(--lumo-body-text-color);
2890
+ text-align: center;
2891
+ padding: 0 var(--lumo-space-xs);
2892
+ }
2893
+
2894
+ /* Month header */
2895
+
2896
+ [part='month-header'] {
2897
+ color: var(--lumo-header-text-color);
2898
+ font-size: var(--lumo-font-size-l);
2899
+ line-height: 1;
2900
+ font-weight: 500;
2901
+ margin-bottom: var(--lumo-space-m);
2902
+ }
2903
+
2904
+ /* Week days and numbers */
2905
+
2906
+ [part='weekdays'],
2907
+ [part='weekday'],
2908
+ [part='week-number'] {
2909
+ font-size: var(--lumo-font-size-xxs);
2910
+ line-height: 1;
2911
+ color: var(--lumo-secondary-text-color);
2912
+ }
2913
+
2914
+ [part='weekdays'] {
2915
+ margin-bottom: var(--lumo-space-s);
2916
+ }
2917
+
2918
+ [part='weekday']:empty,
2919
+ [part='week-number'] {
2920
+ width: var(--lumo-size-xs);
2921
+ }
2922
+
2923
+ /* Date and week number cells */
2924
+
2925
+ [part~='date'],
2926
+ [part='week-number'] {
2927
+ box-sizing: border-box;
2928
+ display: inline-flex;
2929
+ align-items: center;
2930
+ justify-content: center;
2931
+ height: var(--lumo-size-m);
2932
+ position: relative;
2933
+ }
2934
+
2935
+ [part~='date'] {
2936
+ transition: color 0.1s;
2937
+ }
2938
+
2939
+ [part~='date']:not(:empty) {
2940
+ cursor: var(--lumo-clickable-cursor);
2941
+ }
2942
+
2943
+ :host([week-numbers]) [part='weekday']:not(:empty),
2944
+ :host([week-numbers]) [part~='date'] {
2945
+ width: calc((100% - var(--lumo-size-xs)) / 7);
2946
+ }
2947
+
2948
+ /* Today date */
2949
+
2950
+ [part~='date'][part~='today'] {
2951
+ color: var(--lumo-primary-text-color);
2952
+ }
2953
+
2954
+ /* Focused date */
2955
+
2956
+ [part~='date']::before {
2957
+ content: '';
2958
+ position: absolute;
2959
+ z-index: -1;
2960
+ top: 50%;
2961
+ left: 50%;
2962
+ transform: translate(-50%, -50%);
2963
+ min-width: 2em;
2964
+ min-height: 2em;
2965
+ width: 80%;
2966
+ height: 80%;
2967
+ max-height: 100%;
2968
+ max-width: 100%;
2969
+ border-radius: var(--lumo-border-radius-m);
2970
+ }
2971
+
2972
+ [part~='date'][part~='focused']::before {
2973
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
2974
+ }
2975
+
2976
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
2977
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
2978
+ }
2979
+
2980
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
2981
+ 50% {
2982
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
2983
+ }
2984
+ }
2985
+
2986
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
2987
+ background-color: var(--lumo-primary-color-10pct);
2988
+ }
2989
+
2990
+ [part~='date'][part~='selected'] {
2991
+ color: var(--lumo-primary-contrast-color);
2992
+ }
2993
+
2994
+ [part~='date'][part~='selected']::before {
2995
+ background-color: var(--lumo-primary-color);
2996
+ }
2997
+
2998
+ [part~='date'][part~='disabled'] {
2999
+ color: var(--lumo-disabled-text-color);
3000
+ }
3001
+
3002
+ @media (pointer: coarse) {
3003
+ [part~='date']:hover:not([part~='selected'])::before,
3004
+ [part~='focused']:not([part~='selected'])::before {
3005
+ display: none;
3006
+ }
3007
+
3008
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
3009
+ display: block;
3010
+ }
3011
+
3012
+ [part~='date'][part~='selected']::before {
3013
+ box-shadow: none;
3014
+ }
3015
+ }
3016
+
3017
+ /* Disabled */
3018
+
3019
+ :host([disabled]) * {
3020
+ color: var(--lumo-disabled-text-color) !important;
3021
+ }
3022
+ `,{moduleId:"lumo-month-calendar"});const _a=document.createElement("template");_a.innerHTML=`
3023
+ <style>
3024
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
3025
+ 50% {
3026
+ box-shadow: 0 0 0 2px transparent;
3027
+ }
3028
+ }
3029
+ </style>
3030
+ `;document.head.appendChild(_a.content);/**
3031
+ * @license
3032
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3033
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3034
+ */const kf=A`
3035
+ @font-face {
3036
+ font-family: 'lumo-icons';
3037
+ 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==)
3038
+ format('woff');
3039
+ font-weight: normal;
3040
+ font-style: normal;
3041
+ }
3042
+
3043
+ html {
3044
+ --lumo-icons-align-center: '\\ea01';
3045
+ --lumo-icons-align-left: '\\ea02';
3046
+ --lumo-icons-align-right: '\\ea03';
3047
+ --lumo-icons-angle-down: '\\ea04';
3048
+ --lumo-icons-angle-left: '\\ea05';
3049
+ --lumo-icons-angle-right: '\\ea06';
3050
+ --lumo-icons-angle-up: '\\ea07';
3051
+ --lumo-icons-arrow-down: '\\ea08';
3052
+ --lumo-icons-arrow-left: '\\ea09';
3053
+ --lumo-icons-arrow-right: '\\ea0a';
3054
+ --lumo-icons-arrow-up: '\\ea0b';
3055
+ --lumo-icons-bar-chart: '\\ea0c';
3056
+ --lumo-icons-bell: '\\ea0d';
3057
+ --lumo-icons-calendar: '\\ea0e';
3058
+ --lumo-icons-checkmark: '\\ea0f';
3059
+ --lumo-icons-chevron-down: '\\ea10';
3060
+ --lumo-icons-chevron-left: '\\ea11';
3061
+ --lumo-icons-chevron-right: '\\ea12';
3062
+ --lumo-icons-chevron-up: '\\ea13';
3063
+ --lumo-icons-clock: '\\ea14';
3064
+ --lumo-icons-cog: '\\ea15';
3065
+ --lumo-icons-cross: '\\ea16';
3066
+ --lumo-icons-download: '\\ea17';
3067
+ --lumo-icons-dropdown: '\\ea18';
3068
+ --lumo-icons-edit: '\\ea19';
3069
+ --lumo-icons-error: '\\ea1a';
3070
+ --lumo-icons-eye: '\\ea1b';
3071
+ --lumo-icons-eye-disabled: '\\ea1c';
3072
+ --lumo-icons-menu: '\\ea1d';
3073
+ --lumo-icons-minus: '\\ea1e';
3074
+ --lumo-icons-ordered-list: '\\ea1f';
3075
+ --lumo-icons-phone: '\\ea20';
3076
+ --lumo-icons-photo: '\\ea21';
3077
+ --lumo-icons-play: '\\ea22';
3078
+ --lumo-icons-plus: '\\ea23';
3079
+ --lumo-icons-redo: '\\ea24';
3080
+ --lumo-icons-reload: '\\ea25';
3081
+ --lumo-icons-search: '\\ea26';
3082
+ --lumo-icons-undo: '\\ea27';
3083
+ --lumo-icons-unordered-list: '\\ea28';
3084
+ --lumo-icons-upload: '\\ea29';
3085
+ --lumo-icons-user: '\\ea2a';
3086
+ }
3087
+ `;gt("font-icons",kf);/**
3088
+ * @license
3089
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3090
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3091
+ */const ga=A`
3092
+ [part$='button'] {
3093
+ flex: none;
3094
+ width: 1em;
3095
+ height: 1em;
3096
+ line-height: 1;
3097
+ font-size: var(--lumo-icon-size-m);
3098
+ text-align: center;
3099
+ color: var(--lumo-contrast-60pct);
3100
+ transition: 0.2s color;
3101
+ cursor: var(--lumo-clickable-cursor);
3102
+ }
3103
+
3104
+ [part$='button']:hover {
3105
+ color: var(--lumo-contrast-90pct);
3106
+ }
3107
+
3108
+ :host([disabled]) [part$='button'],
3109
+ :host([readonly]) [part$='button'] {
3110
+ color: var(--lumo-contrast-20pct);
3111
+ cursor: default;
3112
+ }
3113
+
3114
+ [part$='button']::before {
3115
+ font-family: 'lumo-icons';
3116
+ display: block;
3117
+ }
3118
+ `;q("",ga,{moduleId:"lumo-field-button"});/**
3119
+ * @license
3120
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3121
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3122
+ */const Mf=A`
3123
+ :host([has-helper]) [part='helper-text']::before {
3124
+ content: '';
3125
+ display: block;
3126
+ height: 0.4em;
3127
+ }
3128
+
3129
+ [part='helper-text'] {
3130
+ display: block;
3131
+ color: var(--lumo-secondary-text-color);
3132
+ font-size: var(--lumo-font-size-xs);
3133
+ line-height: var(--lumo-line-height-xs);
3134
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
3135
+ transition: color 0.2s;
3136
+ }
3137
+
3138
+ :host(:hover:not([readonly])) [part='helper-text'] {
3139
+ color: var(--lumo-body-text-color);
3140
+ }
3141
+
3142
+ :host([disabled]) [part='helper-text'] {
3143
+ color: var(--lumo-disabled-text-color);
3144
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
3145
+ }
3146
+
3147
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
3148
+ display: none;
3149
+ }
3150
+
3151
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
3152
+ content: '';
3153
+ display: block;
3154
+ height: 0.4em;
3155
+ }
3156
+
3157
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
3158
+ order: 0;
3159
+ padding-bottom: 0.4em;
3160
+ }
3161
+
3162
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
3163
+ order: 1;
3164
+ }
3165
+
3166
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
3167
+ order: 2;
3168
+ }
3169
+
3170
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
3171
+ order: 3;
3172
+ }
3173
+ `;/**
3174
+ * @license
3175
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3176
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3177
+ */const ba=A`
3178
+ [part='label'] {
3179
+ align-self: flex-start;
3180
+ color: var(--lumo-secondary-text-color);
3181
+ font-weight: 500;
3182
+ font-size: var(--lumo-font-size-s);
3183
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
3184
+ transition: color 0.2s;
3185
+ line-height: 1;
3186
+ padding-right: 1em;
3187
+ padding-bottom: 0.5em;
3188
+ /* As a workaround for diacritics being cut off, add a top padding and a
3189
+ negative margin to compensate */
3190
+ padding-top: 0.25em;
3191
+ margin-top: -0.25em;
3192
+ overflow: hidden;
3193
+ white-space: nowrap;
3194
+ text-overflow: ellipsis;
3195
+ position: relative;
3196
+ max-width: 100%;
3197
+ box-sizing: border-box;
3198
+ }
3199
+
3200
+ :host([has-label])::before {
3201
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
3202
+ }
3203
+
3204
+ :host([has-label][theme~='small'])::before {
3205
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
3206
+ }
3207
+
3208
+ :host([has-label]) {
3209
+ padding-top: var(--lumo-space-m);
3210
+ }
3211
+
3212
+ :host([has-label]) ::slotted([slot='tooltip']) {
3213
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
3214
+ }
3215
+
3216
+ :host([required]) [part='required-indicator']::after {
3217
+ content: var(--lumo-required-field-indicator, '\\2022');
3218
+ transition: opacity 0.2s;
3219
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
3220
+ position: absolute;
3221
+ right: 0;
3222
+ width: 1em;
3223
+ text-align: center;
3224
+ }
3225
+
3226
+ :host([invalid]) [part='required-indicator']::after {
3227
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
3228
+ }
3229
+
3230
+ [part='error-message'] {
3231
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
3232
+ font-size: var(--lumo-font-size-xs);
3233
+ line-height: var(--lumo-line-height-xs);
3234
+ color: var(--lumo-error-text-color);
3235
+ will-change: max-height;
3236
+ transition: 0.4s max-height;
3237
+ max-height: 5em;
3238
+ }
3239
+
3240
+ :host([has-error-message]) [part='error-message']::before,
3241
+ :host([has-error-message]) [part='error-message']::after {
3242
+ content: '';
3243
+ display: block;
3244
+ height: 0.4em;
3245
+ }
3246
+
3247
+ :host(:not([invalid])) [part='error-message'] {
3248
+ max-height: 0;
3249
+ overflow: hidden;
3250
+ }
3251
+
3252
+ /* RTL specific styles */
3253
+
3254
+ :host([dir='rtl']) [part='label'] {
3255
+ margin-left: 0;
3256
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
3257
+ }
3258
+
3259
+ :host([dir='rtl']) [part='label'] {
3260
+ padding-left: 1em;
3261
+ padding-right: 0;
3262
+ }
3263
+
3264
+ :host([dir='rtl']) [part='required-indicator']::after {
3265
+ right: auto;
3266
+ left: 0;
3267
+ }
3268
+
3269
+ :host([dir='rtl']) [part='error-message'] {
3270
+ margin-left: 0;
3271
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
3272
+ }
3273
+ `;q("",ba,{moduleId:"lumo-required-field"});/**
3274
+ * @license
3275
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3276
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3277
+ */const Of=A`
3278
+ :host {
3279
+ --lumo-text-field-size: var(--lumo-size-m);
3280
+ color: var(--lumo-body-text-color);
3281
+ font-size: var(--lumo-font-size-m);
3282
+ font-family: var(--lumo-font-family);
3283
+ -webkit-font-smoothing: antialiased;
3284
+ -moz-osx-font-smoothing: grayscale;
3285
+ -webkit-tap-highlight-color: transparent;
3286
+ padding: var(--lumo-space-xs) 0;
3287
+ }
3288
+
3289
+ :host::before {
3290
+ height: var(--lumo-text-field-size);
3291
+ box-sizing: border-box;
3292
+ display: inline-flex;
3293
+ align-items: center;
3294
+ }
3295
+
3296
+ :host([focused]:not([readonly])) [part='label'] {
3297
+ color: var(--lumo-primary-text-color);
3298
+ }
3299
+
3300
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
3301
+ -webkit-mask-image: none;
3302
+ mask-image: none;
3303
+ }
3304
+
3305
+ ::slotted(:is(input, textarea):placeholder-shown) {
3306
+ color: var(--lumo-secondary-text-color);
3307
+ }
3308
+
3309
+ /* Hover */
3310
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
3311
+ color: var(--lumo-body-text-color);
3312
+ }
3313
+
3314
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
3315
+ opacity: 0.1;
3316
+ }
3317
+
3318
+ /* Touch device adjustment */
3319
+ @media (pointer: coarse) {
3320
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
3321
+ color: var(--lumo-secondary-text-color);
3322
+ }
3323
+
3324
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
3325
+ opacity: 0;
3326
+ }
3327
+
3328
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
3329
+ opacity: 0.2;
3330
+ }
3331
+ }
3332
+
3333
+ /* Trigger when not focusing using the keyboard */
3334
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
3335
+ transform: scaleX(0);
3336
+ transition-duration: 0.15s, 1s;
3337
+ }
3338
+
3339
+ /* Focus-ring */
3340
+ :host([focus-ring]) [part='input-field'] {
3341
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
3342
+ }
3343
+
3344
+ /* Read-only and disabled */
3345
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
3346
+ opacity: 0;
3347
+ }
3348
+
3349
+ /* Read-only style */
3350
+ :host([readonly]) {
3351
+ --vaadin-input-field-border-color: transparent;
3352
+ }
3353
+
3354
+ /* Disabled style */
3355
+ :host([disabled]) {
3356
+ pointer-events: none;
3357
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
3358
+ }
3359
+
3360
+ :host([disabled]) [part='label'],
3361
+ :host([disabled]) [part='input-field'] ::slotted(*) {
3362
+ color: var(--lumo-disabled-text-color);
3363
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
3364
+ }
3365
+
3366
+ /* Invalid style */
3367
+ :host([invalid]) {
3368
+ --vaadin-input-field-border-color: var(--lumo-error-color);
3369
+ }
3370
+
3371
+ :host([invalid][focus-ring]) [part='input-field'] {
3372
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
3373
+ }
3374
+
3375
+ :host([input-prevented]) [part='input-field'] {
3376
+ animation: shake 0.15s infinite;
3377
+ }
3378
+
3379
+ @keyframes shake {
3380
+ 25% {
3381
+ transform: translateX(4px);
3382
+ }
3383
+ 75% {
3384
+ transform: translateX(-4px);
3385
+ }
3386
+ }
3387
+
3388
+ /* Small theme */
3389
+ :host([theme~='small']) {
3390
+ font-size: var(--lumo-font-size-s);
3391
+ --lumo-text-field-size: var(--lumo-size-s);
3392
+ }
3393
+
3394
+ :host([theme~='small']) [part='label'] {
3395
+ font-size: var(--lumo-font-size-xs);
3396
+ }
3397
+
3398
+ :host([theme~='small']) [part='error-message'] {
3399
+ font-size: var(--lumo-font-size-xxs);
3400
+ }
3401
+
3402
+ /* Slotted content */
3403
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
3404
+ color: var(--lumo-secondary-text-color);
3405
+ font-weight: 400;
3406
+ }
3407
+
3408
+ [part='clear-button']::before {
3409
+ content: var(--lumo-icons-cross);
3410
+ }
3411
+ `,ya=[ba,ga,Mf,Of];q("",ya,{moduleId:"lumo-input-field-shared-styles"});const If=A`
3412
+ :host {
3413
+ outline: none;
3414
+ }
3415
+
3416
+ [part='toggle-button']::before {
3417
+ content: var(--lumo-icons-calendar);
3418
+ }
3419
+
3420
+ [part='clear-button']::before {
3421
+ content: var(--lumo-icons-cross);
3422
+ }
3423
+
3424
+ @media (max-width: 420px), (max-height: 420px) {
3425
+ [part='overlay-content'] {
3426
+ height: 70vh;
3427
+ }
3428
+ }
3429
+
3430
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
3431
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
3432
+ }
3433
+
3434
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3435
+ --_lumo-text-field-overflow-mask-image: none;
3436
+ }
3437
+ `;q("vaadin-date-picker",[ya,If],{moduleId:"lumo-date-picker"});/**
3438
+ @license
3439
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3440
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3441
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3442
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3443
+ Code distributed by Google as part of the polymer project is also
3444
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3445
+ */let Uo=!1,Nf=[],va=[];function Lf(){Uo=!0,requestAnimationFrame(function(){Uo=!1,Hf(Nf),setTimeout(function(){$f(va)})})}function Hf(t){for(;t.length;)xa(t.shift())}function $f(t){for(let r=0,e=t.length;r<e;r++)xa(t.shift())}function xa(t){const r=t[0],e=t[1],o=t[2];try{e.apply(r,o)}catch(i){setTimeout(()=>{throw i})}}function wa(t,r,e){Uo||Lf(),va.push([t,r,e])}/**
3446
+ * @license
3447
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3448
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3449
+ */const Or=t=>t.test(navigator.userAgent),jo=t=>t.test(navigator.platform),Bf=t=>t.test(navigator.vendor);Or(/Android/u);Or(/Chrome/u)&&Bf(/Google Inc/u);const zf=Or(/Firefox/u),Ff=jo(/^iPad/u)||jo(/^Mac/u)&&navigator.maxTouchPoints>1,Rf=jo(/^iPhone/u),Ea=Rf||Ff;Or(/^((?!chrome|android).)*safari/iu);const Uf=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();/**
3450
+ * @license
3451
+ * Copyright (c) 2017 Anton Korzunov
3452
+ * SPDX-License-Identifier: MIT
3453
+ */let Ze=new WeakMap,Qt=new WeakMap,er={},to=0;const Ds=t=>t&&t.nodeType===Node.ELEMENT_NODE,ro=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},jf=(t,r)=>Ds(t)?r.map(e=>{if(!Ds(e))return ro(e,"is not a valid element"),null;let o=e;for(;o&&o!==t;){if(t.contains(o))return e;o=o.getRootNode().host}return ro(e,"is not contained inside",t),null}).filter(e=>!!e):(ro(t,"is not a valid element"),[]),Vf=(t,r,e,o)=>{const i=jf(r,Array.isArray(t)?t:[t]);er[e]||(er[e]=new WeakMap);const s=er[e],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(p=>{if(!["template","script","style"].includes(p.localName))if(a.has(p))c(p);else{const y=p.getAttribute(o),P=y!==null&&y!=="false",L=(Ze.get(p)||0)+1,I=(s.get(p)||0)+1;Ze.set(p,L),s.set(p,I),n.push(p),L===1&&P&&Qt.set(p,!0),I===1&&p.setAttribute(e,"true"),P||p.setAttribute(o,"true")}})};return c(r),a.clear(),to+=1,()=>{n.forEach(h=>{const d=Ze.get(h)-1,f=s.get(h)-1;Ze.set(h,d),s.set(h,f),d||(Qt.has(h)?Qt.delete(h):h.removeAttribute(o)),f||h.removeAttribute(e)}),to-=1,to||(Ze=new WeakMap,Ze=new WeakMap,Qt=new WeakMap,er={})}},Sa=(t,r=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(t)?t:[t]);return r&&o.push(...Array.from(r.querySelectorAll("[aria-live]"))),Vf(o,r,e,"aria-hidden")};/**
3454
+ * @license
3455
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3456
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3457
+ */class Yf{constructor(r,e){this.host=r,this.callback=typeof e=="function"?e:()=>r}showModal(){const r=this.callback();this.__showOthers=Sa(r)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3458
+ * @license
3459
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3460
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3461
+ */class Gf{saveFocus(r){this.focusNode=r||Fo()}restoreFocus(){const r=this.focusNode;r&&(Fo()===document.body?setTimeout(()=>r.focus()):r.focus(),this.focusNode=null)}}/**
3462
+ * @license
3463
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3464
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3465
+ */const oo=[];class Wf{constructor(r){this.host=r,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Tf(this.__trapNode)}get __focusedElementIndex(){const r=this.__focusableElements;return r.indexOf(r.filter(Af).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(r){if(this.__trapNode=r,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");oo.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,oo.pop()}__onKeyDown(r){if(this.__trapNode&&this===Array.from(oo).pop()&&r.key==="Tab"){r.preventDefault();const e=r.shiftKey;this.__focusNextElement(e)}}__focusNextElement(r=!1){const e=this.__focusableElements,o=r?-1:1,i=this.__focusedElementIndex,s=(e.length+i+o)%e.length,n=e[s];n.focus(),n.localName==="input"&&n.select()}}/**
3466
+ * @license
3467
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3468
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3469
+ */const qf=t=>class extends bt(t){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Yf(this),this.__focusTrapController=new Wf(this),this.__focusRestorationController=new Gf}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 e=Fo();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let o=e;const i=e.ownerDocument;for(;o&&o!==i&&o!==this;)o=o.parentNode||o.host;return o===this}};/**
3470
+ * @license
3471
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3472
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3473
+ */const lr=()=>Array.from(document.body.children).filter(t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing")).sort((t,r)=>t.__zIndex-r.__zIndex||0),Xf=t=>t===lr().pop(),Kf=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Xf(this)}bringToFront(){let e="";const o=lr().filter(i=>i!==this).pop();o&&(e=o.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),lr().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=lr();let o;for(;(o=e.pop())&&!(o!==this&&(o.$.overlay.style.removeProperty("pointer-events"),!o.modeless)););}};/**
3474
+ * @license
3475
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3476
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3477
+ */const Jf=t=>class extends qf(Kf(t)){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),Ea&&(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(e){const o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,i=window.innerWidth>e,s=document.documentElement.clientHeight;i&&s>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-e}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(e,o,i,s){const n=this._oldOwner!==o||this._oldModel!==i;this._oldModel=i,this._oldOwner=o;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==s;this._oldOpened=s,a&&(this.innerHTML="",delete this._$litPart$),s&&e&&(a||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),wa(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const i=`__${e}Handler`,s=n=>{n&&n.target!==this||(o(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
3478
+ * @license
3479
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3480
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3481
+ */const io={start:"top",end:"bottom"},so={start:"left",end:"right"},ks=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(r=>{r.target.__overlay&&r.target.__overlay._updatePosition()})})}),Zf=t=>class extends t{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=Xd(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,o){if(this.__removeUpdatePositionEventListeners(),o&&(o.__overlay=null,ks.unobserve(o),e&&(this.__addUpdatePositionEventListeners(),o.__overlay=this,ks.observe(o))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(i[s],10)})),this.setAttribute("dir",i.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),o=this.__shouldAlignStartVertically(e);this.style.justifyContent=o?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(e,i),n=!i&&s||i&&!s;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,io,this,o),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,so,this,s);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!o),this.toggleAttribute("top-aligned",o),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,o){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!o&&this.horizontalAlign==="start"||o&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,s,this.__margins,n,this.noHorizontalOverlap,so)}__shouldAlignStartVertically(e){const o=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(e,o,i,this.__margins,s,this.noVerticalOverlap,io)}__shouldAlignStart(e,o,i,s,n,a,l){const u=i-e[a?l.end:l.start]-s[l.end],c=e[a?l.start:l.end]-s[l.start],h=n?u:c,f=h>(n?c:u)||h>o;return n===f}__adjustBottomProperty(e,o,i){let s;if(e===o.end){if(o.end===io.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;s=i-a}this.__oldViewportHeight=n}if(o.end===so.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;s=i-a}this.__oldViewportWidth=n}}return s}__calculatePositionInOneDimension(e,o,i,s,n,a){const l=a?s.start:s.end,u=a?s.end:s.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,s,c),d=o[a?s.start:s.end]-e[i===a?s.end:s.start],f=h?`${h}px`:`${c+d*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
3482
+ * @license
3483
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
3484
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3485
+ */const Qf=A`
3486
+ :host {
3487
+ z-index: 200;
3488
+ position: fixed;
3489
+
3490
+ /* Despite of what the names say, <vaadin-overlay> is just a container
3491
+ for position/sizing/alignment. The actual overlay is the overlay part. */
3492
+
3493
+ /* Default position constraints: the entire viewport. Note: themes can
3494
+ override this to introduce gaps between the overlay and the viewport. */
3495
+ inset: 0;
3496
+ bottom: var(--vaadin-overlay-viewport-bottom);
3497
+
3498
+ /* Use flexbox alignment for the overlay part. */
3499
+ display: flex;
3500
+ flex-direction: column; /* makes dropdowns sizing easier */
3501
+ /* Align to center by default. */
3502
+ align-items: center;
3503
+ justify-content: center;
3504
+
3505
+ /* Allow centering when max-width/max-height applies. */
3506
+ margin: auto;
3507
+
3508
+ /* The host is not clickable, only the overlay part is. */
3509
+ pointer-events: none;
3510
+
3511
+ /* Remove tap highlight on touch devices. */
3512
+ -webkit-tap-highlight-color: transparent;
3513
+
3514
+ /* CSS API for host */
3515
+ --vaadin-overlay-viewport-bottom: 0;
3516
+ }
3517
+
3518
+ :host([hidden]),
3519
+ :host(:not([opened]):not([closing])) {
3520
+ display: none !important;
3521
+ }
3522
+
3523
+ [part='overlay'] {
3524
+ -webkit-overflow-scrolling: touch;
3525
+ overflow: auto;
3526
+ pointer-events: auto;
3527
+
3528
+ /* Prevent overflowing the host */
3529
+ max-width: 100%;
3530
+ box-sizing: border-box;
3531
+
3532
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
3533
+ }
3534
+
3535
+ [part='backdrop'] {
3536
+ z-index: -1;
3537
+ content: '';
3538
+ background: rgba(0, 0, 0, 0.5);
3539
+ position: fixed;
3540
+ inset: 0;
3541
+ pointer-events: auto;
3542
+ }
3543
+ `;/**
3544
+ * @license
3545
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3546
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3547
+ */const ep=A`
3548
+ [part='overlay'] {
3549
+ display: flex;
3550
+ flex: auto;
3551
+ }
3552
+
3553
+ [part~='content'] {
3554
+ flex: auto;
3555
+ }
3556
+
3557
+ @media (forced-colors: active) {
3558
+ [part='overlay'] {
3559
+ outline: 3px solid;
3560
+ }
3561
+ }
3562
+ `;/**
3563
+ * @license
3564
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3565
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3566
+ */q("vaadin-date-picker-overlay",[Qf,ep],{moduleId:"vaadin-date-picker-overlay-styles"});class tp extends Zf(Jf(Dr(Ge(He)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return qe`
3567
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3568
+ <div part="overlay" id="overlay">
3569
+ <div part="content" id="content">
3570
+ <slot></slot>
3571
+ </div>
3572
+ </div>
3573
+ `}}ve(tp);/**
3574
+ * @license
3575
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3576
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3577
+ */function rp(t){let r=t.getDay();r===0&&(r=7);const e=4-r,o=new Date(t.getTime()+e*24*3600*1e3),i=new Date(0,0);i.setFullYear(o.getFullYear());const s=o.getTime()-i.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function ke(t,r){return t instanceof Date&&r instanceof Date&&t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate()}function Ut(t,r,e){return(!r||t>=r)&&(!e||t<=e)}function Aa(t,r){return r.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const i=Math.abs(t.getTime()-o.getTime()),s=Math.abs(e.getTime()-t.getTime());return i<s?o:e})}function Ca(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function Ta(t){const r=new Date,e=new Date(r);return e.setDate(1),e.setMonth(parseInt(t)+r.getMonth()),e}function op(t,r,e=0,o=1){if(r>99)throw new Error("The provided year cannot have more than 2 digits.");if(r<0)throw new Error("The provided year cannot be negative.");let i=r+Math.floor(t.getFullYear()/100)*100;return t<new Date(i-50,e,o)?i-=100:t>new Date(i+50,e,o)&&(i+=100),i}function At(t){const r=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!r)return;const e=new Date(0,0);return e.setFullYear(parseInt(r[1],10)),e.setMonth(parseInt(r[2],10)-1),e.setDate(parseInt(r[3],10)),e}/**
3578
+ * @license
3579
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3580
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3581
+ */const Pa=document.createElement("template");Pa.innerHTML=`
3582
+ <style>
3583
+ :host {
3584
+ display: block;
3585
+ overflow: hidden;
3586
+ height: 500px;
3587
+ }
3588
+
3589
+ #scroller {
3590
+ position: relative;
3591
+ height: 100%;
3592
+ overflow: auto;
3593
+ outline: none;
3594
+ margin-right: -40px;
3595
+ -webkit-overflow-scrolling: touch;
3596
+ overflow-x: hidden;
3597
+ }
3598
+
3599
+ #scroller.notouchscroll {
3600
+ -webkit-overflow-scrolling: auto;
3601
+ }
3602
+
3603
+ #scroller::-webkit-scrollbar {
3604
+ display: none;
3605
+ }
3606
+
3607
+ .buffer {
3608
+ position: absolute;
3609
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
3610
+ box-sizing: border-box;
3611
+ padding-right: 40px;
3612
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
3613
+ animation: fadein 0.2s;
3614
+ }
3615
+
3616
+ @keyframes fadein {
3617
+ from {
3618
+ opacity: 0;
3619
+ }
3620
+ to {
3621
+ opacity: 1;
3622
+ }
3623
+ }
3624
+ </style>
3625
+
3626
+ <div id="scroller">
3627
+ <div class="buffer"></div>
3628
+ <div class="buffer"></div>
3629
+ <div id="fullHeight"></div>
3630
+ </div>
3631
+ `;class Da extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Pa.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(r){r&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const r=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,r);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}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(r){this._preventScrollEvent=!0,r>this._firstIndex&&r<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(r-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~r,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=r%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(r=>{this.$[r.id]=r}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,zf&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(r,e){}_finishInit(){this._initDone||(this._buffers.forEach(r=>{[...r.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(r){const e=r?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const r=this.$.scroller.scrollTop;(r<this._bufferHeight||r>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=r>this._buffers[1].translateY+e,i=r<this._buffers[0].translateY+e;(o||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=Rt.debounce(this._debouncerScrollFinish,br.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(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(r=>{r.style.transform=`translate3d(0, ${r.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Rt.debounce(this._debouncerUpdateClones,br.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const r=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let o=0;o<this.bufferSize;o++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const s=`vaadin-infinite-scroller-item-content-${aa()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=i,e.appendChild(n),i.setAttribute("slot",s),this.appendChild(i),this._isVisible(i,r)&&this._ensureStampedInstance(i)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(r){if(r.firstElementChild)return;const e=r.instance;r.instance=this._createElement(),r.appendChild(r.instance),Object.keys(e).forEach(o=>{r.instance[o]=e[o]})}_updateClones(r){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=r?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,i)=>{if(!o.updated){const s=this._firstIndex+this.bufferSize*i;[...o.children].forEach((n,a)=>{const l=n._itemWrapper;(!r||this._isVisible(l,e))&&this._updateElement(l.instance,s+a)}),o.updated=!0}})}_isVisible(r,e){const o=r.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
3632
+ * @license
3633
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3634
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3635
+ */const ka=document.createElement("template");ka.innerHTML=`
3636
+ <style>
3637
+ :host {
3638
+ --vaadin-infinite-scroller-item-height: 270px;
3639
+ position: absolute;
3640
+ top: 0;
3641
+ left: 0;
3642
+ right: 0;
3643
+ bottom: 0;
3644
+ height: 100%;
3645
+ }
3646
+ </style>
3647
+ `;class ip extends Da{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ka.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(r,e){r.month=Ta(e)}}ve(ip);/**
3648
+ * @license
3649
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3650
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3651
+ */const Ma=document.createElement("template");Ma.innerHTML=`
3652
+ <style>
3653
+ :host {
3654
+ --vaadin-infinite-scroller-item-height: 80px;
3655
+ width: 50px;
3656
+ display: block;
3657
+ height: 100%;
3658
+ position: absolute;
3659
+ right: 0;
3660
+ transform: translateX(100%);
3661
+ -webkit-tap-highlight-color: transparent;
3662
+ -webkit-user-select: none;
3663
+ -moz-user-select: none;
3664
+ user-select: none;
3665
+ /* Center the year scroller position. */
3666
+ --vaadin-infinite-scroller-buffer-offset: 50%;
3667
+ }
3668
+
3669
+ :host::before {
3670
+ content: '';
3671
+ display: block;
3672
+ background: transparent;
3673
+ width: 0;
3674
+ height: 0;
3675
+ position: absolute;
3676
+ left: 0;
3677
+ top: 50%;
3678
+ transform: translateY(-50%);
3679
+ border-width: 6px;
3680
+ border-style: solid;
3681
+ border-color: transparent;
3682
+ border-left-color: #000;
3683
+ }
3684
+ </style>
3685
+ `;class sp extends Da{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ma.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(r,e){r.year=this._yearAfterXYears(e)}_yearAfterXYears(r){const e=new Date,o=new Date(e);return o.setFullYear(parseInt(r)+e.getFullYear()),o.getFullYear()}}ve(sp);/**
3686
+ * @license
3687
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3688
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3689
+ */class np extends Ge(He){static get is(){return"vaadin-date-picker-year"}static get template(){return qe`
3690
+ <style>
3691
+ :host {
3692
+ display: block;
3693
+ height: 100%;
3694
+ }
3695
+ </style>
3696
+ <div part="year-number">[[year]]</div>
3697
+ <div part="year-separator" aria-hidden="true"></div>
3698
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(r,e){this.toggleAttribute("selected",e&&e.getFullYear()===r),this.toggleAttribute("current",r===new Date().getFullYear())}}ve(np);/**
3699
+ @license
3700
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3701
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3702
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3703
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3704
+ Code distributed by Google as part of the polymer project is also
3705
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3706
+ */function mi(t,r,e,o,i){let s;i&&(s=typeof e=="object"&&e!==null,s&&(o=t.__dataTemp[r]));let n=o!==e&&(o===o||e===e);return s&&n&&(t.__dataTemp[r]=e),n}const _i=ee(t=>{class r extends t{_shouldPropertyChange(o,i,s){return mi(this,o,i,s,!0)}}return r}),ap=ee(t=>{class r extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,i,s){return mi(this,o,i,s,this.mutableData)}}return r});_i._mutablePropertyChange=mi;/**
3707
+ @license
3708
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3709
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3710
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3711
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3712
+ Code distributed by Google as part of the polymer project is also
3713
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3714
+ */let Vo=null;function Yo(){return Vo}Yo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Yo,writable:!0}});const Oa=ni(Yo),lp=_i(Oa);function up(t,r){Vo=t,Object.setPrototypeOf(t,r.prototype),new r,Vo=null}const cp=ni(class{});function hp(t,r){for(let e=0;e<r.length;e++){let o=r[e];if(!!t!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)t?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(t)o.__polymerReplaced__=document.createComment("hidden-slot"),ie(ie(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const i=o.__polymerReplaced__;i&&ie(ie(i).parentNode).replaceChild(o,i)}else o.style&&(t?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=t,o._showHideChildren&&o._showHideChildren(t)}}class $e extends cp{constructor(r){super(),this._configureProperties(r),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let i=this.root.firstChild;i;i=i.nextSibling)e.push(i),i.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(r&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(r){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in r)this._setPendingProperty(o,r[o])}forwardHostProp(r,e){this._setPendingPropertyOrPath(r,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(r,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(r,e,i=>{i.model=this,o(i)});else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(r,e,o)}}_showHideChildren(r){hp(r,this.children)}_setUnmanagedPropertyToNode(r,e,o){r.__hideTemplateChildren__&&r.nodeType==Node.TEXT_NODE&&e=="textContent"?r.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(r,e,o)}get parentModel(){let r=this.__parentModel;if(!r){let e;r=this;do r=r.__dataHost.__dataHost;while((e=r.__templatizeOptions)&&!e.parentModel);this.__parentModel=r}return r}dispatchEvent(r){return!0}}$e.prototype.__dataHost;$e.prototype.__templatizeOptions;$e.prototype._methodHost;$e.prototype.__templatizeOwner;$e.prototype.__hostProps;const dp=_i($e);function Ms(t){let r=t.__dataHost;return r&&r._methodHost||r}function fp(t,r,e){let o=e.mutableData?dp:$e;Go.mixin&&(o=Go.mixin(o));let i=class extends o{};return i.prototype.__templatizeOptions=e,i.prototype._bindTemplate(t),_p(i,t,r,e),i}function pp(t,r,e,o){let i=e.forwardHostProp;if(i&&r.hasHostProps){const s=t.localName=="template";let n=r.templatizeTemplateClass;if(!n){if(s){let l=e.mutableData?lp:Oa;class u extends l{}n=r.templatizeTemplateClass=u}else{const l=t.constructor;class u extends l{}n=r.templatizeTemplateClass=u}let a=r.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:mp(l,i)}),n.prototype._createNotifyingProperty("_host_"+l);Mn&&o&&yp(r,e,o)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)up(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const a=r.hostProps;for(let l in a)if(l="_host_"+l,l in t){const u=t[l];delete t[l],t.__data[l]=u}}}}function mp(t,r){return function(o,i,s){r.call(o.__templatizeOwner,i.substring(6),s[i])}}function _p(t,r,e,o){let i=e.hostProps||{};for(let s in o.instanceProps){delete i[s];let n=o.notifyInstanceProp;n&&t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:gp(s,n)})}if(o.forwardHostProp&&r.__dataHost)for(let s in i)e.hasHostProps||(e.hasHostProps=!0),t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bp()})}function gp(t,r){return function(o,i,s){r.call(o.__templatizeOwner,o,i,s[i])}}function bp(){return function(r,e,o){r.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function Go(t,r,e){if(_r&&!Ms(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=r;let i=(r?r.constructor:$e)._parseTemplate(t),s=i.templatizeInstanceClass;s||(s=fp(t,i,e),i.templatizeInstanceClass=s);const n=Ms(t);pp(t,i,e,n);let a=class extends s{};return a.prototype._methodHost=n,a.prototype.__dataHost=t,a.prototype.__templatizeOwner=r,a.prototype.__hostProps=i.hostProps,a=a,a}function yp(t,r,e){const o=e.constructor._properties,{propertyEffects:i}=t,{instanceProps:s}=r;for(let n in i)if(!o[n]&&!(s&&s[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 vp(t,r){let e;for(;r;)if(e=r.__dataHost?r:r.__templatizeInstance)if(e.__dataHost!=t)r=e.__dataHost;else return e;else r=ie(r).parentNode;return null}/**
3715
+ @license
3716
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3717
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3718
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3719
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3720
+ Code distributed by Google as part of the polymer project is also
3721
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3722
+ */class vr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(r,e){this._asyncModule=r,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,jt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),jt.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(r,e,o){return r instanceof vr?r._cancelAsync():r=new vr,r.setConfig(e,o),r}}let jt=new Set;const xp=function(t){jt.add(t)},wp=function(){const t=!!jt.size;return jt.forEach(r=>{try{r.flush()}catch(e){setTimeout(()=>{throw e})}}),t};/**
3723
+ @license
3724
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3725
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3726
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3727
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3728
+ Code distributed by Google as part of the polymer project is also
3729
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3730
+ */const Ia=function(){let t,r;do t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),r=wp();while(t||r)};/**
3731
+ @license
3732
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3733
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3734
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3735
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3736
+ Code distributed by Google as part of the polymer project is also
3737
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3738
+ */let Os=!1;function Ep(){if(kn&&!Dn){if(!Os){Os=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}/**
3739
+ @license
3740
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3741
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3742
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3743
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3744
+ Code distributed by Google as part of the polymer project is also
3745
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3746
+ */const Sp=ap(He);class Is extends Sp{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:!ss,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 r=0;r<this.__instances.length;r++)this.__detachInstance(r);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ep()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let r=ie(ie(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,r);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const r=this;let e=this.template=r._templateInfo?r:this.querySelector("template");if(!e){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 o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=Go(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(i,s){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(i,s)},notifyInstanceProp:function(i,s,n){if(uh(this.as,s)){let a=i[this.itemsIndexAs];s==this.as&&(this.items[a]=n);let l=Bt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,s);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(r){if(typeof r=="string"){let e=r,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return r}__sortChanged(r){this.__sortFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__filterChanged(r){this.__filterFn=this.__functionFromPropertyValue(r),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(r){return Math.ceil(1e3/r)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(r){if(this.__sortFn||this.__filterFn){if(!r)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)r.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(r){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(r.path,r.value)||(r.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(r,e=0){this.__renderDebouncer=vr.debounce(this.__renderDebouncer,e>0?mh.after(e):Rn,r.bind(this)),xp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ia()}__render(){if(!this.__ensureTemplatized())return;let r=this.items||[];const e=this.__sortAndFilterItems(r),o=this.__calculateLimit(e.length);this.__updateInstances(r,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ss||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(r){let e=new Array(r.length);for(let o=0;o<r.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,i,s)=>this.__filterFn(r[o],i,s))),this.__sortFn&&e.sort((o,i)=>this.__sortFn(r[o],r[i])),e}__calculateLimit(r){let e=r;const o=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(r,this.initialCount),i=Math.max(e-o,0),this.__chunkCount=i||1):(i=Math.min(Math.max(r-o,0),this.__chunkCount),e=Math.min(o+i,r)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=e<r,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const r=performance.now()-this.__renderStartTime,e=this._targetFrameTime/r;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(r,e,o){const i=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let n=this.__instances[s],a=o[s],l=r[a];i[a]=s,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,s,a)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(r){let e=this.__instances[r];const o=ie(e.root);for(let i=0;i<e.children.length;i++){let s=e.children[i];o.appendChild(s)}return e}__attachInstance(r,e){let o=this.__instances[r];e.insertBefore(o.root,this)}__detachAndRemoveInstance(r){this.__detachInstance(r),this.__instances.splice(r,1)}__stampInstance(r,e,o){let i={};return i[this.as]=r,i[this.indexAs]=e,i[this.itemsIndexAs]=o,new this.__ctor(i)}__insertInstance(r,e,o){const i=this.__stampInstance(r,e,o);let s=this.__instances[e+1],n=s?s.children[0]:this;return ie(ie(this).parentNode).insertBefore(i.root,n),this.__instances[e]=i,i}_showHideChildren(r){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(r)}__handleItemPath(r,e){let o=r.slice(6),i=o.indexOf("."),s=i<0?o:o.substring(0,i);if(s==parseInt(s,10)){let n=i<0?"":o.substring(i+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[s],l=this.__instances[a];if(l){let u=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(r){let e=this.modelForElement(r);return e&&e[this.as]}indexForElement(r){let e=this.modelForElement(r);return e&&e[this.indexAs]}modelForElement(r){return vp(this.template,r)}}customElements.define(Is.is,Is);/**
3747
+ * @license
3748
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3749
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3750
+ */const Ap=t=>class extends pi(t){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(e=>ke(e.date,this.focusedDate))}ready(){super.ready(),Se(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,o,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),o&&i&&o.getMonth()===i.getMonth()&&o.getMonth()===e.getMonth()&&i.getDate()-o.getDate()>=0?!1:!Ut(s,o,i)&&!Ut(n,o,i)}_getTitle(e,o){if(!(e===void 0||o===void 0))return o.formatTitle(o.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,o){e.setDate(e.getDate()+o)}_applyFirstDayOfWeek(e,o){if(!(e===void 0||o===void 0))return e.slice(o).concat(e.slice(0,o))}_getWeekDayNames(e,o){if(e===void 0||o===void 0)return[];const{weekdays:i,weekdaysShort:s,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(s,n);return this._applyFirstDayOfWeek(i,n).map((u,c)=>({weekDay:u,weekDayShort:a[c]}))}__focusedDateChanged(e,o){Array.isArray(o)&&o.some(i=>ke(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,o){return e&&o&&o.firstDayOfWeek===1}_isToday(e){return ke(new Date,e)}_getDays(e,o){if(e===void 0||o===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==o.firstDayOfWeek;)this._dateAdd(i,-1);const s=[],n=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)s.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return s}_getWeeks(e){return e.reduce((o,i,s)=>(s%7===0&&o.push([]),o[o.length-1].push(i),o),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const o=e.reduce((i,s)=>!i&&s?s:i);return rp(o)}__getDayAriaLabel(e){if(!e)return"";let o=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(o+=`, ${this.i18n.today}`),o}};/**
3751
+ * @license
3752
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3753
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3754
+ */const Cp=A`
3755
+ :host {
3756
+ display: block;
3757
+ }
3758
+
3759
+ #monthGrid {
3760
+ width: 100%;
3761
+ border-collapse: collapse;
3762
+ }
3763
+
3764
+ #days-container tr,
3765
+ #weekdays-container tr {
3766
+ display: flex;
3767
+ }
3768
+
3769
+ [part~='date'] {
3770
+ outline: none;
3771
+ }
3772
+
3773
+ [part~='disabled'] {
3774
+ pointer-events: none;
3775
+ }
3776
+
3777
+ [part='week-number'][hidden],
3778
+ [part='weekday'][hidden] {
3779
+ display: none;
3780
+ }
3781
+
3782
+ [part='weekday'],
3783
+ [part~='date'] {
3784
+ width: calc(100% / 7);
3785
+ padding: 0;
3786
+ font-weight: normal;
3787
+ }
3788
+
3789
+ [part='weekday']:empty,
3790
+ [part='week-number'] {
3791
+ width: 12.5%;
3792
+ flex-shrink: 0;
3793
+ padding: 0;
3794
+ }
3795
+
3796
+ :host([week-numbers]) [part='weekday']:not(:empty),
3797
+ :host([week-numbers]) [part~='date'] {
3798
+ width: 12.5%;
3799
+ }
3800
+
3801
+ @media (forced-colors: active) {
3802
+ [part~='date'][part~='focused'] {
3803
+ outline: 1px solid;
3804
+ }
3805
+
3806
+ [part~='date'][part~='selected'] {
3807
+ outline: 3px solid;
3808
+ }
3809
+ }
3810
+ `;/**
3811
+ * @license
3812
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3813
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3814
+ */q("vaadin-month-calendar",Cp,{moduleId:"vaadin-month-calendar-styles"});class Tp extends Ap(Ge(He)){static get template(){return qe`
3815
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3816
+ <table
3817
+ id="monthGrid"
3818
+ role="grid"
3819
+ aria-labelledby="month-header"
3820
+ on-touchend="_preventDefault"
3821
+ on-touchstart="_onMonthGridTouchStart"
3822
+ >
3823
+ <thead id="weekdays-container">
3824
+ <tr role="row" part="weekdays">
3825
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
3826
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
3827
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
3828
+ [[item.weekDayShort]]
3829
+ </th>
3830
+ </template>
3831
+ </tr>
3832
+ </thead>
3833
+ <tbody id="days-container">
3834
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
3835
+ <tr role="row">
3836
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
3837
+ [[__getWeekNumber(week)]]
3838
+ </td>
3839
+ <template is="dom-repeat" items="[[week]]">
3840
+ <td
3841
+ role="gridcell"
3842
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
3843
+ date="[[item]]"
3844
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
3845
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
3846
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
3847
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
3848
+ aria-label$="[[__getDayAriaLabel(item)]]"
3849
+ >[[_getDate(item)]]</td
3850
+ >
3851
+ </template>
3852
+ </tr>
3853
+ </template>
3854
+ </tbody>
3855
+ </table>
3856
+ `}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(r,e){r&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(r,e,o,i,s){const n=["date"];return this.__isDayDisabled(r,i,s)&&n.push("disabled"),this.__isDayFocused(r,e)&&n.push("focused"),this.__isDaySelected(r,o)&&n.push("selected"),this._isToday(r)&&n.push("today"),n.join(" ")}__isDayFocused(r,e){return ke(r,e)}__isDaySelected(r,e){return ke(r,e)}__getDayAriaSelected(r,e){if(this.__isDaySelected(r,e))return"true"}__isDayDisabled(r,e,o){return!Ut(r,e,o)}__getDayAriaDisabled(r,e,o){if(!(r===void 0||e===void 0||o===void 0)&&this.__isDayDisabled(r,e,o))return"true"}__getDayTabindex(r,e){return this.__isDayFocused(r,e)?"0":"-1"}}ve(Tp);/**
3857
+ * @license
3858
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3859
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3860
+ */class Na{constructor(r,e){this.query=r,this.callback=e,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(r){typeof this.callback=="function"&&this.callback(r.matches)}}/**
3861
+ * @license
3862
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3863
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3864
+ */const Pp=t=>class extends t{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(e=>e.focusableDateElement).find(Boolean)}_addListeners(){da(this.$.scrollers,"pan-y"),Se(this.$.scrollers,"track",this._track.bind(this)),Se(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Se(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Se(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Na(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Re(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),Se(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Re(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),Se(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,o){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Re(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(i=>{i.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Re(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Se(e,"tap",o=>{this._onYearTap(o)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,i,s){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(i,s))}__updateCalendars(e,o,i,s,n,a,l,u,c){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=i,h.maxDate=s,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=u,c?h.setAttribute("theme",c):h.removeAttribute("theme")})}__updateYears(e,o,i){e&&e.length&&e.forEach(s=>{s.selectedDate=o,i?s.setAttribute("theme",i):s.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,o=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+u,o);return}const s=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;s?this._scrollToPosition(i,o):l&&this._scrollToPosition(i-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let i=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+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=Rt.debounce(this._debouncer,br.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,i){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Ca(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(u=>{i=u});const s=(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=s(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(e,o){return Math.min(o.max,Math.max(o.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?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(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ta(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ke(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const o=this.focusableDateElement;o&&ke(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return yt(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,o||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return yt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{wa(this,()=>{Ia(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Aa(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),o&&i.setDate(this.focusedDate.getDate()+o),i}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),i=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==i&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const i=new Date(0,0);i.setFullYear(e.getFullYear()),o==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,i=this.maxDate){return(!o||e>=o)&&(!i||e<=i)}_isTodayAllowed(e,o){const i=new Date,s=new Date(0,0);return s.setFullYear(i.getFullYear()),s.setMonth(i.getMonth()),s.setDate(i.getDate()),this._dateAllowed(s,e,o)}};/**
3865
+ * @license
3866
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3867
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3868
+ */const Dp=A`
3869
+ :host {
3870
+ display: flex;
3871
+ flex-direction: column;
3872
+ height: 100%;
3873
+ width: 100%;
3874
+ outline: none;
3875
+ }
3876
+
3877
+ [part='overlay-header'] {
3878
+ display: flex;
3879
+ flex-shrink: 0;
3880
+ flex-wrap: nowrap;
3881
+ align-items: center;
3882
+ }
3883
+
3884
+ :host(:not([fullscreen])) [part='overlay-header'] {
3885
+ display: none;
3886
+ }
3887
+
3888
+ [part='label'] {
3889
+ flex-grow: 1;
3890
+ }
3891
+
3892
+ [hidden] {
3893
+ display: none !important;
3894
+ }
3895
+
3896
+ [part='years-toggle-button'] {
3897
+ display: flex;
3898
+ }
3899
+
3900
+ #scrollers {
3901
+ display: flex;
3902
+ height: 100%;
3903
+ width: 100%;
3904
+ position: relative;
3905
+ overflow: hidden;
3906
+ }
3907
+
3908
+ :host([desktop]) ::slotted([slot='months']) {
3909
+ right: 50px;
3910
+ transform: none !important;
3911
+ }
3912
+
3913
+ :host([desktop]) ::slotted([slot='years']) {
3914
+ transform: none !important;
3915
+ }
3916
+
3917
+ :host(.animate) ::slotted([slot='months']),
3918
+ :host(.animate) ::slotted([slot='years']) {
3919
+ transition: all 200ms;
3920
+ }
3921
+
3922
+ [part='toolbar'] {
3923
+ display: flex;
3924
+ justify-content: space-between;
3925
+ z-index: 2;
3926
+ flex-shrink: 0;
3927
+ }
3928
+ `;/**
3929
+ * @license
3930
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
3931
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3932
+ */q("vaadin-date-picker-overlay-content",Dp,{moduleId:"vaadin-date-picker-overlay-content-styles"});class kp extends Pp(bt(Ge(Dr(He)))){static get template(){return qe`
3933
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3934
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3935
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
3936
+ <div part="toggle-button"></div>
3937
+
3938
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
3939
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
3940
+ </div>
3941
+ </div>
3942
+
3943
+ <div id="scrollers">
3944
+ <slot name="months"></slot>
3945
+ <slot name="years"></slot>
3946
+ </div>
3947
+
3948
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
3949
+ <slot name="today-button"></slot>
3950
+ <slot name="cancel-button"></slot>
3951
+ </div>
3952
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ve(kp);/**
3953
+ * @license
3954
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3955
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3956
+ */const La=ee(t=>class extends pi(ma(t)){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(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3957
+ * @license
3958
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3959
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3960
+ */const no=new WeakMap;function Mp(t){return no.has(t)||no.set(t,new Set),no.get(t)}function Op(t,r){const e=document.createElement("style");e.textContent=t,r===document?document.head.appendChild(e):r.insertBefore(e,r.firstChild)}const Ip=ee(t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=Mp(e);this.slotStyles.forEach(i=>{o.has(i)||(Op(i,e),o.add(i))})}});/**
3961
+ * @license
3962
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3963
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3964
+ */const Ha=ee(t=>class extends t{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(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
3965
+ * @license
3966
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3967
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3968
+ */const Np=t=>class extends Ha(Mr(t)){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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Uf||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3969
+ * @license
3970
+ * Copyright (c) 2023 Vaadin Ltd.
3971
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3972
+ */const ao=new Map;function gi(t){return ao.has(t)||ao.set(t,new WeakMap),ao.get(t)}function $a(t,r){t&&t.removeAttribute(r)}function Ba(t,r){if(!t||!r)return;const e=gi(r);if(e.has(t))return;const o=ai(t.getAttribute(r));e.set(t,new Set(o))}function Lp(t,r){if(!t||!r)return;const e=gi(r),o=e.get(t);!o||o.size===0?t.removeAttribute(r):na(t,r,kr(o)),e.delete(t)}function lo(t,r,e={newId:null,oldId:null,fromUser:!1}){if(!t||!r)return;const{newId:o,oldId:i,fromUser:s}=e,n=gi(r),a=n.get(t);if(!s&&a){i&&a.delete(i),o&&a.add(o);return}s&&(a?o||n.delete(t):Ba(t,r),$a(t,r)),Kd(t,r,i);const l=o||kr(a);l&&na(t,r,l)}function Hp(t,r){Ba(t,r),$a(t,r)}/**
3973
+ * @license
3974
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3975
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3976
+ */class $p{constructor(r){this.host=r,this.__required=!1}setTarget(r){this.__target=r,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(r){this.__setAriaRequiredAttribute(r),this.__required=r}setAriaLabel(r){this.__setAriaLabelToAttribute(r),this.__label=r}setLabelId(r,e=!1){const o=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(r,o,e),e?this.__labelIdFromUser=r:this.__labelId=r}setErrorId(r){this.__setErrorIdToAriaAttribute(r,this.__errorId),this.__errorId=r}setHelperId(r){this.__setHelperIdToAriaAttribute(r,this.__helperId),this.__helperId=r}__setAriaLabelToAttribute(r){this.__target&&(r?(Hp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",r)):this.__label&&(Lp(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(r,e,o){lo(this.__target,"aria-labelledby",{newId:r,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(r,e){lo(this.__target,"aria-describedby",{newId:r,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(r,e){lo(this.__target,"aria-describedby",{newId:r,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(r){this.__target&&(["input","textarea"].includes(this.__target.localName)||(r?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3977
+ * @license
3978
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
3979
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3980
+ */class bi extends Re{constructor(r,e,o,i={}){super(r,e,o,qt(Wt({},i),{useUniqueId:!0}))}initCustomNode(r){this.__updateNodeId(r),this.__notifyChange(r)}teardownNode(r){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const r=super.attachDefaultNode();return r&&this.__updateNodeId(r),r}restoreDefaultNode(){}updateDefaultNode(r){this.__notifyChange(r)}observeNode(r){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const i=o.target,s=i===this.node;o.type==="attributes"?s&&this.__updateNodeId(i):(s||i.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(r,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(r){return r?r.nodeType===Node.ELEMENT_NODE&&(customElements.get(r.localName)||r.children.length>0)||r.textContent&&r.textContent.trim()!=="":!1}__notifyChange(r){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(r),node:r}}))}__updateNodeId(r){const e=!this.nodes||r===this.nodes[0];r.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!r.id&&(r.id=this.defaultId)}}/**
3981
+ * @license
3982
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3983
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3984
+ */class Bp extends bi{constructor(r){super(r,"error-message","div")}setErrorMessage(r){this.errorMessage=r,this.updateDefaultNode(this.node)}setInvalid(r){this.invalid=r,this.updateDefaultNode(this.node)}initAddedNode(r){r!==this.defaultNode&&this.initCustomNode(r)}initNode(r){this.updateDefaultNode(r)}initCustomNode(r){r.textContent&&!this.errorMessage&&(this.errorMessage=r.textContent.trim()),super.initCustomNode(r)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(r){const{errorMessage:e,invalid:o}=this,i=!!(o&&e&&e.trim()!=="");r&&(r.textContent=i?e:"",r.hidden=!i,i?r.setAttribute("role","alert"):r.removeAttribute("role")),super.updateDefaultNode(r)}}/**
3985
+ * @license
3986
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3987
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3988
+ */class zp extends bi{constructor(r){super(r,"helper",null)}setHelperText(r){this.helperText=r,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:r}=this;if(r&&r.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(r){r&&(r.textContent=this.helperText),super.updateDefaultNode(r)}initCustomNode(r){super.initCustomNode(r),this.observeNode(r)}}/**
3989
+ * @license
3990
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3991
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3992
+ */class Fp extends bi{constructor(r){super(r,"label","label")}setLabel(r){this.label=r,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:r}=this;if(r&&r.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(r){r&&(r.textContent=this.label),super.updateDefaultNode(r)}initCustomNode(r){super.initCustomNode(r),this.observeNode(r)}}/**
3993
+ * @license
3994
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3995
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3996
+ */const Rp=ee(t=>class extends bt(t){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Fp(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3997
+ * @license
3998
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
3999
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4000
+ */const za=ee(t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
4001
+ * @license
4002
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4003
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4004
+ */const Up=t=>class extends za(Rp(bt(t))){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 $p(this),this._helperController=new zp(this),this._errorController=new Bp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.__labelChanged(o,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:i}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,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(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
4005
+ * @license
4006
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4007
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4008
+ */const jp=ee(t=>class extends t{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(e){e&&(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(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((o,i)=>{this._delegateAttribute(o,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,i)=>{this._delegateProperty(o,e[i])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
4009
+ * @license
4010
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4011
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4012
+ */const Fa=ee(t=>class extends jp(za(Ha(t))){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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const i=this._hasValidConstraints(o),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
4013
+ * @license
4014
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4015
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4016
+ */const Vp=t=>class extends Ip(La(Fa(Up(Np(Mr(t)))))){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[`
4017
+ :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
4018
+ font: inherit;
4019
+ color: inherit;
4020
+ }
4021
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Rt.debounce(this._preventInputDebouncer,br.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
4022
+ * @license
4023
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4024
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4025
+ */class Yp extends Re{constructor(r,e){super(r,"input","input",{initializer:(o,i)=>{i.value&&(o.value=i.value),i.type&&o.setAttribute("type",i.type),o.id=this.defaultId,typeof e=="function"&&e(o)},useUniqueId:!0})}}/**
4026
+ * @license
4027
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4028
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4029
+ */class Gp{constructor(r,e){this.input=r,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",o=>{this.__initLabel(o.detail.node)}),this.__initLabel(e.node)}__initLabel(r){r&&(r.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&r.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const r=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",r)};this.input.addEventListener("click",r)}}/**
4030
+ * @license
4031
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4032
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4033
+ */const Wp=A`
4034
+ [part='clear-button'] {
4035
+ display: none;
4036
+ cursor: default;
4037
+ }
4038
+
4039
+ [part='clear-button']::before {
4040
+ content: '\\2715';
4041
+ }
4042
+
4043
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
4044
+ display: block;
4045
+ }
4046
+ `;/**
4047
+ * @license
4048
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4049
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4050
+ */const qp=A`
4051
+ :host {
4052
+ display: inline-flex;
4053
+ outline: none;
4054
+ }
4055
+
4056
+ :host::before {
4057
+ content: '\\2003';
4058
+ width: 0;
4059
+ display: inline-block;
4060
+ /* Size and position this element on the same vertical position as the input-field element
4061
+ to make vertical align for the host element work as expected */
4062
+ }
4063
+
4064
+ :host([hidden]) {
4065
+ display: none !important;
4066
+ }
4067
+
4068
+ :host(:not([has-label])) [part='label'] {
4069
+ display: none;
4070
+ }
4071
+
4072
+ @media (forced-colors: active) {
4073
+ :host(:not([readonly])) [part='input-field'] {
4074
+ outline: 1px solid;
4075
+ outline-offset: -1px;
4076
+ }
4077
+ :host([focused]) [part='input-field'] {
4078
+ outline-width: 2px;
4079
+ }
4080
+ :host([disabled]) [part='input-field'] {
4081
+ outline-color: GrayText;
4082
+ }
4083
+ }
4084
+ `;/**
4085
+ * @license
4086
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4087
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4088
+ */const Xp=A`
4089
+ [class$='container'] {
4090
+ display: flex;
4091
+ flex-direction: column;
4092
+ min-width: 100%;
4093
+ max-width: 100%;
4094
+ width: var(--vaadin-field-default-width, 12em);
4095
+ }
4096
+ `;/**
4097
+ * @license
4098
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
4099
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4100
+ */const Kp=[qp,Xp,Wp];/**
4101
+ * @license
4102
+ * Copyright (c) 2023 Vaadin Ltd.
4103
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4104
+ */const Jp=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,o){if(!o||e===void 0)return;const{classList:i}=o;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 s=typeof e=="string"?e.split(" "):[];s.length>0&&i.add(...s),this.__previousClasses=s}};/**
4105
+ * @license
4106
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4107
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4108
+ */class Zp{constructor(r){this.host=r,r.addEventListener("opened-changed",()=>{r.opened||this.__setVirtualKeyboardEnabled(!1)}),r.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),r.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(r){this.host.inputElement&&(this.host.inputElement.inputMode=r?"":"none")}}/**
4109
+ * @license
4110
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4111
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4112
+ */const Qp=t=>class extends Jp(bt(La(Fa(Mr(t))))){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(e){const o=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),i=new Date;let s,n=i.getMonth(),a=i.getFullYear();if(o.length===3){if(n=parseInt(o[0])-1,s=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?At(this.referenceDate):new Date;a=op(l,a,n,s)}}else o.length===2?(n=parseInt(o[0])-1,s=parseInt(o[1])):o.length===1&&(s=parseInt(o[0]));if(s!==void 0)return{day:s,month:n,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},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:Ea},_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(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Na(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new Zp(this));const e=this.$.overlay;this._overlayElement=e,e.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(e){if(e.firstChild)return;const o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",i=>{this.__userConfirmedDate=!0,this._selectDate(i.detail.date),this._close()}),o.addEventListener("date-selected",i=>{this.__userConfirmedDate=!!i.detail.date,this._selectDate(i.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=At(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ca(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||Ut(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),o&&i&&s}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const o=this.value;this._selectedDate=e,o!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,o,i,s,n,a){return!e||o&&(!a||n)||i&&n||!s.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const o=(c,h="00")=>(h+c).substr((h+c).length-h.length);let i="",s="0000",n=e.getFullYear();n<0?(n=-n,i="-",s="000000"):e.getFullYear()>=1e4&&(i="+",s="000000");const a=i+o(n,s),l=o(e.getMonth()+1),u=o(e.getDate());return[a,l,u].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const i=At(e);if(e&&!i){this.value=o;return}e?ke(this._selectedDate,i)||(this._selectedDate=i,o!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,i,s,n,a,l,u){e&&(e.i18n=o,e.label=i,e.minDate=s,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const i=e.focusedDate||o;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[s,e];this.__showOthers=Sa(n)}_getInitialPosition(){const e=At(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ut(o,this._minDate,this._maxDate)?o:Aa(o,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this._selectDate(o):(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(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const o=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),o===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,ke(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return At(e)}};/**
4113
+ * @license
4114
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4115
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4116
+ */const em=A`
4117
+ :host([opened]) {
4118
+ pointer-events: auto;
4119
+ }
4120
+
4121
+ :host([dir='rtl']) [part='input-field'] {
4122
+ direction: ltr;
4123
+ }
4124
+
4125
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
4126
+ direction: rtl;
4127
+ text-align: left;
4128
+ }
4129
+ `;/**
4130
+ * @license
4131
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
4132
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4133
+ */q("vaadin-date-picker",[Kp,em],{moduleId:"vaadin-date-picker-styles"});class tm extends Qp(Vp(Ge(sa(He)))){static get is(){return"vaadin-date-picker"}static get template(){return qe`
4134
+ <div class="vaadin-date-picker-container">
4135
+ <div part="label">
4136
+ <slot name="label"></slot>
4137
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
4138
+ </div>
4139
+
4140
+ <vaadin-input-container
4141
+ part="input-field"
4142
+ readonly="[[readonly]]"
4143
+ disabled="[[disabled]]"
4144
+ invalid="[[invalid]]"
4145
+ theme$="[[_theme]]"
4146
+ >
4147
+ <slot name="prefix" slot="prefix"></slot>
4148
+ <slot name="input"></slot>
4149
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
4150
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
4151
+ </vaadin-input-container>
4152
+
4153
+ <div part="helper-text">
4154
+ <slot name="helper"></slot>
4155
+ </div>
4156
+
4157
+ <div part="error-message">
4158
+ <slot name="error-message"></slot>
4159
+ </div>
4160
+ </div>
4161
+
4162
+ <vaadin-date-picker-overlay
4163
+ id="overlay"
4164
+ fullscreen$="[[_fullscreen]]"
4165
+ theme$="[[_theme]]"
4166
+ opened="{{opened}}"
4167
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
4168
+ on-vaadin-overlay-open="_onOverlayOpened"
4169
+ on-vaadin-overlay-closing="_onOverlayClosed"
4170
+ restore-focus-on-close
4171
+ restore-focus-node="[[inputElement]]"
4172
+ ></vaadin-date-picker-overlay>
4173
+
4174
+ <slot name="tooltip"></slot>
4175
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Yp(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Gp(this.inputElement,this._labelController)),this._tooltipController=new la(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(r){r.detail.sourceEvent&&r.detail.sourceEvent.composedPath().includes(this)&&r.preventDefault()}_toggle(r){r.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(r){super._openedChanged(r),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ve(tm);function rm(t){Xa(t,"svelte-1pt7zoa",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{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 label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark: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 input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{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-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;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)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function Ns(t,r,e){const o=t.slice();return o[47]=r[e],o}function om(t){let r,e,o,i,s,n,a,l,u,c,h=t[18]("titleSelfExclusion")+"",d,f,p;return{c(){r=z("div"),e=Pe("svg"),o=Pe("defs"),i=Pe("style"),s=he(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=Pe("g"),a=Pe("g"),l=Pe("path"),u=le(),c=z("h2"),d=he(h),T(l,"class","aaa"),T(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),T(l,"transform","translate(15 15) rotate(180)"),T(a,"transform","translate(20 158)"),T(n,"transform","translate(-20 -158)"),T(e,"xmlns","http://www.w3.org/2000/svg"),T(e,"width","15"),T(e,"height","15"),T(e,"viewBox","0 0 15 15"),T(c,"class","PlayerSelfExclusionTitleMobile"),T(r,"class","MenuReturnButton")},m(y,P){Me(y,r,P),x(r,e),x(e,o),x(o,i),x(i,s),x(e,n),x(n,a),x(a,l),x(r,u),x(r,c),x(c,d),f||(p=ur(r,"click",t[28]),f=!0)},p(y,P){P[0]&262144&&h!==(h=y[18]("titleSelfExclusion")+"")&&ye(d,h)},d(y){y&&Ae(r),f=!1,p()}}}function Ls(t){let r,e=t[18](`${t[47].key}`)+"",o,i,s;function n(){return t[30](t[47])}return{c(){r=z("div"),o=he(e)},m(a,l){Me(a,r,l),x(r,o),i||(s=ur(r,"click",n),i=!0)},p(a,l){t=a,l[0]&262400&&e!==(e=t[18](`${t[47].key}`)+"")&&ye(o,e)},d(a){a&&Ae(r),i=!1,s()}}}function Hs(t){let r,e,o=t[18]("duration")+"",i,s,n,a=t[18]("dateInstructions")+"",l,u,c,h,d;return{c(){r=z("div"),e=z("label"),i=he(o),s=le(),n=z("span"),l=he(a),u=le(),c=z("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=le(),d=z("vaadin-date-picker"),T(e,"for","SelfExclusionDate"),T(n,"class","SelfExclusionDateInstructions"),Q(d,"min",t[9]),Q(d,"max",t[10]),Q(d,"value",t[9]),T(r,"class","SelfExclusionDateWrapper "+(t[19]?"SelfExclusionDateWrapperMobile":""))},m(f,p){Me(f,r,p),x(r,e),x(e,i),x(r,s),x(r,n),x(n,l),x(n,u),x(n,c),x(r,h),x(r,d),t[31](d)},p(f,p){p[0]&262144&&o!==(o=f[18]("duration")+"")&&ye(i,o),p[0]&262144&&a!==(a=f[18]("dateInstructions")+"")&&ye(l,a),p[0]&512&&Q(d,"min",f[9]),p[0]&1024&&Q(d,"max",f[10]),p[0]&512&&Q(d,"value",f[9])},d(f){f&&Ae(r),t[31](null)}}}function im(t){let r,e,o=t[18]("temporarySelfExclusion",{values:{date:t[11]}})+"",i;return{c(){r=z("p"),e=z("strong"),i=he(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){Me(s,r,n),x(r,e),x(e,i)},p(s,n){n[0]&264192&&o!==(o=s[18]("temporarySelfExclusion",{values:{date:s[11]}})+"")&&ye(i,o)},d(s){s&&Ae(r)}}}function sm(t){let r,e,o=t[18]("noPeriodSelected")+"",i;return{c(){r=z("p"),e=z("strong"),i=he(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){Me(s,r,n),x(r,e),x(e,i)},p(s,n){n[0]&262144&&o!==(o=s[18]("noPeriodSelected")+"")&&ye(i,o)},d(s){s&&Ae(r)}}}function nm(t){let r,e,o=t[18]("permanentSelfExclusion")+"",i;return{c(){r=z("p"),e=z("strong"),i=he(o),T(r,"class","SelfExclusionDescriptionText")},m(s,n){Me(s,r,n),x(r,e),x(e,i)},p(s,n){n[0]&262144&&o!==(o=s[18]("permanentSelfExclusion")+"")&&ye(i,o)},d(s){s&&Ae(r)}}}function am(t){let r,e,o,i;return{c(){r=z("player-account-modal"),e=z("player-account-general-confirmation-modal"),Q(e,"modaltitle",o=t[18]("confirmationModalTitle")),Q(e,"modaltext",t[13]),Q(e,"hascancelbutton",!1),Q(e,"modalconfirmevent",i={type:"SetSelfExclusion",selfExclusionPeriod:t[12],selfExclusionExpiryDate:t[11]}),Q(e,"lang",t[0]),Q(r,"clientstyling",t[4]),Q(r,"clientstylingurl",t[5]),Q(r,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(s,n){Me(s,r,n),x(r,e)},p(s,n){n[0]&262144&&o!==(o=s[18]("confirmationModalTitle"))&&Q(e,"modaltitle",o),n[0]&8192&&Q(e,"modaltext",s[13]),n[0]&6144&&i!==(i={type:"SetSelfExclusion",selfExclusionPeriod:s[12],selfExclusionExpiryDate:s[11]})&&Q(e,"modalconfirmevent",i),n[0]&1&&Q(e,"lang",s[0]),n[0]&16&&Q(r,"clientstyling",s[4]),n[0]&32&&Q(r,"clientstylingurl",s[5])},d(s){s&&Ae(r)}}}function lm(t){let r,e,o,i,s=t[18]("titleSelfExclusion")+"",n,a,l,u,c=t[18]("selfExclusionText",{values:{operatorname:t[1],baseurl:t[3],lang:t[0]}})+"",h,d,f=t[18]("selfExclusionEmailText")+"",p,y,P,L,I,F,V,R,Z,de=t[18](`${t[12]}`)+"",pe,me,N,D,ne,Be,w,g,m,b,_,S,E,M=t[18]("save")+"",U,Y,X,re,_e,ge,ae=t[19]&&om(t),se=Ei(t[8]),H=[];for(let C=0;C<se.length;C+=1)H[C]=Ls(Ns(t,se,C));let G=t[15]&&Hs(t);function v(C,J){return C[14]?nm:C[16]?im:sm}let K=v(t),j=K(t),Ee=t[20]&&am(t);return{c(){r=z("div"),e=z("form"),ae&&ae.c(),o=le(),i=z("h2"),n=he(s),a=le(),l=z("div"),u=z("p"),h=le(),d=z("p"),p=he(f),y=le(),P=z("a"),L=he(t[2]),F=le(),V=z("div"),R=z("div"),Z=z("p"),pe=he(de),me=le(),N=Pe("svg"),D=Pe("g"),ne=Pe("path"),Be=le(),w=z("div");for(let C=0;C<H.length;C+=1)H[C].c();g=le(),G&&G.c(),m=le(),b=z("div"),j.c(),_=le(),S=z("div"),E=z("button"),U=he(M),re=le(),Ee&&Ee.c(),T(i,"class","PlayerSelfExclusionTitle "+(t[19]?"PlayerSelfExclusionTitleNone":"")),T(u,"class","SelfExclusionDescriptionText"),T(P,"href",I="mailto:"+t[2]),T(d,"class","SelfExclusionDescriptionText"),T(l,"class","SelfExclusionDescription "+(t[19]?"SelfExclusionDescriptionMobile":"")),T(ne,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),T(ne,"stroke-linecap","round"),T(N,"xmlns","http://www.w3.org/2000/svg"),T(N,"xmlns:xlink","http://www.w3.org/1999/xlink"),T(N,"version","1.1"),T(N,"viewBox","0 0 100 100"),T(N,"xml:space","preserve"),T(N,"class","SelfExclusionConfigIcon"),Xe(N,"active",t[17]),T(R,"class","SelfExclusionConfigLabel"),T(w,"class","SelfExclusionDropDown"),Xe(w,"active",t[17]),T(V,"class","SelfExclusionConfigWrapper "+(t[19]?"SelfExclusionConfigWrapperMobile":"")),Xe(V,"active",t[17]),T(b,"class","SelfExclusionDescription "+(t[19]?"SelfExclusionDescriptionMobile":"")),T(E,"class",Y="SelfExclusionSave "+(t[16]?"active":"")),E.disabled=X=!t[16],T(S,"class","SelfExclusionActionButtons "+(t[19]?"SelfExclusionActionButtonsMobile":"")),T(e,"class","SelfExclusionWrapper "+(t[19]?"SelfExclusionWrapperMobile":""))},m(C,J){Me(C,r,J),x(r,e),ae&&ae.m(e,null),x(e,o),x(e,i),x(i,n),x(e,a),x(e,l),x(l,u),u.innerHTML=c,x(l,h),x(l,d),x(d,p),x(d,y),x(d,P),x(P,L),x(e,F),x(e,V),x(V,R),x(R,Z),x(Z,pe),x(R,me),x(R,N),x(N,D),x(D,ne),x(V,Be),x(V,w);for(let oe=0;oe<H.length;oe+=1)H[oe]&&H[oe].m(w,null);x(e,g),G&&G.m(e,null),x(e,m),x(e,b),j.m(b,null),x(e,_),x(e,S),x(S,E),x(E,U),x(r,re),Ee&&Ee.m(r,null),t[33](r),_e||(ge=[ur(R,"click",t[29]),ur(E,"click",t[32])],_e=!0)},p(C,J){if(C[19]&&ae.p(C,J),J[0]&262144&&s!==(s=C[18]("titleSelfExclusion")+"")&&ye(n,s),J[0]&262155&&c!==(c=C[18]("selfExclusionText",{values:{operatorname:C[1],baseurl:C[3],lang:C[0]}})+"")&&(u.innerHTML=c),J[0]&262144&&f!==(f=C[18]("selfExclusionEmailText")+"")&&ye(p,f),J[0]&4&&ye(L,C[2]),J[0]&4&&I!==(I="mailto:"+C[2])&&T(P,"href",I),J[0]&266240&&de!==(de=C[18](`${C[12]}`)+"")&&ye(pe,de),J[0]&131072&&Xe(N,"active",C[17]),J[0]&4456704){se=Ei(C[8]);let oe;for(oe=0;oe<se.length;oe+=1){const yi=Ns(C,se,oe);H[oe]?H[oe].p(yi,J):(H[oe]=Ls(yi),H[oe].c(),H[oe].m(w,null))}for(;oe<H.length;oe+=1)H[oe].d(1);H.length=se.length}J[0]&131072&&Xe(w,"active",C[17]),J[0]&131072&&Xe(V,"active",C[17]),C[15]?G?G.p(C,J):(G=Hs(C),G.c(),G.m(e,m)):G&&(G.d(1),G=null),K===(K=v(C))&&j?j.p(C,J):(j.d(1),j=K(C),j&&(j.c(),j.m(b,null))),J[0]&262144&&M!==(M=C[18]("save")+"")&&ye(U,M),J[0]&65536&&Y!==(Y="SelfExclusionSave "+(C[16]?"active":""))&&T(E,"class",Y),J[0]&65536&&X!==(X=!C[16])&&(E.disabled=X),C[20]&&Ee.p(C,J)},i:we,o:we,d(C){C&&Ae(r),ae&&ae.d(),Za(H,C),G&&G.d(),j.d(),Ee&&Ee.d(),t[33](null),_e=!1,ft(ge)}}}function um(t,r,e){let o;qa(t,_c,v=>e(18,o=v));let{endpoint:i="",lang:s="en",operator:n="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:u="",clientstylingurl:c="",translationurl:h="",hasconfirmationmodal:d="false"}=r,f,p,y=[],P=window.navigator.userAgent,L,I,F="",V="",R="selectAPeriod",Z="",de=gc(P)!=="PC",pe=!1,me=!1,N=!1,D=!1,ne=d==="true";const Be=()=>{fetch(h).then(K=>K.json()).then(K=>{Object.keys(K).forEach(j=>{Vi(j,K[j])})}).catch(K=>{console.log(K)})};Object.keys(Yi).forEach(v=>{Vi(v,Yi[v])});const w=()=>{let v=new URL(`${i}/v1/player/selfExclusionSettings`);fetch(v,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(j=>g(j)).then(j=>{e(8,y=j.periods)}).catch(j=>{console.log(j)})},g=v=>{if(v.status>=300)throw new Error("There was an error fetching the config");return v.json()},m=()=>{e(17,D=!D)},b=v=>{switch(V=v.text,e(12,R=v.key),e(16,N=!0),e(17,D=!1),e(14,pe=!1),e(15,me=!1),V){case"Until":e(15,me=!0),e(9,L=Ur().add(6,"months").format("YYYY-MM-DD")),e(10,I=Ur().add(5,"years").format("YYYY-MM-DD")),e(11,F=L);break;case"Permanent":e(14,pe=!pe);break;default:const[K,j]=V.split(" "),Ee=j.includes("Day")?"days":j.includes("Month")?"months":j.includes("Year")?"years":null;if(!Ee)return;e(11,F=Ur().add(Number(K),Ee).format("YYYY-MM-DD"));break}ne&&_()},_=()=>{if(!ne){e(13,Z="");return}e(13,Z=me?o("confirmationModalTextUntil",{values:{date:F}}):o("confirmationModalTextPeriod",{values:{period:o(V)}}))},S=v=>{v.preventDefault(),ne?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:R,selfExclusionExpiryDate:F},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:de},window.location.href)},M=v=>{e(11,F=v.target.value)},U=()=>{p.addEventListener("change",M,!1)},Y=()=>{let v=document.createElement("style");v.innerHTML=u,f.appendChild(v)},X=()=>{let v=new URL(c),K=document.createElement("style");fetch(v.href).then(j=>j.text()).then(j=>{K.innerHTML=j,setTimeout(()=>{f.appendChild(K)},1)})};rl(()=>()=>{p.removeEventListener("change",M)});const re=()=>{yc(s)},_e=()=>E(),ge=()=>m(),ae=v=>b(v);function se(v){cr[v?"unshift":"push"](()=>{p=v,e(7,p)})}const H=v=>S(v);function G(v){cr[v?"unshift":"push"](()=>{f=v,e(6,f)})}return t.$$set=v=>{"endpoint"in v&&e(25,i=v.endpoint),"lang"in v&&e(0,s=v.lang),"operator"in v&&e(1,n=v.operator),"supportemail"in v&&e(2,a=v.supportemail),"baseurl"in v&&e(3,l=v.baseurl),"clientstyling"in v&&e(4,u=v.clientstyling),"clientstylingurl"in v&&e(5,c=v.clientstylingurl),"translationurl"in v&&e(26,h=v.translationurl),"hasconfirmationmodal"in v&&e(27,d=v.hasconfirmationmodal)},t.$$.update=()=>{t.$$.dirty[0]&128&&p&&U(),t.$$.dirty[0]&33554432&&i&&w(),t.$$.dirty[0]&1&&s&&re(),t.$$.dirty[0]&96&&c&&f&&X(),t.$$.dirty[0]&80&&u&&f&&Y(),t.$$.dirty[0]&67108864&&h&&Be()},ne&&_(),[s,n,a,l,u,c,f,p,y,L,I,F,R,Z,pe,me,N,D,o,de,ne,m,b,S,E,i,h,d,_e,ge,ae,se,H,G]}class Ra extends pl{constructor(r){super(),dl(this,r,um,lm,Bs,{endpoint:25,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,translationurl:26,hasconfirmationmodal:27},rm,[-1,-1])}get endpoint(){return this.$$.ctx[25]}set endpoint(r){this.$$set({endpoint:r}),xe()}get lang(){return this.$$.ctx[0]}set lang(r){this.$$set({lang:r}),xe()}get operator(){return this.$$.ctx[1]}set operator(r){this.$$set({operator:r}),xe()}get supportemail(){return this.$$.ctx[2]}set supportemail(r){this.$$set({supportemail:r}),xe()}get baseurl(){return this.$$.ctx[3]}set baseurl(r){this.$$set({baseurl:r}),xe()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(r){this.$$set({clientstyling:r}),xe()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),xe()}get translationurl(){return this.$$.ctx[26]}set translationurl(r){this.$$set({translationurl:r}),xe()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(r){this.$$set({hasconfirmationmodal:r}),xe()}}fl(Ra,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=Ra;